From ff7d7931262926bbf9cca586bec1cac54b9f9a70 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 11 Oct 2022 06:30:38 +0000 Subject: [PATCH] chore(release): 9.4.0 [skip ci] # [9.4.0](https://github.com/CESNET/perun-web-apps/compare/v9.3.0...v9.4.0) (2022-10-11) ### Bug Fixes * add missing value from default config ([6a69e4c](https://github.com/CESNET/perun-web-apps/commit/6a69e4ce090367d70cfd234b7df9f52015d4e0ec)) * **admin:** add member dialog behavior on MFA error ([58ec078](https://github.com/CESNET/perun-web-apps/commit/58ec078c1d90b5a74dd8c68596f6a5088c626f1e)) * **admin:** add missing refresh button ([3066c55](https://github.com/CESNET/perun-web-apps/commit/3066c555eb75b15ffb7bde92fc54bd7be7ee010d)) * **admin:** do not change tab when removed manager ([2fcbca4](https://github.com/CESNET/perun-web-apps/commit/2fcbca416c30d77487ecfbc2beb54a0832a4fdc9)) * **admin:** facility resources page double load ([7cecff0](https://github.com/CESNET/perun-web-apps/commit/7cecff0134a6835a7463aa12483a7fdd8243b13a)) * **admin:** set service to entity storage service ([5da58e3](https://github.com/CESNET/perun-web-apps/commit/5da58e31cc25e63a00be3dc4d97e5a20c2b265f0)) * automatic redirect to /service-access works ([2322b64](https://github.com/CESNET/perun-web-apps/commit/2322b64a8e0fa75df14994904b26da5e1f328147)) * broken isAllSelected check ([feddc0c](https://github.com/CESNET/perun-web-apps/commit/feddc0ccdc36800c761f27a0022ada1ebfcdf13c)) * correctly handle RPC error in all components ([0f1de40](https://github.com/CESNET/perun-web-apps/commit/0f1de409ff19182c0f7648b0cb2bd6769aba3741)) * replace get() with getProperty() ([bd93849](https://github.com/CESNET/perun-web-apps/commit/bd93849424de1201c820c7e3e4b99bbd2ee2dfdd)) ### Features * **admin:** add groupmembershipmanager role ([b31e073](https://github.com/CESNET/perun-web-apps/commit/b31e0731da0077ea4c1b7e4d87ad69925a81d729)) * **admin:** e2e tests for FACILITYOBSERVER ([4d1aa1b](https://github.com/CESNET/perun-web-apps/commit/4d1aa1b757eaad4dbd785331d3ed0d6454cd5e16)) * **admin:** e2e tests for GROUPOBSERVER ([b7ab5bc](https://github.com/CESNET/perun-web-apps/commit/b7ab5bca5cc2713fdded39b1c1d65de28476a8d6)) * **admin:** e2e tests for PERUNOBSERVER ([6f817a0](https://github.com/CESNET/perun-web-apps/commit/6f817a095128f0b820a7f45c94bc1d2812a89618)) * **admin:** e2e tests for RESOURCEOBSERVER ([4048827](https://github.com/CESNET/perun-web-apps/commit/4048827abc3408067dc9755f4de5e2f0a40feb12)) * **admin:** e2e tests for SPONSOR ([7d4789a](https://github.com/CESNET/perun-web-apps/commit/7d4789a7088e112d7be6e9217ccd0a21954adb13)) * **admin:** e2e tests for VOOBSERVER ([556d4bf](https://github.com/CESNET/perun-web-apps/commit/556d4bf5f00f5942813f3b9ba1da89103fbad111)) * **admin:** fix non-existing form ([e88555d](https://github.com/CESNET/perun-web-apps/commit/e88555de45cd28ac16c07700045e509e24fecb95)) * **admin:** mark critical actions on attributes ([3e1989f](https://github.com/CESNET/perun-web-apps/commit/3e1989fb7108f89e63f1ec09743428982a149e0f)) * **admin:** scroll to top of table on page change ([e279e9b](https://github.com/CESNET/perun-web-apps/commit/e279e9b13f9cb07fd20e921b008a821ff5528e8f)) * **admin:** show backend version ([41c6e13](https://github.com/CESNET/perun-web-apps/commit/41c6e13f4cf7ddb7a2eed46724608e0f644ec634)) * **admin:** update of the Table-Checkbox service ([d36f11f](https://github.com/CESNET/perun-web-apps/commit/d36f11fac0d6606740408d9ca90e336c6606bbad)) * catch mfa required error and handle mfa ([001d260](https://github.com/CESNET/perun-web-apps/commit/001d260b03b87cc1e1877044673947dc6fcbfec1)) * catch mfa required error and handle mfa ([92aab62](https://github.com/CESNET/perun-web-apps/commit/92aab62d6c98c43fdc7bcd236388a4deaa5084b7)) * refactor of login workflow ([efb1aa3](https://github.com/CESNET/perun-web-apps/commit/efb1aa3b4c26dd8cbd19ce41fcd5e6b33bab8803)) * refactor of login workflow ([69a07d5](https://github.com/CESNET/perun-web-apps/commit/69a07d571937abd829caeb8008767a994e501305)) --- dist/apps/admin-gui/243.3cb96387b1cb7424.js | 1 - dist/apps/admin-gui/243.61aa12a1ddc085e0.js | 1 + dist/apps/admin-gui/323.921445e5664f4e15.js | 1 + dist/apps/admin-gui/323.b4f3219efd392317.js | 1 - dist/apps/admin-gui/374.0e0b65c71ea9dd43.js | 1 + dist/apps/admin-gui/374.44bee678b6d534bf.js | 1 - dist/apps/admin-gui/745.c866a3fa6fa2c73f.js | 1 + dist/apps/admin-gui/858.0b6dd1686d5eb534.js | 1 - dist/apps/admin-gui/858.6f608c455faacd1b.js | 1 + dist/apps/admin-gui/876.892d40f55533ada3.js | 1 - dist/apps/admin-gui/958.057f18dde8f792b3.js | 1 + dist/apps/admin-gui/958.bcbf776bc83cdfbb.js | 1 - dist/apps/admin-gui/969.a7ec6fd3127a83f4.js | 1 + dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js | 1 - .../assets/config/defaultConfig.json | 8 ++++-- .../apps/admin-gui/assets/config/version.json | 2 +- dist/apps/admin-gui/assets/i18n/en.json | 28 ++++++++++++++++++- dist/apps/admin-gui/index.html | 2 +- dist/apps/admin-gui/main.063f340eeaa840f9.js | 1 + dist/apps/admin-gui/main.fb1f66366479cd6f.js | 1 - ...88b3efa.js => runtime.4564a428908dbb54.js} | 2 +- .../assets/config/defaultConfig.json | 3 ++ dist/apps/consolidator/assets/i18n/en.json | 16 +++++++++++ dist/apps/consolidator/index.html | 2 +- .../consolidator/main.44a67ed10c198d31.js | 1 - .../consolidator/main.fbb16d98b4c7fbec.js | 1 + .../linker/assets/config/defaultConfig.json | 3 ++ dist/apps/linker/assets/i18n/en.json | 26 ++++++++++++++--- dist/apps/linker/index.html | 2 +- dist/apps/linker/main.f8060792658f8d0a.js | 1 - dist/apps/linker/main.f81b393c45831e9e.js | 1 + .../assets/config/defaultConfig.json | 4 ++- dist/apps/password-reset/assets/i18n/cs.json | 16 +++++++++++ dist/apps/password-reset/assets/i18n/en.json | 16 +++++++++++ dist/apps/password-reset/index.html | 2 +- .../password-reset/main.0327b0acc0534b7d.js | 1 - .../password-reset/main.d4f8f489be568d25.js | 1 + .../assets/config/defaultConfig.json | 3 ++ dist/apps/publications/assets/i18n/en.json | 16 +++++++++++ dist/apps/publications/index.html | 2 +- .../publications/main.9c6d19de2a6f1383.js | 1 - .../publications/main.b9bdda6c54fb5407.js | 1 + dist/apps/user-profile/assets/i18n/cs.json | 16 +++++++++++ dist/apps/user-profile/assets/i18n/en.json | 16 +++++++++++ dist/apps/user-profile/index.html | 2 +- .../user-profile/main.07fb08bd6a2952aa.js | 1 + .../user-profile/main.ab91b64621d4d8de.js | 1 - 47 files changed, 184 insertions(+), 29 deletions(-) delete mode 100644 dist/apps/admin-gui/243.3cb96387b1cb7424.js create mode 100644 dist/apps/admin-gui/243.61aa12a1ddc085e0.js create mode 100644 dist/apps/admin-gui/323.921445e5664f4e15.js delete mode 100644 dist/apps/admin-gui/323.b4f3219efd392317.js create mode 100644 dist/apps/admin-gui/374.0e0b65c71ea9dd43.js delete mode 100644 dist/apps/admin-gui/374.44bee678b6d534bf.js create mode 100644 dist/apps/admin-gui/745.c866a3fa6fa2c73f.js delete mode 100644 dist/apps/admin-gui/858.0b6dd1686d5eb534.js create mode 100644 dist/apps/admin-gui/858.6f608c455faacd1b.js delete mode 100644 dist/apps/admin-gui/876.892d40f55533ada3.js create mode 100644 dist/apps/admin-gui/958.057f18dde8f792b3.js delete mode 100644 dist/apps/admin-gui/958.bcbf776bc83cdfbb.js create mode 100644 dist/apps/admin-gui/969.a7ec6fd3127a83f4.js delete mode 100644 dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js create mode 100644 dist/apps/admin-gui/main.063f340eeaa840f9.js delete mode 100644 dist/apps/admin-gui/main.fb1f66366479cd6f.js rename dist/apps/admin-gui/{runtime.fd43b919f88b3efa.js => runtime.4564a428908dbb54.js} (92%) delete mode 100644 dist/apps/consolidator/main.44a67ed10c198d31.js create mode 100644 dist/apps/consolidator/main.fbb16d98b4c7fbec.js delete mode 100644 dist/apps/linker/main.f8060792658f8d0a.js create mode 100644 dist/apps/linker/main.f81b393c45831e9e.js delete mode 100644 dist/apps/password-reset/main.0327b0acc0534b7d.js create mode 100644 dist/apps/password-reset/main.d4f8f489be568d25.js delete mode 100644 dist/apps/publications/main.9c6d19de2a6f1383.js create mode 100644 dist/apps/publications/main.b9bdda6c54fb5407.js create mode 100644 dist/apps/user-profile/main.07fb08bd6a2952aa.js delete mode 100644 dist/apps/user-profile/main.ab91b64621d4d8de.js diff --git a/dist/apps/admin-gui/243.3cb96387b1cb7424.js b/dist/apps/admin-gui/243.3cb96387b1cb7424.js deleted file mode 100644 index 07d59300f..000000000 --- a/dist/apps/admin-gui/243.3cb96387b1cb7424.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:($,w,o)=>{o.d(w,{G:()=>g});var v=o(94650);let g=(()=>{class n{constructor(){this.entityDetailChange=new v.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(E){return new(E||n)},n.\u0275prov=v.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:($,w,o)=>{o.d(w,{y:()=>Q});var v=o(32105),g=o(10036),n=o(32080),d=o(94650),E=o(94364),s=o(36895),t=o(51572),e=o(96214),L=o(38383),N=o(64901),i=o(89383);function G(Z,y){1&Z&&d._UZ(0,"mat-spinner",5)}const D=function(){return["id","fullName"]};function M(Z,y){if(1&Z){const R=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){d.CHM(R);const Y=d.oxw();return d.KtG(Y.refreshTable())}),d.qZA()}if(2&Z){const R=d.oxw();d.Q6J("displayedColumns",d.DdM(5,D))("disableRouting",!R.routeAuth)("filter",R.filterValue)("members",R.members)("tableId",R.tableId)}}let Q=(()=>{class Z{constructor(R,P,Y,V){this.route=R,this.resourceService=P,this.authResolver=Y,this.entityStorageService=V,this.loading=!1,this.filterValue="",this.tableId=g.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(R=>{this.members=R,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(R){this.filterValue=R}}return Z.\u0275fac=function(R){return new(R||Z)(d.Y36(E.gz),d.Y36(v.xk),d.Y36(n.x4),d.Y36(n.fb))},Z.\u0275cmp=d.Xpm({type:Z,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(R,P){1&R&&(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 P.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(V){return P.applyFilter(V)}),d.qZA(),d.YNc(5,G,1,0,"mat-spinner",3),d.YNc(6,M,1,6,"perun-web-apps-members-list",4)),2&R&&(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",P.loading),d.xp6(1),d.Q6J("ngIf",!P.loading))},dependencies:[s.O5,t.Ou,e.t,L.O,N.P,i.X$]}),Z})()},49546:($,w,o)=>{o.d(w,{D:()=>S});var v=o(32105),g=o(10036),n=o(95017),d=o(9244),E=o(65412),s=o(32080),t=o(94650),e=o(89383),L=o(36895),N=o(4859),i=o(3848),G=o(51572),D=o(64901),M=o(90439),Q=o(60205);function Z(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function R(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 P=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.applyFilter(x))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.servicePackageSelected(x))}),t.qZA()(),t.YNc(12,R,1,6,"app-services-list",15),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,P))("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 V=(()=>{class l{constructor(c,m,x,W,z,ce){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourceManager=z,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 n.Ov(!0,[]),this.tableId=g.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(m=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=m;for(const W of c)for(const z of m)W.id===z.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(z),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(m=>{this.filteredServices=m}):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 m of this.selection.selected)c.push(m.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk),t.Y36(v.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,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Z,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===m.selection.selected.length&&-1===m.selectedPackage.id||m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===m.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[L.O5,N.lW,i.SP,i.uX,E.uh,E.xY,E.H8,G.Ou,D.P,M.F,Q.Q,e.X$]}),l})();var B=o(30671);function q(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 U(l,_){1&l&&t._UZ(0,"tr",17)}function H(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,U,1,0,"tr",13),t.YNc(12,H,1,0,"tr",14),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,m,x,W,z){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourcesManager=z,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new B.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const m of this.data.services)c.push(m.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.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,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,q,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[L.O5,N.lW,B.BZ,B.fO,B.as,B.w1,B.Dz,B.nj,B.ge,B.ev,B.XQ,B.Gk,E.uh,E.xY,E.H8,G.Ou,e.X$]}),l})();var J=o(94364),X=o(96214),oe=o(7434);function ne(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.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(){t.CHM(c);const x=t.oxw();return t.KtG(x.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 ie(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function C(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,m,x,W,z){this.route=c,this.resourcesManager=m,this.dialog=x,this.guiAuthResolver=W,this.entityStorageService=z,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=g.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(V,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(J.gz),t.Y36(v.xk),t.Y36(E.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,m){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 m.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(W){return m.applyFilter(W)}),t.qZA(),t.YNc(7,ie,1,0,"mat-spinner",5),t.YNc(8,C,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",m.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",m.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading))},dependencies:[L.O5,N.lW,G.Ou,Q.Q,X.t,oe.L,e.X$]}),l})()},92090:($,w,o)=>{o.d(w,{X:()=>y});var v=o(32080),g=o(32105),n=o(94650),d=o(36895),E=o(3848),s=o(19191),t=o(12651),e=o(89383);function L(R,P){1&R&&(n._uU(0),n.ALo(1,"translate")),2&R&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(R,P){if(1&R&&n._UZ(0,"app-one-entity-attribute-page",4),2&R){const Y=n.oxw();n.Q6J("entityId",Y.resource.id)("entity","resource")}}function i(R,P){1&R&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&R&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function G(R,P){if(1&R&&n._UZ(0,"app-two-entity-attribute-page",5),2&R){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function D(R,P){1&R&&(n.TgZ(0,"mat-tab"),n.YNc(1,i,3,6,"ng-template",1),n.YNc(2,G,1,3,"ng-template",2),n.qZA())}function M(R,P){1&R&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&R&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Q(R,P){if(1&R&&n._UZ(0,"app-two-entity-attribute-page",5),2&R){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function Z(R,P){1&R&&(n.TgZ(0,"mat-tab"),n.YNc(1,M,3,6,"ng-template",1),n.YNc(2,Q,1,3,"ng-template",2),n.qZA())}let y=(()=>{class R{constructor(Y,V,B){this.authResolver=Y,this.resourceManager=V,this.entityStorageService=B}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 R.\u0275fac=function(Y){return new(Y||R)(n.Y36(v.x4),n.Y36(g.xk),n.Y36(v.fb))},R.\u0275cmp=n.Xpm({type:R,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,V){2&Y&&n.ekj("router-component",V.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,V){1&Y&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,L,2,3,"ng-template",1),n.YNc(7,N,1,2,"ng-template",2),n.qZA(),n.YNc(8,D,3,0,"mat-tab",3),n.YNc(9,Z,3,0,"mat-tab",3),n.qZA()()),2&Y&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",V.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",V.resourceGroupAttAuth))},dependencies:[d.O5,E.SP,E.uD,E.uX,E.Vc,s.Y,t.t,e.X$]}),R})()},98918:($,w,o)=>{o.d(w,{b:()=>C});var v=o(36769),g=o(69024),n=o(32105),d=o(9244),E=o(32080),s=o(19516),t=o(74281),e=o(533),L=o(22158),N=o(82722),i=o(94650),G=o(94364),D=o(77968),M=o(65412),Q=o(15003),Z=o(36895),y=o(97392),R=o(4859),P=o(51572),Y=o(10266),V=o(61283),B=o(4235),q=o(89383);function te(S,l){1&S&&i._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.editResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function U(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.deleteResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"delete_forever"),i.qZA()()}}const H=function(S){return["/organizations",S]};function h(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,H,_.resource.vo.id)),i.xp6(1),i.Oqu(_.resource.vo.name)}}function T(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.vo.name," ")}}const J=function(S){return["/facilities",S]};function X(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,J,_.resource.facilityId)),i.xp6(1),i.Oqu(_.resource.facility.name)}}function oe(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.facility.name," ")}}const ne=function(){return{color:"black"}},re=function(S){return[S]};function ie(S,l){if(1&S&&(i.TgZ(0,"div")(1,"div",4),i._UZ(2,"mat-icon",5),i.ALo(3,"translate"),i.TgZ(4,"div",6)(5,"div",7)(6,"a",8),i._uU(7),i.qZA(),i.TgZ(8,"span",9),i._uU(9),i.qZA(),i.YNc(10,se,3,0,"button",10),i.YNc(11,U,3,0,"button",11),i.qZA(),i.TgZ(12,"div"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"span",12),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"translate"),i.YNc(19,h,2,4,"a",13),i.YNc(20,T,2,1,"span",2),i._uU(21),i.ALo(22,"translate"),i.YNc(23,X,2,4,"a",14),i.YNc(24,oe,2,1,"span",2),i._uU(25),i.ALo(26,"translate"),i.qZA()()(),i._UZ(27,"app-animated-router-outlet"),i.qZA()),2&S){const _=i.oxw();i.xp6(2),i.s9C("matTooltip",i.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),i.Q6J("ngStyle",i.DdM(32,ne)),i.xp6(4),i.Q6J("routerLink",i.VKq(33,re,_.baseUrl)),i.xp6(1),i.hij(" ",_.resource.name," "),i.xp6(2),i.hij(" \xa0#",_.resource.id," "),i.xp6(1),i.Q6J("ngIf",_.editResourceAuth),i.xp6(1),i.Q6J("ngIf",_.deleteAuth),i.xp6(2),i.AsE("",i.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),i.xp6(3),i.AsE(" ",i.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",i.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),i.xp6(3),i.Q6J("ngIf",_.voLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.voLinkAuth),i.xp6(1),i.AsE(" #",_.resource.voId,", ",i.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),i.xp6(2),i.Q6J("ngIf",_.facilityLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.facilityLinkAuth),i.xp6(1),i.lnq(" #",_.resource.facilityId,", ",i.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let C=(()=>{class S extends((0,L.T)()){constructor(_,c,m,x,W,z,ce,f,F,u,A){super(),this.route=_,this.facilityManager=c,this.vosManagerService=m,this.resourcesManager=x,this.sideMenuService=W,this.sideMenuItemService=z,this.dialog=ce,this.guiAuthResolver=f,this.router=F,this.entityStorageService=u,this.reloadEntityDetail=A,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(m=>{this.resource=m,this.entityStorageService.setEntity({id:m.id,voId:m.voId,facilityId:m.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(m,!1),this.facilityManager.getFacilityById(m.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(m,!0),this.vosManagerService.getVoById(m.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 m=(0,d.kZ)();m.width="450px",m.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,m).afterClosed().subscribe(W=>{W&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(z=>{this.resource=z,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(m=>{m&&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)(i.Y36(G.gz),i.Y36(n.IQ),i.Y36(n.YF),i.Y36(n.xk),i.Y36(D.D),i.Y36(g.V),i.Y36(M.uw),i.Y36(E.x4),i.Y36(G.F0),i.Y36(E.fb),i.Y36(Q.G))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[i.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&_&&(i.TgZ(0,"div",0),i._UZ(1,"perun-web-apps-back-button"),i.YNc(2,te,1,0,"mat-spinner",1),i.YNc(3,ie,28,35,"div",2),i.qZA()),2&_&&(i.xp6(2),i.Q6J("ngIf",c.loading),i.xp6(1),i.Q6J("ngIf",!c.loading&&void 0!==c.resource))},dependencies:[Z.O5,Z.PC,G.yS,y.Hw,R.lW,P.Ou,Y.gM,V.A,B.W,q.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[v.Ji]}}),S})()},258:($,w,o)=>{o.d(w,{K:()=>ce});var v=o(32105),g=o(95017),n=o(65412),d=o(30671),E=o(32080),s=o(94650),t=o(89383),e=o(36895),L=o(4859),N=o(51572);function i(f,F){1&f&&s._UZ(0,"mat-spinner",6)}function G(f,F){1&f&&s._UZ(0,"th",15)}function D(f,F){if(1&f&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&f){const u=F.$implicit;s.xp6(1),s.Oqu(u.name)}}function M(f,F){1&f&&s._UZ(0,"tr",17)}function Q(f,F){1&f&&s._UZ(0,"tr",18)}function Z(f,F){if(1&f&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,G,1,0,"th",11),s.YNc(10,D,2,1,"td",12),s.BQk(),s.YNc(11,M,1,0,"tr",13),s.YNc(12,Q,1,0,"tr",14),s.qZA()()),2&f){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 f{constructor(u,A,I,k,K){this.dialogRef=u,this.data=A,this.notificator=I,this.translate=k,this.resourceManager=K,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 A of this.data.groups)u.push(A.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,A){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,i,1,0,"mat-spinner",1),s.YNc(5,Z,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return A.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return A.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&u&&(s.Tol(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",A.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,L.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,n.uh,n.xY,n.H8,N.Ou,t.X$]}),f})();var R=o(10036),P=o(24006),Y=o(90455),V=o(86257),B=o(24179),q=o(64901);const te=["stepper"];function se(f,F){1&f&&s._UZ(0,"mat-spinner",4)}function U(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function H(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,U,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.applyFilter(I))}),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,H,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeSubgroupsMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.autoAssignSubgroups=I)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeInactiveMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.asActive=I)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeAsyncMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.async=I)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&f){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 J(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function X(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&f){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(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ne(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,X,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&f){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 f{constructor(u,A,I,k,K,ee,pe,ge){this.dialogRef=u,this.data=A,this.notificator=I,this.translate=k,this.resourceManager=K,this.groupService=ee,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=R.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(A=>{for(const I of A)-1===u.findIndex(k=>k.id===I.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,I])&&this.unAssignedGroups.push(I);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const A of this.selection.selected)u.push(A.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(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,A])||(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 f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk),s.Y36(v.ff),s.Y36(E.x4),s.Y36(s.sBO))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,A){if(1&u&&s.Gf(te,5),2&u){let I;s.iGM(I=s.CRH())&&(A.stepper=I.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(u,A){1&u&&(s.TgZ(0,"div")(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(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading&&A.stepper))},dependencies:[e.O5,P.JJ,P.On,L.lW,n.uh,n.xY,n.H8,N.Ou,Y.Rr,V.C0,V.VY,V.Vq,B.W,q.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),f})();var ie=o(9244),C=o(64080),S=o(94364),l=o(10266),_=o(96214);function c(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function m(f,F){1&f&&s._UZ(0,"mat-spinner",9)}const x=function(f){return[f]},W=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function z(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.loadAllGroups())}),s.qZA()}if(2&f){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,W))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class f{constructor(u,A,I,k,K){this.route=u,this.resourcesManager=A,this.dialog=I,this.guiAuthResolver=k,this.entityStorageService=K,this.assignedGroups=[],this.selected=new g.Ov(!0,[]),this.filteredValue="",this.tableId=R.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[C.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(K=>{const ee=K.enrichedGroup.group;return ee.status=K.status,ee.failureCause=K.failureCause,ee.sourceGroupId=K.sourceGroupId,ee});const A=this.assignedGroups.map(K=>K.id),I=this.assignedGroups.filter((K,ee)=>A.indexOf(K.id)===ee),k=this.assignedGroups.filter((K,ee)=>{const pe=A.indexOf(K.id);return pe!==ee&&(null===K.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(K=>K.id);I.forEach(K=>{k.includes(K.id)&&(K.moreTypesOfAssignment=!0)}),this.assignedGroups=I,this.groupsToDisable=new Set(this.assignedGroups.filter(K=>!!K.sourceGroupId&&!K.moreTypesOfAssignment).map(K=>K.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ie.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(I=>this.groupsToDisable.has(I.id))},this.dialog.open(re,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}removeGroups(){const u=(0,ie.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,A])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(S.gz),s.Y36(v.xk),s.Y36(n.uw),s.Y36(E.x4),s.Y36(E.fb))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,A){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 A.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return A.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return A.applyFilter(k)}),s.qZA(),s.YNc(11,m,1,0,"mat-spinner",6),s.YNc(12,z,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",A.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,A.resource))),s.xp6(1),s.Q6J("disabled",0===A.selected.selected.length||!A.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",A.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",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading))},dependencies:[e.O5,L.lW,N.Ou,l.gM,B.W,_.t,q.P,t.X$]}),f})()},4675:($,w,o)=>{o.d(w,{H:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.navItems)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.resourcesManager=D,this.route=M,this.guiAuthResolver=Q,this.entityStorageService=Z,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(D){const M=D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${M}/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:`/${M}/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:`${M}/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:`${M}/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:`${M}/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:`${M}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(v.xk),n.Y36(d.gz),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},20057:($,w,o)=>{o.d(w,{O:()=>d});var v=o(32080),g=o(94650),n=o(28361);let d=(()=>{class E{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 E.\u0275fac=function(t){return new(t||E)(g.Y36(v.x4),g.Y36(v.fb))},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&g._UZ(0,"app-managers-page",0),2&t&&g.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),E})()},16500:($,w,o)=>{o.d(w,{h:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.items)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.route=D,this.resourceManager=M,this.authResolver=Q,this.entityStorageService=Z,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(D){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(d.gz),n.Y36(v.xk),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},60113:($,w,o)=>{o.d(w,{t:()=>d});var v=o(36769),g=o(94650),n=o(61283);let d=(()=>{class E{}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&g.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&g._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[v.Ji]}}),E})()},20872:($,w,o)=>{o.d(w,{v:()=>se});var v=o(32105),g=o(95017),n=o(10036),d=o(9244),E=o(32080),s=o(74281),t=o(65412),e=o(94650),L=o(36895),N=o(4859),i=o(51572),G=o(17672),D=o(89383);function M(U,H){1&U&&e._UZ(0,"mat-spinner",8)}function Q(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",9),2&U){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let Z=(()=>{class U{constructor(h,T,J){this.dialogRef=h,this.data=T,this.resourcesManager=J,this.tableId=n.g,this.selection=new g.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(J=>J.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 U.\u0275fac=function(h){return new(h||U)(e.Y36(t.so),e.Y36(t.WI),e.Y36(v.xk))},U.\u0275cmp=e.Xpm({type:U,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")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,M,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,Q,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(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()()()),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")," "))},dependencies:[L.O5,N.lW,t.uh,t.xY,t.H8,i.Ou,G.o,D.X$]}),U})();var y=o(17584),R=o(96214),P=o(7434);function Y(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function V(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function B(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&U){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 q(U,H){1&U&&e._UZ(0,"mat-spinner",9)}function te(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",10),2&U){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 U{constructor(h,T,J,X,oe,ne){this.authResolver=h,this.resourcesManager=T,this.dialog=J,this.notificator=X,this.translate=oe,this.entityStorageService=ne,this.loading=!1,this.resourceTags=[],this.selection=new g.Ov(!0,[]),this.tableId=n.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(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(J=>{J&&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(Z,h).afterClosed().subscribe(J=>{J&&(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(J=>{J&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(X=>{this.notificator.showSuccess(X)}),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 U.\u0275fac=function(h){return new(h||U)(e.Y36(E.x4),e.Y36(v.xk),e.Y36(t.uw),e.Y36(E.V6),e.Y36(D.sK),e.Y36(E.fb))},U.\u0275cmp=e.Xpm({type:U,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,V,3,3,"button",2),e.YNc(6,B,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(X){return T.applyFilter(X)}),e.qZA(),e.YNc(8,q,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))},dependencies:[L.O5,N.lW,i.Ou,G.o,R.t,P.L,D.X$]}),U})()},17584:($,w,o)=>{o.d(w,{p:()=>D});var v=o(65412),g=o(32105),n=o(94650),d=o(36895),E=o(59549),s=o(284),t=o(24006),e=o(4859),L=o(51572),N=o(89383);function i(M,Q){1&M&&n._UZ(0,"mat-spinner",6)}function G(M,Q){if(1&M){const Z=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(R){n.CHM(Z);const P=n.oxw();return n.KtG(P.name=R)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&M){const Z=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",Z.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let D=(()=>{class M{constructor(Z,y,R){this.dialogRef=Z,this.data=y,this.resourceManager=R,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 M.\u0275fac=function(Z){return new(Z||M)(n.Y36(v.so),n.Y36(v.WI),n.Y36(g.xk))},M.\u0275cmp=n.Xpm({type:M,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(Z,y){1&Z&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,i,1,0,"mat-spinner",1),n.YNc(5,G,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return y.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return y.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&Z&&(n.Tol(y.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",y.loading),n.xp6(1),n.Q6J("ngIf",!y.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",y.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[d.O5,E.TO,E.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,v.uh,v.xY,v.H8,L.Ou,N.X$]}),M})()},28361:($,w,o)=>{o.d(w,{s:()=>Ne});var v=o(95017),g=o(65412),n=o(32080),d=o(32105),E=o(10036),s=o(64080),t=o(24006),e=o(94650),L=o(89383),N=o(94364),i=o(36895),G=o(3238),D=o(59549),M=o(284),Q=o(4859),Z=o(84385),y=o(51572),R=o(98380),P=o(50301),Y=o(64877),V=o(23123);function B(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function q(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,b){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 U(r,b){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const a=e.oxw(2);e.Q6J("disableRouting",!0)("selection",a.selection)("displayedColumns",e.DdM(5,se))("tableId",a.tableId)("users",a.users)}}function H(r,b){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,U,1,6,"app-users-list",19),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",0===a.users.length&&a.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==a.users.length)}}let h=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.usersService=j,this.translate=ae,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new v.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=E.H2,ae.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ae.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(a=>a.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 a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,a).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(L.sK),e.Y36(n.V6),e.Y36(n.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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,B,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(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.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,q,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,H,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(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()()()),2&a&&(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")," "))},dependencies:[i.sg,i.O5,G.ey,D.TO,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,R.w,P.hT,Y.C,L.X$,V.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=o(30671);function J(r,b){1&r&&e._UZ(0,"th",15)}function X(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.AsE("",a.firstName," ",a.lastName,"")}}function oe(r,b){1&r&&e._UZ(0,"tr",17)}function ne(r,b){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ie(r,b){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 a=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,a.data.role)))," ")}}function C(r,b){if(1&r&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,X,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,ie,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const a=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",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",a.removeSelf)}}function S(r,b){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(a,p,O,j,ae,le,ue){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,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(a=>a.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(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,C,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(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()()()),2&a&&(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")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,R.w,L.X$,V.i]}),r})();function _(r,b){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,b){1&r&&e._UZ(0,"th",15)}function m(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.Oqu(a.name)}}function x(r,b){1&r&&e._UZ(0,"tr",17)}function W(r,b){1&r&&e._UZ(0,"tr",18)}function z(r,b){if(1&r&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,c,1,0,"th",11),e.YNc(10,m,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,W,1,0,"tr",14),e.qZA()()),2&r){const a=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",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns)}}let ce=(()=>{class r{constructor(a,p,O,j,ae){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,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(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,z,13,9,"div",2),e.TgZ(6,"div",3)(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()()()),2&a&&(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")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,L.X$]}),r})();var f=o(68675),F=o(54004),u=o(47957),A=o(24179),I=o(64901);function k(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function K(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a.name," ")}}function ee(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.applyFilter(O))}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,b){1&r&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(r,b){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("tableId",a.tableId)}}let Re=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.voService=j,this.groupService=ae,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new v.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=E.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(a){return a?a.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(a=>a.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(a=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,f.O)(""),(0,F.U)(p=>this._filter(p))),this.vos=a,this.loading=!1},()=>this.loading=!1)}showVoGroups(a){this.loading=!0,this.groupService.getAllGroups(a.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(a){this.filterValue=a}_filter(a){const p="string"==typeof a?a.toLowerCase():a.name.toLowerCase();return this.vos.filter(O=>O.name.toLowerCase().includes(p))}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(L.sK),e.Y36(n.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(a,p){if(1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,k,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(j){return p.showVoGroups(j)}),e.YNc(20,K,2,2,"mat-option",5),e.ALo(21,"async"),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)(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()()()),2&a){const O=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",O),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")," ")}},dependencies:[i.sg,i.O5,u.XC,u.ZL,G.ey,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,A.W,I.P,i.Ov,L.X$,V.i]}),r})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function Ce(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ve(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.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,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.uIk("data-cy",e.lcZ(1,3,a)),e.xp6(2),e.Oqu(e.lcZ(3,5,a))}}function Oe(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,b){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const a=e.oxw(2);e.Q6J("disableSelf",a.disableSelf)("tableId",a.tableId)("disableRouting",!a.routeAuth||a.disableRouting)("displayedColumns",a.displayedUserColumns)("selection",a.selectionUsers)("users",a.managers)}}function De(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())}),e.qZA(),e.YNc(1,ve,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,be,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.managers)}}function Me(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.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 Ze(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function Ge(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function ye(r,b){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",24),2&r){const a=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",a.disableRouting)("displayedColumns",a.displayedGroupColumns)("groups",a.groups)("selection",a.selectionGroups)("tableId",a.tableId)}}function Le(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ge,1,0,"mat-spinner",11),e.YNc(10,ye,1,6,"perun-web-apps-groups-list",21)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.groups)}}function Pe(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",25),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(a,p,O,j,ae,le,ue){this.dialog=a,this.authzService=p,this.storeService=O,this.guiAuthResolver=j,this.router=ae,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 v.Ov(!0,[]),this.selectionGroups=new v.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=E.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(a=>this.availableRolesPrivileges.get(a).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 a=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){a=!0;break}a||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(a){this.loading=!0,0===a.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,a,!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(a=>{this.groups=a,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,a).afterClosed().subscribe(O=>{O&&this.refreshUsers()})}removeManager(){const a=(0,de.kZ)();a.width="450px",a.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const a=(0,de.kZ)();a.width="450px",a.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,a).afterClosed().subscribe(O=>{O&&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(a){return new(a||r)(e.Y36(g.uw),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(N.F0),e.Y36(Ee.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(a,p){2&a&&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"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(a,p){1&a&&(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(j){return p.tabChanged(j)}),e.TgZ(4,"mat-tab"),e.YNc(5,Ce,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Le,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&a&&(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))},dependencies:[i.sg,i.O5,G.ey,D.KE,D.hX,Q.lW,me.SP,me.uD,me.uX,me.Vc,Z.gD,y.Ou,R.w,A.W,Te.t,Y.C,i.i8,L.X$,V.i]}),r})()},17672:($,w,o)=>{o.d(w,{o:()=>ie});var v=o(96308),g=o(30671),n=o(95017),d=o(32080),E=o(32105),s=o(9244),t=o(94650),e=o(89383),L=o(36895),N=o(59549),i=o(284),G=o(24006),D=o(97392),M=o(4859),Q=o(56709),Z=o(10266),y=o(98380),R=o(18750);function P(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const m=t.oxw();return t.KtG(c?m.masterToggle():null)}),t.qZA()()}if(2&C){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(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,W=t.oxw();return t.KtG(c?W.selection.toggle(x):null)})("click",function(c){return c.stopPropagation()}),t.qZA()()}if(2&C){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function V(C,S){1&C&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function B(C,S){if(1&C&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&C){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function q(C,S){1&C&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(C,S){if(1&C&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&C){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",25),t.NdJ("ngModelChange",function(c){t.CHM(l);const m=t.oxw().$implicit;return t.KtG(m.tagName=c)}),t.qZA()()()}if(2&C){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function U(C,S){if(1&C&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&C){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 H(C,S){1&C&&t._UZ(0,"th",22)}function h(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.edit(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.save(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function J(C,S){if(1&C&&(t.TgZ(0,"td",23)(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA()()),2&C){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 X(C,S){1&C&&t._UZ(0,"tr",29)}function oe(C,S){1&C&&t._UZ(0,"tr",30)}function ne(C,S){if(1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&C){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(C,S){1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ie=(()=>{class C{constructor(l,_,c,m,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=m,this.tableCheckbox=x,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(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 g.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,C.getDataForColumn),l)}exportDisplayedData(l){const _=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,c=_+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(_,c),this.displayedColumns,C.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,C.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,C.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 C.\u0275fac=function(l){return new(l||C)(t.Y36(E.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},C.\u0275cmp=t.Xpm({type:C,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(v.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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(m){return _.exportDisplayedData(m)})("exportAllData",function(m){return _.exportAllData(m)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,P,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,V,3,3,"th",7),t.YNc(8,B,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,q,3,3,"th",10),t.YNc(11,U,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,H,1,0,"th",10),t.YNc(14,J,4,2,"td",11),t.BQk(),t.YNc(15,X,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),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))},dependencies:[L.O5,N.KE,i.Nt,G.Fj,G.JJ,G.On,D.Hw,M.lW,v.YE,v.nU,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,Q.oG,Z.gM,y.w,R.l,e.X$]}),C})()},22158:($,w,o)=>{o.d(w,{T:()=>g});var v=o(77579);const g=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new v.x}ngOnDestroy(){this.destroyed$.next()}}},90439:($,w,o)=>{o.d(w,{F:()=>d});var v=o(94650),g=o(42377),n=o(89383);let d=(()=>{class E{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new v.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=v.Xpm({type:E,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&&(v.TgZ(0,"perun-web-apps-entity-search-select",0),v.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),v.ALo(1,"translate"),v.ALo(2,"translate"),v.ALo(3,"translate"),v.qZA()),2&t&&v.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",v.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",v.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",v.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[g.i,n.X$]}),E})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/243.61aa12a1ddc085e0.js b/dist/apps/admin-gui/243.61aa12a1ddc085e0.js new file mode 100644 index 000000000..fc8a79530 --- /dev/null +++ b/dist/apps/admin-gui/243.61aa12a1ddc085e0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:(z,w,o)=>{o.d(w,{G:()=>g});var v=o(94650);let g=(()=>{class n{constructor(){this.entityDetailChange=new v.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(T){return new(T||n)},n.\u0275prov=v.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:(z,w,o)=>{o.d(w,{y:()=>K});var v=o(32105),g=o(10036),n=o(35382),m=o(94650),T=o(94364),s=o(36895),t=o(51572),e=o(96214),L=o(38383),N=o(64901),i=o(89383);function G(x,y){1&x&&m._UZ(0,"mat-spinner",5)}const I=function(){return["id","fullName"]};function D(x,y){if(1&x){const E=m.EpF();m.TgZ(0,"perun-web-apps-members-list",6),m.NdJ("updateTable",function(){m.CHM(E);const Y=m.oxw();return m.KtG(Y.refreshTable())}),m.qZA()}if(2&x){const E=m.oxw();m.Q6J("displayedColumns",m.DdM(5,I))("disableRouting",!E.routeAuth)("filter",E.filterValue)("members",E.members)("tableId",E.tableId)}}let K=(()=>{class x{constructor(E,P,Y,B){this.route=E,this.resourceService=P,this.authResolver=Y,this.entityStorageService=B,this.loading=!1,this.filterValue="",this.tableId=g.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(E=>{this.members=E,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(E){this.filterValue=E}}return x.\u0275fac=function(E){return new(E||x)(m.Y36(T.gz),m.Y36(v.xk),m.Y36(n.x4),m.Y36(n.fb))},x.\u0275cmp=m.Xpm({type:x,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(E,P){1&E&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return P.refreshTable()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(B){return P.applyFilter(B)}),m.qZA(),m.YNc(5,G,1,0,"mat-spinner",3),m.YNc(6,D,1,6,"perun-web-apps-members-list",4)),2&E&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),m.xp6(3),m.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",P.loading),m.xp6(1),m.Q6J("ngIf",!P.loading))},dependencies:[s.O5,t.Ou,e.t,L.O,N.P,i.X$]}),x})()},49546:(z,w,o)=>{o.d(w,{D:()=>U});var v=o(32105),g=o(10036),n=o(95017),m=o(9244),T=o(65412),s=o(35382),t=o(94650),e=o(89383),L=o(36895),N=o(4859),i=o(3848),G=o(51572),I=o(64901),D=o(90439),K=o(60205);function x(R,l){1&R&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function E(R,l){if(1&R&&t._UZ(0,"app-services-list",16),2&R){const u=t.oxw(2);t.Q6J("disableRouting",!0)("services",u.filteredServices)("displayedColumns",t.DdM(5,y))("selection",u.selection)("tableId",u.tableId)}}const P=function(){return["select","id","name","enabled","description"]};function Y(R,l){if(1&R){const u=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(u);const d=t.oxw();return t.KtG(d.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(d){t.CHM(u);const M=t.oxw();return t.KtG(M.applyFilter(d))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(d){t.CHM(u);const M=t.oxw();return t.KtG(M.servicePackageSelected(d))}),t.qZA()(),t.YNc(12,E,1,6,"app-services-list",15),t.qZA()()()}if(2&R){const u=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",u.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,P))("filterValue",u.filterValue)("selection",u.selection)("tableId",u.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",u.selectedPackage)("servicePackages",u.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==u.selectedPackage.id)}}let B=(()=>{class R{constructor(u,r,d,M,F,ne){this.dialogRef=u,this.data=r,this.notificator=d,this.translate=M,this.resourceManager=F,this.servicesManager=ne,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=g.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(u=>{this.servicesManager.getServices().subscribe(r=>{this.servicesManager.getServicesPackages().subscribe(d=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(d),this.unAssignedServices=r;for(const M of u)for(const F of r)M.id===F.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(F),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(u){this.filterValue=u}servicePackageSelected(u){this.selectedPackage=u,-1!==u.id?this.servicesManager.getServicesFromServicesPackage(u.id).subscribe(r=>{this.filteredServices=r}):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(u=>{this.notificator.showSuccess(u),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const u=[];for(const r of this.selection.selected)u.push(r.id);this.resourceManager.assignServices(this.data.resourceId,u).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(r=>{this.notificator.showSuccess(r),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return R.\u0275fac=function(u){return new(u||R)(t.Y36(T.so),t.Y36(T.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk),t.Y36(v.KK))},R.\u0275cmp=t.Xpm({type:R,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(u,r){1&u&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,x,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return r.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return r.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&u&&(t.Tol(r.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",!r.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===r.selection.selected.length&&-1===r.selectedPackage.id||r.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===r.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[L.O5,N.lW,i.SP,i.uX,T.uh,T.xY,T.H8,G.Ou,I.P,D.F,K.Q,e.X$]}),R})();var W=o(30671);function X(R,l){1&R&&t._UZ(0,"mat-spinner",6)}function ee(R,l){1&R&&t._UZ(0,"th",15)}function te(R,l){if(1&R&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&R){const u=l.$implicit;t.xp6(1),t.Oqu(u.name)}}function Z(R,l){1&R&&t._UZ(0,"tr",17)}function H(R,l){1&R&&t._UZ(0,"tr",18)}function h(R,l){if(1&R&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ee,1,0,"th",11),t.YNc(10,te,2,1,"td",12),t.BQk(),t.YNc(11,Z,1,0,"tr",13),t.YNc(12,H,1,0,"tr",14),t.qZA()()),2&R){const u=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",u.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",u.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",u.displayedColumns)}}let C=(()=>{class R{constructor(u,r,d,M,F){this.dialogRef=u,this.data=r,this.notificator=d,this.translate=M,this.resourcesManager=F,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const u=[];for(const r of this.data.services)u.push(r.id);this.resourcesManager.removeServices(this.data.resourceId,u).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(r=>{this.notificator.showSuccess(r),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return R.\u0275fac=function(u){return new(u||R)(t.Y36(T.so),t.Y36(T.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk))},R.\u0275cmp=t.Xpm({type:R,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(u,r){1&u&&(t.TgZ(0,"div")(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)(7,"button",4),t.NdJ("click",function(){return r.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return r.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&u&&(t.Tol(r.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",!r.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",r.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[L.O5,N.lW,W.BZ,W.fO,W.as,W.w1,W.Dz,W.nj,W.ge,W.ev,W.XQ,W.Gk,T.uh,T.xY,T.H8,G.Ou,e.X$]}),R})();var J=o(94364),$=o(96214),se=o(7434);function oe(R,l){if(1&R){const u=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(u);const d=t.oxw();return t.KtG(d.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&R&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(R,l){if(1&R){const u=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(u);const d=t.oxw();return t.KtG(d.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&R){const u=t.oxw();t.Q6J("disabled",0===u.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ie(R,l){1&R&&t._UZ(0,"mat-spinner",9)}function le(R,l){if(1&R&&t._UZ(0,"app-services-list",10),2&R){const u=t.oxw();t.Q6J("disableRouting",!u.serviceRoutingAuth)("selection",u.selected)("displayedColumns",u.displayedColumns)("filterValue",u.filterValue)("services",u.assignedServices)("tableId",u.tableId)}}let U=(()=>{class R{constructor(u,r,d,M,F){this.route=u,this.resourcesManager=r,this.dialog=d,this.guiAuthResolver=M,this.entityStorageService=F,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=g.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(u=>{this.assignedServices=u,this.selected.clear(),this.loading=!1})}addService(){const u=(0,m.kZ)();u.width="800px",u.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(B,u).afterClosed().subscribe(d=>{d&&this.loadAllServices()})}removeServices(){const u=(0,m.kZ)();u.width="500px",u.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(C,u).afterClosed().subscribe(d=>{d&&this.loadAllServices()})}applyFilter(u){this.filterValue=u}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 R.\u0275fac=function(u){return new(u||R)(t.Y36(J.gz),t.Y36(v.xk),t.Y36(T.uw),t.Y36(s.x4),t.Y36(s.fb))},R.\u0275cmp=t.Xpm({type:R,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(u,r){1&u&&(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 r.loadAllServices()}),t.qZA(),t.YNc(4,oe,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(M){return r.applyFilter(M)}),t.qZA(),t.YNc(7,ie,1,0,"mat-spinner",5),t.YNc(8,le,1,6,"app-services-list",6)),2&u&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",r.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",r.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",!r.loading))},dependencies:[L.O5,N.lW,G.Ou,K.Q,$.t,se.L,e.X$]}),R})()},92090:(z,w,o)=>{o.d(w,{X:()=>y});var v=o(35382),g=o(32105),n=o(94650),m=o(36895),T=o(3848),s=o(19191),t=o(12651),e=o(89383);function L(E,P){1&E&&(n._uU(0),n.ALo(1,"translate")),2&E&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(E,P){if(1&E&&n._UZ(0,"app-one-entity-attribute-page",4),2&E){const Y=n.oxw();n.Q6J("entityId",Y.resource.id)("entity","resource")}}function i(E,P){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function G(E,P){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function I(E,P){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,i,3,6,"ng-template",1),n.YNc(2,G,1,3,"ng-template",2),n.qZA())}function D(E,P){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function K(E,P){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function x(E,P){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,D,3,6,"ng-template",1),n.YNc(2,K,1,3,"ng-template",2),n.qZA())}let y=(()=>{class E{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 E.\u0275fac=function(Y){return new(Y||E)(n.Y36(v.x4),n.Y36(g.xk),n.Y36(v.fb))},E.\u0275cmp=n.Xpm({type:E,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,B){2&Y&&n.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&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,L,2,3,"ng-template",1),n.YNc(7,N,1,2,"ng-template",2),n.qZA(),n.YNc(8,I,3,0,"mat-tab",3),n.YNc(9,x,3,0,"mat-tab",3),n.qZA()()),2&Y&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",B.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",B.resourceGroupAttAuth))},dependencies:[m.O5,T.SP,T.uD,T.uX,T.Vc,s.Y,t.t,e.X$]}),E})()},98918:(z,w,o)=>{o.d(w,{b:()=>le});var v=o(36769),g=o(69024),n=o(32105),m=o(9244),T=o(35382),s=o(19516),t=o(74281),e=o(533),L=o(22158),N=o(82722),i=o(94650),G=o(94364),I=o(77968),D=o(65412),K=o(15003),x=o(36895),y=o(97392),E=o(4859),P=o(51572),Y=o(10266),B=o(61283),W=o(4235),X=o(89383);function ee(U,R){1&U&&i._UZ(0,"mat-spinner",3)}function te(U,R){if(1&U){const l=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(l);const r=i.oxw(2);return i.KtG(r.editResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function Z(U,R){if(1&U){const l=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(l);const r=i.oxw(2);return i.KtG(r.deleteResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"delete_forever"),i.qZA()()}}const H=function(U){return["/organizations",U]};function h(U,R){if(1&U&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&U){const l=i.oxw(2);i.Q6J("routerLink",i.VKq(3,H,l.resource.vo.id)),i.uIk("data-cy",l.resource.vo.name),i.xp6(1),i.Oqu(l.resource.vo.name)}}function C(U,R){if(1&U&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&U){const l=i.oxw(2);i.xp6(1),i.hij(" ",l.resource.vo.name," ")}}const J=function(U){return["/facilities",U]};function $(U,R){if(1&U&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&U){const l=i.oxw(2);i.Q6J("routerLink",i.VKq(3,J,l.resource.facilityId)),i.uIk("data-cy",l.resource.facility.name),i.xp6(1),i.Oqu(l.resource.facility.name)}}function se(U,R){if(1&U&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&U){const l=i.oxw(2);i.xp6(1),i.hij(" ",l.resource.facility.name," ")}}const oe=function(){return{color:"black"}},re=function(U){return[U]};function ie(U,R){if(1&U&&(i.TgZ(0,"div")(1,"div",4),i._UZ(2,"mat-icon",5),i.ALo(3,"translate"),i.TgZ(4,"div",6)(5,"div",7)(6,"a",8),i._uU(7),i.qZA(),i.TgZ(8,"span",9),i._uU(9),i.qZA(),i.YNc(10,te,3,0,"button",10),i.YNc(11,Z,3,0,"button",11),i.qZA(),i.TgZ(12,"div"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"span",12),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"translate"),i.YNc(19,h,2,5,"a",13),i.YNc(20,C,2,1,"span",2),i._uU(21),i.ALo(22,"translate"),i.YNc(23,$,2,5,"a",14),i.YNc(24,se,2,1,"span",2),i._uU(25),i.ALo(26,"translate"),i.qZA()()(),i._UZ(27,"app-animated-router-outlet"),i.qZA()),2&U){const l=i.oxw();i.xp6(2),i.s9C("matTooltip",i.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),i.Q6J("ngStyle",i.DdM(32,oe)),i.xp6(4),i.Q6J("routerLink",i.VKq(33,re,l.baseUrl)),i.xp6(1),i.hij(" ",l.resource.name," "),i.xp6(2),i.hij(" \xa0#",l.resource.id," "),i.xp6(1),i.Q6J("ngIf",l.editResourceAuth),i.xp6(1),i.Q6J("ngIf",l.deleteAuth),i.xp6(2),i.AsE("",i.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",l.resource.uuid,""),i.xp6(3),i.AsE(" ",i.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",i.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),i.xp6(3),i.Q6J("ngIf",l.voLinkAuth),i.xp6(1),i.Q6J("ngIf",!l.voLinkAuth),i.xp6(1),i.AsE(" #",l.resource.voId,", ",i.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),i.xp6(2),i.Q6J("ngIf",l.facilityLinkAuth),i.xp6(1),i.Q6J("ngIf",!l.facilityLinkAuth),i.xp6(1),i.lnq(" #",l.resource.facilityId,", ",i.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",l.resource.description," ")}}let le=(()=>{class U extends((0,L.T)()){constructor(l,u,r,d,M,F,ne,f,Q,_,A){super(),this.route=l,this.facilityManager=u,this.vosManagerService=r,this.resourcesManager=d,this.sideMenuService=M,this.sideMenuItemService=F,this.dialog=ne,this.guiAuthResolver=f,this.router=Q,this.entityStorageService=_,this.reloadEntityDetail=A,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(l=>{const u=Number(l.resourceId);this.resourcesManager.getRichResourceById(u).subscribe(r=>{this.resource=r,this.entityStorageService.setEntity({id:r.id,voId:r.voId,facilityId:r.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(r,!1),this.facilityManager.getFacilityById(r.facilityId).subscribe(d=>{this.facility=d,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(r,!0),this.vosManagerService.getVoById(r.voId).subscribe(d=>{this.vo=d,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,m.sF)("resources",this.resource)})})}setMenuItems(){let l;const u=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(l=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([l,u])):(l=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([l,u]))}editResource(){let l;this.resourcesManager.getResourceById(this.resource.id).subscribe(u=>{l=u;const r=(0,m.kZ)();r.width="450px",r.data={theme:"resource-theme",resource:l,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,r).afterClosed().subscribe(M=>{M&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(F=>{this.resource=F,this.setMenuItems()})})})}deleteResource(){const l=(0,m.kZ)();l.width="500px",l.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,l).afterClosed().subscribe(r=>{r&&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 U.\u0275fac=function(l){return new(l||U)(i.Y36(G.gz),i.Y36(n.IQ),i.Y36(n.YF),i.Y36(n.xk),i.Y36(I.D),i.Y36(g.V),i.Y36(D.uw),i.Y36(T.x4),i.Y36(G.F0),i.Y36(T.fb),i.Y36(K.G))},U.\u0275cmp=i.Xpm({type:U,selectors:[["app-resource-detail-page"]],features:[i.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(l,u){1&l&&(i.TgZ(0,"div",0),i._UZ(1,"perun-web-apps-back-button"),i.YNc(2,ee,1,0,"mat-spinner",1),i.YNc(3,ie,28,35,"div",2),i.qZA()),2&l&&(i.xp6(2),i.Q6J("ngIf",u.loading),i.xp6(1),i.Q6J("ngIf",!u.loading&&void 0!==u.resource))},dependencies:[x.O5,x.PC,G.yS,y.Hw,E.lW,P.Ou,Y.gM,B.A,W.W,X.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[v.Ji]}}),U})()},258:(z,w,o)=>{o.d(w,{K:()=>ne});var v=o(32105),g=o(95017),n=o(65412),m=o(30671),T=o(35382),s=o(94650),t=o(89383),e=o(36895),L=o(4859),N=o(51572);function i(f,Q){1&f&&s._UZ(0,"mat-spinner",6)}function G(f,Q){1&f&&s._UZ(0,"th",15)}function I(f,Q){if(1&f&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&f){const _=Q.$implicit;s.xp6(1),s.Oqu(_.name)}}function D(f,Q){1&f&&s._UZ(0,"tr",17)}function K(f,Q){1&f&&s._UZ(0,"tr",18)}function x(f,Q){if(1&f&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,G,1,0,"th",11),s.YNc(10,I,2,1,"td",12),s.BQk(),s.YNc(11,D,1,0,"tr",13),s.YNc(12,K,1,0,"tr",14),s.qZA()()),2&f){const _=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",_.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",_.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",_.displayedColumns)}}let y=(()=>{class f{constructor(_,A,O,k,V){this.dialogRef=_,this.data=A,this.notificator=O,this.translate=k,this.resourceManager=V,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const _=[];for(const A of this.data.groups)_.push(A.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(_,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return f.\u0275fac=function(_){return new(_||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(T.V6),s.Y36(t.sK),s.Y36(v.xk))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(_,A){1&_&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,i,1,0,"mat-spinner",1),s.YNc(5,x,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return A.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return A.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&_&&(s.Tol(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",A.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,L.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,n.uh,n.xY,n.H8,N.Ou,t.X$]}),f})();var E=o(10036),P=o(24006),Y=o(90455),B=o(86257),W=o(24179),X=o(64901);const ee=["stepper"];function te(f,Q){1&f&&s._UZ(0,"mat-spinner",4)}function Z(f,Q){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function H(f,Q){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function C(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,Z,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(O){s.CHM(_);const k=s.oxw();return s.KtG(k.applyFilter(O))}),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,H,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.changeSubgroupsMessage())})("ngModelChange",function(O){s.CHM(_);const k=s.oxw();return s.KtG(k.autoAssignSubgroups=O)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.changeInactiveMessage())})("ngModelChange",function(O){s.CHM(_);const k=s.oxw();return s.KtG(k.asActive=O)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.changeAsyncMessage())})("ngModelChange",function(O){s.CHM(_);const k=s.oxw();return s.KtG(k.async=O)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&f){const _=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==_.selection.selected.length&&_.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",_.unAssignedGroups)("selection",_.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",_.filterValue)("tableId",_.tableId),s.xp6(3),s.Q6J("ngModel",_.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",_.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",_.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",_.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",_.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",_.asyncHint," ")}}function J(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(_);const O=s.oxw(2);return s.KtG(O.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function $(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(_);const O=s.oxw(2);return s.KtG(O.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&f){const _=s.oxw(2);s.ekj("ml-2",void 0!==_.stepper&&0!==_.stepper.selectedIndex)("ml-auto",!(void 0!==_.stepper&&0!==_.stepper.selectedIndex)),s.Q6J("disabled",0===_.selection.selected.length||!_.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function se(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(_);const O=s.oxw(2);return s.KtG(O.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function oe(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,$,3,8,"button",18),s.YNc(6,se,3,3,"button",19),s.qZA()}if(2&f){const _=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!==_.stepper&&0!==_.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==_.stepper&&_.stepper.selectedIndex!==_.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==_.stepper&&_.stepper.selectedIndex===_.stepper._steps.length-1)}}let re=(()=>{class f{constructor(_,A,O,k,V,q,pe,ge){this.dialogRef=_,this.data=A,this.notificator=O,this.translate=k,this.resourceManager=V,this.groupService=q,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=E.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(_=>{this.groupService.getAllGroups(this.resource.voId).subscribe(A=>{for(const O of A)-1===_.findIndex(k=>k.id===O.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,O])&&this.unAssignedGroups.push(O);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const _=[];for(const A of this.selection.selected)_.push(A.id);this.resourceManager.assignGroupsToResource(_,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(_){this.filterValue=_}canAddGroups(){let _=!0;return this.selection.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,A])||(_=!1)}),_}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 f.\u0275fac=function(_){return new(_||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(T.V6),s.Y36(t.sK),s.Y36(v.xk),s.Y36(v.ff),s.Y36(T.x4),s.Y36(s.sBO))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(_,A){if(1&_&&s.Gf(ee,5),2&_){let O;s.iGM(O=s.CRH())&&(A.stepper=O.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(_,A){1&_&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,te,1,0,"mat-spinner",1),s.YNc(5,C,25,28,"div",2),s.YNc(6,oe,7,6,"div",3),s.qZA()),2&_&&(s.Tol(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading&&A.stepper))},dependencies:[e.O5,P.JJ,P.On,L.lW,n.uh,n.xY,n.H8,N.Ou,Y.Rr,B.C0,B.VY,B.Vq,W.W,X.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),f})();var ie=o(9244),le=o(64080),U=o(94364),R=o(10266),l=o(96214);function u(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function r(f,Q){1&f&&s._UZ(0,"mat-spinner",9)}const d=function(f){return[f]},M=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function F(f,Q){if(1&f){const _=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(_);const O=s.oxw();return s.KtG(O.loadAllGroups())}),s.qZA()}if(2&f){const _=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",_.groupsToDisable)("disableMembers",!1)("groups",_.assignedGroups)("disableRouting",!!_.assignedGroups[0]&&!_.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,d,_.assignedGroups[0])))("displayedColumns",s.DdM(12,M))("filter",_.filteredValue)("resourceId",_.resource.id)("selection",_.selected)("tableId",_.tableId)}}let ne=(()=>{class f{constructor(_,A,O,k,V){this.route=_,this.resourcesManager=A,this.dialog=O,this.guiAuthResolver=k,this.entityStorageService=V,this.assignedGroups=[],this.selected=new g.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[le.r.GROUP_SYNC_ENABLED]).subscribe(_=>{this.assignedGroups=_.map(V=>{const q=V.enrichedGroup.group;return q.status=V.status,q.failureCause=V.failureCause,q.sourceGroupId=V.sourceGroupId,q});const A=this.assignedGroups.map(V=>V.id),O=this.assignedGroups.filter((V,q)=>A.indexOf(V.id)===q),k=this.assignedGroups.filter((V,q)=>{const pe=A.indexOf(V.id);return pe!==q&&(null===V.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(V=>V.id);O.forEach(V=>{k.includes(V.id)&&(V.moreTypesOfAssignment=!0)}),this.assignedGroups=O,this.groupsToDisable=new Set(this.assignedGroups.filter(V=>!!V.sourceGroupId&&!V.moreTypesOfAssignment).map(V=>V.id)),this.selected.clear(),this.loading=!1})}addGroup(){const _=(0,ie.kZ)();_.width="1000px",_.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(O=>this.groupsToDisable.has(O.id))},this.dialog.open(re,_).afterClosed().subscribe(O=>{O&&this.loadAllGroups()})}removeGroups(){const _=(0,ie.kZ)();_.width="500px",_.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,_).afterClosed().subscribe(O=>{O&&this.loadAllGroups()})}canRemoveGroups(){let _=!0;return this.selected.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,A])||(_=!1)}),_}applyFilter(_){this.filteredValue=_}}return f.\u0275fac=function(_){return new(_||f)(s.Y36(U.gz),s.Y36(v.xk),s.Y36(n.uw),s.Y36(T.x4),s.Y36(T.fb))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(_,A){1&_&&(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 A.loadAllGroups()}),s.qZA(),s.YNc(4,u,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return A.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return A.applyFilter(k)}),s.qZA(),s.YNc(11,r,1,0,"mat-spinner",6),s.YNc(12,F,1,13,"perun-web-apps-groups-list",7)),2&_&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",A.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,d,A.resource))),s.xp6(1),s.Q6J("disabled",0===A.selected.selected.length||!A.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",A.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",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading))},dependencies:[e.O5,L.lW,N.Ou,R.gM,W.W,l.t,X.P,t.X$]}),f})()},4675:(z,w,o)=>{o.d(w,{H:()=>N});var v=o(32105),g=o(35382),n=o(94650),m=o(94364),T=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const I=n.oxw();n.xp6(1),n.Q6J("items",I.navItems)("size","small")}}let N=(()=>{class i{constructor(I,D,K,x,y){this.resourcesManager=I,this.route=D,this.guiAuthResolver=K,this.entityStorageService=x,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(I){const D=I?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${D}/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:`/${D}/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:`${D}/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:`${D}/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:`${D}/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:`${D}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return i.\u0275fac=function(I){return new(I||i)(n.Y36(v.xk),n.Y36(m.gz),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(I,D){2&I&&n.ekj("router-component",D.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(I,D){1&I&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&I&&(n.Q6J("ngIf",D.loading),n.xp6(1),n.Q6J("ngIf",!D.loading))},dependencies:[T.O5,s.Ou,t.L]}),i})()},20057:(z,w,o)=>{o.d(w,{O:()=>m});var v=o(35382),g=o(94650),n=o(28361);let m=(()=>{class T{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 T.\u0275fac=function(t){return new(t||T)(g.Y36(v.x4),g.Y36(v.fb))},T.\u0275cmp=g.Xpm({type:T,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&g._UZ(0,"app-managers-page",0),2&t&&g.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),T})()},16500:(z,w,o)=>{o.d(w,{h:()=>N});var v=o(32105),g=o(35382),n=o(94650),m=o(94364),T=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const I=n.oxw();n.xp6(1),n.Q6J("items",I.items)("size","small")}}let N=(()=>{class i{constructor(I,D,K,x,y){this.route=I,this.resourceManager=D,this.authResolver=K,this.entityStorageService=x,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(I){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${I?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return i.\u0275fac=function(I){return new(I||i)(n.Y36(m.gz),n.Y36(v.xk),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(I,D){2&I&&n.ekj("router-component",D.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(I,D){1&I&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&I&&(n.Q6J("ngIf",D.loading),n.xp6(1),n.Q6J("ngIf",!D.loading))},dependencies:[T.O5,s.Ou,t.L]}),i})()},60113:(z,w,o)=>{o.d(w,{t:()=>m});var v=o(36769),g=o(94650),n=o(61283);let m=(()=>{class T{}return T.\u0275fac=function(t){return new(t||T)},T.\u0275cmp=g.Xpm({type:T,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&g.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&g._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[v.Ji]}}),T})()},20872:(z,w,o)=>{o.d(w,{v:()=>te});var v=o(32105),g=o(95017),n=o(10036),m=o(9244),T=o(35382),s=o(74281),t=o(65412),e=o(94650),L=o(36895),N=o(4859),i=o(51572),G=o(17672),I=o(89383);function D(Z,H){1&Z&&e._UZ(0,"mat-spinner",8)}function K(Z,H){if(1&Z&&e._UZ(0,"app-resources-tags-list",9),2&Z){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let x=(()=>{class Z{constructor(h,C,J){this.dialogRef=h,this.data=C,this.resourcesManager=J,this.tableId=n.g,this.selection=new g.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(C=>!this.assignedTags.map(J=>J.id).includes(C.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const C=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:C}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return Z.\u0275fac=function(h){return new(h||Z)(e.Y36(t.so),e.Y36(t.WI),e.Y36(v.xk))},Z.\u0275cmp=e.Xpm({type:Z,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,C){1&h&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,D,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,K,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return C.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return C.onSubmit(C.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&h&&(e.Tol(C.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",C.loading),e.xp6(1),e.Q6J("ngIf",!C.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",C.loading||0===C.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[L.O5,N.lW,t.uh,t.xY,t.H8,i.Ou,G.o,I.X$]}),Z})();var y=o(17584),E=o(96214),P=o(7434);function Y(Z,H){if(1&Z){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function B(Z,H){if(1&Z){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(Z,H){if(1&Z){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&Z){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(Z,H){1&Z&&e._UZ(0,"mat-spinner",9)}function ee(Z,H){if(1&Z&&e._UZ(0,"app-resources-tags-list",10),2&Z){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let te=(()=>{class Z{constructor(h,C,J,$,se,oe){this.authResolver=h,this.resourcesManager=C,this.dialog=J,this.notificator=$,this.translate=se,this.entityStorageService=oe,this.loading=!1,this.resourceTags=[],this.selection=new g.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,m.kZ)();h.width="450px",h.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(J=>{J&&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 C=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:C}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,m.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(x,h).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,m.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(J=>{J&&(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 Z.\u0275fac=function(h){return new(h||Z)(e.Y36(T.x4),e.Y36(v.xk),e.Y36(t.uw),e.Y36(T.V6),e.Y36(I.sK),e.Y36(T.fb))},Z.\u0275cmp=e.Xpm({type:Z,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,C){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 C.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 C.applyFilter($)}),e.qZA(),e.YNc(8,X,1,0,"mat-spinner",5),e.YNc(9,ee,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",C.createAuth),e.xp6(1),e.Q6J("ngIf",C.addAuth),e.xp6(1),e.Q6J("ngIf",C.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",C.loading),e.xp6(1),e.Q6J("ngIf",!C.loading))},dependencies:[L.O5,N.lW,i.Ou,G.o,E.t,P.L,I.X$]}),Z})()},17584:(z,w,o)=>{o.d(w,{p:()=>I});var v=o(65412),g=o(32105),n=o(94650),m=o(36895),T=o(59549),s=o(284),t=o(24006),e=o(4859),L=o(51572),N=o(89383);function i(D,K){1&D&&n._UZ(0,"mat-spinner",6)}function G(D,K){if(1&D){const x=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(E){n.CHM(x);const P=n.oxw();return n.KtG(P.name=E)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&D){const x=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",x.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let I=(()=>{class D{constructor(x,y,E){this.dialogRef=x,this.data=y,this.resourceManager=E,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return D.\u0275fac=function(x){return new(x||D)(n.Y36(v.so),n.Y36(v.WI),n.Y36(g.xk))},D.\u0275cmp=n.Xpm({type:D,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(x,y){1&x&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,i,1,0,"mat-spinner",1),n.YNc(5,G,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return y.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return y.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&x&&(n.Tol(y.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",y.loading),n.xp6(1),n.Q6J("ngIf",!y.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",y.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[m.O5,T.TO,T.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,v.uh,v.xY,v.H8,L.Ou,N.X$]}),D})()},28361:(z,w,o)=>{o.d(w,{s:()=>Ne});var v=o(95017),g=o(65412),n=o(35382),m=o(32105),T=o(10036),s=o(64080),t=o(24006),e=o(94650),L=o(89383),N=o(94364),i=o(36895),G=o(3238),I=o(59549),D=o(284),K=o(4859),x=o(84385),y=o(51572),E=o(98380),P=o(50301),Y=o(64877),B=o(23123);function W(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const a=S.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function X(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function ee(c,S){1&c&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const te=function(){return["select","id","name","email","logins","organization"]};function Z(c,S){if(1&c&&e._UZ(0,"app-users-list",21),2&c){const a=e.oxw(2);e.Q6J("disableRouting",!0)("selection",a.selection)("displayedColumns",e.DdM(5,te))("tableId",a.tableId)("users",a.users)}}function H(c,S){if(1&c&&(e.TgZ(0,"div",17),e.YNc(1,ee,3,3,"perun-web-apps-alert",18),e.YNc(2,Z,1,6,"app-users-list",19),e.qZA()),2&c){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",0===a.users.length&&a.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==a.users.length)}}let h=(()=>{class c{constructor(a,p,b,j,ae,ce,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=b,this.usersService=j,this.translate=ae,this.notificator=ce,this.storeService=ue,this.route=he,this.router=fe,this.selection=new v.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=T.H2,ae.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ae.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(a=>a.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 a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,a).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return c.\u0275fac=function(a){return new(a||c)(e.Y36(g.so),e.Y36(g.WI),e.Y36(m.Ct),e.Y36(m.Fv),e.Y36(L.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(N.gz),e.Y36(N.F0))},c.\u0275cmp=e.Xpm({type:c,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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,W,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(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.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,H,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(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()()()),2&a&&(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")," "))},dependencies:[i.sg,i.O5,G.ey,I.TO,I.KE,I.hX,D.Nt,t.Fj,t.JJ,t.oH,K.lW,g.uh,g.xY,g.H8,x.gD,y.Ou,E.w,P.hT,Y.C,L.X$,B.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),c})();var C=o(30671);function J(c,S){1&c&&e._UZ(0,"th",15)}function $(c,S){if(1&c&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&c){const a=S.$implicit;e.xp6(1),e.AsE("",a.firstName," ",a.lastName,"")}}function se(c,S){1&c&&e._UZ(0,"tr",17)}function oe(c,S){1&c&&e._UZ(0,"tr",18)}const re=function(c){return{role:c}};function ie(c,S){if(1&c&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&c){const a=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,a.data.role)))," ")}}function le(c,S){if(1&c&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,$,2,2,"td",11),e.BQk(),e.YNc(11,se,1,0,"tr",12),e.YNc(12,oe,1,0,"tr",13),e.qZA(),e.YNc(13,ie,4,8,"perun-web-apps-alert",14),e.qZA()),2&c){const a=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",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",a.removeSelf)}}function U(c,S){1&c&&e._UZ(0,"mat-spinner",20)}let R=(()=>{class c{constructor(a,p,b,j,ae,ce,ue){this.dialogRef=a,this.data=p,this.notificator=b,this.translate=j,this.authzService=ae,this.store=ce,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(a=>a.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(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return c.\u0275fac=function(a){return new(a||c)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4))},c.\u0275cmp=e.Xpm({type:c,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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,le,14,10,"div",1),e.YNc(5,U,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(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()()()),2&a&&(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")," "))},dependencies:[i.O5,K.lW,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,g.uh,g.xY,g.H8,y.Ou,E.w,L.X$,B.i]}),c})();function l(c,S){1&c&&e._UZ(0,"mat-spinner",6)}function u(c,S){1&c&&e._UZ(0,"th",15)}function r(c,S){if(1&c&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&c){const a=S.$implicit;e.xp6(1),e.Oqu(a.name)}}function d(c,S){1&c&&e._UZ(0,"tr",17)}function M(c,S){1&c&&e._UZ(0,"tr",18)}function F(c,S){if(1&c&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,u,1,0,"th",11),e.YNc(10,r,2,1,"td",12),e.BQk(),e.YNc(11,d,1,0,"tr",13),e.YNc(12,M,1,0,"tr",14),e.qZA()()),2&c){const a=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",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns)}}let ne=(()=>{class c{constructor(a,p,b,j,ae){this.dialogRef=a,this.data=p,this.notificator=b,this.translate=j,this.authzService=ae,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.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(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return c.\u0275fac=function(a){return new(a||c)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(m.Ct))},c.\u0275cmp=e.Xpm({type:c,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(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,l,1,0,"mat-spinner",1),e.YNc(5,F,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return 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()()()),2&a&&(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")," "))},dependencies:[i.O5,K.lW,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,g.uh,g.xY,g.H8,y.Ou,L.X$]}),c})();var f=o(68675),Q=o(54004),_=o(47957),A=o(24179),O=o(64901);function k(c,S){if(1&c&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const a=S.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function V(c,S){if(1&c&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&c){const a=S.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a.name," ")}}function q(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(b){e.CHM(a);const j=e.oxw();return e.KtG(j.applyFilter(b))}),e.ALo(1,"translate"),e.qZA()}2&c&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(c,S){1&c&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(c,S){if(1&c&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&c){const a=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("tableId",a.tableId)}}let Re=(()=>{class c{constructor(a,p,b,j,ae,ce,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=b,this.voService=j,this.groupService=ae,this.translate=ce,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new v.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=T.kZ,ce.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),ce.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(a){return a?a.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(a=>a.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(a=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,f.O)(""),(0,Q.U)(p=>this._filter(p))),this.vos=a,this.loading=!1},()=>this.loading=!1)}showVoGroups(a){this.loading=!0,this.groupService.getAllGroups(a.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(a){this.filterValue=a}_filter(a){const p="string"==typeof a?a.toLowerCase():a.name.toLowerCase();return this.vos.filter(b=>b.name.toLowerCase().includes(p))}}return c.\u0275fac=function(a){return new(a||c)(e.Y36(g.so),e.Y36(g.WI),e.Y36(m.Ct),e.Y36(m.YF),e.Y36(m.ff),e.Y36(L.sK),e.Y36(n.V6),e.Y36(N.gz),e.Y36(N.F0))},c.\u0275cmp=e.Xpm({type:c,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(a,p){if(1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,k,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(j){return p.showVoGroups(j)}),e.YNc(20,V,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,q,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return 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()()()),2&a){const b=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",b),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")," ")}},dependencies:[i.sg,i.O5,_.XC,_.ZL,G.ey,I.KE,I.hX,D.Nt,t.Fj,t.JJ,t.oH,K.lW,g.uh,g.xY,g.H8,x.gD,y.Ou,A.W,O.P,i.Ov,L.X$,B.i]}),c})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function Ce(c,S){1&c&&(e._uU(0),e.ALo(1,"translate")),2&c&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ve(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(a);const b=e.oxw(2);return e.KtG(b.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(a);const b=e.oxw(2);return e.KtG(b.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&c){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&c){const a=S.$implicit;e.Q6J("value",a),e.uIk("data-cy",e.lcZ(1,3,a)),e.xp6(2),e.Oqu(e.lcZ(3,5,a))}}function Oe(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function Ie(c,S){if(1&c&&e._UZ(0,"app-users-list",17),2&c){const a=e.oxw(2);e.Q6J("disableSelf",a.disableSelf)("tableId",a.tableId)("disableRouting",!a.routeAuth||a.disableRouting)("displayedColumns",a.displayedUserColumns)("selection",a.selectionUsers)("users",a.managers)}}function De(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const b=e.oxw();return e.KtG(b.refreshUsers())}),e.qZA(),e.YNc(1,ve,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const b=e.oxw();return e.KtG(b.refreshUsers())})("valueChange",function(b){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=b)}),e.YNc(8,be,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&c){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.managers)}}function Me(c,S){1&c&&(e._uU(0),e.ALo(1,"translate")),2&c&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(a);const b=e.oxw(2);return e.KtG(b.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const b=e.oxw(2);return e.KtG(b.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&c){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const a=S.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function Ge(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function ye(c,S){if(1&c&&e._UZ(0,"perun-web-apps-groups-list",24),2&c){const a=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",a.disableRouting)("displayedColumns",a.displayedGroupColumns)("groups",a.groups)("selection",a.selectionGroups)("tableId",a.tableId)}}function Le(c,S){if(1&c){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const b=e.oxw();return e.KtG(b.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const b=e.oxw();return e.KtG(b.refreshGroups())})("valueChange",function(b){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=b)}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ge,1,0,"mat-spinner",11),e.YNc(10,ye,1,6,"perun-web-apps-groups-list",21)}if(2&c){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.groups)}}function Pe(c,S){1&c&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class c{constructor(a,p,b,j,ae,ce,ue){this.dialog=a,this.authzService=p,this.storeService=b,this.guiAuthResolver=j,this.router=ae,this.reloadEntityDetail=ce,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new v.Ov(!0,[]),this.selectionGroups=new v.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=T.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(a=>this.availableRolesPrivileges.get(a).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 a=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){a=!0;break}a||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(a){this.loading=!0,0===a.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,a,!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(a=>{this.groups=a,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,a).afterClosed().subscribe(b=>{b&&this.refreshUsers()})}removeManager(){const a=(0,de.kZ)();a.width="450px",a.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(R,a).afterClosed().subscribe(b=>{b&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const a=(0,de.kZ)();a.width="450px",a.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ne,a).afterClosed().subscribe(b=>{b&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.refreshGroups():this.redirectToAuthRoute())})}addGroup(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,a).afterClosed().subscribe(b=>{b&&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 c.\u0275fac=function(a){return new(a||c)(e.Y36(g.uw),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(N.F0),e.Y36(Ee.G),e.Y36(N.gz))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(a,p){2&a&&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"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(a,p){1&a&&(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(j){return p.tabChanged(j)}),e.TgZ(4,"mat-tab"),e.YNc(5,Ce,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Le,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&a&&(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))},dependencies:[i.sg,i.O5,G.ey,I.KE,I.hX,K.lW,me.SP,me.uD,me.uX,me.Vc,x.gD,y.Ou,E.w,A.W,Te.t,Y.C,i.i8,L.X$,B.i]}),c})()},17672:(z,w,o)=>{o.d(w,{o:()=>R});var v=o(96308),g=o(30671),n=o(95017),m=o(35382),T=o(32105),s=o(9244),t=o(94650),e=o(89383),L=o(36895),N=o(59549),i=o(284),G=o(24006),I=o(97392),D=o(4859),K=o(56709),x=o(10266),y=o(98380),E=o(18750),P=o(9185);function Y(l,u){if(1&l){const r=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(M){t.CHM(r);const F=t.oxw(2);return t.KtG(M?F.masterToggle():null)}),t.qZA()()}if(2&l){const r=t.oxw().ngIf,d=t.oxw();t.xp6(1),t.Q6J("aria-label",d.checkboxLabel())("checked",d.selection.hasValue()&&r.all)("indeterminate",d.selection.hasValue()&&!r.all)}}function B(l,u){if(1&l){const r=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(M){const ne=t.CHM(r).$implicit,f=t.oxw(2);return t.KtG(M?f.selection.toggle(ne):null)})("click",function(M){return M.stopPropagation()}),t.qZA()()}if(2&l){const r=u.$implicit,d=t.oxw(2);t.xp6(1),t.Q6J("aria-label",d.checkboxLabel(r))("checked",d.selection.isSelected(r))}}function W(l,u){1&l&&(t.ynx(0,14),t.YNc(1,Y,2,3,"th",15),t.YNc(2,B,2,2,"td",16),t.BQk())}function X(l,u){1&l&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function ee(l,u){if(1&l&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&l){const r=u.$implicit;t.xp6(1),t.Oqu(r.id)}}function te(l,u){1&l&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function Z(l,u){if(1&l&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&l){const r=t.oxw().$implicit;t.xp6(1),t.hij(" ",r.tagName," ")}}function H(l,u){if(1&l){const r=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",26),t.NdJ("ngModelChange",function(M){t.CHM(r);const F=t.oxw().$implicit;return t.KtG(F.tagName=M)}),t.qZA()()()}if(2&l){const r=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",r.tagName)}}function h(l,u){if(1&l&&(t.TgZ(0,"td",24),t.YNc(1,Z,2,1,"div",25),t.YNc(2,H,3,1,"div",25),t.qZA()),2&l){const r=u.$implicit,d=t.oxw();t.xp6(1),t.Q6J("ngIf",!d.isChanging.isSelected(r)),t.xp6(1),t.Q6J("ngIf",d.isChanging.isSelected(r))}}function C(l,u){1&l&&t._UZ(0,"th",23)}function J(l,u){if(1&l){const r=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(r);const M=t.oxw().$implicit,F=t.oxw();return t.KtG(F.edit(M))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&l&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function $(l,u){if(1&l){const r=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(r);const M=t.oxw().$implicit,F=t.oxw();return t.KtG(F.save(M))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&l&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function se(l,u){if(1&l&&(t.TgZ(0,"td",24)(1,"div",27),t.YNc(2,J,4,3,"button",28),t.YNc(3,$,4,3,"button",28),t.qZA()()),2&l){const r=u.$implicit,d=t.oxw();t.xp6(2),t.Q6J("ngIf",!d.isChanging.isSelected(r)),t.xp6(1),t.Q6J("ngIf",d.isChanging.isSelected(r))}}function oe(l,u){1&l&&t._UZ(0,"tr",30)}function re(l,u){1&l&&t._UZ(0,"tr",31)}function ie(l,u){if(1&l&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&l){const r=t.oxw();t.xp6(1),t.hij(" ","vo"===r.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function le(l,u){1&l&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const U=function(l){return{all:l}};let R=(()=>{class l{constructor(r,d,M,F,ne){this.resourceManager=r,this.notificator=d,this.translator=M,this.authResolver=F,this.tableCheckbox=ne,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(r){this.sort=r,this.setDataSource()}static getDataForColumn(r,d){switch(d){case"id":return r.id.toString();case"name":return r.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(r=>"id"!==r)),this.dataSource=new g.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(r){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,l.getDataForColumn),r)}exportDisplayedData(r){const d=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,M=d+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(d,M),this.displayedColumns,l.getDataForColumn),r)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(r,d)=>(0,s.Sd)(r,d,this.displayedColumns,l.getDataForColumn),this.dataSource.sortData=(r,d)=>(0,s.pR)(r,d,l.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(r){return r?`${this.selection.isSelected(r)?"deselect":"select"} row ${r.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(r){this.resourceManager.updateResourceTag({resourceTag:r}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d)}),this.isChanging.deselect(r)})}edit(r){this.isChanging.select(r)}}return l.\u0275fac=function(r){return new(r||l)(t.Y36(T.xk),t.Y36(m.V6),t.Y36(e.sK),t.Y36(m.x4),t.Y36(m.UA))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-resources-tags-list"]],viewQuery:function(r,d){if(1&r&&(t.Gf(s.l9,7),t.Gf(v.YE,7)),2&r){let M;t.iGM(M=t.CRH())&&(d.child=M.first),t.iGM(M=t.CRH())&&(d.matSort=M.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(r,d){1&r&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(F){return d.exportDisplayedData(F)})("exportAllData",function(F){return d.exportAllData(F)}),t.TgZ(2,"table",2),t.YNc(3,W,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,X,3,3,"th",5),t.YNc(7,ee,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,te,3,3,"th",8),t.YNc(10,h,3,2,"td",9),t.BQk(),t.ynx(11,10),t.YNc(12,C,1,0,"th",8),t.YNc(13,se,4,2,"td",9),t.BQk(),t.YNc(14,oe,1,0,"tr",11),t.YNc(15,re,1,0,"tr",12),t.qZA()()(),t.YNc(16,ie,4,5,"perun-web-apps-alert",13),t.YNc(17,le,3,3,"perun-web-apps-alert",13)),2&r&&(t.Q6J("hidden",0===d.resourceTags.length||0===d.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",d.pageSizeOptions)("dataLength",d.dataSource.filteredData.length)("tableId",d.tableId),t.xp6(1),t.Q6J("dataSource",d.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,U,t.xi3(4,10,d.dataSource,d.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",d.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",d.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===d.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===d.dataSource.filteredData.length&&0!==d.resourceTags.length))},dependencies:[L.O5,N.KE,i.Nt,G.Fj,G.JJ,G.On,I.Hw,D.lW,v.YE,v.nU,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,K.oG,x.gM,y.w,E.l,e.X$,P.I]}),l})()},22158:(z,w,o)=>{o.d(w,{T:()=>g});var v=o(77579);const g=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new v.x}ngOnDestroy(){this.destroyed$.next()}}},90439:(z,w,o)=>{o.d(w,{F:()=>m});var v=o(94650),g=o(42377),n=o(89383);let m=(()=>{class T{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new v.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return T.\u0275fac=function(t){return new(t||T)},T.\u0275cmp=v.Xpm({type:T,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&&(v.TgZ(0,"perun-web-apps-entity-search-select",0),v.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),v.ALo(1,"translate"),v.ALo(2,"translate"),v.ALo(3,"translate"),v.qZA()),2&t&&v.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",v.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",v.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",v.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[g.i,n.X$]}),T})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/323.921445e5664f4e15.js b/dist/apps/admin-gui/323.921445e5664f4e15.js new file mode 100644 index 000000000..bb58086cb --- /dev/null +++ b/dist/apps/admin-gui/323.921445e5664f4e15.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[323],{15935:(A,C,i)=>{i.d(C,{D:()=>K});var g=i(95017),h=i(96308),u=i(30671),_=i(9244),d=i(35382),e=i(94650),t=i(36895),b=i(56709),E=i(98380),P=i(18750),m=i(89383),D=i(9185),o=i(37677);function c(r,p){if(1&r){const s=e.EpF();e.TgZ(0,"th",16)(1,"mat-checkbox",17),e.NdJ("change",function(l){e.CHM(s);const n=e.oxw(2);return e.KtG(l?n.masterToggle():null)}),e.qZA()()}if(2&r){const s=e.oxw().ngIf,a=e.oxw();e.xp6(1),e.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&s.all)("indeterminate",a.selection.hasValue()&&!s.all)}}function x(r,p){if(1&r){const s=e.EpF();e.TgZ(0,"td",18)(1,"mat-checkbox",19),e.NdJ("change",function(l){const f=e.CHM(s).$implicit,M=e.oxw(2);return e.KtG(l?M.selection.toggle(f):null)})("click",function(l){return l.stopPropagation()}),e.qZA()()}if(2&r){const s=p.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("aria-label",a.checkboxLabel(s))("checked",a.selection.isSelected(s))}}function O(r,p){1&r&&(e.ynx(0,13),e.YNc(1,c,2,3,"th",14),e.YNc(2,x,2,2,"td",15),e.BQk())}function T(r,p){1&r&&(e.TgZ(0,"th",20),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 S(r,p){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&r){const s=p.$implicit;e.xp6(1),e.Oqu(s.id)}}function R(r,p){1&r&&(e.TgZ(0,"th",20),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 I(r,p){if(1&r&&(e.TgZ(0,"td",22),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&r){const s=p.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,s.name),"-name-td"),e.xp6(2),e.hij(" ",s.name," ")}}function L(r,p){1&r&&(e.TgZ(0,"th",20),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 y(r,p){if(1&r&&(e.TgZ(0,"td",22),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const s=p.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,s.type))}}function U(r,p){1&r&&e._UZ(0,"tr",23)}function Z(r,p){1&r&&e._UZ(0,"tr",24)}function w(r,p){1&r&&(e.TgZ(0,"perun-web-apps-alert",25),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 B(r,p){1&r&&(e.TgZ(0,"perun-web-apps-alert",25),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"))}const N=function(r){return{all:r}};let K=(()=>{class r{constructor(s,a){this.authResolver=s,this.tableCheckbox=a,this.selection=new g.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=_.f7}set matSort(s){this.sort=s,this.setDataSource()}static getDataForColumn(s,a){switch(a){case"id":return s.id.toString();case"type":return s.type.substring(40);case"name":return s.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(s=>"id"!==s)),this.dataSource=new u.by(this.extSources),this.setDataSource()}exportAllData(s){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),s)}exportDisplayedData(s){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,l=a+this.dataSource.paginator.pageSize;(0,_.O6)((0,_.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,l),this.displayedColumns,r.getDataForColumn),s)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(s,a)=>(0,_.Sd)(s,a,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(s,a)=>(0,_.pR)(s,a,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.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(s){return s?`${this.selection.isSelected(s)?"deselect":"select"} row ${s.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(d.x4),e.Y36(d.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(s,a){if(1&s&&(e.Gf(_.l9,7),e.Gf(h.YE,7)),2&s){let l;e.iGM(l=e.CRH())&&(a.child=l.first),e.iGM(l=e.CRH())&&(a.matSort=l.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-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"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(s,a){1&s&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(n){return a.exportDisplayedData(n)})("exportAllData",function(n){return a.exportAllData(n)}),e.TgZ(2,"table",2),e.YNc(3,O,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,T,3,3,"th",5),e.YNc(7,S,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,R,3,3,"th",5),e.YNc(10,I,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,L,3,3,"th",5),e.YNc(13,y,3,3,"td",8),e.BQk(),e.YNc(14,U,1,0,"tr",10),e.YNc(15,Z,1,0,"tr",11),e.qZA()()(),e.YNc(16,w,3,3,"perun-web-apps-alert",12),e.YNc(17,B,3,3,"perun-web-apps-alert",12)),2&s&&(e.Q6J("hidden",0===a.extSources.length||0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",a.pageSizeOptions)("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,N,e.xi3(4,10,a.dataSource,a.selection.selected.length))),e.xp6(11),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.extSources.length),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.extSources.length))},dependencies:[t.O5,h.YE,h.nU,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,b.oG,E.w,P.l,t.i8,m.X$,D.I,o.A]}),r})()},60526:(A,C,i)=>{i.d(C,{b:()=>s});var g=i(32105),h=i(9244),u=i(74281),_=i(30671),d=i(35382),e=i(64080),t=i(94650),b=i(65412),E=i(89383),P=i(36895),m=i(97392),D=i(4859),o=i(51572),c=i(73546),x=i(69773),O=i(21757),T=i(38993),S=i(62383),R=i(21330);function I(a,l){1&a&&t._UZ(0,"mat-spinner",4)}function L(a,l){1&a&&t._UZ(0,"th",12)}function y(a,l){if(1&a&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&a){const n=l.$implicit;t.xp6(1),t.hij("",n,":")}}function U(a,l){1&a&&t._UZ(0,"th",12)}function Z(a,l){if(1&a){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const M=t.oxw(4);return t.KtG(M.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function w(a,l){if(1&a&&(t.TgZ(0,"div")(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,Z,3,0,"button",16),t.ALo(9,"memberStatusDisabled"),t.qZA()),2&a){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member),""),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)&&!t.lcZ(9,12,n.member))}}function B(a,l){if(1&a){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const M=t.oxw(4);return t.KtG(M.changeVoExpiration(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function N(a,l){if(1&a&&(t.TgZ(0,"div")(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,B,3,0,"button",16),t.ALo(5,"memberStatusDisabled"),t.qZA()),2&a){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)&&!t.lcZ(5,4,n.member))}}function K(a,l){if(1&a&&(t.TgZ(0,"td",14),t.YNc(1,w,10,14,"div",3),t.YNc(2,N,6,6,"div",3),t.qZA()),2&a){const n=l.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function r(a,l){1&a&&t._UZ(0,"tr",19)}function p(a,l){if(1&a&&(t.TgZ(0,"div")(1,"table",5),t.ynx(2,6),t.YNc(3,L,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,K,3,2,"td",10),t.BQk(),t.YNc(8,r,1,0,"tr",11),t.qZA()()),2&a){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let s=(()=>{class a{constructor(n,f,M,v,W,Y){this.dialog=n,this.authResolver=f,this.apiRequest=M,this.attributesManager=v,this.translate=W,this.notificator=Y,this.voMembershipDataSource=new _.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new _.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,h.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const f=this.member.status;this.dialog.open(u.pf,n).afterClosed().subscribe(v=>{v&&(this.member=v,("VALID"===f&&("EXPIRED"===v.status||"DISABLED"===v.status)||"VALID"===v.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const f=(0,h.kZ)();f.width="400px",f.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(u.kZ,f).afterClosed().subscribe(v=>{v.success&&(v.member&&(this.member=v.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=>{"PrivilegeException"!==n.name?this.notificator.showError(n.name):this.voMembershipDataSource=new _.by(["Status"]),this.loading=!1})}}return a.\u0275fac=function(n){return new(n||a)(t.Y36(b.uw),t.Y36(d.x4),t.Y36(d.F5),t.Y36(g.H8),t.Y36(E.sK),t.Y36(d.V6))},a.\u0275cmp=t.Xpm({type:a,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,f){1&n&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content"),t.YNc(7,I,1,0,"mat-spinner",2),t.YNc(8,p,9,2,"div",3),t.qZA()()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[P.O5,m.Hw,D.lW,_.BZ,_.fO,_.w1,_.Dz,_.nj,_.ge,_.ev,_.Gk,o.Ou,c.a8,c.dk,c.dn,c.n5,E.X$,x.u,O.f,T.n,S.M,R.r],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),a})()},21330:(A,C,i)=>{i.d(C,{r:()=>h});var g=i(94650);let h=(()=>{class u{transform(d,e){return"valid"!==d.toLowerCase()||e&&"valid"!==d.toLowerCase()?d:"ACTIVE"}}return u.\u0275fac=function(d){return new(d||u)},u.\u0275pipe=g.Yjl({name:"transformMemberStatus",type:u,pure:!0}),u})()},71992:(A,C,i)=>{i.d(C,{a:()=>b});var g=i(35382),h=i(32105),u=i(54004),_=i(70262),d=i(39646),e=i(94650),t=i(94364);let b=(()=>{class E{constructor(m,D,o,c,x,O,T,S){this.authResolver=m,this.routePolicyService=D,this.router=o,this.notificator=c,this.apiRequest=x,this.memberManager=O,this.groupManager=T,this.resourceManager=S}static getBeanName(m){switch(m){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(m){const D=m.slice(1).split("/").reverse(),o={key:"",entity:{id:-1,beanName:""}};for(const c of D){if(Number(c)){if(-1===o.entity.id){o.entity.id=Number(c);continue}"services-status-"===o.key&&(o.entity.id=Number(c));break}o.key=c.concat("-",o.key)}return o.key=o.key.slice(0,o.key.length-1),o.entity.beanName=E.getBeanName(o.key.split("-")[0]),o}canActivateChild(m,D){if(this.authResolver.isPerunAdminOrObserver())return!0;const o=E.parseUrl(D.url);return o.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(o.entity.id).pipe((0,u.U)(c=>(o.entity.userId=c.userId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,_.K)(c=>this.errorRedirectUrl(c)))):o.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(o.entity.id).pipe((0,u.U)(c=>(o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,_.K)(c=>this.errorRedirectUrl(c)))):o.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(o.entity.id).pipe((0,u.U)(c=>(o.entity.facilityId=c.facilityId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,_.K)(c=>this.errorRedirectUrl(c)))):this.finalizeCanActivateChild(o)}finalizeCanActivateChild(m){return!!this.routePolicyService.canNavigate(m.key,m.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(m){if("PrivilegeException"===m.name)return this.notificator.showRouteError(),(0,d.of)(this.router.parseUrl("/notAuthorized"))}}return E.\u0275fac=function(m){return new(m||E)(e.LFG(g.x4),e.LFG(g.Ip),e.LFG(t.F0),e.LFG(g.V6),e.LFG(g.F5),e.LFG(h.uq),e.LFG(h.ff),e.LFG(h.xk))},E.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},23123:(A,C,i)=>{i.d(C,{i:()=>u});var g=i(94650),h=i(89383);let u=(()=>{class _{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return _.\u0275fac=function(e){return new(e||_)(g.Y36(h.sK,16))},_.\u0275pipe=g.Yjl({name:"displayedRole",type:_,pure:!0}),_})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/323.b4f3219efd392317.js b/dist/apps/admin-gui/323.b4f3219efd392317.js deleted file mode 100644 index 455274e7a..000000000 --- a/dist/apps/admin-gui/323.b4f3219efd392317.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[323],{15935:(I,b,i)=>{i.d(b,{D:()=>K});var D=i(95017),g=i(96308),u=i(30671),l=i(9244),h=i(32080),e=i(94650),t=i(36895),T=i(56709),v=i(98380),L=i(18750),m=i(89383),C=i(37677);function o(r,p){if(1&r){const a=e.EpF();e.TgZ(0,"th",15)(1,"mat-checkbox",16),e.NdJ("change",function(E){e.CHM(a);const x=e.oxw();return e.KtG(E?x.masterToggle():null)}),e.qZA()()}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function c(r,p){if(1&r){const a=e.EpF();e.TgZ(0,"td",17)(1,"mat-checkbox",18),e.NdJ("change",function(E){const _=e.CHM(a).$implicit,d=e.oxw();return e.KtG(E?d.selection.toggle(_):null)})("click",function(E){return E.stopPropagation()}),e.qZA()()}if(2&r){const a=p.$implicit,s=e.oxw();e.xp6(1),e.Q6J("aria-label",s.checkboxLabel(a))("checked",s.selection.isSelected(a))}}function S(r,p){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,p){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const a=p.$implicit;e.xp6(1),e.Oqu(a.id)}}function P(r,p){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 R(r,p){if(1&r&&(e.TgZ(0,"td",21),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&r){const a=p.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.name),"-name-td"),e.xp6(2),e.hij(" ",a.name," ")}}function y(r,p){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 U(r,p){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const a=p.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.type))}}function Z(r,p){1&r&&e._UZ(0,"tr",22)}function w(r,p){1&r&&e._UZ(0,"tr",23)}function N(r,p){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 B(r,p){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 K=(()=>{class r{constructor(a,s){this.authResolver=a,this.tableCheckbox=s,this.selection=new D.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 u.by(this.extSources),this.setDataSource()}exportAllData(a){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),a)}exportDisplayedData(a){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,E=s+this.dataSource.paginator.pageSize;(0,l.O6)((0,l.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,E),this.displayedColumns,r.getDataForColumn),a)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(a,s)=>(0,l.Sd)(a,s,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(a,s)=>(0,l.pR)(a,s,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(a){return a?`${this.selection.isSelected(a)?"deselect":"select"} row ${a.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(h.x4),e.Y36(h.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(a,s){if(1&a&&(e.Gf(l.l9,7),e.Gf(g.YE,7)),2&a){let E;e.iGM(E=e.CRH())&&(s.child=E.first),e.iGM(E=e.CRH())&&(s.matSort=E.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","exportDisplayedData","exportAllData"],["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&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(x){return s.exportDisplayedData(x)})("exportAllData",function(x){return s.exportAllData(x)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,o,2,3,"th",4),e.YNc(5,c,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,S,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,P,3,3,"th",7),e.YNc(11,R,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,y,3,3,"th",7),e.YNc(14,U,3,3,"td",10),e.BQk(),e.YNc(15,Z,1,0,"tr",12),e.YNc(16,w,1,0,"tr",13),e.qZA()()(),e.YNc(17,N,3,3,"perun-web-apps-alert",14),e.YNc(18,B,3,3,"perun-web-apps-alert",14)),2&a&&(e.Q6J("hidden",0===s.extSources.length||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.extSources.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.extSources.length))},dependencies:[t.O5,g.YE,g.nU,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,T.oG,v.w,L.l,t.i8,m.X$,C.A]}),r})()},60526:(I,b,i)=>{i.d(b,{b:()=>x});var D=i(32105),g=i(9244),u=i(74281),l=i(30671),h=i(32080),e=i(64080),t=i(94650),T=i(65412),v=i(89383),L=i(36895),m=i(97392),C=i(4859),o=i(51572),c=i(73546),S=i(69773),A=i(21757),P=i(38993),R=i(62383),y=i(21330);function U(_,d){1&_&&t._UZ(0,"mat-spinner",4)}function Z(_,d){1&_&&t._UZ(0,"th",12)}function w(_,d){if(1&_&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&_){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function N(_,d){1&_&&t._UZ(0,"th",12)}function B(_,d){if(1&_){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const O=t.oxw(4);return t.KtG(O.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function K(_,d){if(1&_&&(t.TgZ(0,"div")(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,B,3,0,"button",16),t.ALo(9,"memberStatusDisabled"),t.qZA()),2&_){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member),""),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)&&!t.lcZ(9,12,n.member))}}function r(_,d){if(1&_){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const O=t.oxw(4);return t.KtG(O.changeVoExpiration(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function p(_,d){if(1&_&&(t.TgZ(0,"div")(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,r,3,0,"button",16),t.ALo(5,"memberStatusDisabled"),t.qZA()),2&_){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)&&!t.lcZ(5,4,n.member))}}function a(_,d){if(1&_&&(t.TgZ(0,"td",14),t.YNc(1,K,10,14,"div",3),t.YNc(2,p,6,6,"div",3),t.qZA()),2&_){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function s(_,d){1&_&&t._UZ(0,"tr",19)}function E(_,d){if(1&_&&(t.TgZ(0,"div")(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,w,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,N,1,0,"th",7),t.YNc(7,a,3,2,"td",10),t.BQk(),t.YNc(8,s,1,0,"tr",11),t.qZA()()),2&_){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let x=(()=>{class _{constructor(n,f,O,M,W,Y){this.dialog=n,this.authResolver=f,this.apiRequest=O,this.attributesManager=M,this.translate=W,this.notificator=Y,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,g.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const f=this.member.status;this.dialog.open(u.pf,n).afterClosed().subscribe(M=>{M&&(this.member=M,("VALID"===f&&("EXPIRED"===M.status||"DISABLED"===M.status)||"VALID"===M.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const f=(0,g.kZ)();f.width="400px",f.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(u.kZ,f).afterClosed().subscribe(M=>{M.success&&(M.member&&(this.member=M.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 f=n.error;"PrivilegeException"!==f.name?this.notificator.showError(f.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return _.\u0275fac=function(n){return new(n||_)(t.Y36(T.uw),t.Y36(h.x4),t.Y36(h.F5),t.Y36(D.H8),t.Y36(v.sK),t.Y36(h.V6))},_.\u0275cmp=t.Xpm({type:_,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,f){1&n&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content"),t.YNc(7,U,1,0,"mat-spinner",2),t.YNc(8,E,9,2,"div",3),t.qZA()()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[L.O5,m.Hw,C.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,o.Ou,c.a8,c.dk,c.dn,c.n5,v.X$,S.u,A.f,P.n,R.M,y.r],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),_})()},21330:(I,b,i)=>{i.d(b,{r:()=>g});var D=i(94650);let g=(()=>{class u{transform(h,e){return"valid"!==h.toLowerCase()||e&&"valid"!==h.toLowerCase()?h:"ACTIVE"}}return u.\u0275fac=function(h){return new(h||u)},u.\u0275pipe=D.Yjl({name:"transformMemberStatus",type:u,pure:!0}),u})()},71992:(I,b,i)=>{i.d(b,{a:()=>T});var D=i(32080),g=i(32105),u=i(54004),l=i(70262),h=i(39646),e=i(94650),t=i(94364);let T=(()=>{class v{constructor(m,C,o,c,S,A,P,R){this.authResolver=m,this.routePolicyService=C,this.router=o,this.notificator=c,this.apiRequest=S,this.memberManager=A,this.groupManager=P,this.resourceManager=R}static getBeanName(m){switch(m){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(m){const C=m.slice(1).split("/").reverse(),o={key:"",entity:{id:-1,beanName:""}};for(const c of C){if(Number(c)){if(-1===o.entity.id){o.entity.id=Number(c);continue}"services-status-"===o.key&&(o.entity.id=Number(c));break}o.key=c.concat("-",o.key)}return o.key=o.key.slice(0,o.key.length-1),o.entity.beanName=v.getBeanName(o.key.split("-")[0]),o}canActivateChild(m,C){if(this.authResolver.isPerunAdminOrObserver())return!0;const o=v.parseUrl(C.url);return o.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(o.entity.id).pipe((0,u.U)(c=>(o.entity.userId=c.userId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):o.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(o.entity.id).pipe((0,u.U)(c=>(o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):o.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(o.entity.id).pipe((0,u.U)(c=>(o.entity.facilityId=c.facilityId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):this.finalizeCanActivateChild(o)}finalizeCanActivateChild(m){return!!this.routePolicyService.canNavigate(m.key,m.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(m){if("PrivilegeException"===m.name)return this.notificator.showRouteError(),(0,h.of)(this.router.parseUrl("/notAuthorized"))}}return v.\u0275fac=function(m){return new(m||v)(e.LFG(D.x4),e.LFG(D.Ip),e.LFG(t.F0),e.LFG(D.V6),e.LFG(D.F5),e.LFG(g.uq),e.LFG(g.ff),e.LFG(g.xk))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},23123:(I,b,i)=>{i.d(b,{i:()=>u});var D=i(94650),g=i(89383);let u=(()=>{class l{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return l.\u0275fac=function(e){return new(e||l)(D.Y36(g.sK,16))},l.\u0275pipe=D.Yjl({name:"displayedRole",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/374.0e0b65c71ea9dd43.js b/dist/apps/admin-gui/374.0e0b65c71ea9dd43.js new file mode 100644 index 000000000..17531cb60 --- /dev/null +++ b/dist/apps/admin-gui/374.0e0b65c71ea9dd43.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[374],{54668:(x,P,n)=>{n.d(P,{l:()=>o});var C=n(65412),u=n(32105),S=n(35382),s=n(10036),e=n(95017),b=n(64080),l=n(24006),t=n(94650),v=n(89383),E=n(36895),R=n(59549),N=n(284),M=n(97392),L=n(4859),U=n(51572),D=n(98380),h=n(64877);function f(r,d){if(1&r&&t._UZ(0,"app-users-list",14),2&r){const m=t.oxw(2);t.Q6J("displayedColumns",m.displayedColumns)("selection",m.selection)("tableId",m.tableId)("disableRouting",!0)("users",m.identities)}}function A(r,d){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,f,1,5,"app-users-list",13),t.qZA()),2&r){const m=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==m.identities&&m.identities.length>0)}}function c(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function p(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function a(r,d){1&r&&t._UZ(0,"mat-spinner",17)}let o=(()=>{class r{constructor(m,I,Z,B,F,Q){this.dialogRef=m,this.data=I,this.userManager=Z,this.storeService=B,this.notificator=F,this.translate=Q,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.p4("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let m,I;this.loading=!0,this.isService?(m=this.selection.selected[0].id,I=this.userId):(m=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(m,I).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let m=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL];m=m.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,m).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(m){"Enter"===m.key&&this.onSearchByString()}filterIdentities(m){return m.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return r.\u0275fac=function(m){return new(m||r)(t.Y36(C.so),t.Y36(C.WI),t.Y36(u.Fv),t.Y36(S.d6),t.Y36(S.V6),t.Y36(v.sK))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(m,I){1&m&&(t.TgZ(0,"div",0),t.NdJ("keyup",function(B){return I.onKeyInput(B)}),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",2)(5,"mat-form-field",3),t._UZ(6,"input",4),t.ALo(7,"translate"),t.TgZ(8,"mat-error"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return I.onSearchByString()}),t.TgZ(12,"mat-icon"),t._uU(13,"search"),t.qZA()(),t.YNc(14,A,2,1,"div",6),t.YNc(15,c,3,3,"perun-web-apps-alert",7),t.YNc(16,p,3,3,"perun-web-apps-alert",8),t.qZA(),t.YNc(17,a,1,0,"mat-spinner",9),t.TgZ(18,"div",10)(19,"button",11),t.NdJ("click",function(){return I.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",12),t.NdJ("click",function(){return I.onAdd()}),t._uU(23),t.ALo(24,"translate"),t.qZA()()()),2&m&&(t.Tol(I.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),t.xp6(4),t.s9C("placeholder",t.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),t.Q6J("formControl",I.searchCtrl),t.xp6(3),t.hij(" ",t.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),t.xp6(2),t.Q6J("disabled",I.loading),t.xp6(3),t.Q6J("ngIf",!I.loading),t.xp6(1),t.Q6J("ngIf",!I.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),t.xp6(1),t.Q6J("ngIf",I.loading),t.xp6(3),t.hij(" ",t.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===I.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[E.O5,R.TO,R.KE,N.Nt,l.Fj,l.JJ,l.oH,M.Hw,L.lW,C.uh,C.xY,C.H8,U.Ou,D.w,h.C,v.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),r})()},94814:(x,P,n)=>{n.d(P,{B:()=>h});var C=n(32105),u=n(65412),S=n(35382),s=n(30671),e=n(94650),b=n(89383),l=n(36895),t=n(4859),v=n(98380),E=n(31359);function R(f,A){1&f&&e._UZ(0,"th",13)}function N(f,A){if(1&f&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&f){const c=A.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,c))}}function M(f,A){1&f&&e._UZ(0,"tr",15)}function L(f,A){1&f&&e._UZ(0,"tr",16)}function U(f,A){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function D(f,A){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let h=(()=>{class f{constructor(c,p,a,o,r,d){this.dialogRef=c,this.data=p,this.userManager=a,this.notificator=o,this.translate=r,this.store=d,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(p=>{this.disconnectingLastOwner=1===p.length})}onConfirm(){let c,p;this.isService?(c=this.dataSource.data[0].id,p=this.userId):(c=this.userId,p=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,p).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return f.\u0275fac=function(c){return new(c||f)(e.Y36(u.so),e.Y36(u.WI),e.Y36(C.Fv),e.Y36(S.V6),e.Y36(b.sK),e.Y36(S.d6))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,p){1&c&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,R,1,0,"th",5),e.YNc(14,N,3,3,"td",6),e.BQk(),e.YNc(15,M,1,0,"tr",7),e.YNc(16,L,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,D,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return p.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return p.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&c&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+p.targetTitle)),e.xp6(2),e.Tol(p.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+p.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",p.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",p.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",p.displayedColumns),e.xp6(1),e.Q6J("ngIf",p.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",p.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[l.O5,t.lW,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.uh,u.xY,u.H8,v.w,b.X$,E.d]}),f})()},29862:(x,P,n)=>{n.d(P,{x:()=>D});var C=n(32105),u=n(65412),S=n(35382),s=n(24006),e=n(94650),b=n(89383),l=n(36895),t=n(59549),v=n(284),E=n(4859);function R(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function N(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function M(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function L(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let D=(()=>{class h{constructor(A,c,p,a,o){this.dialogRef=A,this.data=c,this.userService=p,this.notificator=a,this.translateService=o,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.p4(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.p4(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.p4(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.p4(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.p4(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return h.\u0275fac=function(A){return new(A||h)(e.Y36(u.so),e.Y36(u.WI),e.Y36(C.Fv),e.Y36(S.V6),e.Y36(b.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(A,c){1&A&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,R,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,N,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,M,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,L,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return c.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return c.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&A&&(e.Tol(c.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",c.titleBefore),e.xp6(2),e.Q6J("ngIf",c.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",c.titleAfter),e.xp6(2),e.Q6J("ngIf",c.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",c.firstName),e.xp6(2),e.Q6J("ngIf",c.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",c.middleName),e.xp6(2),e.Q6J("ngIf",c.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",c.lastName),e.xp6(2),e.Q6J("ngIf",c.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[l.O5,t.TO,t.KE,v.Nt,s.Fj,s.JJ,s.Q7,s.oH,E.lW,u.xY,u.H8,b.X$]}),h})()},98973:(x,P,n)=>{n.d(P,{u:()=>L});var C=n(35382),u=n(94650),S=n(94364),s=n(36895),e=n(3848),b=n(19191),l=n(12651),t=n(89383);function v(U,D){1&U&&(u._uU(0),u.ALo(1,"translate")),2&U&&u.hij(" ",u.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function E(U,D){if(1&U&&u._UZ(0,"app-one-entity-attribute-page",5),2&U){const h=u.oxw();u.Q6J("entityId",h.userId)("entity","user")}}function R(U,D){1&U&&(u._uU(0),u.ALo(1,"translate"),u.ALo(2,"translate")),2&U&&u.AsE(" ",u.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",u.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function N(U,D){if(1&U&&u._UZ(0,"app-two-entity-attribute-page",6),2&U){const h=u.oxw(2);u.Q6J("firstEntity","user")("firstEntityId",h.userId)("secondEntity","facility")}}function M(U,D){1&U&&(u.TgZ(0,"mat-tab"),u.YNc(1,R,3,6,"ng-template",2),u.YNc(2,N,1,3,"ng-template",3),u.qZA())}let L=(()=>{class U{constructor(h,f,A){this.route=h,this.store=f,this.authResolver=A}ngOnInit(){this.route.parent.params.subscribe(h=>{this.userId=Number(h.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(h){return new(h||U)(u.Y36(S.gz),u.Y36(C.d6),u.Y36(C.x4))},U.\u0275cmp=u.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(h,f){2&h&&u.ekj("router-component",f.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(h,f){1&h&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group")(4,"mat-tab",1),u.YNc(5,v,2,3,"ng-template",2),u.YNc(6,E,1,2,"ng-template",3),u.qZA(),u.YNc(7,M,3,0,"mat-tab",4),u.qZA()),2&h&&(u.xp6(1),u.Oqu(u.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),u.xp6(6),u.Q6J("ngIf",f.userFacilityAttAuth))},dependencies:[s.O5,e.SP,e.uD,e.uX,e.Vc,b.Y,l.t,t.X$]}),U})()},85985:(x,P,n)=>{n.d(P,{u:()=>c});var C=n(35382),u=n(32105),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(24179),v=n(96214),E=n(7434),R=n(89383);function N(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function M(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function L(p,a){1&p&&s._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function D(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw();s.Q6J("disableMembers",!1)("groups",o.membersGroups)("displayedColumns",s.DdM(5,U))("filter",o.memberFilterValue)("tableId",o.tableId)}}function h(p,a){1&p&&s._UZ(0,"mat-spinner",7)}function f(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw(2);s.Q6J("disableMembers",!1)("groups",o.adminsGroups)("displayedColumns",s.DdM(5,U))("filter",o.adminFilterValue)("tableId",o.adminTableId)}}function A(p,a){if(1&p){const o=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(o);const d=s.oxw();return s.KtG(d.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){s.CHM(o);const m=s.oxw();return s.KtG(m.adminFilter(d))}),s.qZA(),s.YNc(6,h,1,0,"mat-spinner",3),s.YNc(7,f,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&p){const o=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.adminRefresh),s.xp6(1),s.Q6J("ngIf",!o.adminRefresh)}}let c=(()=>{class p{constructor(o,r,d,m,I){this.usersService=o,this.memberService=r,this.groupService=d,this.store=m,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=S.KE,this.adminTableId=S.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(o=>this.userId=Number(o.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(o){this.memberFilterValue=o}adminFilter(o){this.adminFilterValue=o}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.adminsGroups=o,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;for(const r of this.vos)this.memberService.getMemberByUser(r.id,this.userId).subscribe(d=>{this.groupService.getMemberGroups(d.id).subscribe(m=>{this.membersGroups=this.membersGroups.concat(m),this.vos.indexOf(r)===this.vos.length-1&&(this.memberRefresh=!1)})});0===o.length&&(this.memberRefresh=!1)})}}return p.\u0275fac=function(o){return new(o||p)(s.Y36(u.Fv),s.Y36(u.uq),s.Y36(u.ff),s.Y36(C.d6),s.Y36(e.gz))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(o,r){2&o&&s.ekj("router-component",r.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(o,r){1&o&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return r.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(m){return r.memberFilter(m)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,D,1,6,"perun-web-apps-groups-list",4),s.YNc(6,A,8,6,"div",5)),2&o&&(s.Q6J("ngIf",r.showPrincipal),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal))},dependencies:[b.O5,l.Ou,t.W,v.t,E.L,R.X$]}),p})()},74837:(x,P,n)=>{n.d(P,{j:()=>A});var C=n(32105),u=n(35382),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(87831),v=n(96214),E=n(7434),R=n(89383);function N(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function M(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function L(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function U(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw();s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.memberTableId)("filterValue",a.memberFilterValue)("vos",a.vosWhereIsMember)}}function D(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function h(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw(2);s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.adminTableId)("filterValue",a.adminFilterValue)("vos",a.vosWhereIsAdmin)}}function f(c,p){if(1&c){const a=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(r){s.CHM(a);const d=s.oxw();return s.KtG(d.applyAdminFilter(r))}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",3),s.YNc(7,h,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const a=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",a.adminRefresh),s.xp6(1),s.Q6J("ngIf",!a.adminRefresh)}}let A=(()=>{class c{constructor(a,o,r,d){this.usersService=a,this.authResolver=o,this.store=r,this.route=d,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=S.YF,this.memberTableId=S.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(a=>this.userId=Number(a.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(a=>{this.vosWhereIsMember=a,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(a=>{this.vosWhereIsAdmin=a,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(a){this.memberFilterValue=a}applyAdminFilter(a){this.adminFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(s.Y36(C.Fv),s.Y36(u.x4),s.Y36(u.d6),s.Y36(e.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(a,o){2&a&&s.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(a,o){1&a&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return o.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){return o.applyMemberFilter(d)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,U,1,4,"perun-web-apps-vos-list",4),s.YNc(6,f,8,6,"div",5)),2&a&&(s.Q6J("ngIf",o.isMyProfile),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile))},dependencies:[b.O5,l.Ou,t.Z,v.t,E.L,R.X$]}),c})()},17755:(x,P,n)=>{n.d(P,{Z:()=>a});var C=n(32105),u=n(30671),S=n(35382),s=n(64080),e=n(9244),b=n(74281),l=n(94650),t=n(94364),v=n(65412),E=n(36895),R=n(97392),N=n(4859),M=n(73546),L=n(71135),U=n(89383);function D(o,r){1&o&&l._UZ(0,"th",12)}function h(o,r){if(1&o&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.displayName,": ")}}function f(o,r){1&o&&l._UZ(0,"th",12)}function A(o,r){if(1&o){const d=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){l.CHM(d);const I=l.oxw(2);return l.KtG(I.changeEmail())}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA()()()}if(2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.value," ")}}function c(o,r){1&o&&l._UZ(0,"tr",16)}function p(o,r){if(1&o&&(l.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA()()(),l.TgZ(7,"mat-card-content")(8,"table",5),l.ynx(9,6),l.YNc(10,D,1,0,"th",7),l.YNc(11,h,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,f,1,0,"th",7),l.YNc(14,A,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA()()()()),2&o){const d=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",d.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",d.displayedColumns)}}let a=(()=>{class o{constructor(d,m,I,Z,B){this.userService=d,this.attributeService=m,this.storeService=I,this.route=Z,this.dialog=B,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(d=>{d.userId?this.userService.getUserById(Number(d.userId)).subscribe(m=>{this.user=m,this.isServiceUser=m.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(m=>{this.preferredMail=m,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const d=(0,e.kZ)();d.width="350px",d.data={userId:this.userID},this.dialog.open(b.gr,d).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(Z=>{this.preferredMail=Z,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return o.\u0275fac=function(d){return new(d||o)(l.Y36(C.Fv),l.Y36(C.H8),l.Y36(S.d6),l.Y36(t.gz),l.Y36(v.uw))},o.\u0275cmp=l.Xpm({type:o,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(d,m){2&d&&l.ekj("router-component",m.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(d,m){1&d&&(l.YNc(0,p,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&d&&(l.Q6J("ngIf",m.inMyProfile),l.xp6(1),l.Q6J("items",m.navItems)("size","small"))},dependencies:[E.O5,R.Hw,N.lW,u.BZ,u.fO,u.w1,u.Dz,u.nj,u.ge,u.ev,u.Gk,M.a8,M.dk,M.dn,M.n5,L.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),o})()},6097:(x,P,n)=>{n.d(P,{t:()=>b});var C=n(32105),u=n(35382),S=n(94650),s=n(94364),e=n(34775);let b=(()=>{class l{constructor(v,E,R){this.authzResolverService=v,this.route=E,this.store=R,this.roles=new Map,this.roleNames=[],this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER","MEMBERSHIP","GROUPMEMBERSHIPMANAGER"]}ngOnInit(){this.outerLoading=!0,this.showDescription=!0,this.route.parent.params.subscribe(v=>{if(v.userId)this.userId=Number(v.userId),this.authzResolverService.getUserRoles(this.userId).subscribe(E=>{this.roleNames=Object.keys(E).map(R=>R.toUpperCase()),this.entityType="USER",this.prepareRoles(E)});else{const E=this.store.getPerunPrincipal();this.userId=E.userId,this.roleNames=Object.keys(E.roles),this.entityType="SELF",this.prepareRoles(E.roles)}})}prepareRoles(v){this.roleNames.forEach(E=>{const R=new Map;Object.keys(v[E]).forEach(M=>{R.set(M,v[E][M])}),this.roles.set(E,R)}),this.roleNames=this.roleNames.filter(E=>!this.roleFilter.includes(E)),this.outerLoading=!1}}return l.\u0275fac=function(v){return new(v||l)(S.Y36(C.Ct),S.Y36(s.gz),S.Y36(u.d6))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(v,E){2&v&&S.ekj("router-component",E.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","showDescription","entityType"]],template:function(v,E){1&v&&S._UZ(0,"app-perun-web-apps-roles-page",0),2&v&&S.Q6J("outerLoading",E.outerLoading)("roles",E.roles)("roleNames",E.roleNames)("entityId",E.userId)("showDescription",E.showDescription)("entityType",E.entityType)},dependencies:[e._]}),l})()},46597:(x,P,n)=>{n.d(P,{d:()=>A});var C=n(10036),u=n(32105),S=n(95017),s=n(9244),e=n(54668),b=n(94814),l=n(35382),t=n(94650),v=n(65412),E=n(94364),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(c,p){if(1&c&&(t._UZ(0,"app-users-list",6),t.ALo(1,"translate")),2&c){const a=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",a.disableRouting)("displayedColumns",a.displayedColumns)("selection",a.selection)("tableId",a.tableId)("users",a.associatedUsers)}}function f(c,p){1&c&&t._UZ(0,"mat-spinner",7)}let A=(()=>{class c{constructor(a,o,r,d,m){this.dialog=a,this.router=o,this.authResolver=r,this.userManager=d,this.entityStorageService=m,this.loading=!1,this.selection=new S.Ov(!1,[]),this.associatedUsers=[],this.tableId=C.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const a=(0,s.kZ)();a.width="1250px",a.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,a).afterClosed().subscribe(r=>{r&&this.refreshTable()})}onRemove(){const a=(0,s.kZ)();a.width="650px",a.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(b.B,a).afterClosed().subscribe(r=>{r&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(v.uw),t.Y36(E.F0),t.Y36(l.x4),t.Y36(u.Fv),t.Y36(l.fb))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(a,o){1&a&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onAdd()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return o.onRemove()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,h,2,8,"app-users-list",4),t.qZA(),t.YNc(12,f,1,0,"mat-spinner",5)),2&a&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),c})()},97453:(x,P,n)=>{n.d(P,{R:()=>p});var C=n(95017),u=n(32105),S=n(10036),s=n(9244),e=n(54668),b=n(94814),l=n(35382),t=n(94650),v=n(94364),E=n(65412),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&a&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function f(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&a){const r=t.oxw();t.Q6J("disabled",0===r.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function A(a,o){1&a&&t._UZ(0,"mat-spinner",8)}function c(a,o){if(1&a&&(t._UZ(0,"app-users-list",9),t.ALo(1,"translate")),2&a){const r=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("routeToAdmin",r.routeToAdminSection)("users",r.identities)}}let p=(()=>{class a{constructor(r,d,m,I,Z,B){this.route=r,this.dialog=d,this.router=m,this.userManager=I,this.authResolver=Z,this.store=B,this.loading=!1,this.selection=new C.Ov(!1,[]),this.identities=[],this.tableId=S.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(r=>{this.userId=Number(r.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(r=>{this.identities=r,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(b.B,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}}return a.\u0275fac=function(r){return new(r||a)(t.Y36(v.gz),t.Y36(E.uw),t.Y36(v.F0),t.Y36(u.Fv),t.Y36(l.x4),t.Y36(l.d6))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(r,d){1&r&&(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 d.refreshTable()}),t.qZA(),t.YNc(4,h,3,3,"button",2),t.YNc(5,f,3,4,"button",3),t.YNc(6,A,1,0,"mat-spinner",4),t.YNc(7,c,2,8,"app-users-list",5)),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",d.addIdentity),t.xp6(1),t.Q6J("ngIf",d.removeIdentity),t.xp6(1),t.Q6J("ngIf",d.loading),t.xp6(1),t.Q6J("ngIf",!d.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),a})()},46374:(x,P,n)=>{n.r(P),n.d(P,{UsersModule:()=>Qe});var C=n(36895),u=n(94364),S=n(74837),s=n(85985),e=n(94650),b=n(61283);let l=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:1,vars:0,template:function(i,g){1&i&&e._UZ(0,"app-animated-router-outlet")},dependencies:[b.A]}),_})();var t=n(32105),v=n(51572),E=n(71135);function R(_,T){1&_&&e._UZ(0,"mat-spinner",2)}function N(_,T){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("items",i.navItems)("size","small")}}let M=(()=>{class _{constructor(i,g){this.route=i,this.userManager=g,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(i=>{const g=Number(i.userId);this.userManager.getUserById(g).subscribe(O=>{this.isServiceUser=O.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(u.gz),e.Y36(t.Fv))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.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(i,g){1&i&&(e.YNc(0,R,1,0,"mat-spinner",0),e.YNc(1,N,2,2,"div",1)),2&i&&(e.Q6J("ngIf",g.loading),e.xp6(1),e.Q6J("ngIf",!g.loading))},dependencies:[C.O5,v.Ou,E.L]}),_})();var L=n(98973),U=n(33604),D=n(9244),h=n(6335),f=n(3238),A=n(59549),c=n(84385),p=n(89383);function a(_,T){if(1&_&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&_){const i=T.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}let o=(()=>{class _{constructor(i){this.guiConfigService=i,this.tablePageSizeOptions=D.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(h.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(h.Rc,this.preferredTablePageSize)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(h.Ng))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,g){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(){return g.updatePreferredTablePageSize()})("valueChange",function(y){return g.preferredTablePageSize=y}),e.YNc(9,a,2,2,"mat-option",4),e.qZA()()()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",g.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",g.tablePageSizeOptions))},dependencies:[C.sg,f.ey,A.KE,A.hX,c.gD,p.X$]}),_})();var r=n(17755),d=n(35382),m=n(77968),I=n(97392),Z=n(10266),B=n(4235),F=n(31359);const Q=function(){return{color:"black"}},H=function(){return["/myProfile"]};function V(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(16,Q)),e.xp6(4),e.Q6J("routerLink",e.DdM(17,H)),e.xp6(1),e.hij(" ",e.lcZ(9,10,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let j=(()=>{class _{constructor(i,g,O){this.sideMenuService=i,this.store=g,this.router=O}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(d.d6),e.Y36(u.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(i,g){1&i&&e.YNc(0,V,17,18,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[C.O5,C.PC,u.yS,I.Hw,Z.gM,B.W,b.A,p.X$,F.d]}),_})();var X=n(6097),$=n(97453),k=n(69024),q=n(29862),G=n(65412),K=n(4859);function ee(_,T){1&_&&e._UZ(0,"mat-spinner",11)}function te(_,T){if(1&_){const i=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(i);const O=e.oxw(2);return e.KtG(O.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const se=function(){return{color:"black"}},ne=function(_){return["/myProfile/service-identities",_]};function ie(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ee,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,te,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(22,se)),e.xp6(4),e.Q6J("routerLink",e.VKq(23,ne,i.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,14,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(1),e.Q6J("ngIf",i.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,16,"ADMIN_USER.UUID"),": ",i.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let re=(()=>{class _{constructor(i,g,O,y,W,w,J){this.sideMenuService=i,this.usersService=g,this.sideMenuItemService=O,this.route=y,this.dialog=W,this.authResolver=w,this.entityStorageService=J,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(i=>{const g=Number(i.userId);this.entityStorageService.setEntity({id:g,beanName:"User"}),this.usersService.getUserById(g).subscribe(O=>{this.user=O;const y=this.sideMenuItemService.parseServiceIdentity(O);this.sideMenuService.setUserItems([y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const i=(0,D.kZ)();i.width="450px",i.data={theme:"admin-theme",user:this.user},this.dialog.open(q.x,i).afterClosed().subscribe(O=>{O&&this.usersService.getUserById(this.user.id).subscribe(y=>{this.user=y})})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(t.Fv),e.Y36(k.V),e.Y36(u.gz),e.Y36(G.uw),e.Y36(d.x4),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(i,g){1&i&&e.YNc(0,ie,22,25,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[C.O5,C.PC,u.yS,I.Hw,K.lW,v.Ou,Z.gM,B.W,b.A,p.X$,F.d]}),_})(),ae=(()=>{class _{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-authentication",url:"authentication",label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(i,g){1&i&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&i&&e.Q6J("items",g.navItems)("size","small")},dependencies:[E.L]}),_})();var oe=n(46597),Y=n(24006),le=n(28499),_e=n(95406);function ue(_,T){if(1&_&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("formGroup",i.formGroup)("filteredNamespace",i.data.filteredNamespaces)}}function ce(_,T){1&_&&e._UZ(0,"mat-spinner",9)}let pe=(()=>{class _{constructor(i,g,O,y,W,w,J,ze,He,Ve){this.dialogRef=i,this.data=g,this.formBuilder=O,this.usersManagerService=y,this.membersManagerService=W,this.attributesManagerService=w,this.apiRequestConfiguration=J,this.notificator=ze,this.translate=He,this.cd=Ve,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Y.kI.pattern("^[a-z][a-z0-9_-]+$"),Y.kI.maxLength(15),Y.kI.minLength(2)]],passwordCtrl:["",Y.kI.required,[(0,le.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:D.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("loginCtrl").value;if(g)this.setLogin(i,g);else{const O=`urn:perun:user:attribute-def:def:login-namespace:${i}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(y=>{this.usersManagerService.generateAccountForName(i,y.value).subscribe(w=>{this.setLogin(i,w[O])},()=>this.processing=!1)})}}setLogin(i,g){this.usersManagerService.setLogin(this.userId,g,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:i,password:g}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.so),e.Y36(G.WI),e.Y36(Y.QS),e.Y36(t.Fv),e.Y36(t.uq),e.Y36(t.H8),e.Y36(d.F5),e.Y36(d.V6),e.Y36(p.sK),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(i,g){1&i&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ue,2,2,"div",2),e.YNc(5,ce,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return g.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return g.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!g.processing),e.xp6(1),e.Q6J("ngIf",g.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===g.formGroup.get("namespaceCtrl").value||g.formGroup.invalid||g.formGroup.pending||g.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[C.O5,Y.JL,Y.sg,K.lW,G.xY,G.H8,v.Ou,_e.r,p.X$]}),_})();var de=n(96214),me=n(53599);const ge=["logins"],fe=[{path:"",component:j,children:[{path:"",component:r.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:L.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:S.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:X.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:$.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:M,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:o,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:re,children:[{path:"",component:ae},{path:"associated-users",component:oe.d},{path:"authentication",component:(()=>{class _{constructor(i,g){this.dialog=i,this.entityStorageService=g,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const i=(0,D.kZ)();i.width="500px",i.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(pe,i).afterClosed().subscribe(O=>{O&&this.logins.refreshTable()})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.uw),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-user-setting-authentication"]],viewQuery:function(i,g){if(1&i&&e.Gf(ge,5),2&i){let O;e.iGM(O=e.CRH())&&(g.logins=O.first)}},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(i,g){if(1&i){const O=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(O);const W=e.MAs(8);return e.KtG(W.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return g.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(W){return g.filteredNamespaces=W}),e.qZA()}2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.AUTHENTICATION.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.AUTHENTICATION.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[K.lW,de.t,me.N,p.X$]}),_})()}]}];let Ee=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[u.Bz.forChild(fe),u.Bz]}),_})();var Ie=n(47957),Te=n(284),ve=n(23267),Ue=n(37084),Ae=n(96308),Ce=n(30671),Se=n(3848),De=n(35423),Oe=n(56709),Re=n(17009),be=n(73162),Me=n(90455),Pe=n(99602),Ne=n(71948),Le=n(44850),Ze=n(98739),z=n(73546),ye=n(86257),xe=n(73555),Be=n(77331),Ye=n(28255),We=n(67376),Ge=n(63189),Ke=n(42673),we=n(11243),Je=n(19516),Fe=n(14264);let Qe=(()=>{class _{constructor(i){this.translate=i,i.addLangs(["en","cs"])}}return _.\u0275fac=function(i){return new(i||_)(e.LFG(p.sK))},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[C.ez,Ee,Ie.Bb,Te.c,A.lN,Y.UX,Y.u5,I.Ps,ve.SJ,Ue.To,p.aw.forChild({}),K.ot,Ae.JX,Ce.p0,Se.Nh,De.dp,K.ot,Oe.p9,G.Is,c.LD,Re.ZX,v.Cq,be.Cv,Z.AV,Me.rP,Pe.FA,f.XK,Ne.Fk,Le.t,f.si,Ze.TU,z.QW,ye.T5,xe._t,z.QW,Be.Hi,Ye.Tx,We.Cl,Ge.r,Ke.g,U.ez,we.r,Je.d4,Fe.m]}),_})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/374.44bee678b6d534bf.js b/dist/apps/admin-gui/374.44bee678b6d534bf.js deleted file mode 100644 index 5804424b1..000000000 --- a/dist/apps/admin-gui/374.44bee678b6d534bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[374],{54668:(x,P,n)=>{n.d(P,{l:()=>o});var A=n(65412),u=n(32105),S=n(32080),s=n(10036),e=n(95017),b=n(64080),l=n(24006),t=n(94650),v=n(89383),E=n(36895),R=n(59549),N=n(284),M=n(97392),L=n(4859),U=n(51572),D=n(98380),h=n(64877);function f(r,d){if(1&r&&t._UZ(0,"app-users-list",14),2&r){const m=t.oxw(2);t.Q6J("displayedColumns",m.displayedColumns)("selection",m.selection)("tableId",m.tableId)("disableRouting",!0)("users",m.identities)}}function C(r,d){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,f,1,5,"app-users-list",13),t.qZA()),2&r){const m=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==m.identities&&m.identities.length>0)}}function c(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function p(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function a(r,d){1&r&&t._UZ(0,"mat-spinner",17)}let o=(()=>{class r{constructor(m,I,Z,B,F,Q){this.dialogRef=m,this.data=I,this.userManager=Z,this.storeService=B,this.notificator=F,this.translate=Q,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.p4("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let m,I;this.loading=!0,this.isService?(m=this.selection.selected[0].id,I=this.userId):(m=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(m,I).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let m=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL];m=m.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,m).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(m){"Enter"===m.key&&this.onSearchByString()}filterIdentities(m){return m.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return r.\u0275fac=function(m){return new(m||r)(t.Y36(A.so),t.Y36(A.WI),t.Y36(u.Fv),t.Y36(S.d6),t.Y36(S.V6),t.Y36(v.sK))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(m,I){1&m&&(t.TgZ(0,"div",0),t.NdJ("keyup",function(B){return I.onKeyInput(B)}),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",2)(5,"mat-form-field",3),t._UZ(6,"input",4),t.ALo(7,"translate"),t.TgZ(8,"mat-error"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return I.onSearchByString()}),t.TgZ(12,"mat-icon"),t._uU(13,"search"),t.qZA()(),t.YNc(14,C,2,1,"div",6),t.YNc(15,c,3,3,"perun-web-apps-alert",7),t.YNc(16,p,3,3,"perun-web-apps-alert",8),t.qZA(),t.YNc(17,a,1,0,"mat-spinner",9),t.TgZ(18,"div",10)(19,"button",11),t.NdJ("click",function(){return I.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",12),t.NdJ("click",function(){return I.onAdd()}),t._uU(23),t.ALo(24,"translate"),t.qZA()()()),2&m&&(t.Tol(I.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),t.xp6(4),t.s9C("placeholder",t.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),t.Q6J("formControl",I.searchCtrl),t.xp6(3),t.hij(" ",t.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),t.xp6(2),t.Q6J("disabled",I.loading),t.xp6(3),t.Q6J("ngIf",!I.loading),t.xp6(1),t.Q6J("ngIf",!I.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),t.xp6(1),t.Q6J("ngIf",I.loading),t.xp6(3),t.hij(" ",t.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===I.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[E.O5,R.TO,R.KE,N.Nt,l.Fj,l.JJ,l.oH,M.Hw,L.lW,A.uh,A.xY,A.H8,U.Ou,D.w,h.C,v.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),r})()},94814:(x,P,n)=>{n.d(P,{B:()=>h});var A=n(32105),u=n(65412),S=n(32080),s=n(30671),e=n(94650),b=n(89383),l=n(36895),t=n(4859),v=n(98380),E=n(31359);function R(f,C){1&f&&e._UZ(0,"th",13)}function N(f,C){if(1&f&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&f){const c=C.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,c))}}function M(f,C){1&f&&e._UZ(0,"tr",15)}function L(f,C){1&f&&e._UZ(0,"tr",16)}function U(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function D(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let h=(()=>{class f{constructor(c,p,a,o,r,d){this.dialogRef=c,this.data=p,this.userManager=a,this.notificator=o,this.translate=r,this.store=d,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(p=>{this.disconnectingLastOwner=1===p.length})}onConfirm(){let c,p;this.isService?(c=this.dataSource.data[0].id,p=this.userId):(c=this.userId,p=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,p).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return f.\u0275fac=function(c){return new(c||f)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK),e.Y36(S.d6))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,p){1&c&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,R,1,0,"th",5),e.YNc(14,N,3,3,"td",6),e.BQk(),e.YNc(15,M,1,0,"tr",7),e.YNc(16,L,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,D,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return p.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return p.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&c&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+p.targetTitle)),e.xp6(2),e.Tol(p.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+p.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",p.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",p.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",p.displayedColumns),e.xp6(1),e.Q6J("ngIf",p.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",p.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[l.O5,t.lW,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.uh,u.xY,u.H8,v.w,b.X$,E.d]}),f})()},29862:(x,P,n)=>{n.d(P,{x:()=>D});var A=n(32105),u=n(65412),S=n(32080),s=n(24006),e=n(94650),b=n(89383),l=n(36895),t=n(59549),v=n(284),E=n(4859);function R(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function N(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function M(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function L(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let D=(()=>{class h{constructor(C,c,p,a,o){this.dialogRef=C,this.data=c,this.userService=p,this.notificator=a,this.translateService=o,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.p4(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.p4(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.p4(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.p4(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.p4(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(C=>{this.notificator.showSuccess(C),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(C,c){1&C&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,R,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,N,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,M,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,L,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return c.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return c.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&C&&(e.Tol(c.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",c.titleBefore),e.xp6(2),e.Q6J("ngIf",c.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",c.titleAfter),e.xp6(2),e.Q6J("ngIf",c.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",c.firstName),e.xp6(2),e.Q6J("ngIf",c.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",c.middleName),e.xp6(2),e.Q6J("ngIf",c.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",c.lastName),e.xp6(2),e.Q6J("ngIf",c.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[l.O5,t.TO,t.KE,v.Nt,s.Fj,s.JJ,s.Q7,s.oH,E.lW,u.xY,u.H8,b.X$]}),h})()},98973:(x,P,n)=>{n.d(P,{u:()=>L});var A=n(32080),u=n(94650),S=n(94364),s=n(36895),e=n(3848),b=n(19191),l=n(12651),t=n(89383);function v(U,D){1&U&&(u._uU(0),u.ALo(1,"translate")),2&U&&u.hij(" ",u.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function E(U,D){if(1&U&&u._UZ(0,"app-one-entity-attribute-page",5),2&U){const h=u.oxw();u.Q6J("entityId",h.userId)("entity","user")}}function R(U,D){1&U&&(u._uU(0),u.ALo(1,"translate"),u.ALo(2,"translate")),2&U&&u.AsE(" ",u.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",u.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function N(U,D){if(1&U&&u._UZ(0,"app-two-entity-attribute-page",6),2&U){const h=u.oxw(2);u.Q6J("firstEntity","user")("firstEntityId",h.userId)("secondEntity","facility")}}function M(U,D){1&U&&(u.TgZ(0,"mat-tab"),u.YNc(1,R,3,6,"ng-template",2),u.YNc(2,N,1,3,"ng-template",3),u.qZA())}let L=(()=>{class U{constructor(h,f,C){this.route=h,this.store=f,this.authResolver=C}ngOnInit(){this.route.parent.params.subscribe(h=>{this.userId=Number(h.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(h){return new(h||U)(u.Y36(S.gz),u.Y36(A.d6),u.Y36(A.x4))},U.\u0275cmp=u.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(h,f){2&h&&u.ekj("router-component",f.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(h,f){1&h&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group")(4,"mat-tab",1),u.YNc(5,v,2,3,"ng-template",2),u.YNc(6,E,1,2,"ng-template",3),u.qZA(),u.YNc(7,M,3,0,"mat-tab",4),u.qZA()),2&h&&(u.xp6(1),u.Oqu(u.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),u.xp6(6),u.Q6J("ngIf",f.userFacilityAttAuth))},dependencies:[s.O5,e.SP,e.uD,e.uX,e.Vc,b.Y,l.t,t.X$]}),U})()},85985:(x,P,n)=>{n.d(P,{u:()=>c});var A=n(32080),u=n(32105),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(24179),v=n(96214),E=n(7434),R=n(89383);function N(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function M(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function L(p,a){1&p&&s._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function D(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw();s.Q6J("disableMembers",!1)("groups",o.membersGroups)("displayedColumns",s.DdM(5,U))("filter",o.memberFilterValue)("tableId",o.tableId)}}function h(p,a){1&p&&s._UZ(0,"mat-spinner",7)}function f(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw(2);s.Q6J("disableMembers",!1)("groups",o.adminsGroups)("displayedColumns",s.DdM(5,U))("filter",o.adminFilterValue)("tableId",o.adminTableId)}}function C(p,a){if(1&p){const o=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(o);const d=s.oxw();return s.KtG(d.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){s.CHM(o);const m=s.oxw();return s.KtG(m.adminFilter(d))}),s.qZA(),s.YNc(6,h,1,0,"mat-spinner",3),s.YNc(7,f,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&p){const o=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.adminRefresh),s.xp6(1),s.Q6J("ngIf",!o.adminRefresh)}}let c=(()=>{class p{constructor(o,r,d,m,I){this.usersService=o,this.memberService=r,this.groupService=d,this.store=m,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=S.KE,this.adminTableId=S.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(o=>this.userId=Number(o.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(o){this.memberFilterValue=o}adminFilter(o){this.adminFilterValue=o}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.adminsGroups=o,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;for(const r of this.vos)this.memberService.getMemberByUser(r.id,this.userId).subscribe(d=>{this.groupService.getMemberGroups(d.id).subscribe(m=>{this.membersGroups=this.membersGroups.concat(m),this.vos.indexOf(r)===this.vos.length-1&&(this.memberRefresh=!1)})});0===o.length&&(this.memberRefresh=!1)})}}return p.\u0275fac=function(o){return new(o||p)(s.Y36(u.Fv),s.Y36(u.uq),s.Y36(u.ff),s.Y36(A.d6),s.Y36(e.gz))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(o,r){2&o&&s.ekj("router-component",r.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(o,r){1&o&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return r.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(m){return r.memberFilter(m)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,D,1,6,"perun-web-apps-groups-list",4),s.YNc(6,C,8,6,"div",5)),2&o&&(s.Q6J("ngIf",r.showPrincipal),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal))},dependencies:[b.O5,l.Ou,t.W,v.t,E.L,R.X$]}),p})()},74837:(x,P,n)=>{n.d(P,{j:()=>C});var A=n(32105),u=n(32080),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(87831),v=n(96214),E=n(7434),R=n(89383);function N(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function M(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function L(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function U(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw();s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.memberTableId)("filterValue",a.memberFilterValue)("vos",a.vosWhereIsMember)}}function D(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function h(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw(2);s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.adminTableId)("filterValue",a.adminFilterValue)("vos",a.vosWhereIsAdmin)}}function f(c,p){if(1&c){const a=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(r){s.CHM(a);const d=s.oxw();return s.KtG(d.applyAdminFilter(r))}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",3),s.YNc(7,h,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const a=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",a.adminRefresh),s.xp6(1),s.Q6J("ngIf",!a.adminRefresh)}}let C=(()=>{class c{constructor(a,o,r,d){this.usersService=a,this.authResolver=o,this.store=r,this.route=d,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=S.YF,this.memberTableId=S.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(a=>this.userId=Number(a.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(a=>{this.vosWhereIsMember=a,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(a=>{this.vosWhereIsAdmin=a,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(a){this.memberFilterValue=a}applyAdminFilter(a){this.adminFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(s.Y36(A.Fv),s.Y36(u.x4),s.Y36(u.d6),s.Y36(e.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(a,o){2&a&&s.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(a,o){1&a&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return o.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){return o.applyMemberFilter(d)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,U,1,4,"perun-web-apps-vos-list",4),s.YNc(6,f,8,6,"div",5)),2&a&&(s.Q6J("ngIf",o.isMyProfile),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile))},dependencies:[b.O5,l.Ou,t.Z,v.t,E.L,R.X$]}),c})()},17755:(x,P,n)=>{n.d(P,{Z:()=>a});var A=n(32105),u=n(30671),S=n(32080),s=n(64080),e=n(9244),b=n(74281),l=n(94650),t=n(94364),v=n(65412),E=n(36895),R=n(97392),N=n(4859),M=n(73546),L=n(71135),U=n(89383);function D(o,r){1&o&&l._UZ(0,"th",12)}function h(o,r){if(1&o&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.displayName,": ")}}function f(o,r){1&o&&l._UZ(0,"th",12)}function C(o,r){if(1&o){const d=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){l.CHM(d);const I=l.oxw(2);return l.KtG(I.changeEmail())}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA()()()}if(2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.value," ")}}function c(o,r){1&o&&l._UZ(0,"tr",16)}function p(o,r){if(1&o&&(l.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA()()(),l.TgZ(7,"mat-card-content")(8,"table",5),l.ynx(9,6),l.YNc(10,D,1,0,"th",7),l.YNc(11,h,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,f,1,0,"th",7),l.YNc(14,C,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA()()()()),2&o){const d=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",d.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",d.displayedColumns)}}let a=(()=>{class o{constructor(d,m,I,Z,B){this.userService=d,this.attributeService=m,this.storeService=I,this.route=Z,this.dialog=B,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(d=>{d.userId?this.userService.getUserById(Number(d.userId)).subscribe(m=>{this.user=m,this.isServiceUser=m.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(m=>{this.preferredMail=m,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const d=(0,e.kZ)();d.width="350px",d.data={userId:this.userID},this.dialog.open(b.gr,d).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(Z=>{this.preferredMail=Z,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return o.\u0275fac=function(d){return new(d||o)(l.Y36(A.Fv),l.Y36(A.H8),l.Y36(S.d6),l.Y36(t.gz),l.Y36(v.uw))},o.\u0275cmp=l.Xpm({type:o,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(d,m){2&d&&l.ekj("router-component",m.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(d,m){1&d&&(l.YNc(0,p,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&d&&(l.Q6J("ngIf",m.inMyProfile),l.xp6(1),l.Q6J("items",m.navItems)("size","small"))},dependencies:[E.O5,R.Hw,N.lW,u.BZ,u.fO,u.w1,u.Dz,u.nj,u.ge,u.ev,u.Gk,M.a8,M.dk,M.dn,M.n5,L.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),o})()},6097:(x,P,n)=>{n.d(P,{t:()=>b});var A=n(32105),u=n(32080),S=n(94650),s=n(94364),e=n(34775);let b=(()=>{class l{constructor(v,E,R){this.authzResolverService=v,this.route=E,this.store=R,this.roles=new Map,this.roleNames=[],this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER","MEMBERSHIP"]}ngOnInit(){this.outerLoading=!0,this.showDescription=!0,this.route.parent.params.subscribe(v=>{if(v.userId)this.userId=Number(v.userId),this.authzResolverService.getUserRoles(this.userId).subscribe(E=>{this.roleNames=Object.keys(E).map(R=>R.toUpperCase()),this.entityType="USER",this.prepareRoles(E)});else{const E=this.store.getPerunPrincipal();this.userId=E.userId,this.roleNames=Object.keys(E.roles),this.entityType="SELF",this.prepareRoles(E.roles)}})}prepareRoles(v){this.roleNames.forEach(E=>{const R=new Map;Object.keys(v[E]).forEach(M=>{R.set(M,v[E][M])}),this.roles.set(E,R)}),this.roleNames=this.roleNames.filter(E=>!this.roleFilter.includes(E)),this.outerLoading=!1}}return l.\u0275fac=function(v){return new(v||l)(S.Y36(A.Ct),S.Y36(s.gz),S.Y36(u.d6))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(v,E){2&v&&S.ekj("router-component",E.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","showDescription","entityType"]],template:function(v,E){1&v&&S._UZ(0,"app-perun-web-apps-roles-page",0),2&v&&S.Q6J("outerLoading",E.outerLoading)("roles",E.roles)("roleNames",E.roleNames)("entityId",E.userId)("showDescription",E.showDescription)("entityType",E.entityType)},dependencies:[e._]}),l})()},46597:(x,P,n)=>{n.d(P,{d:()=>C});var A=n(10036),u=n(32105),S=n(95017),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(65412),E=n(94364),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(c,p){if(1&c&&(t._UZ(0,"app-users-list",6),t.ALo(1,"translate")),2&c){const a=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",a.disableRouting)("displayedColumns",a.displayedColumns)("selection",a.selection)("tableId",a.tableId)("users",a.associatedUsers)}}function f(c,p){1&c&&t._UZ(0,"mat-spinner",7)}let C=(()=>{class c{constructor(a,o,r,d,m){this.dialog=a,this.router=o,this.authResolver=r,this.userManager=d,this.entityStorageService=m,this.loading=!1,this.selection=new S.Ov(!1,[]),this.associatedUsers=[],this.tableId=A.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const a=(0,s.kZ)();a.width="1250px",a.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,a).afterClosed().subscribe(r=>{r&&this.refreshTable()})}onRemove(){const a=(0,s.kZ)();a.width="650px",a.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(b.B,a).afterClosed().subscribe(r=>{r&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(v.uw),t.Y36(E.F0),t.Y36(l.x4),t.Y36(u.Fv),t.Y36(l.fb))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(a,o){1&a&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onAdd()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return o.onRemove()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,h,2,8,"app-users-list",4),t.qZA(),t.YNc(12,f,1,0,"mat-spinner",5)),2&a&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),c})()},97453:(x,P,n)=>{n.d(P,{R:()=>p});var A=n(95017),u=n(32105),S=n(10036),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(94364),E=n(65412),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&a&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function f(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&a){const r=t.oxw();t.Q6J("disabled",0===r.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function C(a,o){1&a&&t._UZ(0,"mat-spinner",8)}function c(a,o){if(1&a&&(t._UZ(0,"app-users-list",9),t.ALo(1,"translate")),2&a){const r=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("routeToAdmin",r.routeToAdminSection)("users",r.identities)}}let p=(()=>{class a{constructor(r,d,m,I,Z,B){this.route=r,this.dialog=d,this.router=m,this.userManager=I,this.authResolver=Z,this.store=B,this.loading=!1,this.selection=new A.Ov(!1,[]),this.identities=[],this.tableId=S.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(r=>{this.userId=Number(r.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(r=>{this.identities=r,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(b.B,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}}return a.\u0275fac=function(r){return new(r||a)(t.Y36(v.gz),t.Y36(E.uw),t.Y36(v.F0),t.Y36(u.Fv),t.Y36(l.x4),t.Y36(l.d6))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(r,d){1&r&&(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 d.refreshTable()}),t.qZA(),t.YNc(4,h,3,3,"button",2),t.YNc(5,f,3,4,"button",3),t.YNc(6,C,1,0,"mat-spinner",4),t.YNc(7,c,2,8,"app-users-list",5)),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",d.addIdentity),t.xp6(1),t.Q6J("ngIf",d.removeIdentity),t.xp6(1),t.Q6J("ngIf",d.loading),t.xp6(1),t.Q6J("ngIf",!d.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),a})()},46374:(x,P,n)=>{n.r(P),n.d(P,{UsersModule:()=>Qe});var A=n(36895),u=n(94364),S=n(74837),s=n(85985),e=n(94650),b=n(61283);let l=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:1,vars:0,template:function(i,g){1&i&&e._UZ(0,"app-animated-router-outlet")},dependencies:[b.A]}),_})();var t=n(32105),v=n(51572),E=n(71135);function R(_,T){1&_&&e._UZ(0,"mat-spinner",2)}function N(_,T){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("items",i.navItems)("size","small")}}let M=(()=>{class _{constructor(i,g){this.route=i,this.userManager=g,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(i=>{const g=Number(i.userId);this.userManager.getUserById(g).subscribe(O=>{this.isServiceUser=O.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(u.gz),e.Y36(t.Fv))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.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(i,g){1&i&&(e.YNc(0,R,1,0,"mat-spinner",0),e.YNc(1,N,2,2,"div",1)),2&i&&(e.Q6J("ngIf",g.loading),e.xp6(1),e.Q6J("ngIf",!g.loading))},dependencies:[A.O5,v.Ou,E.L]}),_})();var L=n(98973),U=n(33604),D=n(9244),h=n(6335),f=n(3238),C=n(59549),c=n(84385),p=n(89383);function a(_,T){if(1&_&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&_){const i=T.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}let o=(()=>{class _{constructor(i){this.guiConfigService=i,this.tablePageSizeOptions=D.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(h.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(h.Rc,this.preferredTablePageSize)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(h.Ng))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,g){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(){return g.updatePreferredTablePageSize()})("valueChange",function(y){return g.preferredTablePageSize=y}),e.YNc(9,a,2,2,"mat-option",4),e.qZA()()()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",g.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",g.tablePageSizeOptions))},dependencies:[A.sg,f.ey,C.KE,C.hX,c.gD,p.X$]}),_})();var r=n(17755),d=n(32080),m=n(77968),I=n(97392),Z=n(10266),B=n(4235),F=n(31359);const Q=function(){return{color:"black"}},H=function(){return["/myProfile"]};function V(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(16,Q)),e.xp6(4),e.Q6J("routerLink",e.DdM(17,H)),e.xp6(1),e.hij(" ",e.lcZ(9,10,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let j=(()=>{class _{constructor(i,g,O){this.sideMenuService=i,this.store=g,this.router=O}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(d.d6),e.Y36(u.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(i,g){1&i&&e.YNc(0,V,17,18,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,Z.gM,B.W,b.A,p.X$,F.d]}),_})();var X=n(6097),$=n(97453),k=n(69024),q=n(29862),G=n(65412),K=n(4859);function ee(_,T){1&_&&e._UZ(0,"mat-spinner",11)}function te(_,T){if(1&_){const i=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(i);const O=e.oxw(2);return e.KtG(O.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const se=function(){return{color:"black"}},ne=function(_){return["/myProfile/service-identities",_]};function ie(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ee,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,te,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(22,se)),e.xp6(4),e.Q6J("routerLink",e.VKq(23,ne,i.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,14,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(1),e.Q6J("ngIf",i.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,16,"ADMIN_USER.UUID"),": ",i.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let re=(()=>{class _{constructor(i,g,O,y,W,w,J){this.sideMenuService=i,this.usersService=g,this.sideMenuItemService=O,this.route=y,this.dialog=W,this.authResolver=w,this.entityStorageService=J,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(i=>{const g=Number(i.userId);this.entityStorageService.setEntity({id:g,beanName:"User"}),this.usersService.getUserById(g).subscribe(O=>{this.user=O;const y=this.sideMenuItemService.parseServiceIdentity(O);this.sideMenuService.setUserItems([y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const i=(0,D.kZ)();i.width="450px",i.data={theme:"admin-theme",user:this.user},this.dialog.open(q.x,i).afterClosed().subscribe(O=>{O&&this.usersService.getUserById(this.user.id).subscribe(y=>{this.user=y})})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(t.Fv),e.Y36(k.V),e.Y36(u.gz),e.Y36(G.uw),e.Y36(d.x4),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(i,g){1&i&&e.YNc(0,ie,22,25,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,K.lW,v.Ou,Z.gM,B.W,b.A,p.X$,F.d]}),_})(),ae=(()=>{class _{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-authentication",url:"authentication",label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(i,g){1&i&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&i&&e.Q6J("items",g.navItems)("size","small")},dependencies:[E.L]}),_})();var oe=n(46597),Y=n(24006),le=n(28499),_e=n(95406);function ue(_,T){if(1&_&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("formGroup",i.formGroup)("filteredNamespace",i.data.filteredNamespaces)}}function ce(_,T){1&_&&e._UZ(0,"mat-spinner",9)}let pe=(()=>{class _{constructor(i,g,O,y,W,w,J,ze,He,Ve){this.dialogRef=i,this.data=g,this.formBuilder=O,this.usersManagerService=y,this.membersManagerService=W,this.attributesManagerService=w,this.apiRequestConfiguration=J,this.notificator=ze,this.translate=He,this.cd=Ve,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Y.kI.pattern("^[a-z][a-z0-9_-]+$"),Y.kI.maxLength(15),Y.kI.minLength(2)]],passwordCtrl:["",Y.kI.required,[(0,le.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:D.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("loginCtrl").value;if(g)this.setLogin(i,g);else{const O=`urn:perun:user:attribute-def:def:login-namespace:${i}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(y=>{this.usersManagerService.generateAccountForName(i,y.value).subscribe(w=>{this.setLogin(i,w[O])},()=>this.processing=!1)})}}setLogin(i,g){this.usersManagerService.setLogin(this.userId,g,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:i,password:g}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.so),e.Y36(G.WI),e.Y36(Y.QS),e.Y36(t.Fv),e.Y36(t.uq),e.Y36(t.H8),e.Y36(d.F5),e.Y36(d.V6),e.Y36(p.sK),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(i,g){1&i&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ue,2,2,"div",2),e.YNc(5,ce,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return g.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return g.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!g.processing),e.xp6(1),e.Q6J("ngIf",g.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===g.formGroup.get("namespaceCtrl").value||g.formGroup.invalid||g.formGroup.pending||g.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[A.O5,Y.JL,Y.sg,K.lW,G.xY,G.H8,v.Ou,_e.r,p.X$]}),_})();var de=n(96214),me=n(53599);const ge=["logins"],fe=[{path:"",component:j,children:[{path:"",component:r.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:L.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:S.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:X.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:$.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:M,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:o,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:re,children:[{path:"",component:ae},{path:"associated-users",component:oe.d},{path:"authentication",component:(()=>{class _{constructor(i,g){this.dialog=i,this.entityStorageService=g,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const i=(0,D.kZ)();i.width="500px",i.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(pe,i).afterClosed().subscribe(O=>{O&&this.logins.refreshTable()})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.uw),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-user-setting-authentication"]],viewQuery:function(i,g){if(1&i&&e.Gf(ge,5),2&i){let O;e.iGM(O=e.CRH())&&(g.logins=O.first)}},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(i,g){if(1&i){const O=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(O);const W=e.MAs(8);return e.KtG(W.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return g.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(W){return g.filteredNamespaces=W}),e.qZA()}2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.AUTHENTICATION.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.AUTHENTICATION.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[K.lW,de.t,me.N,p.X$]}),_})()}]}];let Ee=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[u.Bz.forChild(fe),u.Bz]}),_})();var Ie=n(47957),Te=n(284),ve=n(23267),Ue=n(37084),Ce=n(96308),Ae=n(30671),Se=n(3848),De=n(35423),Oe=n(56709),Re=n(17009),be=n(73162),Me=n(90455),Pe=n(99602),Ne=n(71948),Le=n(44850),Ze=n(98739),z=n(73546),ye=n(86257),xe=n(73555),Be=n(77331),Ye=n(28255),We=n(67376),Ge=n(63189),Ke=n(42673),we=n(11243),Je=n(19516),Fe=n(14264);let Qe=(()=>{class _{constructor(i){this.translate=i,i.addLangs(["en","cs"])}}return _.\u0275fac=function(i){return new(i||_)(e.LFG(p.sK))},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[A.ez,Ee,Ie.Bb,Te.c,C.lN,Y.UX,Y.u5,I.Ps,ve.SJ,Ue.To,p.aw.forChild({}),K.ot,Ce.JX,Ae.p0,Se.Nh,De.dp,K.ot,Oe.p9,G.Is,c.LD,Re.ZX,v.Cq,be.Cv,Z.AV,Me.rP,Pe.FA,f.XK,Ne.Fk,Le.t,f.si,Ze.TU,z.QW,ye.T5,xe._t,z.QW,Be.Hi,Ye.Tx,We.Cl,Ge.r,Ke.g,U.ez,we.r,Je.d4,Fe.m]}),_})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/745.c866a3fa6fa2c73f.js b/dist/apps/admin-gui/745.c866a3fa6fa2c73f.js new file mode 100644 index 000000000..86c9bb2ef --- /dev/null +++ b/dist/apps/admin-gui/745.c866a3fa6fa2c73f.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[745],{89397:function(w,D){!function(s){"use strict";function c(X,W){return W.forEach(function(q){q&&"string"!=typeof q&&!Array.isArray(q)&&Object.keys(q).forEach(function(Y){if("default"!==Y&&!(Y in X)){var R=Object.getOwnPropertyDescriptor(q,Y);Object.defineProperty(X,Y,R.get?R:{enumerable:!0,get:function(){return q[Y]}})}})}),Object.freeze(X)}var Y,q,x={exports:{}};Y=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,q=function(R){var pt,St,E=typeof(R=R||{})<"u"?R:{};E.ready=new Promise(function(b,k){pt=b,St=k});var Et,Mt={};for(Et in E)E.hasOwnProperty(Et)&&(Mt[Et]=E[Et]);var Nt,_t,Jt="./this.program",wt="";typeof document<"u"&&document.currentScript&&(wt=document.currentScript.src),Y&&(wt=Y),wt=0!==wt.indexOf("blob:")?wt.substr(0,wt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(b){var k=new XMLHttpRequest;return k.open("GET",b,!1),k.send(null),k.responseText},_t=function(b,k,V){var rt=new XMLHttpRequest;rt.open("GET",b,!0),rt.responseType="arraybuffer",rt.onload=function(){200==rt.status||0==rt.status&&rt.response?k(rt.response):V()},rt.onerror=V,rt.send(null)};var he,Ft=E.print||console.log.bind(console),Ht=E.printErr||console.warn.bind(console);for(Et in Mt)Mt.hasOwnProperty(Et)&&(E[Et]=Mt[Et]);Mt=null,E.thisProgram&&(Jt=E.thisProgram),E.wasmBinary&&(he=E.wasmBinary),"object"!=typeof WebAssembly&&vi("no native wasm support detected");var ke,Ie=!1;function Lt(b,k){b||vi("Assertion failed: "+k)}var Ue,Ve,rn,xe,un,jt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Vt(b,k,V){for(var rt=k+V,ut=k;b[ut]&&!(ut>=rt);)++ut;if(ut-k>16&&b.subarray&&jt)return jt.decode(b.subarray(k,ut));for(var xt="";k>10,56320|1023&De)}}else xt+=String.fromCharCode((31&Ot)<<6|Zt)}else xt+=String.fromCharCode(Ot)}return xt}function qt(b,k){return b?Vt(rn,b,k):""}function _e(b,k,V,rt){if(!(rt>0))return 0;for(var ut=V,xt=V+rt-1,Ot=0;Ot=55296&&Zt<=57343&&(Zt=65536+((1023&Zt)<<10)|1023&b.charCodeAt(++Ot)),Zt<=127){if(V>=xt)break;k[V++]=Zt}else if(Zt<=2047){if(V+1>=xt)break;k[V++]=192|Zt>>6,k[V++]=128|63&Zt}else if(Zt<=65535){if(V+2>=xt)break;k[V++]=224|Zt>>12,k[V++]=128|Zt>>6&63,k[V++]=128|63&Zt}else{if(V+3>=xt)break;k[V++]=240|Zt>>18,k[V++]=128|Zt>>12&63,k[V++]=128|Zt>>6&63,k[V++]=128|63&Zt}}return k[V]=0,V-ut}function Ee(b){for(var k=0,V=0;V=55296&&rt<=57343&&(rt=65536+((1023&rt)<<10)|1023&b.charCodeAt(++V)),rt<=127?++k:k+=rt<=2047?2:rt<=65535?3:4}return k}function Ae(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){Ue=b,E.HEAP8=Ve=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=xe=new Int32Array(b),E.HEAPU8=rn=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=un=new Float64Array(b)}var Wt,le=[],me=[],ee=[];var _i=0,Si=null;function Pi(b){_i++,E.monitorRunDependencies&&E.monitorRunDependencies(_i)}function Mi(b){if(_i--,E.monitorRunDependencies&&E.monitorRunDependencies(_i),0==_i&&Si){var k=Si;Si=null,k()}}function vi(b){E.onAbort&&E.onAbort(b),Ht(b="Aborted("+b+")"),Ie=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw St(k),k}E.preloadedImages={},E.preloadedAudios={};var de;function Fi(b){return b.startsWith("data:application/octet-stream;base64,")}function En(b){try{if(b==de&&he)return new Uint8Array(he);throw"both async and sync fetching of the wasm failed"}catch(k){vi(k)}}Fi(de="expatlib.wasm")||(de=function yt(b){return E.locateFile?E.locateFile(b,wt):wt+b}(de));var _n,an,Hn={11694:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function oi(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var V=k.func;"number"==typeof V?void 0===k.arg?kn(V)():kn(V)(k.arg):V(void 0===k.arg?null:k.arg)}else k(E)}}function kn(b){return Wt.get(b)}var Te={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var V=0,rt=b.length-1;rt>=0;rt--){var ut=b[rt];"."===ut?b.splice(rt,1):".."===ut?(b.splice(rt,1),V++):V&&(b.splice(rt,1),V--)}if(k)for(;V;V--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),V="/"===b.substr(-1);return!(b=Te.normalizeArray(b.split("/").filter(function(rt){return!!rt}),!k).join("/"))&&!k&&(b="."),b&&V&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=Te.splitPath(b),V=k[0],rt=k[1];return V||rt?(rt&&(rt=rt.substr(0,rt.length-1)),V+rt):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=Te.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return Te.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Te.normalize(b.join("/"))},join2:function(b,k){return Te.normalize(b+"/"+k)}};var Pn={resolve:function(){for(var b="",k=!1,V=arguments.length-1;V>=-1&&!k;V--){var rt=V>=0?arguments[V]:A.cwd();if("string"!=typeof rt)throw new TypeError("Arguments to path.resolve must be strings");if(!rt)return"";b=rt+"/"+b,k="/"===rt.charAt(0)}return(k?"/":"")+(b=Te.normalizeArray(b.split("/").filter(function(ut){return!!ut}),!k).join("/"))||"."},relative:function(b,k){function V(De){for(var Qe=0;Qe=0&&""===De[sn];sn--);return Qe>sn?[]:De.slice(Qe,sn-Qe+1)}b=Pn.resolve(b).substr(1),k=Pn.resolve(k).substr(1);for(var rt=V(b.split("/")),ut=V(k.split("/")),xt=Math.min(rt.length,ut.length),Ot=xt,Zt=0;Zt0&&(Ft(Vt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(Ht(Vt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(Ht(Vt(b.output,0)),b.output=[])}}};var Q={ops_table:null,mount:function(b){return Q.createNode(null,"/",16895,0)},createNode:function(b,k,V,rt){if(A.isBlkdev(V)||A.isFIFO(V))throw new A.ErrnoError(63);Q.ops_table||(Q.ops_table={dir:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr,lookup:Q.node_ops.lookup,mknod:Q.node_ops.mknod,rename:Q.node_ops.rename,unlink:Q.node_ops.unlink,rmdir:Q.node_ops.rmdir,readdir:Q.node_ops.readdir,symlink:Q.node_ops.symlink},stream:{llseek:Q.stream_ops.llseek}},file:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr},stream:{llseek:Q.stream_ops.llseek,read:Q.stream_ops.read,write:Q.stream_ops.write,allocate:Q.stream_ops.allocate,mmap:Q.stream_ops.mmap,msync:Q.stream_ops.msync}},link:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr,readlink:Q.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr},stream:A.chrdev_stream_ops}});var ut=A.createNode(b,k,V,rt);return A.isDir(ut.mode)?(ut.node_ops=Q.ops_table.dir.node,ut.stream_ops=Q.ops_table.dir.stream,ut.contents={}):A.isFile(ut.mode)?(ut.node_ops=Q.ops_table.file.node,ut.stream_ops=Q.ops_table.file.stream,ut.usedBytes=0,ut.contents=null):A.isLink(ut.mode)?(ut.node_ops=Q.ops_table.link.node,ut.stream_ops=Q.ops_table.link.stream):A.isChrdev(ut.mode)&&(ut.node_ops=Q.ops_table.chrdev.node,ut.stream_ops=Q.ops_table.chrdev.stream),ut.timestamp=Date.now(),b&&(b.contents[k]=ut,b.timestamp=ut.timestamp),ut},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var V=b.contents?b.contents.length:0;if(!(V>=k)){k=Math.max(k,V*(V<1048576?2:1.125)>>>0),0!=V&&(k=Math.max(k,256));var ut=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ut.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var V=b.contents;b.contents=new Uint8Array(k),V&&b.contents.set(V.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&Q.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,V,rt){return Q.createNode(b,k,V,rt)},rename:function(b,k,V){if(A.isDir(b.mode)){var rt;try{rt=A.lookupNode(k,V)}catch{}if(rt)for(var ut in rt.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=V,k.contents[V]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var V=A.lookupNode(b,k);for(var rt in V.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var V in b.contents)!b.contents.hasOwnProperty(V)||k.push(V);return k},symlink:function(b,k,V){var rt=Q.createNode(b,k,41471,0);return rt.link=V,rt},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,V,rt,ut){var xt=b.node.contents;if(ut>=b.node.usedBytes)return 0;var Ot=Math.min(b.node.usedBytes-ut,rt);if(Ot>8&&xt.subarray)k.set(xt.subarray(ut,ut+Ot),V);else for(var Zt=0;Zt0||rt+V8)throw new A.ErrnoError(32);for(var ut=Te.normalizeArray(b.split("/").filter(function(we){return!!we}),!1),xt=A.root,Ot="/",Zt=0;Zt40)throw new A.ErrnoError(32)}}return{path:Ot,node:xt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var V=b.mount.mountpoint;return k?"/"!==V[V.length-1]?V+"/"+k:V+k:V}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var V=0,rt=0;rt>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var V=A.nameTable[k];V;){if(V.name_next===b){V.name_next=b.name_next;break}V=V.name_next}},lookupNode:function(b,k){var V=A.mayLookup(b);if(V)throw new A.ErrnoError(V,b);for(var rt=A.hashName(b.id,k),ut=A.nameTable[rt];ut;ut=ut.name_next)if(ut.parent.id===b.id&&ut.name===k)return ut;return A.lookup(b,k)},createNode:function(b,k,V,rt){var ut=new A.FSNode(b,k,V,rt);return A.hashAddNode(ut),ut},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,V){var rt;try{rt=A.lookupNode(b,k)}catch(xt){return xt.errno}var ut=A.nodePermissions(b,"wx");if(ut)return ut;if(V){if(!A.isDir(rt.mode))return 54;if(A.isRoot(rt)||A.getPath(rt)===A.cwd())return 10}else if(A.isDir(rt.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var V=b=b||0;V<=k;V++)if(!A.streams[V])return V;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,V){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Ot){this.node=Ot}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var rt=new A.FSStream;for(var ut in b)rt[ut]=b[ut];b=rt;var xt=A.nextfd(k,V);return b.fd=xt,A.streams[xt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],V=[b];V.length;){var rt=V.pop();k.push(rt),V.push.apply(V,rt.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&Ht("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var V=A.getMounts(A.root.mount),rt=0;function ut(Ot){return A.syncFSRequests--,k(Ot)}function xt(Ot){if(Ot)return xt.errored?void 0:(xt.errored=!0,ut(Ot));++rt>=V.length&&ut(null)}V.forEach(function(Ot){if(!Ot.type.syncfs)return xt(null);Ot.type.syncfs(Ot,b,xt)})},mount:function(b,k,V){var xt,rt="/"===V,ut=!V;if(rt&&A.root)throw new A.ErrnoError(10);if(!rt&&!ut){var Ot=A.lookupPath(V,{follow_mount:!1});if(V=Ot.path,A.isMountpoint(xt=Ot.node))throw new A.ErrnoError(10);if(!A.isDir(xt.mode))throw new A.ErrnoError(54)}var Zt={type:b,opts:k,mountpoint:V,mounts:[]},ae=b.mount(Zt);return ae.mount=Zt,Zt.root=ae,rt?A.root=ae:xt&&(xt.mounted=Zt,xt.mount&&xt.mount.mounts.push(Zt)),ae},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var V=k.node,rt=V.mounted,ut=A.getMounts(rt);Object.keys(A.nameTable).forEach(function(Ot){for(var Zt=A.nameTable[Ot];Zt;){var ae=Zt.name_next;ut.includes(Zt.mount)&&A.destroyNode(Zt),Zt=ae}}),V.mounted=null;var xt=V.mount.mounts.indexOf(rt);V.mount.mounts.splice(xt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,V){var ut=A.lookupPath(b,{parent:!0}).node,xt=Te.basename(b);if(!xt||"."===xt||".."===xt)throw new A.ErrnoError(28);var Ot=A.mayCreate(ut,xt);if(Ot)throw new A.ErrnoError(Ot);if(!ut.node_ops.mknod)throw new A.ErrnoError(63);return ut.node_ops.mknod(ut,xt,k,V)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var V=b.split("/"),rt="",ut=0;ut"u"&&(V=k,k=438),A.mknod(b,k|=8192,V)},symlink:function(b,k){if(!Pn.resolve(b))throw new A.ErrnoError(44);var rt=A.lookupPath(k,{parent:!0}).node;if(!rt)throw new A.ErrnoError(44);var ut=Te.basename(k),xt=A.mayCreate(rt,ut);if(xt)throw new A.ErrnoError(xt);if(!rt.node_ops.symlink)throw new A.ErrnoError(63);return rt.node_ops.symlink(rt,ut,b)},rename:function(b,k){var Zt,ae,V=Te.dirname(b),rt=Te.dirname(k),ut=Te.basename(b),xt=Te.basename(k);if(Zt=A.lookupPath(b,{parent:!0}).node,ae=A.lookupPath(k,{parent:!0}).node,!Zt||!ae)throw new A.ErrnoError(44);if(Zt.mount!==ae.mount)throw new A.ErrnoError(75);var sn,De=A.lookupNode(Zt,ut),Qe=Pn.relative(b,rt);if("."!==Qe.charAt(0))throw new A.ErrnoError(28);if("."!==(Qe=Pn.relative(k,V)).charAt(0))throw new A.ErrnoError(55);try{sn=A.lookupNode(ae,xt)}catch{}if(De!==sn){var we=A.isDir(De.mode),Pe=A.mayDelete(Zt,ut,we);if(Pe)throw new A.ErrnoError(Pe);if(Pe=sn?A.mayDelete(ae,xt,we):A.mayCreate(ae,xt))throw new A.ErrnoError(Pe);if(!Zt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(De)||sn&&A.isMountpoint(sn))throw new A.ErrnoError(10);if(ae!==Zt&&(Pe=A.nodePermissions(Zt,"w")))throw new A.ErrnoError(Pe);A.hashRemoveNode(De);try{Zt.node_ops.rename(De,ae,xt)}catch(gn){throw gn}finally{A.hashAddNode(De)}}},rmdir:function(b){var V=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(V,rt),xt=A.mayDelete(V,rt,!0);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);V.node_ops.rmdir(V,rt),A.destroyNode(ut)},readdir:function(b){var V=A.lookupPath(b,{follow:!0}).node;if(!V.node_ops.readdir)throw new A.ErrnoError(54);return V.node_ops.readdir(V)},unlink:function(b){var V=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(V,rt),xt=A.mayDelete(V,rt,!1);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);V.node_ops.unlink(V,rt),A.destroyNode(ut)},readlink:function(b){var V=A.lookupPath(b).node;if(!V)throw new A.ErrnoError(44);if(!V.node_ops.readlink)throw new A.ErrnoError(28);return Pn.resolve(A.getPath(V.parent),V.node_ops.readlink(V))},stat:function(b,k){var rt=A.lookupPath(b,{follow:!k}).node;if(!rt)throw new A.ErrnoError(44);if(!rt.node_ops.getattr)throw new A.ErrnoError(63);return rt.node_ops.getattr(rt)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,V){var rt;if(!(rt="string"==typeof b?A.lookupPath(b,{follow:!V}).node:b).node_ops.setattr)throw new A.ErrnoError(63);rt.node_ops.setattr(rt,{mode:4095&k|-4096&rt.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);A.chmod(V.node,k)},chown:function(b,k,V,rt){var ut;if(!(ut="string"==typeof b?A.lookupPath(b,{follow:!rt}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ut.node_ops.setattr(ut,{timestamp:Date.now()})},lchown:function(b,k,V){A.chown(b,k,V,!0)},fchown:function(b,k,V){var rt=A.getStream(b);if(!rt)throw new A.ErrnoError(8);A.chown(rt.node,k,V)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var V;if(!(V="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(V.mode))throw new A.ErrnoError(31);if(!A.isFile(V.mode))throw new A.ErrnoError(28);var ut=A.nodePermissions(V,"w");if(ut)throw new A.ErrnoError(ut);V.node_ops.setattr(V,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);if(0==(2097155&V.flags))throw new A.ErrnoError(28);A.truncate(V.node,k)},utime:function(b,k,V){var ut=A.lookupPath(b,{follow:!0}).node;ut.node_ops.setattr(ut,{timestamp:Math.max(k,V)})},open:function(b,k,V,rt,ut){if(""===b)throw new A.ErrnoError(44);var xt;if(V=typeof V>"u"?438:V,V=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&V|32768:0,"object"==typeof b)xt=b;else{b=Te.normalize(b);try{xt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Zt=!1;if(64&k)if(xt){if(128&k)throw new A.ErrnoError(20)}else xt=A.mknod(b,V,0),Zt=!0;if(!xt)throw new A.ErrnoError(44);if(A.isChrdev(xt.mode)&&(k&=-513),65536&k&&!A.isDir(xt.mode))throw new A.ErrnoError(54);if(!Zt){var ae=A.mayOpen(xt,k);if(ae)throw new A.ErrnoError(ae)}512&k&&A.truncate(xt,0),k&=-131713;var De=A.createStream({node:xt,path:A.getPath(xt),id:xt.id,flags:k,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},rt,ut);return De.stream_ops.open&&De.stream_ops.open(De),E.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),De},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=V&&1!=V&&2!=V)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,V),b.ungotten=[],b.position},read:function(b,k,V,rt,ut){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var xt=typeof ut<"u";if(xt){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Ot=b.stream_ops.read(b,k,V,rt,ut);return xt||(b.position+=Ot),Ot},write:function(b,k,V,rt,ut,xt){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Ot=typeof ut<"u";if(Ot){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Zt=b.stream_ops.write(b,k,V,rt,ut,xt);return Ot||(b.position+=Zt),Zt},allocate:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||V<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,V)},mmap:function(b,k,V,rt,ut,xt){if(0!=(2&ut)&&0==(2&xt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,V,rt,ut,xt)},msync:function(b,k,V,rt,ut){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,V,rt,ut):0},munmap:function(b){return 0},ioctl:function(b,k,V){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,V)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var V,rt=A.open(b,k.flags),xt=A.stat(b).size,Ot=new Uint8Array(xt);return A.read(rt,Ot,0,xt,0),"utf8"===k.encoding?V=Vt(Ot,0):"binary"===k.encoding&&(V=Ot),A.close(rt),V},writeFile:function(b,k,V){(V=V||{}).flags=V.flags||577;var rt=A.open(b,V.flags,V.mode);if("string"==typeof k){var ut=new Uint8Array(Ee(k)+1),xt=_e(k,ut,0,ut.length);A.write(rt,ut,0,xt,void 0,V.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(rt,k,0,k.byteLength,void 0,V.canOwn)}A.close(rt)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var V=A.nodePermissions(k.node,"x");if(V)throw new A.ErrnoError(V);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,V,rt,ut,xt){return ut}}),A.mkdev("/dev/null",A.makedev(1,3)),pn.register(A.makedev(5,0),pn.default_tty_ops),pn.register(A.makedev(6,0),pn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Ri(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){vi("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(V,rt){var xt=A.getStream(+rt);if(!xt)throw new A.ErrnoError(8);var Ot={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return Ot.parent=Ot,Ot}},k}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?A.createDevice("/dev","stdin",E.stdin):A.symlink("/dev/tty","/dev/stdin"),E.stdout?A.createDevice("/dev","stdout",null,E.stdout):A.symlink("/dev/tty","/dev/stdout"),E.stderr?A.createDevice("/dev","stderr",null,E.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,V){this.node=V,this.setErrno=function(rt){this.errno=rt},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount(Q,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:Q}},init:function(b,k,V){A.init.initialized=!0,A.ensureErrnoError(),E.stdin=b||E.stdin,E.stdout=k||E.stdout,E.stderr=V||E.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=E._fflush;b&&b(0);for(var k=0;kthis.length-1||we<0)){var Pe=we%this.chunkSize;return this.getter(we/this.chunkSize|0)[Pe]}},xt.prototype.setDataGetter=function(we){this.getter=we},xt.prototype.cacheLength=function(){var we=new XMLHttpRequest;if(we.open("HEAD",V,!1),we.send(null),!(we.status>=200&&we.status<300||304===we.status))throw new Error("Couldn't load "+V+". Status: "+we.status);var gn,Pe=Number(we.getResponseHeader("Content-length")),Jn=(gn=we.getResponseHeader("Accept-Ranges"))&&"bytes"===gn,Hi=(gn=we.getResponseHeader("Content-Encoding"))&&"gzip"===gn,di=1048576;Jn||(di=Pe);var Fn=this;Fn.setDataGetter(function(pi){var er=pi*di,Gn=(pi+1)*di-1;if(Gn=Math.min(Gn,Pe-1),typeof Fn.chunks[pi]>"u"&&(Fn.chunks[pi]=function(pi,er){if(pi>er)throw new Error("invalid range ("+pi+", "+er+") or no bytes requested!");if(er>Pe-1)throw new Error("only "+Pe+" bytes available! programmer error!");var Gn=new XMLHttpRequest;if(Gn.open("GET",V,!1),Pe!==di&&Gn.setRequestHeader("Range","bytes="+pi+"-"+er),typeof Uint8Array<"u"&&(Gn.responseType="arraybuffer"),Gn.overrideMimeType&&Gn.overrideMimeType("text/plain; charset=x-user-defined"),Gn.send(null),!(Gn.status>=200&&Gn.status<300||304===Gn.status))throw new Error("Couldn't load "+V+". Status: "+Gn.status);return void 0!==Gn.response?new Uint8Array(Gn.response||[]):pe(Gn.responseText||"",!0)}(er,Gn)),typeof Fn.chunks[pi]>"u")throw new Error("doXHR failed!");return Fn.chunks[pi]}),(Hi||!Pe)&&(di=Pe=1,Pe=this.getter(0).length,di=Pe,Ft("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Pe,this._chunkSize=di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Zt,ae=A.createFile(b,k,Zt={isDevice:!1,url:V},rt,ut);Zt.contents?ae.contents=Zt.contents:Zt.url&&(ae.contents=null,ae.url=Zt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ae.stream_ops).forEach(function(sn){var we=ae.stream_ops[sn];De[sn]=function(){return A.forceLoadFile(ae),we.apply(null,arguments)}}),De.read=function(we,Pe,gn,Jn,Hi){A.forceLoadFile(ae);var di=we.node.contents;if(Hi>=di.length)return 0;var on=Math.min(di.length-Hi,Jn);if(di.slice)for(var Fn=0;Fn>2]=rt.dev,xe[V+4>>2]=0,xe[V+8>>2]=rt.ino,xe[V+12>>2]=rt.mode,xe[V+16>>2]=rt.nlink,xe[V+20>>2]=rt.uid,xe[V+24>>2]=rt.gid,xe[V+28>>2]=rt.rdev,xe[V+32>>2]=0,an=[rt.size>>>0,(_n=rt.size,+Math.abs(_n)>=1?_n>0?(0|Math.min(+Math.floor(_n/4294967296),4294967295))>>>0:~~+Math.ceil((_n-+(~~_n>>>0))/4294967296)>>>0:0)],xe[V+40>>2]=an[0],xe[V+44>>2]=an[1],xe[V+48>>2]=4096,xe[V+52>>2]=rt.blocks,xe[V+56>>2]=rt.atime.getTime()/1e3|0,xe[V+60>>2]=0,xe[V+64>>2]=rt.mtime.getTime()/1e3|0,xe[V+68>>2]=0,xe[V+72>>2]=rt.ctime.getTime()/1e3|0,xe[V+76>>2]=0,an=[rt.ino>>>0,(_n=rt.ino,+Math.abs(_n)>=1?_n>0?(0|Math.min(+Math.floor(_n/4294967296),4294967295))>>>0:~~+Math.ceil((_n-+(~~_n>>>0))/4294967296)>>>0:0)],xe[V+80>>2]=an[0],xe[V+84>>2]=an[1],0},doMsync:function(b,k,V,rt,ut){var xt=rn.slice(b,b+V);A.msync(k,xt,ut,V,rt)},doMkdir:function(b,k){return"/"===(b=Te.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,V){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,V),0},doReadlink:function(b,k,V){if(V<=0)return-28;var rt=A.readlink(b),ut=Math.min(V,Ee(rt)),xt=Ve[k+ut];return function ye(b,k,V){return _e(b,rn,k,V)}(rt,k,V+1),Ve[k+ut]=xt,ut},doAccess:function(b,k){if(-8&k)return-28;var rt=A.lookupPath(b,{follow:!0}).node;if(!rt)return-44;var ut="";return 4&k&&(ut+="r"),2&k&&(ut+="w"),1&k&&(ut+="x"),ut&&A.nodePermissions(rt,ut)?-2:0},doDup:function(b,k,V){var rt=A.getStream(V);return rt&&A.close(rt),A.open(b,k,0,V,V).fd},doReadv:function(b,k,V,rt){for(var ut=0,xt=0;xt>2],ae=A.read(b,Ve,xe[k+8*xt>>2],Zt,rt);if(ae<0)return-1;if(ut+=ae,ae>2],xe[k+(8*xt+4)>>2],rt);if(ae<0)return-1;ut+=ae}return ut},varargs:void 0,get:function(){return bt.varargs+=4,xe[bt.varargs-4>>2]},getStr:function(b){return qt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Ut=[];function dt(b){try{return ke.grow(b-Ue.byteLength+65535>>>16),Tt(ke.buffer),1}catch{}}var mt={};function $t(){if(!$t.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Jt||"./this.program"};for(var V in mt)void 0===mt[V]?delete k[V]:k[V]=mt[V];var rt=[];for(var V in k)rt.push(V+"="+k[V]);$t.strings=rt}return $t.strings}var Me=function(b,k,V,rt){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=V,this.node_ops={},this.stream_ops={},this.rdev=rt};function pe(b,k,V){var rt=V>0?V:Ee(b)+1,ut=new Array(rt),xt=_e(b,ut,0,ut.length);return k&&(ut.length=xt),ut}Object.defineProperties(Me.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Me,A.staticInit();var Re={h:function Dt(b,k,V){bt.varargs=V;try{var rt=bt.getStr(b),ut=V?bt.get():0;return A.open(rt,k,ut).fd}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return-Ot.errno}},b:function Pt(){vi("")},a:function Yt(b,k,V){var rt=function Kt(b,k){var V;for(Ut.length=0,k>>=2;V=rn[b++];){var rt=V<105;rt&&1&k&&k++,Ut.push(rt?un[k++>>1]:xe[k]),++k}return Ut}(k,V);return Hn[b].apply(null,rt)},k:function J(b,k,V){rn.copyWithin(b,k,k+V)},e:function ft(b){var k=rn.length,V=2147483648;if((b>>>=0)>V)return!1;for(var rt=1;rt<=4;rt*=2){var ut=k*(1+.2/rt);if(ut=Math.min(ut,b+100663296),dt(Math.min(V,Ae(Math.max(b,ut),65536))))return!0}return!1},f:function kt(b,k){var V=0;return $t().forEach(function(rt,ut){var xt=k+V;xe[b+4*ut>>2]=xt,function Oe(b,k,V){for(var rt=0;rt>0]=b.charCodeAt(rt);V||(Ve[k>>0]=0)}(rt,xt),V+=rt.length+1}),0},g:function se(b,k){var V=$t();xe[b>>2]=V.length;var rt=0;return V.forEach(function(ut){rt+=ut.length+1}),xe[k>>2]=rt,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(V){if(typeof A>"u"||!(V instanceof A.ErrnoError))throw V;return V.errno}},i:function re(b,k,V,rt){try{var ut=bt.getStreamFromFD(b),xt=bt.doReadv(ut,k,V);return xe[rt>>2]=xt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},j:function Ce(b,k,V,rt,ut){try{var xt=bt.getStreamFromFD(b),Zt=4294967296*V+(k>>>0),ae=9007199254740992;return Zt<=-ae||Zt>=ae?-61:(A.llseek(xt,Zt,rt),an=[xt.position>>>0,(_n=xt.position,+Math.abs(_n)>=1?_n>0?(0|Math.min(+Math.floor(_n/4294967296),4294967295))>>>0:~~+Math.ceil((_n-+(~~_n>>>0))/4294967296)>>>0:0)],xe[ut>>2]=an[0],xe[ut+4>>2]=an[1],xt.getdents&&0===Zt&&0===rt&&(xt.getdents=null),0)}catch(De){if(typeof A>"u"||!(De instanceof A.ErrnoError))throw De;return De.errno}},c:function be(b,k,V,rt){try{var ut=bt.getStreamFromFD(b),xt=bt.doWritev(ut,k,V);return xe[rt>>2]=xt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},l:function Ke(b){var k=Date.now();return xe[b>>2]=k/1e3|0,xe[b+4>>2]=k%1e3*1e3|0,0}};(function On(){var b={a:Re};function k(Ot,Zt){E.asm=Ot.exports,Tt((ke=E.asm.m).buffer),Wt=E.asm.G,function Oi(b){me.unshift(b)}(E.asm.n),Mi()}function V(Ot){k(Ot.instance)}function rt(Ot){return function ji(){return he||"function"!=typeof fetch?Promise.resolve().then(function(){return En(de)}):fetch(de,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+de+"'";return b.arrayBuffer()}).catch(function(){return En(de)})}().then(function(Zt){return WebAssembly.instantiate(Zt,b)}).then(function(Zt){return Zt}).then(Ot,function(Zt){Ht("failed to asynchronously prepare wasm: "+Zt),vi(Zt)})}if(Pi(),E.instantiateWasm)try{return E.instantiateWasm(b,k)}catch(Ot){return Ht("Module.instantiateWasm callback failed with error: "+Ot),!1}return function ut(){return he||"function"!=typeof WebAssembly.instantiateStreaming||Fi(de)||"function"!=typeof fetch?rt(V):fetch(de,{credentials:"same-origin"}).then(function(Ot){return WebAssembly.instantiateStreaming(Ot,b).then(V,function(ae){return Ht("wasm streaming compile failed: "+ae),Ht("falling back to ArrayBuffer instantiation"),rt(V)})})}().catch(St),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var jn,fn=E._emscripten_bind_CExpat_CExpat_0=function(){return(fn=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},mn=E._emscripten_bind_CExpat_version_0=function(){return(mn=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},je=E._emscripten_bind_CExpat_create_0=function(){return(je=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},Xe=E._emscripten_bind_CExpat_destroy_0=function(){return(Xe=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},wn=E._emscripten_bind_CExpat_parse_1=function(){return(wn=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},Zn=E._emscripten_bind_CExpat_tag_0=function(){return(Zn=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Vn=E._emscripten_bind_CExpat_attrs_0=function(){return(Vn=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},Yn=E._emscripten_bind_CExpat_content_0=function(){return(Yn=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},Ni=E._emscripten_bind_CExpat_startElement_0=function(){return(Ni=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},ce=E._emscripten_bind_CExpat_endElement_0=function(){return(ce=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},$e=E._emscripten_bind_CExpat_characterData_0=function(){return($e=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},vn=E._emscripten_bind_CExpat___destroy___0=function(){return(vn=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Cn=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return($n=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},li=E._emscripten_bind_CExpatJS_startElement_0=function(){return(li=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},xi=E._emscripten_bind_CExpatJS_endElement_0=function(){return(xi=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Qn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Qn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},Bi=E._emscripten_bind_CExpatJS___destroy___0=function(){return(Bi=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function ci(b){function k(){jn||(jn=!0,E.calledRun=!0,!Ie&&(function ze(){!E.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,oi(me)}(),pt(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Tn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),ee.unshift(b);var b;oi(ee)}()))}_i>0||(function Ze(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),le.unshift(b);var b;oi(le)}(),_i>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),k()},1)):k())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Si=function b(){jn||ci(),jn||(Si=b)},E.run=ci,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function He(){}function Ye(b){return(b||He).__cache__}function ui(b,k){var V=Ye(k),rt=V[b];return rt||((rt=Object.create((k||He).prototype)).ptr=b,V[b]=rt)}ci(),(He.prototype=Object.create(He.prototype)).constructor=He,He.prototype.__class__=He,He.__cache__={},E.WrapperObject=He,E.getCache=Ye,E.wrapPointer=ui,E.castObject=function Ji(b,k){return ui(b.ptr,k)},E.NULL=ui(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete Ye(b.__class__)[b.ptr]},E.compare=function Ui(b,k){return b.ptr===k.ptr},E.getPointer=function Mn(b){return b.ptr},E.getClass=function bi(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?(Lt(rt>0),cn.needed+=rt,ut=E._malloc(rt),cn.temps.push(ut)):(ut=cn.buffer+cn.pos,cn.pos+=rt),ut},copy:function(b,k,V){switch(V>>>=0,k.BYTES_PER_ELEMENT){case 2:V>>>=1;break;case 4:V>>>=2;break;case 8:V>>>=3}for(var ut=0;ut=j);)++ht;if(ht-S>16&&y.subarray&&Ee)return Ee.decode(y.subarray(S,ht));for(var vt="";S>10,56320|1023&Le)}}else vt+=String.fromCharCode((31&At)<<6|Bt)}else vt+=String.fromCharCode(At)}return vt}function Ae(y,S){return y?Oe(le,y,S):""}function Ue(y,S,P,j){if(!(j>0))return 0;for(var ht=P,vt=P+j-1,At=0;At=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&y.charCodeAt(++At)),Bt<=127){if(P>=vt)break;S[P++]=Bt}else if(Bt<=2047){if(P+1>=vt)break;S[P++]=192|Bt>>6,S[P++]=128|63&Bt}else if(Bt<=65535){if(P+2>=vt)break;S[P++]=224|Bt>>12,S[P++]=128|Bt>>6&63,S[P++]=128|63&Bt}else{if(P+3>=vt)break;S[P++]=240|Bt>>18,S[P++]=128|Bt>>12&63,S[P++]=128|Bt>>6&63,S[P++]=128|63&Bt}}return S[P]=0,P-ht}function rn(y){for(var S=0,P=0;P=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&y.charCodeAt(++P)),j<=127?++S:S+=j<=2047?2:j<=65535?3:4}return S}function un(y,S){return y%S>0&&(y+=S-y%S),y}function ze(y){Tt=y,E.HEAP8=Wt=new Int8Array(y),E.HEAP16=me=new Int16Array(y),E.HEAP32=ee=new Int32Array(y),E.HEAPU8=le=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Ze=new Float64Array(y)}var Tn,si=[],Oi=[],gi=[];var de=0,En=null;function On(y){de++,E.monitorRunDependencies&&E.monitorRunDependencies(de)}function _n(y){if(de--,E.monitorRunDependencies&&E.monitorRunDependencies(de),0==de&&En){var S=En;En=null,S()}}function an(y){E.onAbort&&E.onAbort(y),he(y="Aborted("+y+")"),_e=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw St(S),S}E.preloadedImages={},E.preloadedAudios={};var kn;function oi(y){return y.startsWith("data:application/octet-stream;base64,")}function Te(y){try{if(y==kn&&jt)return new Uint8Array(jt);throw"both async and sync fetching of the wasm failed"}catch(S){an(S)}}oi(kn="graphvizlib.wasm")||(kn=function Nt(y){return E.locateFile?E.locateFile(y,yt):yt+y}(kn));var pn,z,bt,Q={161580:function(y,S){var P=Ae(y),j=Ae(S);O.createPath("/",Yt.dirname(P)),O.writeFile(Yt.join("/",P),j)}};function ct(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(E)}}function A(y){return Tn.get(y)}bt=function(){return performance.now()};function Pt(y){return ee[Ot()>>2]=y,y}var Yt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,j=y.length-1;j>=0;j--){var ht=y[j];"."===ht?y.splice(j,1):".."===ht?(y.splice(j,1),P++):P&&(y.splice(j,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Yt.normalizeArray(y.split("/").filter(function(j){return!!j}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Yt.splitPath(y),P=S[0],j=S[1];return P||j?(j&&(j=j.substr(0,j.length-1)),P+j):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Yt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Yt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Yt.normalize(y.join("/"))},join2:function(y,S){return Yt.normalize(y+"/"+S)}};var dt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var j=P>=0?arguments[P]:O.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";y=j+"/"+y,S="/"===j.charAt(0)}return(S?"/":"")+(y=Yt.normalizeArray(y.split("/").filter(function(ht){return!!ht}),!S).join("/"))||"."},relative:function(y,S){function P(Le){for(var qe=0;qe=0&&""===Le[hn];hn--);return qe>hn?[]:Le.slice(qe,hn-qe+1)}y=dt.resolve(y).substr(1),S=dt.resolve(S).substr(1);for(var j=P(y.split("/")),ht=P(S.split("/")),vt=Math.min(j.length,ht.length),At=vt,Bt=0;Bt0&&(Ht(Oe(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(he(Oe(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(he(Oe(y.output,0)),y.output=[])}}};function $t(y){y=function zt(y,S){return Math.ceil(y/S)*S}(y,65536);var S=Qe(65536,y);return S?(function mt(y,S){le.fill(0,y,y+S)}(S,y),S):0}var kt={ops_table:null,mount:function(y){return kt.createNode(null,"/",16895,0)},createNode:function(y,S,P,j){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);kt.ops_table||(kt.ops_table={dir:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,lookup:kt.node_ops.lookup,mknod:kt.node_ops.mknod,rename:kt.node_ops.rename,unlink:kt.node_ops.unlink,rmdir:kt.node_ops.rmdir,readdir:kt.node_ops.readdir,symlink:kt.node_ops.symlink},stream:{llseek:kt.stream_ops.llseek}},file:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:{llseek:kt.stream_ops.llseek,read:kt.stream_ops.read,write:kt.stream_ops.write,allocate:kt.stream_ops.allocate,mmap:kt.stream_ops.mmap,msync:kt.stream_ops.msync}},link:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,readlink:kt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:O.chrdev_stream_ops}});var ht=O.createNode(y,S,P,j);return O.isDir(ht.mode)?(ht.node_ops=kt.ops_table.dir.node,ht.stream_ops=kt.ops_table.dir.stream,ht.contents={}):O.isFile(ht.mode)?(ht.node_ops=kt.ops_table.file.node,ht.stream_ops=kt.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):O.isLink(ht.mode)?(ht.node_ops=kt.ops_table.link.node,ht.stream_ops=kt.ops_table.link.stream):O.isChrdev(ht.mode)&&(ht.node_ops=kt.ops_table.chrdev.node,ht.stream_ops=kt.ops_table.chrdev.stream),ht.timestamp=Date.now(),y&&(y.contents[S]=ht,y.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var ht=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(ht.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&kt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,j){return kt.createNode(y,S,P,j)},rename:function(y,S,P){if(O.isDir(y.mode)){var j;try{j=O.lookupNode(S,P)}catch{}if(j)for(var ht in j.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var j in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var j=kt.createNode(y,S,41471,0);return j.link=P,j},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,j,ht){var vt=y.node.contents;if(ht>=y.node.usedBytes)return 0;var At=Math.min(y.node.usedBytes-ht,j);if(At>8&&vt.subarray)S.set(vt.subarray(ht,ht+At),P);else for(var Bt=0;Bt0||j+P8)throw new O.ErrnoError(32);for(var ht=Yt.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),vt=O.root,At="/",Bt=0;Bt40)throw new O.ErrnoError(32)}}return{path:At,node:vt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,j=0;j>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var j=O.hashName(y.id,S),ht=O.nameTable[j];ht;ht=ht.name_next)if(ht.parent.id===y.id&&ht.name===S)return ht;return O.lookup(y,S)},createNode:function(y,S,P,j){var ht=new O.FSNode(y,S,P,j);return O.hashAddNode(ht),ht},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var j;try{j=O.lookupNode(y,S)}catch(vt){return vt.errno}var ht=O.nodePermissions(y,"wx");if(ht)return ht;if(P){if(!O.isDir(j.mode))return 54;if(O.isRoot(j)||O.getPath(j)===O.cwd())return 10}else if(O.isDir(j.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(At){this.node=At}},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 O.FSStream;for(var ht in y)j[ht]=y[ht];y=j;var vt=O.nextfd(S,P);return y.fd=vt,O.streams[vt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var j=P.pop();S.push(j),P.push.apply(P,j.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&he("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),j=0;function ht(At){return O.syncFSRequests--,S(At)}function vt(At){if(At)return vt.errored?void 0:(vt.errored=!0,ht(At));++j>=P.length&&ht(null)}P.forEach(function(At){if(!At.type.syncfs)return vt(null);At.type.syncfs(At,y,vt)})},mount:function(y,S,P){var vt,j="/"===P,ht=!P;if(j&&O.root)throw new O.ErrnoError(10);if(!j&&!ht){var At=O.lookupPath(P,{follow_mount:!1});if(P=At.path,O.isMountpoint(vt=At.node))throw new O.ErrnoError(10);if(!O.isDir(vt.mode))throw new O.ErrnoError(54)}var Bt={type:y,opts:S,mountpoint:P,mounts:[]},ne=y.mount(Bt);return ne.mount=Bt,Bt.root=ne,j?O.root=ne:vt&&(vt.mounted=Bt,vt.mount&&vt.mount.mounts.push(Bt)),ne},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,j=P.mounted,ht=O.getMounts(j);Object.keys(O.nameTable).forEach(function(At){for(var Bt=O.nameTable[At];Bt;){var ne=Bt.name_next;ht.includes(Bt.mount)&&O.destroyNode(Bt),Bt=ne}}),P.mounted=null;var vt=P.mount.mounts.indexOf(j);P.mount.mounts.splice(vt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var ht=O.lookupPath(y,{parent:!0}).node,vt=Yt.basename(y);if(!vt||"."===vt||".."===vt)throw new O.ErrnoError(28);var At=O.mayCreate(ht,vt);if(At)throw new O.ErrnoError(At);if(!ht.node_ops.mknod)throw new O.ErrnoError(63);return ht.node_ops.mknod(ht,vt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),j="",ht=0;ht"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!dt.resolve(y))throw new O.ErrnoError(44);var j=O.lookupPath(S,{parent:!0}).node;if(!j)throw new O.ErrnoError(44);var ht=Yt.basename(S),vt=O.mayCreate(j,ht);if(vt)throw new O.ErrnoError(vt);if(!j.node_ops.symlink)throw new O.ErrnoError(63);return j.node_ops.symlink(j,ht,y)},rename:function(y,S){var Bt,ne,P=Yt.dirname(y),j=Yt.dirname(S),ht=Yt.basename(y),vt=Yt.basename(S);if(Bt=O.lookupPath(y,{parent:!0}).node,ne=O.lookupPath(S,{parent:!0}).node,!Bt||!ne)throw new O.ErrnoError(44);if(Bt.mount!==ne.mount)throw new O.ErrnoError(75);var hn,Le=O.lookupNode(Bt,ht),qe=dt.relative(y,j);if("."!==qe.charAt(0))throw new O.ErrnoError(28);if("."!==(qe=dt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{hn=O.lookupNode(ne,vt)}catch{}if(Le!==hn){var Ne=O.isDir(Le.mode),Ge=O.mayDelete(Bt,ht,Ne);if(Ge)throw new O.ErrnoError(Ge);if(Ge=hn?O.mayDelete(ne,vt,Ne):O.mayCreate(ne,vt))throw new O.ErrnoError(Ge);if(!Bt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(Le)||hn&&O.isMountpoint(hn))throw new O.ErrnoError(10);if(ne!==Bt&&(Ge=O.nodePermissions(Bt,"w")))throw new O.ErrnoError(Ge);O.hashRemoveNode(Le);try{Bt.node_ops.rename(Le,ne,vt)}catch(bn){throw bn}finally{O.hashAddNode(Le)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Yt.basename(y),ht=O.lookupNode(P,j),vt=O.mayDelete(P,j,!0);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.rmdir(P,j),O.destroyNode(ht)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Yt.basename(y),ht=O.lookupNode(P,j),vt=O.mayDelete(P,j,!1);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.unlink(P,j),O.destroyNode(ht)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return dt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var j=O.lookupPath(y,{follow:!S}).node;if(!j)throw new O.ErrnoError(44);if(!j.node_ops.getattr)throw new O.ErrnoError(63);return j.node_ops.getattr(j)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var j;if(!(j="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);j.node_ops.setattr(j,{mode:4095&S|-4096&j.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,j){var ht;if(!(ht="string"==typeof y?O.lookupPath(y,{follow:!j}).node:y).node_ops.setattr)throw new O.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var j=O.getStream(y);if(!j)throw new O.ErrnoError(8);O.chown(j.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var ht=O.nodePermissions(P,"w");if(ht)throw new O.ErrnoError(ht);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var ht=O.lookupPath(y,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(S,P)})},open:function(y,S,P,j,ht){if(""===y)throw new O.ErrnoError(44);var vt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)vt=y;else{y=Yt.normalize(y);try{vt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Bt=!1;if(64&S)if(vt){if(128&S)throw new O.ErrnoError(20)}else vt=O.mknod(y,P,0),Bt=!0;if(!vt)throw new O.ErrnoError(44);if(O.isChrdev(vt.mode)&&(S&=-513),65536&S&&!O.isDir(vt.mode))throw new O.ErrnoError(54);if(!Bt){var ne=O.mayOpen(vt,S);if(ne)throw new O.ErrnoError(ne)}512&S&&O.truncate(vt,0),S&=-131713;var Le=O.createStream({node:vt,path:O.getPath(vt),id:vt.id,flags:S,mode:vt.mode,seekable:!0,position:0,stream_ops:vt.stream_ops,node_ops:vt.node_ops,ungotten:[],error:!1},j,ht);return Le.stream_ops.open&&Le.stream_ops.open(Le),E.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),Le},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,j,ht){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var vt=typeof ht<"u";if(vt){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var At=y.stream_ops.read(y,S,P,j,ht);return vt||(y.position+=At),At},write:function(y,S,P,j,ht,vt){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var At=typeof ht<"u";if(At){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var Bt=y.stream_ops.write(y,S,P,j,ht,vt);return At||(y.position+=Bt),Bt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,j,ht,vt){if(0!=(2&ht)&&0==(2&vt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,j,ht,vt)},msync:function(y,S,P,j,ht){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,j,ht):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,j=O.open(y,S.flags),vt=O.stat(y).size,At=new Uint8Array(vt);return O.read(j,At,0,vt,0),"utf8"===S.encoding?P=Oe(At,0):"binary"===S.encoding&&(P=At),O.close(j),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var j=O.open(y,P.flags,P.mode);if("string"==typeof S){var ht=new Uint8Array(rn(S)+1),vt=Ue(S,ht,0,ht.length);O.write(j,ht,0,vt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write(j,S,0,S.byteLength,void 0,P.canOwn)}O.close(j)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,j,ht,vt){return ht}}),O.mkdev("/dev/null",O.makedev(1,3)),ft.register(O.makedev(5,0),ft.default_tty_ops),ft.register(O.makedev(6,0),ft.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function J(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){an("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,j){var vt=O.getStream(+j);if(!vt)throw new O.ErrnoError(8);var At={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return vt.path}}};return At.parent=At,At}},S}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?O.createDevice("/dev","stdin",E.stdin):O.symlink("/dev/tty","/dev/stdin"),E.stdout?O.createDevice("/dev","stdout",null,E.stdout):O.symlink("/dev/tty","/dev/stdout"),E.stderr?O.createDevice("/dev","stderr",null,E.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function(j){this.errno=j},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(kt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:kt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),E.stdin=y||E.stdin,E.stdout=S||E.stdout,E.stderr=P||E.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=E._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var Ge=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Ge]}},vt.prototype.setDataGetter=function(Ne){this.getter=Ne},vt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var bn,Ge=Number(Ne.getResponseHeader("Content-length")),Ei=(bn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===bn,gr=(bn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===bn,yi=1048576;Ei||(yi=Ge);var Wn=this;Wn.setDataGetter(function(Yi){var vr=Yi*yi,Kn=(Yi+1)*yi-1;if(Kn=Math.min(Kn,Ge-1),typeof Wn.chunks[Yi]>"u"&&(Wn.chunks[Yi]=function(Yi,vr){if(Yi>vr)throw new Error("invalid range ("+Yi+", "+vr+") or no bytes requested!");if(vr>Ge-1)throw new Error("only "+Ge+" bytes available! programmer error!");var Kn=new XMLHttpRequest;if(Kn.open("GET",P,!1),Ge!==yi&&Kn.setRequestHeader("Range","bytes="+Yi+"-"+vr),typeof Uint8Array<"u"&&(Kn.responseType="arraybuffer"),Kn.overrideMimeType&&Kn.overrideMimeType("text/plain; charset=x-user-defined"),Kn.send(null),!(Kn.status>=200&&Kn.status<300||304===Kn.status))throw new Error("Couldn't load "+P+". Status: "+Kn.status);return void 0!==Kn.response?new Uint8Array(Kn.response||[]):zi(Kn.responseText||"",!0)}(vr,Kn)),typeof Wn.chunks[Yi]>"u")throw new Error("doXHR failed!");return Wn.chunks[Yi]}),(gr||!Ge)&&(yi=Ge=1,Ge=this.getter(0).length,yi=Ge,Ht("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ge,this._chunkSize=yi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ne=O.createFile(y,S,Bt={isDevice:!1,url:P},j,ht);Bt.contents?ne.contents=Bt.contents:Bt.url&&(ne.contents=null,ne.url=Bt.url),Object.defineProperties(ne,{usedBytes:{get:function(){return this.contents.length}}});var Le={};return Object.keys(ne.stream_ops).forEach(function(hn){var Ne=ne.stream_ops[hn];Le[hn]=function(){return O.forceLoadFile(ne),Ne.apply(null,arguments)}}),Le.read=function(Ne,Ge,bn,Ei,gr){O.forceLoadFile(ne);var yi=Ne.node.contents;if(gr>=yi.length)return 0;var _r=Math.min(yi.length-gr,Ei);if(yi.slice)for(var Wn=0;Wn<_r;Wn++)Ge[bn+Wn]=yi[gr+Wn];else for(Wn=0;Wn<_r;Wn++)Ge[bn+Wn]=yi.get(gr+Wn);return _r},ne.stream_ops=Le,ne},createPreloadedFile:function(y,S,P,j,ht,vt,At,Bt,ne,Le){Browser.init();var qe=S?dt.resolve(Yt.join2(y,S)):y;function hn(Ne){function Ge(Ei){Le&&Le(),Bt||O.createDataFile(y,S,Ei,j,ht,ne),vt&&vt(),_n()}var bn=!1;E.preloadPlugins.forEach(function(Ei){bn||Ei.canHandle(qe)&&(Ei.handle(Ne,qe,Ge,function(){At&&At(),_n()}),bn=!0)}),bn||Ge(Ne)}On(),"string"==typeof P?function se(y,S,P,j){var ht=j?"":"al "+y;Xt(y,function(vt){ye(vt,'Loading data file "'+y+'" failed (no arrayBuffer).'),S(new Uint8Array(vt)),ht&&_n()},function(vt){if(!P)throw'Loading data file "'+y+'" failed.';P()}),ht&&On()}(P,function(Ne){hn(Ne)},At):hn(P)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(y,S,P){S=S||function(){},P=P||function(){};var j=O.indexedDB();try{var ht=j.open(O.DB_NAME(),O.DB_VERSION)}catch(vt){return P(vt)}ht.onupgradeneeded=function(){Ht("creating db"),ht.result.createObjectStore(O.DB_STORE_NAME)},ht.onsuccess=function(){var Bt=ht.result.transaction([O.DB_STORE_NAME],"readwrite"),ne=Bt.objectStore(O.DB_STORE_NAME),Le=0,qe=0,hn=y.length;function Ne(){0==qe?S():P()}y.forEach(function(Ge){var bn=ne.put(O.analyzePath(Ge).object.contents,Ge);bn.onsuccess=function(){++Le+qe==hn&&Ne()},bn.onerror=function(){qe++,Le+qe==hn&&Ne()}}),Bt.onerror=P},ht.onerror=P},loadFilesFromDB:function(y,S,P){S=S||function(){},P=P||function(){};var j=O.indexedDB();try{var ht=j.open(O.DB_NAME(),O.DB_VERSION)}catch(vt){return P(vt)}ht.onupgradeneeded=P,ht.onsuccess=function(){var At=ht.result;try{var Bt=At.transaction([O.DB_STORE_NAME],"readonly")}catch(Ge){return void P(Ge)}var ne=Bt.objectStore(O.DB_STORE_NAME),Le=0,qe=0,hn=y.length;function Ne(){0==qe?S():P()}y.forEach(function(Ge){var bn=ne.get(Ge);bn.onsuccess=function(){O.analyzePath(Ge).exists&&O.unlink(Ge),O.createDataFile(Yt.dirname(Ge),Yt.basename(Ge),bn.result,!0,!0,!0),++Le+qe==hn&&Ne()},bn.onerror=function(){qe++,Le+qe==hn&&Ne()}}),Bt.onerror=P},ht.onerror=P}},re={mappings:{},DEFAULT_POLLMASK:5,calculateAt:function(y,S,P){if("/"===S[0])return S;var j;if(-100===y)j=O.cwd();else{var ht=O.getStream(y);if(!ht)throw new O.ErrnoError(8);j=ht.path}if(0==S.length){if(!P)throw new O.ErrnoError(44);return j}return Yt.join2(j,S)},doStat:function(y,S,P){try{var j=y(S)}catch(ht){if(ht&&ht.node&&Yt.normalize(S)!==Yt.normalize(O.getPath(ht.node)))return-54;throw ht}return ee[P>>2]=j.dev,ee[P+4>>2]=0,ee[P+8>>2]=j.ino,ee[P+12>>2]=j.mode,ee[P+16>>2]=j.nlink,ee[P+20>>2]=j.uid,ee[P+24>>2]=j.gid,ee[P+28>>2]=j.rdev,ee[P+32>>2]=0,z=[j.size>>>0,(pn=j.size,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+40>>2]=z[0],ee[P+44>>2]=z[1],ee[P+48>>2]=4096,ee[P+52>>2]=j.blocks,ee[P+56>>2]=j.atime.getTime()/1e3|0,ee[P+60>>2]=0,ee[P+64>>2]=j.mtime.getTime()/1e3|0,ee[P+68>>2]=0,ee[P+72>>2]=j.ctime.getTime()/1e3|0,ee[P+76>>2]=0,z=[j.ino>>>0,(pn=j.ino,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+80>>2]=z[0],ee[P+84>>2]=z[1],0},doMsync:function(y,S,P,j,ht){var vt=le.slice(y,y+P);O.msync(S,vt,ht,P,j)},doMkdir:function(y,S){return"/"===(y=Yt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var j=O.readlink(y),ht=Math.min(P,rn(j)),vt=Wt[S+ht];return function Ve(y,S,P){return Ue(y,le,S,P)}(j,S,P+1),Wt[S+ht]=vt,ht},doAccess:function(y,S){if(-8&S)return-28;var j=O.lookupPath(y,{follow:!0}).node;if(!j)return-44;var ht="";return 4&S&&(ht+="r"),2&S&&(ht+="w"),1&S&&(ht+="x"),ht&&O.nodePermissions(j,ht)?-2:0},doDup:function(y,S,P){var j=O.getStream(P);return j&&O.close(j),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,j){for(var ht=0,vt=0;vt>2],ne=O.read(y,Wt,ee[S+8*vt>>2],Bt,j);if(ne<0)return-1;if(ht+=ne,ne>2],ee[S+(8*vt+4)>>2],j);if(ne<0)return-1;ht+=ne}return ht},varargs:void 0,get:function(){return re.varargs+=4,ee[re.varargs-4>>2]},getStr:function(y){return Ae(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Vn=[];function $e(y){try{return qt.grow(y-Tt.byteLength+65535>>>16),ze(qt.buffer),1}catch{}}var Cn={};function li(){if(!li.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Jt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var j=[];for(var P in S)j.push(P+"="+S[P]);li.strings=j}return li.strings}var Mn=function(y,S,P,j){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=j};function zi(y,S,P){var j=P>0?P:rn(y)+1,ht=new Array(j),vt=Ue(y,ht,0,ht.length);return S&&(ht.length=vt),ht}Object.defineProperties(Mn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=Mn,O.staticInit();var en={A:function Kt(y,S){return function Ut(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return ee[S>>2]=P/1e3|0,ee[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Ce(y,S){try{return y=re.getStr(y),re.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function be(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 0:return(ht=re.get())<0?-28:O.open(j.path,j.flags,0,ht).fd;case 1:case 2:case 6:case 7:return 0;case 3:return j.flags;case 4:var ht=re.get();return j.flags|=ht,0;case 5:return ht=re.get(),me[ht+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Bt){if(typeof O>"u"||!(Bt instanceof O.ErrnoError))throw Bt;return-Bt.errno}},x:function Ke(y,S){try{var P=re.getStreamFromFD(y);return re.doStat(O.stat,P.path,S)}catch(j){if(typeof O>"u"||!(j instanceof O.ErrnoError))throw j;return-j.errno}},u:function Me(y,S,P,j){try{S=re.getStr(S);var ht=256&j,vt=4096&j;return j&=-4353,S=re.calculateAt(y,S,vt),re.doStat(ht?O.lstat:O.stat,S,P)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},y:function Fe(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return j.tty?0:-59;case 21519:if(!j.tty)return-59;var ht=re.get();return ee[ht>>2]=0,0;case 21520:return j.tty?-28:-59;case 21531:return ht=re.get(),O.ioctl(j,S,ht);default:an("bad ioctl syscall "+S)}}catch(vt){if(typeof O>"u"||!(vt instanceof O.ErrnoError))throw vt;return-vt.errno}},k:function pe(y,S,P,j,ht,vt){try{return function oe(y,S,P,j,ht,vt){vt<<=12;var At,Bt=!1;if(0!=(16&j)&&y%65536!=0)return-28;if(0!=(32&j)){if(!(At=$t(S)))return-48;Bt=!0}else{var ne=O.getStream(ht);if(!ne)return-8;var Le=O.mmap(ne,y,S,vt,P,j);At=Le.ptr,Bt=Le.allocated}return re.mappings[At]={malloc:At,len:S,allocated:Bt,fd:ht,prot:P,flags:j,offset:vt},At}(y,S,P,j,ht,vt)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},j:function fn(y,S){try{return function Re(y,S){var P=re.mappings[y];if(0===S||!P)return-28;if(S===P.len){var j=O.getStream(P.fd);j&&2&P.prot&&re.doMsync(y,j,S,P.flags,P.offset),re.mappings[y]=null,P.allocated&&xt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function mn(y,S,P){re.varargs=P;try{var j=re.getStr(y),ht=P?re.get():0;return O.open(j,S,ht).fd}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},v:function je(y,S){try{return y=re.getStr(y),re.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function Xe(y){try{return y=re.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Zn(){an("")},C:function Ni(y,S,P){var j=function Yn(y,S){var P;for(Vn.length=0,S>>=2;P=le[y++];){var j=P<105;j&&1&S&&S++,Vn.push(j?Ze[S++>>1]:ee[S]),++S}return Vn}(S,P);return Q[y].apply(null,j)},o:function ce(y,S,P){le.copyWithin(y,S,S+P)},p:function vn(y){var S=le.length,P=2147483648;if((y>>>=0)>P)return!1;for(var j=1;j<=4;j*=2){var ht=S*(1+.2/j);if(ht=Math.min(ht,y+100663296),$e(Math.min(P,un(Math.max(y,ht),65536))))return!0}return!1},s:function xi(y,S){var P=0;return li().forEach(function(j,ht){var vt=S+P;ee[y+4*ht>>2]=vt,function xe(y,S,P){for(var j=0;j>0]=y.charCodeAt(j);P||(Wt[S>>0]=0)}(j,vt),P+=j.length+1}),0},t:function Qn(y,S){var P=li();ee[y>>2]=P.length;var j=0;return P.forEach(function(ht){j+=ht.length+1}),ee[S>>2]=j,0},a:function Bi(y){!function Hi(y,S){!function di(y){(function Si(){return Vt||!1})()||(E.onExit&&E.onExit(y),_e=!0),ue(y,new gn(y))}(y)}(y)},d:function jn(y){try{var S=re.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function ci(y,S,P,j){try{var ht=re.getStreamFromFD(y),vt=re.doReadv(ht,S,P);return ee[j>>2]=vt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},n:function He(y,S,P,j,ht){try{var vt=re.getStreamFromFD(y),Bt=4294967296*P+(S>>>0),ne=9007199254740992;return Bt<=-ne||Bt>=ne?-61:(O.llseek(vt,Bt,j),z=[vt.position>>>0,(pn=vt.position,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[ht>>2]=z[0],ee[ht+4>>2]=z[1],vt.getdents&&0===Bt&&0===j&&(vt.getdents=null),0)}catch(Le){if(typeof O>"u"||!(Le instanceof O.ErrnoError))throw Le;return Le.errno}},g:function Ye(y,S,P,j){try{var ht=re.getStreamFromFD(y),vt=re.doWritev(ht,S,P);return ee[j>>2]=vt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},c:function ui(){return ke},w:function Ji(y){var S=Date.now();return ee[y>>2]=S/1e3|0,ee[y+4>>2]=S%1e3*1e3|0,0},l:function we(y,S,P,j,ht,vt,At){var Bt=Zt();try{return A(y)(S,P,j,ht,vt,At)}catch(ne){if(ae(Bt),ne!==ne+0&&"longjmp"!==ne)throw ne;De(1,0)}},m:function sn(y,S){var P=Zt();try{A(y)(S)}catch(j){if(ae(P),j!==j+0&&"longjmp"!==j)throw j;De(1,0)}},b:function hi(y){!function(y){ke=y}(y)},f:function Ui(y){var S=Date.now()/1e3|0;return y&&(ee[y>>2]=S),S}};(function Pn(){var y={a:en};function S(At,Bt){E.asm=At.exports,ze((qt=E.asm.D).buffer),Tn=E.asm.M,function Qi(y){Oi.unshift(y)}(E.asm.E),_n()}function P(At){S(At.instance)}function j(At){return function Ri(){return jt||"function"!=typeof fetch?Promise.resolve().then(function(){return Te(kn)}):fetch(kn,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+kn+"'";return y.arrayBuffer()}).catch(function(){return Te(kn)})}().then(function(Bt){return WebAssembly.instantiate(Bt,y)}).then(function(Bt){return Bt}).then(At,function(Bt){he("failed to asynchronously prepare wasm: "+Bt),an(Bt)})}if(On(),E.instantiateWasm)try{return E.instantiateWasm(y,S)}catch(At){return he("Module.instantiateWasm callback failed with error: "+At),!1}return function ht(){return jt||"function"!=typeof WebAssembly.instantiateStreaming||oi(kn)||"function"!=typeof fetch?j(P):fetch(kn,{credentials:"same-origin"}).then(function(At){return WebAssembly.instantiateStreaming(At,y).then(P,function(ne){return he("wasm streaming compile failed: "+ne),he("falling back to ArrayBuffer instantiation"),j(P)})})}().catch(St),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var Ti=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Ti=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},In=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(In=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},k=E._emscripten_bind_Graphviz_lastError_0=function(){return(k=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},V=E._emscripten_bind_Graphviz_layout_3=function(){return(V=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},rt=E._emscripten_bind_Graphviz_createFile_2=function(){return(rt=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ut=E._emscripten_bind_Graphviz___destroy___0=function(){return(ut=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 Pe,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},Ot=E.___errno_location=function(){return(Ot=E.___errno_location=E.asm.P).apply(null,arguments)},Zt=E.stackSave=function(){return(Zt=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)},Qe=E._memalign=function(){return(Qe=E._memalign=E.asm.T).apply(null,arguments)};function gn(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Jn(y){function S(){Pe||(Pe=!0,E.calledRun=!0,!_e&&(function Pi(){!E.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,ct(Oi)}(),pt(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Mi(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),gi.unshift(y);var y;ct(gi)}()))}de>0||(function tr(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),si.unshift(y);var y;ct(si)}(),de>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),S()},1)):S())}if(En=function y(){Pe||Jn(),Pe||(En=y)},E.run=Jn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function on(){}function Fn(y){return(y||on).__cache__}function pi(y,S){var P=Fn(S),j=P[y];return j||((j=Object.create((S||on).prototype)).ptr=y,P[y]=j)}Jn(),(on.prototype=Object.create(on.prototype)).constructor=on,on.prototype.__class__=on,on.__cache__={},E.WrapperObject=on,E.getCache=Fn,E.wrapPointer=pi,E.castObject=function er(y,S){return pi(y.ptr,S)},E.NULL=pi(0),E.destroy=function Gn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Fn(y.__class__)[y.ptr]},E.compare=function _a(y,S){return y.ptr===S.ptr},E.getPointer=function za(y){return y.ptr},E.getClass=function va(y){return y.__class__};var An={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(An.needed){for(var y=0;y=An.size?(ye(j>0),An.needed+=j,ht=E._malloc(j),An.temps.push(ht)):(ht=An.buffer+An.pos,An.pos+=j),ht},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var ht=0;ht\n\n')}}function st(X,W){var q=H({images:[],files:[]},W);G(G([],q.files,!0),function et(X){return X.map(nt)}(q.images),!0).forEach(function(Y){return X.createFile(Y.path,Y.data)})}var $={layout:function(X,W,q,Y){return void 0===W&&(W="svg"),void 0===q&&(q="dot"),X?u(Z,Y?.wasmFolder,Y?.wasmBinary).then(function(R){var E=new R.Graphviz(void 0!==Y?.yInvert&&Y?.yInvert,void 0!==Y?.nop?Y?.nop:0);st(E,Y);var pt=E.layout(X,W,q);if(R.destroy(E),!pt)throw new Error(R.Graphviz.prototype.lastError());return pt}):Promise.resolve("")},circo:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"circo",q)},dot:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"dot",q)},fdp:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"fdp",q)},sfdp:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"sfdp",q)},neato:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"neato",q)},osage:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"osage",q)},patchwork:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"patchwork",q)},twopi:function(X,W,q){return void 0===W&&(W="svg"),this.layout(X,W,"twopi",q)}},it=function(){function X(W){this._wasm=W}return X.prototype.layout=function(W,q,Y,R){if(void 0===q&&(q="svg"),void 0===Y&&(Y="dot"),!W)return"";var E=new this._wasm.Graphviz(R?.yInvert?1:0,R?.nop?R?.nop:0);st(E,R);var pt=E.layout(W,q,Y);if(this._wasm.destroy(E),!pt)throw new Error(this._wasm.Graphviz.prototype.lastError());return pt},X.prototype.circo=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"circo",Y)},X.prototype.dot=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"dot",Y)},X.prototype.fdp=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"fdp",Y)},X.prototype.sfdp=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"sfdp",Y)},X.prototype.neato=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"neato",Y)},X.prototype.osage=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"osage",Y)},X.prototype.patchwork=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"patchwork",Y)},X.prototype.twopi=function(W,q,Y){return void 0===q&&(q="svg"),this.layout(W,q,"twopi",Y)},X}();s.GraphvizSync=it,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(X,W){return u(m,X,W).then(function(q){return q.CExpat.prototype.version()})},s.graphviz=$,s.graphvizSync=function at(X,W){return u(Z,X,W).then(function(q){return new it(q)})},s.graphvizVersion=function K(X,W){return u(Z,X,W).then(function(q){return q.Graphviz.prototype.version()})},s.parse=B,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(D)},82745:(w,D,s)=>{"use strict";s.r(D),s.d(D,{AdminModule:()=>Dy});var c={};s.r(c),s.d(c,{forceCenter:()=>ud,forceCollide:()=>Vo,forceLink:()=>Yo,forceManyBody:()=>Xo,forceRadial:()=>Rd,forceSimulation:()=>Wo,forceX:()=>Bd,forceY:()=>Zd});var x={};s.r(x),s.d(x,{dispatch:()=>ba.Z});var _={};s.r(_),s.d(_,{interval:()=>Gd,now:()=>or.zO,timeout:()=>$a.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var B=s(95017),M=s(65412),F=s(30671),Z=s(35382),H=s(32105),G=s(4859),nt=s(51572),et=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function K(n,r){1&n&&t._UZ(0,"th",16)}function $(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 it(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function X(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,K,1,0,"th",11),t.YNc(10,$,2,1,"td",12),t.BQk(),t.YNc(11,it,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let W=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new F.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,X,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,G.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,et.w,u.X$]}),n})();var q=s(24006),Y=s(78372),R=s(63900),E=s(61135),pt=s(69751),St=s(38421),Mt=s(75797),Et=s(60515),Jt=s(25403),ue=s(63269);function wt(...n){const r=(0,ue.jO)(n),e=(0,Mt.k)(n);return e.length?new pt.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(U=>U.shift());i.next(r?r(...N):N),a.some((U,tt)=>!U.length&&o[tt])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):Et.E}var yt=s(39646),Nt=s(19516),_t=s(3238),Xt=s(39349),Ft=s(59549),Ht=s(284),he=s(84385),ke=s(3848),Ie=s(23123);function Lt(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function jt(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Vt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new E.X(this.policy.role),this.objects=this.selectedRole.pipe((0,R.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,Lt,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,jt,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,q.JJ,q.On,l.Hw,G.lW,Ft.KE,_t.ey,he.gD,m.Ov,u.X$,Ie.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function qt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function _e(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,qt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function ye(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,_e,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Ee=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,ye,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,G.lW,Vt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ae(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let Ue=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,rn,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,ke.SP,ke.uD,ke.uX,Ue,u.X$]}),n})();var un=s(10266),Tt=s(90455),Wt=s(4765);function le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const me=function(n){return{disable:n}};let ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,le,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,me,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,q.JJ,q.On,un.gM,Tt.Rr,u.X$,Wt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ze=(()=>{class n{constructor(){this.readOperation=!1,this.writeOperation=!1,this.readOperationChanged=new t.vpe,this.writeOperationChanged=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-critical-operations-toggles"]],inputs:{readOperation:"readOperation",writeOperation:"writeOperation"},outputs:{readOperationChanged:"readOperationChanged",writeOperationChanged:"writeOperationChanged"},decls:10,vars:11,consts:[["color","accent","labelPosition","before",1,"toggle-font",3,"ngModel","ngModelChange","toggleChange"],["alert_type","info"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.readOperation=o})("toggleChange",function(){return i.readOperationChanged.emit(!i.readOperation)}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.writeOperation=o})("toggleChange",function(){return i.writeOperationChanged.emit(!i.writeOperation)}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-alert",1),t._uU(8),t.ALo(9,"translate"),t.qZA()),2&e&&(t.Q6J("ngModel",i.readOperation),t.xp6(1),t.hij(" ",t.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.READ"),"\n"),t.xp6(3),t.Q6J("ngModel",i.writeOperation),t.xp6(1),t.hij(" ",t.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.WRITE"),"\n"),t.xp6(3),t.hij(" ",t.lcZ(9,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.INFO"),"\n"))},dependencies:[q.JJ,q.On,et.w,Tt.Rr,u.X$],styles:[".toggle-font[_ngcontent-%COMP%]{font-size:1.125rem}"]}),n})(),ze=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Tn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function _i(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function tr(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Pi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Mi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function vi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Qi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,si,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Oi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,gi,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,_i,2,2,"mat-option",15),t.qZA(),t.YNc(19,Si,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,tr,2,2,"mat-option",15),t.qZA(),t.YNc(24,Pi,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Mi,3,4,"mat-option",15),t.qZA(),t.YNc(29,vi,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t.TgZ(32,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(33,"perun-web-apps-attribute-rights-tab-group",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(3),t.Q6J("collections",e.collections)}}let Fi=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",q.kI.required],displayName:["",q.kI.required],description:["",q.kI.required],entity:["",q.kI.required],definitionType:["",q.kI.required],valueType:["",q.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.Array","java.util.LinkedHashMap"],this.attDef=new E.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,Y.b)(200)).subscribe(U=>{this.setAttribute(U)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,R.w)(e=>(this.attDefCreated=e,wt((0,yt.of)(e.id),(0,yt.of)(this.collections)))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,R.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e})),(0,R.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,!1,this.attDefCreated.id,H.oW.READ)),(0,R.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,!0,this.attDefCreated.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(q.QS),t.Y36(H.H8),t.Y36(Z.eE),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Nt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Nt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"readOperationChanged","writeOperationChanged"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tn,1,0,"mat-spinner",2),t.YNc(5,Qi,34,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,_t.ey,Xt.IC,Ft.TO,Ft.KE,Ht.Nt,q._Y,q.Fj,q.JJ,q.JL,q.Q7,q.sg,q.u,G.lW,M.uh,M.xY,M.H8,he.gD,nt.Ou,xe,ee,Ze,m.Ov,u.X$,ze]}),n})();var de=s(9244),En=s(10036);function ji(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function On(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let _n=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,R.w)(e=>wt((0,yt.of)(e.id),(0,yt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,R.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",2),t.YNc(5,On,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,Ft.KE,Ht.Nt,q.Fj,q.JJ,q.Q7,q.On,G.lW,M.uh,M.xY,M.H8,nt.Ou,et.w,u.X$]}),n})();var an=s(96308),Hn=s(36769),oi=s(68675),kn=s(64425),Te=s(37084),Ri=s(33604),Pn=s(56709),pn=s(43532),z=s(18750);function Q(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),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 ct(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.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 A(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 bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"label")(2,"input",28),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Dt(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 Pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Ut(n,r){1&n&&t._UZ(0,"tr",30)}function Kt(n,r){1&n&&t._UZ(0,"tr",31)}function Yt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.ynx(3,13),t.YNc(4,Q,2,3,"th",14),t.YNc(5,ct,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,A,3,3,"th",17),t.YNc(8,bt,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,Dt,3,3,"th",17),t.YNc(11,Pt,2,1,"td",18),t.BQk(),t.YNc(12,Ut,1,0,"tr",20),t.YNc(13,Kt,1,0,"tr",21),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 J(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function dt(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 ft=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new F.by,this.selection=new B.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=de.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new F.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(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(an.YE,7),t.Gf(Ri.Mw,5),t.Gf(de.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)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,Yt,14,7,"div",7),t.YNc(17,J,1,0,"mat-spinner",8),t.YNc(18,dt,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,Ht.Nt,q.Fj,q.JJ,q.On,G.lW,an.YE,an.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Pn.oG,M.uh,M.xY,M.H8,nt.Ou,un.gM,et.w,pn.M,z.l,u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var mt=s(60205);function zt(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function $t(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function kt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const se=function(){return["id","name","enabled","script"]};function O(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,$t,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,kt,3,3,"mat-error",1),t.qZA()(),t._UZ(11,"perun-web-apps-attribute-unique-toggle",15),t.TgZ(12,"perun-web-apps-attribute-critical-operations-toggles",16),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(13,"perun-web-apps-attribute-rights-tab-group",17),t.ALo(14,"async"),t.TgZ(15,"mat-accordion")(16,"mat-expansion-panel",18)(17,"mat-expansion-panel-header")(18,"mat-panel-title"),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t._UZ(21,"app-services-list",19),t.ALo(22,"async"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(1),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("readOperation",e.initReadOperations)("writeOperation",e.initWriteOperations),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(14,18,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(20,20,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(24,se))("services",t.lcZ(22,22,e.services$))}}function re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 Ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,zt,1,0,"mat-spinner",3),t.YNc(5,O,23,25,"div",4),t.TgZ(6,"div",5),t.YNc(7,re,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",21),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let Ke=(()=>{class n{constructor(e,i,a,o,v,T,N,U,tt){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=U,this.attributeRightsService=tt,this.tableId=En.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,q.kI.required],description:[this.attDef.description,q.kI.required]}),this.collections$=new E.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,oi.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributeRules(this.attDef.id).subscribe(e=>{this.collections$=new E.X(e.attributePolicyCollections),this.initReadOperations=e.criticalActions.includes("READ"),this.initWriteOperations=e.criticalActions.includes("WRITE")})}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,R.w)(()=>(0,yt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,R.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e})),(0,R.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,this.initReadOperations,this.attDef.id,H.oW.READ)),(0,R.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,this.initWriteOperations,this.attDef.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(kn.TU),t.Y36(H.H8),t.Y36(H.KK),t.Y36(q.QS),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","data-cy","display-name-input","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[3,"attDef"],[3,"readOperation","writeOperation","readOperationChanged","writeOperationChanged"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ce,17,16,"div",1),t.YNc(2,be,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,Xt.IC,Ft.TO,Ft.KE,Ht.Nt,q._Y,q.Fj,q.JJ,q.JL,q.Q7,q.sg,q.u,Te.pp,Te.ib,Te.yz,Te.yK,G.lW,M.uh,M.xY,M.H8,nt.Ou,xe,ee,Ze,ft,mt.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],data:{animation:[Hn.SG,Hn.GH,Hn.Ls]}}),n})();var Me=s(70844),Fe=s(64597),oe=s(9185);let pe=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function Re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",20)(1,"mat-checkbox",21),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}function fn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"consentRelatedAttribute"),t.ALo(4,"translate"),t.ALo(5,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(3,8,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(4,12,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(5,14,e.namespace,i.serviceEnabled,i.consentRequired))}}function mn(n,r){1&n&&(t.ynx(0,17),t.YNc(1,Re,2,3,"th",18),t.YNc(2,fn,6,18,"td",19),t.BQk())}function je(n,r){1&n&&(t.TgZ(0,"th",24),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 Xe(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.id)}}function wn(n,r){1&n&&(t.TgZ(0,"th",24),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 Zn(n,r){if(1&n&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.friendlyName),"-friendly-name"),t.xp6(2),t.hij(" ",e.friendlyName," ")}}function Vn(n,r){1&n&&(t.TgZ(0,"th",24),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 Yn(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Ni(n,r){1&n&&(t.TgZ(0,"th",24),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 ce(n,r){if(1&n&&(t.TgZ(0,"td",26),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 $e(n,r){1&n&&(t.TgZ(0,"th",24),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 vn(n,r){if(1&n&&(t.TgZ(0,"td",26),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 Cn(n,r){1&n&&(t.TgZ(0,"th",24),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 $n(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function li(n,r){1&n&&t._UZ(0,"tr",27)}function xi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",28),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function Qn(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function Bi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const jn=function(n){return{all:n}};let ci=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new B.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=de.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"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 F.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,de.O6)((0,de.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,de.O6)((0,de.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,de.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,de.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}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,de.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(Ke,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.UA),t.Y36(Me.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(de.l9,7),t.Gf(an.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:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","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"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.YNc(4,mn,3,0,"ng-container",4),t.ALo(5,"isAllSelected"),t.ynx(6,5),t.YNc(7,je,3,3,"th",6),t.YNc(8,Xe,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,wn,3,3,"th",6),t.YNc(11,Zn,3,4,"td",9),t.BQk(),t.ynx(12,10),t.YNc(13,Vn,3,3,"th",6),t.YNc(14,Yn,2,1,"td",9),t.BQk(),t.ynx(15,11),t.YNc(16,Ni,3,3,"th",6),t.YNc(17,ce,3,3,"td",9),t.BQk(),t.ynx(18,12),t.YNc(19,$e,3,3,"th",6),t.YNc(20,vn,3,3,"td",9),t.BQk(),t.ynx(21,13),t.YNc(22,Cn,3,3,"th",6),t.YNc(23,$n,2,1,"td",9),t.BQk(),t.YNc(24,li,1,0,"tr",14),t.YNc(25,xi,1,2,"tr",15),t.qZA()()()(),t.YNc(26,Qn,3,3,"perun-web-apps-alert",16),t.YNc(27,Bi,3,3,"perun-web-apps-alert",16)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(14,jn,t.Dn7(5,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),t.xp6(20),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,an.YE,an.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Pn.oG,un.gM,et.w,z.l,u.X$,Fe.R,oe.I,ze,pe,Me.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var He=s(96214),Ye=s(7434);function ui(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function hi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function Ui(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function Mn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdminOrObserver())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let bi=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=En.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,de.kZ)();e.width="650px",this.dialog.open(Fi,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,de.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(W,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,de.kZ)();e.width="700px",this.dialog.open(_n,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,ui,3,3,"button",2),t.YNc(6,Ji,3,3,"button",3),t.YNc(7,hi,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,Ui,1,0,"mat-spinner",6),t.YNc(10,Mn,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,ci,He.t,Ye.L,u.X$]}),n})(),cn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var zi=s(9921);let en=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,zi.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Ti=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var In=s(71884),b=s(18505),k=s(47957),V=s(71948),rt=s(86257);function ut(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 xt(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function Ot(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Zt(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 ae(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 De(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 Qe=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new q.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,Y.b)(400),(0,In.x)(),(0,b.b)(()=>this.loading=!0),(0,R.w)(e=>this.usersService.findUsers(e)),(0,b.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{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(H.Fv),t.Y36(u.sK),t.Y36(H.IQ),t.Y36(H.KK),t.Y36(p.F0),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,ut,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,xt,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,Ot,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,Zt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,ae,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,De,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,k.XC,k.ZL,_t.ey,Ft.KE,Ft.bx,Ft.R9,Ht.Nt,q.Fj,q.JJ,q.oH,q.On,G.lW,nt.Ou,V.VQ,V.U0,rt.C0,rt.VY,rt.Vq,rt.fd,m.Ov,u.X$]}),n})();function sn(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 we(n){this._context=n}function gn(n,r){this._basis=new we(n),this._beta=r}we.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:sn(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:sn(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},gn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Jn=function n(r){function e(i){return 1===r?new we(i):new gn(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Hi=s(77579),di=s(70655),on=s(37340);function Fn(){}function pi(n){return null==n?Fn:function(){return this.querySelector(n)}}function Gn(){return[]}function _a(n){return null==n?Gn:function(){return this.querySelectorAll(n)}}function va(n){return function(){return this.matches(n)}}function mr(n){return new Array(n.length)}function Nn(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function P(n,r,e,i,a,o){for(var T,v=0,N=r.length,U=o.length;vr?1:n>=r?0:NaN}Nn.prototype={constructor:Nn,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 yi="http://www.w3.org/1999/xhtml";const _r={svg:"http://www.w3.org/2000/svg",xhtml:yi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wn(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),_r.hasOwnProperty(r)?{space:_r[r],local:n}:n}function Yi(n){return function(){this.removeAttribute(n)}}function vr(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Kn(n,r){return function(){this.setAttribute(n,r)}}function yc(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function bc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Tc(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 Gs(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function wc(n){return function(){this.style.removeProperty(n)}}function Ac(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Sc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Mr(n,r){return n.style.getPropertyValue(r)||Gs(n).getComputedStyle(n,null).getPropertyValue(r)}function Dc(n){return function(){delete this[n]}}function Lc(n,r){return function(){this[n]=r}}function kc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Us(n){return n.trim().split(/^|\s+/)}function Ha(n){return n.classList||new zs(n)}function zs(n){this._node=n,this._names=Us(n.getAttribute("class")||"")}function Hs(n,r){for(var e=Ha(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 Xs={},Ar=null;function su(n,r,e){return n=$s(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function $s(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function ou(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 lu(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Qt&&(Qt=te+1);!(Se=gt[Qt])&&++Qt=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function Le(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=qe);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?wc:"function"==typeof r?Sc:Ac)(n,r,e??"")):Mr(this.node(),n)},property:function Ic(n,r){return arguments.length>1?this.each((null==r?Dc:"function"==typeof r?kc:Lc)(n,r)):this.node()[n]},classed:function Pc(n,r){var e=Us(n+"");if(arguments.length<2){for(var i=Ha(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const fu=function n(r){function e(i){return 1===r?new xa(i):new to(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ya=Math.PI,Wa=2*Ya,Sr=1e-6,mu=Wa-Sr;function Xa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function eo(){return new Xa}Xa.prototype=eo.prototype={constructor:Xa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),U=o-n,tt=v-r,lt=U*U+tt*tt;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(lt>Sr)if(Math.abs(tt*T-N*U)>Sr&&a){var ot=e-o,Ct=i-v,It=T*T+N*N,Rt=ot*ot+Ct*Ct,gt=Math.sqrt(It),Gt=Math.sqrt(lt),te=a*Math.tan((Ya-Math.acos((It+lt-Rt)/(2*gt*Gt)))/2),Qt=te/Gt,ve=te/gt;Math.abs(Qt-1)>Sr&&(this._+="L"+(n+Qt*U)+","+(r+Qt*tt)),this._+="A"+a+","+a+",0,0,"+ +(tt*ot>U*Ct)+","+(this._x1=n+ve*T)+","+(this._y1=r+ve*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,U=r+T,tt=1^o,lt=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+U:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-U)>Sr)&&(this._+="L"+N+","+U),e&&(lt<0&&(lt=lt%Wa+Wa),lt>mu?this._+="A"+e+","+e+",0,1,"+tt+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+tt+","+(this._x1=N)+","+(this._y1=U):lt>Sr&&(this._+="A"+e+","+e+",0,"+ +(lt>=Ya)+","+tt+","+(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 gu=eo;function ya(n){return function(){return n}}function no(n){this._context=n}function _u(n){return new no(n)}function vu(n){return n[0]}function xu(n){return n[1]}no.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 io=Math.PI;function ao(n){return(1-Math.cos(io*n))/2}var ba=s(25922),or=s(49194),$a=s(73339),bu=(0,ba.Z)("start","end","cancel","interrupt"),Tu=[];function wa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function Cu(n,r,e){var a,i=n.__transition;function v(U){var tt,lt,ot,Ct;if(1!==e.state)return N();for(tt in i)if((Ct=i[tt]).name===e.name){if(3===Ct.state)return(0,$a.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[tt]):+tt0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=qi(n,r);if(e.state>3)throw new Error("too late; already running");return e}function qi(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function xr(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var na,qa,ho,Aa,co=180/Math.PI,Ka={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?tt+=360:tt-U>180&&(U+=360),ot.push({i:lt.push(a(lt)+"rotate(",null,i)-2,x:xr(U,tt)})):tt&<.push(a(lt)+"rotate("+tt+i)}(U.rotate,tt.rotate,lt,ot),function T(U,tt,lt,ot){U!==tt?ot.push({i:lt.push(a(lt)+"skewX(",null,i)-2,x:xr(U,tt)}):tt&<.push(a(lt)+"skewX("+tt+i)}(U.skewX,tt.skewX,lt,ot),function N(U,tt,lt,ot,Ct,It){if(U!==lt||tt!==ot){var Rt=Ct.push(a(Ct)+"scale(",null,",",null,")");It.push({i:Rt-4,x:xr(U,lt)},{i:Rt-2,x:xr(tt,ot)})}else(1!==lt||1!==ot)&&Ct.push(a(Ct)+"scale("+lt+","+ot+")")}(U.scaleX,U.scaleY,tt.scaleX,tt.scaleY,lt,ot),U=tt=null,function(Ct){for(var gt,It=-1,Rt=ot.length;++It>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Ea(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Ea(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=Nu.exec(n))?new Vi(r[1],r[2],r[3],1):(r=Pu.exec(n))?new Vi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Fu.exec(n))?Ea(r[1],r[2],r[3],r[4]):(r=Ru.exec(n))?Ea(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Bu.exec(n))?bo(r[1],r[2]/100,r[3]/100,1):(r=Zu.exec(n))?bo(r[1],r[2]/100,r[3]/100,r[4]):mo.hasOwnProperty(n)?vo(mo[n]):"transparent"===n?new Vi(NaN,NaN,NaN,0):null}function vo(n){return new Vi(n>>16&255,n>>8&255,255&n,1)}function Ea(n,r,e,i){return i<=0&&(n=r=e=NaN),new Vi(n,r,e,i)}function Gu(n){return n instanceof ia||(n=sa(n)),n?new Vi((n=n.rgb()).r,n.g,n.b,n.opacity):new Vi}function Da(n,r,e,i){return 1===arguments.length?Gu(n):new Vi(n,r,e,i??1)}function Vi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function xo(){return"#"+ns(this.r)+ns(this.g)+ns(this.b)}function yo(){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 ns(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function bo(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new ir(n,r,e,i)}function To(n){if(n instanceof ir)return new ir(n.h,n.s,n.l,n.opacity);if(n instanceof ia||(n=sa(n)),!n)return new ir;if(n instanceof ir)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new ir(v,T,N,n.opacity)}function ir(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function is(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 Co(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function wo(n){return function(){return n}}function So(n,r){var e=r-n;return e?function Ao(n,r){return function(e){return n+e*r}}(n,e):wo(isNaN(n)?r:n)}es(ia,sa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:go,formatHex:go,formatHsl:function Vu(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),es(Vi,Da,fo(ia,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new Vi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Vi(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:xo,formatHex:xo,formatRgb:yo,toString:yo})),es(ir,function Uu(n,r,e,i){return 1===arguments.length?To(n):new ir(n,r,e,i??1)},fo(ia,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new ir(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ir(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 Vi(is(n>=240?n-240:n+120,a,i),is(n,a,i),is(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 Eo=function n(r){var e=function Wu(n){return 1==(n=+n)?So:function(r,e){return e-r?function Yu(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):wo(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=Da(a)).r,(o=Da(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),U=So(a.opacity,o.opacity);return function(tt){return a.r=v(tt),a.g=T(tt),a.b=N(tt),a.opacity=U(tt),a+""}}return i.gamma=n,i}(1);function Do(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Co((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:xr(i,a)})),e=as.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Ja:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var Ah=ea.prototype.constructor;function ko(n){return function(){this.style.removeProperty(n)}}function Oh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Mh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Oh(n,v,e)),i}return o._value=r,o}function Bh(n){return function(r){this.textContent=n.call(this,r)}}function Zh(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Bh(a)),r}return i._value=n,i}var zh=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Io(){return++zh}var Pr=ea.prototype;cr.prototype=function Hh(n){return ea().transition(n)}.prototype={constructor:cr,select:function Ch(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=pi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},ea.prototype.transition=function Xh(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Io(),(e=ss).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function od(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function La(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 Ro=Symbol("implicit");function os(){var n=new Map,r=[],e=[],i=Ro;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Ro)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return os(r,e).unknown(i)},La.apply(a,arguments),a}var Rr=s(59695);function ud(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(lt=(T+U)/2))?T=lt:U=lt,(gt=e>=(ot=(N+tt)/2))?N=ot:tt=ot,a=o,!(o=o[Gt=gt<<1|Rt]))return a[Gt]=v,n;if(Ct=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===Ct&&e===It)return v.next=o,a?a[Gt]=v:n._root=v,n;do{a=a?a[Gt]=new Array(4):n._root=new Array(4),(Rt=r>=(lt=(T+U)/2))?T=lt:U=lt,(gt=e>=(ot=(N+tt)/2))?N=ot:tt=ot}while((Gt=gt<<1|Rt)==(te=(It>=ot)<<1|Ct>=lt));return a[te]=o,a[Gt]=v,n}function Di(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Cd(n){return n[0]}function Ad(n){return n[1]}function ls(n,r,e){var i=new cs(r??Cd,e??Ad,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function cs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function Zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Li=ls.prototype=cs.prototype;function Ed(n){return n.x+n.vx}function Dd(n){return n.y+n.vy}function Vo(n){var r,e,i=1,a=1;function o(){for(var N,tt,lt,ot,Ct,It,Rt,U=r.length,gt=0;gtot+yn||SeCt+yn||felt.index){var Dn=ot-tn.x-tn.vx,Ln=Ct-tn.y-tn.vy,Xn=Dn*Dn+Ln*Ln;XnN.r&&(N.r=N[U].r)}function T(){if(r){var N,tt,U=r.length;for(e=new Array(U),N=0;Ntt&&(tt=a),olt&&(lt=o));if(N>tt||U>lt)return this;for(this.cover(N,U).cover(tt,lt),e=0;en||n>=a||i>r||r>=o;)switch(U=(rtt||(T=It.y0)>lt||(N=It.x1)=Gt)<<1|n>=gt)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Rt],ot[ot.length-1-Rt]=It)}else{var te=n-+this._x.call(null,Ct.data),Qt=r-+this._y.call(null,Ct.data),ve=te*te+Qt*Qt;if(ve=(ot=(v+N)/2))?v=ot:N=ot,(Rt=lt>=(Ct=(T+U)/2))?T=Ct:U=Ct,r=e,!(e=e[gt=Rt<<1|It]))return this;if(!e.length)break;(r[gt+1&3]||r[gt+2&3]||r[gt+3&3])&&(i=r,Gt=gt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[gt]=o:delete r[gt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Gt]=e:this._root=e),this):(this._root=o,this)},Li.removeAll=function vd(n){for(var r=0,e=n.length;r1?(null==Rt?T.remove(It):T.set(It,Ct(Rt)),r):T.get(It)},find:function(It,Rt,gt){var Qt,ve,Se,fe,tn,Gt=0,te=n.length;for(null==gt?gt=1/0:gt*=gt,Gt=0;Gt1?(U.on(It,Rt),r):U.on(It)}}}function Xo(){var n,r,e,a,i=qn(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,It=n.length,Rt=ls(n,Md,Nd).visitAfter(tt);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===gt&&(Qt+=(gt=yr())*gt),0===Gt&&(Qt+=(Gt=yr())*Gt),Qt{return(n=Br||(Br={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Br;var n})(),Zr=(()=>{return(n=Zr||(Zr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Zr;var n})();function pp(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...U){const tt=+new Date;!T&&!1===e.leading&&(T=tt);const lt=r-(tt-T);return i=this,a=U,lt<=0?(clearTimeout(v),v=null,T=tt,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,lt)),o}}function fp(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:pp(o.value,n,r)}),this[a]}}}}const Qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class mp{constructor(r,e,i){"string"==typeof r&&(r=Qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=Qo.find(i=>i.name===r)),os().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 Vr=(()=>{return(n=Vr||(Vr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Vr;var n})();function Gr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function Jo(n,r){return"number"==typeof r?n[r]:r}const Ko={dagre:class vp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class xp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class bp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,U={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},tt={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},lt=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[U,{[v]:U[v],[o]:U[o]-N*lt},{[v]:tt[v],[o]:tt[o]+N*lt},tt];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Tp{constructor(){this.defaultSettings={force:Wo().force("charge",Xo().strength(-150)).force("collide",Vo(5)),forceLink:Yo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new Hi.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Gr(e.source).id,target:Gr(e.target).id,points:[{x:Gr(e.source).x,y:Gr(e.source).y},{x:Gr(e.target).x,y:Gr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Cp{constructor(){this.defaultSettings={force:(0,Vd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new Hi.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=Jo(r.nodes,e.source),a=Jo(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let qo=(()=>{class n{getLayout(e){if(Ko[e])return new Ko[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})(),wp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Ap=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Br.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Zr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Oo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new _p(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=fu.beta(1)),this.zone.run(()=>{this.dims=function gp({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 Oo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof pt.y?e:(0,yt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Qh.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let U=this._oldLinks.find(N?Rt=>`${Rt.source}${Rt.target}${Rt.id}`===T:Rt=>`${Rt.source}${Rt.target}`===T);const tt=this.graph.edges.find(N?Rt=>`${Rt.source}${Rt.target}${Rt.id}`===T:Rt=>`${Rt.source}${Rt.target}`===T);U?U.data&&tt&&tt.data&&JSON.stringify(U.data)!==JSON.stringify(tt.data)&&(U.data=tt.data):U=tt||v,U.oldLine=U.line;const lt=v.points,ot=this.generateLine(lt),Ct=Object.assign({},U);Ct.line=ot,Ct.points=lt,this.updateMidpointOnEdge(Ct,lt);const It=lt[Math.floor(lt.length/2)];It&&(Ct.textTransform=`translate(${It.x||0},${It.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Zr.UpperLeft:return"";case Zr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(Ks(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(ao).duration(e?500:0).attr("d",a.line),Ks(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(ao).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),U=N.querySelector("g.chart"),tt=N.createSVGPoint();tt.x=v,tt.y=T;const lt=tt.matrixTransform(U.getScreenCTM().inverse());this.pan(lt.x,lt.y,!0),this.zoom(a),this.pan(-lt.x,-lt.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=oa(this.transformationMatrix,Fo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=oa(this.transformationMatrix,Fo((-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=oa(this.transformationMatrix,function rd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return id(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof pt.y?T:(0,yt.of)(T);this.graphSubscription.add(N.subscribe(U=>{this.graph=U,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function sd(n){return function Po(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function cd(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 mp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Br.Horizontal:this.pan(a,0);break;case Br.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Mo.R)(window,"resize").pipe((0,Y.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(qo))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,Ud,5),t.Suo(a,zd,5),t.Suo(a,Hd,5),t.Suo(a,Yd,5),t.Suo(a,Wd,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(Xd,5),t.Gf($d,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:dp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,sp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,hp,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[wp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,on.X$)("animationState",[(0,on.eR)(":enter",[(0,on.oB)({opacity:0}),(0,on.jt)("500ms 100ms",(0,on.oB)({opacity:1}))])])]},changeDetection:0}),(0,di.gn)([fp(500)],n.prototype,"updateMinimap",null),n})(),Sp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[qo],imports:[[m.ez]]}),n})(),Ep=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Sp]}),n})();var tl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ca(n){return{type:n}}function ul(n,r){return nr?1:n>=r?0:NaN}function _s(n){let r=n,e=n;function i(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[tt],T)<0?N=tt+1:U=tt}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function Bp(n){return(r,e)=>ul(n(r),e)}(n)),{left:i,center:function o(v,T,N,U){null==N&&(N=0),null==U&&(U=v.length);const tt=i(v,T,N,U-1);return tt>N&&r(v[tt-1],T)>-r(v[tt],T)?tt-1:tt},right:function a(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[tt],T)>0?U=tt:N=tt+1}return N}}}["w","e"].map(ca),["n","s"].map(ca),["n","w","e","s","nw","ne","sw","se"].map(ca);var vs=Math.sqrt(50),xs=Math.sqrt(10),ys=Math.sqrt(2);function bs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=vs?a*=10:o>=xs?a*=5:o>=ys&&(a*=2),r0))return N;do{N.push(U=new Date(+o)),r(o,T),n(o)}while(U=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return ws.setTime(+o),As.setTime(+v),n(ws),n(As),Math.floor(e(ws,As))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Na=fi(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Na.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?fi(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Na:null};const Vp=Na;const ua=fi(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const ml=fi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const _l=fi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Pa=fi(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return fi(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/Ts})}var Fa=Lr(0),Ra=Lr(1),Hr=(Lr(2),Lr(3),Lr(4));const yl=(Lr(5),Lr(6),fi(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 Ss=fi(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()});Ss.every=function(n){return isFinite(n=Math.floor(n))&&n>0?fi(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ss;const Yp=fi(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const Wp=fi(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Es=fi(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return fi(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)/Ts})}var Ds=Ir(0),Ba=Ir(1),Yr=(Ir(2),Ir(3),Ir(4));const Jp=(Ir(5),Ir(6),fi(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 Ls=fi(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()});Ls.every=function(n){return isFinite(n=Math.floor(n))&&n>0?fi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Wr=Ls;function Al(n,r,e,i,a,o){const v=[[ua,1,pr],[ua,5,5e3],[ua,15,15e3],[ua,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,Ts],[r,1,dl],[r,3,3*dl],[n,1,Cs]];function N(U,tt,lt){const ot=Math.abs(tt-U)/lt,Ct=_s(([,,gt])=>gt).right(v,ot);if(Ct===v.length)return n.every(bs(U/Cs,tt/Cs,lt));if(0===Ct)return Vp.every(Math.max(bs(U,tt,lt),1));const[It,Rt]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function af(n,r,e){var i=mi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function sf(n,r,e){var i=mi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function of(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function lf(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function cf(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function El(n,r,e){var i=mi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Dl(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function uf(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 hf(n,r,e){var i=mi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function df(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ll(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function pf(n,r,e){var i=mi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function kl(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function ff(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function mf(n,r,e){var i=mi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function gf(n,r,e){var i=mi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function _f(n,r,e){var i=mi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function vf(n,r,e){var i=ef.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function xf(n,r,e){var i=mi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function yf(n,r,e){var i=mi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Il(n,r){return xn(n.getDate(),r,2)}function bf(n,r){return xn(n.getHours(),r,2)}function Tf(n,r){return xn(n.getHours()%12||12,r,2)}function Cf(n,r){return xn(1+Pa.count(kr(n),n),r,3)}function Ol(n,r){return xn(n.getMilliseconds(),r,3)}function wf(n,r){return Ol(n,r)+"000"}function Af(n,r){return xn(n.getMonth()+1,r,2)}function Sf(n,r){return xn(n.getMinutes(),r,2)}function Ef(n,r){return xn(n.getSeconds(),r,2)}function Df(n){var r=n.getDay();return 0===r?7:r}function Lf(n,r){return xn(Fa.count(kr(n)-1,n),r,2)}function Ml(n){var r=n.getDay();return r>=4||0===r?Hr(n):Hr.ceil(n)}function kf(n,r){return n=Ml(n),xn(Hr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function If(n){return n.getDay()}function Of(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Mf(n,r){return xn(n.getFullYear()%100,r,2)}function Nf(n,r){return xn((n=Ml(n)).getFullYear()%100,r,2)}function Pf(n,r){return xn(n.getFullYear()%1e4,r,4)}function Ff(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Hr(n):Hr.ceil(n)).getFullYear()%1e4,r,4)}function Rf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Nl(n,r){return xn(n.getUTCDate(),r,2)}function Bf(n,r){return xn(n.getUTCHours(),r,2)}function Zf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Vf(n,r){return xn(1+Es.count(Wr(n),n),r,3)}function Pl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function Gf(n,r){return Pl(n,r)+"000"}function Uf(n,r){return xn(n.getUTCMonth()+1,r,2)}function zf(n,r){return xn(n.getUTCMinutes(),r,2)}function Hf(n,r){return xn(n.getUTCSeconds(),r,2)}function Yf(n){var r=n.getUTCDay();return 0===r?7:r}function Wf(n,r){return xn(Ds.count(Wr(n)-1,n),r,2)}function Fl(n){var r=n.getUTCDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function Xf(n,r){return n=Fl(n),xn(Yr.count(Wr(n),n)+(4===Wr(n).getUTCDay()),r,2)}function $f(n){return n.getUTCDay()}function Qf(n,r){return xn(Ba.count(Wr(n)-1,n),r,2)}function jf(n,r){return xn(n.getUTCFullYear()%100,r,2)}function Jf(n,r){return xn((n=Fl(n)).getUTCFullYear()%100,r,2)}function Kf(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function qf(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getUTCFullYear()%1e4,r,4)}function tm(){return"+0000"}function Rl(){return"%"}function Bl(n){return+n}function Zl(n){return Math.floor(+n/1e3)}!function rm(n){(function tf(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,U=da(a),tt=pa(a),lt=da(o),ot=pa(o),Ct=da(v),It=pa(v),Rt=da(T),gt=pa(T),Gt=da(N),te=pa(N),Qt={a:function ii(ge){return v[ge.getDay()]},A:function sr(ge){return o[ge.getDay()]},b:function ri(ge){return N[ge.getMonth()]},B:function ai(ge){return T[ge.getMonth()]},c:null,d:Il,e:Il,f:wf,g:Nf,G:Ff,H:bf,I:Tf,j:Cf,L:Ol,m:Af,M:Sf,p:function Un(ge){return a[+(ge.getHours()>=12)]},q:function zn(ge){return 1+~~(ge.getMonth()/3)},Q:Bl,s:Zl,S:Ef,u:Df,U:Lf,V:kf,w:If,W:Of,x:null,X:null,y:Mf,Y:Pf,Z:Rf,"%":Rl},ve={a:function ma(ge){return v[ge.getUTCDay()]},A:function Kr(ge){return o[ge.getUTCDay()]},b:function qr(ge){return N[ge.getUTCMonth()]},B:function ta(ge){return T[ge.getUTCMonth()]},c:null,d:Nl,e:Nl,f:Gf,g:Jf,G:qf,H:Bf,I:Zf,j:Vf,L:Pl,m:Uf,M:zf,p:function Ai(ge){return a[+(ge.getUTCHours()>=12)]},q:function Ua(ge){return 1+~~(ge.getUTCMonth()/3)},Q:Bl,s:Zl,S:Hf,u:Yf,U:Wf,V:Xf,w:$f,W:Qf,x:null,X:null,y:jf,Y:Kf,Z:tm,"%":Rl},Se={a:function Dn(ge,Je,dn){var ie=Ct.exec(Je.slice(dn));return ie?(ge.w=It.get(ie[0].toLowerCase()),dn+ie[0].length):-1},A:function Ln(ge,Je,dn){var ie=lt.exec(Je.slice(dn));return ie?(ge.w=ot.get(ie[0].toLowerCase()),dn+ie[0].length):-1},b:function Xn(ge,Je,dn){var ie=Gt.exec(Je.slice(dn));return ie?(ge.m=te.get(ie[0].toLowerCase()),dn+ie[0].length):-1},B:function ti(ge,Je,dn){var ie=Rt.exec(Je.slice(dn));return ie?(ge.m=gt.get(ie[0].toLowerCase()),dn+ie[0].length):-1},c:function ei(ge,Je,dn){return ln(ge,r,Je,dn)},d:Ll,e:Ll,f:_f,g:Dl,G:El,H:kl,I:kl,j:pf,L:gf,m:df,M:ff,p:function yn(ge,Je,dn){var ie=U.exec(Je.slice(dn));return ie?(ge.p=tt.get(ie[0].toLowerCase()),dn+ie[0].length):-1},q:hf,Q:xf,s:yf,S:mf,u:sf,U:of,V:lf,w:af,W:cf,x:function ar(ge,Je,dn){return ln(ge,e,Je,dn)},X:function ni(ge,Je,dn){return ln(ge,i,Je,dn)},y:Dl,Y:El,Z:uf,"%":vf};function fe(ge,Je){return function(dn){var Ii,We,Bn,ie=[],Rn=-1,Sn=0,ki=ge.length;for(dn instanceof Date||(dn=new Date(+dn));++Rn53)return null;"w"in ie||(ie.w=1),"Z"in ie?(ki=(Sn=Is(ha(ie.y,0,1))).getUTCDay(),Sn=ki>4||0===ki?Ba.ceil(Sn):Ba(Sn),Sn=Es.offset(Sn,7*(ie.V-1)),ie.y=Sn.getUTCFullYear(),ie.m=Sn.getUTCMonth(),ie.d=Sn.getUTCDate()+(ie.w+6)%7):(ki=(Sn=ks(ha(ie.y,0,1))).getDay(),Sn=ki>4||0===ki?Ra.ceil(Sn):Ra(Sn),Sn=Pa.offset(Sn,7*(ie.V-1)),ie.y=Sn.getFullYear(),ie.m=Sn.getMonth(),ie.d=Sn.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),ki="Z"in ie?Is(ha(ie.y,0,1)).getUTCDay():ks(ha(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+7*ie.W-(ki+5)%7:ie.w+7*ie.U-(ki+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,Is(ie)):ks(ie)}}function ln(ge,Je,dn,ie){for(var Ii,We,Rn=0,Sn=Je.length,ki=dn.length;Rn=ki)return-1;if(37===(Ii=Je.charCodeAt(Rn++))){if(Ii=Je.charAt(Rn++),!(We=Se[Ii in Sl?Je.charAt(Rn++):Ii])||(ie=We(ge,dn,ie))<0)return-1}else if(Ii!=dn.charCodeAt(ie++))return-1}return ie}return Qt.x=fe(e,Qt),Qt.X=fe(i,Qt),Qt.c=fe(r,Qt),ve.x=fe(e,ve),ve.X=fe(i,ve),ve.c=fe(r,ve),{format:function(ge){var Je=fe(ge+="",Qt);return Je.toString=function(){return ge},Je},parse:function(ge){var Je=tn(ge+="",!1);return Je.toString=function(){return ge},Je},utcFormat:function(ge){var Je=fe(ge+="",ve);return Je.toString=function(){return ge},Je},utcParse:function(ge){var Je=tn(ge+="",!0);return Je.toString=function(){return ge},Je}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),_s(ul),_s(function am(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const Dm=["caretElm"];function Lm(n,r){}const km=function(n){return{model:n}};function Im(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Lm,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,km,e.context))}}function Om(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function s_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const U=+new Date;!T&&!1===e.leading&&(T=U);const tt=r-(U-T);return i=this,a=arguments,tt<=0?(clearTimeout(v),v=null,T=U,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,tt)),o}}function o_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:s_(o.value,n,r)}),this[a]}}}}var nn=(()=>{return(n=nn||(nn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",nn;var n})();function Jl(n,r,e){return e===nn.Top?n.top-7:e===nn.Bottom?n.top+n.height-r.height+7:e===nn.Center?n.top+n.height/2-r.height/2:void 0}function Kl(n,r,e){return e===nn.Left?n.left-7:e===nn.Right?n.left+n.width-r.width+7:e===nn.Center?n.left+n.width/2-r.width/2:void 0}class Gi{static calculateVerticalAlignment(r,e,i){let a=Jl(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===nn.Top&&(o=r.height/2-i.height/2+7),a===nn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===nn.Center&&(o=e.height/2-i.height/2);const v=Jl(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=Kl(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===nn.Left&&(o=r.width/2-i.width/2+7),a===nn.Right&&(o=e.width-r.width/2-i.width/2-7),a===nn.Center&&(o=e.width/2-i.width/2);const v=Kl(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===nn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===nn.Left&&r.left-e.width-a<0&&(o=!0),i===nn.Top&&r.top-e.height-a<0&&(o=!0),i===nn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===nn.Right?(T=-7,v=Gi.calculateVerticalCaret(i,e,a,o)):r===nn.Left?(T=e.width,v=Gi.calculateVerticalCaret(i,e,a,o)):r===nn.Top?(v=e.height,T=Gi.calculateHorizontalCaret(i,e,a,o)):r===nn.Bottom&&(v=-7,T=Gi.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===nn.Right?(T=i.left+i.width+a,v=Gi.calculateVerticalAlignment(i,e,o)):r===nn.Left?(T=i.left-e.width-a,v=Gi.calculateVerticalAlignment(i,e,o)):r===nn.Top?(v=i.top-e.height-a,T=Gi.calculateHorizontalAlignment(i,e,o)):r===nn.Bottom&&(v=i.top+i.height+a,T=Gi.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(Gi.shouldFlip(i,e,r,a)){if(r===nn.Right)return nn.Left;if(r===nn.Left)return nn.Right;if(r===nn.Top)return nn.Bottom;if(r===nn.Bottom)return nn.Top}return r}}let l_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=Gi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=Gi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Gi.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(Dm,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,Im,2,4,"span",3),t.YNc(5,Om,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,di.gn)([o_(100)],n.prototype,"onWindowResize",null),n})(),ql=(()=>{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 u_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new tl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new tl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ms=(()=>{class n extends class c_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=l_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ql))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var Qr=(()=>{return(n=Qr||(Qr={})).popover="popover",n.tooltip="tooltip",Qr;var n})(),Cr=(()=>{return(n=Cr||(Cr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Cr;var n})();let Rs,Ps=(()=>{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=nn.Top,this.tooltipAlignment=nn.Center,this.tooltipType=Qr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Cr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Cr.all||this.tooltipShowEvent===Cr.focus}get listensForHover(){return this.tooltipShowEvent===Cr.all||this.tooltipShowEvent===Cr.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(Ms),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),sc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ql,Ms],imports:[[m.ez]]}),n})();typeof window<"u"?Rs=window:typeof global<"u"&&(Rs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,ac,sc],m.ez,ac,sc]}),n})(),T_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),C_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),A_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),mc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,mc]]}),n})(),k_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),I_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),O_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,fc]]}),n})(),N_=(()=>{class n{constructor(){!function M_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,T_,fc,C_,w_,A_,mc,D_,k_,Zs,I_,O_]}),n})();function P_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function F_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function R_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function B_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function Z_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const V_=function(n,r){return[n,r]};function G_(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,F_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,R_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,B_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,Z_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,V_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function U_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function z_(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,U_,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 H_(n,r){if(1&n&&(t.YNc(0,G_,18,19,"div",1),t.YNc(1,z_,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 Y_=(()=>{class n{constructor(e,i,a,o,v,T,N,U,tt){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=U,this.translate=tt,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Jn,this.zoomToFit$=new Hi.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const U of this.facilities)this.serviceService.getAllRichDestinationsForFacility(U.id).subscribe(tt=>{this.connectToService(U,tt),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,U="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:U});const lt={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(lt)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),U=this.localVo+": "+v.shortName,tt=v.name,lt="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:tt,color:"#E5FFCC",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),U=this.localGroup+": "+i.name,tt=i.description,lt="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:tt,color:"#CCE5FF",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),U=this.localResource+": "+a.name,tt=a.description,lt="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:tt,color:"#FFCCCC",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const It={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.IQ),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.KK),t.Y36(H.xk),t.Y36(H.ff),t.Y36(H.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,P_,2,0,"div",1),t.YNc(4,H_,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[Ap,m.O5,Ps,nt.Ou,u.X$]}),n})();var W_=s(25828),gc=s(69024),X_=s(29862),fa=s(74281),$_=s(31359);function Q_(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function j_(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editUser())}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()(),t.TgZ(4,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.anonymizeUser())}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA()()()}}const J_=function(){return{color:"black"}},K_=function(n){return["/admin/users",n]};function q_(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,j_,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()()()),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,J_))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,K_,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 tv=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=v,this.authResolver=T,this.entityStorageService=N,this.router=U,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 o=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([o]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,de.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(X_.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,de.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(fa.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["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,Q_,1,0,"mat-spinner",1),t.YNc(3,q_,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,nt.Ou,un.gM,h.A,f.W,u.X$,$_.d]}),n})();var ev=s(17755),nv=s(74837),iv=s(85985),rv=s(98973),av=s(15935);function sv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const ov=function(){return["id","name","type"]};function lv(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",6),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,ov))("tableId",e.tableId)}}let cv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=En.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KG),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return i.onLoad()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,sv,1,0,"mat-spinner",3),t.YNc(7,lv,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,nt.Ou,av.D,He.t,Ye.L,u.X$]}),n})();var uv=s(6097),hv=s(97453),Ga=s(54004);function dv(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function pv(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 fv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,pv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let mv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new q.p4("",[q.kI.required,q.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new q.p4("",[q.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,oi.O)(""),(0,Ga.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,oi.O)(""),(0,Ga.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KG),t.Y36(H.Fv),t.Y36(u.sK),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,dv,1,0,"mat-spinner",2),t.YNc(5,fv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,k.XC,k.ZL,_t.ey,Ft.TO,Ft.KE,Ht.Nt,q.Fj,q.JJ,q.Q7,q.oH,G.lW,M.uh,M.xY,M.H8,nt.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var gv=s(80275);function _v(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function vv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function xv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function yv(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 bv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new B.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=En.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,de.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(mv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,de.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(fa.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(Z.d6),t.Y36(H.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,_v,3,3,"button",2),t.YNc(5,vv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,xv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,yv,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,He.t,Ye.L,gv.j,u.X$]}),n})();var Tv=s(80774),Cv=s(62109);function wv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Av=function(){return["id","name","vo","facility","description"]};function Sv(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,Av))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Ev=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=En.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,wv,1,0,"mat-spinner",3),t.YNc(7,Sv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,nt.Ou,He.t,Ye.L,Cv.C,u.X$]}),n})();var Dv=s(61365),Lv=s(71103),kv=s(53984);const Iv=["list"];function Ov(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function Mv(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 Nv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new B.Ov(!0,[]),this.tableId=En.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,de.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,de.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Lv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,de.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(fa.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,de.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Dv.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Iv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Ov,1,0,"mat-spinner",6),t.YNc(25,Mv,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,He.t,kv.p,m.uU,u.X$]}),n})();var Pv=s(40009),Fv=s(90719);function Rv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Bv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Zv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Vv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const Gv=function(){return{color:"black"}},Uv=function(n){return["/admin/services",n]};function zv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Bv,3,0,"button",12),t.YNc(12,Zv,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Vv,3,3,"button",17),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,Gv)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,Uv,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 Hv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,tt,lt,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=U,this.translate=tt,this.notificator=lt,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.entityStorageService.setEntity({id:this.serviceId,beanName:"Service"}),this.refresh()})}editService(){const e=(0,de.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Pv.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,de.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Fv.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,de.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(fa.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e;const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(H.WY),t.Y36(H.KK),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(u.sK),t.Y36(Z.V6),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link","queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Rv,1,0,"mat-spinner",1),t.YNc(3,zv,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))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,nt.Ou,un.gM,Tt.Rr,h.A,f.W,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:[Hn.Ji]}}),n})(),Yv=(()=>{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")},dependencies:[L.L]}),n})();var Wv=s(32076),Xv=s(24351),_c=s(54482),$v=s(25032),jv=s(86099),Jv=s(57359);function qv(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function t0(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 e0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,t0,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function n0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let r0=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=U,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,Xv.b)(Wv.D),(0,Ga.U)(tt=>tt.id),function Qv(n,r){return(0,_c.e)((e,i)=>{const a=new Set;e.subscribe((0,Jt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Jt.x)(i,()=>a.clear(),$v.Z))})}(),(0,jv.z)(tt=>this.consentHubService.getConsentHubByFacility(tt)),function Kv(n,r){return(0,_c.e)((0,Jv.U)(n,r,arguments.length>=2,!1,!0))}((tt,lt)=>tt||lt.enforceConsents,!1),(0,oi.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ga.U)(tt=>tt.enabled),(0,oi.O)(!0)),this.attrDefinitions=[],this.selection=new B.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(H.H8),t.Y36(H.IQ),t.Y36(H.WY),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,qv,1,0,"mat-spinner",1),t.YNc(5,e0,7,14,"div",2),t.YNc(6,n0,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,M.uh,M.xY,M.H8,nt.Ou,et.w,Ye.L,ci,m.Ov,u.X$]}),n})();function a0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function s0(n,r){1&n&&t._UZ(0,"th",15)}function o0(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 l0(n,r){1&n&&t._UZ(0,"tr",17)}function c0(n,r){1&n&&t._UZ(0,"tr",18)}function u0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,s0,1,0,"th",11),t.YNc(10,o0,2,1,"td",12),t.BQk(),t.YNc(11,l0,1,0,"tr",13),t.YNc(12,c0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let h0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new F.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,a0,1,0,"mat-spinner",1),t.YNc(5,u0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,G.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,u.X$]}),n})();function d0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function p0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function f0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function m0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let g0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new B.Ov(!0,[]),this.attrDefinitions=[],this.tableId=En.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,de.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(r0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,de.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(h0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,d0,3,3,"button",2),t.YNc(6,p0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,f0,1,0,"mat-spinner",5),t.YNc(9,m0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,ci,He.t,Ye.L,u.X$]}),n})();var _0=s(46597),v0=s(89466),x0=s(70242);function y0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function b0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function T0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function C0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const w0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function A0(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,w0))("tableId",e.tableId)}}let S0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new B.Ov(!0,[]),this.tableId=En.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,de.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(v0.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(H.KK),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,y0,3,4,"button",2),t.YNc(6,b0,3,4,"button",3),t.YNc(7,T0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,C0,1,0,"mat-spinner",6),t.YNc(10,A0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,x0.q,He.t,Ye.L,u.X$]}),n})();function E0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function D0(n,r){1&n&&t._UZ(0,"th",13)}function L0(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 k0(n,r){1&n&&t._UZ(0,"tr",15)}function I0(n,r){1&n&&t._UZ(0,"tr",16)}function O0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,D0,1,0,"th",9),t.YNc(10,L0,2,1,"td",10),t.BQk(),t.YNc(11,k0,1,0,"tr",11),t.YNc(12,I0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function M0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let N0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new F.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(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,E0,1,0,"mat-spinner",1),t.YNc(4,O0,13,9,"div",2),t.YNc(5,M0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,u.X$]}),n})();function P0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function F0(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 R0(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 B0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,F0,3,3,"mat-error",3),t.YNc(12,R0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let Z0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new q.p4(null,[q.kI.required,q.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new q.p4(null,[q.kI.required,q.kI.pattern(de.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(H.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,P0,1,0,"mat-spinner",2),t.YNc(5,B0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,_t.ey,Ft.TO,Ft.KE,Ht.Nt,q.Fj,q.JJ,q.Q7,q.oH,G.lW,M.uh,M.xY,M.H8,he.gD,nt.Ou,un.gM,u.X$]}),n})();var V0=s(23256);function G0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function U0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function z0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function H0(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 Y0=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=En.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,de.kZ)();e.width="400px",e.data={},this.dialog.open(Z0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,de.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(N0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.aC),t.Y36(M.uw),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,G0,3,3,"button",2),t.YNc(6,U0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,z0,1,0,"mat-spinner",5),t.YNc(9,H0,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,He.t,Ye.L,V0.Q,u.X$]}),n})();var W0=s(74010);function X0(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function $0(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 Q0=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=En.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,X0,1,0,"mat-spinner",3),t.YNc(7,$0,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,nt.Ou,He.t,Ye.L,W0.X,u.X$]}),n})();var vc=s(64080),j0=s(24179),J0=s(62707),K0=s(19191),q0=s(12651),tx=s(60526);function ex(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function nx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function ix(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function rx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const ax=function(){return["id","recent","name","description","expiration","groupStatus"]};function sx(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 t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,ax))}}const ox=function(n,r){return["/organizations",n,"members",r]};function lx(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),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,sx,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,ox,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 cx(n,r){if(1&n&&(t.YNc(0,rx,1,0,"mat-spinner",1),t.YNc(1,lx,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 ux(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 hx(n,r){1&n&&t._UZ(0,"mat-spinner")}function dx(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 px(n,r){if(1&n&&(t.YNc(0,hx,1,0,"mat-spinner",4),t.YNc(1,dx,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 fx(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 mx(n,r){1&n&&t._UZ(0,"mat-spinner")}function gx(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 _x(n,r){if(1&n&&(t.YNc(0,mx,1,0,"mat-spinner",4),t.YNc(1,gx,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 vx(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 xx(n,r){1&n&&t._UZ(0,"mat-spinner")}function yx(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 bx(n,r){if(1&n&&(t.YNc(0,xx,1,0,"mat-spinner",4),t.YNc(1,yx,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 Tx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,ix,2,3,"ng-template",8),t.YNc(3,cx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,ux,2,3,"ng-template",8),t.YNc(6,px,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,fx,2,3,"ng-template",8),t.YNc(9,_x,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,vx,2,3,"ng-template",8),t.YNc(12,bx,2,2,"ng-template",9),t.qZA()())}function Cx(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 wx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[vc.r.MEMBER_DEF_GROUP_EXPIRATION,vc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],["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,ex,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,nx,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,Tx,13,0,"mat-tab-group",4),t.YNc(7,Cx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,ke.SP,ke.uD,ke.uX,ke.Vc,nt.Ou,et.w,j0.W,J0.M,K0.Y,q0.t,tx.b,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),xc=(()=>{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 Ax(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 Sx(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 Ex(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 Dx(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let Lx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(kn.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],["data-cy","audit-message-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Ax,2,3,"ng-template",4),t.YNc(13,Sx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,Ex,2,3,"ng-template",4),t.YNc(16,Dx,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,G.lW,ke.SP,ke.uD,ke.uX,ke.Vc,M.uh,M.xY,M.H8,u.X$,xc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var kx=s(98739),Ix=s(56451),Ox=s(62383);function Mx(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function Nx(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 Px(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 Fx(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 Rx(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 Bx(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 Zx(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 Vx(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 Gx(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 Ux(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 zx(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 Hx(n,r){1&n&&t._UZ(0,"th",20)}function Yx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function Wx(n,r){1&n&&t._UZ(0,"tr",22)}function Xx(n,r){1&n&&t._UZ(0,"tr",23)}function $x(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 Qx=(()=>{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=de.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Ix.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new Z.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,de.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(Lx,i)}exportDisplayedData(e){(0,de.O6)((0,de.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.ly),t.Y36(En.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(de.l9,7),t.Gf(an.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:kx.ye,useClass:Z.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["data-cy","audit-message-detail-button","color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,Mx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,Nx,3,3,"th",5),t.YNc(8,Px,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,Fx,3,3,"th",5),t.YNc(11,Rx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Bx,3,3,"th",9),t.YNc(14,Zx,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,Vx,3,3,"th",9),t.YNc(17,Gx,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,Ux,3,3,"th",9),t.YNc(20,zx,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,Hx,1,0,"th",9),t.YNc(23,Yx,4,3,"td",6),t.BQk(),t.YNc(24,Wx,1,0,"tr",13),t.YNc(25,Xx,1,0,"tr",14),t.qZA()()(),t.YNc(26,$x,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,G.lW,an.YE,an.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,nt.Ou,et.w,z.l,m.Ov,u.X$,Ox.M,xc]}),n})(),jx=(()=>{class n{constructor(){this.tableId=En.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))},dependencies:[Qx,He.t,u.X$]}),n})();var Jx=s(44850);let Kx=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[G.lW,M.uh,M.xY,M.H8,Jx.d,et.w,u.X$]}),n})();function qx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}function ty(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.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 ey(n,r){1&n&&(t.ynx(0,14),t.YNc(1,qx,2,3,"th",15),t.YNc(2,ty,2,2,"td",16),t.BQk())}function ny(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function iy(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function ry(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function ay(n,r){if(1&n&&(t.TgZ(0,"td",23),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function sy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function oy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function ly(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function cy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",26),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function uy(n,r){if(1&n&&(t.TgZ(0,"td",23),t.YNc(1,cy,5,2,"span",25),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function hy(n,r){1&n&&t._UZ(0,"tr",27)}function dy(n,r){1&n&&t._UZ(0,"tr",28)}function py(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function fy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}const my=function(n){return{all:n}};let gy=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new B.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=de.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new F.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,de.O6)((0,de.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,de.O6)((0,de.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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,de.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,de.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,de.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(Kx,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.UA),t.Y36(M.uw),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(de.l9,7),t.Gf(an.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ey,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,ny,3,3,"th",5),t.YNc(7,iy,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,ry,3,3,"th",5),t.YNc(10,ay,3,4,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,sy,3,3,"th",5),t.YNc(13,oy,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,ly,3,3,"th",5),t.YNc(16,uy,2,1,"td",8),t.BQk(),t.YNc(17,hy,1,0,"tr",11),t.YNc(18,dy,1,0,"tr",12),t.qZA()()(),t.YNc(19,py,3,3,"perun-web-apps-alert",13),t.YNc(20,fy,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,my,t.xi3(4,10,i.dataSource,i.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,an.YE,an.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Pn.oG,Tt.Rr,et.w,z.l,u.X$,Fe.R,oe.I]}),n})();function _y(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function vy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function xy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function yy(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let by=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=En.HE,this.selection=new B.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,de.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(fa.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(H.WY),t.Y36(Z.x4),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_y,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,vy,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,xy,1,0,"mat-spinner",6),t.YNc(11,yy,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,nt.Ou,un.gM,gy,et.w,He.t,Ye.L,u.X$]}),n})();var Ty=s(57788),Vs=s(71992);const Cy=[{path:"",component:C,canActivateChild:[Vs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:bi,data:{animation:"AdminAttributesPage"}},{path:"users",component:W_.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Y0,data:{animation:"AdminOwnersPage"}},{path:"services",component:Tv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:jx,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:cn,children:[{path:"",component:Ti,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:en,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Qe,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Y_,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:cv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:by,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Ty.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:tv,canActivateChild:[Vs.a],children:[{path:"",component:ev.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:wx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:rv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:nv.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:iv.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:bv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:Q0,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Ev,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Nv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:uv.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:hv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:_0.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Hv,canActivateChild:[Vs.a],children:[{path:"",component:Yv,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:g0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:S0,data:{animation:"ServiceDestinationsPage"}}]}];let wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(Cy),p.Bz]}),n})();var Ay=s(14264),Sy=s(63189),Ey=s(46374);let Dy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Ep,N_,m.ez,wy,Ay.m,Sy.r,Ri.ez,Nt.d4,Ey.UsersModule]}),n})()},70242:(w,D,s)=>{"use strict";s.d(D,{q:()=>Nt});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(35382),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383),L=s(64597),I=s(9185);function B(_t,Xt){if(1&_t){const Ft=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(he){t.CHM(Ft);const ke=t.oxw(2);return t.KtG(he?ke.masterToggle():null)}),t.qZA()()}if(2&_t){const Ft=t.oxw().ngIf,Ht=t.oxw();t.xp6(1),t.Q6J("aria-label",Ht.checkboxLabel())("checked",Ht.selection.hasValue()&&Ft.all)("indeterminate",Ht.selection.hasValue()&&!Ft.all)}}function M(_t,Xt){if(1&_t){const Ft=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(he){const Ie=t.CHM(Ft).$implicit,Lt=t.oxw(2);return t.KtG(he?Lt.selection.toggle(Ie):null)})("click",function(he){return he.stopPropagation()}),t.qZA()()}if(2&_t){const Ft=Xt.$implicit,Ht=t.oxw(2);t.xp6(1),t.Q6J("aria-label",Ht.checkboxLabel(Ft))("checked",Ht.selection.isSelected(Ft))}}function F(_t,Xt){1&_t&&(t.ynx(0,19),t.YNc(1,B,2,3,"th",20),t.YNc(2,M,2,2,"td",21),t.BQk())}function Z(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function H(_t,Xt){if(1&_t&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.hij(" ",Ft.id," ")}}function G(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function nt(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.Oqu(Ft.service.name)}}function et(_t,Xt){1&_t&&t._UZ(0,"th",29)}function st(_t,Xt){1&_t&&(t.TgZ(0,"mat-icon",31),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&_t&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function K(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t.YNc(1,st,3,3,"mat-icon",30),t.qZA()),2&_t){const Ft=Xt.$implicit,Ht=t.oxw();t.xp6(1),t.Q6J("ngIf",!Ht.services.has(Ft.service.id))}}function $(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function it(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.Oqu(Ft.facility.name)}}function at(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function X(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&_t){const Ft=Xt.$implicit;t.uIk("data-cy",t.lcZ(1,2,Ft.destination)),t.xp6(2),t.hij(" ",Ft.destination," ")}}function W(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function q(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.Oqu(Ft.type.toUpperCase())}}function Y(_t,Xt){1&_t&&t._UZ(0,"th",29)}function R(_t,Xt){1&_t&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&_t&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function E(_t,Xt){1&_t&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&_t&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function pt(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t.YNc(1,R,3,3,"mat-icon",32),t.YNc(2,E,3,3,"mat-icon",32),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.Q6J("ngIf",!Ft.blocked),t.xp6(1),t.Q6J("ngIf",Ft.blocked)}}function St(_t,Xt){1&_t&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function Mt(_t,Xt){if(1&_t&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&_t){const Ft=Xt.$implicit;t.xp6(1),t.Oqu(Ft.propagationType)}}function Et(_t,Xt){1&_t&&t._UZ(0,"tr",34)}function Jt(_t,Xt){1&_t&&t._UZ(0,"tr",35)}function ue(_t,Xt){1&_t&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wt(_t,Xt){1&_t&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_t&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}const yt=function(_t){return{all:_t}};let Nt=(()=>{class _t{constructor(Ft,Ht){this.authResolver=Ft,this.tableCheckbox=Ht,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(Ft){this.sort=Ft,this.setDataSource()}static getDataForColumn(Ft,Ht){switch(Ht){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 _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(Ft){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,_t.getDataForColumn),Ft)}exportDisplayedData(Ft){const Ht=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,he=Ht+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ht,he),this.displayedColumns,_t.getDataForColumn),Ft)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(Ft,Ht)=>(0,m.Sd)(Ft,Ht,this.displayedColumns,_t.getDataForColumn),this.dataSource.sortData=(Ft,Ht)=>(0,m.pR)(Ft,Ht,_t.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 _t.\u0275fac=function(Ft){return new(Ft||_t)(t.Y36(p.x4),t.Y36(p.UA))},_t.\u0275cmp=t.Xpm({type:_t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(Ft,Ht){if(1&Ft&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&Ft){let he;t.iGM(he=t.CRH())&&(Ht.child=he.first),t.iGM(he=t.CRH())&&(Ht.matSort=he.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:33,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Ft,Ht){1&Ft&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(ke){return Ht.exportDisplayedData(ke)})("exportAllData",function(ke){return Ht.exportAllData(ke)}),t.TgZ(2,"table",2),t.YNc(3,F,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Z,3,3,"th",5),t.YNc(7,H,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,G,3,3,"th",5),t.YNc(10,nt,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,et,1,0,"th",10),t.YNc(13,K,2,1,"td",8),t.BQk(),t.ynx(14,11),t.YNc(15,$,3,3,"th",5),t.YNc(16,it,2,1,"td",8),t.BQk(),t.ynx(17,12),t.YNc(18,at,3,3,"th",5),t.YNc(19,X,3,4,"td",8),t.BQk(),t.ynx(20,13),t.YNc(21,W,3,3,"th",5),t.YNc(22,q,2,1,"td",8),t.BQk(),t.ynx(23,14),t.YNc(24,Y,1,0,"th",10),t.YNc(25,pt,3,2,"td",8),t.BQk(),t.ynx(26,15),t.YNc(27,St,3,3,"th",5),t.YNc(28,Mt,2,1,"td",8),t.BQk(),t.YNc(29,Et,1,0,"tr",16),t.YNc(30,Jt,1,0,"tr",17),t.qZA()()(),t.YNc(31,ue,3,3,"perun-web-apps-alert",18),t.YNc(32,wt,3,3,"perun-web-apps-alert",18)),2&Ft&&(t.Q6J("hidden",0===Ht.dataSource.filteredData.length||0===Ht.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Ht.pageSizeOptions)("dataLength",Ht.dataSource.filteredData.length)("tableId",Ht.tableId),t.xp6(1),t.Q6J("dataSource",Ht.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,yt,t.xi3(4,10,Ht.dataSource,Ht.selection.selected.length))),t.xp6(26),t.Q6J("matHeaderRowDef",Ht.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Ht.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Ht.dataSource.filteredData.length&&0!==Ht.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Ht.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$,L.R,I.I],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),_t})()},89466:(w,D,s)=>{"use strict";s.d(D,{u:()=>I});var c=s(32105),x=s(65412),_=s(30671),m=s(35382),p=s(94650),t=s(89383),d=s(36895),l=s(4859),h=s(51572),f=s(98380),u=s(70242);function g(B,M){1&B&&p._UZ(0,"mat-spinner",6)}function C(B,M){if(1&B&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&B){const F=p.oxw(2);p.Q6J("destinations",F.destinations)("displayedColumns",F.displayedColumns)}}function L(B,M){if(1&B&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&B){const F=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!F.loading)}}let I=(()=>{class B{constructor(F,Z,H,G,nt){this.dialogRef=F,this.data=Z,this.notificator=H,this.translate=G,this.serviceManager=nt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const F=this.destinations.pop();this.serviceManager.removeDestination(F.service.id,F.facility.id,F.destination,F.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return B.\u0275fac=function(F){return new(F||B)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(t.sK),p.Y36(c.KK))},B.\u0275cmp=p.Xpm({type:B,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(F,Z){1&F&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Z.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Z.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&F&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(Z.theme),p.xp6(1),p.Q6J("ngIf",Z.loading),p.xp6(1),p.Q6J("ngIf",!Z.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Z.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[d.O5,l.lW,x.uh,x.xY,x.H8,h.Ou,f.w,u.q,t.X$]}),B})()},23256:(w,D,s)=>{"use strict";s.d(D,{Q:()=>X});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(35382),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383),g=s(9185);function C(W,q){if(1&W){const Y=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(E){t.CHM(Y);const pt=t.oxw(2);return t.KtG(E?pt.masterToggle():null)}),t.qZA()()}if(2&W){const Y=t.oxw().ngIf,R=t.oxw();t.xp6(1),t.Q6J("aria-label",R.checkboxLabel())("checked",R.selection.hasValue()&&Y.all)("indeterminate",R.selection.hasValue()&&!Y.all)}}function L(W,q){if(1&W){const Y=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(E){const St=t.CHM(Y).$implicit,Mt=t.oxw(2);return t.KtG(E?Mt.selection.toggle(St):null)})("click",function(E){return E.stopPropagation()}),t.qZA()()}if(2&W){const Y=q.$implicit,R=t.oxw(2);t.xp6(1),t.Q6J("aria-label",R.checkboxLabel(Y))("checked",R.selection.isSelected(Y))}}function I(W,q){1&W&&(t.ynx(0,14),t.YNc(1,C,2,3,"th",15),t.YNc(2,L,2,2,"td",16),t.BQk())}function B(W,q){1&W&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function M(W,q){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const Y=q.$implicit;t.xp6(1),t.hij(" ",Y.id," ")}}function F(W,q){1&W&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function Z(W,q){if(1&W&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&W){const Y=q.$implicit;t.uIk("data-cy",Y.name),t.xp6(1),t.Oqu(Y.name)}}function H(W,q){1&W&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function G(W,q){if(1&W&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&W){const Y=q.$implicit;t.xp6(1),t.Oqu(Y.contact)}}function nt(W,q){1&W&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function et(W,q){if(1&W&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&W){const Y=q.$implicit;t.xp6(1),t.Oqu(Y.type)}}function st(W,q){1&W&&t._UZ(0,"tr",24)}function K(W,q){1&W&&t._UZ(0,"tr",25)}function $(W,q){1&W&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function it(W,q){1&W&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const at=function(W){return{all:W}};let X=(()=>{class W{constructor(Y,R){this.authResolver=Y,this.tableCheckbox=R,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(Y){this.sort=Y,this.setDataSource()}static getDataForColumn(Y,R){switch(R){case"id":return Y.id.toString();case"name":return Y.name;case"contact":return Y.contact;case"type":return Y.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(Y){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),Y)}exportDisplayedData(Y){const R=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,E=R+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(R,E),this.displayedColumns,W.getDataForColumn),Y)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Y,R)=>(0,m.Sd)(Y,R,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(Y,R)=>(0,m.pR)(Y,R,W.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(Y=>"id"!==Y)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Y){return Y?`${this.selection.isSelected(Y)?"deselect":"select"} row ${Y.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return W.\u0275fac=function(Y){return new(Y||W)(t.Y36(p.x4),t.Y36(p.UA))},W.\u0275cmp=t.Xpm({type:W,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(Y,R){if(1&Y&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&Y){let E;t.iGM(E=t.CRH())&&(R.child=E.first),t.iGM(E=t.CRH())&&(R.matSort=E.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Y,R){1&Y&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(pt){return R.exportDisplayedData(pt)})("exportAllData",function(pt){return R.exportAllData(pt)}),t.TgZ(2,"table",2),t.YNc(3,I,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,B,3,3,"th",5),t.YNc(7,M,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,F,3,3,"th",5),t.YNc(10,Z,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,H,3,3,"th",5),t.YNc(13,G,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,nt,3,3,"th",5),t.YNc(16,et,2,1,"td",8),t.BQk(),t.YNc(17,st,1,0,"tr",11),t.YNc(18,K,1,0,"tr",12),t.qZA()()(),t.YNc(19,$,3,3,"perun-web-apps-alert",13),t.YNc(20,it,3,3,"perun-web-apps-alert",13)),2&Y&&(t.Q6J("hidden",0===R.owners.length||0===R.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",R.tableId)("dataLength",R.dataSource.filteredData.length)("pageSizeOptions",R.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",R.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,at,t.xi3(4,10,R.dataSource,R.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",R.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",R.displayedColumns),t.xp6(1),t.Q6J("ngIf",!R.owners.length),t.xp6(1),t.Q6J("ngIf",!R.dataSource.filteredData.length&&R.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$,g.I]}),W})()},16087:(w,D,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,D,s)=>{"use strict";s.d(D,{B8:()=>et,Il:()=>x,J5:()=>m,SU:()=>nt,Ss:()=>st,Ym:()=>W,ZP:()=>Z,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function F(){return this.rgb().formatRgb()}function Z(R){var E,pt;return R=(R+"").trim().toLowerCase(),(E=l.exec(R))?(pt=E[1].length,E=parseInt(E[1],16),6===pt?H(E):3===pt?new st(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===pt?G(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===pt?G(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(R))?new st(E[1],E[2],E[3],1):(E=f.exec(R))?new st(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(R))?G(E[1],E[2],E[3],E[4]):(E=g.exec(R))?G(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(R))?at(E[1],E[2]/100,E[3]/100,1):(E=L.exec(R))?at(E[1],E[2]/100,E[3]/100,E[4]):I.hasOwnProperty(R)?H(I[R]):"transparent"===R?new st(NaN,NaN,NaN,0):null}function H(R){return new st(R>>16&255,R>>8&255,255&R,1)}function G(R,E,pt,St){return St<=0&&(R=E=pt=NaN),new st(R,E,pt,St)}function nt(R){return R instanceof x||(R=Z(R)),R?new st((R=R.rgb()).r,R.g,R.b,R.opacity):new st}function et(R,E,pt,St){return 1===arguments.length?nt(R):new st(R,E,pt,St??1)}function st(R,E,pt,St){this.r=+R,this.g=+E,this.b=+pt,this.opacity=+St}function K(){return"#"+it(this.r)+it(this.g)+it(this.b)}function $(){var R=this.opacity;return(1===(R=isNaN(R)?1:Math.max(0,Math.min(1,R)))?"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===R?")":", "+R+")")}function it(R){return((R=Math.max(0,Math.min(255,Math.round(R)||0)))<16?"0":"")+R.toString(16)}function at(R,E,pt,St){return St<=0?R=E=pt=NaN:pt<=0||pt>=1?R=E=NaN:E<=0&&(R=NaN),new q(R,E,pt,St)}function X(R){if(R instanceof q)return new q(R.h,R.s,R.l,R.opacity);if(R instanceof x||(R=Z(R)),!R)return new q;if(R instanceof q)return R;var E=(R=R.rgb()).r/255,pt=R.g/255,St=R.b/255,Mt=Math.min(E,pt,St),Et=Math.max(E,pt,St),Jt=NaN,ue=Et-Mt,wt=(Et+Mt)/2;return ue?(Jt=E===Et?(pt-St)/ue+6*(pt0&&wt<1?0:Jt,new q(Jt,ue,wt,R.opacity)}function W(R,E,pt,St){return 1===arguments.length?X(R):new q(R,E,pt,St??1)}function q(R,E,pt,St){this.h=+R,this.s=+E,this.l=+pt,this.opacity=+St}function Y(R,E,pt){return 255*(R<60?E+(pt-E)*R/60:R<180?pt:R<240?E+(pt-E)*(240-R)/60:E)}(0,c.Z)(x,Z,{copy:function(R){return Object.assign(new this.constructor,this,R)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHsl:function M(){return X(this).formatHsl()},formatRgb:F,toString:F}),(0,c.Z)(st,et,(0,c.l)(x,{brighter:function(R){return R=null==R?m:Math.pow(m,R),new st(this.r*R,this.g*R,this.b*R,this.opacity)},darker:function(R){return R=null==R?_:Math.pow(_,R),new st(this.r*R,this.g*R,this.b*R,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:K,formatHex:K,formatRgb:$,toString:$})),(0,c.Z)(q,W,(0,c.l)(x,{brighter:function(R){return R=null==R?m:Math.pow(m,R),new q(this.h,this.s,this.l*R,this.opacity)},darker:function(R){return R=null==R?_:Math.pow(_,R),new q(this.h,this.s,this.l*R,this.opacity)},rgb:function(){var R=this.h%360+360*(this.h<0),E=isNaN(R)||isNaN(this.s)?0:this.s,pt=this.l,St=pt+(pt<.5?pt:1-pt)*E,Mt=2*pt-St;return new st(Y(R>=240?R-240:R+120,Mt,St),Y(R,Mt,St),Y(R<120?R+240:R-120,Mt,St),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 R=this.opacity;return(1===(R=isNaN(R)?1:Math.max(0,Math.min(1,R)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===R?")":", "+R+")")}}))},68884:(w,D,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(D,{Z:()=>c,l:()=>x})},25922:(w,D,s)=>{"use strict";s.d(D,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(D,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,D,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(D,{tw:()=>_})},22910:(w,D,s)=>{"use strict";s.d(D,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,D,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(D,{V:()=>x,Z:()=>c})},32517:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,D,s)=>{"use strict";s.r(D),s.d(D,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,D,s)=>{"use strict";s.d(D,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var F=M[0],Z=M[1];return Z<0?"0."+new Array(-Z).join("0")+F:F.length>Z+1?F.slice(0,Z+1)+"."+F.slice(Z+1):F+new Array(Z-F.length+2).join("0")}const f={"%":(I,B)=>(100*I).toFixed(B),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,B)=>I.toExponential(B),f:(I,B)=>I.toFixed(B),g:(I,B)=>I.toPrecision(B),o:I=>Math.round(I).toString(8),p:(I,B)=>h(100*I,B),r:h,s:function l(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var F=M[0],Z=M[1],H=Z-(d=3*Math.max(-8,Math.min(8,Math.floor(Z/3))))+1,G=F.length;return H===G?F:H>G?F+new Array(H-G+1).join("0"):H>0?F.slice(0,H)+"."+F.slice(H):"0."+new Array(1-H).join("0")+(0,t.V)(I,Math.max(0,B+H-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var B=void 0===I.grouping||void 0===I.thousands?u:function x(I,B){return function(M,F){for(var Z=M.length,H=[],G=0,nt=I[0],et=0;Z>0&&nt>0&&(et+nt+1>F&&(nt=Math.max(1,F-et)),H.push(M.substring(Z-=nt,Z+nt)),!((et+=nt+1)>F));)nt=I[G=(G+1)%I.length];return H.reverse().join(B)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",F=void 0===I.currency?"":I.currency[1]+"",Z=void 0===I.decimal?".":I.decimal+"",H=void 0===I.numerals?u:function _(I){return function(B){return B.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),G=void 0===I.percent?"%":I.percent+"",nt=void 0===I.minus?"\u2212":I.minus+"",et=void 0===I.nan?"NaN":I.nan+"";function st($){var it=($=(0,m.Z)($)).fill,at=$.align,X=$.sign,W=$.symbol,q=$.zero,Y=$.width,R=$.comma,E=$.precision,pt=$.trim,St=$.type;"n"===St?(R=!0,St="g"):f[St]||(void 0===E&&(E=12),pt=!0,St="g"),(q||"0"===it&&"="===at)&&(q=!0,it="0",at="=");var Mt="$"===W?M:"#"===W&&/[boxX]/.test(St)?"0"+St.toLowerCase():"",Et="$"===W?F:/[%p]/.test(St)?G:"",Jt=f[St],ue=/[defgprs%]/.test(St);function wt(yt){var Xt,Ft,Ht,Nt=Mt,_t=Et;if("c"===St)_t=Jt(yt)+_t,yt="";else{var he=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?et:Jt(Math.abs(yt),E),pt&&(yt=function p(I){t:for(var Z,B=I.length,M=1,F=-1;M0&&(F=0)}return F>0?I.slice(0,F)+I.slice(Z+1):I}(yt)),he&&0==+yt&&"+"!==X&&(he=!1),Nt=(he?"("===X?X:nt:"-"===X||"("===X?"":X)+Nt,_t=("s"===St?C[8+d/3]:"")+_t+(he&&"("===X?")":""),ue)for(Xt=-1,Ft=yt.length;++Xt(Ht=yt.charCodeAt(Xt))||Ht>57){_t=(46===Ht?Z+yt.slice(Xt+1):yt.slice(Xt))+_t,yt=yt.slice(0,Xt);break}}R&&!q&&(yt=B(yt,1/0));var ke=Nt.length+yt.length+_t.length,Ie=ke>1)+Nt+yt+_t+Ie.slice(ke);break;default:yt=Ie+Nt+yt+_t}return H(yt)}return E=void 0===E?6:/[gprs]/.test(St)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),wt.toString=function(){return $+""},wt}return{format:st,formatPrefix:function K($,it){var at=st((($=(0,m.Z)($)).type="f",$)),X=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(it)/3))),W=Math.pow(10,-X),q=C[8+X/3];return function(Y){return at(W*Y)+q}}}}},78986:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,D,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(J){if(J&&J.__esModule)return J;var dt=Object.create(null);return J&&Object.keys(J).forEach(function(ft){if("default"!==ft){var mt=Object.getOwnPropertyDescriptor(J,ft);Object.defineProperty(dt,ft,mt.get?mt:{enumerable:!0,get:function(){return J[ft]}})}}),dt.default=J,Object.freeze(dt)}var Dt,g=u(x);function C(J,dt,ft){return dt in J?Object.defineProperty(J,dt,{value:ft,enumerable:!0,configurable:!0,writable:!0}):J[dt]=ft,J}function L(J){return function I(J){if(Array.isArray(J))return F(J)}(J)||function B(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||function M(J,dt){if(J){if("string"==typeof J)return F(J,dt);var ft=Object.prototype.toString.call(J).slice(8,-1);if("Object"===ft&&J.constructor&&(ft=J.constructor.name),"Map"===ft||"Set"===ft)return Array.from(J);if("Arguments"===ft||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ft))return F(J,dt)}}(J)||function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(J,dt){(null==dt||dt>J.length)&&(dt=J.length);for(var ft=0,mt=new Array(dt);ft1&&void 0!==arguments[1]?arguments[1]:0,ft=g.select(this),mt=J.attributes,zt=ft.node().attributes;if(zt)for(var $t=0;$t0?Cn.children[0].text:"")}null==ce.key&&(zt&&("ellipse"==vn||"polygon"==vn)&&(vn="path"),ce.key=vn+"-"+$e)}function Me(ce,$e){ce.id=($e?$e.id+".":"")+ce.key}function Fe(ce){O[ce.id]=ce}function oe(ce,$e){zt&&ce.id in re&&("polygon"==$e.tag||"ellipse"==$e.tag||"path"==$e.tag)&&($e.tag!=ce.tag||"polygon"==ce.tag)&&("path"!=$e.tag&&(ce.alternativeOld=Ie($e,ce)),"path"!=ce.tag&&(ce.alternativeNew=Ie(ce,$e)))}function pe(ce,$e){if(mt&&$e&&("path"==$e.tag||ce.alternativeOld&&"path"==ce.alternativeOld.tag)){var vn=(ce.alternativeNew||ce).attributes.d;if(ce.alternativeOld)var Cn=et(ce.alternativeOld);else Cn=et($e);(ce.alternativeOld||(ce.alternativeOld={})).points=function wt(J,dt,ft,mt){for(var zt=J,$t=zt.cloneNode(),kt=zt.getTotalLength(),se=($t.setAttribute("d",dt),$t).getTotalLength(),O=[0],re=0,Ce=mt?ft:ft/Math.max(kt,se);(re+=Ce)<1;)O.push(re);return O.push(1),O.map(function(Ke){var Me=zt.getPointAtLength(Ke*kt),Fe=$t.getPointAtLength(Ke*se);return[[Me.x,Me.y],[Fe.x,Fe.y]]})}(Cn,vn,$t,kt)}}function Re(ce){var vn=arguments.length>2?arguments[2]:void 0;Ke(ce,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Me(ce,vn);var $n=re[ce.id];Fe(ce),oe(ce,$n),pe(ce,$n);var li={};ce.children.forEach(function(xi){var Qn=xi.tag;("ellipse"==Qn||"polygon"==Qn)&&(Qn="path"),null==li[Qn]&&(li[Qn]=0),Re(xi,li[Qn]++,ce)})}function je(ce){(function fn(ce){if(se&&ce.parent&&"node"==ce.parent.attributes.class&&"title"==ce.tag){if(ce.children.length>0)var Cn=ce.children[0].text;else Cn="";Ce[Cn]=ce.parent}})(ce),function mn(ce){var vn=ce.tag;if(se&&!re[ce.id]&&ce.parent&&_t(ce)&&("path"==vn||"polygon"==vn)){if("polygon"==vn){var $n=ce.parent.children.find(function(Mn){return"path"==Mn.tag});$n&&(ce.totalLength=$n.totalLength)}var xi=function Ft(J){return function Xt(J){return"edge"==J.parent.attributes.class?J.parent:J.parent.parent.parent}(J).children.find(function(dt){return"title"==dt.tag})}(ce).children[0],Qn=xi.text.split("->");2!=Qn.length&&(Qn=xi.text.split("--"));var Bi=Qn[0],jn=Ce[Bi],ci=be[Bi];if(ci){if((Ye=jn.children.findIndex(function(Mn,bi){return"g"==Mn.tag}))>=0){var He=jn.children[Ye].children.findIndex(function(Mn,bi){return"a"==Mn.tag});jn=jn.children[Ye].children[He]}(Ye=ci.children.findIndex(function(Mn,bi){return"g"==Mn.tag}))>=0&&(He=ci.children[Ye].children.findIndex(function(bi,cn){return"a"==bi.tag}),ci=ci.children[Ye].children[He]);for(var ui=jn.children,Ye=0;Ye0&&this._queue.shift().call(this)}function Mi(J,dt,ft,mt){var zt=[J*ft-(dt=-dt)*(mt=-mt),J*mt+dt*ft];return[J=zt[0],dt=-(dt=zt[1])]}function Fi(J,dt,ft,mt,zt,$t,kt){var O=G(an.call(this,$t));J.data([O]),at.call(J.node(),O),de(J,dt,ft,mt,zt,$t,kt)}function de(J,dt,ft,mt,zt,$t,kt){var se=kt.shortening||0,be=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],Ke=mt-dt,Me=zt-ft,Fe=Math.sqrt(Ke*Ke+Me*Me);if(0==Fe)var oe=1,pe=0;else oe=Ke/Fe,pe=Me/Fe;if(mt=dt+(Fe-se-10-.1)*oe,zt=ft+(Fe-se-10-.1)*pe,$t.URL||$t.tooltip)var Re=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Re.selectWithoutDataPropagation("path"),mn=Re.selectWithoutDataPropagation("polygon");else fn=J.selectWithoutDataPropagation("path"),mn=J.selectWithoutDataPropagation("polygon");var je=f.path();je.moveTo(dt,ft),je.lineTo(mt,zt),fn.attr("d",je),mt=dt+(Fe-se-10)*oe,zt=ft+(Fe-se-10)*pe;for(var Xe=0;Xe b ["+dt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(kt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function kn(J,dt,ft,mt,zt,$t){var se=G(Q.call(this,mt,zt));return J.data([se]),at.call(J.node(),se),Te(J,dt,ft,zt),this}function Te(J,dt,ft,mt,zt){if(mt.URL||mt.tooltip)var $t=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else $t=J;var kt=$t.selectAll("ellipse,polygon,path,polyline"),se=J.selectWithoutDataPropagation("text");if(0!=kt.size()){var O=kt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=se.size()&&(O={x:+se.attr("x"),y:+se.attr("y"),width:0,height:0,cx:+se.attr("x"),cy:+se.attr("y")});return kt.each(function(re,Ce){var be=g.select(this);if(be.attr("cx"))be.attr("cx",W(dt)).attr("cy",W(ft));else if(be.attr("points")){var Ke=be.attr("points").trim();be.attr("points",function Lt($t,dt,ft){var zt,mt=(zt=$t.split(" ")).map(function(kt){return kt.split(",")});return mt=zt.map(function(kt){return[W(+dt+ +kt.split(",")[0]),W(+ft+ +kt.split(",")[1])]}),(zt=mt.map(function(kt){return kt.join(",")})).join(" ")}(Ke,dt-O.cx,ft-O.cy))}else{var Me=be.attr("d");be.attr("d",function jt(J,dt,ft){($t=J.split(/[A-Z ]/)).shift();var mt=J.split(/[^[A-Z ]+/),$t=($t.map(function(kt){return kt.split(",")}),$t.map(function(kt){return[W(+dt+ +kt.split(",")[0]),W(+ft+ +kt.split(",")[1])]}).map(function(kt){return kt.join(",")}));return mt.reduce(function(kt,se,O){return kt.concat(se,$t[O])},[]).join("")}(Me,dt-O.cx,ft-O.cy))}}),0!=se.size()&&se.attr("x",W(+se.attr("x")+dt-O.cx)).attr("y",W(+se.attr("y")+ft-O.cy)),this}function Pn(){if(!this._drawnNode)return this;var J=this._drawnNode.g;return J.empty()||J.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function Q(J,dt){for(var ft="",mt=0,zt=Object.keys(dt);mt"u"&&(kt=!1),typeof SharedWorker>"u"&&(se=!1),kt||se){var re=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==re.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),kt=!1,se=!1):(this._vizURL=re.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),kt=!1,se=!1))}if(se){var Ce="data:application/javascript;base64,"+btoa(ct.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Ce),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(kt){var be=new Blob([ct.toString()+"("+A.toString()+")()"]),Ke=window.URL.createObjectURL(be);this._worker=new Worker(Ke),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Me){ft._graphvizVersion=Me}.bind(this));this._selection=J,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Vt.call(this),J.node().__graphviz__=this}function Ut(J,dt){return g.select(J).graphviz(dt)}Pt.prototype=Ut.prototype=(C(Dt={constructor:Pt,engine:function le(J){return this._options.engine=J,this},addImage:function me(J,dt,ft){return this._images.push({path:J,width:dt,height:ft}),this},keyMode:function ee(J){if(!this._keyModes.has(J))throw Error("Illegal keyMode: "+J);if(J!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=J,this},fade:function Ze(J){return this._options.fade=J,this},tweenPaths:function ze(J){return this._options.tweenPaths=J,this},tweenShapes:function Tn(J){return this._options.tweenShapes=J,J&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function si(J){return this._options.convertEqualSidedPolygons=J,this},tweenPrecision:function Oi(J){return this._options.tweenPrecision=J,this},growEnteringEdges:function gi(J){return this._options.growEnteringEdges=J,this},zoom:function q(J){return this._options.zoom=J,this._options.zoom&&!this._zoomBehavior?Y.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function pt(J){var dt=this._zoomSelection;return J&&(dt=dt.transition(J)),dt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function Et(){return this._zoomBehavior||null},zoomSelection:function Jt(){return this._zoomSelection||null},zoomScaleExtent:function St(J){return this._options.zoomScaleExtent=J,this},zoomTranslateExtent:function Mt(J){return this._options.zoomTranslateExtent=J,this},render:function Ht(J){return this._busy?(this._queue.push(this.render.bind(this,J)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),he.call(this,J)}.bind(this),0):he.call(this,J),this)},layout:function _e(J,dt,ft,mt){if(this._worker)qt.call(this,{type:"layout",dot:J,engine:dt,options:ft},function($t){mt.call(this,$t.data)});else try{var zt=this.layoutSync(J,"svg",dt,ft);mt.call(this,{type:"done",svg:zt})}catch($t){mt.call(this,{type:"error",error:$t.message})}},dot:function ye(J,dt){var ft=this,mt=this._options.engine,zt=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(J,mt,{images:zt},function(kt){switch(kt.type){case"error":if(!ft._onerror)throw kt.error.message;ft._onerror(kt.error);break;case"done":Ee.call(this,kt.svg,dt)}}),this):(this._afterInit=this.dot.bind(this,J,dt),this)},data:function yt(){return this._data||null},renderDot:function Oe(J,dt){var ft=this;return this.dot(J,function mt(){ft.render(dt)}),this},transition:function Ae(J){return J instanceof Function?this._transitionFactory=J:this._transition=m.transition(J),this},active:function Ue(J){var ft=this._selection.selectWithoutDataPropagation("svg");return 0!=ft.size()?m.active(ft.node(),J):null},options:function Ve(J){if(typeof J>"u")return Object.assign({},this._options);for(var dt=0,ft=Object.keys(J);dt2")(Ke)+" ",pe+=Me+" ".repeat($t-Me.length),pe+=h.format(" >5")(Fe-ft)+" ","initEnd"!=Me&&(pe+=h.format(" >5")(Fe-mt.start[oe])),"dataProcessEnd"==Me&&(pe+=" prepare "+h.format(" >5")(Fe-mt.layoutEnd[oe])),"renderEnd"==Me&&O._transition&&(pe+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Fe-mt.renderStart[oe])),re=O._transition.delay(),Ce=O._transition.duration()),"transitionStart"==Me){var Re=Fe-mt.renderStart[oe];pe+=" transition delay "+h.format(" >5")(Fe-mt.renderStart[oe]),pe+=" expected "+h.format(" >5")(re),pe+=" diff "+h.format(" >5")(Re-re)}if("transitionEnd"==Me){var fn=Fe-mt.transitionStart[oe];pe+=" transition duration "+h.format(" >5")(fn),pe+=" expected "+h.format(" >5")(Ce),pe+=" diff "+h.format(" >5")(fn-Ce)}console.log(pe),ft=Fe}:null)},se=0;se5&&void 0!==arguments[5]?arguments[5]:{};if((zt=Object.assign({},zt)).style&&zt.style.includes("invis"))var kt=g.select(null);else{var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),be=G(an.call(this,zt));kt=re.append("g").data([be]),at.call(kt.node(),be),Fi.call(this,kt,J,dt,ft,mt,zt,$t)}return this._drawnEdge={g:kt,x1:J,y1:dt,x2:ft,y2:mt,attributes:zt},this},updateDrawnEdge:function Qi(J,dt,ft,mt){var zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},$t=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var kt=this._drawnEdge.g;return zt=Object.assign(this._drawnEdge.attributes,zt),this._drawnEdge.x1=J,this._drawnEdge.y1=dt,this._drawnEdge.x2=ft,this._drawnEdge.y2=mt,!kt.empty()||zt.style&&zt.style.includes("invis")||(kt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=kt),kt.empty()||Fi.call(this,kt,J,dt,ft,mt,zt,$t),this},moveDrawnEdgeEndPoint:function En(J,dt){var ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var mt=this._drawnEdge.g,zt=this._drawnEdge.x1,$t=this._drawnEdge.y1,kt=this._drawnEdge.attributes;return this._drawnEdge.x2=J,this._drawnEdge.y2=dt,de(mt,zt,$t,J,dt,kt,ft),this},insertDrawnEdge:function On(J){if(!this._drawnEdge)throw Error("No edge has been drawn");var dt=this._drawnEdge.g;if(dt.empty())return this;dt.selectWithoutDataPropagation("title").text(J);var $t=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),kt=$t.datum(),se=this._extractData(dt,kt.children.length,$t.datum());return kt.children.push(se),$(dt,se),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Dt,"drawnEdgeSelection",_n),C(Dt,"drawnEdgeSelection",_n),C(Dt,"drawNode",function Hn(J,dt,ft){var mt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((mt=Object.assign({},mt)).style&&mt.style.includes("invis"))var $t=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=G(Q.call(this,ft,mt));$t=O.append("g").data([Ce]),at.call($t.node(),Ce),kn.call(this,$t,J,dt,ft,mt,zt)}return this._drawnNode={g:$t,nodeId:ft,x:J,y:dt,attributes:mt},this}),C(Dt,"updateDrawnNode",function oi(J,dt,ft){var mt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var $t=this._drawnNode.g;return null==ft&&(ft=this._drawnNode.nodeId),mt=Object.assign(this._drawnNode.attributes,mt),this._drawnNode.nodeId=ft,this._drawnNode.x=J,this._drawnNode.y=dt,!$t.empty()||mt.style&&mt.style.includes("invis")||($t=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=$t),$t.empty()||kn.call(this,$t,J,dt,ft,mt,zt),this}),C(Dt,"moveDrawnNode",function Ri(J,dt){if(!this._drawnNode)throw Error("No node has been drawn");var ft=this._drawnNode.g,mt=this._drawnNode.attributes;return this._drawnNode.x=J,this._drawnNode.y=dt,ft.empty()||Te(ft,J,dt,mt),this}),C(Dt,"insertDrawnNode",function pn(J){if(!this._drawnNode)throw Error("No node has been drawn");null==J&&(J=this._drawnNode.nodeId);var dt=this._drawnNode.g;if(dt.empty())return this;var ft=this._drawnNode.attributes;if(dt.selectWithoutDataPropagation("title").text(J),ft.URL||ft.tooltip){var $t=dt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");$t.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var kt=$t.selectWithoutDataPropagation("text")}else dt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),kt=dt.selectWithoutDataPropagation("text");kt.text(ft.label||J);var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=re.datum(),be=this._extractData(dt,Ce.children.length,re.datum());return Ce.children.push(be),$(dt,be),this._drawnNode=null,this}),C(Dt,"removeDrawnNode",Pn),C(Dt,"removeDrawnNode",Pn),C(Dt,"drawnNodeSelection",z),C(Dt,"drawnNodeSelection",z),C(Dt,"graphvizVersion",function ke(){return this._graphvizVersion}),Dt),x.selection.prototype.graphviz=function Kt(J){var dt=this.node().__graphviz__;return dt?(dt.options(J),p.timeout(function(){dt._dispatch.call("initEnd",this)}.bind(this),0)):dt=new Pt(this,J),dt},x.selection.prototype.selectWithoutDataPropagation=function Yt(J){return g.select(this.size()>0?this.node().querySelector(J):null)},c.graphviz=Ut,Object.defineProperty(c,"__esModule",{value:!0})}(D,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,D,s)=>{"use strict";s.r(D),s.d(D,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(D),s.d(D,{interval:()=>nt,now:()=>g,timeout:()=>G,timer:()=>I,timerFlush:()=>B});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(et){setTimeout(et,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(et,st,K){var $=new L;return $.restart(et,st,K),$}function B(){g(),++c;for(var st,et=p;et;)(st=l-et._time)>=0&&et._call.call(null,st),et=et._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var et,K,st=p,$=1/0;st;)st._call?($>st._time&&($=st._time),et=st,st=st._next):(K=st._next,st._next=null,st=et?et._next=K:p=K);t=et,H($)}(),l=0}}function F(){var et=f.now(),st=et-d;st>1e3&&(h-=st,d=et)}function H(et){c||(x&&(x=clearTimeout(x)),et-l>24?(et<1/0&&(x=setTimeout(M,et-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}function G(et,st,K){var $=new L;return $.restart(it=>{$.stop(),et(it+st)},st=null==st?0:+st,K),$}function nt(et,st,K){var $=new L,it=st;return null==st?($.restart(et,st,K),$):($._restart=$.restart,$.restart=function(at,X,W){X=+X,W=null==W?g():+W,$._restart(function q(Y){Y+=it,$._restart(q,it+=X,W),at(Y)},X,W)},$.restart(et,st,K),$)}L.prototype=I.prototype={constructor:L,restart:function(et,st,K){if("function"!=typeof et)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=et,this._time=K,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},90268:(w,D,s)=>{"use strict";s.d(D,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,D,s)=>{"use strict";s.d(D,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,D,s)=>{"use strict";s.d(D,{Z:()=>c});const c=x=>()=>x},15629:(w,D,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(D,{Z:()=>c})},46176:(w,D,s)=>{"use strict";s.r(D),s.d(D,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ve,interpolateCubehelixLong:()=>rn,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>Ht,interpolateHclLong:()=>he,interpolateHsl:()=>Z,interpolateHslLong:()=>H,interpolateHue:()=>l,interpolateLab:()=>Xt,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>B.ZP,interpolateRgbBasis:()=>B.hD,interpolateRgbBasisClosed:()=>B.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>xe,quantize:()=>un});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Wt=Tt.length;return function(le){return Tt[Math.max(0,Math.min(Wt-1,Math.floor(le*Wt)))]}}var d=s(35147);function l(Tt,Wt){var le=(0,d.wx)(+Tt,+Wt);return function(me){var ee=le(me);return ee-360*Math.floor(ee/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),B=s(86811),M=s(52786);function F(Tt){return function(Wt,le){var me=Tt((Wt=(0,M.Ym)(Wt)).h,(le=(0,M.Ym)(le)).h),ee=(0,d.ZP)(Wt.s,le.s),Ze=(0,d.ZP)(Wt.l,le.l),ze=(0,d.ZP)(Wt.opacity,le.opacity);return function(Tn){return Wt.h=me(Tn),Wt.s=ee(Tn),Wt.l=Ze(Tn),Wt.opacity=ze(Tn),Wt+""}}}const Z=F(d.wx);var H=F(d.ZP),G=s(68884);const nt=Math.PI/180,et=180/Math.PI,K=.96422,at=4/29,X=6/29,W=3*X*X;function Y(Tt){if(Tt instanceof pt)return new pt(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Nt)return _t(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ze,ze,Wt=Jt(Tt.r),le=Jt(Tt.g),me=Jt(Tt.b),ee=St((.2225045*Wt+.7168786*le+.0606169*me)/1);return Wt===le&&le===me?Ze=ze=ee:(Ze=St((.4360747*Wt+.3850649*le+.1430804*me)/K),ze=St((.0139322*Wt+.0971045*le+.7141733*me)/.82521)),new pt(116*ee-16,500*(Ze-ee),200*(ee-ze),Tt.opacity)}function E(Tt,Wt,le,me){return 1===arguments.length?Y(Tt):new pt(Tt,Wt,le,me??1)}function pt(Tt,Wt,le,me){this.l=+Tt,this.a=+Wt,this.b=+le,this.opacity=+me}function St(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/W+at}function Mt(Tt){return Tt>X?Tt*Tt*Tt:W*(Tt-at)}function Et(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Jt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function ue(Tt){if(Tt instanceof Nt)return new Nt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof pt||(Tt=Y(Tt)),0===Tt.a&&0===Tt.b)return new Nt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(D,{Z:()=>c})},62681:(w,D,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,D,s)=>{"use strict";s.d(D,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),B=u(C.g,L.g),M=u(C.b,L.b),F=(0,m.ZP)(C.opacity,L.opacity);return function(Z){return C.r=I(Z),C.g=B(Z),C.b=M(Z),C.opacity=F(Z),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,B,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(D,{Z:()=>c})},23096:(w,D,s)=>{"use strict";s.d(D,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(D,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,B){var M,F,Z;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(Z=u*C+g*L)&&(C-=u*Z,L-=g*Z),(F=Math.sqrt(C*C+L*L))&&(C/=F,L/=F,Z/=F),u*L180?G+=360:G-H>180&&(H+=360),et.push({i:nt.push(I(nt)+"rotate(",null,L)-2,x:(0,c.Z)(H,G)})):G&&nt.push(I(nt)+"rotate("+G+L)}(H.rotate,G.rotate,nt,et),function F(H,G,nt,et){H!==G?et.push({i:nt.push(I(nt)+"skewX(",null,L)-2,x:(0,c.Z)(H,G)}):G&&nt.push(I(nt)+"skewX("+G+L)}(H.skewX,G.skewX,nt,et),function Z(H,G,nt,et,st,K){if(H!==nt||G!==et){var $=st.push(I(st)+"scale(",null,",",null,")");K.push({i:$-4,x:(0,c.Z)(H,nt)},{i:$-2,x:(0,c.Z)(G,et)})}else(1!==nt||1!==et)&&st.push(I(st)+"scale("+nt+","+et+")")}(H.scaleX,H.scaleY,G.scaleX,G.scaleY,nt,et),H=G=null,function(st){for(var it,K=-1,$=et.length;++K<$;)nt[(it=et[K]).i]=it.x(st);return nt.join("")}}}var h=l(function t(u){const g=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(u+"");return g.isIdentity?_:m(g.a,g.b,g.c,g.d,g.e,g.f)},"px, ","px)","deg)"),f=l(function d(u){return null!=u&&(p||(p=document.createElementNS("http://www.w3.org/2000/svg","g")),p.setAttribute("transform",u),u=p.transform.baseVal.consolidate())?m((u=u.matrix).a,u.b,u.c,u.d,u.e,u.f):_},", ",")",")")},37656:(w,D,s)=>{"use strict";s.d(D,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,D,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(D,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var nt,et,C=u[0],L=u[1],I=u[2],F=g[2],Z=g[0]-C,H=g[1]-L,G=Z*Z+H*H;if(G<1e-12)et=Math.log(F/I)/d,nt=function(X){return[C+X*Z,L+X*H,I*Math.exp(d*X*et)]};else{var st=Math.sqrt(G),K=(F*F-I*I+h*G)/(2*I*l*st),$=(F*F-I*I-h*G)/(2*F*l*st),it=Math.log(Math.sqrt(K*K+1)-K),at=Math.log(Math.sqrt($*$+1)-$);et=(at-it)/d,nt=function(X){var W=X*et,q=x(it),Y=I/(l*st)*(q*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*W+it)-function _(t){return((t=Math.exp(t))-1/t)/2}(it));return[C+Y*Z,L+Y*H,I*q/x(d*W+it)]}}return nt.duration=1e3*et*d/Math.SQRT2,nt}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,D,s)=>{"use strict";s.r(D),s.d(D,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),B=(u=+u)-(h=+h),M=C-l,F=L-h,Z=M*M+F*F;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(Z>_)if(Math.abs(F*I-B*M)>_&&g){var H=f-C,G=u-L,nt=I*I+B*B,et=H*H+G*G,st=Math.sqrt(nt),K=Math.sqrt(Z),$=g*Math.tan((c-Math.acos((nt+Z-et)/(2*st*K)))/2),it=$/K,at=$/st;Math.abs(it-1)>_&&(this._+="L"+(l+it*M)+","+(h+it*F)),this._+="A"+g+","+g+",0,0,"+ +(F*H>M*G)+","+(this._x1=l+at*I)+","+(this._y1=h+at*B)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),B=l+L,M=h+I,F=1^C,Z=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+B+","+M:(Math.abs(this._x1-B)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+B+","+M),f&&(Z<0&&(Z=Z%x+x),Z>m?this._+="A"+f+","+f+",0,1,"+F+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+F+","+(this._x1=B)+","+(this._y1=M):Z>_&&(this._+="A"+f+","+f+",0,"+ +(Z>=c)+","+F+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,D,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(D,{Z:()=>c})},7500:(w,D,s)=>{"use strict";s.d(D,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,D,s)=>{"use strict";s.r(D),s.d(D,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>B.Z,selectorAll:()=>M.Z,style:()=>F.S,window:()=>Z.Z});var c=s(7500),x=s(52016);function _(H){return(0,x.Z)((0,c.Z)(H).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(H){for(var G=this._;!(G in H);)if(!(H=H.parentNode))return;return H[G]},set:function(H,G){return H[this._]=G},remove:function(H){return this._ in H&&delete H[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(H,G){return H.target&&(H=(0,u.Z)(H),void 0===G&&(G=H.currentTarget),H=H.touches||[H]),Array.from(H,nt=>(0,f.Z)(nt,G))}var C=s(34638),L=s(37853);function I(H){return"string"==typeof H?new L.Y1([document.querySelectorAll(H)],[document.documentElement]):new L.Y1([null==H?[]:(0,C.Z)(H)],L.Jz)}var B=s(29742),M=s(32037),F=s(24476),Z=s(2442)},97905:(w,D,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(D,{P:()=>x,Z:()=>c})},36175:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,D,s)=>{"use strict";s.d(D,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,D,s)=>{"use strict";s.d(D,{Y1:()=>Te,ZP:()=>pn,Jz:()=>kn});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function Z(z,Q){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=Q}function H(z){return function(){return z}}function G(z,Q,ct,A,bt,Dt){for(var Ut,Pt=0,Kt=Q.length,Yt=Dt.length;PtQ?1:z>=Q?0:NaN}Z.prototype={constructor:Z,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,Q){return this._parent.insertBefore(z,Q)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Mt=s(36175);function Et(z){return function(){this.removeAttribute(z)}}function Jt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function ue(z,Q){return function(){this.setAttribute(z,Q)}}function wt(z,Q){return function(){this.setAttributeNS(z.space,z.local,Q)}}function yt(z,Q){return function(){var ct=Q.apply(this,arguments);null==ct?this.removeAttribute(z):this.setAttribute(z,ct)}}function Nt(z,Q){return function(){var ct=Q.apply(this,arguments);null==ct?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,ct)}}var Xt=s(24476);function Ft(z){return function(){delete this[z]}}function Ht(z,Q){return function(){this[z]=Q}}function he(z,Q){return function(){var ct=Q.apply(this,arguments);null==ct?delete this[z]:this[z]=ct}}function Ie(z){return z.trim().split(/^|\s+/)}function Lt(z){return z.classList||new jt(z)}function jt(z){this._node=z,this._names=Ie(z.getAttribute("class")||"")}function Vt(z,Q){for(var ct=Lt(z),A=-1,bt=Q.length;++A=0&&(this._names.splice(Q,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var ze=s(7500);function si(){return null}function gi(){var z=this.parentNode;z&&z.removeChild(this)}function Si(){var z=this.cloneNode(!1),Q=this.parentNode;return Q?Q.insertBefore(z,this.nextSibling):z}function tr(){var z=this.cloneNode(!0),Q=this.parentNode;return Q?Q.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function(Q){var ct="",A=Q.indexOf(".");return A>=0&&(ct=Q.slice(A+1),Q=Q.slice(0,A)),{type:Q,name:ct}})}function Fi(z){return function(){var Q=this.__on;if(Q){for(var Dt,ct=0,A=-1,bt=Q.length;ct=re&&(re=O+1);!(be=kt[re])&&++re=0;)(Pt=A[bt])&&(Dt&&4^Pt.compareDocumentPosition(Dt)&&Dt.parentNode.insertBefore(Pt,Dt),Dt=Pt);return this},sort:function X(z){function Q(dt,ft){return dt&&ft?z(dt.__data__,ft.__data__):!dt-!ft}z||(z=W);for(var ct=this._groups,A=ct.length,bt=new Array(A),Dt=0;Dt1?this.each((null==Q?Ft:"function"==typeof Q?he:Ht)(z,Q)):this.node()[z]},classed:function Oe(z,Q){var ct=Ie(z+"");if(arguments.length<2){for(var A=Lt(this.node()),bt=-1,Dt=ct.length;++bt{"use strict";s.d(D,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,D,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(D,{Z:()=>x})},32037:(w,D,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(D,{Z:()=>x})},75819:(w,D,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(D,{Z:()=>c})},2442:(w,D,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(D,{Z:()=>c})},73339:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,D,s)=>{"use strict";s.d(D,{B7:()=>L,HT:()=>I,R8:()=>B,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(G,nt,et){var st=new L;return st.restart(G,nt,et),st}function B(){g(),++c;for(var nt,G=p;G;)(nt=l-G._time)>=0&&G._call.call(null,nt),G=G._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var G,et,nt=p,st=1/0;nt;)nt._call?(st>nt._time&&(st=nt._time),G=nt,nt=nt._next):(et=nt._next,nt._next=null,nt=G?G._next=et:p=et);t=G,H(st)}(),l=0}}function F(){var G=f.now(),nt=G-d;nt>1e3&&(h-=nt,d=G)}function H(G){c||(x&&(x=clearTimeout(x)),G-l>24?(G<1/0&&(x=setTimeout(M,G-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(G,nt,et){if("function"!=typeof G)throw new TypeError("callback is not a function");et=(null==et?g():+et)+(null==nt?0:+nt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=G,this._time=et,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},18429:(w,D,s)=>{"use strict";s.r(D),s.d(D,{active:()=>pn,interrupt:()=>Z,transition:()=>_n});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,Q,ct,A,bt,Dt){var Pt=z.__transition;if(Pt){if(ct in Pt)return}else z.__transition={};!function F(z,Q,ct){var bt,A=z.__transition;function Pt(Yt){var J,dt,ft,mt;if(1!==ct.state)return Kt();for(J in A)if((mt=A[J]).name===ct.name){if(3===mt.state)return(0,m.Z)(Pt);4===mt.state?(mt.state=6,mt.timer.stop(),mt.on.call("interrupt",z,z.__data__,mt.index,mt.group),delete A[J]):+J0)throw new Error("too late; already scheduled");return ct}function B(z,Q){var ct=M(z,Q);if(ct.state>3)throw new Error("too late; already running");return ct}function M(z,Q){var ct=z.__transition;if(!ct||!(ct=ct[Q]))throw new Error("transition not found");return ct}function Z(z,Q){var A,bt,Pt,ct=z.__transition,Dt=!0;if(ct){for(Pt in Q=null==Q?null:Q+"",ct)(A=ct[Pt]).name===Q?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete ct[Pt]):Dt=!1;Dt&&delete z.__transition}}var G=s(75349),nt=s(36175);function et(z,Q){var ct,A;return function(){var bt=B(this,z),Dt=bt.tween;if(Dt!==ct)for(var Pt=0,Ut=(A=ct=Dt).length;Pt=0&&(Q=Q.slice(0,ct)),!Q||"start"===Q})}(Q)?I:B;return function(){var Pt=Dt(this,z),Ut=Pt.on;Ut!==A&&(bt=(A=Ut).copy()).on(Q,ct),Pt.on=bt}}var rn=s(29742),un=s(32037),Wt=c.ZP.prototype.constructor,me=s(24476);function Ze(z){return function(){this.style.removeProperty(z)}}function gi(z,Q,ct){return function(A){this.style.setProperty(z,Q.call(this,A),ct)}}function _i(z,Q,ct){var A,bt;function Dt(){var Pt=Q.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&gi(z,Pt,ct)),A}return Dt._value=Q,Dt}function vi(z){return function(Q){this.textContent=z.call(this,Q)}}function Qi(z){var Q,ct;function A(){var bt=z.apply(this,arguments);return bt!==ct&&(Q=(ct=bt)&&vi(bt)),Q}return A._value=z,A}var ji=0;function On(z,Q,ct,A){this._groups=z,this._parents=Q,this._name=ct,this._id=A}function _n(z){return(0,c.ZP)().transition(z)}function an(){return++ji}var Hn=c.ZP.prototype;On.prototype=_n.prototype={constructor:On,select:function xe(z){var Q=this._name,ct=this._id;"function"!=typeof z&&(z=(0,rn.Z)(z));for(var A=this._groups,bt=A.length,Dt=new Array(bt),Pt=0;Pt1&&A.name===Q)return new On([[z]],Pn,Q,+bt);return null}},46041:(w,D,s)=>{"use strict";s.r(D),s.d(D,{zoom:()=>H,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=G=>()=>G;function l(G,{sourceEvent:nt,target:et,transform:st,dispatch:K}){Object.defineProperties(this,{type:{value:G,enumerable:!0,configurable:!0},sourceEvent:{value:nt,enumerable:!0,configurable:!0},target:{value:et,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:K}})}function h(G,nt,et){this.k=G,this.x=nt,this.y=et}h.prototype={constructor:h,scale:function(G){return 1===G?this:new h(this.k*G,this.x,this.y)},translate:function(G,nt){return 0===G&0===nt?this:new h(this.k,this.x+this.k*G,this.y+this.k*nt)},apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},applyX:function(G){return G*this.k+this.x},applyY:function(G){return G*this.k+this.y},invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},invertX:function(G){return(G-this.x)/this.k},invertY:function(G){return(G-this.y)/this.k},rescaleX:function(G){return G.copy().domain(G.range().map(this.invertX,this).map(G.invert,G))},rescaleY:function(G){return G.copy().domain(G.range().map(this.invertY,this).map(G.invert,G))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(G){for(;!G.__zoom;)if(!(G=G.parentNode))return f;return G.__zoom}function g(G){G.stopImmediatePropagation()}function C(G){G.preventDefault(),G.stopImmediatePropagation()}function L(G){return!(G.ctrlKey&&"wheel"!==G.type||G.button)}function I(){var G=this;return G instanceof SVGElement?(G=G.ownerSVGElement||G).hasAttribute("viewBox")?[[(G=G.viewBox.baseVal).x,G.y],[G.x+G.width,G.y+G.height]]:[[0,0],[G.width.baseVal.value,G.height.baseVal.value]]:[[0,0],[G.clientWidth,G.clientHeight]]}function B(){return this.__zoom||f}function M(G){return-G.deltaY*(1===G.deltaMode?.05:G.deltaMode?1:.002)*(G.ctrlKey?10:1)}function F(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z(G,nt,et){var st=G.invertX(nt[0][0])-et[0][0],K=G.invertX(nt[1][0])-et[1][0],$=G.invertY(nt[0][1])-et[0][1],it=G.invertY(nt[1][1])-et[1][1];return G.translate(K>st?(st+K)/2:Math.min(0,st)||Math.max(0,K),it>$?($+it)/2:Math.min(0,$)||Math.max(0,it))}function H(){var q,Y,R,G=L,nt=I,et=Z,st=M,K=F,$=[0,1/0],it=[[-1/0,-1/0],[1/0,1/0]],at=250,X=_.Z,W=(0,c.Z)("start","zoom","end"),E=500,St=0,Mt=10;function Et(Lt){Lt.property("__zoom",B).on("wheel.zoom",Xt).on("mousedown.zoom",Ft).on("dblclick.zoom",Ht).filter(K).on("touchstart.zoom",he).on("touchmove.zoom",ke).on("touchend.zoom touchcancel.zoom",Ie).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Jt(Lt,jt){return(jt=Math.max($[0],Math.min($[1],jt)))===Lt.k?Lt:new h(jt,Lt.x,Lt.y)}function ue(Lt,jt,Vt){var qt=jt[0]-Vt[0]*Lt.k,_e=jt[1]-Vt[1]*Lt.k;return qt===Lt.x&&_e===Lt.y?Lt:new h(Lt.k,qt,_e)}function wt(Lt){return[(+Lt[0][0]+ +Lt[1][0])/2,(+Lt[0][1]+ +Lt[1][1])/2]}function yt(Lt,jt,Vt,qt){Lt.on("start.zoom",function(){Nt(this,arguments).event(qt).start()}).on("interrupt.zoom end.zoom",function(){Nt(this,arguments).event(qt).end()}).tween("zoom",function(){var _e=this,ye=arguments,Ee=Nt(_e,ye).event(qt),Oe=nt.apply(_e,ye),Ae=null==Vt?wt(Oe):"function"==typeof Vt?Vt.apply(_e,ye):Vt,Ue=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Ve=_e.__zoom,rn="function"==typeof jt?jt.apply(_e,ye):jt,xe=X(Ve.invert(Ae).concat(Ue/Ve.k),rn.invert(Ae).concat(Ue/rn.k));return function(un){if(1===un)un=rn;else{var Tt=xe(un),Wt=Ue/Tt[2];un=new h(Wt,Ae[0]-Tt[0]*Wt,Ae[1]-Tt[1]*Wt)}Ee.zoom(null,un)}})}function Nt(Lt,jt,Vt){return!Vt&&Lt.__zooming||new _t(Lt,jt)}function _t(Lt,jt){this.that=Lt,this.args=jt,this.active=0,this.sourceEvent=null,this.extent=nt.apply(Lt,jt),this.taps=0}function Xt(Lt,...jt){if(G.apply(this,arguments)){var Vt=Nt(this,jt).event(Lt),qt=this.__zoom,_e=Math.max($[0],Math.min($[1],qt.k*Math.pow(2,st.apply(this,arguments)))),ye=(0,p.Z)(Lt);if(Vt.wheel)(Vt.mouse[0][0]!==ye[0]||Vt.mouse[0][1]!==ye[1])&&(Vt.mouse[1]=qt.invert(Vt.mouse[0]=ye)),clearTimeout(Vt.wheel);else{if(qt.k===_e)return;Vt.mouse=[ye,qt.invert(ye)],(0,t.interrupt)(this),Vt.start()}C(Lt),Vt.wheel=setTimeout(Ee,150),Vt.zoom("mouse",et(ue(Jt(qt,_e),Vt.mouse[0],Vt.mouse[1]),Vt.extent,it))}function Ee(){Vt.wheel=null,Vt.end()}}function Ft(Lt,...jt){if(!R&&G.apply(this,arguments)){var Vt=Nt(this,jt,!0).event(Lt),qt=(0,m.Z)(Lt.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ue,!0),_e=(0,p.Z)(Lt,ye),ye=Lt.currentTarget,Ee=Lt.clientX,Oe=Lt.clientY;(0,x.Z)(Lt.view),g(Lt),Vt.mouse=[_e,this.__zoom.invert(_e)],(0,t.interrupt)(this),Vt.start()}function Ae(Ve){if(C(Ve),!Vt.moved){var rn=Ve.clientX-Ee,xe=Ve.clientY-Oe;Vt.moved=rn*rn+xe*xe>St}Vt.event(Ve).zoom("mouse",et(ue(Vt.that.__zoom,Vt.mouse[0]=(0,p.Z)(Ve,ye),Vt.mouse[1]),Vt.extent,it))}function Ue(Ve){qt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ve.view,Vt.moved),C(Ve),Vt.event(Ve).end()}}function Ht(Lt,...jt){if(G.apply(this,arguments)){var Vt=this.__zoom,qt=(0,p.Z)(Lt.changedTouches?Lt.changedTouches[0]:Lt,this),_e=Vt.invert(qt),ye=Vt.k*(Lt.shiftKey?.5:2),Ee=et(ue(Jt(Vt,ye),qt,_e),nt.apply(this,jt),it);C(Lt),at>0?(0,m.Z)(this).transition().duration(at).call(yt,Ee,qt,Lt):(0,m.Z)(this).call(Et.transform,Ee,qt,Lt)}}function he(Lt,...jt){if(G.apply(this,arguments)){var ye,Ee,Oe,Ae,Vt=Lt.touches,qt=Vt.length,_e=Nt(this,jt,Lt.changedTouches.length===qt).event(Lt);for(g(Lt),Ee=0;Ee{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,D,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,D,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function D(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=D,D.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},D.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},D.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,D,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,D,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,D,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var F=g.edge(M.v,M.w)||0,Z=u(M);g.setEdge(M.v,M.w,F+Z),L=Math.max(L,g.node(M.v).out+=Z),C=Math.max(C,g.node(M.w).in+=Z)});var I=c.range(L+C+3).map(function(){return new _}),B=C+1;return c.forEach(g.nodes(),function(M){h(I,B,g.node(M))}),{graph:g,buckets:I,zeroIdx:B}}(f,u||m),C=function t(f,u,g){for(var B,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;B=I.dequeue();)d(f,u,g,B);for(;B=L.dequeue();)d(f,u,g,B);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(B=u[M].dequeue()){C=C.concat(d(f,u,g,B,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(B){var M=f.edge(B),F=f.node(B.v);L&&I.push({v:B.v,w:B.w}),F.out-=M,h(u,g,F)}),c.forEach(f.outEdges(C.v),function(B){var M=f.edge(B),Z=f.node(B.w);Z.in-=M,h(u,g,Z)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,D,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(wt,yt){var Nt=yt&&yt.debugTiming?C.time:C.notime;Nt("layout",function(){var _t=Nt(" buildLayoutGraph",function(){return function $(wt){var yt=new L({multigraph:!0,compound:!0}),Nt=ue(wt.graph());return yt.setGraph(c.merge({},Z,Jt(Nt,F),c.pick(Nt,H))),c.forEach(wt.nodes(),function(_t){var Xt=ue(wt.node(_t));yt.setNode(_t,c.defaults(Jt(Xt,G),nt)),yt.setParent(_t,wt.parent(_t))}),c.forEach(wt.edges(),function(_t){var Xt=ue(wt.edge(_t));yt.setEdge(_t,c.merge({},st,Jt(Xt,et),c.pick(Xt,K)))}),yt}(wt)});Nt(" runLayout",function(){!function B(wt,yt){yt(" makeSpaceForEdgeLabels",function(){!function it(wt){var yt=wt.graph();yt.ranksep/=2,c.forEach(wt.edges(),function(Nt){var _t=wt.edge(Nt);_t.minlen*=2,"c"!==_t.labelpos.toLowerCase()&&("TB"===yt.rankdir||"BT"===yt.rankdir?_t.width+=_t.labeloffset:_t.height+=_t.labeloffset)})}(wt)}),yt(" removeSelfEdges",function(){!function St(wt){c.forEach(wt.edges(),function(yt){if(yt.v===yt.w){var Nt=wt.node(yt.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:yt,label:wt.edge(yt)}),wt.removeEdge(yt)}})}(wt)}),yt(" acyclic",function(){x.run(wt)}),yt(" nestingGraph.run",function(){l.run(wt)}),yt(" rank",function(){m(C.asNonCompoundGraph(wt))}),yt(" injectEdgeLabelProxies",function(){!function at(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(Nt.width&&Nt.height){var _t=wt.node(yt.v),Xt=wt.node(yt.w);C.addDummyNode(wt,"edge-proxy",{rank:(Xt.rank-_t.rank)/2+_t.rank,e:yt},"_ep")}})}(wt)}),yt(" removeEmptyRanks",function(){d(wt)}),yt(" nestingGraph.cleanup",function(){l.cleanup(wt)}),yt(" normalizeRanks",function(){p(wt)}),yt(" assignRankMinMax",function(){!function X(wt){var yt=0;c.forEach(wt.nodes(),function(Nt){var _t=wt.node(Nt);_t.borderTop&&(_t.minRank=wt.node(_t.borderTop).rank,_t.maxRank=wt.node(_t.borderBottom).rank,yt=c.max(yt,_t.maxRank))}),wt.graph().maxRank=yt}(wt)}),yt(" removeEdgeLabelProxies",function(){!function W(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);"edge-proxy"===Nt.dummy&&(wt.edge(Nt.e).labelRank=Nt.rank,wt.removeNode(yt))})}(wt)}),yt(" normalize.run",function(){_.run(wt)}),yt(" parentDummyChains",function(){t(wt)}),yt(" addBorderSegments",function(){h(wt)}),yt(" order",function(){u(wt)}),yt(" insertSelfEdges",function(){!function Mt(wt){var yt=C.buildLayerMatrix(wt);c.forEach(yt,function(Nt){var _t=0;c.forEach(Nt,function(Xt,Ft){var Ht=wt.node(Xt);Ht.order=Ft+_t,c.forEach(Ht.selfEdges,function(he){C.addDummyNode(wt,"selfedge",{width:he.label.width,height:he.label.height,rank:Ht.rank,order:Ft+ ++_t,e:he.e,label:he.label},"_se")}),delete Ht.selfEdges})})}(wt)}),yt(" adjustCoordinateSystem",function(){f.adjust(wt)}),yt(" position",function(){g(wt)}),yt(" positionSelfEdges",function(){!function Et(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);if("selfedge"===Nt.dummy){var _t=wt.node(Nt.e.v),Xt=_t.x+_t.width/2,Ft=_t.y,Ht=Nt.x-Xt,he=_t.height/2;wt.setEdge(Nt.e,Nt.label),wt.removeNode(yt),Nt.label.points=[{x:Xt+2*Ht/3,y:Ft-he},{x:Xt+5*Ht/6,y:Ft-he},{x:Xt+Ht,y:Ft},{x:Xt+5*Ht/6,y:Ft+he},{x:Xt+2*Ht/3,y:Ft+he}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(wt)}),yt(" removeBorderNodes",function(){!function pt(wt){c.forEach(wt.nodes(),function(yt){if(wt.children(yt).length){var Nt=wt.node(yt),_t=wt.node(Nt.borderTop),Xt=wt.node(Nt.borderBottom),Ft=wt.node(c.last(Nt.borderLeft)),Ht=wt.node(c.last(Nt.borderRight));Nt.width=Math.abs(Ht.x-Ft.x),Nt.height=Math.abs(Xt.y-_t.y),Nt.x=Ft.x+Nt.width/2,Nt.y=_t.y+Nt.height/2}}),c.forEach(wt.nodes(),function(yt){"border"===wt.node(yt).dummy&&wt.removeNode(yt)})}(wt)}),yt(" normalize.undo",function(){_.undo(wt)}),yt(" fixupEdgeLabelCoords",function(){!function R(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(wt)}),yt(" undoCoordinateSystem",function(){f.undo(wt)}),yt(" translateGraph",function(){!function q(wt){var yt=Number.POSITIVE_INFINITY,Nt=0,_t=Number.POSITIVE_INFINITY,Xt=0,Ft=wt.graph(),Ht=Ft.marginx||0,he=Ft.marginy||0;function ke(Ie){var Lt=Ie.x,jt=Ie.y,Vt=Ie.width,qt=Ie.height;yt=Math.min(yt,Lt-Vt/2),Nt=Math.max(Nt,Lt+Vt/2),_t=Math.min(_t,jt-qt/2),Xt=Math.max(Xt,jt+qt/2)}c.forEach(wt.nodes(),function(Ie){ke(wt.node(Ie))}),c.forEach(wt.edges(),function(Ie){var Lt=wt.edge(Ie);c.has(Lt,"x")&&ke(Lt)}),yt-=Ht,_t-=he,c.forEach(wt.nodes(),function(Ie){var Lt=wt.node(Ie);Lt.x-=yt,Lt.y-=_t}),c.forEach(wt.edges(),function(Ie){var Lt=wt.edge(Ie);c.forEach(Lt.points,function(jt){jt.x-=yt,jt.y-=_t}),c.has(Lt,"x")&&(Lt.x-=yt),c.has(Lt,"y")&&(Lt.y-=_t)}),Ft.width=Nt-yt+Ht,Ft.height=Xt-_t+he}(wt)}),yt(" assignNodeIntersects",function(){!function Y(wt){c.forEach(wt.edges(),function(yt){var Ft,Ht,Nt=wt.edge(yt),_t=wt.node(yt.v),Xt=wt.node(yt.w);Nt.points?(Ft=Nt.points[0],Ht=Nt.points[Nt.points.length-1]):(Nt.points=[],Ft=Xt,Ht=_t),Nt.points.unshift(C.intersectRect(_t,Ft)),Nt.points.push(C.intersectRect(Xt,Ht))})}(wt)}),yt(" reversePoints",function(){!function E(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);Nt.reversed&&Nt.points.reverse()})}(wt)}),yt(" acyclic.undo",function(){x.undo(wt)})}(_t,Nt)}),Nt(" updateInputGraph",function(){!function M(wt,yt){c.forEach(wt.nodes(),function(Nt){var _t=wt.node(Nt),Xt=yt.node(Nt);_t&&(_t.x=Xt.x,_t.y=Xt.y,yt.children(Nt).length&&(_t.width=Xt.width,_t.height=Xt.height))}),c.forEach(wt.edges(),function(Nt){var _t=wt.edge(Nt),Xt=yt.edge(Nt);_t.points=Xt.points,c.has(Xt,"x")&&(_t.x=Xt.x,_t.y=Xt.y)}),wt.graph().width=yt.graph().width,wt.graph().height=yt.graph().height}(wt,_t)})})};var F=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},H=["acyclicer","ranker","rankdir","align"],G=["width","height"],nt={width:0,height:0},et=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function Jt(wt,yt){return c.mapValues(c.pick(wt,yt),Number)}function ue(wt){var yt={};return c.forEach(wt,function(Nt,_t){yt[_t.toLowerCase()]=Nt}),yt}},45760:(w,D,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,D,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var B=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),F=l.node(L);l.setParent(B,L),F.borderTop=B,l.setParent(M,L),F.borderBottom=M,c.forEach(I,function(Z){m(l,h,f,u,g,C,Z);var H=l.node(Z),G=H.borderTop?H.borderTop:Z,nt=H.borderBottom?H.borderBottom:Z,et=H.borderTop?u:2*u,st=G!==nt?1:g-C[L]+1;l.setEdge(B,G,{weight:et,minlen:st,nestingEdge:!0}),l.setEdge(nt,M,{weight:et,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,B,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,D,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,B,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,D,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,D,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),B=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+B})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,D,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(B){return p(C,B,I)})}function u(C,L){var I=new d;c.forEach(C,function(B){var M=B.graph().root,F=m(B,M,I,L);c.forEach(F.vs,function(Z,H){B.node(Z).order=H}),t(B,I,F.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(B,M){C.node(B).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),B=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var Z,F=Number.POSITIVE_INFINITY,H=0,G=0;G<4;++H,++G){u(H%2?I:B,H%4>=2),M=l.buildLayerMatrix(C);var nt=_(C,M);nt{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,D,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,D,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,B={};L&&(g=c.filter(g,function(nt){return nt!==L&&nt!==I}));var M=x(l,g);c.forEach(M,function(nt){if(l.children(nt.v).length){var et=p(l,nt.v,f,u);B[nt.v]=et,c.has(et,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(nt,et)}});var F=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(F,B);var Z=m(F,u);if(L&&(Z.vs=c.flatten([L,Z.vs,I],!0),l.predecessors(L).length)){var H=l.node(l.predecessors(L)[0]),G=l.node(l.predecessors(I)[0]);c.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+H.order+G.order)/(Z.weight+2),Z.weight+=2}return Z}},93803:(w,D,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(B){return c.has(B,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(B){return-B.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(B){L+=B.vs.length,u.push(B.vs),g+=B.barycenter*B.weight,C+=B.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,D,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(F,Z){var H={};return c.reduce(Z,function G(nt,et){var st=0,K=0,$=nt.length,it=c.last(et);return c.forEach(et,function(at,X){var W=function t(F,Z){if(F.node(Z).dummy)return c.find(F.predecessors(Z),function(H){return F.node(H).dummy})}(F,at),q=W?F.node(W).order:$;(W||at===it)&&(c.forEach(et.slice(K,X+1),function(Y){c.forEach(F.predecessors(Y),function(R){var E=F.node(R),pt=E.order;(ptit)&&d(H,W,at)})})}return c.reduce(Z,function nt(et,st){var $,K=-1,it=0;return c.forEach(st,function(at,X){if("border"===F.node(at).dummy){var W=F.predecessors(at);W.length&&($=F.node(W[0]).order,G(st,it,X,K,$),it=X,K=$)}G(st,it,st.length,$,et.length)}),st}),H}function d(F,Z,H){if(Z>H){var G=Z;Z=H,H=G}var nt=F[Z];nt||(F[Z]=nt={}),nt[H]=!0}function l(F,Z,H){if(Z>H){var G=Z;Z=H,H=G}return c.has(F[Z],H)}function h(F,Z,H,G){var nt={},et={},st={};return c.forEach(Z,function(K){c.forEach(K,function($,it){nt[$]=$,et[$]=$,st[$]=it})}),c.forEach(Z,function(K){var $=-1;c.forEach(K,function(it){var at=G(it);if(at.length)for(var X=((at=c.sortBy(at,function(R){return st[R]})).length-1)/2,W=Math.floor(X),q=Math.ceil(X);W<=q;++W){var Y=at[W];et[it]===it&&${"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,D,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(H){H=d(H),m(H);var nt,G=x(H);for(g(G),h(G,H);nt=L(G);)B(G,H,nt,I(G,H,nt))}function h(H,G){var nt=t(H,H.nodes());nt=nt.slice(0,nt.length-1),c.forEach(nt,function(et){!function f(H,G,nt){var et=H.node(nt);H.edge(nt,et.parent).cutvalue=u(H,G,nt)}(H,G,et)})}function u(H,G,nt){var st=H.node(nt).parent,K=!0,$=G.edge(nt,st),it=0;return $||(K=!1,$=G.edge(st,nt)),it=$.weight,c.forEach(G.nodeEdges(nt),function(at){var X=at.v===nt,W=X?at.w:at.v;if(W!==st){var q=X===K,Y=G.edge(at).weight;if(it+=q?Y:-Y,function F(H,G,nt){return H.hasEdge(G,nt)}(H,nt,W)){var R=H.edge(nt,W).cutvalue;it+=q?-R:R}}}),it}function g(H,G){arguments.length<2&&(G=H.nodes()[0]),C(H,{},1,G)}function C(H,G,nt,et,st){var K=nt,$=H.node(et);return G[et]=!0,c.forEach(H.neighbors(et),function(it){c.has(G,it)||(nt=C(H,G,nt,it,et))}),$.low=K,$.lim=nt++,st?$.parent=st:delete $.parent,nt}function L(H){return c.find(H.edges(),function(G){return H.edge(G).cutvalue<0})}function I(H,G,nt){var et=nt.v,st=nt.w;G.hasEdge(et,st)||(et=nt.w,st=nt.v);var K=H.node(et),$=H.node(st),it=K,at=!1;K.lim>$.lim&&(it=$,at=!0);var X=c.filter(G.edges(),function(W){return at===Z(0,H.node(W.v),it)&&at!==Z(0,H.node(W.w),it)});return c.minBy(X,function(W){return _(G,W)})}function B(H,G,nt,et){H.removeEdge(nt.v,nt.w),H.setEdge(et.v,et.w,{}),g(H),h(H,G),function M(H,G){var nt=c.find(H.nodes(),function(st){return!G.node(st).parent}),et=p(H,nt);et=et.slice(1),c.forEach(et,function(st){var K=H.node(st).parent,$=G.edge(st,K),it=!1;$||($=G.edge(K,st),it=!0),G.node(st).rank=G.node(K).rank+(it?$.minlen:-$.minlen)})}(H,G)}function Z(H,G,nt){return nt.low<=G.lim&&G.lim<=nt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=B},1916:(w,D,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,F,Z,H){var G;do{G=c.uniqueId(H)}while(M.hasNode(G));return Z.dummy=F,M.setNode(G,Z),G}function C(M){return c.max(c.map(M.nodes(),function(F){var Z=M.node(F).rank;if(!c.isUndefined(Z))return Z}))}w.exports={addDummyNode:_,simplify:function m(M){var F=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){F.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){var H=F.edge(Z.v,Z.w)||{weight:0,minlen:1},G=M.edge(Z);F.setEdge(Z.v,Z.w,{weight:H.weight+G.weight,minlen:Math.max(H.minlen,G.minlen)})}),F},asNonCompoundGraph:function p(M){var F=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){M.children(Z).length||F.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){F.setEdge(Z,M.edge(Z))}),F},successorWeights:function t(M){var F=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.outEdges(Z),function(G){H[G.w]=(H[G.w]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),F)},predecessorWeights:function d(M){var F=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.inEdges(Z),function(G){H[G.v]=(H[G.v]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),F)},intersectRect:function l(M,F){var K,$,Z=M.x,H=M.y,G=F.x-Z,nt=F.y-H,et=M.width/2,st=M.height/2;if(!G&&!nt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(nt)*et>Math.abs(G)*st?(nt<0&&(st=-st),K=st*G/nt,$=st):(G<0&&(et=-et),K=et,$=et*nt/G),{x:Z+K,y:H+$}},buildLayerMatrix:function h(M){var F=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(Z){var H=M.node(Z),G=H.rank;c.isUndefined(G)||(F[G][H.order]=Z)}),F},normalizeRanks:function f(M){var F=c.min(c.map(M.nodes(),function(Z){return M.node(Z).rank}));c.forEach(M.nodes(),function(Z){var H=M.node(Z);c.has(H,"rank")&&(H.rank-=F)})},removeEmptyRanks:function u(M){var F=c.min(c.map(M.nodes(),function(nt){return M.node(nt).rank})),Z=[];c.forEach(M.nodes(),function(nt){var et=M.node(nt).rank-F;Z[et]||(Z[et]=[]),Z[et].push(nt)});var H=0,G=M.graph().nodeRankFactor;c.forEach(Z,function(nt,et){c.isUndefined(nt)&&et%G!=0?--H:H&&c.forEach(nt,function(st){M.node(st).rank+=H})})},addBorderNode:function g(M,F,Z,H){var G={width:0,height:0};return arguments.length>=4&&(G.rank=Z,G.order=H),_(M,"border",G,F)},maxRank:C,partition:function L(M,F){var Z={lhs:[],rhs:[]};return c.forEach(M,function(H){F(H)?Z.lhs.push(H):Z.rhs.push(H)}),Z},time:function I(M,F){var Z=c.now();try{return F()}finally{console.log(M+" time: "+(c.now()-Z)+"ms")}},notime:function B(M,F){return F()}}},28126:w=>{w.exports="0.8.5"},85510:(w,D,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,D,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,D,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,D,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var B=I.v!==g?I.v:I.w,M=f[B],F=l(I),Z=C.distance+F;if(F<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+F);Z0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,D,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,D,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var B=u[L],M=C[L],F=C[f].distance+B.distance;F{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,D,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,D,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var B=t(C);B0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,D,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,D,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}return I+"\x01"+B+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}var F={v:I,w:B};return L&&(F.name=L),F}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(B,M){u(M)&&g.setNode(M,B)}),c.each(this._edgeObjs,function(B){g.hasNode(B.v)&&g.hasNode(B.w)&&g.setEdge(B,C.edge(B))});var L={};function I(B){var M=C.parent(B);return void 0===M||g.hasNode(M)?(L[B]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(B){g.setParent(B,I(B))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,B){return L.length>1?C.setEdge(I,B,g):C.setEdge(I,B),B}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,B=arguments[0];"object"==typeof B&&null!==B&&"v"in B?(u=B.v,g=B.w,C=B.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=B,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var F=h(this._isDirected,u,g,C);return u=F.v,g=F.w,Object.freeze(F),this._edgeObjs[M]=F,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=F,this._out[u][M]=F,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,D,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,D,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,D,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var D=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=D.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,D,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,D,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,D,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,D,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,D,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,D,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,D,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,D,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function D(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,D,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function D(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),B=g||C||L||I,M=B?c(f.length,String):[],F=M.length;for(var Z in f)(u||l.call(f,Z))&&(!B||!("length"==Z||L&&("offset"==Z||"parent"==Z)||I&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||p(Z,F)))&&M.push(Z);return M}},84633:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function D(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function D(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,D,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,D,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,D,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,D,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,D,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,D,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,D,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),B=s(21503),M=s(80891),F=s(13222),Z=s(25940),H=s(90799),G=s(118),nt=s(16555),$="[object Arguments]",q="[object Function]",pt="[object Object]",jt={};jt[$]=jt["[object Array]"]=jt["[object ArrayBuffer]"]=jt["[object DataView]"]=jt["[object Boolean]"]=jt["[object Date]"]=jt["[object Float32Array]"]=jt["[object Float64Array]"]=jt["[object Int8Array]"]=jt["[object Int16Array]"]=jt["[object Int32Array]"]=jt["[object Map]"]=jt["[object Number]"]=jt[pt]=jt["[object RegExp]"]=jt["[object Set]"]=jt["[object String]"]=jt["[object Symbol]"]=jt["[object Uint8Array]"]=jt["[object Uint8ClampedArray]"]=jt["[object Uint16Array]"]=jt["[object Uint32Array]"]=!0,jt["[object Error]"]=jt[q]=jt["[object WeakMap]"]=!1,w.exports=function Vt(qt,_e,ye,Ee,Oe,Ae){var Ue,Ve=1&_e,rn=2&_e,xe=4&_e;if(ye&&(Ue=Oe?ye(qt,Ee,Oe,Ae):ye(qt)),void 0!==Ue)return Ue;if(!Z(qt))return qt;var un=B(qt);if(un){if(Ue=C(qt),!Ve)return d(qt,Ue)}else{var Tt=g(qt),Wt=Tt==q||"[object GeneratorFunction]"==Tt;if(M(qt))return t(qt,Ve);if(Tt==pt||Tt==$||Wt&&!Oe){if(Ue=rn||Wt?{}:I(qt),!Ve)return rn?h(qt,p(Ue,qt)):l(qt,m(Ue,qt))}else{if(!jt[Tt])return Oe?qt:{};Ue=L(qt,Tt,Ve)}}Ae||(Ae=new c);var le=Ae.get(qt);if(le)return le;Ae.set(qt,Ue),H(qt)?qt.forEach(function(Ze){Ue.add(Vt(Ze,_e,ye,Ze,qt,Ae))}):F(qt)&&qt.forEach(function(Ze,ze){Ue.set(ze,Vt(Ze,_e,ye,ze,qt,Ae))});var ee=un?void 0:(xe?rn?u:f:rn?nt:G)(qt);return x(ee||qt,function(Ze,ze){ee&&(Ze=qt[ze=Ze]),_(Ue,ze,Vt(Ze,_e,ye,ze,qt,Ae))}),Ue}},78858:(w,D,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,D,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function D(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,D,s)=>{var x=s(40456)();w.exports=x},45184:(w,D,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,D,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,D,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function D(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function D(s,c){return null!=s&&c in Object(s)}},14164:(w,D,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,D,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,D,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(B,M,F,Z,H,G){var nt=t(B),et=t(M),st=nt?u:p(B),K=et?u:p(M),$=(st=st==f?g:st)==g,it=(K=K==f?g:K)==g,at=st==K;if(at&&d(B)){if(!d(M))return!1;nt=!0,$=!1}if(at&&!$)return G||(G=new c),nt||l(B)?x(B,M,F,Z,H,G):_(B,M,st,F,Z,H,G);if(!(1&F)){var X=$&&L.call(B,"__wrapped__"),W=it&&L.call(M,"__wrapped__");if(X||W){var q=X?B.value():B,Y=W?M.value():M;return G||(G=new c),H(q,Y,F,Z,G)}}return!!at&&(G||(G=new c),m(B,M,F,Z,H,G))}},97021:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,D,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function D(s){return s!=s}},37304:(w,D,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,D,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function X(W){return _(W)&&x(W.length)&&!!at[c(W)]}},96517:(w,D,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,D,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,D,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function D(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,D,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,D,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,D,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var B=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===B&&(B=L),x(h,I,B)}},t)}},33675:(w,D,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(92377),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function B(M,F,Z,H,G,nt,et){var st=L(M,Z),K=L(F,Z),$=et.get(K);if($)c(M,Z,$);else{var it=nt?nt(st,K,Z+"",M,F,et):void 0,at=void 0===it;if(at){var X=d(K),W=!X&&h(K),q=!X&&!W&&C(K);it=K,X||W||q?d(st)?it=st:l(st)?it=m(st):W?(at=!1,it=x(K,!0)):q?(at=!1,it=_(K,!0)):it=[]:g(K)||t(K)?(it=st,t(st)?it=I(st):(!u(st)||f(st))&&(it=p(K))):at=!1}at&&(et.set(K,it),G(it,K,H,nt,et),et.delete(K)),c(M,Z,it)}}},6119:(w,D,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(B){return h(B)?function(M){return x(M,1===B.length?B[0]:B)}:B}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(B,M,F){return{criteria:c(g,function(H){return H(B)}),index:++L,value:B}});return p(I,function(B,M){return d(B,M,C)})}},83021:(w,D,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,D,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function D(s){return function(c){return c?.[s]}}},39222:(w,D,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var D=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(D((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function D(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,D,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,D,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function D(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function D(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,D,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function D(s){return function(c){return s(c)}}},80707:(w,D,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,B=[],M=B;if(u)I=!1,C=_;else if(L>=200){var F=f?null:p(h);if(F)return t(F);I=!1,C=m,M=new c}else M=f?[]:B;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function D(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function D(s,c){return s.has(c)}},21481:(w,D,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,D,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,D,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var D=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,D.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,D,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function D(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,D,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,D,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,D,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,D,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function D(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,D,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,D,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,D,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,D,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var B=g.get(d),M=g.get(l);if(B&&M)return B==l&&M==d;var F=-1,Z=!0,H=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++F{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),H=c?c.prototype:void 0,G=H?H.valueOf:void 0;w.exports=function nt(et,st,K,$,it,at,X){switch(K){case"[object DataView]":if(et.byteLength!=st.byteLength||et.byteOffset!=st.byteOffset)return!1;et=et.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(et.byteLength!=st.byteLength||!at(new x(et),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+et,+st);case"[object Error]":return et.name==st.name&&et.message==st.message;case"[object RegExp]":case"[object String]":return et==st+"";case"[object Map]":var W=p;case"[object Set]":if(W||(W=t),et.size!=st.size&&!(1&$))return!1;var Y=X.get(et);if(Y)return Y==st;$|=2,X.set(et,st);var R=m(W(et),W(st),$,it,at,X);return X.delete(et),R;case"[object Symbol]":if(G)return G.call(et)==G.call(st)}return!1}},32286:(w,D,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var F=C[M];if(!(g?F in d:m.call(d,F)))return!1}var Z=u.get(t),H=u.get(d);if(Z&&H)return Z==d&&H==t;var G=!0;u.set(t,d),u.set(d,t);for(var nt=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var D="object"==typeof global&&global&&global.Object===Object&&global;w.exports=D},47597:(w,D,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,D,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,D,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,D,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,D,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,D,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,D,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,D,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,D,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,D,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),B=d(_),M=d(m),F=d(p),Z=t;(c&&Z(new c(new ArrayBuffer(1)))!=C||x&&Z(new x)!=l||_&&Z(_.resolve())!=f||m&&Z(new m)!=u||p&&Z(new p)!=g)&&(Z=function(H){var G=t(H),nt="[object Object]"==G?H.constructor:void 0,et=nt?d(nt):"";if(et)switch(et){case L:return C;case I:return l;case B:return f;case M:return u;case F:return g}return G}),w.exports=Z},51990:w=>{w.exports=function D(s,c){return s?.[c]}},47283:(w,D,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,D,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function D(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,D,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,D,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,D,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,D,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function K($,it,at){var X=$.constructor;switch(it){case"[object ArrayBuffer]":return c($);case"[object Boolean]":case"[object Date]":return new X(+$);case"[object DataView]":return x($,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p($,at);case"[object Map]":case"[object Set]":return new X;case"[object Number]":case"[object String]":return new X($);case"[object RegExp]":return _($);case"[object Symbol]":return m($)}}},4264:(w,D,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,D,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,D,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,D,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function D(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,D,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var D=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||D)}},22442:(w,D,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function D(){this.__data__=[],this.size=0}},34378:(w,D,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,D,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,D,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,D,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,D,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,D,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,D,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function D(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,D,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,D,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,D,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function D(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,D,s)=>{w=s.nmd(w);var c=s(79122),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function D(s,c){return function(x){return s(c(x))}}},53983:(w,D,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function D(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function D(s){return this.__data__.has(s)}},24174:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,D,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,D,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function D(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function D(s){return this.__data__.get(s)}},22247:w=>{w.exports=function D(s){return this.__data__.has(s)}},41585:(w,D,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function D(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,D,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,D,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var D=/\s/;w.exports=function s(c){for(var x=c.length;x--&&D.test(c.charAt(x)););return x}},81149:w=>{var D="\\ud800-\\udfff",p="["+D+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+D+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",B=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",F=RegExp(d+"(?="+d+")|"+M+B,"g");w.exports=function Z(H){for(var G=F.lastIndex=0;F.test(H);)++G;return G}},11094:(w,D,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,D,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function D(s){return function(){return s}}},28800:(w,D,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function D(s,c){return s===c||s!=s&&c!=c}},35281:(w,D,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,D,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,D,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,D,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,D,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,D,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,D,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,D,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,D,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function D(s){return s}},77151:(w,D,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,D,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},92377:(w,D,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=D&&!D.nodeType&&D,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var B in L)if(g.call(L,B))return!1;return!0}},75946:(w,D,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,D,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function D(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function D(s){return null!=s&&"object"==typeof s}},97614:(w,D,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,D,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,D,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,D,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function D(s){return void 0===s}},118:(w,D,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,D,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function D(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,D,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,D,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,D,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,D,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,D,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,D,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,D,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function D(){}},31710:(w,D,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,D,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,D,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,D,s)=>{var x=s(97509)();w.exports=x},81337:(w,D,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,D,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function D(){return[]}},63580:w=>{w.exports=function D(){return!1}},12232:(w,D,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,D,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,D,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,D,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,D,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),B=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=B?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(B?c:_)(g,function(F,Z,H){return C(L,F,Z,H)}),L}},68921:(w,D,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(92377),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,D,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,D,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,D,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,D,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,D,s)=>{"use strict";function c(x){for(var _ in x)D.hasOwnProperty(_)||(D[_]=x[_])}Object.defineProperty(D,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);D.LayoutAdaptor=_,D.adaptor=function m(p){return new _(p)}},83292:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(15675),x=s(76767);D.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},D.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(49346),x=s(22487);D.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);D.D3StyleLayoutAdaptor=_,D.d3adaptor=function m(){return new _}},22487:function(w,D,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);D.D3StyleLayoutAdaptor=_},91786:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();D.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&F>Z||!isFinite(Z)){for(d=0;d1&&(H=1);var G=Z*Z,nt=2*H*(F-Z)/(G*F),et=F*F*F,st=2*-H/(G*et);for(isFinite(nt)||console.log(nt),d=0;d0?W-(R+1)*$:W-(R-1)*$)&&B<=K&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*B,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*B,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(pt,St){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();D.PseudoRandom=x},30225:function(w,D,s){"use strict";var Y,c=this&&this.__extends||(Y=function(R,E){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pt,St){pt.__proto__=St}||function(pt,St){for(var Mt in St)St.hasOwnProperty(Mt)&&(pt[Mt]=St[Mt])})(R,E)},function(R,E){function pt(){this.constructor=R}Y(R,E),R.prototype=null===E?Object.create(E):(pt.prototype=E.prototype,new pt)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(4068),_=function Y(){};D.Point=_;var m=function Y(R,E,pt,St){this.x1=R,this.y1=E,this.x2=pt,this.y2=St};D.LineSegment=m;var p=function(Y){function R(){return null!==Y&&Y.apply(this,arguments)||this}return c(R,Y),R}(_);function t(Y,R,E){return(R.x-Y.x)*(E.y-Y.y)-(E.x-Y.x)*(R.y-Y.y)}function d(Y,R,E){return t(Y,R,E)>0}function l(Y,R,E){return t(Y,R,E)<0}function C(Y,R){var E=R.slice(0);return E.push(R[0]),{rtan:L(Y,E),ltan:I(Y,E)}}function L(Y,R){var pt,St,Mt,Jt,E=R.length-1;if(l(Y,R[1],R[0])&&!d(Y,R[E-1],R[0]))return 0;for(pt=0,St=E;;){if(St-pt==1)return d(Y,R[pt],R[St])?pt:St;if((Jt=l(Y,R[(Mt=Math.floor((pt+St)/2))+1],R[Mt]))&&!d(Y,R[Mt-1],R[Mt]))return Mt;d(Y,R[pt+1],R[pt])?Jt||d(Y,R[pt],R[Mt])?St=Mt:pt=Mt:Jt&&l(Y,R[pt],R[Mt])?St=Mt:pt=Mt}}function I(Y,R){var pt,St,Mt,Jt,E=R.length-1;if(d(Y,R[E-1],R[0])&&!l(Y,R[1],R[0]))return 0;for(pt=0,St=E;;){if(St-pt==1)return l(Y,R[pt],R[St])?pt:St;if(Jt=l(Y,R[(Mt=Math.floor((pt+St)/2))+1],R[Mt]),d(Y,R[Mt-1],R[Mt])&&!Jt)return Mt;l(Y,R[pt+1],R[pt])?Jt?l(Y,R[pt],R[Mt])?St=Mt:pt=Mt:St=Mt:Jt?pt=Mt:d(Y,R[pt],R[Mt])?St=Mt:pt=Mt}}function B(Y,R,E,pt,St,Mt){var Et,Jt;Jt=pt(Y[Et=E(R[0],Y)],R);for(var ue=!1;!ue;){for(ue=!0;Et===Y.length-1&&(Et=0),!St(R[Jt],Y[Et],Y[Et+1]);)++Et;for(;0===Jt&&(Jt=R.length-1),!Mt(Y[Et],R[Jt],R[Jt-1]);)--Jt,ue=!1}return{t1:Et,t2:Jt}}function F(Y,R){return B(Y,R,L,I,d,l)}D.PolyPoint=p,D.isLeft=t,D.ConvexHull=function h(Y){var pt,R=Y.slice(0).sort(function(_t,Xt){return _t.x!==Xt.x?Xt.x-_t.x:Xt.y-_t.y}),E=Y.length,Mt=R[0].x;for(pt=1;pt=0&&R[pt].x===yt;pt--);for(ue=pt+1,pt=Et;++pt<=ue;)if(!(t(R[0],R[ue],R[pt])>=0&&pt1&&!(t(Jt[Jt.length-2],Jt[Jt.length-1],R[pt])>0);)Jt.length-=1;0!=pt&&Jt.push(R[pt])}wt!=ue&&Jt.push(R[wt]);var Nt=Jt.length;for(pt=ue;--pt>=Et;)if(!(t(R[wt],R[Et],R[pt])>=0&&pt>Et)){for(;Jt.length>Nt&&!(t(Jt[Jt.length-2],Jt[Jt.length-1],R[pt])>0);)Jt.length-=1;0!=pt&&Jt.push(R[pt])}}return Jt},D.clockwiseRadialSweep=function f(Y,R,E){R.slice(0).sort(function(pt,St){return Math.atan2(pt.y-Y.y,pt.x-Y.x)-Math.atan2(St.y-Y.y,St.x-Y.x)}).forEach(E)},D.tangent_PolyPolyC=B,D.LRtangent_PolyPolyC=function M(Y,R){var E=F(R,Y);return{t1:E.t2,t2:E.t1}},D.RLtangent_PolyPolyC=F,D.LLtangent_PolyPolyC=function Z(Y,R){return B(Y,R,I,I,l,l)},D.RRtangent_PolyPolyC=function H(Y,R){return B(Y,R,L,L,d,d)};var G=function Y(R,E){this.t1=R,this.t2=E};D.BiTangent=G;var nt=function Y(){};D.BiTangents=nt;var et=function(Y){function R(){return null!==Y&&Y.apply(this,arguments)||this}return c(R,Y),R}(_);D.TVGPoint=et;var st=function Y(R,E,pt,St){this.id=R,this.polyid=E,this.polyvertid=pt,this.p=St,St.vv=this};D.VisibilityVertex=st;var K=function(){function Y(R,E){this.source=R,this.target=E}return Y.prototype.length=function(){var R=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(R*R+E*E)},Y}();D.VisibilityEdge=K;var $=function(){function Y(R,E){if(this.P=R,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var pt=R.length,St=0;St0&&this.E.push(new K(Mt[Et-1].vv,ue))}Mt.length>1&&this.E.push(new K(Mt[0].vv,Mt[Mt.length-1].vv))}for(St=0;St0)return!0;return!1},Y}();function it(Y,R){for(var E=[],pt=1,St=R.length;pt=0&&Ft>=0&&Ht<0&&he>=0&&ke>=0&&Ie<0?St.ll=new G(Mt,Et):Xt<=0&&Ft<=0&&Ht>0&&he<=0&&ke<=0&&Ie>0?St.rr=new G(Mt,Et):Xt<=0&&Ft>0&&Ht<=0&&he>=0&&ke<0&&Ie>=0?St.rl=new G(Mt,Et):Xt>=0&&Ft<0&&Ht>=0&&he<=0&&ke>0&&Ie<=0&&(St.lr=new G(Mt,Et))}return St}function W(Y,R){return!Y.every(function(E){return!function X(Y,R){for(var E=1,pt=R.length;E0)return!0}return!1}},76767:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};D.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};D.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=B-M+1)}else L[I][B]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();D.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(et,st){return new m(st,f.getBounds(et),f.getChildren(et))}),this.leaves=this.nodes.filter(function(et){return et.leaf}),this.groups=this.nodes.filter(function(et){return!et.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(et){return et.children.forEach(function(st){return g.nodes[st].parent=et})}),this.root={children:[]},this.nodes.forEach(function(et){typeof et.parent>"u"&&(et.parent=g.root,g.root.children.push(et.id)),et.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(et,st){return g.getDepth(et)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(et){return!et.leaf}).forEach(function(et){var st=c.Rectangle.empty();et.children.forEach(function(K){return st=st.union(g.nodes[K].rect)}),et.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(et){return et.pos})),I=this.midPoints(this.rows.map(function(et){return et.pos})),B=L[0],M=L[L.length-1],F=I[0],Z=I[I.length-1],H=this.rows.map(function(et){return{x1:B,x2:M,y1:et.pos,y2:et.pos}}).concat(I.map(function(et){return{x1:B,x2:M,y1:et,y2:et}})),G=this.cols.map(function(et){return{x1:et.pos,x2:et.pos,y1:F,y2:Z}}).concat(L.map(function(et){return{x1:et,x2:et,y1:F,y2:Z}})),nt=H.concat(G);nt.forEach(function(et){return et.verts=[]}),this.verts=[],this.edges=[],H.forEach(function(et){return G.forEach(function(st){var K=new p(g.verts.length,st.x1,et.y1);et.verts.push(K),st.verts.push(K),g.verts.push(K);for(var $=g.backToFront.length;$-- >0;){var it=g.backToFront[$],at=it.rect,X=Math.abs(K.x-at.cx()),W=Math.abs(K.y-at.cy());if(X0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&F.push(Z={pos:B[0][f],segments:[]}),Z.segments.push(B)}return F},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var B=g.map(function(it){return new x.Variable(it[0][h])}),M=[],F=0;F=0&&M.push(new x.Constraint(B[st],B[K],L))}new x.Solver(B,M).solve(),B.forEach(function(it,at){var X=g[at],W=it.position();X[0][h]=X[1][h]=W;var q=u[X.edgeid];X.i>0&&(q[X.i-1][1][h]=W),X.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(B=C[I.si+1],F=C[I.si-1],M=L[I.ti-1]):(B=C[I.si+I.length-2],M=C[I.si+I.length],F=L[I.ti+I.length]),l.isLeft(B,M,F)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&Y>1?1e3:0}).reverse().map(function(K){return u.verts[K]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(K,$){return!($0&&K.node===C&&st[$-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,B,M,q,Y,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?B-=F/Math.abs(F)*f:M-=Z/Math.abs(Z)*f,C.routepath+="L "+B+" "+M+" ";var H=h[L+1],G=H[0].x,nt=H[0].y;F=H[1].x-G,Z=H[1].y-nt;var $,it,K=l.angleBetween2Lines(I,H)<0?1:0;Math.abs(F)>0?($=G+F/Math.abs(F)*f,it=nt):($=G,it=nt+Z/Math.abs(Z)*f);var at=Math.abs($-B),X=Math.abs(it-M);C.routepath+="A "+at+" "+X+" 0 0 "+K+" "+$+" "+it+" "}else{var W=[B,M];Math.abs(F)>0?(q=[B-=F/Math.abs(F)*g,M+u],Y=[B,M-u]):(q=[B+u,M-=Z/Math.abs(Z)*g],Y=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+W[0]+" "+W[1]+" L "+q[0]+" "+q[1]+" L "+Y[0]+" "+Y[1])}}else F=(B=(I=h[0])[1].x)-I[0].x,Z=(M=I[1].y)-I[0].y,W=[B,M],Math.abs(F)>0?(q=[B-=F/Math.abs(F)*g,M+u],Y=[B,M-u]):(q=[B+u,M-=Z/Math.abs(Z)*g],Y=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+W[0]+" "+W[1]+" L "+q[0]+" "+q[1]+" L "+Y[0]+" "+Y[1]);return C},l}();D.GridRouter=d},30345:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;D.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),B=0,M=0,F=0,Z=[];function et(it,at){Z=[],I=0,B=0,F=0;for(var X=0;X=it.height&&Z[W].x+Z[W].width+it.width+10-at<=1e-4){X=Z[W];break}Z.push(it),void 0!==X?(it.x=X.x+X.width+10,it.y=X.bottom,it.space_left=it.height,it.bottom=it.y,X.space_left-=it.height+10,X.bottom+=it.height+10):(it.y=F,F+=it.height+10,it.x=0,it.bottom=it.y,it.space_left=it.height),it.y+it.height-B>-1e-4&&(B=it.y+it.height-0),it.x+it.width-I>-1e-4&&(I=it.x+it.width-0)}0!=_.length&&(function H(it){it.forEach(function(X){!function at(X){var W=Number.MAX_VALUE,q=Number.MAX_VALUE,Y=0,R=0;X.array.forEach(function(E){var pt=typeof E.width<"u"?E.width:L,St=typeof E.height<"u"?E.height:L;pt/=2,St/=2,Y=Math.max(E.x+pt,Y),W=Math.min(E.x-pt,W),R=Math.max(E.y+St,R),q=Math.min(E.y-St,q)}),X.width=Y-W,X.height=R-q}(X)})}(_),function nt(it,at){var X=Number.POSITIVE_INFINITY,W=0;it.sort(function(wt,yt){return yt.height-wt.height});for(var q=Jt=M=it.reduce(function(wt,yt){return wt.widthM||Et>1e-4;){if(1!=St){var Jt=Y-(Y-q)/s_GOLDEN_SECTION;E=et(it,Jt)}if(0!=St){var ue=q+(Y-q)/s_GOLDEN_SECTION;pt=et(it,ue)}if(Mt=Math.abs(Jt-ue),Et=Math.abs(E-pt),Ept?(q=Jt,Jt=ue,E=pt,St=1):(Y=ue,ue=Jt,pt=E,St=0),R++>100)break}et(it,W)}(_),l&&function G(it){it.forEach(function(at){var X={x:0,y:0};at.array.forEach(function(Y){X.x+=Y.x,X.y+=Y.y}),X.x/=at.array.length,X.y/=at.array.length;var q_x=at.x-(X.x-at.width/2)+u/2-I/2,q_y=at.y-(X.y-at.height/2)+g/2-B/2;at.array.forEach(function(Y){Y.x+=q_x,Y.y+=q_y})})}(_))},D.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=D.EventType||(D.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,B){"number"==typeof I&&((L.leaves[B]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,B){"number"==typeof I&&((L.groups[B]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,B,M){var F=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===B&&(B=!0),void 0===M&&(M=!0);var W,G=this.nodes().length,nt=G+2*this._groups.length,st=this._canvasSize[0],K=this._canvasSize[1],$=new Array(nt),it=new Array(nt),at=null,X=this._avoidOverlaps;this._nodes.forEach(function(Mt,Et){Mt.index=Et,typeof Mt.x>"u"&&(Mt.x=st/2,Mt.y=K/2),$[Et]=Mt.x,it[Et]=Mt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?W=this._distanceMatrix:(W=new p.Calculator(nt,this._links,u.getSourceIndex,u.getTargetIndex,function(Mt){return F.getLinkLength(Mt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(nt,function(){return 2}),this._links.forEach(function(Mt){"number"==typeof Mt.source&&(Mt.source=F._nodes[Mt.source]),"number"==typeof Mt.target&&(Mt.target=F._nodes[Mt.target])}),this._links.forEach(function(Mt){var Et=u.getSourceIndex(Mt),Jt=u.getTargetIndex(Mt);at[Et][Jt]=at[Jt][Et]=Mt.weight||1}));var q=_.Descent.createSquareMatrix(nt,function(Mt,Et){return W[Mt][Et]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Z=G;this._groups.forEach(function(Et){(function(Et,Jt,ue,wt){at[Et][Jt]=at[Jt][Et]=ue,q[Et][Jt]=q[Jt][Et]=.1})(Z,Z+1,F._groupCompactness),$[Z]=0,it[Z++]=0,$[Z]=0,it[Z++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var R=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,R=R.concat(x.generateDirectedEdgeConstraints(G,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([$,it],q),this._descent.locks.clear(),Z=0;Z0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,R).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,K,M),this.avoidOverlaps(X),X&&(this._nodes.forEach(function(Mt,Et){Mt.x=$[Et],Mt.y=it[Et]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,R,!0).projectFunctions(),this._nodes.forEach(function(Mt,Et){$[Et]=Mt.x,it[Et]=Mt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=G,this._descent.scaleSnapByMaxH=G!=nt;var St=_.Descent.createSquareMatrix(nt,function(Mt,Et){return Mt>=G||Et>=G?at[Mt][Et]:0});this._descent.G=St,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,K,M),B?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,B=this._links.map(function(F){return{source:F.source.index,target:F.target.index}}),M=this._nodes.map(function(F){return{index:F.index}});this._groups.forEach(function(F,Z){M.push({index:F.index=I+Z})}),this._groups.forEach(function(F,Z){typeof F.leaves<"u"&&F.leaves.forEach(function(H){return B.push({source:F.index,target:H.index})}),typeof F.groups<"u"&&F.groups.forEach(function(H){return B.push({source:F.index,target:H.index})})}),(new u).size(this.size()).nodes(M).links(B).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(F){C[F.index]=M[F.index].x,L[F.index]=M[F.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var B=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(Z,H){Z.x=B[H],Z.y=M[H]});var F=d.separateGraphs(this._nodes,this._links);d.applyPacking(F,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(Z,H){I._descent.x[0][H]=Z.x,I._descent.x[1][H]=Z.y,Z.bounds&&(Z.bounds.setXCentre(Z.x),Z.bounds.setYCentre(Z.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],B=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},F={x:g.target.x,y:g.target.y},Z=B.addPoint(M,g.source.index),H=B.addPoint(F,g.target.index);B.addEdgeIfVisible(M,F,g.source.index,g.target.index),typeof L<"u"&&L(B);var K=new p.Calculator(B.V.length,B.E,function(q){return q.source.id},function(q){return q.target.id},function(q){return q.length()}).PathFromNodeToNode(Z.id,H.id);if(1===K.length||K.length===B.V.length){var $=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[$.sourceIntersection,$.arrowStart]}else{for(var it=K.length-2,at=B.V[K[it]].p,X=B.V[K[0]].p,W=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],it);W>=0;--W)I.push(B.V[K[W]].p);I.push(m.makeEdgeTo(X,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();D.Layout=f},86461:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();D.Link3D=p,D.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[Z]=Math.random())}C.result[0][B]=I.x,C.result[1][B]=I.y,C.result[2][B]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(Z){return Z.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(Z){return Z.source},function(Z){return Z.target},function(Z){return Z.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(Z,H){return L[Z][H]}),B=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(Z){var H=Z.source,G=Z.target;return B[H][G]=B[G][H]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=B,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(K){K.index=K.lowlink=g++,C.push(K),K.onStack=!0;for(var $=0,it=K.out;$"u"?(I(at),K.lowlink=Math.min(K.lowlink,at.lowlink)):at.onStack&&(K.lowlink=Math.min(K.lowlink,at.index))}if(K.lowlink===K.index){for(var X=[];C.length&&((at=C.pop()).onStack=!1,X.push(at),at!==K););L.push(X.map(function(W){return W.id}))}}for(var B=0;B"u"&&I(st)}return L}Object.defineProperty(D,"__esModule",{value:!0}),D.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},D.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},D.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,B){return I.forEach(function(M){return C[M]=B})});var L=[];return h.forEach(function(I){var B=u.getSourceIndex(I),M=u.getTargetIndex(I);C[B]!==C[M]&&L.push({axis:f,left:B,right:M,gap:u.getMinSeparation(I)})}),L},D.stronglyConnectedComponents=d},33900:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};D.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var B=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof B.gid>"u"?I.source:g[B.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}D.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();D.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();D.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();D.LinkSets=t,D.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],B=L.getGroupHierarchy(I);return I.forEach(function(M){var F=function(Z){var H=M[Z];"number"==typeof H&&(M[Z]=h[H])};F("source"),F("target")}),{groups:B,powerEdges:I}}},88866:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();D.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();D.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var B=C.right===g;I===L.get_child(u)?C.set_child(B,t.single_rotate(g,!u)):C.set_child(B,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var B=t.single_rotate(h,C);f.set_child(L,B),f=B}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var F=u.right===f;t.is_red(M.get_child(L))?u.set_child(F,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(F,t.single_rotate(f,L));var Z=u.get_child(F);Z.red=!0,h.red=!0,Z.left.red=!1,Z.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);D.RBTree=m},4068:function(w,D,s){"use strict";var K,c=this&&this.__extends||(K=function($,it){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,X){at.__proto__=X}||function(at,X){for(var W in X)X.hasOwnProperty(W)&&(at[W]=X[W])})($,it)},function($,it){function at(){this.constructor=$}K($,it),$.prototype=null===it?Object.create(it):(at.prototype=it.prototype,new at)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(K){return K.bounds=typeof K.leaves<"u"?K.leaves.reduce(function($,it){return it.bounds.union($)},p.empty()):p.empty(),typeof K.groups<"u"&&(K.bounds=K.groups.reduce(function($,it){return m(it).union($)},K.bounds)),K.bounds=K.bounds.inflate(K.padding),K.bounds}D.computeGroupBounds=m;var p=function(){function K($,it,at,X){this.x=$,this.X=it,this.y=at,this.Y=X}return K.empty=function(){return new K(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},K.prototype.cx=function(){return(this.x+this.X)/2},K.prototype.cy=function(){return(this.y+this.Y)/2},K.prototype.overlapX=function($){var it=this.cx(),at=$.cx();return it<=at&&$.x0?at[0]:null},K.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}]},K.lineIntersection=function($,it,at,X,W,q,Y,R){var E=at-$,pt=Y-W,St=X-it,Mt=R-q,Et=Mt*E-pt*St;if(0==Et)return null;var Jt=$-W,ue=it-q,yt=(pt*ue-Mt*Jt)/Et,_t=(E*ue-St*Jt)/Et;return yt>=0&&yt<=1&&_t>=0&&_t<=1?{x:$+yt*E,y:it+yt*St}:null},K.prototype.inflate=function($){return new K(this.x-$,this.X+$,this.y-$,this.Y+$)},K}();D.Rectangle=p,D.makeEdgeBetween=function t(K,$,it){var at=K.rayIntersection($.cx(),$.cy())||{x:K.cx(),y:K.cy()},X=$.rayIntersection(K.cx(),K.cy())||{x:$.cx(),y:$.cy()},W=X.x-at.x,q=X.y-at.y,Y=Math.sqrt(W*W+q*q),R=Y-it;return{sourceIntersection:at,targetIntersection:X,arrowStart:{x:at.x+R*W/Y,y:at.y+R*q/Y}}},D.makeEdgeTo=function d(K,$,it){var at=$.rayIntersection(K.x,K.y);at||(at={x:$.cx(),y:$.cy()});var X=at.x-K.x,W=at.y-K.y,q=Math.sqrt(X*X+W*W);return{x:at.x-it*X/q,y:at.y-it*W/q}};var l=function K($,it,at){this.v=$,this.r=it,this.pos=at,this.prev=u(),this.next=u()},h=function K($,it,at){this.isOpen=$,this.v=it,this.pos=at};function f(K,$){return K.pos>$.pos?1:K.pos<$.pos||K.isOpen?-1:$.isOpen?1:0}function u(){return new _.RBTree(function(K,$){return K.pos-$.pos})}var g={getCentre:function(K){return K.cx()},getOpen:function(K){return K.y},getClose:function(K){return K.Y},getSize:function(K){return K.width()},makeRect:function(K,$,it,at){return new p(it-at/2,it+at/2,K,$)},findNeighbours:function B(K,$){var it=function(at,X){for(var q,W=$.findIter(K);null!==(q=W[at]());){var Y=q.r.overlapX(K.r);if((Y<=0||Y<=q.r.overlapY(K.r))&&(K[at].insert(q),q[X].insert(K)),Y<=0)break}};it("next","prev"),it("prev","next")}},C={getCentre:function(K){return K.cy()},getOpen:function(K){return K.x},getClose:function(K){return K.X},getSize:function(K){return K.height()},makeRect:function(K,$,it,at){return new p(K,$,it-at/2,it+at/2)},findNeighbours:function M(K,$){var it=function(at,X){var W=$.findIter(K)[at]();null!==W&&W.r.overlapX(K.r)>0&&(K[at].insert(W),W[X].insert(K))};it("next","prev"),it("prev","next")}};function L(K,$,it,at){void 0===at&&(at=!1);var X=K.padding,W=typeof K.groups<"u"?K.groups.length:0,q=typeof K.leaves<"u"?K.leaves.length:0,Y=W?K.groups.reduce(function(Ft,Ht){return Ft.concat(L(Ht,$,it,!0))},[]):[],R=(at?2:0)+q+W,E=new Array(R),pt=new Array(R),St=0,Mt=function(Ft,Ht){pt[St]=Ft,E[St++]=Ht};if(at){var Et=K.bounds,Jt=$.getCentre(Et),ue=$.getSize(Et)/2,wt=$.getOpen(Et),yt=$.getClose(Et),Nt=Jt-ue+X/2,_t=Jt+ue-X/2;K.minVar.desiredPosition=Nt,Mt($.makeRect(wt,yt,Nt,X),K.minVar),K.maxVar.desiredPosition=_t,Mt($.makeRect(wt,yt,_t,X),K.maxVar)}q&&K.leaves.forEach(function(Ft){return Mt(Ft.bounds,Ft.variable)}),W&&K.groups.forEach(function(Ft){var Ht=Ft.bounds;Mt($.makeRect($.getOpen(Ht),$.getClose(Ht),$.getCentre(Ht),$.getSize(Ht)),Ft.minVar)});var Xt=I(pt,E,$,it);return W&&(E.forEach(function(Ft){Ft.cOut=[],Ft.cIn=[]}),Xt.forEach(function(Ft){Ft.left.cOut.push(Ft),Ft.right.cIn.push(Ft)}),K.groups.forEach(function(Ft){var Ht=(Ft.padding-$.getSize(Ft.bounds))/2;Ft.minVar.cIn.forEach(function(he){return he.gap+=Ht}),Ft.minVar.cOut.forEach(function(he){he.left=Ft.maxVar,he.gap+=Ht})})),Y.concat(Xt)}function I(K,$,it,at){var X,W=K.length,q=2*W;console.assert($.length>=W);var Y=new Array(q);for(X=0;XY[at]&&(Y[at]=R)}q=Y})}},K.prototype.createAlignment=function($){var it=this,at=this.nodes[$.offsets[0].node].variable;this.makeFeasible($);var X="x"===$.axis?this.xConstraints:this.yConstraints;$.offsets.slice(1).forEach(function(W){X.push(new x.Constraint(at,it.nodes[W.node].variable,W.offset,!0))})},K.prototype.createConstraints=function($){var it=this,at=function(X){return typeof X.type>"u"||"separation"===X.type};this.xConstraints=$.filter(function(X){return"x"===X.axis&&at(X)}).map(function(X){return it.createSeparation(X)}),this.yConstraints=$.filter(function(X){return"y"===X.axis&&at(X)}).map(function(X){return it.createSeparation(X)}),$.filter(function(X){return"alignment"===X.type}).forEach(function(X){return it.createAlignment(X)})},K.prototype.setupVariablesAndBounds=function($,it,at,X){this.nodes.forEach(function(W,q){W.fixed?(W.variable.weight=W.fixedWeight?W.fixedWeight:1e3,at[q]=X(W)):W.variable.weight=1;var Y=(W.width||0)/2,R=(W.height||0)/2,E=$[q],pt=it[q];W.bounds=new p(E-Y,E+Y,pt-R,pt+R)})},K.prototype.xProject=function($,it,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project($,it,$,at,function(X){return X.px},this.xConstraints,H,function(X){return X.bounds.setXCentre(at[X.variable.index]=X.variable.position())},function(X){var W=at[X.minVar.index]=X.minVar.position(),q=at[X.maxVar.index]=X.maxVar.position(),Y=X.padding/2;X.bounds.x=W-Y,X.bounds.X=q+Y})},K.prototype.yProject=function($,it,at){!this.rootGroup&&!this.yConstraints||this.project($,it,it,at,function(X){return X.py},this.yConstraints,G,function(X){return X.bounds.setYCentre(at[X.variable.index]=X.variable.position())},function(X){var W=at[X.minVar.index]=X.minVar.position(),q=at[X.maxVar.index]=X.maxVar.position(),Y=X.padding/2;X.bounds.y=W-Y,X.bounds.Y=q+Y})},K.prototype.projectFunctions=function(){var $=this;return[function(it,at,X){return $.xProject(it,at,X)},function(it,at,X){return $.yProject(it,at,X)}]},K.prototype.project=function($,it,at,X,W,q,Y,R,E){this.setupVariablesAndBounds($,it,X,W),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),q=q.concat(Y(this.rootGroup))),this.solve(this.variables,q,at,X),this.nodes.forEach(R),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),m(this.rootGroup))},K.prototype.solve=function($,it,at,X){var W=new x.Solver($,it);W.setStartingPositions(at),W.setDesiredPositions(X),W.solve()},K}();D.Projection=st},33858:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),B=u(C);this.neighbours[L].neighbours.push(new x(I,B)),this.neighbours[I].neighbours.push(new x(L,B))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(Z,H){return Z.q=H}))}}return u},t}();D.Calculator=p},98237:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();D.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();D.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();D.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();D.Solver=p,D.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(et){return new x(et.desiredCenter)}),u=[],g=d.length,C=0;C{c.r(ut),c.d(ut,{VosModule:()=>kp});var m=c(36895),b=c(94364),Vt=c(25309),z=c(69024),L=c(36769),h=c(32105),g=c(9244),u=c(32080),S=c(64080),G=c(74281),Yt=c(41656),dt=c(22158),_t=c(82722),t=c(94650),V=c(77968),p=c(65412),$=c(15003),P=c(97392),I=c(4859),A=c(51572),N=c(10266),Y=c(61283),X=c(4235),d=c(89383),Jt=c(29218),qt=c(45942),Qt=c(28764);function kt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ht(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function zt(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,jt,6,11,"button",16),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 $t=function(){return{color:"black"}},Xt=function(i,n){return["/organizations",i,"groups",n]},Kt=function(i){return["/organizations",i]};function Wt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._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,Ht,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,zt,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,$t)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Xt,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 te=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M,ct){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=T,this.router=E,this.entityStorageService=M,this.reloadEntityDetail=ct,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,_t.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(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,g.sF)("groups",this.group),(0,g.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,g.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,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Yt.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($.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,kt,1,0,"mat-spinner",1),t.YNc(3,Wt,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))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,d.X$,Jt.J,qt.r,Qt.F],data:{animation:[L.Ji]}}),i})();function ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ie=function(i){return["/admin","users",i]};function oe(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,ie,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ne(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 ae=function(){return{color:"black"}},se=function(i,n){return["/organizations",i,"members",n]};function re(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,oe,2,4,"a",11),t.YNc(15,ne,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,ae)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,se,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 le=(()=>{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.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(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,ee,1,0,"mat-spinner",1),t.YNc(3,re,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))},dependencies:[m.O5,m.PC,b.yS,P.Hw,A.Ou,N.gM,Y.A,X.W,d.X$],data:{animation:[L.Ji]}}),i})();var J=c(71135);function ce(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function pe(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 ue=(()=>{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,ce,1,0,"mat-spinner",0),t.YNc(1,pe,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var de=c(4732),_e=c(81847),me=c(11717),ge=c(50301);function he(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Te(i,n){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,he,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 Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let Ie=(()=>{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,Te,4,5,"span",0),t.YNc(3,Ae,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[m.sg,m.O5,ge.Kd,d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function be(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Ce(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 Se(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 xe=function(){return{color:"black"}},Ne=function(i){return["/organizations/",i]};function Oe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ee,3,0,"button",10),t.YNc(11,ve,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,Ce,1,2,"app-related-vos",13),t.YNc(17,Se,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,xe))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Ne,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 Ze=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=T,this.entityStorageService=E,this.reloadEntityDetail=M,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,_t.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,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(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,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(me.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($.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,be,1,0,"mat-spinner",1),t.YNc(3,Oe,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))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,Ie,d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[L.Ji]}}),i})();var l=c(30671),De=c(58964),Me=c(19352),Z=c(73546),Le=c(60526),D=c(98380),mt=c(82322),gt=c(21757),Re=c(82514),ht=c(62383),Ge=c(21330);function we(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.groupIsSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Pe(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 ye(i,n){1&i&&t._UZ(0,"th",17)}function Fe(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 Ve(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(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"groupStatusIconColor"),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(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeExpiration())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Qe(i,n){if(1&i&&(t.TgZ(0,"div")(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 ke(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,Qe,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 Be(i,n){1&i&&t._UZ(0,"tr",23)}function He(i,n){if(1&i&&(t.TgZ(0,"div")(1,"table",10),t.ynx(2,11),t.YNc(3,ye,1,0,"th",12),t.YNc(4,Fe,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Ve,1,0,"th",12),t.YNc(7,ke,3,2,"td",15),t.BQk(),t.YNc(8,Be,1,0,"tr",16),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 je=(()=>{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,g.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],[S.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,g.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(G.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(G.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)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",2),t.YNc(7,we,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Ue,1,0,"mat-spinner",4),t.YNc(9,Pe,3,3,"perun-web-apps-alert",5),t.YNc(10,He,9,2,"div",6),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))},dependencies:[m.O5,P.Hw,I.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,A.Ou,Z.a8,Z.dk,Z.dn,Z.n5,D.w,mt.h,d.X$,gt.f,Re.F,ht.M,Ge.r],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,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var Q=c(31359);function $e(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Xe(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 We(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 ti(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,We,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 ei(i,n){1&i&&t._UZ(0,"th",17)}function ii(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 oi(i,n){1&i&&t._UZ(0,"tr",20)}function ni(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",21)(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ai(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 si(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 ri(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 li(i,n){if(1&i&&(t.TgZ(0,"td",33)(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ci(i,n){1&i&&t._UZ(0,"tr",35)}function pi(i,n){1&i&&t._UZ(0,"tr",20)}const ft=function(){return["sponsors","expiration"]};function ui(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,ai,3,3,"th",9),t.YNc(10,si,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,ri,3,3,"th",9),t.YNc(13,li,4,3,"td",30),t.BQk(),t.YNc(14,ci,1,0,"tr",32),t.YNc(15,pi,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,ft)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,ft))}}function di(i,n){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",24)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,ui,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function _i(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Xe,1,0,"th",9),t.YNc(13,ti,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ei,1,0,"th",9),t.YNc(16,ii,2,1,"td",12),t.BQk(),t.YNc(17,oi,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14)(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ni,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA()(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),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 mi=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=T,this.routePolicyService=E,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=>{this.attUrns=this.storeService.get("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(a.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.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(r=>{this.sponsors=r,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(De.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Me.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,$e,1,0,"mat-spinner",0),t.YNc(1,_i,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,N.gM,Z.a8,Z.dk,Z.dn,Z.n5,Z.$j,Le.b,je,J.L,d.X$,ze,Q.d,ht.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 gi=c(85243);function hi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const fi=function(i,n){return["/organizations",i,"groups",n]};function Ti(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()()),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,fi,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ai(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Ti,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 Ii=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,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,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"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,hi,1,0,"mat-spinner",0),t.YNc(1,Ai,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,b.yS,A.Ou,J.L,d.X$]}),i})();var bi=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")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var vi=c(94856);let Ci=(()=>{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")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var K=c(12651);let Si=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[K.t,d.X$]}),i})();function xi(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,xi,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))},dependencies:[m.O5,A.Ou,J.L]}),i})();var k=c(3238),x=c(59549),y=c(284),f=c(24006),B=c(56709),H=c(84385),W=c(90455),Tt=c(71948);const Zi=["*"];let Di=(()=>{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:Zi,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)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const 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")}},dependencies:[f.JJ,f.On,W.Rr],data:{animation:[L.BQ]}}),i})();function Mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function 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 Ri(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=a)}),t.YNc(9,Li,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function 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 wi(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 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.value),t.xp6(1),t.Oqu(e.text)}}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),t.xp6(1),t.hij(" ",e," ")}}function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Fi(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 Vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=a)}),t.YNc(9,Fi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.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.YNc(10,yi,7,8,"div",13),t.YNc(11,Vi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=a)}),t._uU(14),t.ALo(15,"translate"),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)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(6);return t.KtG(a.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=a)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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.YNc(21,Mi,7,8,"div",13),t.YNc(22,Ri,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=a)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=a)}),t.YNc(30,Gi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=a)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=a)}),t.YNc(38,wi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=a)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=a)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=a)}),t.YNc(50,Ui,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=a)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=a)}),t.YNc(61,Pi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Yi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveChanges())}),t._uU(66),t.ALo(67,"translate"),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 At=(()=>{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,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[m.sg,m.O5,k.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,B.oG,H.gD,N.gM,W.Rr,Tt.VQ,Tt.U0,Di,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:[L.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){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Qi=(()=>{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,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(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)},dependencies:[m.O5,At],data:{animation:[L.BQ]}}),i})();var ki=c(55857),It=c(28361);let Bi=(()=>{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)},dependencies:[It.s]}),i})();function Hi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ji(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)(4,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=a)}),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 $i(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)(4,"mat-select",9),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=a)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,ji,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,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 Xi=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hi,1,0,"mat-spinner",1),t.YNc(5,$i,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,d.X$]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Wi(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)(4,"textarea",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=a)}),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 to=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,Wi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function eo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function io(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 oo(i,n){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,io,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 no(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 ao(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,no,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 so(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,oo,4,2,"mat-form-field",8),t.YNc(2,ao,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 ro=(()=>{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 f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,eo,1,0,"mat-spinner",1),t.YNc(5,so,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[m.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var tt=c(44850),lo=c(43157);function co(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 po(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function uo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 fo(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function To(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Ao(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function Io(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span")(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)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function vo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function So(i,n){1&i&&t._UZ(0,"th",31)}function xo(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,s=t.oxw(3);return t.KtG(s.editApplicationData(a))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Zo(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 Do(i,n){1&i&&t._UZ(0,"tr",36)}function Mo(i,n){1&i&&t._UZ(0,"tr",37)}function Lo(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,So,1,0,"th",25),t.YNc(3,xo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Zo,3,2,"td",28),t.BQk(),t.YNc(7,Do,1,0,"tr",29),t.YNc(8,Mo,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 Ro(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,uo,3,3,"button",7),t.YNc(2,_o,3,3,"button",7),t.YNc(3,mo,3,3,"button",8),t.YNc(4,go,3,3,"button",8),t.YNc(5,ho,5,3,"button",9),t.YNc(6,fo,5,4,"div",4),t.YNc(7,To,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Ao,4,0,"span",4),t.YNc(21,Io,4,0,"span",4),t.YNc(22,bo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,vo,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,Co,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div")(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div")(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Lo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,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 et=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=T,this.usersService=E,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=_?.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(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Xi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(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,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(to,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,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(ro,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,co,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,po,1,0,"mat-spinner",3),t.YNc(6,Ro,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))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,tt.d,Z.n5,m.uU,d.X$,lo.h,Q.d]}),i})();var Go=c(75234),wo=c(37240);let Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var O=c(3848),bt=c(19191);function Po(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function yo(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 Fo(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 Vo(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,Fo,3,6,"ng-template",1),t.YNc(2,Vo,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 Qo(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 ko=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Po,2,3,"ng-template",1),t.YNc(7,yo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,Qo,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})();function Bo(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ho(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 jo=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"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,Bo,1,0,"mat-spinner",0),t.YNc(1,Ho,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var zo=c(10369),$o=c(21963),Xo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Wo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 en(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 on(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 nn(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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,on,2,1,"mat-icon",21),t.YNc(8,nn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function sn(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 rn(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 ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,sn,2,1,"mat-icon",21),t.YNc(10,rn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function cn(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 pn(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 un(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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,cn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,pn,2,1,"mat-icon",21),t.YNc(10,un,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function _n(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 mn(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 gn(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 hn(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&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,mn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,gn,2,1,"mat-icon",21),t.YNc(9,hn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Tn(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 In(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,Tn,2,1,"mat-icon",21),t.YNc(7,An,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function bn(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)(1,"form"),t._UZ(2,"input",36),t.qZA()())}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 Cn(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){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=a)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,bn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,vn,2,1,"mat-icon",21),t.YNc(13,Cn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function xn(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 Zn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,xn,3,2,"div",9),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()()()),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 Dn(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 Mn(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 Ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,Dn,2,1,"mat-icon",21),t.YNc(16,Mn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function 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 Gn(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 wn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Rn,2,1,"mat-icon",39),t.YNc(4,Gn,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 Un(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 Pn(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 yn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Un,2,1,"mat-icon",39),t.YNc(4,Pn,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 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 Vn(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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Fn,2,1,"mat-icon",21),t.YNc(91,Vn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function 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 Qn=function(){return["Example 1","Example 2"]},Et=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function kn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,Qn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Bn(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 Hn(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 jn=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Bn,2,1,"mat-icon",21),t.YNc(8,Hn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,jn))),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,"div",14),t.YNc(1,an,11,5,"div",15),t.YNc(2,ln,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,_n,2,1,"div",2),t.YNc(5,fn,12,6,"div",15),t.YNc(6,In,10,5,"div",15),t.YNc(7,Sn,16,11,"div",15),t.YNc(8,Zn,12,5,"div",15),t.YNc(9,Ln,19,7,"div",15),t.YNc(10,wn,5,4,"div",15),t.YNc(11,yn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,kn,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 Xn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,$n,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")(1,"div",4),t.YNc(2,Wo,5,3,"button",5),t.YNc(3,tn,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=a)}),t.YNc(9,en,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Xn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let vt=(()=>{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){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(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))},dependencies:[m.sg,m.O5,k.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,H.gD,A.Ou,N.gM,$o.H,Xo.$,m.gd,d.X$],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Wn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ta(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 ea(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 ia(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 oa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ea,3,6,"ng-template",1),t.YNc(2,ia,1,3,"ng-template",2),t.qZA())}function na(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 aa(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 sa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,na,3,6,"ng-template",1),t.YNc(2,aa,1,3,"ng-template",2),t.qZA())}function ra(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function la(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 ca(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 pa(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 ua(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ca,3,6,"ng-template",1),t.YNc(2,pa,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Wn,2,3,"ng-template",1),t.YNc(7,ta,1,2,"ng-template",2),t.qZA(),t.YNc(8,oa,3,0,"mat-tab",3),t.YNc(9,sa,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,ra,2,3,"ng-template",1),t.YNc(12,la,1,2,"ng-template",2),t.qZA(),t.YNc(13,ua,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})(),_a=(()=>{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"))},dependencies:[J.L]}),i})();var ma=c(68056),ga=c(24219),v=c(95017),ha=c(17584);function fa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ta(i,n){1&i&&t._UZ(0,"th",15)}function Aa(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 Ia(i,n){1&i&&t._UZ(0,"tr",17)}function ba(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ta,1,0,"th",11),t.YNc(10,Aa,2,1,"td",12),t.BQk(),t.YNc(11,Ia,1,0,"tr",13),t.YNc(12,ba,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let va=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,fa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var C=c(10036),Ca=c(17672),U=c(96214),R=c(7434);function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Za=(()=>{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 v.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(va,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,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ha.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,Sa,3,3,"button",2),t.YNc(5,xa,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))},dependencies:[m.O5,I.lW,A.Ou,Ca.o,U.t,R.L,d.X$]}),i})();function Da(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Ma=(()=>{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,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(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,Da,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,At]}),i})(),La=(()=>{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)},dependencies:[It.s]}),i})();function Ra(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ga(i,n){1&i&&t._UZ(0,"th",15)}function wa(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 Ua(i,n){1&i&&t._UZ(0,"tr",17)}function Pa(i,n){1&i&&t._UZ(0,"tr",18)}function ya(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ga,1,0,"th",11),t.YNc(10,wa,2,1,"td",12),t.BQk(),t.YNc(11,Ua,1,0,"tr",13),t.YNc(12,Pa,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ct=(()=>{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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ra,1,0,"mat-spinner",1),t.YNc(5,ya,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Va(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Ya=function(i){return{"disabled-label":i}};function Ja(i,n){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Ya,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function ka(i,n){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,Ja,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,qa,2,1,"textarea",17),t.YNc(4,Qa,2,1,"textarea",17),t.qZA()()),2&i){const e=n.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Va,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,ka,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let St=(()=>{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.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ba,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[m.mk,m.sg,m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,p.uh,p.xY,p.H8,A.Ou,N.gM,D.w,m.gd,d.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var Ha=c(67376);function ja(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=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 za=(()=>{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,ja,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[m.sg,I.lW,N.gM,tt.d,d.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),$a=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),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(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[Ha.PQ,D.w,za,d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Xa(i,n){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Ka(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 Wa(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function ts(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 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.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function is(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 os(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 ns(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 as(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 ss(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 rs(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 ls=function(i){return{"disabled-label":i}};function cs(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,ls,"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 ps(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,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 us(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,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 ds(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,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 _s(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,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 ms(i,n){1&i&&t._UZ(0,"mat-divider",61)}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,cs,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(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)(13,"div",null,51),t.YNc(15,ps,1,1,"input",52),t.YNc(16,us,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ds,2,1,"textarea",55),t.YNc(24,_s,2,1,"textarea",55),t.qZA()()(),t.YNc(25,ms,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),T=t.MAs(22),E=t.oxw(2).$implicit,M=t.oxw(2);return t.KtG(M.addTag(_,T,E,a,r))}),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 hs(i,n){if(1&i&&(t.YNc(0,ss,3,3,"perun-web-apps-alert",40),t.YNc(1,rs,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,gs,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 fs(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,hs,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 Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,ts,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,es,3,3,"div",30),t.YNc(40,is,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,os,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ns,3,3,"div",30),t.YNc(55,as,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=a)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,fs,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 it=(()=>{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){const _=this.isTextFocused?o.children.item(0):e.children.item(0),T=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,T)+s+this.applicationMail.htmlMessage[a].text.substring(T):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,T)+s+this.applicationMail.message[a].text.substring(T):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,T)+s+this.applicationMail.htmlMessage[a].subject.substring(T):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,T)+s+this.applicationMail.message[a].subject.substring(T),_.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")(1,"div",0),t.YNc(2,Xa,4,3,"div",1),t.YNc(3,Ka,3,3,"ng-template",null,2,t.W1O),t.YNc(5,Wa,1,0,"mat-spinner",3),t.YNc(6,Ts,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,As,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,Is,3,4,"button",7),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)}},dependencies:[m.mk,m.sg,m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,B.oG,p.uh,p.xY,p.H8,H.gD,A.Ou,N.gM,tt.d,D.w,$a,m.gd,d.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[L.es,L.BQ]}}),i})();var ot=c(62707);function bs(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let xt=(()=>{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=E=>E.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bs,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,ot.M,mt.h,d.X$],data:{animation:[L.BQ]}}),i})();var q=c(96308),Nt=c(18750);function Es(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),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 vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return t.KtG(a?_.toggle(r):null)})("click",function(a){return a.stopPropagation()}),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 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_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 xs(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 Ns(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 Os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Zs(i,n){1&i&&(t.TgZ(0,"div")(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 Ds(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 Ms(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Zs,5,3,"div",23),t.YNc(2,Ds,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 Ls(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 Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"section")(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),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 ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Us(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 Ot=(()=>{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 v.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new 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,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(it,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(g.l9,7),t.Gf(q.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)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.ynx(3,3),t.YNc(4,Es,2,3,"th",4),t.YNc(5,vs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Cs,3,3,"th",7),t.YNc(8,Ss,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,xs,3,3,"th",7),t.YNc(11,Ns,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Os,3,3,"th",7),t.YNc(14,Ms,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ls,3,3,"th",7),t.YNc(17,Rs,4,6,"td",10),t.BQk(),t.YNc(18,Gs,1,0,"tr",13),t.YNc(19,ws,1,2,"tr",14),t.qZA()()(),t.YNc(20,Us,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))},dependencies:[m.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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 Js=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=T,this.store=E,this.entityStorageService=M,this.loading=!1,this.applicationMails=[],this.selection=new v.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,g.i5)(e);o.formId=this.applicationForm.id;const a=(0,g.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(it,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,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ct,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,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(St,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,Ps,3,3,"button",2),t.YNc(5,ys,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,Fs,5,3,"button",6),t.qZA(),t.YNc(12,Vs,1,0,"mat-spinner",7),t.YNc(13,Ys,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))},dependencies:[m.O5,I.lW,A.Ou,Ot,d.X$]}),i})();var qs=c(14336);function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 Hs(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.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 zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,Qs,3,3,"button",3),t.YNc(3,ks,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeEmailFooter())}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Bs,5,3,"button",7),t.qZA(),t.YNc(10,Hs,1,0,"mat-spinner",8),t.YNc(11,js,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 $s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Xs(i,n){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,$s,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 Ks=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=T,this.entityStorageService=E,this.loading=!1,this.applicationMails=[],this.selection=new v.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,S.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,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ct,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,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(xt,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,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(St,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,zs,12,8,"div",1),t.YNc(4,Xs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[m.O5,I.lW,A.Ou,D.w,Ot,d.X$]}),i})();var nt=c(15935);function Ws(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function tr(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 Zt=(()=>{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 v.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")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ws,1,0,"mat-spinner",3),t.YNc(7,tr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,R.L,nt.D,d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function er(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function ir(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function or(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 nr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function ar(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 sr(i,n){1&i&&t._UZ(0,"tr",19)}function rr(i,n){1&i&&t._UZ(0,"tr",20)}function lr(i,n){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ir,2,0,"th",12),t.YNc(10,or,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,nr,2,0,"th",12),t.YNc(13,ar,2,1,"td",13),t.BQk(),t.YNc(14,sr,1,0,"tr",15),t.YNc(15,rr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Dt=(()=>{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")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,er,1,0,"mat-spinner",2),t.YNc(6,lr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function cr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function pr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ur(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function dr(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 _r=(()=>{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 v.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,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Dt,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,cr,3,3,"button",2),t.YNc(6,pr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ur,1,0,"mat-spinner",5),t.YNc(9,dr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();var F=c(24179);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,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(a.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const hr=function(){return["select","id","name","description"]};function fr(i,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,hr))("filter",e.filterValue)("tableId",e.tableId)}}function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,gr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,fr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Tr,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Ir=(()=>{class i{constructor(e,o,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 v.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(E=>this.successMessage=E)}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,mr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Ar,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,R.L,ot.M,d.X$]}),i})();function br(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Er(i,n){1&i&&t._UZ(0,"th",15)}function vr(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 Cr(i,n){1&i&&t._UZ(0,"tr",17)}function Sr(i,n){1&i&&t._UZ(0,"tr",18)}function xr(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Er,1,0,"th",11),t.YNc(10,vr,2,1,"td",12),t.BQk(),t.YNc(11,Cr,1,0,"tr",13),t.YNc(12,Sr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Nr=(()=>{class i{constructor(e,o,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,br,1,0,"mat-spinner",1),t.YNc(5,xr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var Or=c(33604);const Zr=["list"];function Dr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Mr=function(){return["select","id","vo","name","description"]};function Lr(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,Mr))("filter",e.filterValue)("tableId",e.tableId)}}let Rr=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new v.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,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Ir,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Nr,e).afterClosed().subscribe(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(Zr,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")(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.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,Dr,1,0,"mat-spinner",7),t.YNc(18,Lr,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))},dependencies:[m.O5,I.lW,B.oG,A.Ou,N.gM,F.W,U.t,R.L,d.X$]}),i})();var at=c(64901),Gr=c(9146);function wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Pr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function yr(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 Fr=(()=>{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")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,wr,3,3,"button",2),t.YNc(6,Ur,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Pr,1,0,"mat-spinner",4),t.YNc(9,yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,at.P,Gr.S,d.X$]}),i})();var Mt=c(68675),Lt=c(54004),w=c(86257),Rt=c(47957);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 Yr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Jr(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),t.KtG(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 Qr(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 kr(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Jr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Qr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Br(i,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 Hr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const jr=function(){return["select","id","name","description"]};function zr(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,jr))("selection",e.selectedGroups)}}function $r(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 Xr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Kr(i,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(),t.KtG(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(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tl=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=T,this.cd=E,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new v.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,Mt.O)(""),(0,Lt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Mt.O)(""),(0,Lt.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(w.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Vr,2,3,"ng-template",4),t.YNc(8,Yr,1,0,"mat-spinner",5),t.YNc(9,kr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Br,2,3,"ng-template",4),t.YNc(12,Hr,1,0,"mat-spinner",5),t.YNc(13,zr,2,8,"div",6),t.YNc(14,$r,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Xr,3,3,"button",10),t.YNc(20,Kr,3,8,"button",11),t.YNc(21,Wr,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[m.sg,m.O5,Rt.XC,Rt.ZL,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,w.C0,w.VY,w.Vq,D.w,F.W,m.Ov,d.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var el=c(62109);function il(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ol(i,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 nl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let al=(()=>{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,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tl,e).afterClosed().subscribe(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,il,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,ol,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,nl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,el.C,d.X$]}),i})();var sl=c(98918),rl=c(4675),ll=c(258),cl=c(60113),pl=c(16500),ul=c(92090),dl=c(20057),_l=c(49546),ml=c(76023),gl=c(3246);function hl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function fl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tl(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Al(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 Il=(()=>{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 v.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,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Dt,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,hl,3,3,"button",2),t.YNc(6,fl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Tl,1,0,"mat-spinner",5),t.YNc(9,Al,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();function bl(i,n){1&i&&t._UZ(0,"th",9)}function El(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 vl(i,n){1&i&&t._UZ(0,"th",9)}function Cl(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 Gt=(()=>{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)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,bl,1,0,"th",4),t.YNc(10,El,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,vl,1,0,"th",4),t.YNc(13,Cl,2,1,"td",7),t.BQk(),t.YNc(14,Sl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,Z.a8,Z.dk,Z.dn,Z.n5,d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function xl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Nl(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 Ol=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new 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,xl,1,0,"mat-spinner",1),t.YNc(4,Nl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Zl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Ml=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([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,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Ll(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Rl=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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,Rl))("filter",e.filterValue)("tableId",e.tableId)}}let wl=(()=>{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 v.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ll,1,0,"mat-spinner",1),t.YNc(5,Gl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,at.P,d.X$]}),i})();const Ul=["list"];function Pl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 yl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Fl=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,Fl))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Yl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new v.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,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(wl,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,g.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(G.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(Ul,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,Pl,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.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,yl,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))},dependencies:[m.O5,I.lW,A.Ou,N.gM,D.w,F.W,U.t,R.L,d.X$]}),i})();var Jl=c(20872),ql=c(28499),wt=c(38383),Ut=c(96338),Ql=c(95406);const kl=["stepper"];function Bl(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 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.FIELD_EMPTY")))}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 zl(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 $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 Xl(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._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Wl(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 tc(i,n){if(1&i&&(t.TgZ(0,"span",29),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ec(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",24),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,tc,2,1,"span",25),t.TgZ(5,"span",26),t.ALo(6,"translate"),t.TgZ(7,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",28),t._uU(9,"close"),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 ic(i,n){1&i&&t._UZ(0,"mat-spinner",30)}const oc=function(){return["checkbox","id","fullName"]};function nc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",33),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,oc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function ac(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",34),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 sc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,nc,1,6,"perun-web-apps-members-list",31),t.YNc(2,ac,3,3,"perun-web-apps-alert",32),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 rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8)(4,"form",9),t.YNc(5,Bl,2,3,"ng-template",10),t.TgZ(6,"div",11)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,jl,3,3,"mat-error",13),t.YNc(19,zl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,$l,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,Xl,3,3,"mat-error",13),t.qZA()()()(),t.TgZ(32,"mat-step",8)(33,"form",9),t.YNc(34,Kl,2,3,"ng-template",10),t.TgZ(35,"app-login-password-form-with-generate-option",17),t.NdJ("parsedRulesOutput",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=a)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,Wl,2,3,"ng-template",10),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ec,10,9,"mat-list-item",18),t.qZA(),t.TgZ(43,"h6",19),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",20)(47,"input",21),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return t.KtG(0!==a.searchCtrl.value.length&&a.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,ic,1,0,"mat-spinner",3),t.YNc(56,sc,3,2,"div",13),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,27,"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,29,"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,31,"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,33,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,35,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,37,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,39,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,41,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function lc(i,n){1&i&&t._UZ(0,"mat-spinner",30)}function cc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",35)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,cc,3,3,"button",37),t.YNc(5,pc,3,8,"button",38),t.YNc(6,uc,3,4,"button",39),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 _c=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M,ct){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=T,this.apiRequestConfiguration=E,this._formBuilder=M,this.cd=ct,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new v.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(pt=>this.successMessageMember=pt),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(pt=>this.successMessagePwd=pt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,ql.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}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");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)}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.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:a,password: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})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;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(f.QS),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(kl,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"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,rc,57,43,"div",2),t.YNc(5,lc,1,0,"mat-spinner",3),t.YNc(6,dc,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))},dependencies:[m.sg,m.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,p.xY,p.H8,A.Ou,N.gM,w.C0,w.VY,w.Vq,D.w,wt.O,Ut.i$,Ut.Tg,Ql.r,d.X$,Q.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 mc=c(53455);function gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const fc=function(){return["checkbox","id","type","fullName","status"]};function Tc(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,fc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Ac=(()=>{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 v.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(_c,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(mc.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,gc,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,hc,1,0,"mat-spinner",5),t.YNc(10,Tc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,wt.O,d.X$]}),i})();var j=c(71992),Pt=c(87831);const Ic=["stepper"];function bc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Ec(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 vc(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 Cc(i,n){1&i&&t._UZ(0,"th",19)}function Sc(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 xc(i,n){1&i&&t._UZ(0,"tr",21)}function Nc(i,n){1&i&&t._UZ(0,"tr",22)}function Oc(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,Cc,1,0,"th",14),t.YNc(6,Sc,2,1,"td",15),t.BQk(),t.YNc(7,xc,1,0,"tr",16),t.YNc(8,Nc,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 Zc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Ec,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=a)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,vc,2,3,"ng-template",8),t.YNc(9,Oc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 Mc(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(2);return t.KtG(a.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 Lc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 Rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Dc,3,3,"button",26),t.YNc(6,Mc,3,4,"button",27),t.YNc(7,Lc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Gc=(()=>{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 v.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(Ic,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bc,1,0,"mat-spinner",1),t.YNc(5,Zc,10,7,"div",2),t.YNc(6,Rc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,p.uh,p.xY,p.H8,A.Ou,w.C0,w.VY,w.Vq,w.BY,D.w,Pt.Z,R.L,d.X$]}),i})();function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Pc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function yc(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 Fc=(()=>{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 v.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Gc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36($.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,wc,3,3,"button",2),t.YNc(5,Uc,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,Pc,1,0,"mat-spinner",5),t.YNc(8,yc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Pt.Z,U.t,R.L,d.X$]}),i})();const Vc=function(){return["select","id","name","description"]};function Yc(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,Vc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Jc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function qc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const Qc=function(i){return{parentVo:i}};let kc=(()=>{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 v.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Yc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Jc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,qc,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,Qc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,D.w,F.W,R.L,d.X$]}),i})();function Bc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Hc=function(){return["select","id","name","description"]};function jc(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,Hc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function zc(i,n){1&i&&t._UZ(0,"mat-spinner",11)}let $c=(()=>{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 v.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(kc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.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)(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,Bc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,jc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,zc,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,F.W,U.t,ot.M,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})();var Xc=c(61639);const Kc=[{path:"",component:Vt.Y},{path:":voId",component:Ze,canActivateChild:[j.a],children:[{path:"",component:ue,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Si,data:{animation:"VoAttributesPage"}},{path:"groups",component:de.G,data:{animation:"VoGroupsPage"}},{path:"members",component:_e.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:_a,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ma.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ga.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Za,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:vi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:gl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Ac,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ol,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ci,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Qi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Bi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Yl},{path:"notifications",component:Js,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:_r,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Fc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:$c,data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:le,canActivateChild:[j.a],children:[{path:"",component:mi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:gi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Fr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:al,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:te,canActivateChild:[j.a],children:[{path:"",component:Ii,data:{animation:"GroupOverviewPage"}},{path:"members",component:Go.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:bi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:ki.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:wo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:ko,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Ml,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:Xc.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Uo,children:[{path:"",component:jo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ma,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:La,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt},{path:"notifications",component:Ks,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Il,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:et,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:sl.b,canActivateChild:[j.a],children:[{path:"",component:rl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ll.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_l.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ul.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:ml.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Jl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cl.t,children:[{path:"",component:pl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dl.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Wc=(()=>{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(Kc),b.Bz]}),i})();var tp=c(14264),ep=c(63189),ip=c(19516),op=c(51525),np=c(45256),st=c(28255);let rt=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var ap=c(86511);let lt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(ap.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var sp=c(69773),rp=c(9954);let lp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function cp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),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 pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(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 t.KtG(a?_.itemSelectionToggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),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 up(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 dp(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),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function _p(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,dp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}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.NAME")," "))}function gp(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 hp(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 fp(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 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.EMAIL")," "))}function Ap(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 Ip(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 bp(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 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.ALREADY_MEMBER")," "))}function vp(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 Cp(i,n){1&i&&t._UZ(0,"th",23)}function Sp(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 xp(i,n){1&i&&t._UZ(0,"tr",27)}function Np(i,n){1&i&&t._UZ(0,"tr",28)}function Op(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 Zp=(()=>{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=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const a=e.richUser?e.richUser:e.candidate;return a.lastName?a.lastName:a.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,a),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const 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(rt),t.Y36(lt),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let 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([rt,lt]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,cp,2,3,"th",4),t.YNc(5,pp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,up,3,3,"th",7),t.YNc(8,_p,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,mp,3,3,"th",7),t.YNc(11,gp,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,hp,3,3,"th",7),t.YNc(14,fp,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,Tp,3,3,"th",7),t.YNc(17,Ap,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ip,3,3,"th",7),t.YNc(20,bp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ep,3,3,"th",7),t.YNc(23,vp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Cp,1,0,"th",7),t.YNc(26,Sp,2,1,"td",8),t.BQk(),t.YNc(27,xp,1,0,"tr",15),t.YNc(28,Np,1,0,"tr",16),t.qZA()()(),t.YNc(29,Op,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))},dependencies:[m.O5,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,m.i8,d.X$,Q.d,sp.u,gt.f,rp.Z,lp,rt,lt]}),i})();function Dp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Mp(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 Lp(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 Rp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=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 Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(a))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Dp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Mp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Lp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Rp,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function wp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Up(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 Pp(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 yp(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 Fp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Vp(i,n){1&i&&t._UZ(0,"tr",32)}function Yp(i,n){1&i&&t._UZ(0,"tr",33)}const yt=function(){return["userName","error"]};function Jp(i,n){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,Up,3,3,"th",24),t.YNc(7,Pp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,yp,3,3,"th",24),t.YNc(10,Fp,4,2,"td",25),t.BQk(),t.YNc(11,Vp,1,0,"tr",27),t.YNc(12,Yp,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,yt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,yt))}}function qp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Qp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,wp,1,0,"mat-spinner",5),t.YNc(2,Jp,13,9,"div",19),t.YNc(3,qp,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 v.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new 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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Gp,23,27,"div",1),t.YNc(5,Qp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[m.sg,m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,N.gM,st.VK,st.OP,st.p6,D.w,at.P,Zp,m.gd,d.X$,Q.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})(),kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.ez,Wc,tp.m,ep.r,Or.ez,ip.d4,g.Je]}),i})();t.B6R(op.H,[Ft],[m.Ov]),t.B6R(np.k,[Ft],[m.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/858.6f608c455faacd1b.js b/dist/apps/admin-gui/858.6f608c455faacd1b.js new file mode 100644 index 000000000..633c3d5b3 --- /dev/null +++ b/dist/apps/admin-gui/858.6f608c455faacd1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[858],{60858:(Xp,ut,c)=>{c.r(ut),c.d(ut,{VosModule:()=>$p});var d=c(36895),b=c(94364),Yt=c(25309),z=c(69024),L=c(36769),h=c(32105),g=c(9244),u=c(35382),S=c(64080),G=c(74281),Jt=c(41656),_t=c(22158),dt=c(82722),t=c(94650),V=c(77968),p=c(65412),$=c(15003),P=c(97392),I=c(4859),A=c(51572),N=c(10266),Y=c(61283),X=c(4235),_=c(89383),qt=c(29218),Qt=c(45942),kt=c(28764);function Bt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ht(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function zt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function $t(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()()),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 Xt=function(){return{color:"black"}},Kt=function(i,n){return["/organizations",i,"groups",n]},Wt=function(i){return["/organizations",i]};function te(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ht,3,0,"button",10),t.YNc(11,jt,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,$t,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,17,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(27,Xt)),t.xp6(4),t.Q2q("data-cy","",e.group.shortName,"-shortName"),t.Q6J("routerLink",t.WLB(28,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,19,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,21,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,23,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(31,Wt,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,25,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let ee=(()=>{class i extends((0,_t.T)()){constructor(e,o,a,s,r,m,T,E,M,ct){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=m,this.guiAuthResolver=T,this.router=E,this.entityStorageService=M,this.reloadEntityDetail=ct,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,dt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(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,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(m=>{this.group=m,this.syncEnabled=(0,g.bx)(m),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(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($.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,Bt,1,0,"mat-spinner",1),t.YNc(3,te,25,33,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[d.O5,d.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,_.X$,qt.J,Qt.r,kt.F],data:{animation:[L.Ji]}}),i})();function ie(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const oe=function(i){return["/admin","users",i]};function ne(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,oe,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ae(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 se=function(){return{color:"black"}},re=function(i,n){return["/organizations",i,"members",n]};function le(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,ne,2,4,"a",11),t.YNc(15,ae,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,se)),t.xp6(4),t.Q2q("data-cy","",e.member.user.firstName,"-firstName"),t.Q6J("routerLink",t.WLB(17,re,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,12,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,14,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let ce=(()=>{class i{constructor(e,o,a,s,r,m,T){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=m,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 m=this.sideMenuItemService.parseVo(this.vo),T=this.sideMenuItemService.parseMember(this.member);this.fullName=T.label,this.sideMenuService.setAccessMenuItems([m,T]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(_.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,ie,1,0,"mat-spinner",1),t.YNc(3,le,17,20,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[d.O5,d.PC,b.yS,P.Hw,A.Ou,N.gM,Y.A,X.W,_.X$],data:{animation:[L.Ji]}}),i})();var J=c(71135);function pe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function ue(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 _e=(()=>{class i{constructor(e,o,a,s,r,m){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=m,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,pe,1,0,"mat-spinner",0),t.YNc(1,ue,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,A.Ou,J.L]}),i})();var de=c(4732),me=c(81847),ge=c(11717),he=c(50301);function fe(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const Te=function(i){return["/organizations/",i]};function Ae(i,n){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,fe,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,Te,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function Ie(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let be=(()=>{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,Ae,4,5,"span",0),t.YNc(3,Ie,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[d.sg,d.O5,he.Kd,_.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Se(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 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.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const Ne=function(){return{color:"black"}},Oe=function(i){return["/organizations/",i]};function Ze(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,ve,3,0,"button",10),t.YNc(11,Ce,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,Se,1,2,"app-related-vos",13),t.YNc(17,xe,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,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 De=(()=>{class i extends((0,_t.T)()){constructor(e,o,a,s,r,m,T,E,M){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=m,this.authResolver=T,this.entityStorageService=E,this.reloadEntityDetail=M,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,dt.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,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(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,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(ge.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($.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,Ze,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))},dependencies:[d.O5,d.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,be,_.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[L.Ji]}}),i})();var l=c(30671),Me=c(58964),Le=c(19352),Z=c(73546),Re=c(60526),D=c(98380),mt=c(82322),gt=c(21757),we=c(82514),ht=c(62383),Ge=c(21330);function Ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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 Fe(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 Ye(i,n){1&i&&t._UZ(0,"th",17)}function Je(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function qe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"groupStatusIconColor"),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,Je,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(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeExpiration())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ke(i,n){if(1&i&&(t.TgZ(0,"div")(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,qe,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")(1,"table",10),t.ynx(2,11),t.YNc(3,Fe,1,0,"th",12),t.YNc(4,Ve,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Ye,1,0,"th",12),t.YNc(7,Be,3,2,"td",15),t.BQk(),t.YNc(8,He,1,0,"tr",16),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 ze=(()=>{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,g.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],[S.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,g.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(G.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(G.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(_.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)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Ue,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()()),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))},dependencies:[d.O5,P.Hw,I.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,A.Ou,Z.a8,Z.dk,Z.dn,Z.n5,D.w,mt.h,_.X$,gt.f,we.F,ht.M,Ge.r],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})(),$e=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var Q=c(31359);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ke(i,n){1&i&&t._UZ(0,"th",17)}function We(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,We,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)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",21)(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function 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)(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),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 ft=function(){return["sponsors","expiration"]};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),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()()}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,ft)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,ft))}}function di(i,n){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",24)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,_i,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function mi(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Ke,1,0,"th",9),t.YNc(13,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.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14)(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.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),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,m,T,E){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=m,this.storeService=T,this.routePolicyService=E,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=>{this.attUrns=this.storeService.getProperty("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(a.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.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(r=>{this.sponsors=r,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Me.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Le.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))},dependencies:[d.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,N.gM,Z.a8,Z.dk,Z.dn,Z.n5,Z.$j,Re.b,ze,J.L,_.X$,$e,Q.d,ht.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 fi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const Ti=function(i,n){return["/organizations",i,"groups",n]};function Ai(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()()),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,Ti,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,Ai,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,m,T,E,M){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=m,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,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,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"PrivilegeException"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(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,fi,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))},dependencies:[d.O5,b.yS,A.Ou,J.L,_.X$]}),i})();var Ei=c(15592);let vi=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.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")},dependencies:[Y.A],data:{animation:[L.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[K.t,_.X$]}),i})();function Ni(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Oi(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 Zi=(()=>{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,Ni,1,0,"mat-spinner",0),t.YNc(1,Oi,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,A.Ou,J.L]}),i})();var k=c(3238),x=c(59549),y=c(284),f=c(24006),B=c(56709),H=c(84385),W=c(90455),Tt=c(71948);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(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: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)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const 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")}},dependencies:[f.JJ,f.On,W.Rr],data:{animation:[L.BQ]}}),i})();function Li(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function 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)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=a)}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function 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 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 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 Fi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function 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 Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=a)}),t.YNc(9,Vi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.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.YNc(10,Fi,7,8,"div",13),t.YNc(11,Yi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=a)}),t._uU(14),t.ALo(15,"translate"),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 qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(6);return t.KtG(a.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=a)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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.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){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=a)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=a)}),t.YNc(30,Gi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=a)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=a)}),t.YNc(38,Ui,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=a)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=a)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=a)}),t.YNc(50,Pi,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=a)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=a)}),t.YNc(61,yi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Ji,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveChanges())}),t._uU(66),t.ALo(67,"translate"),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 At=(()=>{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),m=this.parseSpecialLoaPeriod(e),T={period:o};return null!==s&&(T.doNotExtendLoa=s),null!==a&&(T.doNotAllowLoa=a),null!==r&&(T.gracePeriod=r),null!==m&&(T.periodLoa=m),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,qi,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[d.sg,d.O5,k.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,B.oG,H.gD,N.gM,W.Rr,Tt.VQ,Tt.U0,Mi,_.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:[L.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){t.CHM(e);const s=t.oxw();return t.KtG(s.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(m=>this.successMessage=m),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(m=>this.errorMessage=m)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>{this.notificator.showRPCError(o,this.errorMessage)}})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(_.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)},dependencies:[d.O5,At],data:{animation:[L.BQ]}}),i})();var Bi=c(55857),It=c(28361);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)},dependencies:[It.s]}),i})();function ji(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function zi(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 $i(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)(4,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=a)}),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)(4,"mat-select",9),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=a)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,zi,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,$i,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(_.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")(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)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[d.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,_.X$]}),i})();function Wi(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)(4,"textarea",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=a)}),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(_.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Wi,1,0,"mat-spinner",1),t.YNc(5,to,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[d.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,A.Ou,_.X$]}),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")(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 f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(_.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,io,1,0,"mat-spinner",1),t.YNc(5,ro,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[d.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,p.uh,p.xY,p.H8,A.Ou,_.X$]}),i})();var tt=c(44850),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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 fo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 To(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Ao(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Io(i,n){1&i&&(t.TgZ(0,"span")(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")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function Eo(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function vo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function So(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function xo(i,n){1&i&&t._UZ(0,"th",31)}function No(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 Oo(i,n){1&i&&t._UZ(0,"th",31)}function Zo(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,s=t.oxw(3);return t.KtG(s.editApplicationData(a))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Do(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Zo,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,No,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,Oo,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,fo,5,3,"button",9),t.YNc(6,To,5,4,"div",4),t.YNc(7,Ao,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Io,4,0,"span",4),t.YNc(21,bo,4,0,"span",4),t.YNc(22,Eo,4,0,"span",4),t.qZA(),t.YNc(23,vo,12,11,"div",12),t.YNc(24,Co,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,So,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t.ALo(35,"lowercase"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38),t.qZA(),t.TgZ(39,"div")(40,"span",10),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43),t.qZA(),t.TgZ(44,"div")(45,"span",10),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48),t.ALo(49,"date"),t.qZA(),t.YNc(50,Ro,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,28,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,34,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(2),t.Q2q("data-cy","",t.lcZ(35,36,e.application.extSourceName),"-application-extsource"),t.xp6(2),t.Oqu(t.lcZ(37,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(42,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(47,42,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(49,44,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let et=(()=>{class i{constructor(e,o,a,s,r,m,T,E){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=m,this.authResolver=T,this.usersService=E,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 m=r.userAttributes.find(T=>"preferredMail"===T.friendlyName);this.userMail=m?.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(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Ki,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(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,g.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({next:e=>{this.application=e,this.loading=!1},error:()=>this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(lo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(_.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,51,47,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,tt.d,Z.n5,d.i8,d.uU,_.X$,co.h,Q.d]}),i})();var Go=c(75234),Uo=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")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var O=c(3848),bt=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 Fo(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 Yo(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 Jo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Vo,3,6,"ng-template",1),t.YNc(2,Yo,1,3,"ng-template",2),t.qZA())}function qo(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,qo,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,yo,2,3,"ng-template",1),t.YNc(7,Fo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Jo,3,0,"mat-tab",3),t.YNc(9,ko,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[d.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,_.X$]}),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 zo=(()=>{class i{constructor(e,o,a,s,r,m,T,E,M){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=m,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"PrivilegeException"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),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))},dependencies:[d.O5,A.Ou,J.L]}),i})();var $o=c(10369),Xo=c(21963),Ko=c(28820);function Wo(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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,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()()()),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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,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()()()),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)(1,"div",17)(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.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()()()),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 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 Tn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,gn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,hn,2,1,"mat-icon",21),t.YNc(9,fn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function 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 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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,An,2,1,"mat-icon",21),t.YNc(7,In,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function En(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 vn(i,n){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=a)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,En,2,1,"option",32),t.qZA(),t.YNc(10,vn,3,0,"div",33),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()()()}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 Nn(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 On(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 Zn(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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,Nn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,On,2,1,"mat-icon",21),t.YNc(9,Zn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function 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)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,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()()()),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 Gn(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 Un(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,wn,2,1,"mat-icon",39),t.YNc(4,Gn,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 Fn(i,n){if(1&i&&(t.TgZ(0,"div")(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 Yn(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 Jn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Vn,2,1,"mat-icon",21),t.YNc(91,Yn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function qn(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"]},Et=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Bn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,qn,2,1,"mat-icon",21),t.YNc(8,Qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,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 zn=function(){return{key1:"value 1",key2:"value 2"}};function $n(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,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()()()),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,Et,t.DdM(5,zn))),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,Tn,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,Un,5,4,"div",15),t.YNc(11,Fn,5,4,"div",2),t.YNc(12,Jn,94,8,"div",15),t.YNc(13,Bn,11,8,"div",2),t.YNc(14,$n,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,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 Wn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(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")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=a)}),t.YNc(9,on,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Kn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let vt=(()=>{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.getProperty("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const 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){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(_.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,Wo,1,0,"mat-spinner",1),t.YNc(4,Wn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.sg,d.O5,k.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,H.gD,A.Ou,N.gM,Xo.H,Ko.$,d.gd,_.X$],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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(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()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[d.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,_.X$]}),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"))},dependencies:[J.L]}),i})();var ga=c(68056),ha=c(24219),v=c(95017),fa=c(17584);function Ta(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Aa(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 Ea(i,n){1&i&&t._UZ(0,"tr",18)}function va(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Aa,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,Ea,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let 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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ta,1,0,"mat-spinner",1),t.YNc(5,va,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[d.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,_.X$]}),i})();var C=c(10036),Sa=c(17672),R=c(96214),w=c(7434);function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Na(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Oa(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Za(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,m){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=m,this.loading=!1,this.resourceTag=[],this.selection=new v.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(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,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(fa.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(_.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,Na,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,Oa,1,0,"mat-spinner",5),t.YNc(8,Za,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,Sa.o,R.t,w.L,_.X$]}),i})();function Ma(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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(m=>this.successMessage=m),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(m=>this.errorMessage=m)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>this.notificator.showRPCError(o,this.errorMessage)})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(_.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)},dependencies:[d.O5,At]}),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)},dependencies:[It.s]}),i})();function wa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ga(i,n){1&i&&t._UZ(0,"th",15)}function Ua(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 Fa(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ga,1,0,"th",11),t.YNc(10,Ua,2,1,"td",12),t.BQk(),t.YNc(11,Pa,1,0,"tr",13),t.YNc(12,ya,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ct=(()=>{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(_.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,Fa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[d.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,_.X$]}),i})();function Va(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ya(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Ja=function(i){return{"disabled-label":i}};function qa(i,n){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Ja,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function ka(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,qa,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,Qa,2,1,"textarea",17),t.YNc(4,ka,2,1,"textarea",17),t.qZA()()),2&i){const e=n.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ha(i,n){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Ya,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,Ba,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let St=(()=>{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.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.H8),t.Y36(_.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"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Va,1,0,"mat-spinner",1),t.YNc(5,Ha,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[d.mk,d.sg,d.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,p.uh,p.xY,p.H8,A.Ou,N.gM,D.w,d.gd,_.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var ja=c(67376);function za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=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 $a=(()=>{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,za,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[d.sg,I.lW,N.gM,tt.d,_.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Xa=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),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(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[ja.PQ,D.w,$a,_.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ka(i,n){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Wa(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 ts(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function es(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 is(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 os(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 ns(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 as(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 ss(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 rs(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 ls(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 cs=function(i){return{"disabled-label":i}};function ps(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,cs,"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 us(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,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 _s(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,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 ds(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,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 ms(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,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.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 gs(i,n){1&i&&t._UZ(0,"mat-divider",61)}function hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,ps,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(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)(13,"div",null,51),t.YNc(15,us,1,1,"input",52),t.YNc(16,_s,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ds,2,1,"textarea",55),t.YNc(24,ms,2,1,"textarea",55),t.qZA()()(),t.YNc(25,gs,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,m=t.MAs(14),T=t.MAs(22),E=t.oxw(2).$implicit,M=t.oxw(2);return t.KtG(M.addTag(m,T,E,a,r))}),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 fs(i,n){if(1&i&&(t.YNc(0,rs,3,3,"perun-web-apps-alert",40),t.YNc(1,ls,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,hs,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 Ts(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,fs,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 As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,es,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,is,3,3,"div",30),t.YNc(40,os,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,ns,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,as,3,3,"div",30),t.YNc(55,ss,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=a)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,Ts,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function Is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 it=(()=>{class i{constructor(e,o,a,s,r,m){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=m,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,a,s,r){const m=this.isTextFocused?o.children.item(0):e.children.item(0),T=m.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,T)+s+this.applicationMail.htmlMessage[a].text.substring(T):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,T)+s+this.applicationMail.message[a].text.substring(T):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,T)+s+this.applicationMail.htmlMessage[a].subject.substring(T):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,T)+s+this.applicationMail.message[a].subject.substring(T),m.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")(1,"div",0),t.YNc(2,Ka,4,3,"div",1),t.YNc(3,Wa,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ts,1,0,"mat-spinner",3),t.YNc(6,As,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Is,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,bs,3,4,"button",7),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)}},dependencies:[d.mk,d.sg,d.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,B.oG,p.uh,p.xY,p.H8,H.gD,A.Ou,N.gM,tt.d,D.w,Xa,d.gd,_.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[L.es,L.BQ]}}),i})();var ot=c(62707);function Es(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let xt=(()=>{class i{constructor(e,o,a,s,r,m,T){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=m,this.data=T,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=E=>E.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(_.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")(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)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[d.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,ot.M,mt.h,_.X$],data:{animation:[L.BQ]}}),i})();var q=c(96308),Nt=c(18750),Ot=c(9185);function vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel())("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}function Cs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw(2);return t.KtG(a?m.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Ss(i,n){1&i&&(t.ynx(0,14),t.YNc(1,vs,2,3,"th",15),t.YNc(2,Cs,2,2,"td",16),t.BQk())}function xs(i,n){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Ns(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Os(i,n){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Zs(i,n){if(1&i&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Ds(i,n){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ms(i,n){1&i&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Ls(i,n){1&i&&(t.TgZ(0,"mat-icon",27),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Rs(i,n){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Ms,5,3,"div",24),t.YNc(2,Ls,4,3,"ng-template",null,25,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 ws(i,n){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"section")(2,"mat-checkbox",28),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),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 Us(i,n){1&i&&t._UZ(0,"tr",29)}function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function ys(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}const Fs=function(i){return{all:i}};let Zt=(()=>{class i{constructor(e,o,a,s,r,m){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=m,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new v.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(it,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(_.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(g.l9,7),t.Gf(q.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:20,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.YNc(3,Ss,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,xs,3,3,"th",5),t.YNc(7,Ns,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Os,3,3,"th",5),t.YNc(10,Zs,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ds,3,3,"th",5),t.YNc(13,Rs,4,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,ws,3,3,"th",5),t.YNc(16,Gs,4,6,"td",8),t.BQk(),t.YNc(17,Us,1,0,"tr",11),t.YNc(18,Ps,1,2,"tr",12),t.qZA()()(),t.YNc(19,ys,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Fs,t.xi3(4,10,o.dataSource,o.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[d.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,_.X$,Ot.I],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function qs(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){t.CHM(e);const s=t.oxw();return t.KtG(s.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 ks=(()=>{class i{constructor(e,o,a,s,r,m,T,E,M){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=m,this.voService=T,this.store=E,this.entityStorageService=M,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.getProperty("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const a=(0,g.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(it,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(m=>{this.notificator.showSuccess(m)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ct,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,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(St,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(_.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:15,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(5,Vs,3,3,"button",3),t.YNc(6,Ys,3,4,"button",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(8,"i",6),t._uU(9,"email"),t.qZA(),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,Js,5,3,"button",7),t.qZA(),t.YNc(13,qs,1,0,"mat-spinner",8),t.YNc(14,Qs,1,7,"app-notification-list",9)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(4),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(11,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,R.t,Zt,_.X$]}),i})();var Bs=c(14336);function Hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copy())}),t.TgZ(1,"i",7),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function $s(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",15),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.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")(1,"div",2)(2,"perun-web-apps-refresh-button",3),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refresh())}),t.qZA(),t.YNc(3,Hs,3,3,"button",4),t.YNc(4,js,3,4,"button",5),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeEmailFooter())}),t.TgZ(6,"i",7),t._uU(7,"email"),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,zs,5,3,"button",8),t.qZA(),t.YNc(11,$s,1,0,"mat-spinner",9),t.YNc(12,Xs,1,7,"app-notification-list",10),t.qZA()}if(2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(9,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 tr(i,n){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ws,3,3,"button",17),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let er=(()=>{class i{constructor(e,o,a,s,r,m,T,E){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=m,this.attributesService=T,this.entityStorageService=E,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"PrivilegeException"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{"FormNotExistsException"===e.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(e)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ct,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,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(xt,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,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(St,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(_.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"],[3,"click"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ks,13,8,"div",1),t.YNc(4,tr,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[d.O5,I.lW,A.Ou,D.w,R.t,Zt,_.X$]}),i})();var nt=c(15935);function ir(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function or(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 Dt=(()=>{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 v.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(_.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")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,ir,1,0,"mat-spinner",3),t.YNc(7,or,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[d.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,w.L,nt.D,_.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function nr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function ar(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function sr(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 rr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function lr(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 cr(i,n){1&i&&t._UZ(0,"tr",19)}function pr(i,n){1&i&&t._UZ(0,"tr",20)}function ur(i,n){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ar,2,0,"th",12),t.YNc(10,sr,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,rr,2,0,"th",12),t.YNc(13,lr,2,1,"td",13),t.BQk(),t.YNc(14,cr,1,0,"tr",15),t.YNc(15,pr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Mt=(()=>{class i{constructor(e,o,a,s,r,m){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=m,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(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,nr,1,0,"mat-spinner",2),t.YNc(6,ur,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[d.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,_.X$]}),i})();function _r(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 dr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function mr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function gr(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 hr=(()=>{class i{constructor(e,o,a,s,r,m){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=m,this.extSources=[],this.selection=new v.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,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Mt,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(_.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")(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,_r,3,3,"button",2),t.YNc(6,dr,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,mr,1,0,"mat-spinner",5),t.YNc(9,gr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,nt.D,R.t,w.L,_.X$]}),i})();var F=c(24179);function fr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Tr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(a.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const Ar=function(){return["select","id","name","description"]};function Ir(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,Ar))("filter",e.filterValue)("tableId",e.tableId)}}function br(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Er(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,Tr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,Ir,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,br,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let vr=(()=>{class i{constructor(e,o,a,s,r,m,T){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=m,this.data=T,this.selection=new v.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(E=>this.successMessage=E)}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(_.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,fr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Er,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[d.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,w.L,ot.M,_.X$]}),i})();function Cr(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Sr(i,n){1&i&&t._UZ(0,"th",15)}function xr(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 Nr(i,n){1&i&&t._UZ(0,"tr",17)}function Or(i,n){1&i&&t._UZ(0,"tr",18)}function Zr(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Sr,1,0,"th",11),t.YNc(10,xr,2,1,"td",12),t.BQk(),t.YNc(11,Nr,1,0,"tr",13),t.YNc(12,Or,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Dr=(()=>{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(m=>this.successMessage=m)}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(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Cr,1,0,"mat-spinner",1),t.YNc(5,Zr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[d.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,_.X$]}),i})();var Mr=c(33604);const Lr=["list"];function Rr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const wr=function(){return["select","id","vo","name","description"]};function Gr(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,wr))("filter",e.filterValue)("tableId",e.tableId)}}let Ur=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new v.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,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(vr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Dr,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(Lr,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")(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.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,Rr,1,0,"mat-spinner",7),t.YNc(18,Gr,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))},dependencies:[d.O5,I.lW,B.oG,A.Ou,N.gM,F.W,R.t,w.L,_.X$]}),i})();var at=c(64901),Pr=c(9146);function yr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Fr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Vr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Yr(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 Jr=(()=>{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")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,yr,3,3,"button",2),t.YNc(6,Fr,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Vr,1,0,"mat-spinner",4),t.YNc(9,Yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,R.t,at.P,Pr.S,_.X$]}),i})();var Lt=c(68675),Rt=c(54004),U=c(86257),wt=c(47957);function qr(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 Qr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function kr(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 Br(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),t.KtG(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 Hr(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 jr(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,kr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,Br,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Hr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function zr(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 $r(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const Xr=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,Xr))("selection",e.selectedGroups)}}function Wr(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 tl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 el(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(),t.KtG(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 il(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}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 ol=(()=>{class i{constructor(e,o,a,s,r,m,T,E){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=m,this.authResolver=T,this.cd=E,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new v.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,Lt.O)(""),(0,Rt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Lt.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(_.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,qr,2,3,"ng-template",4),t.YNc(8,Qr,1,0,"mat-spinner",5),t.YNc(9,jr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,zr,2,3,"ng-template",4),t.YNc(12,$r,1,0,"mat-spinner",5),t.YNc(13,Kr,2,8,"div",6),t.YNc(14,Wr,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,tl,3,3,"button",10),t.YNc(20,el,3,8,"button",11),t.YNc(21,il,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[d.sg,d.O5,wt.XC,wt.ZL,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,U.C0,U.VY,U.Vq,D.w,F.W,d.Ov,_.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var nl=c(62109);function al(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 sl(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 rl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let ll=(()=>{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,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(ol,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,al,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,sl,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,rl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[d.O5,I.lW,A.Ou,R.t,w.L,nl.C,_.X$]}),i})();var cl=c(98918),pl=c(4675),ul=c(258),_l=c(60113),dl=c(16500),ml=c(92090),gl=c(20057),hl=c(49546),fl=c(76023),Tl=c(3246);function Al(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Il(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function bl(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function El(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 vl=(()=>{class i{constructor(e,o,a,s,r,m){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=m,this.extSources=[],this.selection=new v.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,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Mt,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(_.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Al,3,3,"button",2),t.YNc(6,Il,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,bl,1,0,"mat-spinner",5),t.YNc(9,El,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,nt.D,R.t,w.L,_.X$]}),i})();function Cl(i,n){1&i&&t._UZ(0,"th",9)}function Sl(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 xl(i,n){1&i&&t._UZ(0,"th",9)}function Nl(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 Ol(i,n){1&i&&t._UZ(0,"tr",12)}let Gt=(()=>{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)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,Cl,1,0,"th",4),t.YNc(10,Sl,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,xl,1,0,"th",4),t.YNc(13,Nl,2,1,"td",7),t.BQk(),t.YNc(14,Ol,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,Z.a8,Z.dk,Z.dn,Z.n5,_.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function Zl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(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 Ml=(()=>{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,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,A.Ou,Gt,_.X$]}),i})();function Ll(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Rl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let wl=(()=>{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,Ll,1,0,"mat-spinner",1),t.YNc(4,Rl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,A.Ou,Gt,_.X$]}),i})();function Gl(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Ul=function(){return["select","id","name","description"]};function Pl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.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,Ul))("filter",e.filterValue)("tableId",e.tableId)}}let yl=(()=>{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 v.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Gl,1,0,"mat-spinner",1),t.YNc(5,Pl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[d.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,at.P,_.X$]}),i})();const Fl=["list"];function Vl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Yl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Jl=function(){return["select","id","name","description"]};function ql(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,Jl))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Ql=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new v.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,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(yl,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,g.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(G.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(Fl,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,Vl,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.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,Yl,1,0,"mat-spinner",7),t.YNc(16,ql,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))},dependencies:[d.O5,I.lW,A.Ou,N.gM,D.w,F.W,R.t,w.L,_.X$]}),i})();var kl=c(20872),Bl=c(28499),Ut=c(38383),Pt=c(96338),Hl=c(95406);const jl=["stepper"];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.CREATE_IDENTITY"))}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 Xl(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.EMAIL_INVALID")))}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 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.FIELD_EMPTY")))}function ec(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 ic(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 oc(i,n){if(1&i&&(t.TgZ(0,"span",29),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function nc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",24),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,oc,2,1,"span",25),t.TgZ(5,"span",26),t.ALo(6,"translate"),t.TgZ(7,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",28),t._uU(9,"close"),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 ac(i,n){1&i&&t._UZ(0,"mat-spinner",30)}const sc=function(){return["checkbox","id","fullName"]};function rc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",33),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,sc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function lc(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",34),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 cc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,rc,1,6,"perun-web-apps-members-list",31),t.YNc(2,lc,3,3,"perun-web-apps-alert",32),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 pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8)(4,"form",9),t.YNc(5,zl,2,3,"ng-template",10),t.TgZ(6,"div",11)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,$l,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,Xl,3,3,"mat-error",13),t.YNc(19,Kl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,Wl,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,tc,3,3,"mat-error",13),t.qZA()()()(),t.TgZ(32,"mat-step",8)(33,"form",9),t.YNc(34,ec,2,3,"ng-template",10),t.TgZ(35,"app-login-password-form-with-generate-option",17),t.NdJ("parsedRulesOutput",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=a)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,ic,2,3,"ng-template",10),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,nc,10,9,"mat-list-item",18),t.qZA(),t.TgZ(43,"h6",19),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",20)(47,"input",21),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return t.KtG(0!==a.searchCtrl.value.length&&a.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,ac,1,0,"mat-spinner",3),t.YNc(56,cc,3,2,"div",13),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,27,"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,29,"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,31,"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,33,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,35,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,37,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,39,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,41,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function uc(i,n){1&i&&t._UZ(0,"mat-spinner",30)}function _c(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",35)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,3,3,"button",37),t.YNc(5,dc,3,8,"button",38),t.YNc(6,mc,3,4,"button",39),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 hc=(()=>{class i{constructor(e,o,a,s,r,m,T,E,M,ct){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=m,this.store=T,this.apiRequestConfiguration=E,this._formBuilder=M,this.cd=ct,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new v.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,m.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(pt=>this.successMessageMember=pt),m.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(pt=>this.successMessagePwd=pt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,Bl.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}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");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)}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.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:a,password: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})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;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(_.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(f.QS),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"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pc,57,43,"div",2),t.YNc(5,uc,1,0,"mat-spinner",3),t.YNc(6,gc,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))},dependencies:[d.sg,d.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,p.xY,p.H8,A.Ou,N.gM,U.C0,U.VY,U.Vq,D.w,Ut.O,Pt.i$,Pt.Tg,Hl.r,_.X$,Q.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 Tc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Ac(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const Ic=function(){return["checkbox","id","type","fullName","status"]};function bc(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,Ic))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Ec=(()=>{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 v.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(hc,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,g.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,Tc,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,Ac,1,0,"mat-spinner",5),t.YNc(10,bc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,R.t,w.L,Ut.O,_.X$]}),i})();var j=c(71992),yt=c(87831);const vc=["stepper"];function Cc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Sc(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 xc(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 Nc(i,n){1&i&&t._UZ(0,"th",19)}function Oc(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 Zc(i,n){1&i&&t._UZ(0,"tr",21)}function Dc(i,n){1&i&&t._UZ(0,"tr",22)}function Mc(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,Nc,1,0,"th",14),t.YNc(6,Oc,2,1,"td",15),t.BQk(),t.YNc(7,Zc,1,0,"tr",16),t.YNc(8,Dc,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 Lc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Sc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=a)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,xc,2,3,"ng-template",8),t.YNc(9,Mc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 wc(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(2);return t.KtG(a.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 Gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Rc,3,3,"button",26),t.YNc(6,wc,3,4,"button",27),t.YNc(7,Gc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Pc=(()=>{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 v.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(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(vc,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Cc,1,0,"mat-spinner",1),t.YNc(5,Lc,10,7,"div",2),t.YNc(6,Uc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,p.uh,p.xY,p.H8,A.Ou,U.C0,U.VY,U.Vq,U.BY,D.w,yt.Z,w.L,_.X$]}),i})();function yc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 Vc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Yc(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 Jc=(()=>{class i{constructor(e,o,a,s,r,m,T){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=m,this.translator=T,this.loading=!1,this.voSelection=new v.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Pc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36($.G),t.Y36(u.V6),t.Y36(_.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,yc,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,Vc,1,0,"mat-spinner",5),t.YNc(8,Yc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,A.Ou,yt.Z,R.t,w.L,_.X$]}),i})();const qc=function(){return["select","id","name","description"]};function Qc(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,qc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function kc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Bc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const Hc=function(i){return{parentVo:i}};let jc=(()=>{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 v.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(_.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Qc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,kc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,Bc,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,Hc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[d.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,D.w,F.W,w.L,_.X$]}),i})();function zc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const $c=function(){return["select","id","name","description"]};function Xc(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,$c))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function Kc(i,n){1&i&&t._UZ(0,"mat-spinner",11)}let Wc=(()=>{class i{constructor(e,o,a,s,r,m,T){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=m,this.changeDetector=T,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new v.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(jc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.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(_.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)(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,zc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,Xc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,Kc,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[d.O5,I.lW,A.Ou,F.W,R.t,ot.M,_.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var tp=c(61639);const ep=[{path:"",component:Yt.Y},{path:":voId",component:De,canActivateChild:[j.a],children:[{path:"",component:_e,data:{animation:"VoOverviewPage"}},{path:"attributes",component:xi,data:{animation:"VoAttributesPage"}},{path:"groups",component:de.G,data:{animation:"VoGroupsPage"}},{path:"members",component:me.y,data:{animation:"VoMembersPage"}},{path:"resources",component:vi,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:et,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Tl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Ec,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ml,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Si,children:[{path:"",component:Zi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ki,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Hi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:$o.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Ql},{path:"notifications",component:ks,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:hr,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Jc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:Wc,data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:ce,canActivateChild:[j.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:Jr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:ll,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:ee,canActivateChild:[j.a],children:[{path:"",component:bi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Go.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:Ei.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Bi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Uo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Bo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:wl,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:tp.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Po,children:[{path:"",component:zo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:La,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ra,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Bs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt},{path:"notifications",component:er,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Ur,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:vl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:et,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:cl.b,canActivateChild:[j.a],children:[{path:"",component:pl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ul.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:hl.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ml.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:fl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:kl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:_l.t,children:[{path:"",component:dl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:gl.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let ip=(()=>{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(ep),b.Bz]}),i})();var op=c(14264),np=c(63189),ap=c(19516),sp=c(51525),rp=c(45256),st=c(28255);let rt=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var lp=c(86511);let lt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(lp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var cp=c(69773),pp=c(9954);let up=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function _p(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel())("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}function dp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"div",22),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",23),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw(2);return t.KtG(a?m.itemSelectionToggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA()()()}if(2&i){const e=n.$implicit,o=t.oxw(2);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.ynx(0,16),t.YNc(1,_p,2,3,"th",17),t.YNc(2,dp,9,20,"td",18),t.BQk())}function gp(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function hp(i,n){if(1&i&&(t.TgZ(0,"i",27),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function fp(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,hp,4,9,"i",26),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",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function Ip(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function bp(i,n){if(1&i&&(t.TgZ(0,"td",25),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 Ep(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Cp(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Sp(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function xp(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function Np(i,n){if(1&i&&(t.TgZ(0,"td",25),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 Op(i,n){1&i&&t._UZ(0,"th",24)}function Zp(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Dp(i,n){1&i&&t._UZ(0,"tr",28)}function Mp(i,n){1&i&&t._UZ(0,"tr",29)}function Lp(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,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}const Rp=function(i){return{all:i}};let wp=(()=>{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=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const a=e.richUser?e.richUser:e.candidate;return a.lastName?a.lastName:a.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,a),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const 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.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}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(rt),t.Y36(lt),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let 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([rt,lt]),t.TTD],decls:29,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.YNc(3,mp,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,gp,3,3,"th",5),t.YNc(7,fp,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Tp,3,3,"th",5),t.YNc(10,Ap,4,5,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,Ip,3,3,"th",5),t.YNc(13,bp,3,3,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Ep,3,3,"th",5),t.YNc(16,vp,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Cp,3,3,"th",5),t.YNc(19,Sp,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,xp,3,3,"th",5),t.YNc(22,Np,3,3,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Op,1,0,"th",5),t.YNc(25,Zp,2,1,"td",6),t.BQk(),t.YNc(26,Dp,1,0,"tr",13),t.YNc(27,Mp,1,0,"tr",14),t.qZA()()(),t.YNc(28,Lp,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Rp,t.Dn7(4,9,o.dataSource,o.selection.selected.length,o.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[d.O5,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,d.i8,_.X$,Q.d,cp.u,gt.f,pp.Z,up,Ot.I,rt,lt]}),i})();function Gp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Up(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 Pp(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 yp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=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 Fp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(a))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Gp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Up,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Pp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,yp,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function Vp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Yp(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 Jp(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 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.ERROR_COLUMN")," "))}function Qp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function kp(i,n){1&i&&t._UZ(0,"tr",32)}function Bp(i,n){1&i&&t._UZ(0,"tr",33)}const Ft=function(){return["userName","error"]};function Hp(i,n){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,Yp,3,3,"th",24),t.YNc(7,Jp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,qp,3,3,"th",24),t.YNc(10,Qp,4,2,"td",25),t.BQk(),t.YNc(11,kp,1,0,"tr",27),t.YNc(12,Bp,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Ft)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Ft))}}function jp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function zp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Vp,1,0,"mat-spinner",5),t.YNc(2,Hp,13,9,"div",19),t.YNc(3,jp,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 Vt=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new v.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new 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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fp,23,27,"div",1),t.YNc(5,zp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[d.sg,d.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,N.gM,st.VK,st.OP,st.p6,D.w,at.P,wp,d.gd,_.X$,Q.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})(),$p=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[d.ez,ip,op.m,np.r,Mr.ez,ap.d4,g.Je]}),i})();t.B6R(sp.H,[Vt],[d.Ov]),t.B6R(rp.k,[Vt],[d.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/876.892d40f55533ada3.js b/dist/apps/admin-gui/876.892d40f55533ada3.js deleted file mode 100644 index 99d70c93e..000000000 --- a/dist/apps/admin-gui/876.892d40f55533ada3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[876],{89397:function(w,E){!function(s){"use strict";function c(H,Q){return Q.forEach(function(nt){nt&&"string"!=typeof nt&&!Array.isArray(nt)&&Object.keys(nt).forEach(function(q){if("default"!==q&&!(q in H)){var U=Object.getOwnPropertyDescriptor(nt,q);Object.defineProperty(H,q,U.get?U:{enumerable:!0,get:function(){return nt[q]}})}})}),Object.freeze(H)}var q,nt,x={exports:{}};q=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,nt=function(U){var mt,St,D=typeof(U=U||{})<"u"?U:{};D.ready=new Promise(function(b,k){mt=b,St=k});var Et,Mt={};for(Et in D)D.hasOwnProperty(Et)&&(Mt[Et]=D[Et]);var Ct,Zt,Qt="./this.program",ft="";typeof document<"u"&&document.currentScript&&(ft=document.currentScript.src),q&&(ft=q),ft=0!==ft.indexOf("blob:")?ft.substr(0,ft.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Ct=function(b){var k=new XMLHttpRequest;return k.open("GET",b,!1),k.send(null),k.responseText},Zt=function(b,k,Z){var rt=new XMLHttpRequest;rt.open("GET",b,!0),rt.responseType="arraybuffer",rt.onload=function(){200==rt.status||0==rt.status&&rt.response?k(rt.response):Z()},rt.onerror=Z,rt.send(null)};var xe,ie=D.print||console.log.bind(console),ue=D.printErr||console.warn.bind(console);for(Et in Mt)Mt.hasOwnProperty(Et)&&(D[Et]=Mt[Et]);Mt=null,D.thisProgram&&(Qt=D.thisProgram),D.wasmBinary&&(xe=D.wasmBinary),"object"!=typeof WebAssembly&&gi("no native wasm support detected");var Ue,Pe=!1;function It(b,k){b||gi("Assertion failed: "+k)}var ze,Ge,an,_e,un,$t=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Vt(b,k,Z){for(var rt=k+Z,ut=k;b[ut]&&!(ut>=rt);)++ut;if(ut-k>16&&b.subarray&&$t)return $t.decode(b.subarray(k,ut));for(var yt="";k>10,56320|1023&De)}}else yt+=String.fromCharCode((31&Ot)<<6|Bt)}else yt+=String.fromCharCode(Ot)}return yt}function Jt(b,k){return b?Vt(an,b,k):""}function me(b,k,Z,rt){if(!(rt>0))return 0;for(var ut=Z,yt=Z+rt-1,Ot=0;Ot=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Ot)),Bt<=127){if(Z>=yt)break;k[Z++]=Bt}else if(Bt<=2047){if(Z+1>=yt)break;k[Z++]=192|Bt>>6,k[Z++]=128|63&Bt}else if(Bt<=65535){if(Z+2>=yt)break;k[Z++]=224|Bt>>12,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}else{if(Z+3>=yt)break;k[Z++]=240|Bt>>18,k[Z++]=128|Bt>>12&63,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}}return k[Z]=0,Z-ut}function Ee(b){for(var k=0,Z=0;Z=55296&&rt<=57343&&(rt=65536+((1023&rt)<<10)|1023&b.charCodeAt(++Z)),rt<=127?++k:k+=rt<=2047?2:rt<=65535?3:4}return k}function we(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){ze=b,D.HEAP8=Ge=new Int8Array(b),D.HEAP16=new Int16Array(b),D.HEAP32=_e=new Int32Array(b),D.HEAPU8=an=new Uint8Array(b),D.HEAPU16=new Uint16Array(b),D.HEAPU32=new Uint32Array(b),D.HEAPF32=new Float32Array(b),D.HEAPF64=un=new Float64Array(b)}var Yt,oe=[],pe=[],qt=[];var mi=0,Ei=null;function Zi(b){mi++,D.monitorRunDependencies&&D.monitorRunDependencies(mi)}function Pi(b){if(mi--,D.monitorRunDependencies&&D.monitorRunDependencies(mi),0==mi&&Ei){var k=Ei;Ei=null,k()}}function gi(b){D.onAbort&&D.onAbort(b),ue(b="Aborted("+b+")"),Pe=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw St(k),k}D.preloadedImages={},D.preloadedAudios={};var tn;function be(b){return b.startsWith("data:application/octet-stream;base64,")}function yi(b){try{if(b==tn&&xe)return new Uint8Array(xe);throw"both async and sync fetching of the wasm failed"}catch(k){gi(k)}}be(tn="expatlib.wasm")||(tn=function dt(b){return D.locateFile?D.locateFile(b,ft):ft+b}(tn));var He,Tn,Bn={11694:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function Di(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var Z=k.func;"number"==typeof Z?void 0===k.arg?In(Z)():In(Z)(k.arg):Z(void 0===k.arg?null:k.arg)}else k(D)}}function In(b){return Yt.get(b)}var Te={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var Z=0,rt=b.length-1;rt>=0;rt--){var ut=b[rt];"."===ut?b.splice(rt,1):".."===ut?(b.splice(rt,1),Z++):Z&&(b.splice(rt,1),Z--)}if(k)for(;Z;Z--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),Z="/"===b.substr(-1);return!(b=Te.normalizeArray(b.split("/").filter(function(rt){return!!rt}),!k).join("/"))&&!k&&(b="."),b&&Z&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=Te.splitPath(b),Z=k[0],rt=k[1];return Z||rt?(rt&&(rt=rt.substr(0,rt.length-1)),Z+rt):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=Te.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return Te.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Te.normalize(b.join("/"))},join2:function(b,k){return Te.normalize(b+"/"+k)}};var Hn={resolve:function(){for(var b="",k=!1,Z=arguments.length-1;Z>=-1&&!k;Z--){var rt=Z>=0?arguments[Z]:A.cwd();if("string"!=typeof rt)throw new TypeError("Arguments to path.resolve must be strings");if(!rt)return"";b=rt+"/"+b,k="/"===rt.charAt(0)}return(k?"/":"")+(b=Te.normalizeArray(b.split("/").filter(function(ut){return!!ut}),!k).join("/"))||"."},relative:function(b,k){function Z(De){for(var Ye=0;Ye=0&&""===De[on];on--);return Ye>on?[]:De.slice(Ye,on-Ye+1)}b=Hn.resolve(b).substr(1),k=Hn.resolve(k).substr(1);for(var rt=Z(b.split("/")),ut=Z(k.split("/")),yt=Math.min(rt.length,ut.length),Ot=yt,Bt=0;Bt0&&(ie(Vt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(ue(Vt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(ue(Vt(b.output,0)),b.output=[])}}};var $={ops_table:null,mount:function(b){return $.createNode(null,"/",16895,0)},createNode:function(b,k,Z,rt){if(A.isBlkdev(Z)||A.isFIFO(Z))throw new A.ErrnoError(63);$.ops_table||($.ops_table={dir:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,lookup:$.node_ops.lookup,mknod:$.node_ops.mknod,rename:$.node_ops.rename,unlink:$.node_ops.unlink,rmdir:$.node_ops.rmdir,readdir:$.node_ops.readdir,symlink:$.node_ops.symlink},stream:{llseek:$.stream_ops.llseek}},file:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:{llseek:$.stream_ops.llseek,read:$.stream_ops.read,write:$.stream_ops.write,allocate:$.stream_ops.allocate,mmap:$.stream_ops.mmap,msync:$.stream_ops.msync}},link:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,readlink:$.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:A.chrdev_stream_ops}});var ut=A.createNode(b,k,Z,rt);return A.isDir(ut.mode)?(ut.node_ops=$.ops_table.dir.node,ut.stream_ops=$.ops_table.dir.stream,ut.contents={}):A.isFile(ut.mode)?(ut.node_ops=$.ops_table.file.node,ut.stream_ops=$.ops_table.file.stream,ut.usedBytes=0,ut.contents=null):A.isLink(ut.mode)?(ut.node_ops=$.ops_table.link.node,ut.stream_ops=$.ops_table.link.stream):A.isChrdev(ut.mode)&&(ut.node_ops=$.ops_table.chrdev.node,ut.stream_ops=$.ops_table.chrdev.stream),ut.timestamp=Date.now(),b&&(b.contents[k]=ut,b.timestamp=ut.timestamp),ut},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var Z=b.contents?b.contents.length:0;if(!(Z>=k)){k=Math.max(k,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(k=Math.max(k,256));var ut=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ut.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var Z=b.contents;b.contents=new Uint8Array(k),Z&&b.contents.set(Z.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&$.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,Z,rt){return $.createNode(b,k,Z,rt)},rename:function(b,k,Z){if(A.isDir(b.mode)){var rt;try{rt=A.lookupNode(k,Z)}catch{}if(rt)for(var ut in rt.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=Z,k.contents[Z]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var Z=A.lookupNode(b,k);for(var rt in Z.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var Z in b.contents)!b.contents.hasOwnProperty(Z)||k.push(Z);return k},symlink:function(b,k,Z){var rt=$.createNode(b,k,41471,0);return rt.link=Z,rt},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,Z,rt,ut){var yt=b.node.contents;if(ut>=b.node.usedBytes)return 0;var Ot=Math.min(b.node.usedBytes-ut,rt);if(Ot>8&&yt.subarray)k.set(yt.subarray(ut,ut+Ot),Z);else for(var Bt=0;Bt0||rt+Z8)throw new A.ErrnoError(32);for(var ut=Te.normalizeArray(b.split("/").filter(function(Ae){return!!Ae}),!1),yt=A.root,Ot="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Ot,node:yt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var Z=b.mount.mountpoint;return k?"/"!==Z[Z.length-1]?Z+"/"+k:Z+k:Z}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var Z=0,rt=0;rt>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var Z=A.nameTable[k];Z;){if(Z.name_next===b){Z.name_next=b.name_next;break}Z=Z.name_next}},lookupNode:function(b,k){var Z=A.mayLookup(b);if(Z)throw new A.ErrnoError(Z,b);for(var rt=A.hashName(b.id,k),ut=A.nameTable[rt];ut;ut=ut.name_next)if(ut.parent.id===b.id&&ut.name===k)return ut;return A.lookup(b,k)},createNode:function(b,k,Z,rt){var ut=new A.FSNode(b,k,Z,rt);return A.hashAddNode(ut),ut},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,Z){var rt;try{rt=A.lookupNode(b,k)}catch(yt){return yt.errno}var ut=A.nodePermissions(b,"wx");if(ut)return ut;if(Z){if(!A.isDir(rt.mode))return 54;if(A.isRoot(rt)||A.getPath(rt)===A.cwd())return 10}else if(A.isDir(rt.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var Z=b=b||0;Z<=k;Z++)if(!A.streams[Z])return Z;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,Z){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Ot){this.node=Ot}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var rt=new A.FSStream;for(var ut in b)rt[ut]=b[ut];b=rt;var yt=A.nextfd(k,Z);return b.fd=yt,A.streams[yt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],Z=[b];Z.length;){var rt=Z.pop();k.push(rt),Z.push.apply(Z,rt.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&ue("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=A.getMounts(A.root.mount),rt=0;function ut(Ot){return A.syncFSRequests--,k(Ot)}function yt(Ot){if(Ot)return yt.errored?void 0:(yt.errored=!0,ut(Ot));++rt>=Z.length&&ut(null)}Z.forEach(function(Ot){if(!Ot.type.syncfs)return yt(null);Ot.type.syncfs(Ot,b,yt)})},mount:function(b,k,Z){var yt,rt="/"===Z,ut=!Z;if(rt&&A.root)throw new A.ErrnoError(10);if(!rt&&!ut){var Ot=A.lookupPath(Z,{follow_mount:!1});if(Z=Ot.path,A.isMountpoint(yt=Ot.node))throw new A.ErrnoError(10);if(!A.isDir(yt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:Z,mounts:[]},ee=b.mount(Bt);return ee.mount=Bt,Bt.root=ee,rt?A.root=ee:yt&&(yt.mounted=Bt,yt.mount&&yt.mount.mounts.push(Bt)),ee},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var Z=k.node,rt=Z.mounted,ut=A.getMounts(rt);Object.keys(A.nameTable).forEach(function(Ot){for(var Bt=A.nameTable[Ot];Bt;){var ee=Bt.name_next;ut.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ee}}),Z.mounted=null;var yt=Z.mount.mounts.indexOf(rt);Z.mount.mounts.splice(yt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,Z){var ut=A.lookupPath(b,{parent:!0}).node,yt=Te.basename(b);if(!yt||"."===yt||".."===yt)throw new A.ErrnoError(28);var Ot=A.mayCreate(ut,yt);if(Ot)throw new A.ErrnoError(Ot);if(!ut.node_ops.mknod)throw new A.ErrnoError(63);return ut.node_ops.mknod(ut,yt,k,Z)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var Z=b.split("/"),rt="",ut=0;ut"u"&&(Z=k,k=438),A.mknod(b,k|=8192,Z)},symlink:function(b,k){if(!Hn.resolve(b))throw new A.ErrnoError(44);var rt=A.lookupPath(k,{parent:!0}).node;if(!rt)throw new A.ErrnoError(44);var ut=Te.basename(k),yt=A.mayCreate(rt,ut);if(yt)throw new A.ErrnoError(yt);if(!rt.node_ops.symlink)throw new A.ErrnoError(63);return rt.node_ops.symlink(rt,ut,b)},rename:function(b,k){var Bt,ee,Z=Te.dirname(b),rt=Te.dirname(k),ut=Te.basename(b),yt=Te.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ee=A.lookupPath(k,{parent:!0}).node,!Bt||!ee)throw new A.ErrnoError(44);if(Bt.mount!==ee.mount)throw new A.ErrnoError(75);var on,De=A.lookupNode(Bt,ut),Ye=Hn.relative(b,rt);if("."!==Ye.charAt(0))throw new A.ErrnoError(28);if("."!==(Ye=Hn.relative(k,Z)).charAt(0))throw new A.ErrnoError(55);try{on=A.lookupNode(ee,yt)}catch{}if(De!==on){var Ae=A.isDir(De.mode),Ie=A.mayDelete(Bt,ut,Ae);if(Ie)throw new A.ErrnoError(Ie);if(Ie=on?A.mayDelete(ee,yt,Ae):A.mayCreate(ee,yt))throw new A.ErrnoError(Ie);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(De)||on&&A.isMountpoint(on))throw new A.ErrnoError(10);if(ee!==Bt&&(Ie=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Ie);A.hashRemoveNode(De);try{Bt.node_ops.rename(De,ee,yt)}catch(Me){throw Me}finally{A.hashAddNode(De)}}},rmdir:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!0);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.rmdir(Z,rt),A.destroyNode(ut)},readdir:function(b){var Z=A.lookupPath(b,{follow:!0}).node;if(!Z.node_ops.readdir)throw new A.ErrnoError(54);return Z.node_ops.readdir(Z)},unlink:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!1);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.unlink(Z,rt),A.destroyNode(ut)},readlink:function(b){var Z=A.lookupPath(b).node;if(!Z)throw new A.ErrnoError(44);if(!Z.node_ops.readlink)throw new A.ErrnoError(28);return Hn.resolve(A.getPath(Z.parent),Z.node_ops.readlink(Z))},stat:function(b,k){var rt=A.lookupPath(b,{follow:!k}).node;if(!rt)throw new A.ErrnoError(44);if(!rt.node_ops.getattr)throw new A.ErrnoError(63);return rt.node_ops.getattr(rt)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,Z){var rt;if(!(rt="string"==typeof b?A.lookupPath(b,{follow:!Z}).node:b).node_ops.setattr)throw new A.ErrnoError(63);rt.node_ops.setattr(rt,{mode:4095&k|-4096&rt.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);A.chmod(Z.node,k)},chown:function(b,k,Z,rt){var ut;if(!(ut="string"==typeof b?A.lookupPath(b,{follow:!rt}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ut.node_ops.setattr(ut,{timestamp:Date.now()})},lchown:function(b,k,Z){A.chown(b,k,Z,!0)},fchown:function(b,k,Z){var rt=A.getStream(b);if(!rt)throw new A.ErrnoError(8);A.chown(rt.node,k,Z)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var Z;if(!(Z="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(Z.mode))throw new A.ErrnoError(31);if(!A.isFile(Z.mode))throw new A.ErrnoError(28);var ut=A.nodePermissions(Z,"w");if(ut)throw new A.ErrnoError(ut);Z.node_ops.setattr(Z,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);if(0==(2097155&Z.flags))throw new A.ErrnoError(28);A.truncate(Z.node,k)},utime:function(b,k,Z){var ut=A.lookupPath(b,{follow:!0}).node;ut.node_ops.setattr(ut,{timestamp:Math.max(k,Z)})},open:function(b,k,Z,rt,ut){if(""===b)throw new A.ErrnoError(44);var yt;if(Z=typeof Z>"u"?438:Z,Z=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&Z|32768:0,"object"==typeof b)yt=b;else{b=Te.normalize(b);try{yt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(yt){if(128&k)throw new A.ErrnoError(20)}else yt=A.mknod(b,Z,0),Bt=!0;if(!yt)throw new A.ErrnoError(44);if(A.isChrdev(yt.mode)&&(k&=-513),65536&k&&!A.isDir(yt.mode))throw new A.ErrnoError(54);if(!Bt){var ee=A.mayOpen(yt,k);if(ee)throw new A.ErrnoError(ee)}512&k&&A.truncate(yt,0),k&=-131713;var De=A.createStream({node:yt,path:A.getPath(yt),id:yt.id,flags:k,mode:yt.mode,seekable:!0,position:0,stream_ops:yt.stream_ops,node_ops:yt.node_ops,ungotten:[],error:!1},rt,ut);return De.stream_ops.open&&De.stream_ops.open(De),D.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),De},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=Z&&1!=Z&&2!=Z)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,Z),b.ungotten=[],b.position},read:function(b,k,Z,rt,ut){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var yt=typeof ut<"u";if(yt){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Ot=b.stream_ops.read(b,k,Z,rt,ut);return yt||(b.position+=Ot),Ot},write:function(b,k,Z,rt,ut,yt){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Ot=typeof ut<"u";if(Ot){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Bt=b.stream_ops.write(b,k,Z,rt,ut,yt);return Ot||(b.position+=Bt),Bt},allocate:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||Z<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,Z)},mmap:function(b,k,Z,rt,ut,yt){if(0!=(2&ut)&&0==(2&yt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,Z,rt,ut,yt)},msync:function(b,k,Z,rt,ut){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,Z,rt,ut):0},munmap:function(b){return 0},ioctl:function(b,k,Z){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,Z)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var Z,rt=A.open(b,k.flags),yt=A.stat(b).size,Ot=new Uint8Array(yt);return A.read(rt,Ot,0,yt,0),"utf8"===k.encoding?Z=Vt(Ot,0):"binary"===k.encoding&&(Z=Ot),A.close(rt),Z},writeFile:function(b,k,Z){(Z=Z||{}).flags=Z.flags||577;var rt=A.open(b,Z.flags,Z.mode);if("string"==typeof k){var ut=new Uint8Array(Ee(k)+1),yt=me(k,ut,0,ut.length);A.write(rt,ut,0,yt,void 0,Z.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(rt,k,0,k.byteLength,void 0,Z.canOwn)}A.close(rt)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var Z=A.nodePermissions(k.node,"x");if(Z)throw new A.ErrnoError(Z);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,Z,rt,ut,yt){return ut}}),A.mkdev("/dev/null",A.makedev(1,3)),sn.register(A.makedev(5,0),sn.default_tty_ops),sn.register(A.makedev(6,0),sn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Fi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){gi("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(Z,rt){var yt=A.getStream(+rt);if(!yt)throw new A.ErrnoError(8);var Ot={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return yt.path}}};return Ot.parent=Ot,Ot}},k}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?A.createDevice("/dev","stdin",D.stdin):A.symlink("/dev/tty","/dev/stdin"),D.stdout?A.createDevice("/dev","stdout",null,D.stdout):A.symlink("/dev/tty","/dev/stdout"),D.stderr?A.createDevice("/dev","stderr",null,D.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,Z){this.node=Z,this.setErrno=function(rt){this.errno=rt},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount($,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:$}},init:function(b,k,Z){A.init.initialized=!0,A.ensureErrnoError(),D.stdin=b||D.stdin,D.stdout=k||D.stdout,D.stderr=Z||D.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=D._fflush;b&&b(0);for(var k=0;kthis.length-1||Ae<0)){var Ie=Ae%this.chunkSize;return this.getter(Ae/this.chunkSize|0)[Ie]}},yt.prototype.setDataGetter=function(Ae){this.getter=Ae},yt.prototype.cacheLength=function(){var Ae=new XMLHttpRequest;if(Ae.open("HEAD",Z,!1),Ae.send(null),!(Ae.status>=200&&Ae.status<300||304===Ae.status))throw new Error("Couldn't load "+Z+". Status: "+Ae.status);var Me,Ie=Number(Ae.getResponseHeader("Content-length")),Kn=(Me=Ae.getResponseHeader("Accept-Ranges"))&&"bytes"===Me,Hi=(Me=Ae.getResponseHeader("Content-Encoding"))&&"gzip"===Me,vi=1048576;Kn||(vi=Ie);var Nn=this;Nn.setDataGetter(function(Ci){var Ki=Ci*vi,Gn=(Ci+1)*vi-1;if(Gn=Math.min(Gn,Ie-1),typeof Nn.chunks[Ci]>"u"&&(Nn.chunks[Ci]=function(Ci,Ki){if(Ci>Ki)throw new Error("invalid range ("+Ci+", "+Ki+") or no bytes requested!");if(Ki>Ie-1)throw new Error("only "+Ie+" bytes available! programmer error!");var Gn=new XMLHttpRequest;if(Gn.open("GET",Z,!1),Ie!==vi&&Gn.setRequestHeader("Range","bytes="+Ci+"-"+Ki),typeof Uint8Array<"u"&&(Gn.responseType="arraybuffer"),Gn.overrideMimeType&&Gn.overrideMimeType("text/plain; charset=x-user-defined"),Gn.send(null),!(Gn.status>=200&&Gn.status<300||304===Gn.status))throw new Error("Couldn't load "+Z+". Status: "+Gn.status);return void 0!==Gn.response?new Uint8Array(Gn.response||[]):he(Gn.responseText||"",!0)}(Ki,Gn)),typeof Nn.chunks[Ci]>"u")throw new Error("doXHR failed!");return Nn.chunks[Ci]}),(Hi||!Ie)&&(vi=Ie=1,Ie=this.getter(0).length,vi=Ie,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ie,this._chunkSize=vi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ee=A.createFile(b,k,Bt={isDevice:!1,url:Z},rt,ut);Bt.contents?ee.contents=Bt.contents:Bt.url&&(ee.contents=null,ee.url=Bt.url),Object.defineProperties(ee,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ee.stream_ops).forEach(function(on){var Ae=ee.stream_ops[on];De[on]=function(){return A.forceLoadFile(ee),Ae.apply(null,arguments)}}),De.read=function(Ae,Ie,Me,Kn,Hi){A.forceLoadFile(ee);var vi=Ae.node.contents;if(Hi>=vi.length)return 0;var Wn=Math.min(vi.length-Hi,Kn);if(vi.slice)for(var Nn=0;Nn>2]=rt.dev,_e[Z+4>>2]=0,_e[Z+8>>2]=rt.ino,_e[Z+12>>2]=rt.mode,_e[Z+16>>2]=rt.nlink,_e[Z+20>>2]=rt.uid,_e[Z+24>>2]=rt.gid,_e[Z+28>>2]=rt.rdev,_e[Z+32>>2]=0,Tn=[rt.size>>>0,(He=rt.size,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+40>>2]=Tn[0],_e[Z+44>>2]=Tn[1],_e[Z+48>>2]=4096,_e[Z+52>>2]=rt.blocks,_e[Z+56>>2]=rt.atime.getTime()/1e3|0,_e[Z+60>>2]=0,_e[Z+64>>2]=rt.mtime.getTime()/1e3|0,_e[Z+68>>2]=0,_e[Z+72>>2]=rt.ctime.getTime()/1e3|0,_e[Z+76>>2]=0,Tn=[rt.ino>>>0,(He=rt.ino,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+80>>2]=Tn[0],_e[Z+84>>2]=Tn[1],0},doMsync:function(b,k,Z,rt,ut){var yt=an.slice(b,b+Z);A.msync(k,yt,ut,Z,rt)},doMkdir:function(b,k){return"/"===(b=Te.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,Z){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,Z),0},doReadlink:function(b,k,Z){if(Z<=0)return-28;var rt=A.readlink(b),ut=Math.min(Z,Ee(rt)),yt=Ge[k+ut];return function ve(b,k,Z){return me(b,an,k,Z)}(rt,k,Z+1),Ge[k+ut]=yt,ut},doAccess:function(b,k){if(-8&k)return-28;var rt=A.lookupPath(b,{follow:!0}).node;if(!rt)return-44;var ut="";return 4&k&&(ut+="r"),2&k&&(ut+="w"),1&k&&(ut+="x"),ut&&A.nodePermissions(rt,ut)?-2:0},doDup:function(b,k,Z){var rt=A.getStream(Z);return rt&&A.close(rt),A.open(b,k,0,Z,Z).fd},doReadv:function(b,k,Z,rt){for(var ut=0,yt=0;yt>2],ee=A.read(b,Ge,_e[k+8*yt>>2],Bt,rt);if(ee<0)return-1;if(ut+=ee,ee>2],_e[k+(8*yt+4)>>2],rt);if(ee<0)return-1;ut+=ee}return ut},varargs:void 0,get:function(){return bt.varargs+=4,_e[bt.varargs-4>>2]},getStr:function(b){return Jt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Ut=[];function pt(b){try{return Ue.grow(b-ze.byteLength+65535>>>16),Tt(Ue.buffer),1}catch{}}var _t={};function Wt(){if(!Wt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var Z in _t)void 0===_t[Z]?delete k[Z]:k[Z]=_t[Z];var rt=[];for(var Z in k)rt.push(Z+"="+k[Z]);Wt.strings=rt}return Wt.strings}var Oe=function(b,k,Z,rt){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=rt};function he(b,k,Z){var rt=Z>0?Z:Ee(b)+1,ut=new Array(rt),yt=me(b,ut,0,ut.length);return k&&(ut.length=yt),ut}Object.defineProperties(Oe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Oe,A.staticInit();var Fe={h:function Dt(b,k,Z){bt.varargs=Z;try{var rt=bt.getStr(b),ut=Z?bt.get():0;return A.open(rt,k,ut).fd}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return-Ot.errno}},b:function Pt(){gi("")},a:function Ht(b,k,Z){var rt=function jt(b,k){var Z;for(Ut.length=0,k>>=2;Z=an[b++];){var rt=Z<105;rt&&1&k&&k++,Ut.push(rt?un[k++>>1]:_e[k]),++k}return Ut}(k,Z);return Bn[b].apply(null,rt)},k:function J(b,k,Z){an.copyWithin(b,k,k+Z)},e:function gt(b){var k=an.length,Z=2147483648;if((b>>>=0)>Z)return!1;for(var rt=1;rt<=4;rt*=2){var ut=k*(1+.2/rt);if(ut=Math.min(ut,b+100663296),pt(Math.min(Z,we(Math.max(b,ut),65536))))return!0}return!1},f:function Lt(b,k){var Z=0;return Wt().forEach(function(rt,ut){var yt=k+Z;_e[b+4*ut>>2]=yt,function ke(b,k,Z){for(var rt=0;rt>0]=b.charCodeAt(rt);Z||(Ge[k>>0]=0)}(rt,yt),Z+=rt.length+1}),0},g:function ae(b,k){var Z=Wt();_e[b>>2]=Z.length;var rt=0;return Z.forEach(function(ut){rt+=ut.length+1}),_e[k>>2]=rt,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(Z){if(typeof A>"u"||!(Z instanceof A.ErrnoError))throw Z;return Z.errno}},i:function re(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doReadv(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},j:function Ce(b,k,Z,rt,ut){try{var yt=bt.getStreamFromFD(b),Bt=4294967296*Z+(k>>>0),ee=9007199254740992;return Bt<=-ee||Bt>=ee?-61:(A.llseek(yt,Bt,rt),Tn=[yt.position>>>0,(He=yt.position,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[ut>>2]=Tn[0],_e[ut+4>>2]=Tn[1],yt.getdents&&0===Bt&&0===rt&&(yt.getdents=null),0)}catch(De){if(typeof A>"u"||!(De instanceof A.ErrnoError))throw De;return De.errno}},c:function ye(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doWritev(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},l:function je(b){var k=Date.now();return _e[b>>2]=k/1e3|0,_e[b+4>>2]=k%1e3*1e3|0,0}};(function On(){var b={a:Fe};function k(Ot,Bt){D.asm=Ot.exports,Tt((Ue=D.asm.m).buffer),Yt=D.asm.G,function Ni(b){pe.unshift(b)}(D.asm.n),Pi()}function Z(Ot){k(Ot.instance)}function rt(Ot){return function ji(){return xe||"function"!=typeof fetch?Promise.resolve().then(function(){return yi(tn)}):fetch(tn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+tn+"'";return b.arrayBuffer()}).catch(function(){return yi(tn)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Ot,function(Bt){ue("failed to asynchronously prepare wasm: "+Bt),gi(Bt)})}if(Zi(),D.instantiateWasm)try{return D.instantiateWasm(b,k)}catch(Ot){return ue("Module.instantiateWasm callback failed with error: "+Ot),!1}return function ut(){return xe||"function"!=typeof WebAssembly.instantiateStreaming||be(tn)||"function"!=typeof fetch?rt(Z):fetch(tn,{credentials:"same-origin"}).then(function(Ot){return WebAssembly.instantiateStreaming(Ot,b).then(Z,function(ee){return ue("wasm streaming compile failed: "+ee),ue("falling back to ArrayBuffer instantiation"),rt(Z)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.n).apply(null,arguments)};var Jn,fn=D._emscripten_bind_CExpat_CExpat_0=function(){return(fn=D._emscripten_bind_CExpat_CExpat_0=D.asm.o).apply(null,arguments)},mn=D._emscripten_bind_CExpat_version_0=function(){return(mn=D._emscripten_bind_CExpat_version_0=D.asm.p).apply(null,arguments)},Je=D._emscripten_bind_CExpat_create_0=function(){return(Je=D._emscripten_bind_CExpat_create_0=D.asm.q).apply(null,arguments)},$e=D._emscripten_bind_CExpat_destroy_0=function(){return($e=D._emscripten_bind_CExpat_destroy_0=D.asm.r).apply(null,arguments)},wn=D._emscripten_bind_CExpat_parse_1=function(){return(wn=D._emscripten_bind_CExpat_parse_1=D.asm.s).apply(null,arguments)},Zn=D._emscripten_bind_CExpat_tag_0=function(){return(Zn=D._emscripten_bind_CExpat_tag_0=D.asm.t).apply(null,arguments)},Vn=D._emscripten_bind_CExpat_attrs_0=function(){return(Vn=D._emscripten_bind_CExpat_attrs_0=D.asm.u).apply(null,arguments)},Yn=D._emscripten_bind_CExpat_content_0=function(){return(Yn=D._emscripten_bind_CExpat_content_0=D.asm.v).apply(null,arguments)},Ri=D._emscripten_bind_CExpat_startElement_0=function(){return(Ri=D._emscripten_bind_CExpat_startElement_0=D.asm.w).apply(null,arguments)},ce=D._emscripten_bind_CExpat_endElement_0=function(){return(ce=D._emscripten_bind_CExpat_endElement_0=D.asm.x).apply(null,arguments)},Qe=D._emscripten_bind_CExpat_characterData_0=function(){return(Qe=D._emscripten_bind_CExpat_characterData_0=D.asm.y).apply(null,arguments)},_n=D._emscripten_bind_CExpat___destroy___0=function(){return(_n=D._emscripten_bind_CExpat___destroy___0=D.asm.z).apply(null,arguments)},Cn=D._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=D._emscripten_bind_VoidPtr___destroy___0=D.asm.A).apply(null,arguments)},Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=D.asm.B).apply(null,arguments)},li=D._emscripten_bind_CExpatJS_startElement_0=function(){return(li=D._emscripten_bind_CExpatJS_startElement_0=D.asm.C).apply(null,arguments)},jn=D._emscripten_bind_CExpatJS_endElement_0=function(){return(jn=D._emscripten_bind_CExpatJS_endElement_0=D.asm.D).apply(null,arguments)},En=D._emscripten_bind_CExpatJS_characterData_0=function(){return(En=D._emscripten_bind_CExpatJS_characterData_0=D.asm.E).apply(null,arguments)},Pn=D._emscripten_bind_CExpatJS___destroy___0=function(){return(Pn=D._emscripten_bind_CExpatJS___destroy___0=D.asm.F).apply(null,arguments)};function bi(b){function k(){Jn||(Jn=!0,D.calledRun=!0,!Pe&&(function Xe(){!D.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,Di(pe)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function bn(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)b=D.postRun.shift(),qt.unshift(b);var b;Di(qt)}()))}mi>0||(function Ve(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)b=D.preRun.shift(),oe.unshift(b);var b;Di(oe)}(),mi>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),k()},1)):k())}if(D._malloc=function(){return(D._malloc=D.asm.H).apply(null,arguments)},Ei=function b(){Jn||bi(),Jn||(Ei=b)},D.run=bi,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function gn(){}function hn(b){return(b||gn).__cache__}function ci(b,k){var Z=hn(k),rt=Z[b];return rt||((rt=Object.create((k||gn).prototype)).ptr=b,Z[b]=rt)}bi(),(gn.prototype=Object.create(gn.prototype)).constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},D.WrapperObject=gn,D.getCache=hn,D.wrapPointer=ci,D.castObject=function Ji(b,k){return ci(b.ptr,k)},D.NULL=ci(0),D.destroy=function ui(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete hn(b.__class__)[b.ptr]},D.compare=function zi(b,k){return b.ptr===k.ptr},D.getPointer=function Mn(b){return b.ptr},D.getClass=function Ti(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?(It(rt>0),cn.needed+=rt,ut=D._malloc(rt),cn.temps.push(ut)):(ut=cn.buffer+cn.pos,cn.pos+=rt),ut},copy:function(b,k,Z){switch(Z>>>=0,k.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var ut=0;ut=j);)++ht;if(ht-S>16&&y.subarray&&Ee)return Ee.decode(y.subarray(S,ht));for(var xt="";S>10,56320|1023&Le)}}else xt+=String.fromCharCode((31&At)<<6|Rt)}else xt+=String.fromCharCode(At)}return xt}function we(y,S){return y?ke(oe,y,S):""}function ze(y,S,P,j){if(!(j>0))return 0;for(var ht=P,xt=P+j-1,At=0;At=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++At)),Rt<=127){if(P>=xt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=xt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=xt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=xt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-ht}function an(y){for(var S=0,P=0;P=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&y.charCodeAt(++P)),j<=127?++S:S+=j<=2047?2:j<=65535?3:4}return S}function un(y,S){return y%S>0&&(y+=S-y%S),y}function Xe(y){Tt=y,D.HEAP8=Yt=new Int8Array(y),D.HEAP16=pe=new Int16Array(y),D.HEAP32=qt=new Int32Array(y),D.HEAPU8=oe=new Uint8Array(y),D.HEAPU16=new Uint16Array(y),D.HEAPU32=new Uint32Array(y),D.HEAPF32=new Float32Array(y),D.HEAPF64=Ve=new Float64Array(y)}var bn,oi=[],Ni=[],fi=[];var tn=0,yi=null;function On(y){tn++,D.monitorRunDependencies&&D.monitorRunDependencies(tn)}function He(y){if(tn--,D.monitorRunDependencies&&D.monitorRunDependencies(tn),0==tn&&yi){var S=yi;yi=null,S()}}function Tn(y){D.onAbort&&D.onAbort(y),xe(y="Aborted("+y+")"),me=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw St(S),S}D.preloadedImages={},D.preloadedAudios={};var In;function Di(y){return y.startsWith("data:application/octet-stream;base64,")}function Te(y){try{if(y==In&&$t)return new Uint8Array($t);throw"both async and sync fetching of the wasm failed"}catch(S){Tn(S)}}Di(In="graphvizlib.wasm")||(In=function Ct(y){return D.locateFile?D.locateFile(y,dt):dt+y}(In));var sn,z,bt,$={161580:function(y,S){var P=we(y),j=we(S);O.createPath("/",Ht.dirname(P)),O.writeFile(Ht.join("/",P),j)}};function ct(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(D)}}function A(y){return bn.get(y)}bt=function(){return performance.now()};function Pt(y){return qt[Ot()>>2]=y,y}var Ht={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,j=y.length-1;j>=0;j--){var ht=y[j];"."===ht?y.splice(j,1):".."===ht?(y.splice(j,1),P++):P&&(y.splice(j,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Ht.normalizeArray(y.split("/").filter(function(j){return!!j}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Ht.splitPath(y),P=S[0],j=S[1];return P||j?(j&&(j=j.substr(0,j.length-1)),P+j):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Ht.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Ht.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Ht.normalize(y.join("/"))},join2:function(y,S){return Ht.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var j=P>=0?arguments[P]:O.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";y=j+"/"+y,S="/"===j.charAt(0)}return(S?"/":"")+(y=Ht.normalizeArray(y.split("/").filter(function(ht){return!!ht}),!S).join("/"))||"."},relative:function(y,S){function P(Le){for(var en=0;en=0&&""===Le[dn];dn--);return en>dn?[]:Le.slice(en,dn-en+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var j=P(y.split("/")),ht=P(S.split("/")),xt=Math.min(j.length,ht.length),At=xt,Rt=0;Rt0&&(ue(ke(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(xe(ke(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(xe(ke(y.output,0)),y.output=[])}}};function Wt(y){y=function zt(y,S){return Math.ceil(y/S)*S}(y,65536);var S=Ye(65536,y);return S?(function _t(y,S){oe.fill(0,y,y+S)}(S,y),S):0}var Lt={ops_table:null,mount:function(y){return Lt.createNode(null,"/",16895,0)},createNode:function(y,S,P,j){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);Lt.ops_table||(Lt.ops_table={dir:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,lookup:Lt.node_ops.lookup,mknod:Lt.node_ops.mknod,rename:Lt.node_ops.rename,unlink:Lt.node_ops.unlink,rmdir:Lt.node_ops.rmdir,readdir:Lt.node_ops.readdir,symlink:Lt.node_ops.symlink},stream:{llseek:Lt.stream_ops.llseek}},file:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:{llseek:Lt.stream_ops.llseek,read:Lt.stream_ops.read,write:Lt.stream_ops.write,allocate:Lt.stream_ops.allocate,mmap:Lt.stream_ops.mmap,msync:Lt.stream_ops.msync}},link:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,readlink:Lt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:O.chrdev_stream_ops}});var ht=O.createNode(y,S,P,j);return O.isDir(ht.mode)?(ht.node_ops=Lt.ops_table.dir.node,ht.stream_ops=Lt.ops_table.dir.stream,ht.contents={}):O.isFile(ht.mode)?(ht.node_ops=Lt.ops_table.file.node,ht.stream_ops=Lt.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):O.isLink(ht.mode)?(ht.node_ops=Lt.ops_table.link.node,ht.stream_ops=Lt.ops_table.link.stream):O.isChrdev(ht.mode)&&(ht.node_ops=Lt.ops_table.chrdev.node,ht.stream_ops=Lt.ops_table.chrdev.stream),ht.timestamp=Date.now(),y&&(y.contents[S]=ht,y.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var ht=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(ht.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&Lt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,j){return Lt.createNode(y,S,P,j)},rename:function(y,S,P){if(O.isDir(y.mode)){var j;try{j=O.lookupNode(S,P)}catch{}if(j)for(var ht in j.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var j in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var j=Lt.createNode(y,S,41471,0);return j.link=P,j},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,j,ht){var xt=y.node.contents;if(ht>=y.node.usedBytes)return 0;var At=Math.min(y.node.usedBytes-ht,j);if(At>8&&xt.subarray)S.set(xt.subarray(ht,ht+At),P);else for(var Rt=0;Rt0||j+P8)throw new O.ErrnoError(32);for(var ht=Ht.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),xt=O.root,At="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:At,node:xt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,j=0;j>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var j=O.hashName(y.id,S),ht=O.nameTable[j];ht;ht=ht.name_next)if(ht.parent.id===y.id&&ht.name===S)return ht;return O.lookup(y,S)},createNode:function(y,S,P,j){var ht=new O.FSNode(y,S,P,j);return O.hashAddNode(ht),ht},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var j;try{j=O.lookupNode(y,S)}catch(xt){return xt.errno}var ht=O.nodePermissions(y,"wx");if(ht)return ht;if(P){if(!O.isDir(j.mode))return 54;if(O.isRoot(j)||O.getPath(j)===O.cwd())return 10}else if(O.isDir(j.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(At){this.node=At}},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 O.FSStream;for(var ht in y)j[ht]=y[ht];y=j;var xt=O.nextfd(S,P);return y.fd=xt,O.streams[xt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var j=P.pop();S.push(j),P.push.apply(P,j.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&xe("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),j=0;function ht(At){return O.syncFSRequests--,S(At)}function xt(At){if(At)return xt.errored?void 0:(xt.errored=!0,ht(At));++j>=P.length&&ht(null)}P.forEach(function(At){if(!At.type.syncfs)return xt(null);At.type.syncfs(At,y,xt)})},mount:function(y,S,P){var xt,j="/"===P,ht=!P;if(j&&O.root)throw new O.ErrnoError(10);if(!j&&!ht){var At=O.lookupPath(P,{follow_mount:!1});if(P=At.path,O.isMountpoint(xt=At.node))throw new O.ErrnoError(10);if(!O.isDir(xt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},te=y.mount(Rt);return te.mount=Rt,Rt.root=te,j?O.root=te:xt&&(xt.mounted=Rt,xt.mount&&xt.mount.mounts.push(Rt)),te},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,j=P.mounted,ht=O.getMounts(j);Object.keys(O.nameTable).forEach(function(At){for(var Rt=O.nameTable[At];Rt;){var te=Rt.name_next;ht.includes(Rt.mount)&&O.destroyNode(Rt),Rt=te}}),P.mounted=null;var xt=P.mount.mounts.indexOf(j);P.mount.mounts.splice(xt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var ht=O.lookupPath(y,{parent:!0}).node,xt=Ht.basename(y);if(!xt||"."===xt||".."===xt)throw new O.ErrnoError(28);var At=O.mayCreate(ht,xt);if(At)throw new O.ErrnoError(At);if(!ht.node_ops.mknod)throw new O.ErrnoError(63);return ht.node_ops.mknod(ht,xt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),j="",ht=0;ht"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var j=O.lookupPath(S,{parent:!0}).node;if(!j)throw new O.ErrnoError(44);var ht=Ht.basename(S),xt=O.mayCreate(j,ht);if(xt)throw new O.ErrnoError(xt);if(!j.node_ops.symlink)throw new O.ErrnoError(63);return j.node_ops.symlink(j,ht,y)},rename:function(y,S){var Rt,te,P=Ht.dirname(y),j=Ht.dirname(S),ht=Ht.basename(y),xt=Ht.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,te=O.lookupPath(S,{parent:!0}).node,!Rt||!te)throw new O.ErrnoError(44);if(Rt.mount!==te.mount)throw new O.ErrnoError(75);var dn,Le=O.lookupNode(Rt,ht),en=pt.relative(y,j);if("."!==en.charAt(0))throw new O.ErrnoError(28);if("."!==(en=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{dn=O.lookupNode(te,xt)}catch{}if(Le!==dn){var Ne=O.isDir(Le.mode),Ze=O.mayDelete(Rt,ht,Ne);if(Ze)throw new O.ErrnoError(Ze);if(Ze=dn?O.mayDelete(te,xt,Ne):O.mayCreate(te,xt))throw new O.ErrnoError(Ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(Le)||dn&&O.isMountpoint(dn))throw new O.ErrnoError(10);if(te!==Rt&&(Ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(Ze);O.hashRemoveNode(Le);try{Rt.node_ops.rename(Le,te,xt)}catch(vn){throw vn}finally{O.hashAddNode(Le)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Ht.basename(y),ht=O.lookupNode(P,j),xt=O.mayDelete(P,j,!0);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.rmdir(P,j),O.destroyNode(ht)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Ht.basename(y),ht=O.lookupNode(P,j),xt=O.mayDelete(P,j,!1);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.unlink(P,j),O.destroyNode(ht)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var j=O.lookupPath(y,{follow:!S}).node;if(!j)throw new O.ErrnoError(44);if(!j.node_ops.getattr)throw new O.ErrnoError(63);return j.node_ops.getattr(j)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var j;if(!(j="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);j.node_ops.setattr(j,{mode:4095&S|-4096&j.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,j){var ht;if(!(ht="string"==typeof y?O.lookupPath(y,{follow:!j}).node:y).node_ops.setattr)throw new O.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var j=O.getStream(y);if(!j)throw new O.ErrnoError(8);O.chown(j.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var ht=O.nodePermissions(P,"w");if(ht)throw new O.ErrnoError(ht);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var ht=O.lookupPath(y,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(S,P)})},open:function(y,S,P,j,ht){if(""===y)throw new O.ErrnoError(44);var xt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)xt=y;else{y=Ht.normalize(y);try{xt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(xt){if(128&S)throw new O.ErrnoError(20)}else xt=O.mknod(y,P,0),Rt=!0;if(!xt)throw new O.ErrnoError(44);if(O.isChrdev(xt.mode)&&(S&=-513),65536&S&&!O.isDir(xt.mode))throw new O.ErrnoError(54);if(!Rt){var te=O.mayOpen(xt,S);if(te)throw new O.ErrnoError(te)}512&S&&O.truncate(xt,0),S&=-131713;var Le=O.createStream({node:xt,path:O.getPath(xt),id:xt.id,flags:S,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},j,ht);return Le.stream_ops.open&&Le.stream_ops.open(Le),D.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),Le},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,j,ht){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var At=y.stream_ops.read(y,S,P,j,ht);return xt||(y.position+=At),At},write:function(y,S,P,j,ht,xt){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var At=typeof ht<"u";if(At){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var Rt=y.stream_ops.write(y,S,P,j,ht,xt);return At||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,j,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,j,ht,xt)},msync:function(y,S,P,j,ht){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,j,ht):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,j=O.open(y,S.flags),xt=O.stat(y).size,At=new Uint8Array(xt);return O.read(j,At,0,xt,0),"utf8"===S.encoding?P=ke(At,0):"binary"===S.encoding&&(P=At),O.close(j),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var j=O.open(y,P.flags,P.mode);if("string"==typeof S){var ht=new Uint8Array(an(S)+1),xt=ze(S,ht,0,ht.length);O.write(j,ht,0,xt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write(j,S,0,S.byteLength,void 0,P.canOwn)}O.close(j)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,j,ht,xt){return ht}}),O.mkdev("/dev/null",O.makedev(1,3)),gt.register(O.makedev(5,0),gt.default_tty_ops),gt.register(O.makedev(6,0),gt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function J(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){Tn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,j){var xt=O.getStream(+j);if(!xt)throw new O.ErrnoError(8);var At={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return At.parent=At,At}},S}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?O.createDevice("/dev","stdin",D.stdin):O.symlink("/dev/tty","/dev/stdin"),D.stdout?O.createDevice("/dev","stdout",null,D.stdout):O.symlink("/dev/tty","/dev/stdout"),D.stderr?O.createDevice("/dev","stderr",null,D.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function(j){this.errno=j},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(Lt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:Lt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),D.stdin=y||D.stdin,D.stdout=S||D.stdout,D.stderr=P||D.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=D._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var Ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Ze]}},xt.prototype.setDataGetter=function(Ne){this.getter=Ne},xt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var vn,Ze=Number(Ne.getResponseHeader("Content-length")),hi=(vn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===vn,gr=(vn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===vn,Li=1048576;hi||(Li=Ze);var xi=this;xi.setDataGetter(function(Yi){var _r=Yi*Li,qn=(Yi+1)*Li-1;if(qn=Math.min(qn,Ze-1),typeof xi.chunks[Yi]>"u"&&(xi.chunks[Yi]=function(Yi,_r){if(Yi>_r)throw new Error("invalid range ("+Yi+", "+_r+") or no bytes requested!");if(_r>Ze-1)throw new Error("only "+Ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),Ze!==Li&&qn.setRequestHeader("Range","bytes="+Yi+"-"+_r),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Bi(qn.responseText||"",!0)}(_r,qn)),typeof xi.chunks[Yi]>"u")throw new Error("doXHR failed!");return xi.chunks[Yi]}),(gr||!Ze)&&(Li=Ze=1,Ze=this.getter(0).length,Li=Ze,ue("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ze,this._chunkSize=Li,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,te=O.createFile(y,S,Rt={isDevice:!1,url:P},j,ht);Rt.contents?te.contents=Rt.contents:Rt.url&&(te.contents=null,te.url=Rt.url),Object.defineProperties(te,{usedBytes:{get:function(){return this.contents.length}}});var Le={};return Object.keys(te.stream_ops).forEach(function(dn){var Ne=te.stream_ops[dn];Le[dn]=function(){return O.forceLoadFile(te),Ne.apply(null,arguments)}}),Le.read=function(Ne,Ze,vn,hi,gr){O.forceLoadFile(te);var Li=Ne.node.contents;if(gr>=Li.length)return 0;var wr=Math.min(Li.length-gr,hi);if(Li.slice)for(var xi=0;xi>2]=j.dev,qt[P+4>>2]=0,qt[P+8>>2]=j.ino,qt[P+12>>2]=j.mode,qt[P+16>>2]=j.nlink,qt[P+20>>2]=j.uid,qt[P+24>>2]=j.gid,qt[P+28>>2]=j.rdev,qt[P+32>>2]=0,z=[j.size>>>0,(sn=j.size,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+40>>2]=z[0],qt[P+44>>2]=z[1],qt[P+48>>2]=4096,qt[P+52>>2]=j.blocks,qt[P+56>>2]=j.atime.getTime()/1e3|0,qt[P+60>>2]=0,qt[P+64>>2]=j.mtime.getTime()/1e3|0,qt[P+68>>2]=0,qt[P+72>>2]=j.ctime.getTime()/1e3|0,qt[P+76>>2]=0,z=[j.ino>>>0,(sn=j.ino,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+80>>2]=z[0],qt[P+84>>2]=z[1],0},doMsync:function(y,S,P,j,ht){var xt=oe.slice(y,y+P);O.msync(S,xt,ht,P,j)},doMkdir:function(y,S){return"/"===(y=Ht.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var j=O.readlink(y),ht=Math.min(P,an(j)),xt=Yt[S+ht];return function Ge(y,S,P){return ze(y,oe,S,P)}(j,S,P+1),Yt[S+ht]=xt,ht},doAccess:function(y,S){if(-8&S)return-28;var j=O.lookupPath(y,{follow:!0}).node;if(!j)return-44;var ht="";return 4&S&&(ht+="r"),2&S&&(ht+="w"),1&S&&(ht+="x"),ht&&O.nodePermissions(j,ht)?-2:0},doDup:function(y,S,P){var j=O.getStream(P);return j&&O.close(j),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,j){for(var ht=0,xt=0;xt>2],te=O.read(y,Yt,qt[S+8*xt>>2],Rt,j);if(te<0)return-1;if(ht+=te,te>2],qt[S+(8*xt+4)>>2],j);if(te<0)return-1;ht+=te}return ht},varargs:void 0,get:function(){return re.varargs+=4,qt[re.varargs-4>>2]},getStr:function(y){return we(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Vn=[];function Qe(y){try{return Jt.grow(y-Tt.byteLength+65535>>>16),Xe(Jt.buffer),1}catch{}}var Cn={};function li(){if(!li.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var j=[];for(var P in S)j.push(P+"="+S[P]);li.strings=j}return li.strings}var Mn=function(y,S,P,j){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=j};function Bi(y,S,P){var j=P>0?P:an(y)+1,ht=new Array(j),xt=ze(y,ht,0,ht.length);return S&&(ht.length=xt),ht}Object.defineProperties(Mn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=Mn,O.staticInit();var Ke={A:function jt(y,S){return function Ut(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return qt[S>>2]=P/1e3|0,qt[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Ce(y,S){try{return y=re.getStr(y),re.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function ye(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 0:return(ht=re.get())<0?-28:O.open(j.path,j.flags,0,ht).fd;case 1:case 2:case 6:case 7:return 0;case 3:return j.flags;case 4:var ht=re.get();return j.flags|=ht,0;case 5:return ht=re.get(),pe[ht+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function je(y,S){try{var P=re.getStreamFromFD(y);return re.doStat(O.stat,P.path,S)}catch(j){if(typeof O>"u"||!(j instanceof O.ErrnoError))throw j;return-j.errno}},u:function Oe(y,S,P,j){try{S=re.getStr(S);var ht=256&j,xt=4096&j;return j&=-4353,S=re.calculateAt(y,S,xt),re.doStat(ht?O.lstat:O.stat,S,P)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},y:function Be(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return j.tty?0:-59;case 21519:if(!j.tty)return-59;var ht=re.get();return qt[ht>>2]=0,0;case 21520:return j.tty?-28:-59;case 21531:return ht=re.get(),O.ioctl(j,S,ht);default:Tn("bad ioctl syscall "+S)}}catch(xt){if(typeof O>"u"||!(xt instanceof O.ErrnoError))throw xt;return-xt.errno}},k:function he(y,S,P,j,ht,xt){try{return function le(y,S,P,j,ht,xt){xt<<=12;var At,Rt=!1;if(0!=(16&j)&&y%65536!=0)return-28;if(0!=(32&j)){if(!(At=Wt(S)))return-48;Rt=!0}else{var te=O.getStream(ht);if(!te)return-8;var Le=O.mmap(te,y,S,xt,P,j);At=Le.ptr,Rt=Le.allocated}return re.mappings[At]={malloc:At,len:S,allocated:Rt,fd:ht,prot:P,flags:j,offset:xt},At}(y,S,P,j,ht,xt)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=re.mappings[y];if(0===S||!P)return-28;if(S===P.len){var j=O.getStream(P.fd);j&&2&P.prot&&re.doMsync(y,j,S,P.flags,P.offset),re.mappings[y]=null,P.allocated&&yt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function mn(y,S,P){re.varargs=P;try{var j=re.getStr(y),ht=P?re.get():0;return O.open(j,S,ht).fd}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},v:function Je(y,S){try{return y=re.getStr(y),re.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function $e(y){try{return y=re.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Zn(){Tn("")},C:function Ri(y,S,P){var j=function Yn(y,S){var P;for(Vn.length=0,S>>=2;P=oe[y++];){var j=P<105;j&&1&S&&S++,Vn.push(j?Ve[S++>>1]:qt[S]),++S}return Vn}(S,P);return $[y].apply(null,j)},o:function ce(y,S,P){oe.copyWithin(y,S,S+P)},p:function _n(y){var S=oe.length,P=2147483648;if((y>>>=0)>P)return!1;for(var j=1;j<=4;j*=2){var ht=S*(1+.2/j);if(ht=Math.min(ht,y+100663296),Qe(Math.min(P,un(Math.max(y,ht),65536))))return!0}return!1},s:function jn(y,S){var P=0;return li().forEach(function(j,ht){var xt=S+P;qt[y+4*ht>>2]=xt,function _e(y,S,P){for(var j=0;j>0]=y.charCodeAt(j);P||(Yt[S>>0]=0)}(j,xt),P+=j.length+1}),0},t:function En(y,S){var P=li();qt[y>>2]=P.length;var j=0;return P.forEach(function(ht){j+=ht.length+1}),qt[S>>2]=j,0},a:function Pn(y){!function Hi(y,S){!function vi(y){(function Ei(){return Vt||!1})()||(D.onExit&&D.onExit(y),me=!0),Nt(y,new Me(y))}(y)}(y)},d:function Jn(y){try{var S=re.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,j){try{var ht=re.getStreamFromFD(y),xt=re.doReadv(ht,S,P);return qt[j>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},n:function gn(y,S,P,j,ht){try{var xt=re.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),te=9007199254740992;return Rt<=-te||Rt>=te?-61:(O.llseek(xt,Rt,j),z=[xt.position>>>0,(sn=xt.position,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[ht>>2]=z[0],qt[ht+4>>2]=z[1],xt.getdents&&0===Rt&&0===j&&(xt.getdents=null),0)}catch(Le){if(typeof O>"u"||!(Le instanceof O.ErrnoError))throw Le;return Le.errno}},g:function hn(y,S,P,j){try{var ht=re.getStreamFromFD(y),xt=re.doWritev(ht,S,P);return qt[j>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},c:function ci(){return Ue},w:function Ji(y){var S=Date.now();return qt[y>>2]=S/1e3|0,qt[y+4>>2]=S%1e3*1e3|0,0},l:function Ae(y,S,P,j,ht,xt,At){var Rt=Bt();try{return A(y)(S,P,j,ht,xt,At)}catch(te){if(ee(Rt),te!==te+0&&"longjmp"!==te)throw te;De(1,0)}},m:function on(y,S){var P=Bt();try{A(y)(S)}catch(j){if(ee(P),j!==j+0&&"longjmp"!==j)throw j;De(1,0)}},b:function ui(y){!function(y){Ue=y}(y)},f:function zi(y){var S=Date.now()/1e3|0;return y&&(qt[y>>2]=S),S}};(function Hn(){var y={a:Ke};function S(At,Rt){D.asm=At.exports,Xe((Jt=D.asm.D).buffer),bn=D.asm.M,function Qi(y){Ni.unshift(y)}(D.asm.E),He()}function P(At){S(At.instance)}function j(At){return function Fi(){return $t||"function"!=typeof fetch?Promise.resolve().then(function(){return Te(In)}):fetch(In,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+In+"'";return y.arrayBuffer()}).catch(function(){return Te(In)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(At,function(Rt){xe("failed to asynchronously prepare wasm: "+Rt),Tn(Rt)})}if(On(),D.instantiateWasm)try{return D.instantiateWasm(y,S)}catch(At){return xe("Module.instantiateWasm callback failed with error: "+At),!1}return function ht(){return $t||"function"!=typeof WebAssembly.instantiateStreaming||Di(In)||"function"!=typeof fetch?j(P):fetch(In,{credentials:"same-origin"}).then(function(At){return WebAssembly.instantiateStreaming(At,y).then(P,function(te){return xe("wasm streaming compile failed: "+te),xe("falling back to ArrayBuffer instantiation"),j(P)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.E).apply(null,arguments)};var _i=D._emscripten_bind_VoidPtr___destroy___0=function(){return(_i=D._emscripten_bind_VoidPtr___destroy___0=D.asm.F).apply(null,arguments)},Dn=D._emscripten_bind_Graphviz_Graphviz_2=function(){return(Dn=D._emscripten_bind_Graphviz_Graphviz_2=D.asm.G).apply(null,arguments)},b=D._emscripten_bind_Graphviz_version_0=function(){return(b=D._emscripten_bind_Graphviz_version_0=D.asm.H).apply(null,arguments)},k=D._emscripten_bind_Graphviz_lastError_0=function(){return(k=D._emscripten_bind_Graphviz_lastError_0=D.asm.I).apply(null,arguments)},Z=D._emscripten_bind_Graphviz_layout_3=function(){return(Z=D._emscripten_bind_Graphviz_layout_3=D.asm.J).apply(null,arguments)},rt=D._emscripten_bind_Graphviz_createFile_2=function(){return(rt=D._emscripten_bind_Graphviz_createFile_2=D.asm.K).apply(null,arguments)},ut=D._emscripten_bind_Graphviz___destroy___0=function(){return(ut=D._emscripten_bind_Graphviz___destroy___0=D.asm.L).apply(null,arguments)};D._malloc=function(){return(D._malloc=D.asm.N).apply(null,arguments)};var Ie,yt=D._free=function(){return(yt=D._free=D.asm.O).apply(null,arguments)},Ot=D.___errno_location=function(){return(Ot=D.___errno_location=D.asm.P).apply(null,arguments)},Bt=D.stackSave=function(){return(Bt=D.stackSave=D.asm.Q).apply(null,arguments)},ee=D.stackRestore=function(){return(ee=D.stackRestore=D.asm.R).apply(null,arguments)},De=D._setThrew=function(){return(De=D._setThrew=D.asm.S).apply(null,arguments)},Ye=D._memalign=function(){return(Ye=D._memalign=D.asm.T).apply(null,arguments)};function Me(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Kn(y){function S(){Ie||(Ie=!0,D.calledRun=!0,!me&&(function Zi(){!D.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,ct(Ni)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function Pi(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)y=D.postRun.shift(),fi.unshift(y);var y;ct(fi)}()))}tn>0||(function er(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)y=D.preRun.shift(),oi.unshift(y);var y;ct(oi)}(),tn>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),S()},1)):S())}if(yi=function y(){Ie||Kn(),Ie||(yi=y)},D.run=Kn,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function Wn(){}function Nn(y){return(y||Wn).__cache__}function Ci(y,S){var P=Nn(S),j=P[y];return j||((j=Object.create((S||Wn).prototype)).ptr=y,P[y]=j)}Kn(),(Wn.prototype=Object.create(Wn.prototype)).constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},D.WrapperObject=Wn,D.getCache=Nn,D.wrapPointer=Ci,D.castObject=function Ki(y,S){return Ci(y.ptr,S)},D.NULL=Ci(0),D.destroy=function Gn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Nn(y.__class__)[y.ptr]},D.compare=function va(y,S){return y.ptr===S.ptr},D.getPointer=function za(y){return y.ptr},D.getClass=function Mr(y){return y.__class__};var An={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(An.needed){for(var y=0;y=An.size?(ve(j>0),An.needed+=j,ht=D._malloc(j),An.temps.push(ht)):(ht=An.buffer+An.pos,An.pos+=j),ht},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var ht=0;ht\n\n')}}function st(H,Q){var nt=Y({images:[],files:[]},Q);V(V([],nt.files,!0),function et(H){return H.map(it)}(nt.images),!0).forEach(function(q){return H.createFile(q.path,q.data)})}var X={layout:function(H,Q,nt,q){return void 0===Q&&(Q="svg"),void 0===nt&&(nt="dot"),H?u(B,q?.wasmFolder,q?.wasmBinary).then(function(U){var D=new U.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(D,q);var mt=D.layout(H,Q,nt);if(U.destroy(D),!mt)throw new Error(U.Graphviz.prototype.lastError());return mt}):Promise.resolve("")},circo:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"circo",nt)},dot:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"dot",nt)},fdp:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"fdp",nt)},sfdp:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"sfdp",nt)},neato:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"neato",nt)},osage:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"osage",nt)},patchwork:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"patchwork",nt)},twopi:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"twopi",nt)}},W=function(){function H(Q){this._wasm=Q}return H.prototype.layout=function(Q,nt,q,U){if(void 0===nt&&(nt="svg"),void 0===q&&(q="dot"),!Q)return"";var D=new this._wasm.Graphviz(U?.yInvert?1:0,U?.nop?U?.nop:0);st(D,U);var mt=D.layout(Q,nt,q);if(this._wasm.destroy(D),!mt)throw new Error(this._wasm.Graphviz.prototype.lastError());return mt},H.prototype.circo=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"circo",q)},H.prototype.dot=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"dot",q)},H.prototype.fdp=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"fdp",q)},H.prototype.sfdp=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"sfdp",q)},H.prototype.neato=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"neato",q)},H.prototype.osage=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"osage",q)},H.prototype.patchwork=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"patchwork",q)},H.prototype.twopi=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"twopi",q)},H}();s.GraphvizSync=W,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(H,Q){return u(m,H,Q).then(function(nt){return nt.CExpat.prototype.version()})},s.graphviz=X,s.graphvizSync=function at(H,Q){return u(B,H,Q).then(function(nt){return new W(nt)})},s.graphvizVersion=function K(H,Q){return u(B,H,Q).then(function(nt){return nt.Graphviz.prototype.version()})},s.parse=R,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(E)},62876:(w,E,s)=>{"use strict";s.r(E),s.d(E,{AdminModule:()=>Cy});var c={};s.r(c),s.d(c,{forceCenter:()=>sd,forceCollide:()=>Vo,forceLink:()=>Yo,forceManyBody:()=>Xo,forceRadial:()=>Md,forceSimulation:()=>Wo,forceX:()=>Nd,forceY:()=>Pd});var x={};s.r(x),s.d(x,{dispatch:()=>ba.Z});var _={};s.r(_),s.d(_,{interval:()=>Rd,now:()=>or.zO,timeout:()=>$a.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var R=s(95017),M=s(65412),F=s(30671),B=s(32080),Y=s(32105),V=s(4859),it=s(51572),et=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function K(n,r){1&n&&t._UZ(0,"th",16)}function X(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 W(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)(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,K,1,0,"th",11),t.YNc(10,X,2,1,"td",12),t.BQk(),t.YNc(11,W,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let Q=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new F.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,et.w,u.X$]}),n})();var nt=s(24006),q=s(78372),U=s(63900),D=s(61135),mt=s(69751),St=s(38421),Mt=s(75797),Et=s(60515),Qt=s(25403),Nt=s(63269);function ft(...n){const r=(0,Nt.jO)(n),e=(0,Mt.k)(n);return e.length?new mt.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(G=>G.shift());i.next(r?r(...N):N),a.some((G,tt)=>!G.length&&o[tt])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):Et.E}var dt=s(39646),Ct=s(19516),Zt=s(3238),se=s(39349),ie=s(59549),ue=s(284),xe=s(84385),Ue=s(3848),Pe=s(23123);function It(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function $t(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Vt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new D.X(this.policy.role),this.objects=this.selectedRole.pipe((0,U.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,It,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,$t,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,nt.JJ,nt.On,l.Hw,V.lW,ie.KE,Zt.ey,xe.gD,m.Ov,u.X$,Pe.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Jt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Jt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function ve(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,me,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Ee=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,ve,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,V.lW,Vt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function ke(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function we(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,ke,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let ze=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,Ue.SP,Ue.uD,Ue.uX,ze,u.X$]}),n})();var un=s(10266),Tt=s(90455),Yt=s(4765);function oe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const pe=function(n){return{disable:n}};let qt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,oe,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,pe,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,nt.JJ,nt.On,un.gM,Tt.Rr,u.X$,Yt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ve=(()=>{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 Xe(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function bn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function fi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ei(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function er(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Pi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,bn,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,Ni,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,fi,2,2,"mat-option",15),t.qZA(),t.YNc(19,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,Ei,2,2,"mat-option",15),t.qZA(),t.YNc(24,er,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Zi,3,4,"mat-option",15),t.qZA(),t.YNc(29,Pi,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t._UZ(32,"perun-web-apps-attribute-rights-tab-group",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(2),t.Q6J("collections",e.collections)}}let Qi=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",nt.kI.required],displayName:["",nt.kI.required],description:["",nt.kI.required],entity:["",nt.kI.required],definitionType:["",nt.kI.required],valueType:["",nt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.Array","java.util.LinkedHashMap"],this.attDef=new D.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(G=>{this.setAttribute(G)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.collections))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(nt.QS),t.Y36(Y.H8),t.Y36(B.eE),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Ct.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Ct.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xe,1,0,"mat-spinner",2),t.YNc(5,gi,33,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,Zt.ey,se.IC,ie.TO,ie.KE,ue.Nt,nt._Y,nt.Fj,nt.JJ,nt.JL,nt.Q7,nt.sg,nt.u,V.lW,M.uh,M.xY,M.H8,xe.gD,it.Ou,_e,qt,m.Ov,u.X$,Ve]}),n})();var be=s(9244),tn=s(10036);function yi(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let On=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,yi,1,0,"mat-spinner",2),t.YNc(5,ji,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.On,V.lW,M.uh,M.xY,M.H8,it.Ou,et.w,u.X$]}),n})();var He=s(96308),Tn=s(36769),Bn=s(68675),Di=s(64425),In=s(37084),Te=s(33604),Fi=s(56709),Hn=s(43532),sn=s(18750);function z(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),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 $(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.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 ct(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 A(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"label")(2,"input",28),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function bt(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 Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Pt(n,r){1&n&&t._UZ(0,"tr",30)}function Ut(n,r){1&n&&t._UZ(0,"tr",31)}function jt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.ynx(3,13),t.YNc(4,z,2,3,"th",14),t.YNc(5,$,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,ct,3,3,"th",17),t.YNc(8,A,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,bt,3,3,"th",17),t.YNc(11,Dt,2,1,"td",18),t.BQk(),t.YNc(12,Pt,1,0,"tr",20),t.YNc(13,Ut,1,0,"tr",21),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 Ht(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function J(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 pt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new F.by,this.selection=new R.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=be.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new F.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(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(He.YE,7),t.Gf(Te.Mw,5),t.Gf(be.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)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,jt,14,7,"div",7),t.YNc(17,Ht,1,0,"mat-spinner",8),t.YNc(18,J,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,ue.Nt,nt.Fj,nt.JJ,nt.On,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,M.uh,M.xY,M.H8,it.Ou,un.gM,et.w,Hn.M,sn.l,u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var gt=s(60205);function _t(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function zt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Wt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Lt=function(){return["id","name","enabled","script"]};function ae(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,zt,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Wt,3,3,"mat-error",1),t.qZA()(),t._UZ(11,"perun-web-apps-attribute-unique-toggle",15)(12,"perun-web-apps-attribute-rights-tab-group",16),t.ALo(13,"async"),t.TgZ(14,"mat-accordion")(15,"mat-expansion-panel",17)(16,"mat-expansion-panel-header")(17,"mat-panel-title"),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t._UZ(20,"app-services-list",18),t.ALo(21,"async"),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(1),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(13,16,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(19,18,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(22,Lt))("services",t.lcZ(21,20,e.services$))}}function O(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.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 re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_t,1,0,"mat-spinner",3),t.YNc(5,ae,22,23,"div",4),t.TgZ(6,"div",5),t.YNc(7,O,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",20),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let ye=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=G,this.attributeRightsService=tt,this.tableId=tn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,nt.kI.required],description:[this.attDef.description,nt.kI.required]}),this.collections$=new D.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,Bn.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributePolicyCollections(this.attDef.id).subscribe(this.collections$)}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,U.w)(()=>(0,dt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Di.TU),t.Y36(Y.H8),t.Y36(Y.KK),t.Y36(nt.QS),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[3,"attDef"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,re,17,16,"div",1),t.YNc(2,Ce,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,se.IC,ie.TO,ie.KE,ue.Nt,nt._Y,nt.Fj,nt.JJ,nt.JL,nt.Q7,nt.sg,nt.u,In.pp,In.ib,In.yz,In.yK,V.lW,M.uh,M.xY,M.H8,it.Ou,_e,qt,pt,gt.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],data:{animation:[Tn.SG,Tn.GH,Tn.Ls]}}),n})();var je=s(70844),Oe=s(64597);let Be=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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 he(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"consentRelatedAttribute"),t.ALo(4,"translate"),t.ALo(5,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(3,8,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(4,12,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(5,14,e.namespace,i.serviceEnabled,i.consentRequired))}}function Fe(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 fn(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 mn(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 Je(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 $e(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 wn(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 Zn(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 Vn(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 Yn(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 Ri(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 ce(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 Qe(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 _n(n,r){1&n&&t._UZ(0,"tr",26)}function Cn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function Qn(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 li(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 jn=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new R.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=be.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"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 F.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,be.O6)((0,be.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,be.O6)((0,be.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,be.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,be.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,be.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(ye,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.UA),t.Y36(je.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.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","exportDisplayedData","exportAllData"],[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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.ynx(4,4),t.YNc(5,le,2,3,"th",5),t.YNc(6,he,6,18,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Fe,3,3,"th",8),t.YNc(9,fn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,mn,3,3,"th",8),t.YNc(12,Je,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,$e,3,3,"th",8),t.YNc(15,wn,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,Zn,3,3,"th",8),t.YNc(18,Vn,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Yn,3,3,"th",8),t.YNc(21,Ri,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,ce,3,3,"th",8),t.YNc(24,Qe,2,1,"td",11),t.BQk(),t.YNc(25,_n,1,0,"tr",16),t.YNc(26,Cn,1,2,"tr",17),t.qZA()()()(),t.YNc(27,Qn,3,3,"perun-web-apps-alert",18),t.YNc(28,li,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))},dependencies:[m.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,un.gM,et.w,sn.l,u.X$,Oe.R,Ve,Be,je.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var En=s(96214),Pn=s(7434);function Jn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function bi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function hn(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function ci(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ji=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,be.kZ)();e.width="650px",this.dialog.open(Qi,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,be.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(Q,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,be.kZ)();e.width="700px",this.dialog.open(On,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Jn,3,3,"button",2),t.YNc(6,bi,3,3,"button",3),t.YNc(7,gn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,hn,1,0,"mat-spinner",6),t.YNc(10,ci,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,jn,En.t,Pn.L,u.X$]}),n})(),ui=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var zi=s(9921);let Mn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,zi.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Ti=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var cn=s(71884),Bi=s(18505),Ke=s(47957),_i=s(71948),Dn=s(86257);function b(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 k(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function Z(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function rt(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 ut(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 yt(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 Ot=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new nt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,cn.x)(),(0,Bi.b)(()=>this.loading=!0),(0,U.w)(e=>this.usersService.findUsers(e)),(0,Bi.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{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(Y.Fv),t.Y36(u.sK),t.Y36(Y.IQ),t.Y36(Y.KK),t.Y36(p.F0),t.Y36(B.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,b,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,k,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,Z,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,rt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,ut,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,yt,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Ke.XC,Ke.ZL,Zt.ey,ie.KE,ie.bx,ie.R9,ue.Nt,nt.Fj,nt.JJ,nt.oH,nt.On,V.lW,it.Ou,_i.VQ,_i.U0,Dn.C0,Dn.VY,Dn.Vq,Dn.fd,m.Ov,u.X$]}),n})();function Bt(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 ee(n){this._context=n}function Ye(n,r){this._basis=new ee(n),this._beta=r}ee.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:Bt(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:Bt(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 N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const on=function n(r){function e(i){return 1===r?new ee(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ae=s(77579),Ie=s(70655),Me=s(37340);function Kn(){}function Hi(n){return null==n?Kn:function(){return this.querySelector(n)}}function Wn(){return[]}function Nn(n){return null==n?Wn:function(){return this.querySelectorAll(n)}}function Ki(n){return function(){return this.matches(n)}}function va(n){return new Array(n.length)}function Mr(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function qi(n,r,e,i,a,o){for(var T,v=0,N=r.length,G=o.length;vr?1:n>=r?0:NaN}Mr.prototype={constructor:Mr,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 Ze="http://www.w3.org/1999/xhtml";const vn={svg:"http://www.w3.org/2000/svg",xhtml:Ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hi(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),vn.hasOwnProperty(r)?{space:vn[r],local:n}:n}function gr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wr(n,r){return function(){this.setAttribute(n,r)}}function xi(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function _r(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 Gs(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function yc(n){return function(){this.style.removeProperty(n)}}function bc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Tc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nr(n,r){return n.style.getPropertyValue(r)||Gs(n).getComputedStyle(n,null).getPropertyValue(r)}function wc(n){return function(){delete this[n]}}function Ac(n,r){return function(){this[n]=r}}function Sc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Us(n){return n.trim().split(/^|\s+/)}function Ha(n){return n.classList||new zs(n)}function zs(n){this._node=n,this._names=Us(n.getAttribute("class")||"")}function Hs(n,r){for(var e=Ha(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 Xs={},Ar=null;function nu(n,r,e){return n=$s(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function $s(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function iu(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 ru(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Xt&&(Xt=Kt+1);!(Se=vt[Xt])&&++Xt=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function xt(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=At);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?yc:"function"==typeof r?Tc:bc)(n,r,e??"")):Nr(this.node(),n)},property:function Ec(n,r){return arguments.length>1?this.each((null==r?wc:"function"==typeof r?Sc:Ac)(n,r)):this.node()[n]},classed:function Ic(n,r){var e=Us(n+"");if(arguments.length<2){for(var i=Ha(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const uu=function n(r){function e(i){return 1===r?new xa(i):new to(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ya=Math.PI,Wa=2*Ya,Sr=1e-6,hu=Wa-Sr;function Xa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function eo(){return new Xa}Xa.prototype=eo.prototype={constructor:Xa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),G=o-n,tt=v-r,lt=G*G+tt*tt;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(lt>Sr)if(Math.abs(tt*T-N*G)>Sr&&a){var ot=e-o,wt=i-v,kt=T*T+N*N,Ft=ot*ot+wt*wt,vt=Math.sqrt(kt),Gt=Math.sqrt(lt),Kt=a*Math.tan((Ya-Math.acos((kt+lt-Ft)/(2*vt*Gt)))/2),Xt=Kt/Gt,ge=Kt/vt;Math.abs(Xt-1)>Sr&&(this._+="L"+(n+Xt*G)+","+(r+Xt*tt)),this._+="A"+a+","+a+",0,0,"+ +(tt*ot>G*wt)+","+(this._x1=n+ge*T)+","+(this._y1=r+ge*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,G=r+T,tt=1^o,lt=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+G:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-G)>Sr)&&(this._+="L"+N+","+G),e&&(lt<0&&(lt=lt%Wa+Wa),lt>hu?this._+="A"+e+","+e+",0,1,"+tt+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+tt+","+(this._x1=N)+","+(this._y1=G):lt>Sr&&(this._+="A"+e+","+e+",0,"+ +(lt>=Ya)+","+tt+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const du=eo;function ya(n){return function(){return n}}function no(n){this._context=n}function pu(n){return new no(n)}function fu(n){return n[0]}function mu(n){return n[1]}no.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 io=Math.PI;function ao(n){return(1-Math.cos(io*n))/2}var ba=s(25922),or=s(49194),$a=s(73339),_u=(0,ba.Z)("start","end","cancel","interrupt"),vu=[];function wa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function xu(n,r,e){var a,i=n.__transition;function v(G){var tt,lt,ot,wt;if(1!==e.state)return N();for(tt in i)if((wt=i[tt]).name===e.name){if(3===wt.state)return(0,$a.Z)(v);4===wt.state?(wt.state=6,wt.timer.stop(),wt.on.call("interrupt",n,n.__data__,wt.index,wt.group),delete i[tt]):+tt0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=tr(n,r);if(e.state>3)throw new Error("too late; already running");return e}function tr(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function vr(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,qa,ho,Aa,co=180/Math.PI,Ka={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?tt+=360:tt-G>180&&(G+=360),ot.push({i:lt.push(a(lt)+"rotate(",null,i)-2,x:vr(G,tt)})):tt&<.push(a(lt)+"rotate("+tt+i)}(G.rotate,tt.rotate,lt,ot),function T(G,tt,lt,ot){G!==tt?ot.push({i:lt.push(a(lt)+"skewX(",null,i)-2,x:vr(G,tt)}):tt&<.push(a(lt)+"skewX("+tt+i)}(G.skewX,tt.skewX,lt,ot),function N(G,tt,lt,ot,wt,kt){if(G!==lt||tt!==ot){var Ft=wt.push(a(wt)+"scale(",null,",",null,")");kt.push({i:Ft-4,x:vr(G,lt)},{i:Ft-2,x:vr(tt,ot)})}else(1!==lt||1!==ot)&&wt.push(a(wt)+"scale("+lt+","+ot+")")}(G.scaleX,G.scaleY,tt.scaleX,tt.scaleY,lt,ot),G=tt=null,function(wt){for(var vt,kt=-1,Ft=ot.length;++kt>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Ea(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Ea(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=ku.exec(n))?new Gi(r[1],r[2],r[3],1):(r=Iu.exec(n))?new Gi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Ou.exec(n))?Ea(r[1],r[2],r[3],r[4]):(r=Mu.exec(n))?Ea(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Nu.exec(n))?bo(r[1],r[2]/100,r[3]/100,1):(r=Pu.exec(n))?bo(r[1],r[2]/100,r[3]/100,r[4]):mo.hasOwnProperty(n)?vo(mo[n]):"transparent"===n?new Gi(NaN,NaN,NaN,0):null}function vo(n){return new Gi(n>>16&255,n>>8&255,255&n,1)}function Ea(n,r,e,i){return i<=0&&(n=r=e=NaN),new Gi(n,r,e,i)}function Ru(n){return n instanceof ra||(n=oa(n)),n?new Gi((n=n.rgb()).r,n.g,n.b,n.opacity):new Gi}function Da(n,r,e,i){return 1===arguments.length?Ru(n):new Gi(n,r,e,i??1)}function Gi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function xo(){return"#"+ns(this.r)+ns(this.g)+ns(this.b)}function yo(){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 ns(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function bo(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new ir(n,r,e,i)}function To(n){if(n instanceof ir)return new ir(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new ir;if(n instanceof ir)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new ir(v,T,N,n.opacity)}function ir(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function is(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 Co(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function wo(n){return function(){return n}}function So(n,r){var e=r-n;return e?function Ao(n,r){return function(e){return n+e*r}}(n,e):wo(isNaN(n)?r:n)}es(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:go,formatHex:go,formatHsl:function Fu(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),es(Gi,Da,fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new Gi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Gi(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:xo,formatHex:xo,formatRgb:yo,toString:yo})),es(ir,function Bu(n,r,e,i){return 1===arguments.length?To(n):new ir(n,r,e,i??1)},fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new ir(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ir(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 Gi(is(n>=240?n-240:n+120,a,i),is(n,a,i),is(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 Eo=function n(r){var e=function Uu(n){return 1==(n=+n)?So:function(r,e){return e-r?function Gu(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):wo(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=Da(a)).r,(o=Da(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),G=So(a.opacity,o.opacity);return function(tt){return a.r=v(tt),a.g=T(tt),a.b=N(tt),a.opacity=G(tt),a+""}}return i.gamma=n,i}(1);function Do(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Co((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:vr(i,a)})),e=as.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Ja:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var bh=na.prototype.constructor;function ko(n){return function(){this.style.removeProperty(n)}}function Dh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Lh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Dh(n,v,e)),i}return o._value=r,o}function Nh(n){return function(r){this.textContent=n.call(this,r)}}function Ph(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Nh(a)),r}return i._value=n,i}var Zh=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Io(){return++Zh}var Fr=na.prototype;cr.prototype=function Vh(n){return na().transition(n)}.prototype={constructor:cr,select:function xh(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function zh(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Io(),(e=ss).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function id(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function La(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 Ro=Symbol("implicit");function os(){var n=new Map,r=[],e=[],i=Ro;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Ro)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return os(r,e).unknown(i)},La.apply(a,arguments),a}var Br=s(59695);function sd(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+tt)/2))?N=ot:tt=ot,a=o,!(o=o[Gt=vt<<1|Ft]))return a[Gt]=v,n;if(wt=+n._x.call(null,o.data),kt=+n._y.call(null,o.data),r===wt&&e===kt)return v.next=o,a?a[Gt]=v:n._root=v,n;do{a=a?a[Gt]=new Array(4):n._root=new Array(4),(Ft=r>=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+tt)/2))?N=ot:tt=ot}while((Gt=vt<<1|Ft)==(Kt=(kt>=ot)<<1|wt>=lt));return a[Kt]=o,a[Gt]=v,n}function ki(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function xd(n){return n[0]}function bd(n){return n[1]}function ls(n,r,e){var i=new cs(r??xd,e??bd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function cs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function Zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Ii=ls.prototype=cs.prototype;function Cd(n){return n.x+n.vx}function wd(n){return n.y+n.vy}function Vo(n){var r,e,i=1,a=1;function o(){for(var N,tt,lt,ot,wt,kt,Ft,G=r.length,vt=0;vtot+yn||Sewt+yn||delt.index){var Ln=ot-nn.x-nn.vx,kn=wt-nn.y-nn.vy,$n=Ln*Ln+kn*kn;$nN.r&&(N.r=N[G].r)}function T(){if(r){var N,tt,G=r.length;for(e=new Array(G),N=0;Ntt&&(tt=a),olt&&(lt=o));if(N>tt||G>lt)return this;for(this.cover(N,G).cover(tt,lt),e=0;en||n>=a||i>r||r>=o;)switch(G=(rtt||(T=kt.y0)>lt||(N=kt.x1)=Gt)<<1|n>=vt)&&(kt=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=kt)}else{var Kt=n-+this._x.call(null,wt.data),Xt=r-+this._y.call(null,wt.data),ge=Kt*Kt+Xt*Xt;if(ge=(ot=(v+N)/2))?v=ot:N=ot,(Ft=lt>=(wt=(T+G)/2))?T=wt:G=wt,r=e,!(e=e[vt=Ft<<1|kt]))return this;if(!e.length)break;(r[vt+1&3]||r[vt+2&3]||r[vt+3&3])&&(i=r,Gt=vt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[vt]=o:delete r[vt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Gt]=e:this._root=e),this):(this._root=o,this)},Ii.removeAll=function fd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(kt):T.set(kt,wt(Ft)),r):T.get(kt)},find:function(kt,Ft,vt){var Xt,ge,Se,de,nn,Gt=0,Kt=n.length;for(null==vt?vt=1/0:vt*=vt,Gt=0;Gt1?(G.on(kt,Ft),r):G.on(kt)}}}function Xo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var wt,kt=n.length,Ft=ls(n,Ld,kd).visitAfter(tt);for(e=ot,wt=0;wt=v)){(ot.data!==r||ot.next)&&(0===vt&&(Xt+=(vt=xr())*vt),0===Gt&&(Xt+=(Gt=xr())*Gt),Xt{return(n=Zr||(Zr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Zr;var n})(),Vr=(()=>{return(n=Vr||(Vr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Vr;var n})();function cp(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...G){const tt=+new Date;!T&&!1===e.leading&&(T=tt);const lt=r-(tt-T);return i=this,a=G,lt<=0?(clearTimeout(v),v=null,T=tt,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,lt)),o}}function up(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:cp(o.value,n,r)}),this[a]}}}}const Qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class hp{constructor(r,e,i){"string"==typeof r&&(r=Qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=Qo.find(i=>i.name===r)),os().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 pp=(()=>{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 Gr=(()=>{return(n=Gr||(Gr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Gr;var n})();function Ur(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function Jo(n,r){return"number"==typeof r?n[r]:r}const Ko={dagre:class fp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class mp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class _p{constructor(){this.defaultSettings={orientation:Gr.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),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(kt=>kt.id===e.source),a=r.nodes.find(kt=>kt.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,G={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},tt={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},lt=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[G,{[v]:G[v],[o]:G[o]-N*lt},{[v]:tt[v],[o]:tt[o]+N*lt},tt];const wt=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return wt&&(wt.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class vp{constructor(){this.defaultSettings={force:Wo().force("charge",Xo().strength(-150)).force("collide",Vo(5)),forceLink:Yo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ae.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Ur(e.source).id,target:Ur(e.target).id,points:[{x:Ur(e.source).x,y:Ur(e.source).y},{x:Ur(e.target).x,y:Ur(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 xp{constructor(){this.defaultSettings={force:(0,Fd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new Ae.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=Jo(r.nodes,e.source),a=Jo(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let qo=(()=>{class n{getLayout(e){if(Ko[e])return new Ko[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})(),yp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),bp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Zr.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=Vr.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 Oo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new pp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=uu.beta(1)),this.zone.run(()=>{this.dims=function dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Oo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof mt.y?e:(0,dt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Yh.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let G=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const tt=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);G?G.data&&tt&&tt.data&&JSON.stringify(G.data)!==JSON.stringify(tt.data)&&(G.data=tt.data):G=tt||v,G.oldLine=G.line;const lt=v.points,ot=this.generateLine(lt),wt=Object.assign({},G);wt.line=ot,wt.points=lt,this.updateMidpointOnEdge(wt,lt);const kt=lt[Math.floor(lt.length/2)];kt&&(wt.textTransform=`translate(${kt.x||0},${kt.y||0})`),wt.textAngle=0,wt.oldLine||(wt.oldLine=wt.line),this.calcDominantBaseline(wt),a.push(wt)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Vr.UpperLeft:return"";case Vr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(Ks(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(ao).duration(e?500:0).attr("d",a.line),Ks(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(ao).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),G=N.querySelector("g.chart"),tt=N.createSVGPoint();tt.x=v,tt.y=T;const lt=tt.matrixTransform(G.getScreenCTM().inverse());this.pan(lt.x,lt.y,!0),this.zoom(a),this.pan(-lt.x,-lt.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Fo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Fo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function td(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return qh(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof mt.y?T:(0,dt.of)(T);this.graphSubscription.add(N.subscribe(G=>{this.graph=G,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function nd(n){return function Po(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function ad(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 hp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Zr.Horizontal:this.pan(a,0);break;case Zr.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Mo.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(qo))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,Bd,5),t.Suo(a,Zd,5),t.Suo(a,Vd,5),t.Suo(a,Gd,5),t.Suo(a,Ud,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(zd,5),t.Gf(Hd,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:lp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,np,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,op,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[yp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Me.X$)("animationState",[(0,Me.eR)(":enter",[(0,Me.oB)({opacity:0}),(0,Me.jt)("500ms 100ms",(0,Me.oB)({opacity:1}))])])]},changeDetection:0}),(0,Ie.gn)([up(500)],n.prototype,"updateMinimap",null),n})(),Tp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[qo],imports:[[m.ez]]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Tp]}),n})();var tl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function ul(n,r){return nr?1:n>=r?0:NaN}function _s(n){let r=n,e=n;function i(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[tt],T)<0?N=tt+1:G=tt}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function Np(n){return(r,e)=>ul(n(r),e)}(n)),{left:i,center:function o(v,T,N,G){null==N&&(N=0),null==G&&(G=v.length);const tt=i(v,T,N,G-1);return tt>N&&r(v[tt-1],T)>-r(v[tt],T)?tt-1:tt},right:function a(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[tt],T)>0?G=tt:N=tt+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var vs=Math.sqrt(50),xs=Math.sqrt(10),ys=Math.sqrt(2);function bs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=vs?a*=10:o>=xs?a*=5:o>=ys&&(a*=2),r0))return N;do{N.push(G=new Date(+o)),r(o,T),n(o)}while(G=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return ws.setTime(+o),As.setTime(+v),n(ws),n(As),Math.floor(e(ws,As))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Na=di(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Na.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?di(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Na:null};const Fp=Na;const ha=di(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const ml=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const _l=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Pa=di(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return di(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/Ts})}var Fa=Lr(0),Ra=Lr(1),Yr=(Lr(2),Lr(3),Lr(4));const yl=(Lr(5),Lr(6),di(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 Ss=di(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()});Ss.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ss;const Gp=di(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const Up=di(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Es=di(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return di(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)/Ts})}var Ds=Ir(0),Ba=Ir(1),Wr=(Ir(2),Ir(3),Ir(4));const Xp=(Ir(5),Ir(6),di(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 Ls=di(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()});Ls.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(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 Xr=Ls;function Al(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,Ts],[r,1,dl],[r,3,3*dl],[n,1,Cs]];function N(G,tt,lt){const ot=Math.abs(tt-G)/lt,wt=_s(([,,vt])=>vt).right(v,ot);if(wt===v.length)return n.every(bs(G/Cs,tt/Cs,lt));if(0===wt)return Fp.every(Math.max(bs(G,tt,lt),1));const[kt,Ft]=v[ot/v[wt-1][2][r.toLowerCase(),e]))}function tf(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function ef(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function nf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function rf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function af(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function El(n,r,e){var i=pi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Dl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function sf(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 of(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function lf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ll(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function cf(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function kl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function uf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function hf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function df(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function pf(n,r,e){var i=pi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function ff(n,r,e){var i=Jp.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function mf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function gf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Il(n,r){return xn(n.getDate(),r,2)}function _f(n,r){return xn(n.getHours(),r,2)}function vf(n,r){return xn(n.getHours()%12||12,r,2)}function xf(n,r){return xn(1+Pa.count(kr(n),n),r,3)}function Ol(n,r){return xn(n.getMilliseconds(),r,3)}function yf(n,r){return Ol(n,r)+"000"}function bf(n,r){return xn(n.getMonth()+1,r,2)}function Tf(n,r){return xn(n.getMinutes(),r,2)}function Cf(n,r){return xn(n.getSeconds(),r,2)}function wf(n){var r=n.getDay();return 0===r?7:r}function Af(n,r){return xn(Fa.count(kr(n)-1,n),r,2)}function Ml(n){var r=n.getDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function Sf(n,r){return n=Ml(n),xn(Yr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function Ef(n){return n.getDay()}function Df(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Lf(n,r){return xn(n.getFullYear()%100,r,2)}function kf(n,r){return xn((n=Ml(n)).getFullYear()%100,r,2)}function If(n,r){return xn(n.getFullYear()%1e4,r,4)}function Of(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getFullYear()%1e4,r,4)}function Mf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Nl(n,r){return xn(n.getUTCDate(),r,2)}function Nf(n,r){return xn(n.getUTCHours(),r,2)}function Pf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Ff(n,r){return xn(1+Es.count(Xr(n),n),r,3)}function Pl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function Rf(n,r){return Pl(n,r)+"000"}function Bf(n,r){return xn(n.getUTCMonth()+1,r,2)}function Zf(n,r){return xn(n.getUTCMinutes(),r,2)}function Vf(n,r){return xn(n.getUTCSeconds(),r,2)}function Gf(n){var r=n.getUTCDay();return 0===r?7:r}function Uf(n,r){return xn(Ds.count(Xr(n)-1,n),r,2)}function Fl(n){var r=n.getUTCDay();return r>=4||0===r?Wr(n):Wr.ceil(n)}function zf(n,r){return n=Fl(n),xn(Wr.count(Xr(n),n)+(4===Xr(n).getUTCDay()),r,2)}function Hf(n){return n.getUTCDay()}function Yf(n,r){return xn(Ba.count(Xr(n)-1,n),r,2)}function Wf(n,r){return xn(n.getUTCFullYear()%100,r,2)}function Xf(n,r){return xn((n=Fl(n)).getUTCFullYear()%100,r,2)}function $f(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function Qf(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Wr(n):Wr.ceil(n)).getUTCFullYear()%1e4,r,4)}function jf(){return"+0000"}function Rl(){return"%"}function Bl(n){return+n}function Zl(n){return Math.floor(+n/1e3)}!function tm(n){(function jp(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,G=pa(a),tt=fa(a),lt=pa(o),ot=fa(o),wt=pa(v),kt=fa(v),Ft=pa(T),vt=fa(T),Gt=pa(N),Kt=fa(N),Xt={a:function ri(fe){return v[fe.getDay()]},A:function sr(fe){return o[fe.getDay()]},b:function ai(fe){return N[fe.getMonth()]},B:function si(fe){return T[fe.getMonth()]},c:null,d:Il,e:Il,f:yf,g:kf,G:Of,H:_f,I:vf,j:xf,L:Ol,m:bf,M:Tf,p:function Un(fe){return a[+(fe.getHours()>=12)]},q:function zn(fe){return 1+~~(fe.getMonth()/3)},Q:Bl,s:Zl,S:Cf,u:wf,U:Af,V:Sf,w:Ef,W:Df,x:null,X:null,y:Lf,Y:If,Z:Mf,"%":Rl},ge={a:function ga(fe){return v[fe.getUTCDay()]},A:function qr(fe){return o[fe.getUTCDay()]},b:function ta(fe){return N[fe.getUTCMonth()]},B:function ea(fe){return T[fe.getUTCMonth()]},c:null,d:Nl,e:Nl,f:Rf,g:Xf,G:Qf,H:Nf,I:Pf,j:Ff,L:Pl,m:Bf,M:Zf,p:function Si(fe){return a[+(fe.getUTCHours()>=12)]},q:function Ua(fe){return 1+~~(fe.getUTCMonth()/3)},Q:Bl,s:Zl,S:Vf,u:Gf,U:Uf,V:zf,w:Hf,W:Yf,x:null,X:null,y:Wf,Y:$f,Z:jf,"%":Rl},Se={a:function Ln(fe,qe,pn){var ne=wt.exec(qe.slice(pn));return ne?(fe.w=kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},A:function kn(fe,qe,pn){var ne=lt.exec(qe.slice(pn));return ne?(fe.w=ot.get(ne[0].toLowerCase()),pn+ne[0].length):-1},b:function $n(fe,qe,pn){var ne=Gt.exec(qe.slice(pn));return ne?(fe.m=Kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},B:function ei(fe,qe,pn){var ne=Ft.exec(qe.slice(pn));return ne?(fe.m=vt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},c:function ni(fe,qe,pn){return ln(fe,r,qe,pn)},d:Ll,e:Ll,f:pf,g:Dl,G:El,H:kl,I:kl,j:cf,L:df,m:lf,M:uf,p:function yn(fe,qe,pn){var ne=G.exec(qe.slice(pn));return ne?(fe.p=tt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},q:of,Q:mf,s:gf,S:hf,u:ef,U:nf,V:rf,w:tf,W:af,x:function ar(fe,qe,pn){return ln(fe,e,qe,pn)},X:function ii(fe,qe,pn){return ln(fe,i,qe,pn)},y:Dl,Y:El,Z:sf,"%":ff};function de(fe,qe){return function(pn){var Mi,We,Rn,ne=[],Fn=-1,Sn=0,Oi=fe.length;for(pn instanceof Date||(pn=new Date(+pn));++Fn53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Oi=(Sn=Is(da(ne.y,0,1))).getUTCDay(),Sn=Oi>4||0===Oi?Ba.ceil(Sn):Ba(Sn),Sn=Es.offset(Sn,7*(ne.V-1)),ne.y=Sn.getUTCFullYear(),ne.m=Sn.getUTCMonth(),ne.d=Sn.getUTCDate()+(ne.w+6)%7):(Oi=(Sn=ks(da(ne.y,0,1))).getDay(),Sn=Oi>4||0===Oi?Ra.ceil(Sn):Ra(Sn),Sn=Pa.offset(Sn,7*(ne.V-1)),ne.y=Sn.getFullYear(),ne.m=Sn.getMonth(),ne.d=Sn.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Oi="Z"in ne?Is(da(ne.y,0,1)).getUTCDay():ks(da(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Oi+5)%7:ne.w+7*ne.U-(Oi+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,Is(ne)):ks(ne)}}function ln(fe,qe,pn,ne){for(var Mi,We,Fn=0,Sn=qe.length,Oi=pn.length;Fn=Oi)return-1;if(37===(Mi=qe.charCodeAt(Fn++))){if(Mi=qe.charAt(Fn++),!(We=Se[Mi in Sl?qe.charAt(Fn++):Mi])||(ne=We(fe,pn,ne))<0)return-1}else if(Mi!=pn.charCodeAt(ne++))return-1}return ne}return Xt.x=de(e,Xt),Xt.X=de(i,Xt),Xt.c=de(r,Xt),ge.x=de(e,ge),ge.X=de(i,ge),ge.c=de(r,ge),{format:function(fe){var qe=de(fe+="",Xt);return qe.toString=function(){return fe},qe},parse:function(fe){var qe=nn(fe+="",!1);return qe.toString=function(){return fe},qe},utcFormat:function(fe){var qe=de(fe+="",ge);return qe.toString=function(){return fe},qe},utcParse:function(fe){var qe=nn(fe+="",!0);return qe.toString=function(){return fe},qe}}})(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"]}),_s(ul),_s(function em(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const wm=["caretElm"];function Am(n,r){}const Sm=function(n){return{model:n}};function Em(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Am,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,Sm,e.context))}}function Dm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function n_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const G=+new Date;!T&&!1===e.leading&&(T=G);const tt=r-(G-T);return i=this,a=arguments,tt<=0?(clearTimeout(v),v=null,T=G,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,tt)),o}}function i_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:n_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function Jl(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function Kl(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class Ui{static calculateVerticalAlignment(r,e,i){let a=Jl(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=Jl(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=Kl(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=Kl(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=Ui.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=Ui.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=Ui.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=Ui.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(Ui.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let r_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=Ui.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=Ui.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Ui.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(wm,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,Em,2,4,"span",3),t.YNc(5,Dm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,Ie.gn)([i_(100)],n.prototype,"onWindowResize",null),n})(),ql=(()=>{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 s_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new tl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new tl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ms=(()=>{class n extends class a_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=r_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ql))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var jr=(()=>{return(n=jr||(jr={})).popover="popover",n.tooltip="tooltip",jr;var n})(),Tr=(()=>{return(n=Tr||(Tr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Tr;var n})();let Rs,Ps=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=jr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Tr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.focus}get listensForHover(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.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(Ms),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),sc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ql,Ms],imports:[[m.ez]]}),n})();typeof window<"u"?Rs=window:typeof global<"u"&&(Rs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,ac,sc],m.ez,ac,sc]}),n})(),v_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),x_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),y_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),b_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),mc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,mc]]}),n})(),S_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),E_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,fc]]}),n})(),k_=(()=>{class n{constructor(){!function L_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,v_,fc,x_,y_,b_,mc,w_,S_,Zs,E_,D_]}),n})();function I_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function O_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function M_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function N_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function P_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const F_=function(n,r){return[n,r]};function R_(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,O_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,M_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,N_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,P_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,F_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function B_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Z_(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,B_,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 V_(n,r){if(1&n&&(t.YNc(0,R_,18,19,"div",1),t.YNc(1,Z_,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 G_=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=G,this.translate=tt,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=on,this.zoomToFit$=new Ae.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const G of this.facilities)this.serviceService.getAllRichDestinationsForFacility(G.id).subscribe(tt=>{this.connectToService(G,tt),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,G="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:G});const lt={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(lt)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),G=this.localVo+": "+v.shortName,tt=v.name,lt="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#E5FFCC",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),G=this.localGroup+": "+i.name,tt=i.description,lt="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#CCE5FF",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),G=this.localResource+": "+a.name,tt=a.description,lt="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#FFCCCC",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt);const kt={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(kt)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.IQ),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.KK),t.Y36(Y.xk),t.Y36(Y.ff),t.Y36(Y.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,I_,2,0,"div",1),t.YNc(4,V_,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[bp,m.O5,Ps,it.Ou,u.X$]}),n})();var U_=s(25828),gc=s(69024),z_=s(29862),ma=s(74281),H_=s(31359);function Y_(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function W_(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editUser())}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()(),t.TgZ(4,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.anonymizeUser())}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA()()()}}const X_=function(){return{color:"black"}},$_=function(n){return["/admin/users",n]};function Q_(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,W_,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()()()),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,X_))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,$_,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 j_=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=v,this.authResolver=T,this.entityStorageService=N,this.router=G,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 o=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([o]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,be.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(z_.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,be.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["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,Y_,1,0,"mat-spinner",1),t.YNc(3,Q_,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,V.lW,it.Ou,un.gM,h.A,f.W,u.X$,H_.d]}),n})();var J_=s(17755),K_=s(74837),q_=s(85985),tv=s(98973),ev=s(15935);function nv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.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 iv(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const rv=function(){return["id","name","type"]};function av(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,rv))("tableId",e.tableId)}}let sv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=tn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.KG),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,nv,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,iv,1,0,"mat-spinner",3),t.YNc(7,av,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))},dependencies:[m.O5,V.lW,it.Ou,ev.D,Pn.L,u.X$]}),n})();var ov=s(6097),lv=s(97453),Ga=s(54004);function cv(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function uv(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 hv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,uv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let dv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new nt.p4("",[nt.kI.required,nt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new nt.p4("",[nt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KG),t.Y36(Y.Fv),t.Y36(u.sK),t.Y36(B.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,cv,1,0,"mat-spinner",2),t.YNc(5,hv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Ke.XC,Ke.ZL,Zt.ey,ie.TO,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.oH,V.lW,M.uh,M.xY,M.H8,it.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var pv=s(80275);function fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function gv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function _v(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 vv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new R.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=tn.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,be.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(dv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,be.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(B.d6),t.Y36(Y.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(B.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,fv,3,3,"button",2),t.YNc(5,mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,gv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,_v,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Pn.L,pv.j,u.X$]}),n})();var xv=s(80774),yv=s(62109);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","vo","facility","description"]};function Cv(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,Tv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=tn.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(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,it.Ou,En.t,Pn.L,yv.C,u.X$]}),n})();var Av=s(61365),Sv=s(71103),Ev=s(53984);const Dv=["list"];function Lv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function kv(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 Iv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new R.Ov(!0,[]),this.tableId=tn.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,be.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,be.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Sv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,be.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,be.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Av.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Dv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Lv,1,0,"mat-spinner",6),t.YNc(25,kv,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Ev.p,m.uU,u.X$]}),n})();var Ov=s(40009),Mv=s(90719);function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Pv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Rv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const Bv=function(){return{color:"black"}},Zv=function(n){return["/admin/services",n]};function Vv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Pv,3,0,"button",12),t.YNc(12,Fv,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Rv,3,3,"button",17),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,Bv)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,Zv,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 Gv=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt,lt,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=G,this.translate=tt,this.notificator=lt,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,be.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Ov.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,be.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Mv.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,be.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e,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(p.gz),t.Y36(p.F0),t.Y36(Y.WY),t.Y36(Y.KK),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(u.sK),t.Y36(B.V6),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link","queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Nv,1,0,"mat-spinner",1),t.YNc(3,Vv,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))},dependencies:[m.O5,m.PC,p.yS,l.Hw,V.lW,it.Ou,un.gM,Tt.Rr,h.A,f.W,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:[Tn.Ji]}}),n})(),Uv=(()=>{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")},dependencies:[L.L]}),n})();var zv=s(32076),Hv=s(24351),_c=s(54482),Yv=s(25032),Xv=s(86099),$v=s(57359);function jv(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Jv(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 Kv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,Jv,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let t0=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=G,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,Hv.b)(zv.D),(0,Ga.U)(tt=>tt.id),function Wv(n,r){return(0,_c.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),Yv.Z))})}(),(0,Xv.z)(tt=>this.consentHubService.getConsentHubByFacility(tt)),function Qv(n,r){return(0,_c.e)((0,$v.U)(n,r,arguments.length>=2,!1,!0))}((tt,lt)=>tt||lt.enforceConsents,!1),(0,Bn.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ga.U)(tt=>tt.enabled),(0,Bn.O)(!0)),this.attrDefinitions=[],this.selection=new R.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(Y.H8),t.Y36(Y.IQ),t.Y36(Y.WY),t.Y36(B.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,jv,1,0,"mat-spinner",1),t.YNc(5,Kv,7,14,"div",2),t.YNc(6,qv,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,M.uh,M.xY,M.H8,it.Ou,et.w,Pn.L,jn,m.Ov,u.X$]}),n})();function e0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function n0(n,r){1&n&&t._UZ(0,"th",15)}function r0(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 a0(n,r){1&n&&t._UZ(0,"tr",17)}function s0(n,r){1&n&&t._UZ(0,"tr",18)}function o0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,n0,1,0,"th",11),t.YNc(10,r0,2,1,"td",12),t.BQk(),t.YNc(11,a0,1,0,"tr",13),t.YNc(12,s0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let l0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new F.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(B.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,e0,1,0,"mat-spinner",1),t.YNc(5,o0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,u.X$]}),n})();function c0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function u0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function h0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function d0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let p0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new R.Ov(!0,[]),this.attrDefinitions=[],this.tableId=tn.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,be.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(t0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,be.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(l0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,c0,3,3,"button",2),t.YNc(6,u0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,h0,1,0,"mat-spinner",5),t.YNc(9,d0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,jn,En.t,Pn.L,u.X$]}),n})();var f0=s(46597),m0=s(89466),g0=s(70242);function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function v0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function x0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function y0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const b0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function T0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,b0))("tableId",e.tableId)}}let C0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new R.Ov(!0,[]),this.tableId=tn.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,be.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(m0.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(Y.KK),t.Y36(B.V6),t.Y36(u.sK),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,_0,3,4,"button",2),t.YNc(6,v0,3,4,"button",3),t.YNc(7,x0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,y0,1,0,"mat-spinner",6),t.YNc(10,T0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,g0.q,En.t,Pn.L,u.X$]}),n})();function w0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function A0(n,r){1&n&&t._UZ(0,"th",13)}function S0(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 E0(n,r){1&n&&t._UZ(0,"tr",15)}function D0(n,r){1&n&&t._UZ(0,"tr",16)}function L0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,A0,1,0,"th",9),t.YNc(10,S0,2,1,"td",10),t.BQk(),t.YNc(11,E0,1,0,"tr",11),t.YNc(12,D0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function k0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let I0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new F.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(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.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,w0,1,0,"mat-spinner",1),t.YNc(4,L0,13,9,"div",2),t.YNc(5,k0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,u.X$]}),n})();function O0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function M0(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 N0(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 P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,M0,3,3,"mat-error",3),t.YNc(12,N0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let F0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new nt.p4(null,[nt.kI.required,nt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new nt.p4(null,[nt.kI.required,nt.kI.pattern(be.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(Y.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,O0,1,0,"mat-spinner",2),t.YNc(5,P0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,Zt.ey,ie.TO,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.oH,V.lW,M.uh,M.xY,M.H8,xe.gD,it.Ou,un.gM,u.X$]}),n})();var R0=s(23256);function B0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Z0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function V0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function G0(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 U0=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.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,be.kZ)();e.width="400px",e.data={},this.dialog.open(F0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,be.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(I0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.aC),t.Y36(M.uw),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,B0,3,3,"button",2),t.YNc(6,Z0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,V0,1,0,"mat-spinner",5),t.YNc(9,G0,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Pn.L,R0.Q,u.X$]}),n})();var z0=s(74010);function H0(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function Y0(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 W0=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=tn.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(Y.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,H0,1,0,"mat-spinner",3),t.YNc(7,Y0,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,it.Ou,En.t,Pn.L,z0.X,u.X$]}),n})();var vc=s(64080),X0=s(24179),$0=s(62707),Q0=s(19191),j0=s(12651),J0=s(60526);function K0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function q0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function tx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function ex(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const nx=function(){return["id","recent","name","description","expiration","groupStatus"]};function ix(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 t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,nx))}}const rx=function(n,r){return["/organizations",n,"members",r]};function ax(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),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,ix,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,rx,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 sx(n,r){if(1&n&&(t.YNc(0,ex,1,0,"mat-spinner",1),t.YNc(1,ax,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 ox(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 lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function cx(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 ux(n,r){if(1&n&&(t.YNc(0,lx,1,0,"mat-spinner",4),t.YNc(1,cx,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 hx(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 dx(n,r){1&n&&t._UZ(0,"mat-spinner")}function px(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 fx(n,r){if(1&n&&(t.YNc(0,dx,1,0,"mat-spinner",4),t.YNc(1,px,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 mx(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 gx(n,r){1&n&&t._UZ(0,"mat-spinner")}function _x(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 vx(n,r){if(1&n&&(t.YNc(0,gx,1,0,"mat-spinner",4),t.YNc(1,_x,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 xx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,tx,2,3,"ng-template",8),t.YNc(3,sx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,ox,2,3,"ng-template",8),t.YNc(6,ux,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,hx,2,3,"ng-template",8),t.YNc(9,fx,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,mx,2,3,"ng-template",8),t.YNc(12,vx,2,2,"ng-template",9),t.qZA()())}function yx(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 bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[vc.r.MEMBER_DEF_GROUP_EXPIRATION,vc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.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,K0,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,q0,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,xx,13,0,"mat-tab-group",4),t.YNc(7,yx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,it.Ou,et.w,X0.W,$0.M,Q0.Y,j0.t,J0.b,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),xc=(()=>{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 Tx(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 Cx(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 wx(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 Ax(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 Sx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Di.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)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Tx,2,3,"ng-template",4),t.YNc(13,Cx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,wx,2,3,"ng-template",4),t.YNc(16,Ax,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,V.lW,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,M.uh,M.xY,M.H8,u.X$,xc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Ex=s(98739),Dx=s(56451),Lx=s(62383);function kx(n,r){1&n&&(t.TgZ(0,"div",17),t._UZ(1,"mat-spinner",18),t.qZA())}function Ix(n,r){1&n&&(t.TgZ(0,"th",19),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 Ox(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Mx(n,r){1&n&&(t.TgZ(0,"th",19),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 Nx(n,r){if(1&n&&(t.TgZ(0,"td",20),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 Px(n,r){1&n&&(t.TgZ(0,"th",21),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 Fx(n,r){if(1&n&&(t.TgZ(0,"td",22),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 Rx(n,r){1&n&&(t.TgZ(0,"th",21),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 Bx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function Zx(n,r){1&n&&(t.TgZ(0,"th",21),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 Vx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function Gx(n,r){1&n&&t._UZ(0,"th",21)}function Ux(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",20)(1,"button",23),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function zx(n,r){1&n&&t._UZ(0,"tr",24)}function Hx(n,r){1&n&&t._UZ(0,"tr",25)}function Yx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",26),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 Wx=(()=>{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=be.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Dx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Bi.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new B.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,be.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(Sx,i)}exportDisplayedData(e){(0,be.O6)((0,be.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.ly),t.Y36(tn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.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:Ex.ye,useClass:B.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","","data-cy","audit-message-td",4,"matCellDef"],["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",""],["mat-cell","","data-cy","audit-message-td",1,"static-column-size"],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,kx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,Ix,3,3,"th",5),t.YNc(8,Ox,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,Mx,3,3,"th",5),t.YNc(11,Nx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Px,3,3,"th",9),t.YNc(14,Fx,3,3,"td",10),t.BQk(),t.ynx(15,11),t.YNc(16,Rx,3,3,"th",9),t.YNc(17,Bx,2,1,"td",6),t.BQk(),t.ynx(18,12),t.YNc(19,Zx,3,3,"th",9),t.YNc(20,Vx,2,1,"td",6),t.BQk(),t.ynx(21,13),t.YNc(22,Gx,1,0,"th",9),t.YNc(23,Ux,4,3,"td",6),t.BQk(),t.YNc(24,zx,1,0,"tr",14),t.YNc(25,Hx,1,0,"tr",15),t.qZA()()(),t.YNc(26,Yx,3,3,"perun-web-apps-alert",16),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,it.Ou,et.w,sn.l,m.Ov,u.X$,Lx.M,xc]}),n})(),Xx=(()=>{class n{constructor(){this.tableId=tn.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))},dependencies:[Wx,En.t,u.X$]}),n})();var $x=s(44850);let Qx=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[V.lW,M.uh,M.xY,M.H8,$x.d,et.w,u.X$]}),n})();function jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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 Jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),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 Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function qx(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 ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",22),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function iy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function ry(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 ay(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 sy(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,ay,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function oy(n,r){1&n&&t._UZ(0,"tr",26)}function ly(n,r){1&n&&t._UZ(0,"tr",27)}function cy(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 uy(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 hy=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new R.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=be.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new F.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,be.O6)((0,be.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,be.O6)((0,be.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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,be.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,be.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,be.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(Qx,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.UA),t.Y36(M.uw),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,jx,2,3,"th",4),t.YNc(5,Jx,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Kx,3,3,"th",7),t.YNc(8,qx,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ty,3,3,"th",7),t.YNc(11,ey,3,4,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,ny,3,3,"th",7),t.YNc(14,iy,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ry,3,3,"th",7),t.YNc(17,sy,2,1,"td",10),t.BQk(),t.YNc(18,oy,1,0,"tr",13),t.YNc(19,ly,1,0,"tr",14),t.qZA()()(),t.YNc(20,cy,3,3,"perun-web-apps-alert",15),t.YNc(21,uy,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))},dependencies:[m.sg,m.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,Tt.Rr,et.w,sn.l,u.X$,Oe.R]}),n})();function dy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function my(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let gy=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=tn.HE,this.selection=new R.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,be.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.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(Y.WY),t.Y36(B.x4),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dy,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,fy,1,0,"mat-spinner",6),t.YNc(11,my,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,un.gM,hy,et.w,En.t,Pn.L,u.X$]}),n})();var _y=s(57788),Vs=s(71992);const vy=[{path:"",component:C,canActivateChild:[Vs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:Ji,data:{animation:"AdminAttributesPage"}},{path:"users",component:U_.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:U0,data:{animation:"AdminOwnersPage"}},{path:"services",component:xv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:Xx,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ui,children:[{path:"",component:Ti,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:Mn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Ot,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:G_,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:sv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:gy,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:_y.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:j_,canActivateChild:[Vs.a],children:[{path:"",component:J_.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:tv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:K_.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:q_.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:vv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:W0,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:wv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Iv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:ov.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:lv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:f0.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Gv,canActivateChild:[Vs.a],children:[{path:"",component:Uv,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:p0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:C0,data:{animation:"ServiceDestinationsPage"}}]}];let xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(vy),p.Bz]}),n})();var yy=s(14264),by=s(63189),Ty=s(46374);let Cy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Cp,k_,m.ez,xy,yy.m,by.r,Te.ez,Ct.d4,Ty.UsersModule]}),n})()},70242:(w,E,s)=>{"use strict";s.d(E,{q:()=>Qt});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383);function L(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(Zt){t.CHM(dt);const se=t.oxw();return t.KtG(Zt?se.masterToggle():null)}),t.qZA()()}if(2&Nt){const dt=t.oxw();t.xp6(1),t.Q6J("aria-label",dt.checkboxLabel())("checked",dt.selection.hasValue()&&dt.isAllSelected())("indeterminate",dt.selection.hasValue()&&!dt.isAllSelected())}}function I(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(Zt){const ie=t.CHM(dt).$implicit,ue=t.oxw();return t.KtG(Zt?ue.selection.toggle(ie):null)})("click",function(Zt){return Zt.stopPropagation()}),t.qZA()()}if(2&Nt){const dt=ft.$implicit,Ct=t.oxw();t.xp6(1),t.Q6J("aria-label",Ct.checkboxLabel(dt))("checked",Ct.selection.isSelected(dt))}}function R(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function M(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.hij(" ",dt.id," ")}}function F(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function B(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.service.name)}}function Y(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function V(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function it(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,V,3,3,"mat-icon",29),t.qZA()),2&Nt){const dt=ft.$implicit,Ct=t.oxw();t.xp6(1),t.Q6J("ngIf",!Ct.services.has(dt.service.id))}}function et(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function st(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.facility.name)}}function K(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function X(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.destination)}}function W(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.type.toUpperCase())}}function H(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function Q(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function nt(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function q(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,Q,3,3,"mat-icon",31),t.YNc(2,nt,3,3,"mat-icon",31),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Q6J("ngIf",!dt.blocked),t.xp6(1),t.Q6J("ngIf",dt.blocked)}}function U(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function D(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.propagationType)}}function mt(Nt,ft){1&Nt&&t._UZ(0,"tr",33)}function St(Nt,ft){1&Nt&&t._UZ(0,"tr",34)}function Mt(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Et(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let Qt=(()=>{class Nt{constructor(dt,Ct){this.authResolver=dt,this.tableCheckbox=Ct,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(dt){this.sort=dt,this.setDataSource()}static getDataForColumn(dt,Ct){switch(Ct){case"destinationId":return dt.id.toString();case"service":return dt.service.name;case"facility":return dt.facility.name;case"destination":return dt.destination;case"type":return dt.type;case"status":return dt.blocked?"blocked":"allowed";case"propagationType":return dt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(dt=>"destinationId"!==dt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(dt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Nt.getDataForColumn),dt)}exportDisplayedData(dt){const Ct=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=Ct+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ct,Zt),this.displayedColumns,Nt.getDataForColumn),dt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(dt,Ct)=>(0,m.Sd)(dt,Ct,this.displayedColumns,Nt.getDataForColumn),this.dataSource.sortData=(dt,Ct)=>(0,m.pR)(dt,Ct,Nt.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(dt){return dt?`${this.selection.isSelected(dt)?"deselect":"select"} row ${dt.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Nt.\u0275fac=function(dt){return new(dt||Nt)(t.Y36(p.x4),t.Y36(p.UA))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(dt,Ct){if(1&dt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&dt){let Zt;t.iGM(Zt=t.CRH())&&(Ct.child=Zt.first),t.iGM(Zt=t.CRH())&&(Ct.matSort=Zt.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","exportDisplayedData","exportAllData"],["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(dt,Ct){1&dt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(se){return Ct.exportDisplayedData(se)})("exportAllData",function(se){return Ct.exportAllData(se)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,I,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,R,3,3,"th",7),t.YNc(8,M,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,B,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Y,1,0,"th",12),t.YNc(14,it,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,et,3,3,"th",7),t.YNc(17,st,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,K,3,3,"th",7),t.YNc(20,X,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,W,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,q,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,U,3,3,"th",7),t.YNc(29,D,2,1,"td",10),t.BQk(),t.YNc(30,mt,1,0,"tr",18),t.YNc(31,St,1,0,"tr",19),t.qZA()()(),t.YNc(32,Mt,3,3,"perun-web-apps-alert",20),t.YNc(33,Et,3,3,"perun-web-apps-alert",20)),2&dt&&(t.Q6J("hidden",0===Ct.dataSource.filteredData.length||0===Ct.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Ct.pageSizeOptions)("dataLength",Ct.dataSource.filteredData.length)("tableId",Ct.tableId),t.xp6(1),t.Q6J("dataSource",Ct.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Ct.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Ct.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Ct.dataSource.filteredData.length&&0!==Ct.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Ct.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Nt})()},89466:(w,E,s)=>{"use strict";s.d(E,{u:()=>I});var c=s(32105),x=s(65412),_=s(30671),m=s(32080),p=s(94650),t=s(89383),d=s(36895),l=s(4859),h=s(51572),f=s(98380),u=s(70242);function g(R,M){1&R&&p._UZ(0,"mat-spinner",6)}function C(R,M){if(1&R&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&R){const F=p.oxw(2);p.Q6J("destinations",F.destinations)("displayedColumns",F.displayedColumns)}}function L(R,M){if(1&R&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&R){const F=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!F.loading)}}let I=(()=>{class R{constructor(F,B,Y,V,it){this.dialogRef=F,this.data=B,this.notificator=Y,this.translate=V,this.serviceManager=it,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const F=this.destinations.pop();this.serviceManager.removeDestination(F.service.id,F.facility.id,F.destination,F.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return R.\u0275fac=function(F){return new(F||R)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(t.sK),p.Y36(c.KK))},R.\u0275cmp=p.Xpm({type:R,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(F,B){1&F&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return B.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return B.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&F&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(B.theme),p.xp6(1),p.Q6J("ngIf",B.loading),p.xp6(1),p.Q6J("ngIf",!B.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",B.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[d.O5,l.lW,x.uh,x.xY,x.H8,h.Ou,f.w,u.q,t.X$]}),R})()},23256:(w,E,s)=>{"use strict";s.d(E,{Q:()=>X});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383);function g(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(nt){t.CHM(H);const q=t.oxw();return t.KtG(nt?q.masterToggle():null)}),t.qZA()()}if(2&W){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(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(nt){const U=t.CHM(H).$implicit,D=t.oxw();return t.KtG(nt?D.selection.toggle(U):null)})("click",function(nt){return nt.stopPropagation()}),t.qZA()()}if(2&W){const H=at.$implicit,Q=t.oxw();t.xp6(1),t.Q6J("aria-label",Q.checkboxLabel(H))("checked",Q.selection.isSelected(H))}}function L(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function I(W,at){if(1&W&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function R(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function M(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function F(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function B(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function Y(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function V(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function it(W,at){1&W&&t._UZ(0,"tr",23)}function et(W,at){1&W&&t._UZ(0,"tr",24)}function st(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function K(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let X=(()=>{class W{constructor(H,Q){this.authResolver=H,this.tableCheckbox=Q,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,Q){switch(Q){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()}exportAllData(H){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),H)}exportDisplayedData(H){const Q=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,nt=Q+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Q,nt),this.displayedColumns,W.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,Q)=>(0,m.Sd)(H,Q,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(H,Q)=>(0,m.pR)(H,Q,W.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 _.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 W.\u0275fac=function(H){return new(H||W)(t.Y36(p.x4),t.Y36(p.UA))},W.\u0275cmp=t.Xpm({type:W,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,Q){if(1&H&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&H){let nt;t.iGM(nt=t.CRH())&&(Q.child=nt.first),t.iGM(nt=t.CRH())&&(Q.matSort=nt.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","exportDisplayedData","exportAllData"],["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,Q){1&H&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(q){return Q.exportDisplayedData(q)})("exportAllData",function(q){return Q.exportAllData(q)}),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,L,3,3,"th",7),t.YNc(8,I,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,M,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,F,3,3,"th",7),t.YNc(14,B,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Y,3,3,"th",7),t.YNc(17,V,2,1,"td",10),t.BQk(),t.YNc(18,it,1,0,"tr",13),t.YNc(19,et,1,0,"tr",14),t.qZA()()(),t.YNc(20,st,3,3,"perun-web-apps-alert",15),t.YNc(21,K,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===Q.owners.length||0===Q.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",Q.tableId)("dataLength",Q.dataSource.filteredData.length)("pageSizeOptions",Q.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",Q.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",Q.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Q.displayedColumns),t.xp6(1),t.Q6J("ngIf",!Q.owners.length),t.xp6(1),t.Q6J("ngIf",!Q.dataSource.filteredData.length&&Q.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$]}),W})()},16087:(w,E,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,E,s)=>{"use strict";s.d(E,{B8:()=>et,Il:()=>x,J5:()=>m,SU:()=>it,Ss:()=>st,Ym:()=>Q,ZP:()=>B,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function R(){return this.rgb().formatHex()}function F(){return this.rgb().formatRgb()}function B(U){var D,mt;return U=(U+"").trim().toLowerCase(),(D=l.exec(U))?(mt=D[1].length,D=parseInt(D[1],16),6===mt?Y(D):3===mt?new st(D>>8&15|D>>4&240,D>>4&15|240&D,(15&D)<<4|15&D,1):8===mt?V(D>>24&255,D>>16&255,D>>8&255,(255&D)/255):4===mt?V(D>>12&15|D>>8&240,D>>8&15|D>>4&240,D>>4&15|240&D,((15&D)<<4|15&D)/255):null):(D=h.exec(U))?new st(D[1],D[2],D[3],1):(D=f.exec(U))?new st(255*D[1]/100,255*D[2]/100,255*D[3]/100,1):(D=u.exec(U))?V(D[1],D[2],D[3],D[4]):(D=g.exec(U))?V(255*D[1]/100,255*D[2]/100,255*D[3]/100,D[4]):(D=C.exec(U))?at(D[1],D[2]/100,D[3]/100,1):(D=L.exec(U))?at(D[1],D[2]/100,D[3]/100,D[4]):I.hasOwnProperty(U)?Y(I[U]):"transparent"===U?new st(NaN,NaN,NaN,0):null}function Y(U){return new st(U>>16&255,U>>8&255,255&U,1)}function V(U,D,mt,St){return St<=0&&(U=D=mt=NaN),new st(U,D,mt,St)}function it(U){return U instanceof x||(U=B(U)),U?new st((U=U.rgb()).r,U.g,U.b,U.opacity):new st}function et(U,D,mt,St){return 1===arguments.length?it(U):new st(U,D,mt,St??1)}function st(U,D,mt,St){this.r=+U,this.g=+D,this.b=+mt,this.opacity=+St}function K(){return"#"+W(this.r)+W(this.g)+W(this.b)}function X(){var U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"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===U?")":", "+U+")")}function W(U){return((U=Math.max(0,Math.min(255,Math.round(U)||0)))<16?"0":"")+U.toString(16)}function at(U,D,mt,St){return St<=0?U=D=mt=NaN:mt<=0||mt>=1?U=D=NaN:D<=0&&(U=NaN),new nt(U,D,mt,St)}function H(U){if(U instanceof nt)return new nt(U.h,U.s,U.l,U.opacity);if(U instanceof x||(U=B(U)),!U)return new nt;if(U instanceof nt)return U;var D=(U=U.rgb()).r/255,mt=U.g/255,St=U.b/255,Mt=Math.min(D,mt,St),Et=Math.max(D,mt,St),Qt=NaN,Nt=Et-Mt,ft=(Et+Mt)/2;return Nt?(Qt=D===Et?(mt-St)/Nt+6*(mt0&&ft<1?0:Qt,new nt(Qt,Nt,ft,U.opacity)}function Q(U,D,mt,St){return 1===arguments.length?H(U):new nt(U,D,mt,St??1)}function nt(U,D,mt,St){this.h=+U,this.s=+D,this.l=+mt,this.opacity=+St}function q(U,D,mt){return 255*(U<60?D+(mt-D)*U/60:U<180?mt:U<240?D+(mt-D)*(240-U)/60:D)}(0,c.Z)(x,B,{copy:function(U){return Object.assign(new this.constructor,this,U)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHsl:function M(){return H(this).formatHsl()},formatRgb:F,toString:F}),(0,c.Z)(st,et,(0,c.l)(x,{brighter:function(U){return U=null==U?m:Math.pow(m,U),new st(this.r*U,this.g*U,this.b*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new st(this.r*U,this.g*U,this.b*U,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:K,formatHex:K,formatRgb:X,toString:X})),(0,c.Z)(nt,Q,(0,c.l)(x,{brighter:function(U){return U=null==U?m:Math.pow(m,U),new nt(this.h,this.s,this.l*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new nt(this.h,this.s,this.l*U,this.opacity)},rgb:function(){var U=this.h%360+360*(this.h<0),D=isNaN(U)||isNaN(this.s)?0:this.s,mt=this.l,St=mt+(mt<.5?mt:1-mt)*D,Mt=2*mt-St;return new st(q(U>=240?U-240:U+120,Mt,St),q(U,Mt,St),q(U<120?U+240:U-120,Mt,St),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 U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===U?")":", "+U+")")}}))},68884:(w,E,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(E,{Z:()=>c,l:()=>x})},25922:(w,E,s)=>{"use strict";s.d(E,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(E,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,E,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(E,{tw:()=>_})},22910:(w,E,s)=>{"use strict";s.d(E,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,E,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(E,{V:()=>x,Z:()=>c})},32517:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,E,s)=>{"use strict";s.r(E),s.d(E,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,E,s)=>{"use strict";s.d(E,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1];return B<0?"0."+new Array(-B).join("0")+F:F.length>B+1?F.slice(0,B+1)+"."+F.slice(B+1):F+new Array(B-F.length+2).join("0")}const f={"%":(I,R)=>(100*I).toFixed(R),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,R)=>I.toExponential(R),f:(I,R)=>I.toFixed(R),g:(I,R)=>I.toPrecision(R),o:I=>Math.round(I).toString(8),p:(I,R)=>h(100*I,R),r:h,s:function l(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1],Y=B-(d=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,V=F.length;return Y===V?F:Y>V?F+new Array(Y-V+1).join("0"):Y>0?F.slice(0,Y)+"."+F.slice(Y):"0."+new Array(1-Y).join("0")+(0,t.V)(I,Math.max(0,R+Y-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var R=void 0===I.grouping||void 0===I.thousands?u:function x(I,R){return function(M,F){for(var B=M.length,Y=[],V=0,it=I[0],et=0;B>0&&it>0&&(et+it+1>F&&(it=Math.max(1,F-et)),Y.push(M.substring(B-=it,B+it)),!((et+=it+1)>F));)it=I[V=(V+1)%I.length];return Y.reverse().join(R)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",F=void 0===I.currency?"":I.currency[1]+"",B=void 0===I.decimal?".":I.decimal+"",Y=void 0===I.numerals?u:function _(I){return function(R){return R.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),V=void 0===I.percent?"%":I.percent+"",it=void 0===I.minus?"\u2212":I.minus+"",et=void 0===I.nan?"NaN":I.nan+"";function st(X){var W=(X=(0,m.Z)(X)).fill,at=X.align,H=X.sign,Q=X.symbol,nt=X.zero,q=X.width,U=X.comma,D=X.precision,mt=X.trim,St=X.type;"n"===St?(U=!0,St="g"):f[St]||(void 0===D&&(D=12),mt=!0,St="g"),(nt||"0"===W&&"="===at)&&(nt=!0,W="0",at="=");var Mt="$"===Q?M:"#"===Q&&/[boxX]/.test(St)?"0"+St.toLowerCase():"",Et="$"===Q?F:/[%p]/.test(St)?V:"",Qt=f[St],Nt=/[defgprs%]/.test(St);function ft(dt){var se,ie,ue,Ct=Mt,Zt=Et;if("c"===St)Zt=Qt(dt)+Zt,dt="";else{var xe=(dt=+dt)<0||1/dt<0;if(dt=isNaN(dt)?et:Qt(Math.abs(dt),D),mt&&(dt=function p(I){t:for(var B,R=I.length,M=1,F=-1;M0&&(F=0)}return F>0?I.slice(0,F)+I.slice(B+1):I}(dt)),xe&&0==+dt&&"+"!==H&&(xe=!1),Ct=(xe?"("===H?H:it:"-"===H||"("===H?"":H)+Ct,Zt=("s"===St?C[8+d/3]:"")+Zt+(xe&&"("===H?")":""),Nt)for(se=-1,ie=dt.length;++se(ue=dt.charCodeAt(se))||ue>57){Zt=(46===ue?B+dt.slice(se+1):dt.slice(se))+Zt,dt=dt.slice(0,se);break}}U&&!nt&&(dt=R(dt,1/0));var Ue=Ct.length+dt.length+Zt.length,Pe=Ue>1)+Ct+dt+Zt+Pe.slice(Ue);break;default:dt=Pe+Ct+dt+Zt}return Y(dt)}return D=void 0===D?6:/[gprs]/.test(St)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),ft.toString=function(){return X+""},ft}return{format:st,formatPrefix:function K(X,W){var at=st(((X=(0,m.Z)(X)).type="f",X)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(W)/3))),Q=Math.pow(10,-H),nt=C[8+H/3];return function(q){return at(Q*q)+nt}}}}},78986:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,E,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(J){if(J&&J.__esModule)return J;var pt=Object.create(null);return J&&Object.keys(J).forEach(function(gt){if("default"!==gt){var _t=Object.getOwnPropertyDescriptor(J,gt);Object.defineProperty(pt,gt,_t.get?_t:{enumerable:!0,get:function(){return J[gt]}})}}),pt.default=J,Object.freeze(pt)}var Dt,g=u(x);function C(J,pt,gt){return pt in J?Object.defineProperty(J,pt,{value:gt,enumerable:!0,configurable:!0,writable:!0}):J[pt]=gt,J}function L(J){return function I(J){if(Array.isArray(J))return F(J)}(J)||function R(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||function M(J,pt){if(J){if("string"==typeof J)return F(J,pt);var gt=Object.prototype.toString.call(J).slice(8,-1);if("Object"===gt&&J.constructor&&(gt=J.constructor.name),"Map"===gt||"Set"===gt)return Array.from(J);if("Arguments"===gt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(gt))return F(J,pt)}}(J)||function B(){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 F(J,pt){(null==pt||pt>J.length)&&(pt=J.length);for(var gt=0,_t=new Array(pt);gt1&&void 0!==arguments[1]?arguments[1]:0,gt=g.select(this),_t=J.attributes,zt=gt.node().attributes;if(zt)for(var Wt=0;Wt0?Cn.children[0].text:"")}null==ce.key&&(zt&&("ellipse"==_n||"polygon"==_n)&&(_n="path"),ce.key=_n+"-"+Qe)}function Oe(ce,Qe){ce.id=(Qe?Qe.id+".":"")+ce.key}function Be(ce){O[ce.id]=ce}function le(ce,Qe){zt&&ce.id in re&&("polygon"==Qe.tag||"ellipse"==Qe.tag||"path"==Qe.tag)&&(Qe.tag!=ce.tag||"polygon"==ce.tag)&&("path"!=Qe.tag&&(ce.alternativeOld=Pe(Qe,ce)),"path"!=ce.tag&&(ce.alternativeNew=Pe(ce,Qe)))}function he(ce,Qe){if(_t&&Qe&&("path"==Qe.tag||ce.alternativeOld&&"path"==ce.alternativeOld.tag)){var _n=(ce.alternativeNew||ce).attributes.d;if(ce.alternativeOld)var Cn=et(ce.alternativeOld);else Cn=et(Qe);(ce.alternativeOld||(ce.alternativeOld={})).points=function ft(J,pt,gt,_t){for(var zt=J,Wt=zt.cloneNode(),Lt=zt.getTotalLength(),ae=(Wt.setAttribute("d",pt),Wt).getTotalLength(),O=[0],re=0,Ce=_t?gt:gt/Math.max(Lt,ae);(re+=Ce)<1;)O.push(re);return O.push(1),O.map(function(je){var Oe=zt.getPointAtLength(je*Lt),Be=Wt.getPointAtLength(je*ae);return[[Oe.x,Oe.y],[Be.x,Be.y]]})}(Cn,_n,Wt,Lt)}}function Fe(ce){var _n=arguments.length>2?arguments[2]:void 0;je(ce,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Oe(ce,_n);var Qn=re[ce.id];Be(ce),le(ce,Qn),he(ce,Qn);var li={};ce.children.forEach(function(jn){var En=jn.tag;("ellipse"==En||"polygon"==En)&&(En="path"),null==li[En]&&(li[En]=0),Fe(jn,li[En]++,ce)})}function Je(ce){(function fn(ce){if(ae&&ce.parent&&"node"==ce.parent.attributes.class&&"title"==ce.tag){if(ce.children.length>0)var Cn=ce.children[0].text;else Cn="";Ce[Cn]=ce.parent}})(ce),function mn(ce){var _n=ce.tag;if(ae&&!re[ce.id]&&ce.parent&&Zt(ce)&&("path"==_n||"polygon"==_n)){if("polygon"==_n){var Qn=ce.parent.children.find(function(Mn){return"path"==Mn.tag});Qn&&(ce.totalLength=Qn.totalLength)}var jn=function ie(J){return function se(J){return"edge"==J.parent.attributes.class?J.parent:J.parent.parent.parent}(J).children.find(function(pt){return"title"==pt.tag})}(ce).children[0],En=jn.text.split("->");2!=En.length&&(En=jn.text.split("--"));var Pn=En[0],Jn=Ce[Pn],bi=ye[Pn];if(bi){if((hn=Jn.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0){var gn=Jn.children[hn].children.findIndex(function(Mn,Ti){return"a"==Mn.tag});Jn=Jn.children[hn].children[gn]}(hn=bi.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0&&(gn=bi.children[hn].children.findIndex(function(Ti,cn){return"a"==Ti.tag}),bi=bi.children[hn].children[gn]);for(var ci=Jn.children,hn=0;hn0&&this._queue.shift().call(this)}function Pi(J,pt,gt,_t){var zt=[J*gt-(pt=-pt)*(_t=-_t),J*_t+pt*gt];return[J=zt[0],pt=-(pt=zt[1])]}function be(J,pt,gt,_t,zt,Wt,Lt){var O=V(Tn.call(this,Wt));J.data([O]),at.call(J.node(),O),tn(J,pt,gt,_t,zt,Wt,Lt)}function tn(J,pt,gt,_t,zt,Wt,Lt){var ae=Lt.shortening||0,ye=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],je=_t-pt,Oe=zt-gt,Be=Math.sqrt(je*je+Oe*Oe);if(0==Be)var le=1,he=0;else le=je/Be,he=Oe/Be;if(_t=pt+(Be-ae-10-.1)*le,zt=gt+(Be-ae-10-.1)*he,Wt.URL||Wt.tooltip)var Fe=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),mn=Fe.selectWithoutDataPropagation("polygon");else fn=J.selectWithoutDataPropagation("path"),mn=J.selectWithoutDataPropagation("polygon");var Je=f.path();Je.moveTo(pt,gt),Je.lineTo(_t,zt),fn.attr("d",Je),_t=pt+(Be-ae-10)*le,zt=gt+(Be-ae-10)*he;for(var $e=0;$e b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(Lt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function In(J,pt,gt,_t,zt,Wt){var ae=V($.call(this,_t,zt));return J.data([ae]),at.call(J.node(),ae),Te(J,pt,gt,zt),this}function Te(J,pt,gt,_t,zt){if(_t.URL||_t.tooltip)var Wt=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Wt=J;var Lt=Wt.selectAll("ellipse,polygon,path,polyline"),ae=J.selectWithoutDataPropagation("text");if(0!=Lt.size()){var O=Lt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=ae.size()&&(O={x:+ae.attr("x"),y:+ae.attr("y"),width:0,height:0,cx:+ae.attr("x"),cy:+ae.attr("y")});return Lt.each(function(re,Ce){var ye=g.select(this);if(ye.attr("cx"))ye.attr("cx",Q(pt)).attr("cy",Q(gt));else if(ye.attr("points")){var je=ye.attr("points").trim();ye.attr("points",function It(Wt,pt,gt){var zt,_t=(zt=Wt.split(" ")).map(function(Lt){return Lt.split(",")});return _t=zt.map(function(Lt){return[Q(+pt+ +Lt.split(",")[0]),Q(+gt+ +Lt.split(",")[1])]}),(zt=_t.map(function(Lt){return Lt.join(",")})).join(" ")}(je,pt-O.cx,gt-O.cy))}else{var Oe=ye.attr("d");ye.attr("d",function $t(J,pt,gt){(Wt=J.split(/[A-Z ]/)).shift();var _t=J.split(/[^[A-Z ]+/),Wt=(Wt.map(function(Lt){return Lt.split(",")}),Wt.map(function(Lt){return[Q(+pt+ +Lt.split(",")[0]),Q(+gt+ +Lt.split(",")[1])]}).map(function(Lt){return Lt.join(",")}));return _t.reduce(function(Lt,ae,O){return Lt.concat(ae,Wt[O])},[]).join("")}(Oe,pt-O.cx,gt-O.cy))}}),0!=ae.size()&&ae.attr("x",Q(+ae.attr("x")+pt-O.cx)).attr("y",Q(+ae.attr("y")+gt-O.cy)),this}function Hn(){if(!this._drawnNode)return this;var J=this._drawnNode.g;return J.empty()||J.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function $(J,pt){for(var gt="",_t=0,zt=Object.keys(pt);_t"u"&&(Lt=!1),typeof SharedWorker>"u"&&(ae=!1),Lt||ae){var re=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==re.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1):(this._vizURL=re.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1))}if(ae){var Ce="data:application/javascript;base64,"+btoa(ct.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Ce),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(Lt){var ye=new Blob([ct.toString()+"("+A.toString()+")()"]),je=window.URL.createObjectURL(ye);this._worker=new Worker(je),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Oe){gt._graphvizVersion=Oe}.bind(this));this._selection=J,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Vt.call(this),J.node().__graphviz__=this}function Ut(J,pt){return g.select(J).graphviz(pt)}Pt.prototype=Ut.prototype=(C(Dt={constructor:Pt,engine:function oe(J){return this._options.engine=J,this},addImage:function pe(J,pt,gt){return this._images.push({path:J,width:pt,height:gt}),this},keyMode:function qt(J){if(!this._keyModes.has(J))throw Error("Illegal keyMode: "+J);if(J!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=J,this},fade:function Ve(J){return this._options.fade=J,this},tweenPaths:function Xe(J){return this._options.tweenPaths=J,this},tweenShapes:function bn(J){return this._options.tweenShapes=J,J&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(J){return this._options.convertEqualSidedPolygons=J,this},tweenPrecision:function Ni(J){return this._options.tweenPrecision=J,this},growEnteringEdges:function fi(J){return this._options.growEnteringEdges=J,this},zoom:function nt(J){return this._options.zoom=J,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function mt(J){var pt=this._zoomSelection;return J&&(pt=pt.transition(J)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function Et(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function St(J){return this._options.zoomScaleExtent=J,this},zoomTranslateExtent:function Mt(J){return this._options.zoomTranslateExtent=J,this},render:function ue(J){return this._busy?(this._queue.push(this.render.bind(this,J)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),xe.call(this,J)}.bind(this),0):xe.call(this,J),this)},layout:function me(J,pt,gt,_t){if(this._worker)Jt.call(this,{type:"layout",dot:J,engine:pt,options:gt},function(Wt){_t.call(this,Wt.data)});else try{var zt=this.layoutSync(J,"svg",pt,gt);_t.call(this,{type:"done",svg:zt})}catch(Wt){_t.call(this,{type:"error",error:Wt.message})}},dot:function ve(J,pt){var gt=this,_t=this._options.engine,zt=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(J,_t,{images:zt},function(Lt){switch(Lt.type){case"error":if(!gt._onerror)throw Lt.error.message;gt._onerror(Lt.error);break;case"done":Ee.call(this,Lt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,J,pt),this)},data:function dt(){return this._data||null},renderDot:function ke(J,pt){var gt=this;return this.dot(J,function _t(){gt.render(pt)}),this},transition:function we(J){return J instanceof Function?this._transitionFactory=J:this._transition=m.transition(J),this},active:function ze(J){var gt=this._selection.selectWithoutDataPropagation("svg");return 0!=gt.size()?m.active(gt.node(),J):null},options:function Ge(J){if(typeof J>"u")return Object.assign({},this._options);for(var pt=0,gt=Object.keys(J);pt2")(je)+" ",he+=Oe+" ".repeat(Wt-Oe.length),he+=h.format(" >5")(Be-gt)+" ","initEnd"!=Oe&&(he+=h.format(" >5")(Be-_t.start[le])),"dataProcessEnd"==Oe&&(he+=" prepare "+h.format(" >5")(Be-_t.layoutEnd[le])),"renderEnd"==Oe&&O._transition&&(he+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-_t.renderStart[le])),re=O._transition.delay(),Ce=O._transition.duration()),"transitionStart"==Oe){var Fe=Be-_t.renderStart[le];he+=" transition delay "+h.format(" >5")(Be-_t.renderStart[le]),he+=" expected "+h.format(" >5")(re),he+=" diff "+h.format(" >5")(Fe-re)}if("transitionEnd"==Oe){var fn=Be-_t.transitionStart[le];he+=" transition duration "+h.format(" >5")(fn),he+=" expected "+h.format(" >5")(Ce),he+=" diff "+h.format(" >5")(fn-Ce)}console.log(he),gt=Be}:null)},ae=0;ae5&&void 0!==arguments[5]?arguments[5]:{};if((zt=Object.assign({},zt)).style&&zt.style.includes("invis"))var Lt=g.select(null);else{var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ye=V(Tn.call(this,zt));Lt=re.append("g").data([ye]),at.call(Lt.node(),ye),be.call(this,Lt,J,pt,gt,_t,zt,Wt)}return this._drawnEdge={g:Lt,x1:J,y1:pt,x2:gt,y2:_t,attributes:zt},this},updateDrawnEdge:function Qi(J,pt,gt,_t){var zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Lt=this._drawnEdge.g;return zt=Object.assign(this._drawnEdge.attributes,zt),this._drawnEdge.x1=J,this._drawnEdge.y1=pt,this._drawnEdge.x2=gt,this._drawnEdge.y2=_t,!Lt.empty()||zt.style&&zt.style.includes("invis")||(Lt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Lt),Lt.empty()||be.call(this,Lt,J,pt,gt,_t,zt,Wt),this},moveDrawnEdgeEndPoint:function yi(J,pt){var gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var _t=this._drawnEdge.g,zt=this._drawnEdge.x1,Wt=this._drawnEdge.y1,Lt=this._drawnEdge.attributes;return this._drawnEdge.x2=J,this._drawnEdge.y2=pt,tn(_t,zt,Wt,J,pt,Lt,gt),this},insertDrawnEdge:function On(J){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(J);var Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Lt=Wt.datum(),ae=this._extractData(pt,Lt.children.length,Wt.datum());return Lt.children.push(ae),X(pt,ae),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawNode",function Bn(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((_t=Object.assign({},_t)).style&&_t.style.includes("invis"))var Wt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=V($.call(this,gt,_t));Wt=O.append("g").data([Ce]),at.call(Wt.node(),Ce),In.call(this,Wt,J,pt,gt,_t,zt)}return this._drawnNode={g:Wt,nodeId:gt,x:J,y:pt,attributes:_t},this}),C(Dt,"updateDrawnNode",function Di(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Wt=this._drawnNode.g;return null==gt&&(gt=this._drawnNode.nodeId),_t=Object.assign(this._drawnNode.attributes,_t),this._drawnNode.nodeId=gt,this._drawnNode.x=J,this._drawnNode.y=pt,!Wt.empty()||_t.style&&_t.style.includes("invis")||(Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Wt),Wt.empty()||In.call(this,Wt,J,pt,gt,_t,zt),this}),C(Dt,"moveDrawnNode",function Fi(J,pt){if(!this._drawnNode)throw Error("No node has been drawn");var gt=this._drawnNode.g,_t=this._drawnNode.attributes;return this._drawnNode.x=J,this._drawnNode.y=pt,gt.empty()||Te(gt,J,pt,_t),this}),C(Dt,"insertDrawnNode",function sn(J){if(!this._drawnNode)throw Error("No node has been drawn");null==J&&(J=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var gt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(J),gt.URL||gt.tooltip){var Wt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Wt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Lt=Wt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Lt=pt.selectWithoutDataPropagation("text");Lt.text(gt.label||J);var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=re.datum(),ye=this._extractData(pt,Ce.children.length,re.datum());return Ce.children.push(ye),X(pt,ye),this._drawnNode=null,this}),C(Dt,"removeDrawnNode",Hn),C(Dt,"removeDrawnNode",Hn),C(Dt,"drawnNodeSelection",z),C(Dt,"drawnNodeSelection",z),C(Dt,"graphvizVersion",function Ue(){return this._graphvizVersion}),Dt),x.selection.prototype.graphviz=function jt(J){var pt=this.node().__graphviz__;return pt?(pt.options(J),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,J),pt},x.selection.prototype.selectWithoutDataPropagation=function Ht(J){return g.select(this.size()>0?this.node().querySelector(J):null)},c.graphviz=Ut,Object.defineProperty(c,"__esModule",{value:!0})}(E,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,E,s)=>{"use strict";s.r(E),s.d(E,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(E),s.d(E,{interval:()=>it,now:()=>g,timeout:()=>V,timer:()=>I,timerFlush:()=>R});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(et){setTimeout(et,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(et,st,K){var X=new L;return X.restart(et,st,K),X}function R(){g(),++c;for(var st,et=p;et;)(st=l-et._time)>=0&&et._call.call(null,st),et=et._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var et,K,st=p,X=1/0;st;)st._call?(X>st._time&&(X=st._time),et=st,st=st._next):(K=st._next,st._next=null,st=et?et._next=K:p=K);t=et,Y(X)}(),l=0}}function F(){var et=f.now(),st=et-d;st>1e3&&(h-=st,d=et)}function Y(et){c||(x&&(x=clearTimeout(x)),et-l>24?(et<1/0&&(x=setTimeout(M,et-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}function V(et,st,K){var X=new L;return X.restart(W=>{X.stop(),et(W+st)},st=null==st?0:+st,K),X}function it(et,st,K){var X=new L,W=st;return null==st?(X.restart(et,st,K),X):(X._restart=X.restart,X.restart=function(at,H,Q){H=+H,Q=null==Q?g():+Q,X._restart(function nt(q){q+=W,X._restart(nt,W+=H,Q),at(q)},H,Q)},X.restart(et,st,K),X)}L.prototype=I.prototype={constructor:L,restart:function(et,st,K){if("function"!=typeof et)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=et,this._time=K,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},90268:(w,E,s)=>{"use strict";s.d(E,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,E,s)=>{"use strict";s.d(E,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,E,s)=>{"use strict";s.d(E,{Z:()=>c});const c=x=>()=>x},15629:(w,E,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(E,{Z:()=>c})},46176:(w,E,s)=>{"use strict";s.r(E),s.d(E,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>ue,interpolateHclLong:()=>xe,interpolateHsl:()=>B,interpolateHslLong:()=>Y,interpolateHue:()=>l,interpolateLab:()=>se,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>R.ZP,interpolateRgbBasis:()=>R.hD,interpolateRgbBasisClosed:()=>R.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>_e,quantize:()=>un});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Yt=Tt.length;return function(oe){return Tt[Math.max(0,Math.min(Yt-1,Math.floor(oe*Yt)))]}}var d=s(35147);function l(Tt,Yt){var oe=(0,d.wx)(+Tt,+Yt);return function(pe){var qt=oe(pe);return qt-360*Math.floor(qt/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),R=s(86811),M=s(52786);function F(Tt){return function(Yt,oe){var pe=Tt((Yt=(0,M.Ym)(Yt)).h,(oe=(0,M.Ym)(oe)).h),qt=(0,d.ZP)(Yt.s,oe.s),Ve=(0,d.ZP)(Yt.l,oe.l),Xe=(0,d.ZP)(Yt.opacity,oe.opacity);return function(bn){return Yt.h=pe(bn),Yt.s=qt(bn),Yt.l=Ve(bn),Yt.opacity=Xe(bn),Yt+""}}}const B=F(d.wx);var Y=F(d.ZP),V=s(68884);const it=Math.PI/180,et=180/Math.PI,K=.96422,W=.82521,at=4/29,H=6/29,Q=3*H*H;function q(Tt){if(Tt instanceof mt)return new mt(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Ct)return Zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ve,Xe,Yt=Qt(Tt.r),oe=Qt(Tt.g),pe=Qt(Tt.b),qt=St((.2225045*Yt+.7168786*oe+.0606169*pe)/1);return Yt===oe&&oe===pe?Ve=Xe=qt:(Ve=St((.4360747*Yt+.3850649*oe+.1430804*pe)/K),Xe=St((.0139322*Yt+.0971045*oe+.7141733*pe)/W)),new mt(116*qt-16,500*(Ve-qt),200*(qt-Xe),Tt.opacity)}function D(Tt,Yt,oe,pe){return 1===arguments.length?q(Tt):new mt(Tt,Yt,oe,pe??1)}function mt(Tt,Yt,oe,pe){this.l=+Tt,this.a=+Yt,this.b=+oe,this.opacity=+pe}function St(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/Q+at}function Mt(Tt){return Tt>H?Tt*Tt*Tt:Q*(Tt-at)}function Et(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function Nt(Tt){if(Tt instanceof Ct)return new Ct(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof mt||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Ct(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(E,{Z:()=>c})},62681:(w,E,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,E,s)=>{"use strict";s.d(E,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),R=u(C.g,L.g),M=u(C.b,L.b),F=(0,m.ZP)(C.opacity,L.opacity);return function(B){return C.r=I(B),C.g=R(B),C.b=M(B),C.opacity=F(B),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,R,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(E,{Z:()=>c})},23096:(w,E,s)=>{"use strict";s.d(E,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(E,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,R){var M,F,B;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(B=u*C+g*L)&&(C-=u*B,L-=g*B),(F=Math.sqrt(C*C+L*L))&&(C/=F,L/=F,B/=F),u*L180?V+=360:V-Y>180&&(Y+=360),et.push({i:it.push(I(it)+"rotate(",null,L)-2,x:(0,c.Z)(Y,V)})):V&&it.push(I(it)+"rotate("+V+L)}(Y.rotate,V.rotate,it,et),function F(Y,V,it,et){Y!==V?et.push({i:it.push(I(it)+"skewX(",null,L)-2,x:(0,c.Z)(Y,V)}):V&&it.push(I(it)+"skewX("+V+L)}(Y.skewX,V.skewX,it,et),function B(Y,V,it,et,st,K){if(Y!==it||V!==et){var X=st.push(I(st)+"scale(",null,",",null,")");K.push({i:X-4,x:(0,c.Z)(Y,it)},{i:X-2,x:(0,c.Z)(V,et)})}else(1!==it||1!==et)&&st.push(I(st)+"scale("+it+","+et+")")}(Y.scaleX,Y.scaleY,V.scaleX,V.scaleY,it,et),Y=V=null,function(st){for(var W,K=-1,X=et.length;++K{"use strict";s.d(E,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,E,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(E,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var it,et,C=u[0],L=u[1],I=u[2],F=g[2],B=g[0]-C,Y=g[1]-L,V=B*B+Y*Y;if(V<1e-12)et=Math.log(F/I)/d,it=function(H){return[C+H*B,L+H*Y,I*Math.exp(d*H*et)]};else{var st=Math.sqrt(V),K=(F*F-I*I+h*V)/(2*I*l*st),X=(F*F-I*I-h*V)/(2*F*l*st),W=Math.log(Math.sqrt(K*K+1)-K),at=Math.log(Math.sqrt(X*X+1)-X);et=(at-W)/d,it=function(H){var Q=H*et,nt=x(W),q=I/(l*st)*(nt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*Q+W)-function _(t){return((t=Math.exp(t))-1/t)/2}(W));return[C+q*B,L+q*Y,I*nt/x(d*Q+W)]}}return it.duration=1e3*et*d/Math.SQRT2,it}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,E,s)=>{"use strict";s.r(E),s.d(E,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),R=(u=+u)-(h=+h),M=C-l,F=L-h,B=M*M+F*F;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(B>_)if(Math.abs(F*I-R*M)>_&&g){var Y=f-C,V=u-L,it=I*I+R*R,et=Y*Y+V*V,st=Math.sqrt(it),K=Math.sqrt(B),X=g*Math.tan((c-Math.acos((it+B-et)/(2*st*K)))/2),W=X/K,at=X/st;Math.abs(W-1)>_&&(this._+="L"+(l+W*M)+","+(h+W*F)),this._+="A"+g+","+g+",0,0,"+ +(F*Y>M*V)+","+(this._x1=l+at*I)+","+(this._y1=h+at*R)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),R=l+L,M=h+I,F=1^C,B=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+R+","+M:(Math.abs(this._x1-R)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+R+","+M),f&&(B<0&&(B=B%x+x),B>m?this._+="A"+f+","+f+",0,1,"+F+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+F+","+(this._x1=R)+","+(this._y1=M):B>_&&(this._+="A"+f+","+f+",0,"+ +(B>=c)+","+F+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,E,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(E,{Z:()=>c})},7500:(w,E,s)=>{"use strict";s.d(E,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,E,s)=>{"use strict";s.r(E),s.d(E,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>R.Z,selectorAll:()=>M.Z,style:()=>F.S,window:()=>B.Z});var c=s(7500),x=s(52016);function _(Y){return(0,x.Z)((0,c.Z)(Y).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(Y){for(var V=this._;!(V in Y);)if(!(Y=Y.parentNode))return;return Y[V]},set:function(Y,V){return Y[this._]=V},remove:function(Y){return this._ in Y&&delete Y[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(Y,V){return Y.target&&(Y=(0,u.Z)(Y),void 0===V&&(V=Y.currentTarget),Y=Y.touches||[Y]),Array.from(Y,it=>(0,f.Z)(it,V))}var C=s(34638),L=s(37853);function I(Y){return"string"==typeof Y?new L.Y1([document.querySelectorAll(Y)],[document.documentElement]):new L.Y1([null==Y?[]:(0,C.Z)(Y)],L.Jz)}var R=s(29742),M=s(32037),F=s(24476),B=s(2442)},97905:(w,E,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(E,{P:()=>x,Z:()=>c})},36175:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,E,s)=>{"use strict";s.d(E,{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,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,E,s)=>{"use strict";s.d(E,{Y1:()=>Te,ZP:()=>sn,Jz:()=>In});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function B(z,$){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=$}function Y(z){return function(){return z}}function V(z,$,ct,A,bt,Dt){for(var Ut,Pt=0,jt=$.length,Ht=Dt.length;Pt$?1:z>=$?0:NaN}B.prototype={constructor:B,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,$){return this._parent.insertBefore(z,$)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Mt=s(36175);function Et(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function Nt(z,$){return function(){this.setAttribute(z,$)}}function ft(z,$){return function(){this.setAttributeNS(z.space,z.local,$)}}function dt(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttribute(z):this.setAttribute(z,ct)}}function Ct(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,ct)}}var se=s(24476);function ie(z){return function(){delete this[z]}}function ue(z,$){return function(){this[z]=$}}function xe(z,$){return function(){var ct=$.apply(this,arguments);null==ct?delete this[z]:this[z]=ct}}function Pe(z){return z.trim().split(/^|\s+/)}function It(z){return z.classList||new $t(z)}function $t(z){this._node=z,this._names=Pe(z.getAttribute("class")||"")}function Vt(z,$){for(var ct=It(z),A=-1,bt=$.length;++A=0&&(this._names.splice($,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Xe=s(7500);function oi(){return null}function fi(){var z=this.parentNode;z&&z.removeChild(this)}function Ei(){var z=this.cloneNode(!1),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function er(){var z=this.cloneNode(!0),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function($){var ct="",A=$.indexOf(".");return A>=0&&(ct=$.slice(A+1),$=$.slice(0,A)),{type:$,name:ct}})}function be(z){return function(){var $=this.__on;if($){for(var Dt,ct=0,A=-1,bt=$.length;ct=re&&(re=O+1);!(ye=Lt[re])&&++re=0;)(Pt=A[bt])&&(Dt&&4^Pt.compareDocumentPosition(Dt)&&Dt.parentNode.insertBefore(Pt,Dt),Dt=Pt);return this},sort:function H(z){function $(pt,gt){return pt&>?z(pt.__data__,gt.__data__):!pt-!gt}z||(z=Q);for(var ct=this._groups,A=ct.length,bt=new Array(A),Dt=0;Dt1?this.each((null==$?ie:"function"==typeof $?xe:ue)(z,$)):this.node()[z]},classed:function ke(z,$){var ct=Pe(z+"");if(arguments.length<2){for(var A=It(this.node()),bt=-1,Dt=ct.length;++bt{"use strict";s.d(E,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,E,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(E,{Z:()=>x})},32037:(w,E,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(E,{Z:()=>x})},75819:(w,E,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(E,{Z:()=>c})},2442:(w,E,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(E,{Z:()=>c})},73339:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,E,s)=>{"use strict";s.d(E,{B7:()=>L,HT:()=>I,R8:()=>R,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(V){setTimeout(V,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(V,it,et){var st=new L;return st.restart(V,it,et),st}function R(){g(),++c;for(var it,V=p;V;)(it=l-V._time)>=0&&V._call.call(null,it),V=V._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var V,et,it=p,st=1/0;it;)it._call?(st>it._time&&(st=it._time),V=it,it=it._next):(et=it._next,it._next=null,it=V?V._next=et:p=et);t=V,Y(st)}(),l=0}}function F(){var V=f.now(),it=V-d;it>1e3&&(h-=it,d=V)}function Y(V){c||(x&&(x=clearTimeout(x)),V-l>24?(V<1/0&&(x=setTimeout(M,V-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(V,it,et){if("function"!=typeof V)throw new TypeError("callback is not a function");et=(null==et?g():+et)+(null==it?0:+it),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=V,this._time=et,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},18429:(w,E,s)=>{"use strict";s.r(E),s.d(E,{active:()=>sn,interrupt:()=>B,transition:()=>He});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,$,ct,A,bt,Dt){var Pt=z.__transition;if(Pt){if(ct in Pt)return}else z.__transition={};!function F(z,$,ct){var bt,A=z.__transition;function Pt(Ht){var J,pt,gt,_t;if(1!==ct.state)return jt();for(J in A)if((_t=A[J]).name===ct.name){if(3===_t.state)return(0,m.Z)(Pt);4===_t.state?(_t.state=6,_t.timer.stop(),_t.on.call("interrupt",z,z.__data__,_t.index,_t.group),delete A[J]):+J<$&&(_t.state=6,_t.timer.stop(),_t.on.call("cancel",z,z.__data__,_t.index,_t.group),delete A[J])}if((0,m.Z)(function(){3===ct.state&&(ct.state=4,ct.timer.restart(Ut,ct.delay,ct.time),Ut(Ht))}),ct.state=2,ct.on.call("start",z,z.__data__,ct.index,ct.group),2===ct.state){for(ct.state=3,bt=new Array(gt=ct.tween.length),J=0,pt=-1;J0)throw new Error("too late; already scheduled");return ct}function R(z,$){var ct=M(z,$);if(ct.state>3)throw new Error("too late; already running");return ct}function M(z,$){var ct=z.__transition;if(!ct||!(ct=ct[$]))throw new Error("transition not found");return ct}function B(z,$){var A,bt,Pt,ct=z.__transition,Dt=!0;if(ct){for(Pt in $=null==$?null:$+"",ct)(A=ct[Pt]).name===$?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete ct[Pt]):Dt=!1;Dt&&delete z.__transition}}var V=s(75349),it=s(36175);function et(z,$){var ct,A;return function(){var bt=R(this,z),Dt=bt.tween;if(Dt!==ct)for(var Pt=0,Ut=(A=ct=Dt).length;Pt=0&&($=$.slice(0,ct)),!$||"start"===$})}($)?I:R;return function(){var Pt=Dt(this,z),Ut=Pt.on;Ut!==A&&(bt=(A=Ut).copy()).on($,ct),Pt.on=bt}}var an=s(29742),un=s(32037),Yt=c.ZP.prototype.constructor,pe=s(24476);function Ve(z){return function(){this.style.removeProperty(z)}}function fi(z,$,ct){return function(A){this.style.setProperty(z,$.call(this,A),ct)}}function mi(z,$,ct){var A,bt;function Dt(){var Pt=$.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&fi(z,Pt,ct)),A}return Dt._value=$,Dt}function gi(z){return function($){this.textContent=z.call(this,$)}}function Qi(z){var $,ct;function A(){var bt=z.apply(this,arguments);return bt!==ct&&($=(ct=bt)&&gi(bt)),$}return A._value=z,A}var ji=0;function On(z,$,ct,A){this._groups=z,this._parents=$,this._name=ct,this._id=A}function He(z){return(0,c.ZP)().transition(z)}function Tn(){return++ji}var Bn=c.ZP.prototype;On.prototype=He.prototype={constructor:On,select:function _e(z){var $=this._name,ct=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Dt=new Array(bt),Pt=0;Pt1&&A.name===$)return new On([[z]],Hn,$,+bt);return null}},46041:(w,E,s)=>{"use strict";s.r(E),s.d(E,{zoom:()=>Y,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=V=>()=>V;function l(V,{sourceEvent:it,target:et,transform:st,dispatch:K}){Object.defineProperties(this,{type:{value:V,enumerable:!0,configurable:!0},sourceEvent:{value:it,enumerable:!0,configurable:!0},target:{value:et,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:K}})}function h(V,it,et){this.k=V,this.x=it,this.y=et}h.prototype={constructor:h,scale:function(V){return 1===V?this:new h(this.k*V,this.x,this.y)},translate:function(V,it){return 0===V&0===it?this:new h(this.k,this.x+this.k*V,this.y+this.k*it)},apply:function(V){return[V[0]*this.k+this.x,V[1]*this.k+this.y]},applyX:function(V){return V*this.k+this.x},applyY:function(V){return V*this.k+this.y},invert:function(V){return[(V[0]-this.x)/this.k,(V[1]-this.y)/this.k]},invertX:function(V){return(V-this.x)/this.k},invertY:function(V){return(V-this.y)/this.k},rescaleX:function(V){return V.copy().domain(V.range().map(this.invertX,this).map(V.invert,V))},rescaleY:function(V){return V.copy().domain(V.range().map(this.invertY,this).map(V.invert,V))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(V){for(;!V.__zoom;)if(!(V=V.parentNode))return f;return V.__zoom}function g(V){V.stopImmediatePropagation()}function C(V){V.preventDefault(),V.stopImmediatePropagation()}function L(V){return!(V.ctrlKey&&"wheel"!==V.type||V.button)}function I(){var V=this;return V instanceof SVGElement?(V=V.ownerSVGElement||V).hasAttribute("viewBox")?[[(V=V.viewBox.baseVal).x,V.y],[V.x+V.width,V.y+V.height]]:[[0,0],[V.width.baseVal.value,V.height.baseVal.value]]:[[0,0],[V.clientWidth,V.clientHeight]]}function R(){return this.__zoom||f}function M(V){return-V.deltaY*(1===V.deltaMode?.05:V.deltaMode?1:.002)*(V.ctrlKey?10:1)}function F(){return navigator.maxTouchPoints||"ontouchstart"in this}function B(V,it,et){var st=V.invertX(it[0][0])-et[0][0],K=V.invertX(it[1][0])-et[1][0],X=V.invertY(it[0][1])-et[0][1],W=V.invertY(it[1][1])-et[1][1];return V.translate(K>st?(st+K)/2:Math.min(0,st)||Math.max(0,K),W>X?(X+W)/2:Math.min(0,X)||Math.max(0,W))}function Y(){var nt,q,U,V=L,it=I,et=B,st=M,K=F,X=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],at=250,H=_.Z,Q=(0,c.Z)("start","zoom","end"),D=500,St=0,Mt=10;function Et(It){It.property("__zoom",R).on("wheel.zoom",se).on("mousedown.zoom",ie).on("dblclick.zoom",ue).filter(K).on("touchstart.zoom",xe).on("touchmove.zoom",Ue).on("touchend.zoom touchcancel.zoom",Pe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(It,$t){return($t=Math.max(X[0],Math.min(X[1],$t)))===It.k?It:new h($t,It.x,It.y)}function Nt(It,$t,Vt){var Jt=$t[0]-Vt[0]*It.k,me=$t[1]-Vt[1]*It.k;return Jt===It.x&&me===It.y?It:new h(It.k,Jt,me)}function ft(It){return[(+It[0][0]+ +It[1][0])/2,(+It[0][1]+ +It[1][1])/2]}function dt(It,$t,Vt,Jt){It.on("start.zoom",function(){Ct(this,arguments).event(Jt).start()}).on("interrupt.zoom end.zoom",function(){Ct(this,arguments).event(Jt).end()}).tween("zoom",function(){var me=this,ve=arguments,Ee=Ct(me,ve).event(Jt),ke=it.apply(me,ve),we=null==Vt?ft(ke):"function"==typeof Vt?Vt.apply(me,ve):Vt,ze=Math.max(ke[1][0]-ke[0][0],ke[1][1]-ke[0][1]),Ge=me.__zoom,an="function"==typeof $t?$t.apply(me,ve):$t,_e=H(Ge.invert(we).concat(ze/Ge.k),an.invert(we).concat(ze/an.k));return function(un){if(1===un)un=an;else{var Tt=_e(un),Yt=ze/Tt[2];un=new h(Yt,we[0]-Tt[0]*Yt,we[1]-Tt[1]*Yt)}Ee.zoom(null,un)}})}function Ct(It,$t,Vt){return!Vt&&It.__zooming||new Zt(It,$t)}function Zt(It,$t){this.that=It,this.args=$t,this.active=0,this.sourceEvent=null,this.extent=it.apply(It,$t),this.taps=0}function se(It,...$t){if(V.apply(this,arguments)){var Vt=Ct(this,$t).event(It),Jt=this.__zoom,me=Math.max(X[0],Math.min(X[1],Jt.k*Math.pow(2,st.apply(this,arguments)))),ve=(0,p.Z)(It);if(Vt.wheel)(Vt.mouse[0][0]!==ve[0]||Vt.mouse[0][1]!==ve[1])&&(Vt.mouse[1]=Jt.invert(Vt.mouse[0]=ve)),clearTimeout(Vt.wheel);else{if(Jt.k===me)return;Vt.mouse=[ve,Jt.invert(ve)],(0,t.interrupt)(this),Vt.start()}C(It),Vt.wheel=setTimeout(Ee,150),Vt.zoom("mouse",et(Nt(Qt(Jt,me),Vt.mouse[0],Vt.mouse[1]),Vt.extent,W))}function Ee(){Vt.wheel=null,Vt.end()}}function ie(It,...$t){if(!U&&V.apply(this,arguments)){var Vt=Ct(this,$t,!0).event(It),Jt=(0,m.Z)(It.view).on("mousemove.zoom",we,!0).on("mouseup.zoom",ze,!0),me=(0,p.Z)(It,ve),ve=It.currentTarget,Ee=It.clientX,ke=It.clientY;(0,x.Z)(It.view),g(It),Vt.mouse=[me,this.__zoom.invert(me)],(0,t.interrupt)(this),Vt.start()}function we(Ge){if(C(Ge),!Vt.moved){var an=Ge.clientX-Ee,_e=Ge.clientY-ke;Vt.moved=an*an+_e*_e>St}Vt.event(Ge).zoom("mouse",et(Nt(Vt.that.__zoom,Vt.mouse[0]=(0,p.Z)(Ge,ve),Vt.mouse[1]),Vt.extent,W))}function ze(Ge){Jt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Vt.moved),C(Ge),Vt.event(Ge).end()}}function ue(It,...$t){if(V.apply(this,arguments)){var Vt=this.__zoom,Jt=(0,p.Z)(It.changedTouches?It.changedTouches[0]:It,this),me=Vt.invert(Jt),ve=Vt.k*(It.shiftKey?.5:2),Ee=et(Nt(Qt(Vt,ve),Jt,me),it.apply(this,$t),W);C(It),at>0?(0,m.Z)(this).transition().duration(at).call(dt,Ee,Jt,It):(0,m.Z)(this).call(Et.transform,Ee,Jt,It)}}function xe(It,...$t){if(V.apply(this,arguments)){var ve,Ee,ke,we,Vt=It.touches,Jt=Vt.length,me=Ct(this,$t,It.changedTouches.length===Jt).event(It);for(g(It),Ee=0;Ee{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,E,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,E,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function E(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=E,E.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},E.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},E.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,E,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,E,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,E,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var F=g.edge(M.v,M.w)||0,B=u(M);g.setEdge(M.v,M.w,F+B),L=Math.max(L,g.node(M.v).out+=B),C=Math.max(C,g.node(M.w).in+=B)});var I=c.range(L+C+3).map(function(){return new _}),R=C+1;return c.forEach(g.nodes(),function(M){h(I,R,g.node(M))}),{graph:g,buckets:I,zeroIdx:R}}(f,u||m),C=function t(f,u,g){for(var R,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;R=I.dequeue();)d(f,u,g,R);for(;R=L.dequeue();)d(f,u,g,R);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(R=u[M].dequeue()){C=C.concat(d(f,u,g,R,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(R){var M=f.edge(R),F=f.node(R.v);L&&I.push({v:R.v,w:R.w}),F.out-=M,h(u,g,F)}),c.forEach(f.outEdges(C.v),function(R){var M=f.edge(R),B=f.node(R.w);B.in-=M,h(u,g,B)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,E,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(ft,dt){var Ct=dt&&dt.debugTiming?C.time:C.notime;Ct("layout",function(){var Zt=Ct(" buildLayoutGraph",function(){return function X(ft){var dt=new L({multigraph:!0,compound:!0}),Ct=Nt(ft.graph());return dt.setGraph(c.merge({},B,Qt(Ct,F),c.pick(Ct,Y))),c.forEach(ft.nodes(),function(Zt){var se=Nt(ft.node(Zt));dt.setNode(Zt,c.defaults(Qt(se,V),it)),dt.setParent(Zt,ft.parent(Zt))}),c.forEach(ft.edges(),function(Zt){var se=Nt(ft.edge(Zt));dt.setEdge(Zt,c.merge({},st,Qt(se,et),c.pick(se,K)))}),dt}(ft)});Ct(" runLayout",function(){!function R(ft,dt){dt(" makeSpaceForEdgeLabels",function(){!function W(ft){var dt=ft.graph();dt.ranksep/=2,c.forEach(ft.edges(),function(Ct){var Zt=ft.edge(Ct);Zt.minlen*=2,"c"!==Zt.labelpos.toLowerCase()&&("TB"===dt.rankdir||"BT"===dt.rankdir?Zt.width+=Zt.labeloffset:Zt.height+=Zt.labeloffset)})}(ft)}),dt(" removeSelfEdges",function(){!function St(ft){c.forEach(ft.edges(),function(dt){if(dt.v===dt.w){var Ct=ft.node(dt.v);Ct.selfEdges||(Ct.selfEdges=[]),Ct.selfEdges.push({e:dt,label:ft.edge(dt)}),ft.removeEdge(dt)}})}(ft)}),dt(" acyclic",function(){x.run(ft)}),dt(" nestingGraph.run",function(){l.run(ft)}),dt(" rank",function(){m(C.asNonCompoundGraph(ft))}),dt(" injectEdgeLabelProxies",function(){!function at(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);if(Ct.width&&Ct.height){var Zt=ft.node(dt.v),se=ft.node(dt.w);C.addDummyNode(ft,"edge-proxy",{rank:(se.rank-Zt.rank)/2+Zt.rank,e:dt},"_ep")}})}(ft)}),dt(" removeEmptyRanks",function(){d(ft)}),dt(" nestingGraph.cleanup",function(){l.cleanup(ft)}),dt(" normalizeRanks",function(){p(ft)}),dt(" assignRankMinMax",function(){!function H(ft){var dt=0;c.forEach(ft.nodes(),function(Ct){var Zt=ft.node(Ct);Zt.borderTop&&(Zt.minRank=ft.node(Zt.borderTop).rank,Zt.maxRank=ft.node(Zt.borderBottom).rank,dt=c.max(dt,Zt.maxRank))}),ft.graph().maxRank=dt}(ft)}),dt(" removeEdgeLabelProxies",function(){!function Q(ft){c.forEach(ft.nodes(),function(dt){var Ct=ft.node(dt);"edge-proxy"===Ct.dummy&&(ft.edge(Ct.e).labelRank=Ct.rank,ft.removeNode(dt))})}(ft)}),dt(" normalize.run",function(){_.run(ft)}),dt(" parentDummyChains",function(){t(ft)}),dt(" addBorderSegments",function(){h(ft)}),dt(" order",function(){u(ft)}),dt(" insertSelfEdges",function(){!function Mt(ft){var dt=C.buildLayerMatrix(ft);c.forEach(dt,function(Ct){var Zt=0;c.forEach(Ct,function(se,ie){var ue=ft.node(se);ue.order=ie+Zt,c.forEach(ue.selfEdges,function(xe){C.addDummyNode(ft,"selfedge",{width:xe.label.width,height:xe.label.height,rank:ue.rank,order:ie+ ++Zt,e:xe.e,label:xe.label},"_se")}),delete ue.selfEdges})})}(ft)}),dt(" adjustCoordinateSystem",function(){f.adjust(ft)}),dt(" position",function(){g(ft)}),dt(" positionSelfEdges",function(){!function Et(ft){c.forEach(ft.nodes(),function(dt){var Ct=ft.node(dt);if("selfedge"===Ct.dummy){var Zt=ft.node(Ct.e.v),se=Zt.x+Zt.width/2,ie=Zt.y,ue=Ct.x-se,xe=Zt.height/2;ft.setEdge(Ct.e,Ct.label),ft.removeNode(dt),Ct.label.points=[{x:se+2*ue/3,y:ie-xe},{x:se+5*ue/6,y:ie-xe},{x:se+ue,y:ie},{x:se+5*ue/6,y:ie+xe},{x:se+2*ue/3,y:ie+xe}],Ct.label.x=Ct.x,Ct.label.y=Ct.y}})}(ft)}),dt(" removeBorderNodes",function(){!function mt(ft){c.forEach(ft.nodes(),function(dt){if(ft.children(dt).length){var Ct=ft.node(dt),Zt=ft.node(Ct.borderTop),se=ft.node(Ct.borderBottom),ie=ft.node(c.last(Ct.borderLeft)),ue=ft.node(c.last(Ct.borderRight));Ct.width=Math.abs(ue.x-ie.x),Ct.height=Math.abs(se.y-Zt.y),Ct.x=ie.x+Ct.width/2,Ct.y=Zt.y+Ct.height/2}}),c.forEach(ft.nodes(),function(dt){"border"===ft.node(dt).dummy&&ft.removeNode(dt)})}(ft)}),dt(" normalize.undo",function(){_.undo(ft)}),dt(" fixupEdgeLabelCoords",function(){!function U(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);if(c.has(Ct,"x"))switch(("l"===Ct.labelpos||"r"===Ct.labelpos)&&(Ct.width-=Ct.labeloffset),Ct.labelpos){case"l":Ct.x-=Ct.width/2+Ct.labeloffset;break;case"r":Ct.x+=Ct.width/2+Ct.labeloffset}})}(ft)}),dt(" undoCoordinateSystem",function(){f.undo(ft)}),dt(" translateGraph",function(){!function nt(ft){var dt=Number.POSITIVE_INFINITY,Ct=0,Zt=Number.POSITIVE_INFINITY,se=0,ie=ft.graph(),ue=ie.marginx||0,xe=ie.marginy||0;function Ue(Pe){var It=Pe.x,$t=Pe.y,Vt=Pe.width,Jt=Pe.height;dt=Math.min(dt,It-Vt/2),Ct=Math.max(Ct,It+Vt/2),Zt=Math.min(Zt,$t-Jt/2),se=Math.max(se,$t+Jt/2)}c.forEach(ft.nodes(),function(Pe){Ue(ft.node(Pe))}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.has(It,"x")&&Ue(It)}),dt-=ue,Zt-=xe,c.forEach(ft.nodes(),function(Pe){var It=ft.node(Pe);It.x-=dt,It.y-=Zt}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.forEach(It.points,function($t){$t.x-=dt,$t.y-=Zt}),c.has(It,"x")&&(It.x-=dt),c.has(It,"y")&&(It.y-=Zt)}),ie.width=Ct-dt+ue,ie.height=se-Zt+xe}(ft)}),dt(" assignNodeIntersects",function(){!function q(ft){c.forEach(ft.edges(),function(dt){var ie,ue,Ct=ft.edge(dt),Zt=ft.node(dt.v),se=ft.node(dt.w);Ct.points?(ie=Ct.points[0],ue=Ct.points[Ct.points.length-1]):(Ct.points=[],ie=se,ue=Zt),Ct.points.unshift(C.intersectRect(Zt,ie)),Ct.points.push(C.intersectRect(se,ue))})}(ft)}),dt(" reversePoints",function(){!function D(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);Ct.reversed&&Ct.points.reverse()})}(ft)}),dt(" acyclic.undo",function(){x.undo(ft)})}(Zt,Ct)}),Ct(" updateInputGraph",function(){!function M(ft,dt){c.forEach(ft.nodes(),function(Ct){var Zt=ft.node(Ct),se=dt.node(Ct);Zt&&(Zt.x=se.x,Zt.y=se.y,dt.children(Ct).length&&(Zt.width=se.width,Zt.height=se.height))}),c.forEach(ft.edges(),function(Ct){var Zt=ft.edge(Ct),se=dt.edge(Ct);Zt.points=se.points,c.has(se,"x")&&(Zt.x=se.x,Zt.y=se.y)}),ft.graph().width=dt.graph().width,ft.graph().height=dt.graph().height}(ft,Zt)})})};var F=["nodesep","edgesep","ranksep","marginx","marginy"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Y=["acyclicer","ranker","rankdir","align"],V=["width","height"],it={width:0,height:0},et=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function Qt(ft,dt){return c.mapValues(c.pick(ft,dt),Number)}function Nt(ft){var dt={};return c.forEach(ft,function(Ct,Zt){dt[Zt.toLowerCase()]=Ct}),dt}},45760:(w,E,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,E,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var R=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),F=l.node(L);l.setParent(R,L),F.borderTop=R,l.setParent(M,L),F.borderBottom=M,c.forEach(I,function(B){m(l,h,f,u,g,C,B);var Y=l.node(B),V=Y.borderTop?Y.borderTop:B,it=Y.borderBottom?Y.borderBottom:B,et=Y.borderTop?u:2*u,st=V!==it?1:g-C[L]+1;l.setEdge(R,V,{weight:et,minlen:st,nestingEdge:!0}),l.setEdge(it,M,{weight:et,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,R,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,E,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,R,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,E,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,E,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),R=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+R})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,E,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(R){return p(C,R,I)})}function u(C,L){var I=new d;c.forEach(C,function(R){var M=R.graph().root,F=m(R,M,I,L);c.forEach(F.vs,function(B,Y){R.node(B).order=Y}),t(R,I,F.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(R,M){C.node(R).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),R=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var B,F=Number.POSITIVE_INFINITY,Y=0,V=0;V<4;++Y,++V){u(Y%2?I:R,Y%4>=2),M=l.buildLayerMatrix(C);var it=_(C,M);it{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,E,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,E,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,R={};L&&(g=c.filter(g,function(it){return it!==L&&it!==I}));var M=x(l,g);c.forEach(M,function(it){if(l.children(it.v).length){var et=p(l,it.v,f,u);R[it.v]=et,c.has(et,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(it,et)}});var F=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(F,R);var B=m(F,u);if(L&&(B.vs=c.flatten([L,B.vs,I],!0),l.predecessors(L).length)){var Y=l.node(l.predecessors(L)[0]),V=l.node(l.predecessors(I)[0]);c.has(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+Y.order+V.order)/(B.weight+2),B.weight+=2}return B}},93803:(w,E,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(R){return c.has(R,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(R){return-R.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(R){L+=R.vs.length,u.push(R.vs),g+=R.barycenter*R.weight,C+=R.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,E,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(F,B){var Y={};return c.reduce(B,function V(it,et){var st=0,K=0,X=it.length,W=c.last(et);return c.forEach(et,function(at,H){var Q=function t(F,B){if(F.node(B).dummy)return c.find(F.predecessors(B),function(Y){return F.node(Y).dummy})}(F,at),nt=Q?F.node(Q).order:X;(Q||at===W)&&(c.forEach(et.slice(K,H+1),function(q){c.forEach(F.predecessors(q),function(U){var D=F.node(U),mt=D.order;(mtW)&&d(Y,Q,at)})})}return c.reduce(B,function it(et,st){var X,K=-1,W=0;return c.forEach(st,function(at,H){if("border"===F.node(at).dummy){var Q=F.predecessors(at);Q.length&&(X=F.node(Q[0]).order,V(st,W,H,K,X),W=H,K=X)}V(st,W,st.length,X,et.length)}),st}),Y}function d(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}var it=F[B];it||(F[B]=it={}),it[Y]=!0}function l(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}return c.has(F[B],Y)}function h(F,B,Y,V){var it={},et={},st={};return c.forEach(B,function(K){c.forEach(K,function(X,W){it[X]=X,et[X]=X,st[X]=W})}),c.forEach(B,function(K){var X=-1;c.forEach(K,function(W){var at=V(W);if(at.length)for(var H=((at=c.sortBy(at,function(U){return st[U]})).length-1)/2,Q=Math.floor(H),nt=Math.ceil(H);Q<=nt;++Q){var q=at[Q];et[W]===W&&X{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,E,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(Y){Y=d(Y),m(Y);var it,V=x(Y);for(g(V),h(V,Y);it=L(V);)R(V,Y,it,I(V,Y,it))}function h(Y,V){var it=t(Y,Y.nodes());it=it.slice(0,it.length-1),c.forEach(it,function(et){!function f(Y,V,it){var et=Y.node(it);Y.edge(it,et.parent).cutvalue=u(Y,V,it)}(Y,V,et)})}function u(Y,V,it){var st=Y.node(it).parent,K=!0,X=V.edge(it,st),W=0;return X||(K=!1,X=V.edge(st,it)),W=X.weight,c.forEach(V.nodeEdges(it),function(at){var H=at.v===it,Q=H?at.w:at.v;if(Q!==st){var nt=H===K,q=V.edge(at).weight;if(W+=nt?q:-q,function F(Y,V,it){return Y.hasEdge(V,it)}(Y,it,Q)){var U=Y.edge(it,Q).cutvalue;W+=nt?-U:U}}}),W}function g(Y,V){arguments.length<2&&(V=Y.nodes()[0]),C(Y,{},1,V)}function C(Y,V,it,et,st){var K=it,X=Y.node(et);return V[et]=!0,c.forEach(Y.neighbors(et),function(W){c.has(V,W)||(it=C(Y,V,it,W,et))}),X.low=K,X.lim=it++,st?X.parent=st:delete X.parent,it}function L(Y){return c.find(Y.edges(),function(V){return Y.edge(V).cutvalue<0})}function I(Y,V,it){var et=it.v,st=it.w;V.hasEdge(et,st)||(et=it.w,st=it.v);var K=Y.node(et),X=Y.node(st),W=K,at=!1;K.lim>X.lim&&(W=X,at=!0);var H=c.filter(V.edges(),function(Q){return at===B(0,Y.node(Q.v),W)&&at!==B(0,Y.node(Q.w),W)});return c.minBy(H,function(Q){return _(V,Q)})}function R(Y,V,it,et){Y.removeEdge(it.v,it.w),Y.setEdge(et.v,et.w,{}),g(Y),h(Y,V),function M(Y,V){var it=c.find(Y.nodes(),function(st){return!V.node(st).parent}),et=p(Y,it);et=et.slice(1),c.forEach(et,function(st){var K=Y.node(st).parent,X=V.edge(st,K),W=!1;X||(X=V.edge(K,st),W=!0),V.node(st).rank=V.node(K).rank+(W?X.minlen:-X.minlen)})}(Y,V)}function B(Y,V,it){return it.low<=V.lim&&V.lim<=it.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=R},1916:(w,E,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,F,B,Y){var V;do{V=c.uniqueId(Y)}while(M.hasNode(V));return B.dummy=F,M.setNode(V,B),V}function C(M){return c.max(c.map(M.nodes(),function(F){var B=M.node(F).rank;if(!c.isUndefined(B))return B}))}w.exports={addDummyNode:_,simplify:function m(M){var F=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(B){F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){var Y=F.edge(B.v,B.w)||{weight:0,minlen:1},V=M.edge(B);F.setEdge(B.v,B.w,{weight:Y.weight+V.weight,minlen:Math.max(Y.minlen,V.minlen)})}),F},asNonCompoundGraph:function p(M){var F=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(B){M.children(B).length||F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){F.setEdge(B,M.edge(B))}),F},successorWeights:function t(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.outEdges(B),function(V){Y[V.w]=(Y[V.w]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},predecessorWeights:function d(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.inEdges(B),function(V){Y[V.v]=(Y[V.v]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},intersectRect:function l(M,F){var K,X,B=M.x,Y=M.y,V=F.x-B,it=F.y-Y,et=M.width/2,st=M.height/2;if(!V&&!it)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(it)*et>Math.abs(V)*st?(it<0&&(st=-st),K=st*V/it,X=st):(V<0&&(et=-et),K=et,X=et*it/V),{x:B+K,y:Y+X}},buildLayerMatrix:function h(M){var F=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(B){var Y=M.node(B),V=Y.rank;c.isUndefined(V)||(F[V][Y.order]=B)}),F},normalizeRanks:function f(M){var F=c.min(c.map(M.nodes(),function(B){return M.node(B).rank}));c.forEach(M.nodes(),function(B){var Y=M.node(B);c.has(Y,"rank")&&(Y.rank-=F)})},removeEmptyRanks:function u(M){var F=c.min(c.map(M.nodes(),function(it){return M.node(it).rank})),B=[];c.forEach(M.nodes(),function(it){var et=M.node(it).rank-F;B[et]||(B[et]=[]),B[et].push(it)});var Y=0,V=M.graph().nodeRankFactor;c.forEach(B,function(it,et){c.isUndefined(it)&&et%V!=0?--Y:Y&&c.forEach(it,function(st){M.node(st).rank+=Y})})},addBorderNode:function g(M,F,B,Y){var V={width:0,height:0};return arguments.length>=4&&(V.rank=B,V.order=Y),_(M,"border",V,F)},maxRank:C,partition:function L(M,F){var B={lhs:[],rhs:[]};return c.forEach(M,function(Y){F(Y)?B.lhs.push(Y):B.rhs.push(Y)}),B},time:function I(M,F){var B=c.now();try{return F()}finally{console.log(M+" time: "+(c.now()-B)+"ms")}},notime:function R(M,F){return F()}}},28126:w=>{w.exports="0.8.5"},85510:(w,E,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,E,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,E,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,E,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var R=I.v!==g?I.v:I.w,M=f[R],F=l(I),B=C.distance+F;if(F<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+F);B0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,E,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,E,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var R=u[L],M=C[L],F=C[f].distance+R.distance;F{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,E,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,E,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,E,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,E,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var R=t(C);R0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,E,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,E,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}return I+"\x01"+R+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}var F={v:I,w:R};return L&&(F.name=L),F}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(R,M){u(M)&&g.setNode(M,R)}),c.each(this._edgeObjs,function(R){g.hasNode(R.v)&&g.hasNode(R.w)&&g.setEdge(R,C.edge(R))});var L={};function I(R){var M=C.parent(R);return void 0===M||g.hasNode(M)?(L[R]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(R){g.setParent(R,I(R))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,R){return L.length>1?C.setEdge(I,R,g):C.setEdge(I,R),R}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,R=arguments[0];"object"==typeof R&&null!==R&&"v"in R?(u=R.v,g=R.w,C=R.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=R,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var F=h(this._isDirected,u,g,C);return u=F.v,g=F.w,Object.freeze(F),this._edgeObjs[M]=F,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=F,this._out[u][M]=F,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,E,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,E,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,E,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var E=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=E.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,E,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,E,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,E,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,E,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,E,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,E,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,E,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,E,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function E(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,E,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function E(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),R=g||C||L||I,M=R?c(f.length,String):[],F=M.length;for(var B in f)(u||l.call(f,B))&&(!R||!("length"==B||L&&("offset"==B||"parent"==B)||I&&("buffer"==B||"byteLength"==B||"byteOffset"==B)||p(B,F)))&&M.push(B);return M}},84633:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function E(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function E(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,E,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,E,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,E,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,E,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,E,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,E,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,E,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),R=s(21503),M=s(80891),F=s(13222),B=s(25940),Y=s(90799),V=s(118),it=s(16555),X="[object Arguments]",nt="[object Function]",mt="[object Object]",$t={};$t[X]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[mt]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[nt]=$t["[object WeakMap]"]=!1,w.exports=function Vt(Jt,me,ve,Ee,ke,we){var ze,Ge=1&me,an=2&me,_e=4&me;if(ve&&(ze=ke?ve(Jt,Ee,ke,we):ve(Jt)),void 0!==ze)return ze;if(!B(Jt))return Jt;var un=R(Jt);if(un){if(ze=C(Jt),!Ge)return d(Jt,ze)}else{var Tt=g(Jt),Yt=Tt==nt||"[object GeneratorFunction]"==Tt;if(M(Jt))return t(Jt,Ge);if(Tt==mt||Tt==X||Yt&&!ke){if(ze=an||Yt?{}:I(Jt),!Ge)return an?h(Jt,p(ze,Jt)):l(Jt,m(ze,Jt))}else{if(!$t[Tt])return ke?Jt:{};ze=L(Jt,Tt,Ge)}}we||(we=new c);var oe=we.get(Jt);if(oe)return oe;we.set(Jt,ze),Y(Jt)?Jt.forEach(function(Ve){ze.add(Vt(Ve,me,ve,Ve,Jt,we))}):F(Jt)&&Jt.forEach(function(Ve,Xe){ze.set(Xe,Vt(Ve,me,ve,Xe,Jt,we))});var qt=un?void 0:(_e?an?u:f:an?it:V)(Jt);return x(qt||Jt,function(Ve,Xe){qt&&(Ve=Jt[Xe=Ve]),_(ze,Xe,Vt(Ve,me,ve,Xe,Jt,we))}),ze}},78858:(w,E,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,E,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,E,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function E(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,E,s)=>{var x=s(40456)();w.exports=x},45184:(w,E,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,E,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,E,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function E(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function E(s,c){return null!=s&&c in Object(s)}},14164:(w,E,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,E,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,E,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(R,M,F,B,Y,V){var it=t(R),et=t(M),st=it?u:p(R),K=et?u:p(M),X=(st=st==f?g:st)==g,W=(K=K==f?g:K)==g,at=st==K;if(at&&d(R)){if(!d(M))return!1;it=!0,X=!1}if(at&&!X)return V||(V=new c),it||l(R)?x(R,M,F,B,Y,V):_(R,M,st,F,B,Y,V);if(!(1&F)){var H=X&&L.call(R,"__wrapped__"),Q=W&&L.call(M,"__wrapped__");if(H||Q){var nt=H?R.value():R,q=Q?M.value():M;return V||(V=new c),Y(nt,q,F,B,V)}}return!!at&&(V||(V=new c),m(R,M,F,B,Y,V))}},97021:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,E,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function E(s){return s!=s}},37304:(w,E,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,E,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function H(Q){return _(Q)&&x(Q.length)&&!!at[c(Q)]}},96517:(w,E,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,E,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,E,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function E(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,E,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,E,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,E,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var R=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===R&&(R=L),x(h,I,R)}},t)}},33675:(w,E,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(92377),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function R(M,F,B,Y,V,it,et){var st=L(M,B),K=L(F,B),X=et.get(K);if(X)c(M,B,X);else{var W=it?it(st,K,B+"",M,F,et):void 0,at=void 0===W;if(at){var H=d(K),Q=!H&&h(K),nt=!H&&!Q&&C(K);W=K,H||Q||nt?d(st)?W=st:l(st)?W=m(st):Q?(at=!1,W=x(K,!0)):nt?(at=!1,W=_(K,!0)):W=[]:g(K)||t(K)?(W=st,t(st)?W=I(st):(!u(st)||f(st))&&(W=p(K))):at=!1}at&&(et.set(K,W),V(W,K,Y,it,et),et.delete(K)),c(M,B,W)}}},6119:(w,E,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(R){return h(R)?function(M){return x(M,1===R.length?R[0]:R)}:R}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(R,M,F){return{criteria:c(g,function(Y){return Y(R)}),index:++L,value:R}});return p(I,function(R,M){return d(R,M,C)})}},83021:(w,E,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,E,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function E(s){return function(c){return c?.[s]}}},39222:(w,E,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var E=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(E((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function E(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,E,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,E,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function E(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function E(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,E,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function E(s){return function(c){return s(c)}}},80707:(w,E,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,R=[],M=R;if(u)I=!1,C=_;else if(L>=200){var F=f?null:p(h);if(F)return t(F);I=!1,C=m,M=new c}else M=f?[]:R;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function E(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function E(s,c){return s.has(c)}},21481:(w,E,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,E,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,E,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,E,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var E=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,E.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,E,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,E,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,E,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function E(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,E,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,E,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,E,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,E,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function E(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,E,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,E,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,E,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,E,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var R=g.get(d),M=g.get(l);if(R&&M)return R==l&&M==d;var F=-1,B=!0,Y=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++F{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),Y=c?c.prototype:void 0,V=Y?Y.valueOf:void 0;w.exports=function it(et,st,K,X,W,at,H){switch(K){case"[object DataView]":if(et.byteLength!=st.byteLength||et.byteOffset!=st.byteOffset)return!1;et=et.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(et.byteLength!=st.byteLength||!at(new x(et),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+et,+st);case"[object Error]":return et.name==st.name&&et.message==st.message;case"[object RegExp]":case"[object String]":return et==st+"";case"[object Map]":var Q=p;case"[object Set]":if(Q||(Q=t),et.size!=st.size&&!(1&X))return!1;var q=H.get(et);if(q)return q==st;X|=2,H.set(et,st);var U=m(Q(et),Q(st),X,W,at,H);return H.delete(et),U;case"[object Symbol]":if(V)return V.call(et)==V.call(st)}return!1}},32286:(w,E,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var F=C[M];if(!(g?F in d:m.call(d,F)))return!1}var B=u.get(t),Y=u.get(d);if(B&&Y)return B==d&&Y==t;var V=!0;u.set(t,d),u.set(d,t);for(var it=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var E="object"==typeof global&&global&&global.Object===Object&&global;w.exports=E},47597:(w,E,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,E,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,E,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,E,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,E,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,E,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,E,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,E,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,E,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,E,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),R=d(_),M=d(m),F=d(p),B=t;(c&&B(new c(new ArrayBuffer(1)))!=C||x&&B(new x)!=l||_&&B(_.resolve())!=f||m&&B(new m)!=u||p&&B(new p)!=g)&&(B=function(Y){var V=t(Y),it="[object Object]"==V?Y.constructor:void 0,et=it?d(it):"";if(et)switch(et){case L:return C;case I:return l;case R:return f;case M:return u;case F:return g}return V}),w.exports=B},51990:w=>{w.exports=function E(s,c){return s?.[c]}},47283:(w,E,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,E,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function E(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,E,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,E,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,E,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,E,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function K(X,W,at){var H=X.constructor;switch(W){case"[object ArrayBuffer]":return c(X);case"[object Boolean]":case"[object Date]":return new H(+X);case"[object DataView]":return x(X,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(X,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(X);case"[object RegExp]":return _(X);case"[object Symbol]":return m(X)}}},4264:(w,E,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,E,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,E,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,E,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function E(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,E,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var E=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||E)}},22442:(w,E,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function E(){this.__data__=[],this.size=0}},34378:(w,E,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,E,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,E,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,E,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,E,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,E,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,E,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function E(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,E,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,E,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,E,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function E(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,E,s)=>{w=s.nmd(w);var c=s(79122),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function E(s,c){return function(x){return s(c(x))}}},53983:(w,E,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function E(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function E(s){return this.__data__.has(s)}},24174:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,E,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,E,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function E(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function E(s){return this.__data__.get(s)}},22247:w=>{w.exports=function E(s){return this.__data__.has(s)}},41585:(w,E,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function E(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,E,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,E,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var E=/\s/;w.exports=function s(c){for(var x=c.length;x--&&E.test(c.charAt(x)););return x}},81149:w=>{var E="\\ud800-\\udfff",p="["+E+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+E+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",R=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",F=RegExp(d+"(?="+d+")|"+M+R,"g");w.exports=function B(Y){for(var V=F.lastIndex=0;F.test(Y);)++V;return V}},11094:(w,E,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,E,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function E(s){return function(){return s}}},28800:(w,E,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function E(s,c){return s===c||s!=s&&c!=c}},35281:(w,E,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,E,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,E,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,E,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,E,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,E,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,E,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,E,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,E,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function E(s){return s}},77151:(w,E,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,E,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},92377:(w,E,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=E&&!E.nodeType&&E,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var R in L)if(g.call(L,R))return!1;return!0}},75946:(w,E,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,E,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function E(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function E(s){return null!=s&&"object"==typeof s}},97614:(w,E,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,E,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,E,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,E,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function E(s){return void 0===s}},118:(w,E,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,E,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function E(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,E,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,E,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,E,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,E,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,E,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,E,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,E,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function E(){}},31710:(w,E,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,E,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,E,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,E,s)=>{var x=s(97509)();w.exports=x},81337:(w,E,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,E,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function E(){return[]}},63580:w=>{w.exports=function E(){return!1}},12232:(w,E,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,E,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,E,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,E,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,E,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),R=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=R?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(R?c:_)(g,function(F,B,Y){return C(L,F,B,Y)}),L}},68921:(w,E,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(92377),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,E,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,E,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,E,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,E,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,E,s)=>{"use strict";function c(x){for(var _ in x)E.hasOwnProperty(_)||(E[_]=x[_])}Object.defineProperty(E,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);E.LayoutAdaptor=_,E.adaptor=function m(p){return new _(p)}},83292:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(15675),x=s(76767);E.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},E.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(49346),x=s(22487);E.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);E.D3StyleLayoutAdaptor=_,E.d3adaptor=function m(){return new _}},22487:function(w,E,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);E.D3StyleLayoutAdaptor=_},91786:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();E.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&F>B||!isFinite(B)){for(d=0;d1&&(Y=1);var V=B*B,it=2*Y*(F-B)/(V*F),et=F*F*F,st=2*-Y/(V*et);for(isFinite(it)||console.log(it),d=0;d0?Q-(U+1)*X:Q-(U-1)*X)&&R<=K&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*R,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*R,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(mt,St){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();E.PseudoRandom=x},30225:function(w,E,s){"use strict";var q,c=this&&this.__extends||(q=function(U,D){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,St){mt.__proto__=St}||function(mt,St){for(var Mt in St)St.hasOwnProperty(Mt)&&(mt[Mt]=St[Mt])})(U,D)},function(U,D){function mt(){this.constructor=U}q(U,D),U.prototype=null===D?Object.create(D):(mt.prototype=D.prototype,new mt)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(4068),_=function q(){};E.Point=_;var m=function q(U,D,mt,St){this.x1=U,this.y1=D,this.x2=mt,this.y2=St};E.LineSegment=m;var p=function(q){function U(){return null!==q&&q.apply(this,arguments)||this}return c(U,q),U}(_);function t(q,U,D){return(U.x-q.x)*(D.y-q.y)-(D.x-q.x)*(U.y-q.y)}function d(q,U,D){return t(q,U,D)>0}function l(q,U,D){return t(q,U,D)<0}function C(q,U){var D=U.slice(0);return D.push(U[0]),{rtan:L(q,D),ltan:I(q,D)}}function L(q,U){var mt,St,Mt,Qt,D=U.length-1;if(l(q,U[1],U[0])&&!d(q,U[D-1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return d(q,U[mt],U[St])?mt:St;if((Qt=l(q,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]))&&!d(q,U[Mt-1],U[Mt]))return Mt;d(q,U[mt+1],U[mt])?Qt||d(q,U[mt],U[Mt])?St=Mt:mt=Mt:Qt&&l(q,U[mt],U[Mt])?St=Mt:mt=Mt}}function I(q,U){var mt,St,Mt,Qt,D=U.length-1;if(d(q,U[D-1],U[0])&&!l(q,U[1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return l(q,U[mt],U[St])?mt:St;if(Qt=l(q,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]),d(q,U[Mt-1],U[Mt])&&!Qt)return Mt;l(q,U[mt+1],U[mt])?Qt?l(q,U[mt],U[Mt])?St=Mt:mt=Mt:St=Mt:Qt?mt=Mt:d(q,U[mt],U[Mt])?St=Mt:mt=Mt}}function R(q,U,D,mt,St,Mt){var Et,Qt;Qt=mt(q[Et=D(U[0],q)],U);for(var Nt=!1;!Nt;){for(Nt=!0;Et===q.length-1&&(Et=0),!St(U[Qt],q[Et],q[Et+1]);)++Et;for(;0===Qt&&(Qt=U.length-1),!Mt(q[Et],U[Qt],U[Qt-1]);)--Qt,Nt=!1}return{t1:Et,t2:Qt}}function F(q,U){return R(q,U,L,I,d,l)}E.PolyPoint=p,E.isLeft=t,E.ConvexHull=function h(q){var mt,U=q.slice(0).sort(function(Zt,se){return Zt.x!==se.x?se.x-Zt.x:se.y-Zt.y}),D=q.length,Mt=U[0].x;for(mt=1;mt=0&&U[mt].x===dt;mt--);for(Nt=mt+1,mt=Et;++mt<=Nt;)if(!(t(U[0],U[Nt],U[mt])>=0&&mt1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}ft!=Nt&&Qt.push(U[ft]);var Ct=Qt.length;for(mt=Nt;--mt>=Et;)if(!(t(U[ft],U[Et],U[mt])>=0&&mt>Et)){for(;Qt.length>Ct&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}}return Qt},E.clockwiseRadialSweep=function f(q,U,D){U.slice(0).sort(function(mt,St){return Math.atan2(mt.y-q.y,mt.x-q.x)-Math.atan2(St.y-q.y,St.x-q.x)}).forEach(D)},E.tangent_PolyPolyC=R,E.LRtangent_PolyPolyC=function M(q,U){var D=F(U,q);return{t1:D.t2,t2:D.t1}},E.RLtangent_PolyPolyC=F,E.LLtangent_PolyPolyC=function B(q,U){return R(q,U,I,I,l,l)},E.RRtangent_PolyPolyC=function Y(q,U){return R(q,U,L,L,d,d)};var V=function q(U,D){this.t1=U,this.t2=D};E.BiTangent=V;var it=function q(){};E.BiTangents=it;var et=function(q){function U(){return null!==q&&q.apply(this,arguments)||this}return c(U,q),U}(_);E.TVGPoint=et;var st=function q(U,D,mt,St){this.id=U,this.polyid=D,this.polyvertid=mt,this.p=St,St.vv=this};E.VisibilityVertex=st;var K=function(){function q(U,D){this.source=U,this.target=D}return q.prototype.length=function(){var U=this.source.p.x-this.target.p.x,D=this.source.p.y-this.target.p.y;return Math.sqrt(U*U+D*D)},q}();E.VisibilityEdge=K;var X=function(){function q(U,D){if(this.P=U,this.V=[],this.E=[],D)this.V=D.V.slice(0),this.E=D.E.slice(0);else{for(var mt=U.length,St=0;St0&&this.E.push(new K(Mt[Et-1].vv,Nt))}Mt.length>1&&this.E.push(new K(Mt[0].vv,Mt[Mt.length-1].vv))}for(St=0;St0)return!0;return!1},q}();function W(q,U){for(var D=[],mt=1,St=U.length;mt=0&&ie>=0&&ue<0&&xe>=0&&Ue>=0&&Pe<0?St.ll=new V(Mt,Et):se<=0&&ie<=0&&ue>0&&xe<=0&&Ue<=0&&Pe>0?St.rr=new V(Mt,Et):se<=0&&ie>0&&ue<=0&&xe>=0&&Ue<0&&Pe>=0?St.rl=new V(Mt,Et):se>=0&&ie<0&&ue>=0&&xe<=0&&Ue>0&&Pe<=0&&(St.lr=new V(Mt,Et))}return St}function Q(q,U){return!q.every(function(D){return!function H(q,U){for(var D=1,mt=U.length;D0)return!0}return!1}},76767:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};E.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};E.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=R-M+1)}else L[I][R]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();E.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(et,st){return new m(st,f.getBounds(et),f.getChildren(et))}),this.leaves=this.nodes.filter(function(et){return et.leaf}),this.groups=this.nodes.filter(function(et){return!et.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(et){return et.children.forEach(function(st){return g.nodes[st].parent=et})}),this.root={children:[]},this.nodes.forEach(function(et){typeof et.parent>"u"&&(et.parent=g.root,g.root.children.push(et.id)),et.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(et,st){return g.getDepth(et)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(et){return!et.leaf}).forEach(function(et){var st=c.Rectangle.empty();et.children.forEach(function(K){return st=st.union(g.nodes[K].rect)}),et.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(et){return et.pos})),I=this.midPoints(this.rows.map(function(et){return et.pos})),R=L[0],M=L[L.length-1],F=I[0],B=I[I.length-1],Y=this.rows.map(function(et){return{x1:R,x2:M,y1:et.pos,y2:et.pos}}).concat(I.map(function(et){return{x1:R,x2:M,y1:et,y2:et}})),V=this.cols.map(function(et){return{x1:et.pos,x2:et.pos,y1:F,y2:B}}).concat(L.map(function(et){return{x1:et,x2:et,y1:F,y2:B}})),it=Y.concat(V);it.forEach(function(et){return et.verts=[]}),this.verts=[],this.edges=[],Y.forEach(function(et){return V.forEach(function(st){var K=new p(g.verts.length,st.x1,et.y1);et.verts.push(K),st.verts.push(K),g.verts.push(K);for(var X=g.backToFront.length;X-- >0;){var W=g.backToFront[X],at=W.rect,H=Math.abs(K.x-at.cx()),Q=Math.abs(K.y-at.cy());if(H0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&F.push(B={pos:R[0][f],segments:[]}),B.segments.push(R)}return F},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var R=g.map(function(W){return new x.Variable(W[0][h])}),M=[],F=0;F=0&&M.push(new x.Constraint(R[st],R[K],L))}new x.Solver(R,M).solve(),R.forEach(function(W,at){var H=g[at],Q=W.position();H[0][h]=H[1][h]=Q;var nt=u[H.edgeid];H.i>0&&(nt[H.i-1][1][h]=Q),H.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(R=C[I.si+1],F=C[I.si-1],M=L[I.ti-1]):(R=C[I.si+I.length-2],M=C[I.si+I.length],F=L[I.ti+I.length]),l.isLeft(R,M,F)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(K){return u.verts[K]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(K,X){return!(X0&&K.node===C&&st[X-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,R,M,nt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?R-=F/Math.abs(F)*f:M-=B/Math.abs(B)*f,C.routepath+="L "+R+" "+M+" ";var Y=h[L+1],V=Y[0].x,it=Y[0].y;F=Y[1].x-V,B=Y[1].y-it;var X,W,K=l.angleBetween2Lines(I,Y)<0?1:0;Math.abs(F)>0?(X=V+F/Math.abs(F)*f,W=it):(X=V,W=it+B/Math.abs(B)*f);var at=Math.abs(X-R),H=Math.abs(W-M);C.routepath+="A "+at+" "+H+" 0 0 "+K+" "+X+" "+W+" "}else{var Q=[R,M];Math.abs(F)>0?(nt=[R-=F/Math.abs(F)*g,M+u],q=[R,M-u]):(nt=[R+u,M-=B/Math.abs(B)*g],q=[R-u,M]),C.routepath+="L "+R+" "+M+" ",g>0&&(C.arrowpath="M "+Q[0]+" "+Q[1]+" L "+nt[0]+" "+nt[1]+" L "+q[0]+" "+q[1])}}else F=(R=(I=h[0])[1].x)-I[0].x,B=(M=I[1].y)-I[0].y,Q=[R,M],Math.abs(F)>0?(nt=[R-=F/Math.abs(F)*g,M+u],q=[R,M-u]):(nt=[R+u,M-=B/Math.abs(B)*g],q=[R-u,M]),C.routepath+="L "+R+" "+M+" ",g>0&&(C.arrowpath="M "+Q[0]+" "+Q[1]+" L "+nt[0]+" "+nt[1]+" L "+q[0]+" "+q[1]);return C},l}();E.GridRouter=d},30345:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;E.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),R=0,M=0,F=0,B=[];function et(W,at){B=[],I=0,R=0,F=0;for(var H=0;H=W.height&&B[Q].x+B[Q].width+W.width+10-at<=1e-4){H=B[Q];break}B.push(W),void 0!==H?(W.x=H.x+H.width+10,W.y=H.bottom,W.space_left=W.height,W.bottom=W.y,H.space_left-=W.height+10,H.bottom+=W.height+10):(W.y=F,F+=W.height+10,W.x=0,W.bottom=W.y,W.space_left=W.height),W.y+W.height-R>-1e-4&&(R=W.y+W.height-0),W.x+W.width-I>-1e-4&&(I=W.x+W.width-0)}0!=_.length&&(function Y(W){W.forEach(function(H){!function at(H){var Q=Number.MAX_VALUE,nt=Number.MAX_VALUE,q=0,U=0;H.array.forEach(function(D){var mt=typeof D.width<"u"?D.width:L,St=typeof D.height<"u"?D.height:L;mt/=2,St/=2,q=Math.max(D.x+mt,q),Q=Math.min(D.x-mt,Q),U=Math.max(D.y+St,U),nt=Math.min(D.y-St,nt)}),H.width=q-Q,H.height=U-nt}(H)})}(_),function it(W,at){var H=Number.POSITIVE_INFINITY,Q=0;W.sort(function(ft,dt){return dt.height-ft.height});for(var nt=Qt=M=W.reduce(function(ft,dt){return ft.widthM||Et>1e-4;){if(1!=St){var Qt=q-(q-nt)/s_GOLDEN_SECTION;D=et(W,Qt)}if(0!=St){var Nt=nt+(q-nt)/s_GOLDEN_SECTION;mt=et(W,Nt)}if(Mt=Math.abs(Qt-Nt),Et=Math.abs(D-mt),Dmt?(nt=Qt,Qt=Nt,D=mt,St=1):(q=Nt,Nt=Qt,mt=D,St=0),U++>100)break}et(W,Q)}(_),l&&function V(W){W.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(q){H.x+=q.x,H.y+=q.y}),H.x/=at.array.length,H.y/=at.array.length;var nt_x=at.x-(H.x-at.width/2)+u/2-I/2,nt_y=at.y-(H.y-at.height/2)+g/2-R/2;at.array.forEach(function(q){q.x+=nt_x,q.y+=nt_y})})}(_))},E.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=E.EventType||(E.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,R){"number"==typeof I&&((L.leaves[R]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,R){"number"==typeof I&&((L.groups[R]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,R,M){var F=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===R&&(R=!0),void 0===M&&(M=!0);var Q,V=this.nodes().length,it=V+2*this._groups.length,st=this._canvasSize[0],K=this._canvasSize[1],X=new Array(it),W=new Array(it),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Mt,Et){Mt.index=Et,typeof Mt.x>"u"&&(Mt.x=st/2,Mt.y=K/2),X[Et]=Mt.x,W[Et]=Mt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?Q=this._distanceMatrix:(Q=new p.Calculator(it,this._links,u.getSourceIndex,u.getTargetIndex,function(Mt){return F.getLinkLength(Mt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(it,function(){return 2}),this._links.forEach(function(Mt){"number"==typeof Mt.source&&(Mt.source=F._nodes[Mt.source]),"number"==typeof Mt.target&&(Mt.target=F._nodes[Mt.target])}),this._links.forEach(function(Mt){var Et=u.getSourceIndex(Mt),Qt=u.getTargetIndex(Mt);at[Et][Qt]=at[Qt][Et]=Mt.weight||1}));var nt=_.Descent.createSquareMatrix(it,function(Mt,Et){return Q[Mt][Et]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var B=V;this._groups.forEach(function(Et){(function(Et,Qt,Nt,ft){at[Et][Qt]=at[Qt][Et]=Nt,nt[Et][Qt]=nt[Qt][Et]=.1})(B,B+1,F._groupCompactness),X[B]=0,W[B++]=0,X[B]=0,W[B++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var U=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,U=U.concat(x.generateDirectedEdgeConstraints(V,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([X,W],nt),this._descent.locks.clear(),B=0;B0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,U).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,K,M),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Mt,Et){Mt.x=X[Et],Mt.y=W[Et]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,U,!0).projectFunctions(),this._nodes.forEach(function(Mt,Et){X[Et]=Mt.x,W[Et]=Mt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=V,this._descent.scaleSnapByMaxH=V!=it;var St=_.Descent.createSquareMatrix(it,function(Mt,Et){return Mt>=V||Et>=V?at[Mt][Et]:0});this._descent.G=St,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,K,M),R?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,R=this._links.map(function(F){return{source:F.source.index,target:F.target.index}}),M=this._nodes.map(function(F){return{index:F.index}});this._groups.forEach(function(F,B){M.push({index:F.index=I+B})}),this._groups.forEach(function(F,B){typeof F.leaves<"u"&&F.leaves.forEach(function(Y){return R.push({source:F.index,target:Y.index})}),typeof F.groups<"u"&&F.groups.forEach(function(Y){return R.push({source:F.index,target:Y.index})})}),(new u).size(this.size()).nodes(M).links(R).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(F){C[F.index]=M[F.index].x,L[F.index]=M[F.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var R=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(B,Y){B.x=R[Y],B.y=M[Y]});var F=d.separateGraphs(this._nodes,this._links);d.applyPacking(F,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(B,Y){I._descent.x[0][Y]=B.x,I._descent.x[1][Y]=B.y,B.bounds&&(B.bounds.setXCentre(B.x),B.bounds.setYCentre(B.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],R=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},F={x:g.target.x,y:g.target.y},B=R.addPoint(M,g.source.index),Y=R.addPoint(F,g.target.index);R.addEdgeIfVisible(M,F,g.source.index,g.target.index),typeof L<"u"&&L(R);var K=new p.Calculator(R.V.length,R.E,function(nt){return nt.source.id},function(nt){return nt.target.id},function(nt){return nt.length()}).PathFromNodeToNode(B.id,Y.id);if(1===K.length||K.length===R.V.length){var X=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[X.sourceIntersection,X.arrowStart]}else{for(var W=K.length-2,at=R.V[K[W]].p,H=R.V[K[0]].p,Q=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],W);Q>=0;--Q)I.push(R.V[K[Q]].p);I.push(m.makeEdgeTo(H,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();E.Layout=f},86461:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();E.Link3D=p,E.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[B]=Math.random())}C.result[0][R]=I.x,C.result[1][R]=I.y,C.result[2][R]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(B){return B.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(B){return B.source},function(B){return B.target},function(B){return B.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(B,Y){return L[B][Y]}),R=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(B){var Y=B.source,V=B.target;return R[Y][V]=R[V][Y]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=R,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(K){K.index=K.lowlink=g++,C.push(K),K.onStack=!0;for(var X=0,W=K.out;X"u"?(I(at),K.lowlink=Math.min(K.lowlink,at.lowlink)):at.onStack&&(K.lowlink=Math.min(K.lowlink,at.index))}if(K.lowlink===K.index){for(var H=[];C.length&&((at=C.pop()).onStack=!1,H.push(at),at!==K););L.push(H.map(function(Q){return Q.id}))}}for(var R=0;R"u"&&I(st)}return L}Object.defineProperty(E,"__esModule",{value:!0}),E.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},E.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},E.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,R){return I.forEach(function(M){return C[M]=R})});var L=[];return h.forEach(function(I){var R=u.getSourceIndex(I),M=u.getTargetIndex(I);C[R]!==C[M]&&L.push({axis:f,left:R,right:M,gap:u.getMinSeparation(I)})}),L},E.stronglyConnectedComponents=d},33900:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};E.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var R=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof R.gid>"u"?I.source:g[R.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}E.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();E.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();E.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();E.LinkSets=t,E.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],R=L.getGroupHierarchy(I);return I.forEach(function(M){var F=function(B){var Y=M[B];"number"==typeof Y&&(M[B]=h[Y])};F("source"),F("target")}),{groups:R,powerEdges:I}}},88866:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();E.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();E.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var R=C.right===g;I===L.get_child(u)?C.set_child(R,t.single_rotate(g,!u)):C.set_child(R,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var R=t.single_rotate(h,C);f.set_child(L,R),f=R}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var F=u.right===f;t.is_red(M.get_child(L))?u.set_child(F,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(F,t.single_rotate(f,L));var B=u.get_child(F);B.red=!0,h.red=!0,B.left.red=!1,B.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);E.RBTree=m},4068:function(w,E,s){"use strict";var K,c=this&&this.__extends||(K=function(X,W){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var Q in H)H.hasOwnProperty(Q)&&(at[Q]=H[Q])})(X,W)},function(X,W){function at(){this.constructor=X}K(X,W),X.prototype=null===W?Object.create(W):(at.prototype=W.prototype,new at)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(K){return K.bounds=typeof K.leaves<"u"?K.leaves.reduce(function(X,W){return W.bounds.union(X)},p.empty()):p.empty(),typeof K.groups<"u"&&(K.bounds=K.groups.reduce(function(X,W){return m(W).union(X)},K.bounds)),K.bounds=K.bounds.inflate(K.padding),K.bounds}E.computeGroupBounds=m;var p=function(){function K(X,W,at,H){this.x=X,this.X=W,this.y=at,this.Y=H}return K.empty=function(){return new K(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},K.prototype.cx=function(){return(this.x+this.X)/2},K.prototype.cy=function(){return(this.y+this.Y)/2},K.prototype.overlapX=function(X){var W=this.cx(),at=X.cx();return W<=at&&X.x0?at[0]:null},K.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}]},K.lineIntersection=function(X,W,at,H,Q,nt,q,U){var D=at-X,mt=q-Q,St=H-W,Mt=U-nt,Et=Mt*D-mt*St;if(0==Et)return null;var Qt=X-Q,Nt=W-nt,dt=(mt*Nt-Mt*Qt)/Et,Zt=(D*Nt-St*Qt)/Et;return dt>=0&&dt<=1&&Zt>=0&&Zt<=1?{x:X+dt*D,y:W+dt*St}:null},K.prototype.inflate=function(X){return new K(this.x-X,this.X+X,this.y-X,this.Y+X)},K}();E.Rectangle=p,E.makeEdgeBetween=function t(K,X,W){var at=K.rayIntersection(X.cx(),X.cy())||{x:K.cx(),y:K.cy()},H=X.rayIntersection(K.cx(),K.cy())||{x:X.cx(),y:X.cy()},Q=H.x-at.x,nt=H.y-at.y,q=Math.sqrt(Q*Q+nt*nt),U=q-W;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+U*Q/q,y:at.y+U*nt/q}}},E.makeEdgeTo=function d(K,X,W){var at=X.rayIntersection(K.x,K.y);at||(at={x:X.cx(),y:X.cy()});var H=at.x-K.x,Q=at.y-K.y,nt=Math.sqrt(H*H+Q*Q);return{x:at.x-W*H/nt,y:at.y-W*Q/nt}};var l=function K(X,W,at){this.v=X,this.r=W,this.pos=at,this.prev=u(),this.next=u()},h=function K(X,W,at){this.isOpen=X,this.v=W,this.pos=at};function f(K,X){return K.pos>X.pos?1:K.pos0&&(K[at].insert(Q),Q[H].insert(K))};W("next","prev"),W("prev","next")}};function L(K,X,W,at){void 0===at&&(at=!1);var H=K.padding,Q=typeof K.groups<"u"?K.groups.length:0,nt=typeof K.leaves<"u"?K.leaves.length:0,q=Q?K.groups.reduce(function(ie,ue){return ie.concat(L(ue,X,W,!0))},[]):[],U=(at?2:0)+nt+Q,D=new Array(U),mt=new Array(U),St=0,Mt=function(ie,ue){mt[St]=ie,D[St++]=ue};if(at){var Et=K.bounds,Qt=X.getCentre(Et),Nt=X.getSize(Et)/2,ft=X.getOpen(Et),dt=X.getClose(Et),Ct=Qt-Nt+H/2,Zt=Qt+Nt-H/2;K.minVar.desiredPosition=Ct,Mt(X.makeRect(ft,dt,Ct,H),K.minVar),K.maxVar.desiredPosition=Zt,Mt(X.makeRect(ft,dt,Zt,H),K.maxVar)}nt&&K.leaves.forEach(function(ie){return Mt(ie.bounds,ie.variable)}),Q&&K.groups.forEach(function(ie){var ue=ie.bounds;Mt(X.makeRect(X.getOpen(ue),X.getClose(ue),X.getCentre(ue),X.getSize(ue)),ie.minVar)});var se=I(mt,D,X,W);return Q&&(D.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),se.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),K.groups.forEach(function(ie){var ue=(ie.padding-X.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(xe){return xe.gap+=ue}),ie.minVar.cOut.forEach(function(xe){xe.left=ie.maxVar,xe.gap+=ue})})),q.concat(se)}function I(K,X,W,at){var H,Q=K.length,nt=2*Q;console.assert(X.length>=Q);var q=new Array(nt);for(H=0;Hq[at]&&(q[at]=U)}nt=q})}},K.prototype.createAlignment=function(X){var W=this,at=this.nodes[X.offsets[0].node].variable;this.makeFeasible(X);var H="x"===X.axis?this.xConstraints:this.yConstraints;X.offsets.slice(1).forEach(function(Q){H.push(new x.Constraint(at,W.nodes[Q.node].variable,Q.offset,!0))})},K.prototype.createConstraints=function(X){var W=this,at=function(H){return typeof H.type>"u"||"separation"===H.type};this.xConstraints=X.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),this.yConstraints=X.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),X.filter(function(H){return"alignment"===H.type}).forEach(function(H){return W.createAlignment(H)})},K.prototype.setupVariablesAndBounds=function(X,W,at,H){this.nodes.forEach(function(Q,nt){Q.fixed?(Q.variable.weight=Q.fixedWeight?Q.fixedWeight:1e3,at[nt]=H(Q)):Q.variable.weight=1;var q=(Q.width||0)/2,U=(Q.height||0)/2,D=X[nt],mt=W[nt];Q.bounds=new p(D-q,D+q,mt-U,mt+U)})},K.prototype.xProject=function(X,W,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(X,W,X,at,function(H){return H.px},this.xConstraints,Y,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var Q=at[H.minVar.index]=H.minVar.position(),nt=at[H.maxVar.index]=H.maxVar.position(),q=H.padding/2;H.bounds.x=Q-q,H.bounds.X=nt+q})},K.prototype.yProject=function(X,W,at){!this.rootGroup&&!this.yConstraints||this.project(X,W,W,at,function(H){return H.py},this.yConstraints,V,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var Q=at[H.minVar.index]=H.minVar.position(),nt=at[H.maxVar.index]=H.maxVar.position(),q=H.padding/2;H.bounds.y=Q-q,H.bounds.Y=nt+q})},K.prototype.projectFunctions=function(){var X=this;return[function(W,at,H){return X.xProject(W,at,H)},function(W,at,H){return X.yProject(W,at,H)}]},K.prototype.project=function(X,W,at,H,Q,nt,q,U,D){this.setupVariablesAndBounds(X,W,H,Q),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),nt=nt.concat(q(this.rootGroup))),this.solve(this.variables,nt,at,H),this.nodes.forEach(U),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(D),m(this.rootGroup))},K.prototype.solve=function(X,W,at,H){var Q=new x.Solver(X,W);Q.setStartingPositions(at),Q.setDesiredPositions(H),Q.solve()},K}();E.Projection=st},33858:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),R=u(C);this.neighbours[L].neighbours.push(new x(I,R)),this.neighbours[I].neighbours.push(new x(L,R))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(B,Y){return B.q=Y}))}}return u},t}();E.Calculator=p},98237:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();E.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();E.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();E.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();E.Solver=p,E.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(et){return new x(et.desiredCenter)}),u=[],g=d.length,C=0;C{c.r(z),c.d(z,{FacilitiesModule:()=>Kn});var m=c(36895),v=c(94364),X=c(86353),Q=c(36769),gt=c(69024),f=c(32105),p=c(9244),d=c(35382),G=c(74281),Tt=c(54037),St=c(22158),Ct=c(82722),t=c(94650),u=c(65412),At=c(77968),It=c(15003),R=c(97392),C=c(4859),T=c(51572),w=c(10266),W=c(61283),bt=c(4235),h=c(89383);function yt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function vt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function xt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const Dt=function(){return{color:"black"}},Et=function(i){return["/facilities",i]};function Lt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,vt,3,0,"button",10),t.YNc(11,xt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,Dt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,Et,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 Ot=(()=>{class i extends((0,St.T)()){constructor(e,s,a,o,r,_,S,b,E){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=_,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,Ct.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:G.Eg.FACILITY},this.dialog.open(G.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(Tt.Y,e).afterClosed().subscribe(a=>{a&&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(At.D),t.Y36(gt.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(It.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,yt,1,0,"mat-spinner",1),t.YNc(3,Lt,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))},dependencies:[m.O5,m.PC,v.yS,R.Hw,C.lW,T.Ou,w.gM,W.A,bt.W,h.X$],data:{animation:[Q.Ji]}}),i})();var tt=c(71135);function Zt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Rt(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 Ft=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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,Zt,1,0,"mat-spinner",0),t.YNc(1,Rt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,tt.L]}),i})();var Nt=c(34904),kt=c(37380),wt=c(98918),Yt=c(4675);let Ut=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[W.A],data:{animation:[Q.Ji]}}),i})();function Mt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Jt(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 Ht=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}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,Mt,1,0,"mat-spinner",0),t.YNc(1,Jt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,tt.L]}),i})();var Y=c(3848),Qt=c(19191),Gt=c(12651);function qt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Pt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Vt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Bt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function jt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Vt,3,6,"ng-template",1),t.YNc(2,Bt,1,3,"ng-template",2),t.qZA())}let Kt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,qt,2,3,"ng-template",1),t.YNc(7,Pt,1,2,"ng-template",2),t.qZA(),t.YNc(8,jt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[m.O5,Y.SP,Y.uD,Y.uX,Y.Vc,Qt.Y,Gt.t,h.X$]}),i})();var $t=c(60113),zt=c(16500),Xt=c(92090),Wt=c(258),g=c(24006),U=c(68675),M=c(54004),q=c(19516),et=c(47957),it=c(3238),F=c(59549),P=c(284),L=c(56709),st=c(31359);function te(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,te,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ae(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ae,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function le(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,oe,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,ee,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,se,7,9,"mat-form-field",4),t.YNc(6,ne,7,9,"mat-form-field",4),t.YNc(7,le,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 re(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ue=(()=>{class i{constructor(e,s,a,o,r,_,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=_,this.entityStorageService=S,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,U.O)(""),(0,M.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,U.O)(""),(0,M.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,U.O)(""),(0,M.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,U.O)(""),(0,M.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ce,8,7,"div",1),t.YNc(5,re,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[m.mk,m.sg,m.O5,et.XC,et.ZL,it.ey,F.KE,P.Nt,g.Fj,g.JJ,g.oH,L.oG,m.Ov,h.X$,st.d]}),i})();var at=c(28361);let nt=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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)},dependencies:[at.s]}),i})();var x=c(10036),A=c(95017),pe=c(89466),de=c(84385);function _e(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function me(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function he(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function fe(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ge(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function Te(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function Se(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Ce(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,Se,3,3,"mat-error",13),t.YNc(3,Ce,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 Ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function be(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,me,3,3,"mat-option",10),t.YNc(8,he,3,3,"mat-option",11),t.YNc(9,fe,2,2,"mat-option",12),t.qZA(),t.YNc(10,ge,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,Te,2,2,"mat-option",12),t.qZA()(),t.YNc(18,Ae,4,4,"mat-form-field",16),t.YNc(19,Ie,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,be,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let ve=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_e,1,0,"mat-spinner",1),t.YNc(5,ye,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[m.sg,m.O5,it.ey,F.TO,F.KE,P.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,C.lW,L.oG,u.uh,u.xY,u.H8,de.gD,T.Ou,h.X$],data:{animation:[Q.BQ]}}),i})();var ot=c(70242),O=c(98380),Z=c(96214),D=c(7434);function xe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function De(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Ze(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Re(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,a,o,r,_,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=_,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(ve,e).afterClosed().subscribe(a=>{a&&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(pe.u,e).afterClosed().subscribe(a=>{a&&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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xe,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,De,3,3,"button",3),t.YNc(7,Ee,3,4,"button",4),t.YNc(8,Le,5,4,"button",5),t.YNc(9,Oe,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,Ze,1,0,"mat-spinner",7),t.YNc(12,Re,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,C.lW,T.Ou,ot.q,O.w,Z.t,D.L,h.X$]}),i})();var V=c(23256);function Fe(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let ke=(()=>{class i{constructor(e,s,a,o,r,_){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=_,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],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,Fe,1,0,"mat-spinner",1),t.YNc(5,Ne,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,D.L,V.Q,h.X$]}),i})();var l=c(30671);function we(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ye(i,n){1&i&&t._UZ(0,"th",15)}function Ue(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 Me(i,n){1&i&&t._UZ(0,"tr",17)}function Je(i,n){1&i&&t._UZ(0,"tr",18)}function He(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ye,1,0,"th",11),t.YNc(10,Ue,2,1,"td",12),t.BQk(),t.YNc(11,Me,1,0,"tr",13),t.YNc(12,Je,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Qe=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(_=>this.successMessage=_)}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,we,1,0,"mat-spinner",1),t.YNc(5,He,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[m.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();function Ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Pe(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Ve(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let ct=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(ke,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Qe,e).afterClosed().subscribe(a=>{a&&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,Ge,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,Pe,1,0,"mat-spinner",5),t.YNc(8,Ve,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,T.Ou,Z.t,D.L,V.Q,h.X$]}),i})();var B=c(50301);function Be(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function je(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Ke(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function $e(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,je,3,3,"mat-error",9),t.YNc(6,Ke,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let ze=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let _=0;_{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new 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,Xe,1,0,"mat-spinner",1),t.YNc(5,si,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[m.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var I=c(96308),N=c(18750),rt=c(64597),k=c(9185);function ni(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}function oi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function li(i,n){1&i&&(t.ynx(0,12),t.YNc(1,ni,2,3,"th",13),t.YNc(2,oi,2,2,"td",14),t.BQk())}function ci(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function ri(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function ui(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function pi(i,n){if(1&i&&(t.TgZ(0,"td",21),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.hostname)),t.xp6(2),t.hij(" ",e.hostname," ")}}function di(i,n){1&i&&t._UZ(0,"tr",22)}const ut=function(i,n){return["/facilities",i,"hosts",n]};function _i(i,n){if(1&i&&t._UZ(0,"tr",23),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ut,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ut,s.facilityId,e.id))}}function mi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function hi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}const fi=function(i){return{all:i}};let pt=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:15,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,li,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,ci,3,3,"th",5),t.YNc(7,ri,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,ui,3,3,"th",5),t.YNc(10,pi,3,4,"td",8),t.BQk(),t.YNc(11,di,1,0,"tr",9),t.YNc(12,_i,1,8,"tr",10),t.qZA()()(),t.YNc(13,mi,3,3,"perun-web-apps-alert",11),t.YNc(14,hi,3,3,"perun-web-apps-alert",11)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,fi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[m.O5,v.rH,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,B.YH,N.l,h.X$,rt.R,k.I],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function gi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function Ti(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function Si(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Ci(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let dt=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ze,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ai,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(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")(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,gi,3,3,"button",2),t.YNc(6,Ti,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,Si,1,0,"mat-spinner",5),t.YNc(9,Ci,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,T.Ou,pt,Z.t,D.L,h.X$]}),i})();function Ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}function Ii(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function bi(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Ai,2,3,"th",14),t.YNc(2,Ii,2,2,"td",15),t.BQk())}function yi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function vi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function xi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Di(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function Ei(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function Li(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function Oi(i,n){1&i&&t._UZ(0,"tr",23)}function Zi(i,n){1&i&&t._UZ(0,"tr",24)}function Ri(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Fi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}const Ni=function(i){return{all:i}};let ki=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,bi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,yi,3,3,"th",5),t.YNc(7,vi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,xi,3,3,"th",5),t.YNc(10,Di,3,3,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ei,3,3,"th",5),t.YNc(13,Li,2,1,"td",8),t.BQk(),t.YNc(14,Oi,1,0,"tr",10),t.YNc(15,Zi,1,0,"tr",11),t.qZA()()(),t.YNc(16,Ri,3,3,"perun-web-apps-alert",12),t.YNc(17,Fi,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Ni,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[m.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$,st.d,k.I]}),i})();function wi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function Yi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ui=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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")(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,wi,1,0,"mat-spinner",3),t.YNc(8,Yi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,ki,Z.t,D.L,h.X$]}),i})();var Mi=c(33604),Ji=c(61365),Hi=c(71103),_t=c(53984);const Qi=["list"];function Gi(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function qi(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Pi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(G.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Hi.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ji.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(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(Qi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Gi,1,0,"mat-spinner",5),t.YNc(15,qi,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,T.Ou,Z.t,_t.p,h.X$]}),i})();function Vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}function Bi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ji(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Vi,2,3,"th",14),t.YNc(2,Bi,2,2,"td",15),t.BQk())}function Ki(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function $i(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 zi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Xi(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Wi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function ts(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function es(i,n){1&i&&t._UZ(0,"tr",23)}function is(i,n){1&i&&t._UZ(0,"tr",24)}function ss(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function as(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}const ns=function(i){return{all:i}};let os=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ji,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ki,3,3,"th",5),t.YNc(7,$i,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,zi,3,3,"th",5),t.YNc(10,Xi,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Wi,3,3,"th",5),t.YNc(13,ts,2,1,"td",8),t.BQk(),t.YNc(14,es,1,0,"tr",10),t.YNc(15,is,1,0,"tr",11),t.qZA()()(),t.YNc(16,ss,3,3,"perun-web-apps-alert",12),t.YNc(17,as,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ns,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[m.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$,k.I]}),i})();function ls(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function cs(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let rs=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(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")(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,ls,1,0,"mat-spinner",3),t.YNc(7,cs,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,os,Z.t,D.L,h.X$]}),i})();var us=c(20057),ps=c(49546);function ds(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function _s(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function ms(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 hs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function fs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function gs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Ts(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ss(i,n){1&i&&t._UZ(0,"tr",19)}function Cs(i,n){1&i&&t._UZ(0,"tr",20)}function As(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,_s,3,3,"th",11),t.YNc(10,ms,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,hs,3,3,"th",11),t.YNc(13,fs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,gs,3,3,"th",11),t.YNc(16,Ts,3,4,"td",12),t.BQk(),t.YNc(17,Ss,1,0,"tr",15),t.YNc(18,Cs,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let mt=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new 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,ds,1,0,"mat-spinner",1),t.YNc(5,As,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[m.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,m.uU,h.X$]}),i})();var Is=c(62109);function bs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ds(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,ys,4,9,"mat-checkbox",8),t.YNc(6,vs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,xs,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 Es=(()=>{class i{constructor(e,s,a,o,r,_,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=_,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,bs,1,0,"mat-spinner",1),t.YNc(5,Ds,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[m.O5,C.lW,L.oG,u.uh,u.xY,u.H8,T.Ou,w.gM,Is.C,h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function Ls(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Os(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Zs=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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,Ls,1,0,"mat-spinner",1),t.YNc(5,Os,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[m.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var j=c(28255);let Rs=(()=>{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 Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)("aria-label",s.checkboxLabel())}}function Ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return a&&_.selection.toggle(r),t.KtG(_.selectionChange.emit())}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function ks(i,n){1&i&&(t.ynx(0,16),t.YNc(1,Fs,2,3,"th",17),t.YNc(2,Ns,2,2,"td",18),t.BQk())}function ws(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Ys(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Us(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ms(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,Ys,2,1,"div",25),t.YNc(2,Us,2,0,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Js(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Hs(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",e.service.name),t.xp6(1),t.hij(" ",e.service.name," ")}}function Qs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Gs(i,n){1&i&&(t.TgZ(0,"mat-icon",28),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function qs(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Gs,3,3,"mat-icon",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function Ps(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function Vs(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Bs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function js(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Ks(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function $s(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,js,3,4,"div",25),t.YNc(2,Ks,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function zs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Xs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Ws(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ta(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,Xs,3,4,"div",25),t.YNc(2,Ws,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function ea(i,n){1&i&&t._UZ(0,"tr",29)}const ht=function(i,n){return["/facilities",i,"services-status",n]};function ia(i,n){if(1&i&&t._UZ(0,"tr",30),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,ht,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,ht,e.facility.id,e.taskId))}}function sa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function aa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}const na=function(i){return{all:i}};let oa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let _="";return Object.values(r).forEach(S=>{"object"!=typeof S?_=_+" "+String(S):null!==S&&(_=_+" "+o(S))}),_.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ks,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,ws,3,3,"th",5),t.YNc(7,Ms,3,2,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Js,3,3,"th",5),t.YNc(10,Hs,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Qs,3,3,"th",5),t.YNc(13,qs,3,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ps,3,3,"th",5),t.YNc(16,Vs,3,3,"td",8),t.BQk(),t.ynx(17,11),t.YNc(18,Bs,3,3,"th",5),t.YNc(19,$s,3,2,"td",8),t.BQk(),t.ynx(20,12),t.YNc(21,zs,3,3,"th",5),t.YNc(22,ta,3,2,"td",8),t.BQk(),t.YNc(23,ea,1,0,"tr",13),t.YNc(24,ia,1,18,"tr",14),t.qZA()()(),t.YNc(25,sa,3,3,"perun-web-apps-alert",15),t.YNc(26,aa,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,na,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(20),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[m.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,w.gM,N.l,B.YH,m.uU,h.X$,Rs,k.I],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 la(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function ca(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ra(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ua(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function pa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function da(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function _a(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let ma=(()=>{class i{constructor(e,s,a,o,r,_,S,b,E){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=_,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(mt,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(Zs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(Es,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")(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,la,3,4,"button",2),t.YNc(6,ca,3,4,"button",2),t.YNc(7,ra,3,4,"button",3),t.YNc(8,ua,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,pa,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,da,1,0,"mat-spinner",9),t.YNc(17,_a,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,T.Ou,w.gM,j.VK,j.OP,j.p6,Z.t,D.L,oa,h.X$]}),i})();var ha=c(25610),fa=c(76023);function ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}function Ta(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Sa(i,n){1&i&&(t.ynx(0,18),t.YNc(1,ga,2,3,"th",19),t.YNc(2,Ta,2,2,"td",20),t.BQk())}function Ca(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function Aa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Ia(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function ba(i,n){if(1&i&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.destination.destination)),t.xp6(2),t.hij(" ",e.destination.destination," ")}}function ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function va(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function xa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function Da(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function Ea(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function La(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Oa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Za(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ra(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Fa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function Na(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ka(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function wa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,ka,3,1,"span",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function Ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Ma(i,n){1&i&&t._UZ(0,"tr",28)}function Ja(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Ha(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}const Ga=function(i){return{all:i}};let qa=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:36,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Sa,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ca,3,3,"th",5),t.YNc(7,Aa,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ia,3,3,"th",5),t.YNc(10,ba,3,4,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,ya,3,3,"th",5),t.YNc(13,va,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,xa,3,3,"th",5),t.YNc(16,Da,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Ea,3,3,"th",5),t.YNc(19,La,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Oa,3,3,"th",5),t.YNc(22,Za,3,4,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Ra,3,3,"th",5),t.YNc(25,Fa,2,1,"td",6),t.BQk(),t.ynx(26,13),t.YNc(27,Na,3,3,"th",5),t.YNc(28,wa,2,1,"td",6),t.BQk(),t.ynx(29,14),t.YNc(30,Ya,3,3,"th",5),t.YNc(31,Ua,2,1,"td",6),t.BQk(),t.YNc(32,Ma,1,0,"tr",15),t.YNc(33,Ja,1,6,"tr",16),t.qZA()()(),t.YNc(34,Ha,3,3,"perun-web-apps-alert",17),t.YNc(35,Qa,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Ga,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(29),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[m.sg,m.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.YE,I.nU,O.w,N.l,m.uU,h.X$,rt.R,k.I],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Pa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Va(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Ba(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let ja=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(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.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Pa,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,Va,1,0,"mat-spinner",5),t.YNc(9,Ba,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,T.Ou,Z.t,D.L,qa,h.X$]}),i})();var Ka=c(20872);let $a=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})(),za=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();function Xa(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Wa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Wa,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 en=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xa,3,3,"div",1),t.YNc(5,tn,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();var J=c(86257),H=c(37084),sn=c(60205),an=c(90439),nn=c(30540);const on=["stepper"];function ln(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function cn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function rn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function un(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function pn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const dn=function(){return["select","id","name","enabled","description"]};function _n(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,dn))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function mn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function hn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function fn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function gn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function Tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,hn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,fn,1,0,"mat-spinner",25),t.YNc(15,gn,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 Sn(i,n){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 An(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,Cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function In(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function bn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function yn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function vn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const xn=function(){return["id","name","contact","type"]};function Dn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,xn))("owners",e.owners)}}function En(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Ln=function(){return["id","name"]};function On(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,Ln))("hosts",e.hosts)}}function Zn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Rn=function(){return["id","name","enabled","script","description"]},Fn=function(){return["id","displayName","value","description"]},Nn=function(){return["destinationId","service","warn","destination","type","propagationType"]},kn=function(){return["id","vo","name","description"]},wn=function(){return["id","name","email","logins","organization"]};function Yn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,vn,1,0,"mat-spinner",25),t.YNc(11,Dn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,En,1,0,"mat-spinner",25),t.YNc(22,On,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Zn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Rn))("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,Fn))("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,Nn))("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,kn))("displayedUserColumns",t.DdM(75,wn))}}function Un(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,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 Mn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Jn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Hn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Qn=(()=>{class i{constructor(e,s,a,o,r,_,S,b,E,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=_,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.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe($=>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(en,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(_=>s.add(_))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(_=>_.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(_=>_.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{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({next:()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1},error:()=>this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),_=this.setDiff(o,a);return new Set([...r,..._])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(_=>a.add(_))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open($a,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(za,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(on,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ln,2,3,"ng-template",4),t.YNc(8,cn,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,rn,2,3,"ng-template",4),t.YNc(11,un,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,pn,2,3,"ng-template",4),t.YNc(14,_n,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,mn,2,3,"ng-template",4),t.YNc(17,Tn,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,Sn,2,3,"ng-template",4),t.YNc(20,An,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,In,2,3,"ng-template",4),t.YNc(23,bn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,yn,2,3,"ng-template",4),t.YNc(26,Un,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,Mn,3,3,"button",11),t.YNc(32,Jn,3,7,"button",12),t.YNc(33,Hn,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[m.O5,R.Hw,C.lW,T.Ou,J.C0,J.VY,J.Vq,J.BY,H.pp,H.ib,H.yz,H.yK,at.s,ot.q,pt,sn.Q,O.w,D.L,_t.p,V.Q,an.F,nn.J,nt,lt,ct,dt,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})(),ft=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var K=c(71992);const Gn=[{path:"",component:X.P,canActivateChild:[K.a],children:[{path:"",component:X.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Ot,canActivateChild:[K.a],children:[{path:"",component:Ft,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Kt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Nt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:ha._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:kt.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:ma,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:ja,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ue,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:lt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:dt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Pi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:Ut,children:[{path:"",component:Ht,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:ct,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:nt,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:rs,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ui,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Qn,canActivate:[ft],canDeactivate:[ft]}]},{path:":facilityId/resources/:resourceId",component:wt.b,canActivateChild:[K.a],children:[{path:"",component:Yt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:Xt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:Wt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ps.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:fa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Ka.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:$t.t,children:[{path:"",component:zt.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:us.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let qn=(()=>{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(Gn),v.Bz]}),i})();var Pn=c(14264),Vn=c(63189),Bn=c(46374),jn=c(82745);let Kn=(()=>{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,qn,Pn.m,Vn.r,Mi.ez,q.d4,Bn.UsersModule,jn.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js b/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js deleted file mode 100644 index 08f16c0f7..000000000 --- a/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Un,$,c)=>{c.r($),c.d($,{FacilitiesModule:()=>Yn});var _=c(36895),v=c(94364),z=c(86353),H=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(32080),Q=c(74281),ft=c(54037),gt=c(22158),Tt=c(82722),t=c(94650),u=c(65412),St=c(77968),Ct=c(15003),R=c(97392),C=c(4859),T=c(51572),k=c(10266),X=c(61283),At=c(4235),h=c(89383);function It(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function yt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const vt=function(){return{color:"black"}},xt=function(i){return["/facilities",i]};function Et(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._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,yt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,vt)),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 Dt=(()=>{class i extends((0,gt.T)()){constructor(e,s,a,o,r,m,S,b,D){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=D,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(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:Q.Eg.FACILITY},this.dialog.open(Q.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(ft.Y,e).afterClosed().subscribe(a=>{a&&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(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(v.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,Et,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))},dependencies:[_.O5,_.PC,v.yS,R.Hw,C.lW,T.Ou,k.gM,X.A,At.W,h.X$],data:{animation:[H.Ji]}}),i})();var W=c(71135);function Lt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ot(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 Zt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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,Lt,1,0,"mat-spinner",0),t.YNc(1,Ot,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,W.L]}),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")},dependencies:[X.A],data:{animation:[H.Ji]}}),i})();function Yt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(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 Mt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}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))},dependencies:[_.O5,T.Ou,W.L]}),i})();var w=c(3848),Jt=c(19191),Ht=c(12651);function Qt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Gt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Pt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function qt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Vt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,qt,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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Qt,2,3,"ng-template",1),t.YNc(7,Gt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Vt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[_.O5,w.SP,w.uD,w.uX,w.Vc,Jt.Y,Ht.t,h.X$]}),i})();var jt=c(60113),Kt=c(16500),$t=c(92090),zt=c(258),g=c(24006),Y=c(68675),U=c(54004),G=c(19516),tt=c(47957),et=c(3238),F=c(59549),P=c(284),L=c(56709),it=c(31359);function Xt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Wt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Xt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function te(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ae(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Wt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,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,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ce=(()=>{class i{constructor(e,s,a,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(G.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")(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))},dependencies:[_.mk,_.sg,_.O5,tt.XC,tt.ZL,et.ey,F.KE,P.Nt,g.Fj,g.JJ,g.oH,L.oG,_.Ov,h.X$,it.d]}),i})();var st=c(28361);let at=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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)},dependencies:[st.s]}),i})();var x=c(10036),A=c(95017),re=c(89466),ue=c(84385);function pe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function me(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _e(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function fe(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Te(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Se(i,n){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,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,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(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),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")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let be=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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")(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)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[_.sg,_.O5,et.ey,F.TO,F.KE,P.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,C.lW,L.oG,u.uh,u.xY,u.H8,ue.gD,T.Ou,h.X$],data:{animation:[H.BQ]}}),i})();var nt=c(70242),O=c(98380),Z=c(96214),E=c(7434);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.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function xe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function De(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Le(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Oe(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let ot=(()=>{class i{constructor(e,s,a,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,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(a=>{a&&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(a=>{a&&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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ye,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,ve,3,3,"button",3),t.YNc(7,xe,3,4,"button",4),t.YNc(8,Ee,5,4,"button",5),t.YNc(9,De,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,Le,1,0,"mat-spinner",7),t.YNc(12,Oe,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,R.Hw,C.lW,T.Ou,nt.q,O.w,Z.t,E.L,h.X$]}),i})();var q=c(23256);function Ze(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Fe=(()=>{class i{constructor(e,s,a,o,r,m){this.dialogRef=e,this.data=s,this.notificator=a,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,Ze,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))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,E.L,q.Q,h.X$]}),i})();var l=c(30671);function Ne(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,n){1&i&&t._UZ(0,"th",15)}function we(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 Ye(i,n){1&i&&t._UZ(0,"tr",17)}function Ue(i,n){1&i&&t._UZ(0,"tr",18)}function Me(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,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()()),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,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,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)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();function He(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Ge(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Fe,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Je,e).afterClosed().subscribe(a=>{a&&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,He,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,Ge,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))},dependencies:[_.O5,C.lW,T.Ou,Z.t,E.L,q.Q,h.X$]}),i})();var V=c(50301);function qe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ve(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Be(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function je(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ve,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()()),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 Ke=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new 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,$e,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var I=c(96308),N=c(18750);function si(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",14)(1,"mat-checkbox",15),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,n){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,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,n){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,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.hostname)}}function ri(i,n){1&i&&t._UZ(0,"tr",21)}const ct=function(i,n){return["/facilities",i,"hosts",n]};function ui(i,n){if(1&i&&t._UZ(0,"tr",22),2&i){const e=n.$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,n){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,n){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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.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.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))},dependencies:[_.O5,v.rH,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,V.YH,N.l,h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function hi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ut=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Ke,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ii,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(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")(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))},dependencies:[_.O5,C.lW,T.Ou,rt,Z.t,E.L,h.X$]}),i})();function gi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(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.hij(" ",e[1].id," ")}}function Ai(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function bi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function yi(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[0].description," ")}}function vi(i,n){1&i&&t._UZ(0,"tr",22)}function xi(i,n){1&i&&t._UZ(0,"tr",23)}function Ei(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Di(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Li=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.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,yi,2,1,"td",10),t.BQk(),t.YNc(15,vi,1,0,"tr",12),t.YNc(16,xi,1,0,"tr",13),t.qZA()()(),t.YNc(17,Ei,3,3,"perun-web-apps-alert",14),t.YNc(18,Di,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))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$,it.d]}),i})();function Oi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function Zi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ri=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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")(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,Oi,1,0,"mat-spinner",3),t.YNc(8,Zi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,Li,Z.t,E.L,h.X$]}),i})();var Fi=c(33604),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Mi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(Q.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(ki.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ni.k,e).afterClosed().subscribe(a=>{a&&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(wi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,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))},dependencies:[_.O5,C.lW,T.Ou,Z.t,pt.p,h.X$]}),i})();function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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 Hi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Qi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Gi(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.hij(" ",e.id," ")}}function Pi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function qi(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.Oqu(e.name)}}function Vi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(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.Oqu(e.description)}}function ji(i,n){1&i&&t._UZ(0,"tr",22)}function Ki(i,n){1&i&&t._UZ(0,"tr",23)}function $i(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,Hi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Qi,3,3,"th",7),t.YNc(8,Gi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,qi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Vi,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,Ki,1,0,"tr",13),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))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$]}),i})();function Wi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let es=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(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")(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,Wi,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))},dependencies:[_.O5,T.Ou,Xi,Z.t,E.L,h.X$]}),i})();var is=c(20057),ss=c(49546);function as(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function os(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 ls(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function cs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function rs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function us(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,n){1&i&&t._UZ(0,"tr",19)}function ds(i,n){1&i&&t._UZ(0,"tr",20)}function ms(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,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()()),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,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,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)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.uU,h.X$]}),i})();var _s=c(62109);function hs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ss(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,fs,4,9,"mat-checkbox",8),t.YNc(6,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,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,a,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,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)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[_.O5,C.lW,L.oG,u.uh,u.xY,u.H8,T.Ou,k.gM,_s.C,h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var B=c(28255);let ys=(()=>{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 vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),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,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(1,"mat-checkbox",21),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return a&&m.selection.toggle(r),t.KtG(m.selectionChange.emit())}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function Es(i,n){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 Ds(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Ls(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Os(i,n){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Ds,2,1,"div",24),t.YNc(2,Ls,2,0,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Zs(i,n){1&i&&(t.TgZ(0,"th",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,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.service.name)}}function Fs(i,n){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,n){1&i&&(t.TgZ(0,"mat-icon",27),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ks(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.YNc(2,Ns,3,3,"mat-icon",26),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ws(i,n){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 Ys(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Us(i,n){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 Ms(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Js(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Hs(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Ms,3,4,"div",24),t.YNc(2,Js,3,3,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function Qs(i,n){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 Gs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Ps(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function qs(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Gs,3,4,"div",24),t.YNc(2,Ps,3,3,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,n){1&i&&t._UZ(0,"tr",28)}const mt=function(i,n){return["/facilities",i,"services-status",n]};function Bs(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function js(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ks(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.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){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.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 a=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(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,vs,2,3,"th",4),t.YNc(5,xs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Es,3,3,"th",7),t.YNc(8,Os,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Zs,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,ks,3,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ws,3,3,"th",7),t.YNc(17,Ys,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Us,3,3,"th",7),t.YNc(20,Hs,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,Qs,3,3,"th",7),t.YNc(23,qs,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Bs,1,18,"tr",16),t.qZA()()(),t.YNc(26,js,3,3,"perun-web-apps-alert",17),t.YNc(27,Ks,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))},dependencies:[_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,k.gM,N.l,V.YH,_.uU,h.X$,ys],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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ta(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function ia(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let aa=(()=>{class i{constructor(e,s,a,o,r,m,S,b,D){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=D,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(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(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(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")(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,Xs,3,4,"button",2),t.YNc(7,Ws,3,4,"button",3),t.YNc(8,ta,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ea,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ia,1,0,"mat-spinner",9),t.YNc(17,sa,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,k.gM,B.VK,B.OP,B.p6,Z.t,E.L,$s,h.X$]}),i})();var na=c(25610),oa=c(76023);function la(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",20)(1,"mat-checkbox",21),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),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 ca(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ra(i,n){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 ua(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function pa(i,n){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 da(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.destination," ")}}function ma(i,n){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 _a(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function ha(i,n){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 fa(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function ga(i,n){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 Ta(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Sa(i,n){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 Ca(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Aa(i,n){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 Ia(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function ba(i,n){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 ya(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ya,3,1,"span",26),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function xa(i,n){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 Ea(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Da(i,n){1&i&&t._UZ(0,"tr",27)}function La(i,n){if(1&i&&t._UZ(0,"tr",28),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Oa(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,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Za(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Ra=(()=>{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}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.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 a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,la,2,3,"th",4),t.YNc(5,ca,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ra,3,3,"th",7),t.YNc(8,ua,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,pa,3,3,"th",7),t.YNc(11,da,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,ma,3,3,"th",7),t.YNc(14,_a,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,ha,3,3,"th",7),t.YNc(17,fa,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,ga,3,3,"th",7),t.YNc(20,Ta,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sa,3,3,"th",7),t.YNc(23,Ca,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Aa,3,3,"th",7),t.YNc(26,Ia,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,ba,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,xa,3,3,"th",7),t.YNc(32,Ea,2,1,"td",8),t.BQk(),t.YNc(33,Da,1,0,"tr",17),t.YNc(34,La,1,6,"tr",18),t.qZA()()(),t.YNc(35,Oa,3,3,"perun-web-apps-alert",19),t.YNc(36,Za,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))},dependencies:[_.sg,_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.YE,I.nU,O.w,N.l,_.uU,h.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Fa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function ka(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let wa=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(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.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Fa,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,Na,1,0,"mat-spinner",5),t.YNc(9,ka,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,E.L,Ra,h.X$]}),i})();var Ya=c(20872);let 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-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})(),Ma=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();function Ja(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Ha(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ha,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 Ga=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(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")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ja,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))},dependencies:[_.O5,R.Hw,C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();var M=c(86257),J=c(37084),Pa=c(60205),qa=c(90439),Va=c(30540);const Ba=["stepper"];function ja(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Ka(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function $a(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Xa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Wa=function(){return["select","id","name","enabled","description"]};function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,Wa))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function on(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,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,n){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,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,_n))("owners",e.owners)}}function fn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,gn))("hosts",e.hosts)}}function Sn(i,n){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"]},yn=function(){return["id","name","email","logins","organization"]};function vn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,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)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,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)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,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,yn))}}function xn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,vn,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 En(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Dn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Ln(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let On=(()=>{class i{constructor(e,s,a,o,r,m,S,b,D,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=D,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(K=>this.saveMsg=K),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(K=>this.removeMsg=K)}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(Ga,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(m=>s.add(m))}),0===s.size)return;const a=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)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{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 a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),m=this.setDiff(o,a);return new Set([...r,...m])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>a.add(m))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ua,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ma,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(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(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ba,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ja,2,3,"ng-template",4),t.YNc(8,Ka,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,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.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,En,3,3,"button",11),t.YNc(32,Dn,3,7,"button",12),t.YNc(33,Ln,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[_.O5,R.Hw,C.lW,T.Ou,M.C0,M.VY,M.Vq,M.BY,J.pp,J.ib,J.yz,J.yK,st.s,nt.q,rt,Pa.Q,O.w,E.L,pt.p,q.Q,qa.F,Va.J,at,ot,lt,ut,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(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const Zn=[{path:"",component:z.P,canActivateChild:[j.a],children:[{path:"",component:z.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Dt,canActivateChild:[j.a],children:[{path:"",component:Zt,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:na._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:aa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:wa,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:On,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:$t.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:zt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:oa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Ya.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:Kt.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:[v.Bz.forChild(Zn),v.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46374),wn=c(62876);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[G.dp],imports:[_.ez,Rn,Fn.m,Nn.r,Fi.ez,G.d4,kn.UsersModule,wn.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/969.a7ec6fd3127a83f4.js b/dist/apps/admin-gui/969.a7ec6fd3127a83f4.js new file mode 100644 index 000000000..b7eb8ee15 --- /dev/null +++ b/dist/apps/admin-gui/969.a7ec6fd3127a83f4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[969],{61283:(W,x,i)=>{i.d(x,{A:()=>D});var e=i(36769),_=i(94650),S=i(94364);let D=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=_.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,N){1&n&&(_.TgZ(0,"div"),_._UZ(1,"router-outlet",null,0),_.qZA())},dependencies:[S.lC],data:{animation:[e.Ji]}}),a})()},71103:(W,x,i)=>{i.d(x,{n:()=>m});var e=i(65412),_=i(95017),S=i(35382),D=i(32105),a=i(10036),n=(i(33604),i(94650)),N=i(89383),t=i(36895),U=i(4859),G=i(51572),C=i(98380),P=i(7434),E=i(53984);const Z=["list"];function F(g,I){1&g&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function A(g,I){1&g&&n._UZ(0,"mat-spinner",11)}function v(g,I){if(1&g&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&g){const d=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",d.attributes)("filterValue",d.filterValue)("inDialog",!0)("selection",d.selected)("tableId",d.tableId)}}let m=(()=>{class g{constructor(d,b,l,f,y){this.dialogRef=d,this.data=b,this.attributesManager=l,this.notificator=f,this.translate=y,this.attributes=[],this.selected=new _.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(B=>this.saveSuccessMessage=B)}ngOnInit(){const d=new Array;let b,l,f,y,B,J,h,M;switch(this.data.notEmptyAttributes.forEach(c=>{d.push(c.id)}),this.data.entity){case"member":b=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":f=this.data.entityId;break;case"group":y=this.data.entityId;break;case"resource":B=this.data.entityId;break;case"facility":J=this.data.entityId;break;case"host":h=this.data.entityId;break;case"ues":M=this.data.entityId}switch(this.data.secondEntity){case"member":b=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":f=this.data.secondEntityId;break;case"group":y=this.data.secondEntityId;break;case"resource":B=this.data.secondEntityId;break;case"facility":J=this.data.secondEntityId;break;case"host":h=this.data.secondEntityId;break;case"ues":M=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(b,l,f,y,B,J,h,M).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!d.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let d=!1;for(const b of this.selected.selected)"java.util.ArrayList"===b.type&&0===b.value.length&&(d=!0),void 0===b.value&&(d=!0);if(d)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(d){this.filterValue=d}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(d){return!this.data.secondEntity||d.entity===`${this.data.entity}_${this.data.secondEntity}`}}return g.\u0275fac=function(d){return new(d||g)(n.Y36(e.so),n.Y36(e.WI),n.Y36(D.H8),n.Y36(S.V6),n.Y36(N.sK))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-create-attribute-dialog"]],viewQuery:function(d,b){if(1&d&&n.Gf(Z,5),2&d){let l;n.iGM(l=n.CRH())&&(b.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(d,b){1&d&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(f){return b.applyFilter(f)}),n.qZA(),n.YNc(6,F,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,A,1,0,"mat-spinner",5),n.YNc(9,v,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return b.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return b.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&d&&(n.Tol(b.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",b.showError),n.xp6(2),n.Q6J("ngIf",b.loading),n.xp6(1),n.Q6J("ngIf",!b.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===b.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,U.lW,e.uh,e.xY,e.H8,G.Ou,C.w,P.L,E.p,N.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),g})()},61365:(W,x,i)=>{i.d(x,{k:()=>F});var e=i(65412),_=i(30671),S=i(35382),D=i(32105),a=i(94650),L=i(89383),n=i(36895),N=i(4859),t=i(51572);function U(A,v){1&A&&a._UZ(0,"mat-spinner",6)}function G(A,v){1&A&&a._UZ(0,"th",15)}function C(A,v){if(1&A&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&A){const m=v.$implicit;a.xp6(1),a.Oqu(m.displayName)}}function P(A,v){1&A&&a._UZ(0,"tr",17)}function E(A,v){1&A&&a._UZ(0,"tr",18)}function Z(A,v){if(1&A&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,G,1,0,"th",11),a.YNc(10,C,2,1,"td",12),a.BQk(),a.YNc(11,P,1,0,"tr",13),a.YNc(12,E,1,0,"tr",14),a.qZA()()),2&A){const m=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",m.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",m.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",m.displayedColumns)}}let F=(()=>{class A{constructor(m,g,I,d,b){this.dialogRef=m,this.data=g,this.notificator=I,this.translate=d,this.attributesManager=b,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new _.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const m=[];for(const I of this.data.attributes)m.push(I.id);const g={};switch(g[this.data.entity]=this.data.entityId,g.attributes=m,void 0!==this.data.secondEntity&&(g[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,m).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,m).subscribe({next:()=>this.onSuccess(),error:()=>this.loading=!1})}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})}}return A.\u0275fac=function(m){return new(m||A)(a.Y36(e.so),a.Y36(e.WI),a.Y36(S.V6),a.Y36(L.sK),a.Y36(D.H8))},A.\u0275cmp=a.Xpm({type:A,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(m,g){1&m&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,U,1,0,"mat-spinner",1),a.YNc(5,Z,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return g.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return g.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&m&&(a.Tol(g.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",g.loading),a.xp6(1),a.Q6J("ngIf",!g.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",g.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,N.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),A})()},95406:(W,x,i)=>{i.d(x,{r:()=>J});var e=i(94650),_=i(24006),S=i(9244),D=i(28499),a=i(32105),L=i(35382),n=i(10266),N=i(71948),t=i(13469),U=i(78372),G=i(95698),C=i(63900),P=i(54004),E=i(36895),Z=i(3238),F=i(59549),A=i(284),v=i(84385),m=i(89383);function g(h,M){if(1&h&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&h){const c=M.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function I(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function d(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function b(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function f(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function y(h,M){if(1&h&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let B=(()=>{class h{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,U.b)(500),(0,G.q)(1),(0,C.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,P.U)(R=>R?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,R){for(const w of o)"login"===w&&(c.login=R)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const R=[_.kI.required,_.kI.pattern("^[a-z][a-z0-9_-]+$"),_.kI.maxLength(15),_.kI.minLength(2)];(0,S.mH)(o,R,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(w){return o.onNamespaceChanged(w)}),e.YNc(6,g,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,I,3,3,"mat-error",5),e.YNc(13,d,3,3,"mat-error",5),e.YNc(14,b,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,f,3,3,"mat-error",5),e.YNc(17,y,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[E.sg,E.O5,Z.ey,F.TO,F.KE,F.hX,A.Nt,_.Fj,_.JJ,_.JL,_.Q7,_.sg,_.u,v.gD,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),h})(),J=(()=>{class h{constructor(c,o,R){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=R,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),R=this.formGroup.get("passwordAgainCtrl"),w=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,S.mH)(w,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),R.disable(),R.setValue(""),w.disable(),w.dirty||w.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,S.mH)(c,[_.kI.required],[(0,D.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,S.mH)(o,[]))}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(w){return o.onNamespaceChanged(w)})("parsedRulesChanged",function(w){return o.parsedRulesFunction(w)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[_.JJ,_.JL,_.sg,_.u,n.gM,N.VQ,N.U0,t.G,B,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),h})()},12651:(W,x,i)=>{i.d(x,{t:()=>I});var e=i(32105),_=i(95017),S=i(9244),D=i(71103),a=i(74281),L=i(61365),N=(i(33604),i(10036)),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(96214),Z=i(7434),F=i(53984),A=i(89383);const v=["list"];function m(d,b){1&d&&t._UZ(0,"mat-spinner",7)}function g(d,b){if(1&d&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&d){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let I=(()=>{class d{constructor(l,f){this.attributesManagerService=l,this.dialog=f,this.attributes=[],this.selection=new _.Ov(!0,[]),this.filterValue="",this.tableId=N.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,S.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(D.n,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onDelete(){const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}}return d.\u0275fac=function(l){return new(l||d)(t.Y36(e.H8),t.Y36(U.uw))},d.\u0275cmp=t.Xpm({type:d,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,f){if(1&l&&t.Gf(v,5),2&l){let y;t.iGM(y=t.CRH())&&(f.list=y.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,f){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return f.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return f.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return f.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return f.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(B){return f.applyFilter(B)}),t.qZA(),t.YNc(11,m,1,0,"mat-spinner",5),t.YNc(12,g,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[G.O5,C.lW,P.Ou,E.t,Z.L,F.p,A.X$]}),d})()},19191:(W,x,i)=>{i.d(x,{Y:()=>K});var e=i(32105),S=(i(33604),i(95017)),D=i(61365),a=i(9244),L=i(74281),n=i(71103),N=i(64080),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(98380),Z=i(96214),F=i(7434),A=i(53984),v=i(82322),m=i(45703),g=i(42377),I=i(89383);let d=(()=>{class u{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=s=>(0,a.bD)(s.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[g.i,I.X$]}),u})(),b=(()=>{class u{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=s=>s.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.facilities)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[g.i,I.X$]}),u})();var l=i(74250);const f=["list"];function y(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function B(u,O){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&u){const s=t.oxw();t.xp6(1),t.Oqu(s.noEntityMessage)}}function J(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(p){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(p))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("firstSelectedGroup",s.specificSecondEntity)("displayStatus",!0)("groups",s.entityValues)}}function h(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(p){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(p))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("resources",s.entityValues)}}function M(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(p){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(p))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("members",s.entityValues)}}function c(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(p){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(p))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("facilities",s.entityValues)}}function o(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(p){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(p))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("users",s.entityValues)}}function R(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function w(u,O){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&u){const s=t.oxw(2);t.Q6J("attributes",s.attributes)("filterValue",s.filterValue)("selection",s.selection)}}function Q(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,J,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,h,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,M,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(s);const p=t.oxw();return t.KtG(p.getAttributes(p.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(s);const p=t.oxw();return t.KtG(p.onAdd(p.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(s);const p=t.oxw();return t.KtG(p.onSave(p.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(s);const p=t.oxw();return t.KtG(p.onDelete(p.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(p){t.CHM(s);const T=t.oxw();return t.KtG(T.applyFilter(p))}),t.qZA(),t.YNc(18,R,1,0,"mat-spinner",1),t.YNc(19,w,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&u){const s=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===s.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",s.innerLoading),t.xp6(1),t.Q6J("ngIf",!s.innerLoading)}}let K=(()=>{class u{constructor(s,r,p,T,V,Y){this.attributesManagerService=s,this.resourcesManagerService=r,this.facilitiesManagerService=p,this.groupsManagerService=T,this.membersManager=V,this.dialog=Y,this.entityValues=[],this.attributes=[],this.selection=new S.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const p=r.enrichedResource.resource;return p.status=r.status,p}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[N.r.MEMBER_CORE_ID]).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const p=r.enrichedGroup.group;return p.status=r.status,p}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let s=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const p of this.entityValues)if(p.id===r[0]){s=p;break}this.specifySecondEntity(s)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(s){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(s){this.noEntityMessage=`No ${s} assigned`}onSave(s){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onDelete(s){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(D.k,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onAdd(s){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}specifySecondEntity(s){s&&(this.specificSecondEntity=s,this.getAttributes(this.specificSecondEntity.id))}applyFilter(s){this.filterValue=s}}return u.\u0275fac=function(s){return new(s||u)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(U.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(s,r){if(1&s&&t.Gf(f,5),2&s){let p;t.iGM(p=t.CRH())&&(r.list=p.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(s,r){1&s&&(t.TgZ(0,"div",0),t.YNc(1,y,1,0,"mat-spinner",1),t.YNc(2,B,2,1,"perun-web-apps-alert",2),t.YNc(3,Q,20,19,"div",3),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[G.O5,C.lW,P.Ou,E.w,Z.t,F.L,A.p,v.h,m.L,d,b,l.S,I.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),u})()},71135:(W,x,i)=>{i.d(x,{L:()=>G});var e=i(94650),_=i(65412),S=i(94364),D=i(36895),a=i(97392),L=i(3238),n=i(89383),N=i(64597);function t(C,P){if(1&C&&(e.TgZ(0,"div",3)(1,"a",4),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&C){const E=P.$implicit;e.xp6(1),e.Gre("",E.style," item-itself"),e.Q6J("routerLink",E.url),e.uIk("data-cy",e.lcZ(2,7,e.lcZ(3,9,E.label))),e.xp6(3),e.Q6J("svgIcon",E.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,11,E.label)," ")}}function U(C,P){if(1&C&&(e.TgZ(0,"div",1),e.YNc(1,t,7,13,"div",2),e.qZA()),2&C){const E=e.oxw();e.xp6(1),e.Q6J("ngForOf",E.items)}}let G=(()=>{class C{constructor(E,Z){this.dialog=E,this.route=Z,this.size="large"}ngOnInit(){this.route.params.subscribe(E=>{this.voId=Number(E.voId)})}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(_.uw),e.Y36(S.gz))},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(E,Z){1&E&&e.YNc(0,U,2,1,"div",0),2&E&&e.Q6J("ngIf","small"===Z.size)},dependencies:[D.sg,D.O5,S.yS,a.Hw,L.wG,n.X$,N.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),C})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js b/dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js deleted file mode 100644 index 2246bc9a3..000000000 --- a/dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[969],{61283:(W,x,i)=>{i.d(x,{A:()=>D});var e=i(36769),_=i(94650),S=i(94364);let D=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=_.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,N){1&n&&(_.TgZ(0,"div"),_._UZ(1,"router-outlet",null,0),_.qZA())},dependencies:[S.lC],data:{animation:[e.Ji]}}),a})()},71103:(W,x,i)=>{i.d(x,{n:()=>m});var e=i(65412),_=i(95017),S=i(32080),D=i(32105),a=i(10036),n=(i(33604),i(94650)),N=i(89383),t=i(36895),U=i(4859),G=i(51572),C=i(98380),P=i(7434),E=i(53984);const Z=["list"];function F(g,I){1&g&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function A(g,I){1&g&&n._UZ(0,"mat-spinner",11)}function v(g,I){if(1&g&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&g){const p=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",p.attributes)("filterValue",p.filterValue)("inDialog",!0)("selection",p.selected)("tableId",p.tableId)}}let m=(()=>{class g{constructor(p,b,l,f,y){this.dialogRef=p,this.data=b,this.attributesManager=l,this.notificator=f,this.translate=y,this.attributes=[],this.selected=new _.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(B=>this.saveSuccessMessage=B)}ngOnInit(){const p=new Array;let b,l,f,y,B,J,h,M;switch(this.data.notEmptyAttributes.forEach(c=>{p.push(c.id)}),this.data.entity){case"member":b=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":f=this.data.entityId;break;case"group":y=this.data.entityId;break;case"resource":B=this.data.entityId;break;case"facility":J=this.data.entityId;break;case"host":h=this.data.entityId;break;case"ues":M=this.data.entityId}switch(this.data.secondEntity){case"member":b=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":f=this.data.secondEntityId;break;case"group":y=this.data.secondEntityId;break;case"resource":B=this.data.secondEntityId;break;case"facility":J=this.data.secondEntityId;break;case"host":h=this.data.secondEntityId;break;case"ues":M=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(b,l,f,y,B,J,h,M).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!p.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let p=!1;for(const b of this.selected.selected)"java.util.ArrayList"===b.type&&0===b.value.length&&(p=!0),void 0===b.value&&(p=!0);if(p)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(p){this.filterValue=p}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(p){return!this.data.secondEntity||p.entity===`${this.data.entity}_${this.data.secondEntity}`}}return g.\u0275fac=function(p){return new(p||g)(n.Y36(e.so),n.Y36(e.WI),n.Y36(D.H8),n.Y36(S.V6),n.Y36(N.sK))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-create-attribute-dialog"]],viewQuery:function(p,b){if(1&p&&n.Gf(Z,5),2&p){let l;n.iGM(l=n.CRH())&&(b.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(p,b){1&p&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(f){return b.applyFilter(f)}),n.qZA(),n.YNc(6,F,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,A,1,0,"mat-spinner",5),n.YNc(9,v,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return b.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return b.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&p&&(n.Tol(b.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",b.showError),n.xp6(2),n.Q6J("ngIf",b.loading),n.xp6(1),n.Q6J("ngIf",!b.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===b.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,U.lW,e.uh,e.xY,e.H8,G.Ou,C.w,P.L,E.p,N.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),g})()},61365:(W,x,i)=>{i.d(x,{k:()=>F});var e=i(65412),_=i(30671),S=i(32080),D=i(32105),a=i(94650),L=i(89383),n=i(36895),N=i(4859),t=i(51572);function U(A,v){1&A&&a._UZ(0,"mat-spinner",6)}function G(A,v){1&A&&a._UZ(0,"th",15)}function C(A,v){if(1&A&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&A){const m=v.$implicit;a.xp6(1),a.Oqu(m.displayName)}}function P(A,v){1&A&&a._UZ(0,"tr",17)}function E(A,v){1&A&&a._UZ(0,"tr",18)}function Z(A,v){if(1&A&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,G,1,0,"th",11),a.YNc(10,C,2,1,"td",12),a.BQk(),a.YNc(11,P,1,0,"tr",13),a.YNc(12,E,1,0,"tr",14),a.qZA()()),2&A){const m=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",m.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",m.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",m.displayedColumns)}}let F=(()=>{class A{constructor(m,g,I,p,b){this.dialogRef=m,this.data=g,this.notificator=I,this.translate=p,this.attributesManager=b,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new _.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const m=[];for(const I of this.data.attributes)m.push(I.id);const g={};switch(g[this.data.entity]=this.data.entityId,g.attributes=m,void 0!==this.data.secondEntity&&(g[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,m).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})}}return A.\u0275fac=function(m){return new(m||A)(a.Y36(e.so),a.Y36(e.WI),a.Y36(S.V6),a.Y36(L.sK),a.Y36(D.H8))},A.\u0275cmp=a.Xpm({type:A,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(m,g){1&m&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,U,1,0,"mat-spinner",1),a.YNc(5,Z,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return g.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return g.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&m&&(a.Tol(g.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",g.loading),a.xp6(1),a.Q6J("ngIf",!g.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",g.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,N.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),A})()},95406:(W,x,i)=>{i.d(x,{r:()=>J});var e=i(94650),_=i(24006),S=i(9244),D=i(28499),a=i(32105),L=i(32080),n=i(10266),N=i(71948),t=i(13469),U=i(78372),G=i(95698),C=i(63900),P=i(54004),E=i(36895),Z=i(3238),F=i(59549),A=i(284),v=i(84385),m=i(89383);function g(h,M){if(1&h&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&h){const c=M.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function I(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function p(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function b(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function f(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function y(h,M){if(1&h&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let B=(()=>{class h{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,U.b)(500),(0,G.q)(1),(0,C.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,P.U)(R=>R?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,R){for(const w of o)"login"===w&&(c.login=R)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const R=[_.kI.required,_.kI.pattern("^[a-z][a-z0-9_-]+$"),_.kI.maxLength(15),_.kI.minLength(2)];(0,S.mH)(o,R,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(w){return o.onNamespaceChanged(w)}),e.YNc(6,g,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,I,3,3,"mat-error",5),e.YNc(13,p,3,3,"mat-error",5),e.YNc(14,b,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,f,3,3,"mat-error",5),e.YNc(17,y,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[E.sg,E.O5,Z.ey,F.TO,F.KE,F.hX,A.Nt,_.Fj,_.JJ,_.JL,_.Q7,_.sg,_.u,v.gD,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),h})(),J=(()=>{class h{constructor(c,o,R){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=R,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),R=this.formGroup.get("passwordAgainCtrl"),w=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,S.mH)(w,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),R.disable(),R.setValue(""),w.disable(),w.dirty||w.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,S.mH)(c,[_.kI.required],[(0,D.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,S.mH)(o,[]))}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(w){return o.onNamespaceChanged(w)})("parsedRulesChanged",function(w){return o.parsedRulesFunction(w)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[_.JJ,_.JL,_.sg,_.u,n.gM,N.VQ,N.U0,t.G,B,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),h})()},12651:(W,x,i)=>{i.d(x,{t:()=>I});var e=i(32105),_=i(95017),S=i(9244),D=i(71103),a=i(74281),L=i(61365),N=(i(33604),i(10036)),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(96214),Z=i(7434),F=i(53984),A=i(89383);const v=["list"];function m(p,b){1&p&&t._UZ(0,"mat-spinner",7)}function g(p,b){if(1&p&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&p){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let I=(()=>{class p{constructor(l,f){this.attributesManagerService=l,this.dialog=f,this.attributes=[],this.selection=new _.Ov(!0,[]),this.filterValue="",this.tableId=N.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,S.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(D.n,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onDelete(){const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}}return p.\u0275fac=function(l){return new(l||p)(t.Y36(e.H8),t.Y36(U.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,f){if(1&l&&t.Gf(v,5),2&l){let y;t.iGM(y=t.CRH())&&(f.list=y.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,f){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return f.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return f.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return f.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return f.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(B){return f.applyFilter(B)}),t.qZA(),t.YNc(11,m,1,0,"mat-spinner",5),t.YNc(12,g,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[G.O5,C.lW,P.Ou,E.t,Z.L,F.p,A.X$]}),p})()},19191:(W,x,i)=>{i.d(x,{Y:()=>K});var e=i(32105),S=(i(33604),i(95017)),D=i(61365),a=i(9244),L=i(74281),n=i(71103),N=i(64080),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(98380),Z=i(96214),F=i(7434),A=i(53984),v=i(82322),m=i(45703),g=i(42377),I=i(89383);let p=(()=>{class u{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=s=>(0,a.bD)(s.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[g.i,I.X$]}),u})(),b=(()=>{class u{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=s=>s.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.facilities)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[g.i,I.X$]}),u})();var l=i(74250);const f=["list"];function y(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function B(u,O){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&u){const s=t.oxw();t.xp6(1),t.Oqu(s.noEntityMessage)}}function J(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("firstSelectedGroup",s.specificSecondEntity)("displayStatus",!0)("groups",s.entityValues)}}function h(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("resources",s.entityValues)}}function M(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("members",s.entityValues)}}function c(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("facilities",s.entityValues)}}function o(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("users",s.entityValues)}}function R(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function w(u,O){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&u){const s=t.oxw(2);t.Q6J("attributes",s.attributes)("filterValue",s.filterValue)("selection",s.selection)}}function Q(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,J,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,h,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,M,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.getAttributes(d.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onAdd(d.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onSave(d.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onDelete(d.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(d){t.CHM(s);const T=t.oxw();return t.KtG(T.applyFilter(d))}),t.qZA(),t.YNc(18,R,1,0,"mat-spinner",1),t.YNc(19,w,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&u){const s=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===s.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",s.innerLoading),t.xp6(1),t.Q6J("ngIf",!s.innerLoading)}}let K=(()=>{class u{constructor(s,r,d,T,V,Y){this.attributesManagerService=s,this.resourcesManagerService=r,this.facilitiesManagerService=d,this.groupsManagerService=T,this.membersManager=V,this.dialog=Y,this.entityValues=[],this.attributes=[],this.selection=new S.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedResource.resource;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[N.r.MEMBER_CORE_ID]).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedGroup.group;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let s=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const d of this.entityValues)if(d.id===r[0]){s=d;break}this.specifySecondEntity(s)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(s){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(s){this.noEntityMessage=`No ${s} assigned`}onSave(s){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onDelete(s){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(D.k,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onAdd(s){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}specifySecondEntity(s){s&&(this.specificSecondEntity=s,this.getAttributes(this.specificSecondEntity.id))}applyFilter(s){this.filterValue=s}}return u.\u0275fac=function(s){return new(s||u)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(U.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(s,r){if(1&s&&t.Gf(f,5),2&s){let d;t.iGM(d=t.CRH())&&(r.list=d.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(s,r){1&s&&(t.TgZ(0,"div",0),t.YNc(1,y,1,0,"mat-spinner",1),t.YNc(2,B,2,1,"perun-web-apps-alert",2),t.YNc(3,Q,20,19,"div",3),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[G.O5,C.lW,P.Ou,E.w,Z.t,F.L,A.p,v.h,m.L,p,b,l.S,I.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),u})()},71135:(W,x,i)=>{i.d(x,{L:()=>G});var e=i(94650),_=i(65412),S=i(94364),D=i(36895),a=i(97392),L=i(3238),n=i(89383),N=i(64597);function t(C,P){if(1&C&&(e.TgZ(0,"div",3)(1,"a",4),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&C){const E=P.$implicit;e.xp6(1),e.Gre("",E.style," item-itself"),e.Q6J("routerLink",E.url),e.uIk("data-cy",e.lcZ(2,7,e.lcZ(3,9,E.label))),e.xp6(3),e.Q6J("svgIcon",E.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,11,E.label)," ")}}function U(C,P){if(1&C&&(e.TgZ(0,"div",1),e.YNc(1,t,7,13,"div",2),e.qZA()),2&C){const E=e.oxw();e.xp6(1),e.Q6J("ngForOf",E.items)}}let G=(()=>{class C{constructor(E,Z){this.dialog=E,this.route=Z,this.size="large"}ngOnInit(){this.route.params.subscribe(E=>{this.voId=Number(E.voId)})}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(_.uw),e.Y36(S.gz))},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(E,Z){1&E&&e.YNc(0,U,2,1,"div",0),2&E&&e.Q6J("ngIf","small"===Z.size)},dependencies:[D.sg,D.O5,S.yS,a.Hw,L.wG,n.X$,N.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),C})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/defaultConfig.json b/dist/apps/admin-gui/assets/config/defaultConfig.json index 9999edb41..27875ddeb 100644 --- a/dist/apps/admin-gui/assets/config/defaultConfig.json +++ b/dist/apps/admin-gui/assets/config/defaultConfig.json @@ -12,6 +12,7 @@ "display_warning": false, "warning_message": "BETA version of new Perun GUI. It doesn’t contain all functionality. Please report any issues to support mail below.", "auto_auth_redirect": true, + "auto_service_access_redirect": false, "oidc_client": { "oauth_authority": "", "oauth_callback": "http://localhost:4200/api-callback", @@ -22,6 +23,9 @@ "oauth_response_type": "code", "oauth_offline_access_consent_prompt": true }, + "mfa": { + "url_en": "https://mfa.id.muni.cz/" + }, "login_namespace_attributes": [ "urn:perun:user:attribute-def:def:login-namespace:einfra", "urn:perun:user:attribute-def:def:login-namespace:einfra-services", @@ -50,7 +54,6 @@ "einfra:

Password must:

  • contain only printable (non-accented) characters
  • be at least 10 characters long
  • consist of at least 3 of 4 character groups:
    • lower-case letters
    • upper-case letters
    • digits
    • special characters
", "vsup:

Password requirements:

  • the minimum password length is 8 characters
  • must contain characters of at least three sets of characters
  • character sets are: [a-z], [A-Z], [0-9], [!#%&()[]*+,./:;<=>?@^_`{}|~-]
  • letters must not contain diacritics, the space is allowed
  • may not include your name, surname, personal number or username
" ], - "skip_oidc": false, "group_name_secondary_regex": "^[-a-zA-Z.0-9_ ]+$", "group_name_error_message": "Name cannot be empty and can contain only characters a-z, A-Z, numbers, spaces, dots, '_' and '-'", "enforce_consents": false, @@ -111,7 +114,8 @@ "url": "https://www.cerit-sc.cz/" } ], - "github_releases": "https://www.github.com/CESNET/perun-web-apps/releases/" + "github_releases": "https://www.github.com/CESNET/perun-web-apps/releases/", + "github_backend_releases": "https://www.github.com/CESNET/perun/releases/" }, "log_out_enabled": true, "profile_label_en": "Profile", diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 110b4d83e..1e977b7a2 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"9.3.0"} +{"version":"9.4.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index b7b4dd923..ba989094e 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -2284,7 +2284,6 @@ }, "EXT_SOURCES": { "TITLE": "External sources", - "LOAD": "Load External sources", "SEARCH": "Search by Id, Name or Type", "LOAD_SUCCESS": "External sources successfully loaded" }, @@ -2346,6 +2345,8 @@ "ROLE_INFO_FACILITYOBSERVER": "You can observe facilities that are listed below", "CARD_TITLE_RESOURCEOBSERVER": "Observer in Resources", "ROLE_INFO_RESOURCEOBSERVER": "You can observe resources that are listed below", + "CARD_TITLE_GROUPMEMBERSHIPMANAGER": "Membership manager in Groups", + "ROLE_INFO_GROUPMEMBERSHIPMANAGER": "You can manage members in groups that are listed below", "DASHBOARD_SETTINGS": "Dashboard Settings", "SHOW_RECENTLY_VIEWED": "Show Recently viewed", "SHOW_ROLES": "Show roles", @@ -2596,6 +2597,10 @@ "GROUPADMIN_GROUPS_SELF": "Groups you are manager of", "GROUPADMIN_GROUPS_USER": "Groups where user is manager", "GROUPADMIN_GROUPS_GROUP": "Groups where group members are managers", + "GROUPMEMBERSHIPMANAGER": "Group membership manager", + "GROUPMEMBERSHIPMANAGER_GROUPS_SELF": "Groups you are manager of", + "GROUPMEMBERSHIPMANAGER_GROUPS_USER": "Groups where user is manager", + "GROUPMEMBERSHIPMANAGER_GROUPS_GROUP": "Groups where group members are managers", "RESOURCEADMIN": "Resource admin", "RESOURCEADMIN_RESOURCES_SELF": "Resources you are manager of", "RESOURCEADMIN_RESOURCES_USER": "Resources where user is manager", @@ -2917,6 +2922,22 @@ "CLOSE": "Close", "NO_PATHS": "No paths include the entered group name." }, + "MFA_REQUIRED_DIALOG": { + "TITLE": "Step-up authentication required", + "INFO": "To perform this action you need to execute step-up authentication.", + "CANCEL": "Cancel", + "STEP_UP": "Step-up authentication" + }, + "NO_MFA_TOKEN": { + "TITLE": "No MFA token", + "INFO": "You need to have at least one active MFA token. Please manage your MFA tokens.", + "CANCEL": "Cancel", + "MANAGE_TOKENS": "Manage tokens" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modal window is opened.", + "MODAL_WARNING": "Please check your browser settings if no modal window is open." + }, "OWNERS_LIST": { "ID": "Id", "NAME": "Name", @@ -2969,6 +2990,11 @@ "ATTRIBUTE_UNIQUE_TOGGLE": { "UNIQUE": "Unique", "TOOLTIP": "Entityless, virtual or core attributes can NOT be UNIQUE" + }, + "ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE": { + "READ": "READ operations critical", + "WRITE": "WRITE operations critical", + "INFO": "All operations of the selected type (READ/WRITE) for this attribute will require multi-factor authentication for objects that are marked as critical." } }, "ORGANIZATIONS": { diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index 24bffcb02..02fa11dad 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.063f340eeaa840f9.js b/dist/apps/admin-gui/main.063f340eeaa840f9.js new file mode 100644 index 000000000..396fc8969 --- /dev/null +++ b/dist/apps/admin-gui/main.063f340eeaa840f9.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(We,pe,h)=>{"use strict";h.d(pe,{g:()=>vt});var e=h(32105),d=h(10036),_=h(94650),w=h(36895),g=h(3848),b=h(51572),y=h(64877),E=h(62109),S=h(62707),U=h(38383),A=h(74010),N=h(9244),z=h(97392),Q=h(4859),ne=h(10266),he=h(42377),ee=h(64901),fe=h(89383);function ce(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),_.NdJ("entitySelected",function(ie){const Ze=_.CHM(W).$implicit;return _.KtG(Ze[0]=ie.namespace+":"+ie.friendlyName)}),_.ALo(3,"translate"),_.ALo(4,"translate"),_.ALo(5,"translate"),_.qZA()(),_.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),_.NdJ("filter",function(ie){const Ze=_.CHM(W).$implicit;return _.KtG(Ze[1]=ie)}),_.qZA()(),_.TgZ(8,"div",11)(9,"button",12),_.NdJ("click",function(){const ae=_.CHM(W).$implicit,Ze=_.oxw(2);return _.KtG(Ze.removeOption(ae))}),_.ALo(10,"translate"),_.TgZ(11,"mat-icon"),_._uU(12,"clear"),_.qZA()()()()}if(2&rt){const W=_.oxw(2);_.xp6(2),_.Q6J("entities",W.availableAttrDefs)("searchFunction",W.nameFunction)("mainTextFunction",W.nameFunction)("secondaryTextFunction",W.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===W.options.length)}}function ve(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"div",1),_.YNc(1,ce,13,18,"div",2),_.TgZ(2,"button",3),_.NdJ("click",function(){_.CHM(W);const ie=_.oxw();return _.KtG(ie.addOption())}),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"span",4),_.ALo(6,"translate"),_.TgZ(7,"button",5),_.NdJ("click",function(){_.CHM(W);const ie=_.oxw();return _.KtG(ie.searchEntities())}),_.TgZ(8,"mat-icon"),_._uU(9,"search"),_.qZA(),_._uU(10),_.ALo(11,"translate"),_.qZA()()()}if(2&rt){const W=_.oxw();_.xp6(1),_.Q6J("ngForOf",W.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",!W.emptySearchString()),_.xp6(2),_.Q6J("disabled",W.emptySearchString()),_.xp6(3),_.hij(" ",_.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let v=(()=>{class rt{constructor(){this.attributeSelected=new _.vpe,this.search=new _.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=W=>W.displayName,this.secondaryTextFunction=W=>"#"+String(W.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(W=>W.entity===this.attributesForEntity).sort(N.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(W){this.options=this.options.filter(le=>le!==W)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(W=>0===W[1].length)}searchEntities(){const W={};this.options.forEach(le=>{W[le[0]]=le[1]}),this.search.emit(W)}}return rt.\u0275fac=function(W){return new(W||rt)},rt.\u0275cmp=_.Xpm({type:rt,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"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(W,le){1&W&&_.YNc(0,ve,12,12,"div",0),2&W&&_.Q6J("ngIf",void 0!==le.options)},dependencies:[w.sg,w.O5,z.Hw,Q.lW,ne.gM,he.i,ee.P,fe.X$]}),rt})();function O(rt,ht){1&rt&&(_._uU(0),_.ALo(1,"translate")),2&rt&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function H(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(ie){_.CHM(W);const ae=_.oxw(2);return _.KtG(ae.searchEntities(ie,"user"))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("attributes",W.allAttrDefinitions)("attributesForEntity","user")}}const Y=function(){return["user","id","name"]};function q(rt,ht){if(1&rt&&_._UZ(0,"app-users-list",9),2&rt){const W=_.oxw(2);_.Q6J("tableId",W.tableId)("displayedColumns",_.DdM(3,Y))("users",W.entities)}}function ue(rt,ht){if(1&rt&&(_.YNc(0,H,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,q,1,4,"app-users-list",7)),2&rt){const W=_.oxw();_.Q6J("ngIf",!W.loading),_.xp6(1),_.Q6J("ngIf",!W.loadingEntityData)}}function Ee(rt,ht){1&rt&&(_._uU(0),_.ALo(1,"translate")),2&rt&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function De(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-vo-search-select",13),_.NdJ("voSelected",function(ie){_.CHM(W);const ae=_.oxw(2);return _.KtG(ae.voSelected(ie))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("vos",W.vos)}}function Se(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(ie){_.CHM(W);const ae=_.oxw(2);return _.KtG(ae.searchEntities(ie,"member"))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("attributes",W.allAttrDefinitions)("attributesForEntity","user")}}const Ge=function(){return["id","voId","userId","status"]};function Ce(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-members-list",14),_.NdJ("updateTable",function(){_.CHM(W);const ie=_.oxw(2);return _.KtG(ie.searchEntities(ie.searchInput,"member"))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("tableId",W.tableId)("displayedColumns",_.DdM(4,Ge))("disableExpirationChange",!0)("members",W.entities)}}function qe(rt,ht){if(1&rt&&(_.TgZ(0,"div",10),_.YNc(1,De,1,1,"perun-web-apps-vo-search-select",11),_.qZA(),_.YNc(2,Se,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(3,Ce,1,5,"perun-web-apps-members-list",12)),2&rt){const W=_.oxw();_.xp6(1),_.Q6J("ngIf",W.vos.length>0),_.xp6(1),_.Q6J("ngIf",!W.loading),_.xp6(1),_.Q6J("ngIf",!W.loadingEntityData)}}function Pe(rt,ht){1&rt&&(_._uU(0),_.ALo(1,"translate")),2&rt&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function we(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(ie){_.CHM(W);const ae=_.oxw(2);return _.KtG(ae.searchEntities(ie,"facility"))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("attributes",W.allAttrDefinitions)("attributesForEntity","facility")}}const j=function(){return["id","name","description"]};function I(rt,ht){if(1&rt&&_._UZ(0,"perun-web-apps-facilities-list",16),2&rt){const W=_.oxw(2);_.Q6J("tableId",W.tableId)("displayedColumns",_.DdM(3,j))("facilities",W.entities)}}function F(rt,ht){if(1&rt&&(_.YNc(0,we,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,I,1,4,"perun-web-apps-facilities-list",15)),2&rt){const W=_.oxw();_.Q6J("ngIf",!W.loading),_.xp6(1),_.Q6J("ngIf",!W.loadingEntityData)}}function ge(rt,ht){1&rt&&(_._uU(0),_.ALo(1,"translate")),2&rt&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function G(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(ie){_.CHM(W);const ae=_.oxw(2);return _.KtG(ae.searchEntities(ie,"resource"))}),_.qZA()}if(2&rt){const W=_.oxw(2);_.Q6J("attributes",W.allAttrDefinitions)("attributesForEntity","resource")}}const _e=function(){return["id","name","description","voId","facilityId"]};function Te(rt,ht){if(1&rt&&_._UZ(0,"perun-web-apps-resources-list",18),2&rt){const W=_.oxw(2);_.Q6J("tableId",W.tableId)("displayedColumns",_.DdM(3,_e))("resources",W.entities)}}function et(rt,ht){if(1&rt&&(_.YNc(0,G,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,Te,1,4,"perun-web-apps-resources-list",17)),2&rt){const W=_.oxw();_.Q6J("ngIf",!W.loading),_.xp6(1),_.Q6J("ngIf",!W.loadingEntityData)}}function Xe(rt,ht){1&rt&&_._UZ(0,"mat-spinner",19)}let vt=(()=>{class rt{constructor(W,le,ie){this.attributesManager=W,this.searcher=le,this.voService=ie,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=d.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(W=>{this.allAttrDefinitions=W,this.loading=!1})}tabChanged(W){switch(this.entities=[],W){case 0:this.tableId=d.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=d.FF;break;case 2:this.tableId=d.$I;break;case 3:this.tableId=d.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(W=>{this.vos=W,this.selectedVo=W[0],this.loadingEntityData=!1})}voSelected(W){void 0!==W&&(this.selectedVo=W)}searchEntities(W,le){switch(this.searchInput=W,this.loadingEntityData=!0,le){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(W=>{this.entities=W,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(W=>{this.entities=W,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(W=>{this.entities=W.map(le=>({facility:le})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(W=>{this.entities=W,this.loadingEntityData=!1})}}return rt.id="AdminSearcherComponent",rt.\u0275fac=function(W){return new(W||rt)(_.Y36(e.H8),_.Y36(e.t7),_.Y36(e.YF))},rt.\u0275cmp=_.Xpm({type:rt,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(W,le){2&W&&_.ekj("router-component",le.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(W,le){1&W&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"mat-tab-group",1),_.NdJ("selectedIndexChange",function(ae){return le.tabChanged(ae)}),_.TgZ(4,"mat-tab",2),_.YNc(5,O,2,3,"ng-template",3),_.YNc(6,ue,2,2,"ng-template",4),_.qZA(),_.TgZ(7,"mat-tab"),_.YNc(8,Ee,2,3,"ng-template",3),_.YNc(9,qe,4,3,"ng-template",4),_.qZA(),_.TgZ(10,"mat-tab"),_.YNc(11,Pe,2,3,"ng-template",3),_.YNc(12,F,2,2,"ng-template",4),_.qZA(),_.TgZ(13,"mat-tab"),_.YNc(14,ge,2,3,"ng-template",3),_.YNc(15,et,2,2,"ng-template",4),_.qZA()(),_.YNc(16,Xe,1,0,"mat-spinner",5)),2&W&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),_.xp6(15),_.Q6J("ngIf",le.loading||le.loadingEntityData))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,b.Ou,y.C,E.C,S.M,U.O,A.X,v,fe.X$]}),rt})()},80774:(We,pe,h)=>{"use strict";h.d(pe,{F:()=>v});var e=h(95017),d=h(32105),_=h(10036),w=h(9244),g=h(40009),b=h(90719),y=h(35382),E=h(94650),S=h(65412),U=h(36895),A=h(4859),N=h(51572),z=h(60205),Q=h(96214),ne=h(7434),he=h(89383);function ee(O,H){if(1&O){const Y=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){E.CHM(Y);const ue=E.oxw();return E.KtG(ue.createService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&O&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function fe(O,H){if(1&O){const Y=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(Y);const ue=E.oxw();return E.KtG(ue.deleteService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&O){const Y=E.oxw();E.Q6J("disabled",0===Y.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function ce(O,H){1&O&&E._UZ(0,"mat-spinner",9)}function ve(O,H){if(1&O&&E._UZ(0,"app-services-list",10),2&O){const Y=E.oxw();E.Q6J("filterValue",Y.filterValue)("selection",Y.selection)("services",Y.services)("tableId",Y.tableId)}}let v=(()=>{class O{constructor(Y,q,ue){this.serviceManager=Y,this.dialog=q,this.authResolver=ue,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(ue=>{ue&&this.refreshTable()})}deleteService(){const Y=(0,w.kZ)();Y.width="600px",Y.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(b.m,Y).afterClosed().subscribe(ue=>{ue&&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 O.id="AdminServicesComponent",O.\u0275fac=function(Y){return new(Y||O)(E.Y36(d.KK),E.Y36(S.uw),E.Y36(y.x4))},O.\u0275cmp=E.Xpm({type:O,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(Y,q){1&Y&&(E.TgZ(0,"div")(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,ee,3,3,"button",2),E.YNc(6,fe,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(Ee){return q.applyFilter(Ee)}),E.qZA(),E.YNc(8,ce,1,0,"mat-spinner",5),E.YNc(9,ve,1,4,"app-services-list",6),E.qZA()),2&Y&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"ADMIN.SERVICES.TITLE")),E.xp6(3),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("placeholder","ADMIN.SERVICES.FILTER"),E.xp6(1),E.Q6J("ngIf",q.loading),E.xp6(1),E.Q6J("ngIf",!q.loading))},dependencies:[U.O5,A.lW,N.Ou,z.Q,Q.t,ne.L,he.X$]}),O})()},25828:(We,pe,h)=>{"use strict";h.d(pe,{t:()=>A});var e=h(10036),d=h(64080),_=h(35382),w=h(94650),g=h(56709),b=h(96214),y=h(64901),E=h(88561),S=h(89383);const U=function(){return["user","id","name","email","logins","organization"]};let A=(()=>{class N{constructor(Q){this.storeService=Q,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.attributes=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(Q){this.searchString=Q}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}refresh(){this.update=!this.update}}return N.id="AdminUsersComponent",N.\u0275fac=function(Q){return new(Q||N)(w.Y36(_.d6))},N.\u0275cmp=w.Xpm({type:N,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(Q,ne){2&Q&&w.ekj("router-component",ne.true)},decls:9,vars:17,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable"]],template:function(Q,ne){1&Q&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-refresh-button",1),w.NdJ("click",function(){return ne.refresh()}),w.qZA(),w.TgZ(4,"perun-web-apps-debounce-filter",2),w.NdJ("filter",function(ee){return ne.onSearchByString(ee)}),w.qZA(),w.TgZ(5,"mat-checkbox",3),w.NdJ("change",function(){return ne.findUsersWithoutVO()}),w._uU(6),w.ALo(7,"translate"),w.qZA(),w._UZ(8,"perun-web-apps-users-dynamic-list",4)),2&Q&&(w.xp6(1),w.Oqu(w.lcZ(2,12,"ADMIN.USERS.TITLE")),w.xp6(3),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",ne.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(7,14,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",ne.searchString)("attrNames",ne.attributes)("displayedColumns",w.DdM(16,U))("tableId",ne.tableId)("withoutVo",ne.usersWithoutVo)("updateTable",ne.update))},dependencies:[g.oG,b.t,y.P,E.M,S.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),N})()},72077:(We,pe,h)=>{"use strict";h.d(pe,{y:()=>O});var e=h(35382),d=h(17445),_=h(80529),w=h(9244),g=h(94650),b=h(65412),y=h(4859),E=h(89383);let S=(()=>{class H{constructor(q){this.dialogRef=q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return H.\u0275fac=function(q){return new(q||H)(g.Y36(b.so))},H.\u0275cmp=g.Xpm({type:H,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(q,ue){1&q&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"div",2)(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",3)(9,"button",4),g.NdJ("click",function(){return ue.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return ue.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA()()()),2&q&&(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")," "))},dependencies:[y.lW,b.uh,b.xY,b.H8,E.X$]}),H})();var U=h(94364),A=h(39300);let N=(()=>{class H{constructor(q,ue){this.router=q,this.routeReuseStrategy=ue;const Ee=ue;q.events.subscribe(De=>{De instanceof U.OD&&Ee.setLastNavigationType("popstate"===De.navigationTrigger?"back":"direct")})}init(){}}return H.\u0275fac=function(q){return new(q||H)(g.LFG(U.F0),g.LFG(U.wN))},H.\u0275prov=g.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const z=["footer"];function Q(H,Y){if(1&H&&(g.TgZ(0,"div",3)(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&H){const q=g.oxw();g.xp6(3),g.hij(" ",q.warningMessage,"\n")}}const ne=function(H,Y){return{top:H,background:Y}},he=function(H,Y){return{"margin-top":H,"min-height":Y}},ee=function(H,Y){return{"border-color":H,background:Y}},fe=function(H){return{"background-color":H}},ce=function(H){return{"min-height":H}};function ve(H,Y){if(1&H&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),g._UZ(5,"app-side-menu",8),g.qZA()(),g.TgZ(6,"mat-sidenav-content",9)(7,"div",10),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,11),g._UZ(11,"perun-web-apps-footer"),g.qZA()()()),2&H){const q=g.MAs(3),ue=g.oxw();g.Q6J("principal",ue.principal)("ngStyle",g.WLB(12,ne,ue.getNavMenuTop(),ue.navBackgroundColor))("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.WLB(15,he,ue.getSideNavMarginTop(),ue.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",ue.sidebarMode)("fixedTopGap",ue.getTopGap())("ngStyle",g.WLB(18,ee,ue.sideBarBorderColor,ue.sideMenubackgroundColor))("opened",!ue.isMobile()),g.xp6(3),g.Q6J("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.VKq(21,fe,ue.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(23,ce,ue.contentInnerMinHeight))}}function v(H,Y){1&H&&g._UZ(0,"perun-web-apps-login-screen-base",12),2&H&&g.Q6J("application","admin-gui")}let O=(()=>{class H{constructor(q,ue,Ee,De,Se,Ge,Ce){this.cache=q,this.store=ue,this.http=Ee,this.dialog=De,this.router=Se,this.initAuth=Ge,this.cd=Ce,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=h(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<=H.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,d.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,A.h)(q=>q instanceof U.OD)).subscribe(q=>{this.updateInitAccessedPage(q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+q+"px - 112px)":"calc(100vh - "+q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(q){q.url===sessionStorage.getItem("initPage")?("imperative"===q.navigationTrigger&&q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===q.navigationTrigger&&(q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const q=new _.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:q}).subscribe(ue=>{const Ee=ue.version;if(Ee)if(this.version&&"SNAPSHOT"!==Ee&&this.version!==Ee){const De=(0,w.kZ)();this.dialog.open(S,De)}else this.version=Ee})}}return H.minWidth=992,H.\u0275fac=function(q){return new(q||H)(g.Y36(N),g.Y36(e.d6),g.Y36(_.eN),g.Y36(b.uw),g.Y36(U.F0),g.Y36(e.v0),g.Y36(g.sBO))},H.\u0275cmp=g.Xpm({type:H,selectors:[["app-root"]],viewQuery:function(q,ue){if(1&q&&g.Gf(z,5),2&q){let Ee;g.iGM(Ee=g.CRH())&&(ue.footer=Ee.first)}},hostBindings:function(q,ue){1&q&&g.NdJ("resize",function(De){return ue.getScreenSize(De)},!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,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(q,ue){1&q&&(g.YNc(0,Q,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,ve,12,25,"ng-template",2),g.YNc(3,v,1,1,"ng-template",2)),2&q&&(g.Q6J("ngIf",ue.displayWarning),g.xp6(1),g.Q6J("displayWarning",ue.displayWarning),g.xp6(1),g.Q6J("ngIf",!ue.isLoginScreenShow&&!ue.isServiceAccess&&!ue.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",ue.isLoginScreenShow||ue.isServiceAccess||ue.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}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),H})()},77968:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>d});var e=h(94650);let d=(()=>{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:(We,pe,h)=>{"use strict";h.d(pe,{o:()=>fe});var e=h(32105),d=h(10036),_=h(35382),w=h(94650),g=h(36895),b=h(3238),y=h(59549),E=h(84385),S=h(51572),U=h(24179),A=h(96214),N=h(7434),z=h(89383);function Q(ce,ve){if(1&ce&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&ce){const v=ve.$implicit;w.Q6J("value",v.id),w.xp6(1),w.hij(" ",v.name," ")}}function ne(ce,ve){1&ce&&w._UZ(0,"mat-spinner",10)}const he=function(){return["id","vo","name","description"]};function ee(ce,ve){if(1&ce&&w._UZ(0,"perun-web-apps-groups-list",11),2&ce){const v=w.oxw();w.Q6J("displayedColumns",w.DdM(6,he))("groups",v.groupsToShow)("disableMembers",!1)("filter",v.filterValue)("groupsToDisableRouting",v.groupsWithoutRouteAuth)("tableId",v.tableId)}}let fe=(()=>{class ce{constructor(v,O,H){this.facilityManager=v,this.authResolver=O,this.entityStorageService=H,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=d.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(v=>{this.vos=v,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(v=>v.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(v=>{this.facilityManager.getAllowedGroups(this.facility.id,v.id).subscribe(O=>{this.groups=this.groups.concat(O),this.groupsToShow=this.groups,this.setAuthRights(v,O),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(v,O){O.forEach(H=>{this.authResolver.isAuthorized("getGroupById_int_policy",[v,H])||this.groupsWithoutRouteAuth.add(H.id)})}applyFilter(v){this.filterValue=v}}return ce.id="FacilityAllowedGroupsComponent",ce.\u0275fac=function(v){return new(v||ce)(w.Y36(e.IQ),w.Y36(_.x4),w.Y36(_.fb))},ce.\u0275cmp=w.Xpm({type:ce,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(v,O){2&v&&w.ekj("router-component",O.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(v,O){1&v&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return O.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2)(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return O.showGroup()})("valueChange",function(Y){return O.selected=Y}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,Q,2,2,"mat-option",5),w.qZA()(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(Y){return O.applyFilter(Y)}),w.qZA(),w.YNc(15,ne,1,0,"mat-spinner",7),w.YNc(16,ee,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&v&&(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",O.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",O.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",O.loading),w.xp6(1),w.Q6J("ngIf",!O.loading))},dependencies:[g.sg,g.O5,b.ey,y.KE,y.hX,E.gD,S.Ou,U.W,A.t,N.L,z.X$]}),ce})()},25610:(We,pe,h)=>{"use strict";h.d(pe,{_:()=>Y});var e=h(10036),d=h(32105),_=h(35382),w=h(64080),g=h(94650),b=h(36895),y=h(24006),E=h(51572),S=h(90455),U=h(96214),A=h(62707),N=h(45703),z=h(64901),Q=h(88561),ne=h(30540),he=h(97392),ee=h(4859),fe=h(89383);let ce=(()=>{class q{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 q.\u0275fac=function(Ee){return new(Ee||q)},q.\u0275cmp=g.Xpm({type:q,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(Ee,De){1&Ee&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return De.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.TgZ(7,"button",0),g.NdJ("click",function(){return De.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&Ee&&(g.Gre("mr-2 ",De.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",De.filtersCount?"("+De.filtersCount+")":null," "),g.xp6(3),g.Oqu(De.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"))},dependencies:[he.Hw,ee.lW,fe.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),q})();function ve(q,ue){if(1&q){const Ee=g.EpF();g.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Se){g.CHM(Ee);const Ge=g.oxw();return g.KtG(Ge.allowed=Se)})("change",function(){g.CHM(Ee);const Se=g.oxw();return g.KtG(Se.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.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Se){g.CHM(Ee);const Ge=g.oxw();return g.KtG(Ge.voSelected(Se))}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Se){g.CHM(Ee);const Ge=g.oxw();return g.KtG(Ge.resourceSelected(Se))}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Se){g.CHM(Ee);const Ge=g.oxw();return g.KtG(Ge.serviceSelected(Se))}),g.qZA()()()}if(2&q){const Ee=g.oxw();g.xp6(2),g.Q6J("ngModel",Ee.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,Ee.toggle_messages[Ee.allowed?1:0])),g.xp6(3),g.Q6J("vos",Ee.vos)("vo",Ee.selectedVo),g.xp6(1),g.Q6J("resources",Ee.filteredResources)("displayStatus",!1)("resource",Ee.selectedResource),g.xp6(1),g.Q6J("services",Ee.filteredServices)("service",Ee.selectedService)}}function v(q,ue){1&q&&g._UZ(0,"mat-spinner",15)}const O=function(){return["id","name","email","logins","organization"]};function H(q,ue){if(1&q&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&q){const Ee=g.oxw();g.Q6J("attrNames",Ee.attributes)("disableRouting",!Ee.routeAuth)("displayedColumns",g.DdM(10,O))("onlyAllowed",Ee.allowed)("facilityId",Ee.facility.id)("searchString",Ee.filterValue)("resourceId",-1===Ee.selectedResource.id?null:Ee.selectedResource.id)("serviceId",-1===Ee.selectedService.id?null:Ee.selectedService.id)("tableId",Ee.tableId)("voId",-1===Ee.selectedVo.id?null:Ee.selectedVo.id)}}let Y=(()=>{class q{constructor(Ee,De,Se,Ge,Ce,qe){this.facilityService=Ee,this.serviceService=De,this.resourceService=Se,this.authResolver=Ge,this.storeService=Ce,this.entityStorageService=qe,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(Ee=>{this.resources=[this.emptyResource].concat(Ee),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(De=>{this.vos=[this.emptyVo].concat(De),this.serviceService.getAssignedServices(this.facility.id).subscribe(Se=>{this.services=[this.emptyService].concat(Se),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(Ee){this.filterValue=Ee}voSelected(Ee){this.selectedVo.id!==Ee.id&&(this.selectedVo=Ee,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===Ee.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(De=>De.voId===Ee.id),this.serviceService.getAssignedServicesVo(this.facility.id,Ee.id).subscribe(De=>{this.filteredServices=[this.emptyService].concat(De),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(Ee){this.selectedResource.id!==Ee.id&&(this.selectedResource=Ee,this.selectedService=this.emptyService,-1===Ee.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(Ee.id).subscribe(De=>{this.filteredServices=[this.emptyService].concat(De),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(Ee){this.selectedService=Ee,this.changeFilter()}}return q.id="FacilityAllowedUsersComponent",q.\u0275fac=function(Ee){return new(Ee||q)(g.Y36(d.IQ),g.Y36(d.KK),g.Y36(d.xk),g.Y36(_.x4),g.Y36(_.d6),g.Y36(_.fb))},q.\u0275cmp=g.Xpm({type:q,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(Ee,De){1&Ee&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return De.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(Ge){return De.applyFilter(Ge)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(Ge){return De.advancedFilter=Ge})("clearFilters",function(){return De.clearFilters()}),g.qZA()(),g.YNc(8,ve,12,14,"div",5),g.YNc(9,v,1,0,"mat-spinner",6),g.YNc(10,H,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&Ee&&(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",De.advancedFilter)("filtersCount",De.filtersCount),g.xp6(1),g.Q6J("ngIf",De.advancedFilter),g.xp6(1),g.Q6J("ngIf",De.loading),g.xp6(1),g.Q6J("ngIf",!De.loading))},dependencies:[b.O5,y.JJ,y.On,E.Ou,S.Rr,U.t,A.M,N.L,z.P,Q.M,ne.J,ce,fe.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}"]}),q})()},34904:(We,pe,h)=>{"use strict";h.d(pe,{f:()=>De});var e=h(95017),d=h(533),_=h(32105),w=h(24006),g=h(65412),b=h(35382),y=h(94650),E=h(89383),S=h(36895),U=h(59549),A=h(284),N=h(4859),z=h(51572),Q=h(62707);function ne(Se,Ge){1&Se&&y._UZ(0,"mat-spinner",5)}function he(Se,Ge){if(1&Se){const Ce=y.EpF();y.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),y.NdJ("voSelected",function(Pe){y.CHM(Ce);const we=y.oxw();return y.KtG(we.selectedVo=Pe)}),y.qZA(),y.TgZ(2,"mat-form-field"),y._UZ(3,"input",8),y.ALo(4,"translate"),y.TgZ(5,"mat-error"),y._uU(6),y.ALo(7,"translate"),y.qZA()(),y.TgZ(8,"mat-form-field"),y._UZ(9,"input",9),y.ALo(10,"translate"),y.TgZ(11,"mat-error"),y._uU(12),y.ALo(13,"translate"),y.qZA()()()}if(2&Se){const Ce=y.oxw();y.xp6(1),y.Q6J("vos",Ce.vos),y.xp6(2),y.s9C("placeholder",y.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),y.Q6J("formControl",Ce.nameCtrl),y.xp6(3),y.hij(" ",y.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),y.xp6(3),y.s9C("placeholder",y.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),y.Q6J("formControl",Ce.descriptionCtrl),y.xp6(3),y.hij(" ",y.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let ee=(()=>{class Se{constructor(Ce,qe,Pe,we,j,I){this.dialogRef=Ce,this.data=qe,this.notificator=Pe,this.voService=we,this.translate=j,this.resourcesManager=I,this.vos=[],this.selectedVo=null,j.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(F=>this.successMessage=F)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(Ce=>{this.vos=Ce,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(y.Y36(g.so),y.Y36(g.WI),y.Y36(b.V6),y.Y36(_.YF),y.Y36(E.sK),y.Y36(_.xk))},Se.\u0275cmp=y.Xpm({type:Se,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(Ce,qe){1&Ce&&(y.TgZ(0,"div"),y.YNc(1,ne,1,0,"mat-spinner",0),y.YNc(2,he,14,15,"div",1),y.TgZ(3,"div",2)(4,"button",3),y.NdJ("click",function(){return qe.onCancel()}),y._uU(5),y.ALo(6,"translate"),y.qZA(),y.TgZ(7,"button",4),y.NdJ("click",function(){return qe.onSubmit()}),y._uU(8),y.ALo(9,"translate"),y.qZA()()()),2&Ce&&(y.Tol(qe.theme),y.xp6(1),y.Q6J("ngIf",qe.loading),y.xp6(1),y.Q6J("ngIf",!qe.loading),y.xp6(3),y.hij(" ",y.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),y.xp6(2),y.Q6J("disabled",qe.nameCtrl.invalid||qe.descriptionCtrl.invalid||null===qe.selectedVo||qe.loading),y.xp6(1),y.hij(" ",y.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[S.O5,U.TO,U.KE,A.Nt,w.Fj,w.JJ,w.Q7,w.oH,N.lW,g.xY,g.H8,z.Ou,Q.M,E.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Se})();var fe=h(10036),ce=h(9244),ve=h(96214),v=h(7434),O=h(62109),H=h(30540);function Y(Se,Ge){if(1&Se){const Ce=y.EpF();y.TgZ(0,"button",9),y.NdJ("click",function(){y.CHM(Ce);const Pe=y.oxw();return y.KtG(Pe.createResource())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}2&Se&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function q(Se,Ge){if(1&Se){const Ce=y.EpF();y.TgZ(0,"button",10),y.NdJ("click",function(){y.CHM(Ce);const Pe=y.oxw();return y.KtG(Pe.removeResource())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}if(2&Se){const Ce=y.oxw();y.Q6J("disabled",0===Ce.selected.selected.length),y.xp6(1),y.hij(" ",y.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ue(Se,Ge){1&Se&&y._UZ(0,"mat-spinner",11)}function Ee(Se,Ge){if(1&Se&&y._UZ(0,"perun-web-apps-resources-list",12),2&Se){const Ce=y.oxw();y.Q6J("tableId",Ce.tableId)("filterValue",Ce.filterValue)("resources",Ce.resources)("selection",Ce.selected)("disableRouting",!Ce.routeAuth)("displayedColumns",Ce.displayedColumns)}}let De=(()=>{class Se{constructor(Ce,qe,Pe,we,j,I){this.dialog=Ce,this.facilitiesManager=qe,this.servicesManager=Pe,this.authResolver=we,this.entityStorageService=j,this.cd=I,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=fe.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(Ce=>{this.services=[this.emptyService].concat(Ce)})}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const Ce=(0,ce.kZ)();Ce.width="450px",Ce.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(d.f,Ce).afterClosed().subscribe(Pe=>{Pe&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(Ce=>{this.resources=Ce,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(Ce=>{this.resources=Ce,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(Ce){this.filterValue=Ce}createResource(){const Ce=(0,ce.kZ)();Ce.width="1350px",Ce.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ee,Ce).afterClosed().subscribe(Pe=>{Pe&&this.refreshTable()})}serviceSelected(Ce){this.selectedService=Ce,this.refreshTable()}}return Se.id="FacilityResourcesComponent",Se.\u0275fac=function(Ce){return new(Ce||Se)(y.Y36(g.uw),y.Y36(_.IQ),y.Y36(_.KK),y.Y36(b.x4),y.Y36(b.fb),y.Y36(y.sBO))},Se.\u0275cmp=y.Xpm({type:Se,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(Ce,qe){2&Ce&&y.ekj("router-component",qe.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(Ce,qe){1&Ce&&(y.TgZ(0,"div")(1,"h1",0),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),y.NdJ("refresh",function(){return qe.refreshTable()}),y.qZA(),y.YNc(6,Y,3,3,"button",3),y.YNc(7,q,3,4,"button",4),y.TgZ(8,"perun-web-apps-service-search-select",5),y.NdJ("serviceSelected",function(we){return qe.serviceSelected(we)}),y.qZA(),y.TgZ(9,"perun-web-apps-immediate-filter",6),y.NdJ("filter",function(we){return qe.applyFilter(we)}),y.qZA()(),y.YNc(10,ue,1,0,"mat-spinner",7),y.YNc(11,Ee,1,6,"perun-web-apps-resources-list",8),y.qZA()),2&Ce&&(y.xp6(2),y.Oqu(y.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),y.xp6(4),y.Q6J("ngIf",qe.addAuth),y.xp6(1),y.Q6J("ngIf",qe.removeAuth),y.xp6(1),y.Q6J("services",qe.services)("service",qe.selectedService),y.xp6(1),y.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),y.xp6(1),y.Q6J("ngIf",qe.loading),y.xp6(1),y.Q6J("ngIf",!qe.loading))},dependencies:[S.O5,N.lW,z.Ou,ve.t,v.L,O.C,H.J,E.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),Se})()},86353:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>Pe});var e=h(32105),d=h(9244),_=h(10036),w=h(95017),g=h(65412),b=h(35382),y=h(24006),E=h(94650),S=h(89383),U=h(94364),A=h(36895),N=h(3238),z=h(59549),Q=h(284),ne=h(4859),he=h(84385),ee=h(51572),fe=h(98380);function ce(we,j){1&we&&E._UZ(0,"mat-spinner",7)}function ve(we,j){if(1&we){const I=E.EpF();E.TgZ(0,"mat-option",16),E.NdJ("click",function(){const G=E.CHM(I).$implicit,_e=E.oxw(2);return E.KtG(_e.srcFacility=G)}),E._uU(1),E.qZA()}if(2&we){const I=j.$implicit;E.Q6J("value",I),E.xp6(1),E.hij(" ",I.name," ")}}function v(we,j){if(1&we){const I=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field"),E._UZ(2,"input",9),E.ALo(3,"translate"),E.TgZ(4,"mat-error"),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"mat-form-field"),E._UZ(8,"input",10),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"mat-form-field")(11,"mat-select",11),E.ALo(12,"translate"),E.TgZ(13,"mat-option",12),E.NdJ("click",function(){E.CHM(I);const ge=E.oxw();return E.KtG(ge.srcFacility=null)}),E._uU(14),E.ALo(15,"translate"),E.qZA(),E.YNc(16,ve,2,2,"mat-option",13),E.qZA()(),E.TgZ(17,"perun-web-apps-alert",14),E._UZ(18,"i",15),E.ALo(19,"translate"),E.qZA()()}if(2&we){const I=E.oxw();E.xp6(2),E.s9C("placeholder",E.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),E.Q6J("formControl",I.nameControl),E.xp6(3),E.Oqu(E.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),E.xp6(3),E.s9C("placeholder",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),E.Q6J("formControl",I.descControl),E.xp6(3),E.s9C("placeholder",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),E.xp6(3),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),E.xp6(2),E.Q6J("ngForOf",I.facilities),E.xp6(2),E.Q6J("innerHTML",E.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),E.oJD)}}let O=(()=>{class we{constructor(I,F,ge,G,_e,Te,et){this.dialogRef=I,this.data=F,this.facilitiesManager=ge,this.notificator=G,this.translate=_e,this.router=Te,this.entityStorageService=et,this.nameControl=new y.p4("",[y.kI.required]),this.descControl=new y.p4(""),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({next:F=>{this.entityStorageService.setEntity({id:F.id,beanName:F.beanName}),sessionStorage.setItem("newFacilityId",String(F.id)),null!==this.srcFacility?this.copyFacilitySettings(F.id):this.handleSuccess(F.id)},error:()=>this.loading=!1})}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 we.\u0275fac=function(I){return new(I||we)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.IQ),E.Y36(b.V6),E.Y36(S.sK),E.Y36(U.F0),E.Y36(b.fb))},we.\u0275cmp=E.Xpm({type:we,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,F){1&I&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ce,1,0,"mat-spinner",1),E.YNc(5,v,20,21,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return F.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return F.onCreate(!1)}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",6),E.NdJ("click",function(){return F.onCreate(!0)}),E._uU(14),E.ALo(15,"translate"),E.qZA()()()),2&I&&(E.Tol(F.theme),E.xp6(2),E.Oqu(E.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),E.xp6(2),E.Q6J("ngIf",F.loading),E.xp6(1),E.Q6J("ngIf",!F.loading),E.xp6(3),E.hij(" ",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===F.nameControl.value.trim().length||F.loading),E.xp6(1),E.hij(" ",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===F.nameControl.value.trim().length||!!F.srcFacility||F.loading),E.xp6(1),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[A.sg,A.O5,N.ey,z.TO,z.KE,Q.Nt,y.Fj,y.JJ,y.Q7,y.oH,ne.lW,g.xY,g.H8,he.gD,ee.Ou,fe.w,S.X$]}),we})();var H=h(54037),Y=h(77968),q=h(97392),ue=h(96214),Ee=h(4235),De=h(7434),Se=h(74010);function Ge(we,j){1&we&&E._UZ(0,"mat-spinner",9)}function Ce(we,j){if(1&we&&E._UZ(0,"perun-web-apps-facilities-list",10),2&we){const I=E.oxw();E.Q6J("tableId",I.tableId)("selection",I.selection)("filterValue",I.filterValue)("facilities",I.facilities)("recentIds",I.recentIds)}}const qe=function(){return{color:"black"}};let Pe=(()=>{class we{constructor(I,F,ge){this.facilityManager=I,this.sideMenuService=F,this.dialog=ge,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,d.vL)("facilities"),this.loading=!1})}onCreate(){const I=(0,d.kZ)();I.width="800px",I.data={theme:"facility-theme"},this.dialog.open(O,I).afterClosed().subscribe(ge=>{ge&&(this.loading=!0,this.refreshTable())})}onDelete(){const I=(0,d.kZ)();I.width="500px",I.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(H.Y,I).afterClosed().subscribe(ge=>{ge&&this.refreshTable()})}applyFilter(I){this.filterValue=I}}return we.id="FacilitySelectPageComponent",we.\u0275fac=function(I){return new(I||we)(E.Y36(e.IQ),E.Y36(Y.D),E.Y36(g.uw))},we.\u0275cmp=E.Xpm({type:we,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(I,F){2&I&&E.ekj("router-component",F.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,F){1&I&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return F.refreshTable()}),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return F.onCreate()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return F.onDelete()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(G){return F.applyFilter(G)}),E.qZA(),E.YNc(14,Ge,1,0,"mat-spinner",7),E.YNc(15,Ce,1,5,"perun-web-apps-facilities-list",8),E.qZA()),2&I&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(15,qe)),E.xp6(1),E.hij(" ",E.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),E.xp6(4),E.hij(" ",E.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===F.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),E.xp6(2),E.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",F.loading),E.xp6(1),E.Q6J("ngIf",!F.loading))},dependencies:[A.O5,A.PC,q.Hw,ne.lW,ee.Ou,ue.t,Ee.W,De.L,Se.X,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),we})()},51076:(We,pe,h)=>{"use strict";h.d(pe,{J:()=>fe});var e=h(65412),d=h(35382),_=h(32105),w=h(9244),g=h(24006),b=h(94650),y=h(89383),E=h(36895),S=h(3238),U=h(59549),A=h(284),N=h(4859),z=h(84385),Q=h(57706);let ne=(()=>{class ce{constructor(v){this.translateService=v,this.returnData=""}transform(v){switch(v){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(O=>{this.returnData=O});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(O=>{this.returnData=O});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(O=>{this.returnData=O});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(O=>{this.returnData=O});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(O=>{this.returnData=O});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(O=>{this.returnData=O});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(O=>{this.returnData=O});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(O=>{this.returnData=O});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(O=>{this.returnData=O});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(O=>{this.returnData=O});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(O=>{this.returnData=O});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(O=>{this.returnData=O});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(O=>{this.returnData=O});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(O=>{this.returnData=O});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(O=>{this.returnData=O});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(O=>{this.returnData=O});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(O=>{this.returnData=O});break;default:return v}return this.returnData}}return ce.\u0275fac=function(v){return new(v||ce)(b.Y36(y.sK,16))},ce.\u0275pipe=b.Yjl({name:"applicationFormWidgetDescription",type:ce,pure:!0}),ce})();function he(ce,ve){if(1&ce&&(b.TgZ(0,"mat-option",9),b._uU(1),b.ALo(2,"applicationFormItemType"),b.qZA()),2&ce){const v=ve.$implicit;b.Q6J("value",v),b.xp6(1),b.hij(" ",b.lcZ(2,2,v)," ")}}function ee(ce,ve){if(1&ce&&(b.TgZ(0,"mat-option",9),b._uU(1),b.qZA()),2&ce){const v=ve.$implicit;b.Q6J("value",v),b.xp6(1),b.hij(" ",v," ")}}let fe=(()=>{class ce{constructor(v,O,H,Y){this.dialogRef=v,this.data=O,this.translateService=H,this.store=Y,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(v=>{this.nameCtrl=new g.p4("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(v);for(const O of this.data.applicationFormItems)this.items.push(O.shortname),O.type===_.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(H=>H!==_.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=v})}cancel(){this.dialogRef.close(void 0)}submit(){const v=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,v])}createApplicationItem(){const v=(0,w.dv)(this.languages);v.id=this.data.fakeId,v.shortname=this.nameCtrl.value,v.type=this.selectedWidget;for(let O=0;O{"use strict";h.d(pe,{W:()=>N});var e=h(65412),d=h(32105),_=h(35382),w=h(94650),g=h(89383),b=h(36895),y=h(4859),E=h(51572),S=h(62707),U=h(82322);function A(z,Q){1&z&&w._UZ(0,"mat-spinner",9)}let N=(()=>{class z{constructor(ne,he,ee,fe,ce,ve,v,O,H){this.dialogRef=ne,this.voService=he,this.groupService=ee,this.translateService=fe,this.registrarManager=ce,this.notificatorService=ve,this.apiRequest=v,this.cd=O,this.data=H,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=Y=>Y.name,fe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(Y=>this.successMessage=Y),fe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(Y=>this.privilegeMessage=Y),fe.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(ne=>{this.vos=ne,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ne){this.selectedVo=ne,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ne=>{this.groups=ne}):this.groups=[],this.selectedGroup=null}}return z.\u0275fac=function(ne){return new(ne||z)(w.Y36(e.so),w.Y36(d.YF),w.Y36(d.ff),w.Y36(g.sK),w.Y36(d.tk),w.Y36(_.V6),w.Y36(_.F5),w.Y36(w.sBO),w.Y36(e.WI))},z.\u0275cmp=w.Xpm({type:z,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,he){1&ne&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,A,1,0,"mat-spinner",1),w.TgZ(5,"div",2)(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(fe){return he.voSelected(fe)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(fe){return he.selectedGroup=fe}),w.qZA()(),w.TgZ(15,"div",6)(16,"button",7),w.NdJ("click",function(){return he.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return he.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA()()()),2&ne&&(w.Tol(he.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",he.loading),w.xp6(1),w.Q6J("hidden",he.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",he.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",he.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",!he.selectedVo&&!he.selectedGroup||he.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[b.O5,y.lW,e.uh,e.xY,e.H8,E.Ou,S.M,U.h,g.X$]}),z})()},40009:(We,pe,h)=>{"use strict";h.d(pe,{R:()=>he});var e=h(65412),d=h(35382),_=h(24006),w=h(32105),g=h(94650),b=h(89383),y=h(36895),E=h(59549),S=h(284),U=h(4859),A=h(56709),N=h(51572);function z(ee,fe){1&ee&&g._UZ(0,"mat-spinner",4)}function Q(ee,fe){if(1&ee){const ce=g.EpF();g.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),g.NdJ("change",function(){g.CHM(ce);const v=g.oxw();return g.KtG(v.makePath())}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"mat-form-field")(8,"input",7),g.NdJ("ngModelChange",function(v){g.CHM(ce);const O=g.oxw();return g.KtG(O.description=v)}),g.ALo(9,"translate"),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.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.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.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(ce);const O=g.oxw();return g.KtG(O.status=v)}),g._uU(32),g.ALo(33,"translate"),g.qZA()(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(ce);const O=g.oxw();return g.KtG(O.propagateExpiredMembers=v)}),g._uU(38),g.ALo(39,"translate"),g.qZA()()()}if(2&ee){const ce=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",ce.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",ce.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",ce.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",ce.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",ce.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",ce.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",ce.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ne(ee,fe){if(1&ee){const ce=g.EpF();g.TgZ(0,"div",12)(1,"button",13),g.NdJ("click",function(){g.CHM(ce);const v=g.oxw();return g.KtG(v.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(ce);const v=g.oxw();return g.KtG(v.asEdit?v.onEdit():v.onCreate())}),g._uU(5),g.qZA()()}if(2&ee){const ce=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",ce.nameControl.invalid||ce.delayControl.invalid||ce.recurrenceControl.invalid||ce.pathControl.invalid),g.xp6(1),g.hij(" ",ce.buttonText," ")}}let he=(()=>{class ee{constructor(ce,ve,v,O,H){this.dialogRef=ce,this.data=ve,this.serviceManager=v,this.notificator=O,this.translate=H,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new _.p4("",[_.kI.required,_.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new _.p4(10,[_.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new _.p4(2,[_.kI.pattern("^[0-9]*$")]),this.pathControl=new _.p4("",[_.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 ce="./".concat(this.nameControl.value);this.pathControl.setValue(ce)}}return ee.\u0275fac=function(ce){return new(ce||ee)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(d.V6),g.Y36(b.sK))},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ce,ve){1&ce&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,z,1,0,"mat-spinner",1),g.YNc(4,Q,40,46,"div",2),g.YNc(5,ne,6,5,"div",3),g.qZA()),2&ce&&(g.Tol(ve.theme),g.xp6(2),g.Oqu(ve.title),g.xp6(1),g.Q6J("ngIf",ve.loading),g.xp6(1),g.Q6J("ngIf",!ve.loading),g.xp6(1),g.Q6J("ngIf",!ve.loading))},dependencies:[y.O5,E.TO,E.KE,S.Nt,_.Fj,_.JJ,_.Q7,_.oH,_.On,U.lW,A.oG,e.uh,e.xY,e.H8,N.Ou,b.X$]}),ee})()},81889:(We,pe,h)=>{"use strict";h.d(pe,{y:()=>fe});var e=h(65412),d=h(35382),_=h(32105),w=h(24006),g=h(94650),b=h(89383),y=h(36895),E=h(59549),S=h(284),U=h(4859),A=h(56709),N=h(51572),z=h(82322);function Q(ce,ve){1&ce&&g._UZ(0,"mat-spinner",3)}function ne(ce,ve){if(1&ce){const v=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(H){g.CHM(v);const Y=g.oxw(2);return g.KtG(Y.asSubgroup=H)})("click",function(){g.CHM(v);const H=g.oxw(2);return g.KtG(H.loadVoGroups())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&ce){const v=g.oxw(2);g.Q6J("ngModel",v.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function he(ce,ve){if(1&ce){const v=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(H){g.CHM(v);const Y=g.oxw(2);return g.KtG(Y.selectedParent=H)}),g.qZA()}if(2&ce){const v=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",v.voGroups)}}function ee(ce,ve){if(1&ce){const v=g.EpF();g.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(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.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA()()(),g.YNc(14,ne,3,5,"mat-checkbox",9),g.YNc(15,he,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11)(17,"button",12),g.NdJ("click",function(){g.CHM(v);const H=g.oxw();return g.KtG(H.onCancel())}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){g.CHM(v);const H=g.oxw();return g.KtG(H.onSubmit())}),g._uU(21),g.ALo(22,"translate"),g.qZA()()()}if(2&ce){const v=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",v.nameControl),g.xp6(3),g.hij(" ",v.invalidNameMessage.length?v.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",v.descriptionControl),g.xp6(3),g.Q6J("ngIf",v.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",v.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",v.nameControl.invalid||v.descriptionControl.invalid||v.asSubgroup&&null===v.selectedParent||v.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let fe=(()=>{class ce{constructor(v,O,H,Y,q,ue){this.dialogRef=v,this.data=O,this.groupService=H,this.translate=Y,this.notificator=q,this.store=ue,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=Ee=>Ee.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?Y.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(Ee=>this.title=Ee):Y.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(Ee=>{this.title=Ee+this.data.parentGroup.name}),Y.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(Ee=>this.successMessage=Ee),Y.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(Ee=>this.successSubGroupMessage=Ee)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.p4("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(v=>{this.voGroups=v.filter(O=>"members"!==O.name)})}}return ce.\u0275fac=function(v){return new(v||ce)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.ff),g.Y36(b.sK),g.Y36(d.V6),g.Y36(d.d6))},ce.\u0275cmp=g.Xpm({type:ce,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(v,O){1&v&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,Q,1,0,"mat-spinner",1),g.YNc(4,ee,23,20,"div",2),g.qZA()),2&v&&(g.xp6(1),g.Oqu(O.title),g.xp6(1),g.Tol(O.theme),g.xp6(1),g.Q6J("ngIf",O.loading),g.xp6(1),g.Q6J("ngIf",!O.loading))},dependencies:[y.O5,E.TO,E.KE,S.Nt,w.Fj,w.JJ,w.Q7,w.oH,w.On,U.lW,A.oG,e.uh,e.xY,e.H8,N.Ou,z.h,b.X$]}),ce})()},54037:(We,pe,h)=>{"use strict";h.d(pe,{Y:()=>E});var e=h(32105),d=h(65412),_=h(35382),w=h(30671),g=h(94650),b=h(89383),y=h(90995);let E=(()=>{class S{constructor(A,N,z,Q,ne){this.dialogRef=A,this.data=N,this.facilitiesManager=z,this.notificator=Q,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(A){this.force=A.force,A.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(A){return new(A||S)(g.Y36(d.so),g.Y36(d.WI),g.Y36(e.IQ),g.Y36(_.V6),g.Y36(b.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(A,N){1&A&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return N.onSubmit(Q)}),g.qZA()()),2&A&&(g.Tol(N.theme),g.xp6(1),g.Q6J("entityNames",N.dataSource)("entityType","facilities")("loading",N.loading)("relations",N.relations))},dependencies:[y.e]}),S})()},41656:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>E});var e=h(65412),d=h(30671),_=h(35382),w=h(32105),g=h(94650),b=h(89383),y=h(90995);let E=(()=>{class S{constructor(A,N,z,Q,ne){this.dialogRef=A,this.data=N,this.notificator=z,this.translate=Q,this.groupService=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.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 A=this.data.groups.map(N=>N.id);this.groupService.deleteGroups({groups:A,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(N=>{this.notificator.showSuccess(N),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(A){this.force=A.force,A.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(A){return new(A||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(b.sK),g.Y36(w.ff))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(A,N){1&A&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return N.onSubmit(Q)}),g.qZA()()),2&A&&(g.Tol(N.theme),g.xp6(1),g.Q6J("entityNames",N.dataSource)("entityType","groups")("loading",N.loading)("relations",N.relations))},dependencies:[y.e]}),S})()},90719:(We,pe,h)=>{"use strict";h.d(pe,{m:()=>E});var e=h(32105),d=h(65412),_=h(35382),w=h(30671),g=h(94650),b=h(89383),y=h(90995);let E=(()=>{class S{constructor(A,N,z,Q,ne){this.dialogRef=A,this.data=N,this.serviceManager=z,this.notificator=Q,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(A){this.force=A.force,A.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(A){return new(A||S)(g.Y36(d.so),g.Y36(d.WI),g.Y36(e.KK),g.Y36(_.V6),g.Y36(b.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(A,N){1&A&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return N.onSubmit(Q)}),g.qZA()()),2&A&&(g.Tol(N.theme),g.xp6(1),g.Q6J("entityNames",N.dataSource)("entityType","services")("anotherMessage",N.anotherMessage)("loading",N.loading)("relations",N.relations))},dependencies:[y.e]}),S})()},83491:(We,pe,h)=>{"use strict";h.d(pe,{_:()=>Ze});var e=h(65412),d=h(32105),_=h(9244),w=h(33604),g=h(35382),b=h(94650),y=h(89383),E=h(36895),S=h(3238),U=h(39349),A=h(59549),N=h(284),z=h(24006),Q=h(97392),ne=h(4859),he=h(3848),ee=h(56709),fe=h(84385),ce=h(51572),ve=h(10266),v=h(63312),O=h(52170);const H=["*"];let Y=(()=>{class Je{}return Je.\u0275fac=function(ze){return new(ze||Je)},Je.\u0275cmp=b.Xpm({type:Je,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:H,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(ze,oe){1&ze&&(b.F$t(),b.TgZ(0,"div",0)(1,"span",1),b._uU(2),b.qZA(),b.TgZ(3,"div",2),b.Hsn(4),b.qZA()(),b.TgZ(5,"div",3),b._UZ(6,"span",4),b.TgZ(7,"div",5),b._uU(8),b.qZA()()),2&ze&&(b.xp6(2),b.hij("",oe.label,":"),b.xp6(6),b.hij(" ",oe.description," "))}}),Je})();var q=h(57706);let ue=(()=>{class Je{constructor(ze){this.translateService=ze}transform(ze){switch(ze){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+ze);default:return ze}}}return Je.\u0275fac=function(ze){return new(ze||Je)(b.Y36(y.sK,16))},Je.\u0275pipe=b.Yjl({name:"applicationFormItemDisabled",type:Je,pure:!0}),Je})(),Ee=(()=>{class Je{constructor(ze){this.translateService=ze}transform(ze){switch(ze){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+ze);default:return ze}}}return Je.\u0275fac=function(ze){return new(ze||Je)(b.Y36(y.sK,16))},Je.\u0275pipe=b.Yjl({name:"applicationFormItemHidden",type:Je,pure:!0}),Je})();function De(Je,ct){1&Je&&b._UZ(0,"mat-spinner",8)}function Se(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw(3);return b.KtG(r.applicationFormItem.updatable=V)}),b.qZA()()()()}if(2&Je){const ze=b.oxw(3);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),b.xp6(4),b.Q6J("ngModel",ze.applicationFormItem.updatable)}}function Ge(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw(3);return b.KtG(r.applicationFormItem.federationAttribute=V)}),b.qZA()()()}if(2&Je){const ze=b.oxw(3);b.xp6(2),b.Q6J("ngModel",ze.applicationFormItem.federationAttribute)}}function Ce(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.applicationFormItem.required=V)}),b.qZA()()(),b.YNc(6,Se,6,7,"div",17),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.applicationFormItem.perunSourceAttribute=V.value)}),b.qZA()()(),b.TgZ(12,"app-edit-application-form-item-line",12),b.ALo(13,"translate"),b.ALo(14,"translate"),b.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.applicationFormItem.perunDestinationAttribute=V.value)}),b.qZA()()(),b.TgZ(17,"app-edit-application-form-item-line",12),b.ALo(18,"translate"),b.ALo(19,"translate"),b.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),b.NdJ("itemSelected",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.changeFederationAttribute(V))}),b.qZA()(),b.YNc(22,Ge,3,1,"div",25),b.qZA()()}if(2&Je){const ze=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),b.xp6(4),b.Q6J("ngModel",ze.applicationFormItem.required),b.xp6(1),b.Q6J("ngIf",ze.typesWithUpdatable.indexOf(ze.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",ze.sourceAttributes)("selectedAttribute",ze.applicationFormItem.perunSourceAttribute)("asGroup",!!ze.data.group)("type",ze.itemType.SOURCE),b.xp6(1),b.Q6J("description",b.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",ze.destinationAttributes)("selectedAttribute",ze.applicationFormItem.perunDestinationAttribute)("asGroup",!!ze.data.group)("type",ze.itemType.DESTINATION),b.xp6(1),b.Q6J("description",b.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),b.xp6(4),b.Q6J("selectedAttribute",ze.applicationFormItem.federationAttribute)("asGroup",!!ze.data.group)("type",ze.itemType.FEDERATION),b.xp6(1),b.Q6J("ngIf"," -- custom value -- "===ze.federationAttributeDN)}}function qe(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"input",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.applicationFormItem.regex=V)}),b.qZA()()()()}if(2&Je){const ze=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),b.xp6(4),b.Q6J("ngModel",ze.applicationFormItem.regex)}}function Pe(Je,ct){if(1&Je&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemDisabled"),b.qZA()),2&Je){const ze=ct.$implicit;b.Q6J("value",ze),b.xp6(1),b.hij(" ",b.lcZ(2,2,ze)," ")}}function we(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(V){b.CHM(ze);const r=b.oxw(3);return b.KtG(r.disabledDependencyItem=V)}),b.qZA()}if(2&Je){const ze=b.oxw(3);b.Q6J("item",ze.disabledDependencyItem)("items",ze.possibleDependencyItems)}}function j(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"mat-select",18),b.NdJ("valueChange",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.applicationFormItem.disabled=V)}),b.YNc(6,Pe,3,4,"mat-option",19),b.qZA()()(),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13),b.YNc(11,we,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()()}if(2&Je){const ze=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",b.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),b.xp6(4),b.Q6J("value",ze.applicationFormItem.disabled),b.xp6(1),b.Q6J("ngForOf",ze.disabledValues),b.xp6(1),b.Q6J("description",b.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==ze.disabledDependencyItem)}}function I(Je,ct){if(1&Je&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemHidden"),b.qZA()),2&Je){const ze=ct.$implicit;b.Q6J("value",ze),b.xp6(1),b.hij(" ",b.lcZ(2,2,ze)," ")}}function F(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(V){b.CHM(ze);const r=b.oxw(2);return b.KtG(r.hiddenDependencyItem=V)}),b.qZA()}if(2&Je){const ze=b.oxw(2);b.Q6J("item",ze.hiddenDependencyItem)("items",ze.possibleDependencyItems)}}function ge(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",28),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw().$implicit,s=b.oxw(2);return b.KtG(s.applicationFormItem.i18n[r].label=V)}),b.qZA()()()()}if(2&Je){const ze=b.oxw().$implicit,oe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),b.xp6(4),b.Q6J("cdkTextareaAutosize",!0)("ngModel",oe.applicationFormItem.i18n[ze].label)}}function G(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw().$implicit,s=b.oxw(2);return b.KtG(s.applicationFormItem.i18n[r].label=V)}),b.qZA()()(),b.TgZ(6,"app-edit-application-form-item-line",12),b.ALo(7,"translate"),b.ALo(8,"translate"),b.TgZ(9,"mat-form-field",13)(10,"textarea",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw().$implicit,s=b.oxw(2);return b.KtG(s.applicationFormItem.i18n[r].help=V)}),b.qZA()()(),b.TgZ(11,"app-edit-application-form-item-line",12),b.ALo(12,"translate"),b.ALo(13,"translate"),b.TgZ(14,"mat-form-field",13)(15,"textarea",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw().$implicit,s=b.oxw(2);return b.KtG(s.applicationFormItem.i18n[r].errorMessage=V)}),b.qZA()()()()}if(2&Je){const ze=b.oxw().$implicit,oe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",b.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",oe.applicationFormItem.i18n[ze].label),b.xp6(1),b.Q6J("description",b.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",b.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),b.xp6(4),b.Q6J("ngModel",oe.applicationFormItem.i18n[ze].help),b.xp6(1),b.Q6J("description",b.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",b.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),b.xp6(4),b.Q6J("ngModel",oe.applicationFormItem.i18n[ze].errorMessage)}}function _e(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw().$implicit,s=b.oxw(2);return b.KtG(s.applicationFormItem.i18n[r].label=V)}),b.qZA()()()()}if(2&Je){const ze=b.oxw().$implicit,oe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",oe.applicationFormItem.i18n[ze].label)}}function Te(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div"),b._uU(1),b.ALo(2,"translate"),b.TgZ(3,"mat-form-field")(4,"input",14),b.NdJ("ngModelChange",function(V){const s=b.CHM(ze).$implicit;return b.KtG(s[0]=V)}),b.qZA()(),b._uU(5),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field")(8,"input",14),b.NdJ("ngModelChange",function(V){const s=b.CHM(ze).$implicit;return b.KtG(s[1]=V)}),b.qZA()(),b.TgZ(9,"button",37),b.NdJ("click",function(){const r=b.CHM(ze).$implicit,s=b.oxw(2).$implicit,f=b.oxw(2);return b.KtG(f.removeOption(r,s))}),b.ALo(10,"translate"),b.TgZ(11,"mat-icon"),b._uU(12,"clear"),b.qZA()()()}if(2&Je){const ze=ct.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),b.xp6(3),b.Q6J("ngModel",ze[0]),b.xp6(1),b.hij(" ",b.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),b.xp6(3),b.Q6J("ngModel",ze[1]),b.xp6(1),b.s9C("matTooltip",b.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function et(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div")(1,"div",29),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",30),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",31)(8,"button",32),b.NdJ("click",function(){b.CHM(ze);const V=b.oxw().$implicit,r=b.oxw(2);return b.KtG(r.sortOptionsAZ(V))}),b.TgZ(9,"i",33),b._uU(10,"arrow_downward"),b.qZA(),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"button",34),b.NdJ("click",function(){b.CHM(ze);const V=b.oxw().$implicit,r=b.oxw(2);return b.KtG(r.sortOptionsZA(V))}),b.TgZ(14,"i",33),b._uU(15,"arrow_upward"),b.qZA(),b._uU(16),b.ALo(17,"translate"),b.qZA()(),b.YNc(18,Te,13,11,"div",35),b.TgZ(19,"button",36),b.NdJ("click",function(){b.CHM(ze);const V=b.oxw().$implicit,r=b.oxw(2);return b.KtG(r.addOption(V))}),b._uU(20),b.ALo(21,"translate"),b.qZA()()}if(2&Je){const ze=b.oxw().$implicit,oe=b.oxw(2);b.xp6(2),b.hij(" ",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),b.xp6(3),b.hij(" ",b.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),b.xp6(6),b.hij(" ",b.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),b.xp6(5),b.hij(" ",b.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),b.xp6(2),b.Q6J("ngForOf",oe.options[ze]),b.xp6(2),b.hij(" ",b.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Xe=function(){return["HEADING","HTML_COMMENT"]},vt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},rt=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},ht=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function W(Je,ct){if(1&Je&&(b.TgZ(0,"mat-tab",11),b.ALo(1,"translate"),b.ALo(2,"uppercase"),b.YNc(3,ge,6,8,"div",17),b.YNc(4,G,16,21,"div",17),b.YNc(5,_e,6,7,"div",17),b.YNc(6,et,22,16,"div",17),b.qZA()),2&Je){const ze=ct.$implicit,oe=b.oxw(2);b.s9C("label",b.lcZ(1,5,b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+ze))),b.xp6(3),b.Q6J("ngIf",oe.isApplicationFormItemOfType(b.DdM(9,Xe))),b.xp6(1),b.Q6J("ngIf",oe.isApplicationFormItemOfType(b.DdM(10,vt))),b.xp6(1),b.Q6J("ngIf",oe.isApplicationFormItemOfType(b.DdM(11,rt))),b.xp6(1),b.Q6J("ngIf",oe.isApplicationFormItemOfType(b.DdM(12,ht)))}}const le=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},ie=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ae(Je,ct){if(1&Je){const ze=b.EpF();b.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),b.ALo(3,"translate"),b.TgZ(4,"app-edit-application-form-item-line",12),b.ALo(5,"translate"),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field",13)(8,"input",14),b.NdJ("ngModelChange",function(V){b.CHM(ze);const r=b.oxw();return b.KtG(r.applicationFormItem.shortname=V)}),b.qZA()()(),b.TgZ(9,"app-edit-application-form-item-line",12),b.ALo(10,"translate"),b.ALo(11,"translate"),b._uU(12),b.ALo(13,"applicationFormItemType"),b.qZA(),b.TgZ(14,"app-edit-application-form-item-line",12),b.ALo(15,"translate"),b.ALo(16,"translate"),b.TgZ(17,"section")(18,"mat-checkbox",15),b.NdJ("change",function(){b.CHM(ze);const V=b.oxw();return b.KtG(V.onChangingType("INITIAL"))}),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-checkbox",16),b.NdJ("change",function(){b.CHM(ze);const V=b.oxw();return b.KtG(V.onChangingType("EXTENSION"))}),b._uU(22),b.ALo(23,"translate"),b.qZA()()(),b.YNc(24,Ce,23,38,"div",17),b.YNc(25,qe,6,7,"div",17),b.YNc(26,j,12,15,"div",17),b.TgZ(27,"app-edit-application-form-item-line",12),b.ALo(28,"translate"),b.ALo(29,"translate"),b.TgZ(30,"mat-form-field",13)(31,"mat-select",18),b.NdJ("valueChange",function(V){b.CHM(ze);const r=b.oxw();return b.KtG(r.applicationFormItem.hidden=V)}),b.YNc(32,I,3,4,"mat-option",19),b.qZA()()(),b.TgZ(33,"app-edit-application-form-item-line",12),b.ALo(34,"translate"),b.ALo(35,"translate"),b.TgZ(36,"div",13),b.YNc(37,F,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()(),b.YNc(38,W,7,13,"mat-tab",21),b.qZA()()}if(2&Je){const ze=b.oxw();b.xp6(2),b.s9C("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),b.xp6(2),b.Q6J("description",b.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",b.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),b.xp6(4),b.Q6J("ngModel",ze.applicationFormItem.shortname),b.xp6(1),b.Q6J("description",b.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",b.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),b.xp6(3),b.hij(" ",b.lcZ(13,34,ze.applicationFormItem.type)," "),b.xp6(2),b.Q6J("description",b.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",b.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),b.xp6(4),b.Q6J("ngModel",ze.applicationFormItem.applicationTypes.includes("INITIAL")),b.xp6(1),b.hij(" ",b.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),b.xp6(2),b.Q6J("ngModel",ze.applicationFormItem.applicationTypes.includes("EXTENSION")),b.xp6(1),b.hij(" ",b.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),b.xp6(2),b.Q6J("ngIf",ze.isApplicationFormItemOfType(b.DdM(52,le))),b.xp6(1),b.Q6J("ngIf",ze.isApplicationFormItemOfType(b.DdM(53,ie))),b.xp6(1),b.Q6J("ngIf",ze.typesWithDisabled.indexOf(ze.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",b.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),b.xp6(4),b.Q6J("value",ze.applicationFormItem.hidden),b.xp6(1),b.Q6J("ngForOf",ze.hiddenValues),b.xp6(1),b.Q6J("description",b.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==ze.hiddenDependencyItem),b.xp6(1),b.Q6J("ngForOf",ze.languages)}}let Ze=(()=>{class Je{constructor(ze,oe,V,r,s,f){this.dialogRef=ze,this.data=oe,this.attributesManager=V,this.translateService=r,this.store=s,this.cd=f,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.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(ze=>ze.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(ze=>ze.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(ze=>{const oe=this.filterAttributesForWidget(ze);this.sourceAttributes=oe.concat(this.findAttribute(ze,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=oe.concat(this.findAttribute(ze,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(ze){if(this.applicationFormItem.applicationTypes.includes(ze)){const oe=this.applicationFormItem.applicationTypes.indexOf(ze);this.applicationFormItem.applicationTypes.splice(oe,1)}else this.applicationFormItem.applicationTypes.push(ze)}addOption(ze){this.options[ze].push(["",""])}removeOption(ze,oe){this.options[oe]=this.options[oe].filter(V=>!(V[0]===ze[0]&&V[1]===ze[1]))}sortOptionsAZ(ze){this.options[ze]=this.options[ze].sort((oe,V)=>oe[1]>V[1]?1:oe[1]oe[1]>V[1]?-1:oe[1]this.dependencyTypes.includes(ze.type)).filter(ze=>ze.id!==this.data.applicationFormItem.id))}updateOption(ze){let oe="";if(this.options[ze])for(const V of this.options[ze])""!==V[0]&&""!==V[1]&&(oe=""===oe?V[0]+"#"+V[1]:oe+"|"+V[0]+"#"+V[1]);this.applicationFormItem.i18n[ze].options=oe}updateOptions(){for(const ze of this.languages)this.updateOption(ze)}findAttribute(ze,oe){return ze.find(V=>oe.includes(V.friendlyName))}filterAttributesForWidget(ze){return ze.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?oe=>oe.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?oe=>oe.type.includes("ArrayList"):oe=>!oe.type.includes("ArrayList")&&!oe.type.includes("LinkedHashMap"))}}return Je.\u0275fac=function(ze){return new(ze||Je)(b.Y36(e.so),b.Y36(e.WI),b.Y36(d.H8),b.Y36(y.sK),b.Y36(g.d6),b.Y36(b.sBO))},Je.\u0275cmp=b.Xpm({type:Je,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(ze,oe){1&ze&&(b.TgZ(0,"div")(1,"div",0)(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.YNc(5,De,1,0,"mat-spinner",2),b.YNc(6,ae,39,54,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return oe.cancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div",6),b.ALo(12,"translate"),b.TgZ(13,"button",7),b.NdJ("click",function(){return oe.submit()}),b._uU(14),b.ALo(15,"translate"),b.qZA()()()()()),2&ze&&(b.Gre("",oe.theme," h-100"),b.xp6(3),b.AsE(" ",b.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",oe.applicationFormItem.shortname," "),b.xp6(2),b.Q6J("ngIf",oe.loading),b.xp6(1),b.Q6J("ngIf",!oe.loading),b.xp6(3),b.hij(" ",b.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),b.Q6J("matTooltipDisabled",!oe.applicationFormItem.required||""!==oe.applicationFormItem.perunSourceAttribute||""!==oe.applicationFormItem.federationAttribute||"ALWAYS"!==oe.applicationFormItem.disabled&&"ALWAYS"!==oe.applicationFormItem.hidden),b.xp6(2),b.Q6J("disabled",oe.loading||oe.applicationFormItem.required&&""===oe.applicationFormItem.perunSourceAttribute&&""===oe.applicationFormItem.federationAttribute&&("ALWAYS"===oe.applicationFormItem.disabled||"ALWAYS"===oe.applicationFormItem.hidden)),b.xp6(1),b.hij(" ",b.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[E.sg,E.O5,S.ey,U.IC,A.KE,N.Nt,z.Fj,z.JJ,z.On,Q.Hw,ne.lW,he.SP,he.uX,ee.oG,e.uh,e.xY,e.H8,fe.gD,ce.Ou,ve.gM,v.Y,O.$x,Y,E.gd,y.X$,q.c,ue,Ee]}),Je})()},19352:(We,pe,h)=>{"use strict";h.d(pe,{H:()=>Ge});var e=h(32105),d=h(65412),_=h(35382),w=h(30671),g=h(9244),b=h(74281),y=h(36895),E=h(94650),S=h(89383),U=h(97392),A=h(4859),N=h(51572),z=h(10266),Q=h(31359);function ne(Ce,qe){1&Ce&&E._UZ(0,"mat-spinner",6)}function he(Ce,qe){1&Ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function ee(Ce,qe){if(1&Ce&&(E.TgZ(0,"td",18),E._uU(1),E.qZA()),2&Ce){const Pe=qe.$implicit;E.xp6(1),E.Oqu(Pe.user.id)}}function fe(Ce,qe){1&Ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function ce(Ce,qe){if(1&Ce&&(E.TgZ(0,"td",18),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&Ce){const Pe=qe.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Pe.user))}}function ve(Ce,qe){1&Ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function v(Ce,qe){if(1&Ce){const Pe=E.EpF();E.TgZ(0,"button",20),E.NdJ("click",function(){E.CHM(Pe);const j=E.oxw().$implicit,I=E.oxw(2);return E.KtG(I.changeExpiration(j))}),E.TgZ(1,"mat-icon"),E._uU(2," today "),E.qZA()()}}function O(Ce,qe){if(1&Ce&&(E.TgZ(0,"td",18)(1,"span"),E._uU(2),E.qZA(),E.YNc(3,v,3,0,"button",19),E.qZA()),2&Ce){const Pe=qe.$implicit,we=E.oxw(2);E.xp6(2),E.Oqu(we.parseDate(Pe.validityTo)),E.xp6(1),E.Q6J("ngIf",we.isExpirationAuthorized(Pe))}}function H(Ce,qe){1&Ce&&E._UZ(0,"th",17)}function Y(Ce,qe){1&Ce&&(E.TgZ(0,"mat-icon",25),E._uU(1,"clear"),E.qZA())}function q(Ce,qe){1&Ce&&(E.TgZ(0,"mat-icon"),E._uU(1,"settings_backup_restore"),E.qZA())}function ue(Ce,qe){if(1&Ce){const Pe=E.EpF();E.TgZ(0,"td",18)(1,"div",21),E.ALo(2,"translate"),E.TgZ(3,"button",22),E.NdJ("click",function(){const I=E.CHM(Pe).$implicit,F=E.oxw(2);return E.KtG(F.markSponsor(I))}),E.YNc(4,Y,2,0,"mat-icon",23),E.YNc(5,q,2,0,"mat-icon",24),E.qZA()()()}if(2&Ce){const Pe=qe.$implicit,we=E.oxw(2);E.xp6(1),E.s9C("matTooltip",E.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),E.Q6J("matTooltipDisabled",we.isRemoveAuthorized(Pe))("matTooltipPosition","above"),E.xp6(2),E.Q2q("data-cy","",Pe.user.firstName,"-unsponsor-mark-button"),E.Q6J("disabled",!we.isRemoveAuthorized(Pe)),E.xp6(1),E.Q6J("ngIf",!we.sponsorsToRemove.has(Pe.user.id)),E.xp6(1),E.Q6J("ngIf",we.sponsorsToRemove.has(Pe.user.id))}}function Ee(Ce,qe){1&Ce&&E._UZ(0,"tr",26)}function De(Ce,qe){if(1&Ce&&E._UZ(0,"tr",27),2&Ce){const Pe=qe.$implicit,we=E.oxw(2);E.ekj("make-red",we.sponsorsToRemove.has(Pe.user.id))}}function Se(Ce,qe){if(1&Ce&&(E.TgZ(0,"div",7)(1,"table",8),E.ynx(2,9),E.YNc(3,he,3,3,"th",10),E.YNc(4,ee,2,1,"td",11),E.BQk(),E.ynx(5,12),E.YNc(6,fe,3,3,"th",10),E.YNc(7,ce,3,3,"td",11),E.BQk(),E.ynx(8,13),E.YNc(9,ve,3,3,"th",10),E.YNc(10,O,4,2,"td",11),E.BQk(),E.ynx(11,14),E.YNc(12,H,1,0,"th",10),E.YNc(13,ue,6,9,"td",11),E.BQk(),E.YNc(14,Ee,1,0,"tr",15),E.YNc(15,De,1,2,"tr",16),E.qZA()()),2&Ce){const Pe=E.oxw();E.xp6(1),E.Q6J("dataSource",Pe.dataSource),E.xp6(13),E.Q6J("matHeaderRowDef",Pe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Pe.displayedColumns)}}let Ge=(()=>{class Ce{constructor(Pe,we,j,I,F,ge,G,_e){this.dialogRef=Pe,this.data=we,this.memberService=j,this.userService=I,this.notificator=F,this.authResolver=ge,this.translate=G,this.dialog=_e,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(Pe){this.sponsorsToRemove.has(Pe.user.id)?this.sponsorsToRemove.delete(Pe.user.id):this.sponsorsToRemove.add(Pe.user.id)}onSubmit(){this.loading=!0;const Pe=Array.from(this.sponsorsToRemove);this.removeSponsors(Pe)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(Pe){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[Pe.user])}isExpirationAuthorized(Pe){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[Pe.user,this.vo])}parseDate(Pe){return null===Pe?"Never expire":(0,y.p6)(Pe,"d.M.y","en")}changeExpiration(Pe){const we=(0,g.kZ)();we.width="400px",we.data={memberId:this.data.member.id,sponsor:Pe},this.dialog.open(b.hd,we).afterClosed().subscribe(I=>{I&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(F=>{this.sponsors=F,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(Pe){if(0===Pe.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const we=Pe.pop();this.memberService.removeSponsor(this.data.member.id,we).subscribe(()=>{this.removeSponsors(Pe)},()=>this.loading=!1)}}return Ce.\u0275fac=function(Pe){return new(Pe||Ce)(E.Y36(d.so),E.Y36(d.WI),E.Y36(e.uq),E.Y36(e.Fv),E.Y36(_.V6),E.Y36(_.x4),E.Y36(S.sK),E.Y36(d.uw))},Ce.\u0275cmp=E.Xpm({type:Ce,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Pe,we){1&Pe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div"),E.YNc(4,ne,1,0,"mat-spinner",1),E.YNc(5,Se,16,3,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return we.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return we.onSubmit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Pe&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),E.xp6(2),E.Tol(we.theme),E.xp6(1),E.Q6J("ngIf",we.loading),E.xp6(1),E.Q6J("ngIf",!we.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),E.xp6(2),E.Q6J("disabled",we.loading||0===we.sponsorsToRemove.size),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[y.O5,U.Hw,A.lW,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,d.uh,d.xY,d.H8,N.Ou,z.gM,S.X$,Q.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),Ce})()},74414:(We,pe,h)=>{"use strict";h.d(pe,{R:()=>v});var e=h(65412),d=h(24006),_=h(32105),w=h(35382),g=h(94650),b=h(89383),y=h(36895),E=h(3238),S=h(59549),U=h(284),A=h(4859),N=h(84385),z=h(51572);function Q(O,H){1&O&&g._UZ(0,"mat-spinner",6)}function ne(O,H){1&O&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function he(O,H){1&O&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function ee(O,H){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,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function fe(O,H){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,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function ce(O,H){if(1&O&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&O){const Y=H.$implicit;g.s9C("value",Y),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Y)))}}function ve(O,H){if(1&O){const Y=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ne,3,3,"div",8),g.YNc(2,he,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,ee,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,fe,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9)(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ue){g.CHM(Y);const Ee=g.oxw();return g.KtG(Ee.currentLanguage=ue)}),g.YNc(16,ce,4,6,"mat-option",13),g.qZA()()()}if(2&O){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 v=(()=>{class O{constructor(Y,q,ue,Ee,De,Se){this.dialogRef=Y,this.data=q,this.registrarManager=ue,this.notificator=Ee,this.translate=De,this.store=Se,this.emailForm=new d.p4("",[d.kI.required,d.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new d.p4("",d.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(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 O.\u0275fac=function(Y){return new(Y||O)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.tk),g.Y36(w.V6),g.Y36(b.sK),g.Y36(w.d6))},O.\u0275cmp=g.Xpm({type:O,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,q){1&Y&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,Q,1,0,"mat-spinner",1),g.YNc(5,ve,17,17,"div",2),g.TgZ(6,"div",3)(7,"button",4),g.NdJ("click",function(){return q.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return q.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA()()()),2&Y&&(g.Tol(q.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",q.loading),g.xp6(1),g.Q6J("ngIf",!q.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",q.emailForm.invalid||q.name.invalid||q.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[y.sg,y.O5,E.ey,S.TO,S.KE,S.hX,U.Nt,d.Fj,d.JJ,d.Q7,d.oH,A.lW,e.uh,e.xY,e.H8,N.gD,z.Ou,y.gd,b.X$]}),O})()},87842:(We,pe,h)=>{"use strict";h.d(pe,{c:()=>ue});var e=h(65412),d=h(24006),_=h(68675),w=h(54004),g=h(36769),b=h(35382),y=h(32105),E=h(94650),S=h(89383),U=h(36895),A=h(47957),N=h(3238),z=h(59549),Q=h(284),ne=h(4859),he=h(51572),ee=h(10266),fe=h(71948),ce=h(98380);function ve(Ee,De){1&Ee&&(E.TgZ(0,"mat-radio-button",12),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ee&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function v(Ee,De){1&Ee&&(E.TgZ(0,"mat-radio-button",13),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ee&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function O(Ee,De){1&Ee&&(E.TgZ(0,"perun-web-apps-alert",14),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ee&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function H(Ee,De){if(1&Ee){const Se=E.EpF();E.TgZ(0,"mat-option",20),E.NdJ("click",function(){const qe=E.CHM(Se).$implicit,Pe=E.oxw(2);return E.KtG(Pe.selectedGroup=qe)}),E.TgZ(1,"span"),E._uU(2),E.qZA()()}if(2&Ee){const Se=De.$implicit;E.Q6J("value",Se),E.xp6(2),E.Oqu(Se.name)}}function Y(Ee,De){if(1&Ee){const Se=E.EpF();E.TgZ(0,"mat-form-field",15)(1,"input",16),E.NdJ("change",function(){E.CHM(Se);const Ce=E.oxw();return E.KtG(Ce.selectedGroup=null)}),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"mat-autocomplete",17,18),E.YNc(5,H,3,2,"mat-option",19),E.ALo(6,"async"),E.qZA()()}if(2&Ee){const Se=E.MAs(4),Ge=E.oxw();E.Q6J("@openClose","toGroup"===Ge.moveOption?"open":"closed"),E.xp6(1),E.s9C("placeholder",E.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),E.Q6J("formControl",Ge.otherGroupsCtrl)("matAutocomplete",Se),E.xp6(2),E.Q6J("displayWith",Ge.displayFn),E.xp6(2),E.Q6J("ngForOf",E.lcZ(6,8,Ge.filteredGroups))}}function q(Ee,De){1&Ee&&E._UZ(0,"mat-spinner",21)}let ue=(()=>{class Ee{constructor(Se,Ge,Ce,qe,Pe,we,j){this.dialogRef=Se,this.data=Ge,this.groupService=Ce,this.notificator=qe,this.translate=Pe,this.apiRequest=we,this.authResolver=j,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new d.p4(null,[d.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(Se=>{this.otherGroups=Se.filter(Ge=>Ge.id!==this.data.group.id&&"members"!==Ge.name&&this.canMove(Ge)),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)(Ge=>Ge?this._filterGroups(Ge):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Se){return Se&&Se.name}canMove(Se){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Se,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Se])}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)},Se=>{this.notificator.showRPCError(Se,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Se){if("object"==typeof Se)return[];const Ge=Se.toLowerCase();return Se?this.otherGroups.filter(Ce=>Ce.name.toLowerCase().includes(Ge)):this.otherGroups}}return Ee.\u0275fac=function(Se){return new(Se||Ee)(E.Y36(e.so),E.Y36(e.WI),E.Y36(y.ff),E.Y36(b.V6),E.Y36(S.sK),E.Y36(b.F5),E.Y36(b.x4))},Ee.\u0275cmp=E.Xpm({type:Ee,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(Se,Ge){1&Se&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",1)(5,"p"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.TgZ(8,"mat-radio-group",2),E.NdJ("ngModelChange",function(qe){return Ge.moveOption=qe}),E.YNc(9,ve,3,3,"mat-radio-button",3),E.YNc(10,v,3,3,"mat-radio-button",4),E.qZA(),E.YNc(11,O,3,3,"perun-web-apps-alert",5),E.YNc(12,Y,7,10,"mat-form-field",6),E.qZA(),E.YNc(13,q,1,0,"mat-spinner",7),E.TgZ(14,"div",8)(15,"button",9),E.NdJ("click",function(){return Ge.close()}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"span",10),E.ALo(19,"translate"),E.TgZ(20,"button",11),E.NdJ("click",function(){return Ge.confirm()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()),2&Se&&(E.Tol(Ge.data.theme),E.xp6(2),E.AsE("",E.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Ge.data.group.name,""),E.xp6(4),E.hij(" ",E.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),E.xp6(2),E.Q6J("ngModel",Ge.moveOption),E.xp6(1),E.Q6J("ngIf",!Ge.toRootOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.toRootOptionDisabled&&Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.loading),E.xp6(3),E.hij(" ",E.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),E.Q6J("matTooltipDisabled",null!==Ge.selectedGroup||"toRoot"===Ge.moveOption)("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",(Ge.otherGroupsCtrl.invalid||null===Ge.selectedGroup)&&"toRoot"!==Ge.moveOption||Ge.loading),E.xp6(1),E.hij(" ",E.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[U.sg,U.O5,A.XC,A.ZL,N.ey,z.KE,Q.Nt,d.Fj,d.JJ,d.Q7,d.oH,d.On,ne.lW,e.uh,e.xY,e.H8,he.Ou,ee.gM,fe.VQ,fe.U0,ce.w,U.Ov,S.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),Ee})()},58964:(We,pe,h)=>{"use strict";h.d(pe,{m:()=>ee});var e=h(65412),d=h(32105),_=h(35382),w=h(94650),g=h(89383),b=h(36895),y=h(3238),E=h(59549),S=h(4859),U=h(84385),A=h(51572);function N(fe,ce){1&fe&&w._UZ(0,"mat-spinner",7)}function z(fe,ce){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&fe){const ve=ce.$implicit;w.Q6J("value",ve),w.xp6(1),w.hij(" ",ve.friendlyNameParameter," ")}}function Q(fe,ce){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&fe){const ve=ce.$implicit;w.Q6J("value",ve),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ve))," ")}}function ne(fe,ce){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&fe){const ve=ce.$implicit;w.Q6J("value",ve),w.xp6(1),w.hij(" ",ve," ")}}function he(fe,ce){if(1&fe){const ve=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(ve);const H=w.oxw();return w.KtG(H.selectedLogin=O)}),w.YNc(6,z,2,2,"mat-option",10),w.qZA()(),w.TgZ(7,"mat-form-field")(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(ve);const H=w.oxw();return w.KtG(H.selectedLang=O)}),w.YNc(12,Q,4,6,"mat-option",10),w.qZA()(),w.TgZ(13,"mat-form-field")(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(ve);const H=w.oxw();return w.KtG(H.selectedMail=O)}),w.YNc(18,ne,2,2,"mat-option",10),w.qZA()(),w.TgZ(19,"div",11)(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA()()()}if(2&fe){const ve=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",ve.selectedLogin),w.xp6(1),w.Q6J("ngForOf",ve.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",ve.selectedLang),w.xp6(1),w.Q6J("ngForOf",ve.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",ve.selectedMail),w.xp6(1),w.Q6J("ngForOf",ve.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(ve.selectedLogin.value)}}let ee=(()=>{class fe{constructor(ve,v,O,H,Y,q,ue){this.dialogRef=ve,this.data=v,this.membersManagerService=O,this.attributesManagerService=H,this.store=Y,this.translate=q,this.notificator=ue,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],q.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(Ee=>this.successMessage=Ee)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const ve=this.selectedLogin.friendlyNameParameter,O=window.location.href.split("/"),H=O[0]+"//"+O[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,ve,this.pwdMails.get(this.selectedMail),this.selectedLang,H).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 fe.\u0275fac=function(ve){return new(ve||fe)(w.Y36(e.so),w.Y36(e.WI),w.Y36(d.uq),w.Y36(d.H8),w.Y36(_.d6),w.Y36(g.sK),w.Y36(_.V6))},fe.\u0275cmp=w.Xpm({type:fe,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(ve,v){1&ve&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,N,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,he,25,19,"div",3),w.TgZ(6,"div",4)(7,"button",5),w.NdJ("click",function(){return v.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return v.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA()()),2&ve&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",v.loading),w.xp6(1),w.Q6J("ngIf",!v.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",v.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[b.sg,b.O5,y.ey,E.KE,E.hX,S.lW,e.uh,e.xY,e.H8,U.gD,A.Ou,b.gd,g.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),fe})()},53455:(We,pe,h)=>{"use strict";h.d(pe,{X:()=>ve});var e=h(65412),d=h(30671),_=h(35382),w=h(32105),g=h(94650),b=h(89383),y=h(36895),E=h(4859),S=h(51572),U=h(31359);function A(v,O){1&v&&g._UZ(0,"th",13)}function N(v,O){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&v){const H=O.$implicit;g.xp6(1),g.Oqu(H.id)}}function z(v,O){1&v&&g._UZ(0,"th",13)}function Q(v,O){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&v){const H=O.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,H.user))}}function ne(v,O){1&v&&g._UZ(0,"tr",15)}function he(v,O){1&v&&g._UZ(0,"tr",16)}function ee(v,O){if(1&v&&(g.TgZ(0,"div",4)(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,A,1,0,"th",8),g.YNc(10,N,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,z,1,0,"th",8),g.YNc(13,Q,3,3,"td",9),g.BQk(),g.YNc(14,ne,1,0,"tr",11),g.YNc(15,he,1,0,"tr",12),g.qZA()()),2&v){const H=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,H.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",H.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",H.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",H.displayedColumns)}}function fe(v,O){1&v&&g._UZ(0,"mat-spinner",17)}function ce(v,O){if(1&v){const H=g.EpF();g.TgZ(0,"div",18)(1,"button",19),g.NdJ("click",function(){g.CHM(H);const q=g.oxw();return g.KtG(q.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){g.CHM(H);const q=g.oxw();return g.KtG(q.onSubmit())}),g._uU(5),g.ALo(6,"translate"),g.qZA()()}if(2&v){const H=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,H.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let ve=(()=>{class v{constructor(H,Y,q,ue,Ee,De){this.dialogRef=H,this.data=Y,this.membersService=q,this.groupService=ue,this.notificator=Ee,this.translate=De,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.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(H=>H.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(H=>H.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const H=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(H),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return v.\u0275fac=function(H){return new(H||v)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(_.V6),g.Y36(b.sK))},v.\u0275cmp=g.Xpm({type:v,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(H,Y){1&H&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,ee,16,9,"div",1),g.YNc(5,fe,1,0,"mat-spinner",2),g.YNc(6,ce,7,6,"div",3),g.qZA()),2&H&&(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))},dependencies:[y.O5,E.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.uh,e.xY,e.H8,S.Ou,b.X$,U.d]}),v})()},533:(We,pe,h)=>{"use strict";h.d(pe,{f:()=>E});var e=h(65412),d=h(30671),_=h(35382),w=h(32105),g=h(94650),b=h(89383),y=h(90995);let E=(()=>{class S{constructor(A,N,z,Q,ne){this.dialogRef=A,this.data=N,this.notificator=z,this.translate=Q,this.resourcesManager=ne,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.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(A=>{this.loading=!1,this.notificator.showSuccess(A),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(A){A.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(A){return new(A||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(b.sK),g.Y36(w.xk))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(A,N){1&A&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return N.onSubmit(Q)}),g.qZA()()),2&A&&(g.Tol(N.theme),g.xp6(1),g.Q6J("entityNames",N.dataSource)("entityType","resources")("disableForce",!0)("loading",N.loading))},dependencies:[y.e]}),S})()},11717:(We,pe,h)=>{"use strict";h.d(pe,{o:()=>E});var e=h(65412),d=h(30671),_=h(35382),w=h(32105),g=h(94650),b=h(89383),y=h(90995);let E=(()=>{class S{constructor(A,N,z,Q,ne){this.dialogRef=A,this.data=N,this.notificator=z,this.voService=Q,this.translate=ne,this.force=!1,this.displayedColumns=["name"],this.relations=[],ne.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(he=>this.successMessage=he)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.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(A){this.force=A.force,A.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(A){return new(A||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(w.YF),g.Y36(b.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(A,N){1&A&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return N.onSubmit(Q)}),g.qZA()()),2&A&&(g.Tol(N.theme),g.xp6(1),g.Q6J("entityNames",N.dataSource)("entityType","organizations")("loading",N.loading)("relations",N.relations))},dependencies:[y.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),S})()},1186:(We,pe,h)=>{"use strict";h.d(pe,{E:()=>he});var e=h(65412),d=h(32105),_=h(94650),w=h(36895),g=h(3238),b=h(59549),y=h(284),E=h(24006),S=h(4859),U=h(84385),A=h(51572),N=h(89383);function z(ee,fe){1&ee&&_._UZ(0,"mat-spinner",6)}function Q(ee,fe){if(1&ee){const ce=_.EpF();_.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),_.NdJ("valueChange",function(v){_.CHM(ce);const O=_.oxw(2);return _.KtG(O.embeddedState=v)}),_.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()()()()}if(2&ee){const ce=_.oxw(2);_.xp6(2),_.MGl("placeholder","",_.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),_.Q6J("value",ce.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(ee,fe){if(1&ee){const ce=_.EpF();_.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),_.NdJ("ngModelChange",function(v){_.CHM(ce);const O=_.oxw();return _.KtG(O.moduleName=v)}),_.ALo(3,"translate"),_.qZA()(),_.TgZ(4,"mat-form-field",9)(5,"mat-select",10),_.NdJ("valueChange",function(v){_.CHM(ce);const O=_.oxw();return _.KtG(O.initialState=v)}),_.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()()(),_.TgZ(13,"mat-form-field",9)(14,"mat-select",10),_.NdJ("valueChange",function(v){_.CHM(ce);const O=_.oxw();return _.KtG(O.extensionState=v)}),_.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()()(),_.YNc(22,Q,10,10,"div",13),_.qZA()}if(2&ee){const ce=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),_.Q6J("ngModel",ce.moduleName),_.xp6(3),_.MGl("placeholder","",_.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),_.Q6J("value",ce.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",ce.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"===ce.entity&&ce.autoRegistrationEnabled)}}let he=(()=>{class ee{constructor(ce,ve,v){this.dialogRef=ce,this.data=ve,this.registrarManager=v,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(ce=>{this.dialogRef.close(ce)},()=>this.loading=!1)}}return ee.\u0275fac=function(ce){return new(ce||ee)(_.Y36(e.so),_.Y36(e.WI),_.Y36(d.tk))},ee.\u0275cmp=_.Xpm({type:ee,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(ce,ve){1&ce&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,z,1,0,"mat-spinner",1),_.YNc(5,ne,23,25,"div",2),_.TgZ(6,"div",3)(7,"button",4),_.NdJ("click",function(){return ve.onCancel()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",5),_.NdJ("click",function(){return ve.submit()}),_._uU(11),_.ALo(12,"translate"),_.qZA()()()),2&ce&&(_.Tol(ve.theme),_.xp6(2),_.Oqu(_.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),_.xp6(2),_.Q6J("ngIf",ve.loading),_.xp6(1),_.Q6J("ngIf",!ve.loading),_.xp6(3),_.hij(" ",_.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),_.xp6(2),_.Q6J("disabled",ve.loading),_.xp6(1),_.hij(" ",_.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[w.O5,g.ey,b.KE,y.Nt,E.Fj,E.JJ,E.On,S.lW,e.uh,e.xY,e.H8,U.gD,A.Ou,N.X$]}),ee})()},34775:(We,pe,h)=>{"use strict";h.d(pe,{_:()=>Qe});var e=h(32105),d=h(94650),_=h(36895),w=h(97392),g=h(37084),b=h(51572),y=h(73546),E=h(98380),S=h(87831),U=h(24179),A=h(62109),N=h(38383),z=h(74010),Q=h(64877),ne=h(89383);function he(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function ee(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function fe(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SELF_IDENTITIES_"+$.entityType)," ")}}const ce=function(){return["user","id","name"]};function ve(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,fe,3,3,"div",2),d._UZ(2,"app-users-list",11),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,ce))("disableRouting",!0)("users",$.users)}}function v(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,ve,3,5,"div",2),d.qZA()),2&ye){const $=d.oxw(3);d.xp6(1),d.Q6J("ngIf",$.users.length)}}function O(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw(2);return d.KtG(Ve.getSelfData(Ve.roles.get("SELF").get("User")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ee,1,0,"mat-spinner",1),d.YNc(8,v,2,1,"div",2),d.qZA()}if(2&ye){const $=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SELF")),d.xp6(2),d.Q6J("ngIf",$.loading),d.xp6(1),d.Q6J("ngIf",!$.loading)}}function H(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function Y(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_VOS_"+$.entityType)," ")}}const q=function(){return["id","name","shortName"]};function ue(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,Y,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",13),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,q))("vos",$.vos)("disableRouting",!0)}}function Ee(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_GROUPS_"+$.entityType)," ")}}const De=function(){return["id","vo","name","description"]};function Se(ye,Ie){if(1&ye&&(d.TgZ(0,"div",14),d.YNc(1,Ee,3,3,"div",2),d._UZ(2,"perun-web-apps-groups-list",15),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,De))("groups",$.groups)("disableRouting",!0)}}function Ge(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_RESOURCES_"+$.entityType)," ")}}const Ce=function(){return["id","name","vo","facility","description"]};function qe(ye,Ie){if(1&ye&&(d.TgZ(0,"div",14),d.YNc(1,Ge,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",16),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("resources",$.resources)("displayedColumns",d.DdM(4,Ce))("disableRouting",!0)}}function Pe(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_FACILITIES_"+$.entityType)," ")}}const we=function(){return["id","name","description"]};function j(ye,Ie){if(1&ye&&(d.TgZ(0,"div",14),d.YNc(1,Pe,3,3,"div",2),d._UZ(2,"perun-web-apps-facilities-list",17),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,we))("facilities",$.facilities)("disableRouting",!0)}}function I(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,ue,3,5,"div",2),d.YNc(2,Se,3,5,"div",12),d.YNc(3,qe,3,5,"div",12),d.YNc(4,j,3,5,"div",12),d.qZA()),2&ye){const $=d.oxw(3);d.xp6(1),d.Q6J("ngIf",$.vos.length),d.xp6(1),d.Q6J("ngIf",$.groups.length),d.xp6(1),d.Q6J("ngIf",$.resources.length),d.xp6(1),d.Q6J("ngIf",$.facilities.length)}}function F(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw(2);return d.KtG(Ve.getMembershipData(Ve.roles.get("MEMBERSHIP").get("Group"),Ve.roles.get("MEMBERSHIP").get("Vo"),Ve.roles.get("MEMBERSHIP").get("Resource"),Ve.roles.get("MEMBERSHIP").get("Facility")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,H,1,0,"mat-spinner",1),d.YNc(8,I,5,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.MEMBERSHIP")),d.xp6(2),d.Q6J("ngIf",$.loading),d.xp6(1),d.Q6J("ngIf",!$.loading)}}function ge(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function G(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(3).$implicit,de=d.oxw(2);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES."+$+"_GROUPS_"+de.entityType)," ")}}function _e(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,G,3,3,"div",2),d._UZ(2,"perun-web-apps-groups-list",19),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,De))("groups",$.groups)}}function Te(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw().$implicit,$e=d.oxw(2);return d.KtG($e.getGroups($e.roles.get(Ve).get("Group")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",18),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ge,1,0,"mat-spinner",1),d.YNc(8,_e,3,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw().$implicit,de=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.".concat($))),d.xp6(2),d.Q6J("ngIf",de.loading),d.xp6(1),d.Q6J("ngIf",!de.loading)}}function et(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,Te,9,5,"mat-expansion-panel",5),d.qZA()),2&ye){const $=Ie.$implicit,de=d.oxw(2);d.xp6(1),d.Q6J("ngIf",de.roles.has($))}}function Xe(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function vt(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(3).$implicit,de=d.oxw(2);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES."+$+"_VOS_"+de.entityType)," ")}}function rt(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,vt,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",21),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,q))("vos",$.vos)}}function ht(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw().$implicit,$e=d.oxw(2);return d.KtG($e.getVos($e.roles.get(Ve).get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",20),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,Xe,1,0,"mat-spinner",1),d.YNc(8,rt,3,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw().$implicit,de=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.".concat($))),d.xp6(2),d.Q6J("ngIf",de.loading),d.xp6(1),d.Q6J("ngIf",!de.loading)}}function W(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,ht,9,5,"mat-expansion-panel",5),d.qZA()),2&ye){const $=Ie.$implicit,de=d.oxw(2);d.xp6(1),d.Q6J("ngIf",de.roles.has($))}}function le(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function ie(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(3).$implicit,de=d.oxw(2);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES."+$+"_RESOURCES_"+de.entityType)," ")}}function ae(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,ie,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",23),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("resources",$.resources)("displayedColumns",d.DdM(4,Ce))("routingVo",!0)}}function Ze(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw().$implicit,$e=d.oxw(2);return d.KtG($e.getResources($e.roles.get(Ve).get("Resource")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",22),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,le,1,0,"mat-spinner",1),d.YNc(8,ae,3,5,"div",2),d.qZA()}if(2&ye){const $=d.oxw().$implicit,de=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.".concat($))),d.xp6(2),d.Q6J("ngIf",de.loading),d.xp6(1),d.Q6J("ngIf",!de.loading)}}function Je(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,Ze,9,5,"mat-expansion-panel",5),d.qZA()),2&ye){const $=Ie.$implicit,de=d.oxw(2);d.xp6(1),d.Q6J("ngIf",de.roles.has($))}}function ct(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function ze(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(3).$implicit,de=d.oxw(2);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES."+$+"_FACILITIES_"+de.entityType)," ")}}function oe(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,ze,3,3,"div",2),d._UZ(2,"perun-web-apps-facilities-list",25),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,we))("facilities",$.facilities)}}function V(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw().$implicit,$e=d.oxw(2);return d.KtG($e.getFacilities($e.roles.get(Ve).get("Facility")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",24),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ct,1,0,"mat-spinner",1),d.YNc(8,oe,3,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw().$implicit,de=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.".concat($))),d.xp6(2),d.Q6J("ngIf",de.loading),d.xp6(1),d.Q6J("ngIf",!de.loading)}}function r(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,V,9,5,"mat-expansion-panel",5),d.qZA()),2&ye){const $=Ie.$implicit,de=d.oxw(2);d.xp6(1),d.Q6J("ngIf",de.roles.has($))}}function s(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function f(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS_"+$.entityType)," ")}}const l=function(){return["id","fullName","sponsored"]};function a(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,f,3,3,"div",2),d._UZ(2,"perun-web-apps-members-list",26),d.qZA()),2&ye){const $=d.oxw(3);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,l))("members",$.members)}}function n(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw(2);return d.KtG(Ve.getMembers(Ve.roles.get("SPONSORSHIP").get("Member")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,s,1,0,"mat-spinner",1),d.YNc(8,a,3,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SPONSORSHIP")),d.xp6(2),d.Q6J("ngIf",$.loading),d.xp6(1),d.Q6J("ngIf",!$.loading)}}function t(ye,Ie){1&ye&&d._UZ(0,"mat-spinner",4)}function i(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye){const $=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SPONSOR_VOS_"+$.entityType)," ")}}function o(ye,Ie){if(1&ye&&(d.TgZ(0,"div"),d.YNc(1,i,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",21),d.qZA()),2&ye){const $=d.oxw(3);d.xp6(1),d.Q6J("ngIf",$.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,q))("vos",$.vos)}}function c(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){d.CHM($);const Ve=d.oxw(2);return d.KtG(Ve.getVos(Ve.roles.get("SPONSOR").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,t,1,0,"mat-spinner",1),d.YNc(8,o,3,4,"div",2),d.qZA()}if(2&ye){const $=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SPONSOR")),d.xp6(2),d.Q6J("ngIf",$.loading),d.xp6(1),d.Q6J("ngIf",!$.loading)}}function p(ye,Ie){1&ye&&(d.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()()()),2&ye&&(d.xp6(5),d.Oqu(d.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function M(ye,Ie){1&ye&&(d.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()()()),2&ye&&(d.xp6(5),d.Oqu(d.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Me(ye,Ie){if(1&ye&&(d.TgZ(0,"p",28),d._uU(1),d.qZA()),2&ye){const $=Ie.$implicit;d.xp6(1),d.AsE("",$[0]," ids: ",$[1],"")}}function it(ye,Ie){if(1&ye){const $=d.EpF();d.TgZ(0,"mat-expansion-panel",8),d.NdJ("opened",function(){const $e=d.CHM($).$implicit,nt=d.oxw(2);return d.KtG(nt.getInnerKeys($e))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",9),d.TgZ(4,"p",10),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,Me,2,2,"p",27),d.qZA()}if(2&ye){const $=Ie.$implicit,de=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,2,$)),d.xp6(2),d.Q6J("ngForOf",de.currentIds)}}const Dt=function(){return["GROUPADMIN","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER"]},Zt=function(){return["VOADMIN","VOOBSERVER","TOPGROUPCREATOR","TRUSTEDFACILITYADMIN"]},Et=function(){return["RESOURCEADMIN","RESOURCEOBSERVER","RESOURCESELFSERVICE"]},pt=function(){return["FACILITYADMIN","FACILITYOBSERVER"]};function je(ye,Ie){if(1&ye&&(d.TgZ(0,"mat-accordion"),d.YNc(1,O,9,5,"mat-expansion-panel",5),d.YNc(2,F,9,5,"mat-expansion-panel",5),d.YNc(3,et,2,1,"div",6),d.YNc(4,W,2,1,"div",6),d.YNc(5,Je,2,1,"div",6),d.YNc(6,r,2,1,"div",6),d.YNc(7,n,9,5,"mat-expansion-panel",5),d.YNc(8,c,9,5,"mat-expansion-panel",5),d.YNc(9,p,7,3,"mat-expansion-panel",2),d.YNc(10,M,7,3,"mat-expansion-panel",2),d.YNc(11,it,8,4,"mat-expansion-panel",7),d.qZA()),2&ye){const $=d.oxw();d.xp6(1),d.Q6J("ngIf",$.roles.get("SELF")),d.xp6(1),d.Q6J("ngIf",$.roles.get("MEMBERSHIP")),d.xp6(1),d.Q6J("ngForOf",d.DdM(11,Dt)),d.xp6(1),d.Q6J("ngForOf",d.DdM(12,Zt)),d.xp6(1),d.Q6J("ngForOf",d.DdM(13,Et)),d.xp6(1),d.Q6J("ngForOf",d.DdM(14,pt)),d.xp6(1),d.Q6J("ngIf",$.roles.has("SPONSORSHIP")),d.xp6(1),d.Q6J("ngIf",$.roles.has("SPONSOR")),d.xp6(1),d.Q6J("ngIf",$.roles.has("PERUNADMIN")),d.xp6(1),d.Q6J("ngIf",$.roles.has("PERUNOBSERVER")),d.xp6(1),d.Q6J("ngForOf",$.roleNames)}}function Oe(ye,Ie){1&ye&&(d.TgZ(0,"perun-web-apps-alert",29),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ye&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}let Qe=(()=>{class ye{constructor($,de,Ve,$e,nt,Le,st){this.authzResolverService=$,this.usersManagerService=de,this.vosManagerService=Ve,this.facilitiesManagerService=$e,this.resourcesManagerService=nt,this.groupsManagerService=Le,this.membersManagerService=st,this.roles=new Map,this.groups=[],this.vos=[],this.facilities=[],this.resources=[],this.members=[],this.users=[],this.currentIds=[]}getGroups($){this.loading=!0,this.groups=[],this.groupsManagerService.getGroupsByIds($).subscribe(de=>{this.groups=de,this.loading=!1})}getVos($){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds($).subscribe(de=>{this.vos=de,this.loading=!1})}getFacilities($){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesByIds($).subscribe(de=>{this.facilities=de.map(Ve=>({facility:Ve})),this.loading=!1})}getResources($){this.loading=!0,this.resources=[],this.resourcesManagerService.getRichResourcesByIds($).subscribe(de=>{this.resources=de,this.loading=!1})}getMembers($){this.loading=!0,this.members=[],this.membersManagerService.getRichMembersByIds($).subscribe(de=>{this.members=de,this.loading=!1})}getSelfData($){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.entityId).subscribe(de=>{this.vos=de;const Ve=[this.entityId].concat($);this.usersManagerService.getRichUsersByIds(Ve).subscribe($e=>{this.users=$e,this.loading=!1})})}getMembershipData($,de,Ve,$e){this.loading=!0,this.vos=[],this.resources=[],this.groups=[],this.facilities=[],this.getResourcesIfArrayNotEmpty(Ve).then(()=>this.getFacilitiesIfArrayNotEmpty($e).then(()=>this.getVosIfArrayNotEmpty(de).then(()=>this.getGroupsIfArrayNotEmpty($).then(()=>this.loading=!1).catch(nt=>console.error(nt))).catch(nt=>console.error(nt))).catch(nt=>console.error(nt))).catch(nt=>console.error(nt))}getResourcesIfArrayNotEmpty($){return new Promise(de=>{$&&0!==$.length?this.resourcesManagerService.getRichResourcesByIds($).subscribe(Ve=>{this.resources=Ve,de()}):de()})}getFacilitiesIfArrayNotEmpty($){return new Promise(de=>{$&&0!==$.length?this.facilitiesManagerService.getFacilitiesByIds($).subscribe(Ve=>{this.facilities=Ve.map($e=>({facility:$e})),de()}):de()})}getVosIfArrayNotEmpty($){return new Promise(de=>{$&&0!==$.length?this.vosManagerService.getVosByIds($).subscribe(Ve=>{this.vos=Ve,de()}):de()})}getGroupsIfArrayNotEmpty($){return new Promise(de=>{$&&0!==$.length?this.groupsManagerService.getGroupsByIds($).subscribe(Ve=>{this.groups=Ve,de()}):de()})}getInnerKeys($){if(this.roles.get($)){const de=this.roles.get($).entries(),Ve=[];let $e=de.next().value;for(;$e;)Ve.push($e),$e=de.next().value;this.currentIds=Ve}else this.currentIds=[]}}return ye.\u0275fac=function($){return new($||ye)(d.Y36(e.Ct),d.Y36(e.Fv),d.Y36(e.YF),d.Y36(e.IQ),d.Y36(e.xk),d.Y36(e.ff),d.Y36(e.uq))},ye.\u0275cmp=d.Xpm({type:ye,selectors:[["app-perun-web-apps-roles-page"]],inputs:{roles:"roles",outerLoading:"outerLoading",showDescription:"showDescription",roleNames:"roleNames",entityId:"entityId",entityType:"entityType"},decls:6,vars:6,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","disableRouting","users"],["class","mt-5",4,"ngIf"],[3,"displayedColumns","vos","disableRouting"],[1,"mt-5"],[3,"displayedColumns","groups","disableRouting"],[3,"resources","displayedColumns","disableRouting"],[3,"displayedColumns","facilities","disableRouting"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"displayedColumns","groups"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],[3,"displayedColumns","vos"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"],["alert_type","warn"]],template:function($,de){1&$&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.YNc(3,he,1,0,"mat-spinner",1),d.YNc(4,je,12,15,"mat-accordion",2),d.YNc(5,Oe,3,3,"perun-web-apps-alert",3)),2&$&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"ROLES.TITLE")),d.xp6(2),d.Q6J("ngIf",de.outerLoading),d.xp6(1),d.Q6J("ngIf",!de.outerLoading&&de.roles.size>0),d.xp6(1),d.Q6J("ngIf",!de.outerLoading&&0===de.roles.size))},dependencies:[_.sg,_.O5,w.Hw,g.pp,g.ib,g.yz,g.yK,b.Ou,y.kc,E.w,S.Z,U.W,A.C,N.O,z.X,Q.C,ne.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),ye})()},60205:(We,pe,h)=>{"use strict";h.d(pe,{Q:()=>ge});var e=h(94650),d=h(96308),_=h(30671),w=h(95017),g=h(9244),b=h(35382),y=h(36895),E=h(94364),S=h(97392),U=h(56709),A=h(10266),N=h(98380),z=h(50301),Q=h(18750),ne=h(89383),he=h(9185);function ee(G,_e){if(1&G){const Te=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(Xe){e.CHM(Te);const vt=e.oxw(2);return e.KtG(Xe?vt.masterToggle():null)}),e.qZA()()}if(2&G){const Te=e.oxw().ngIf,et=e.oxw();e.xp6(1),e.Q6J("aria-label",et.checkboxLabel())("checked",et.selection.hasValue()&&Te.all)("indeterminate",et.selection.hasValue()&&!Te.all)}}function fe(G,_e){if(1&G){const Te=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(Xe){const rt=e.CHM(Te).$implicit,ht=e.oxw(2);return e.KtG(Xe?ht.selection.toggle(rt):null)})("click",function(Xe){return Xe.stopPropagation()}),e.ALo(2,"lowercase"),e.qZA()()}if(2&G){const Te=_e.$implicit,et=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,Te.name),"-checkbox"),e.Q6J("aria-label",et.checkboxLabel(Te))("checked",et.selection.isSelected(Te))}}function ce(G,_e){1&G&&(e.ynx(0,16),e.YNc(1,ee,2,3,"th",17),e.YNc(2,fe,3,5,"td",18),e.BQk())}function ve(G,_e){1&G&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function v(G,_e){if(1&G&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&G){const Te=_e.$implicit;e.xp6(1),e.Oqu(Te.id)}}function O(G,_e){1&G&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function H(G,_e){if(1&G&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&G){const Te=_e.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,Te.name),"-name-td"),e.xp6(2),e.hij(" ",Te.name," ")}}function Y(G,_e){1&G&&e._UZ(0,"th",26)}function q(G,_e){1&G&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function ue(G,_e){1&G&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function Ee(G,_e){if(1&G&&(e.TgZ(0,"td",25),e.YNc(1,q,3,3,"mat-icon",27),e.YNc(2,ue,3,3,"mat-icon",28),e.qZA()),2&G){const Te=_e.$implicit;e.xp6(1),e.Q6J("ngIf",Te.enabled),e.xp6(1),e.Q6J("ngIf",!Te.enabled)}}function De(G,_e){1&G&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Se(G,_e){if(1&G&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&G){const Te=_e.$implicit;e.xp6(1),e.Oqu(Te.script)}}function Ge(G,_e){1&G&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Ce(G,_e){if(1&G&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&G){const Te=_e.$implicit;e.xp6(1),e.Oqu(Te.description)}}function qe(G,_e){1&G&&e._UZ(0,"tr",31)}const Pe=function(G){return["/admin/services",G]};function we(G,_e){if(1&G&&e._UZ(0,"tr",32),2&G){const Te=_e.$implicit,et=e.oxw();e.ekj("cursor-pointer",!et.disableRouting)("disable-outline",et.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",et.disableRouting?null:e.VKq(6,Pe,Te.id))("routerLink",et.disableRouting?null:e.VKq(8,Pe,Te.id))}}function j(G,_e){1&G&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(G,_e){1&G&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&G&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const F=function(G){return{all:G}};let ge=(()=>{class G{constructor(Te,et){this.authResolver=Te,this.tableCheckbox=et,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(Te){this.sort=Te,this.setDataSource()}static getDataForColumn(Te,et){switch(et){case"id":return Te.id.toString();case"name":return Te.name;case"enabled":return Te.enabled?"true":"false";case"script":return Te.script;case"description":return Te.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Te=>"id"!==Te)),this.dataSource=new _.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(Te){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,G.getDataForColumn),Te)}exportDisplayedData(Te){const et=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Xe=et+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(et,Xe),this.displayedColumns,G.getDataForColumn),Te)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Te,et)=>(0,g.Sd)(Te,et,this.displayedColumns,G.getDataForColumn),this.dataSource.sortData=(Te,et)=>(0,g.pR)(Te,et,G.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Te){return Te?`${this.selection.isSelected(Te)?"deselect":"select"} row ${Te.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return G.\u0275fac=function(Te){return new(Te||G)(e.Y36(b.x4),e.Y36(b.UA))},G.\u0275cmp=e.Xpm({type:G,selectors:[["app-services-list"]],viewQuery:function(Te,et){if(1&Te&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&Te){let Xe;e.iGM(Xe=e.CRH())&&(et.child=Xe.first),e.iGM(Xe=e.CRH())&&(et.matSort=Xe.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Te,et){1&Te&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(vt){return et.exportDisplayedData(vt)})("exportAllData",function(vt){return et.exportAllData(vt)}),e.TgZ(2,"table",2),e.YNc(3,ce,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ve,3,3,"th",5),e.YNc(7,v,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,O,3,3,"th",5),e.YNc(10,H,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Y,1,0,"th",10),e.YNc(13,Ee,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,De,3,3,"th",10),e.YNc(16,Se,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,Ge,3,3,"th",5),e.YNc(19,Ce,2,1,"td",8),e.BQk(),e.YNc(20,qe,1,0,"tr",13),e.YNc(21,we,1,10,"tr",14),e.qZA()()(),e.YNc(22,j,3,3,"perun-web-apps-alert",15),e.YNc(23,I,3,3,"perun-web-apps-alert",15)),2&Te&&(e.Q6J("hidden",void 0===et.services||0===et.services.length||0===et.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",et.pageSizeOptions)("dataLength",et.dataSource.filteredData.length)("tableId",et.tableId),e.xp6(1),e.Q6J("dataSource",et.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,F,e.xi3(4,10,et.dataSource,et.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",et.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",et.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===et.dataSource.filteredData.length&&void 0!==et.services&&0!==et.services.length),e.xp6(1),e.Q6J("ngIf",void 0===et.services||0===et.services.length))},dependencies:[y.O5,E.rH,S.Hw,d.YE,d.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,U.oG,A.gM,N.w,z.YH,Q.l,y.i8,ne.X$,he.I],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),G})()},64877:(We,pe,h)=>{"use strict";h.d(pe,{C:()=>rt});var e=h(96308),d=h(30671),_=h(95017),w=h(9244),g=h(35382),b=h(94650),y=h(36895),E=h(97392),S=h(56709),U=h(10266),A=h(98380),N=h(50301),z=h(18750),Q=h(89383),ne=h(31359),he=h(16119),ee=h(7598),fe=h(9954),ce=h(9185);function ve(ht,W){if(1&ht){const le=b.EpF();b.TgZ(0,"mat-checkbox",22),b.NdJ("change",function(ae){b.CHM(le);const Ze=b.oxw(3);return b.KtG(ae?Ze.masterToggle():null)}),b.qZA()}if(2&ht){const le=b.oxw(2).ngIf,ie=b.oxw();b.Q6J("aria-label",ie.checkboxLabel())("checked",ie.selection.hasValue()&&le.all)("indeterminate",ie.selection.hasValue()&&!le.all)}}function v(ht,W){if(1&ht&&(b.TgZ(0,"th",20),b.YNc(1,ve,1,3,"mat-checkbox",21),b.qZA()),2&ht){const le=b.oxw(2);b.xp6(1),b.Q6J("ngIf",le.selection.isMultipleSelection())}}function O(ht,W){if(1&ht){const le=b.EpF();b.TgZ(0,"td",23)(1,"mat-checkbox",24),b.NdJ("change",function(ae){const Je=b.CHM(le).$implicit,ct=b.oxw(2);return b.KtG(ae?ct.selection.toggle(Je):null)})("click",function(ae){return ae.stopPropagation()}),b.ALo(2,"lowercase"),b.qZA()()}if(2&ht){const le=W.$implicit,ie=b.oxw(2);b.xp6(1),b.Q2q("data-cy","",b.lcZ(2,4,le.firstName),"-checkbox"),b.Q6J("aria-label",ie.checkboxLabel(le))("checked",ie.selection.isSelected(le))("disabled",ie.disableSelf&&le.id===ie.principalId&&!ie.authResolver.isPerunAdmin())}}function H(ht,W){1&ht&&(b.ynx(0,17),b.YNc(1,v,2,1,"th",18),b.YNc(2,O,3,6,"td",19),b.BQk())}function Y(ht,W){1&ht&&b._UZ(0,"th",25)}function q(ht,W){1&ht&&(b.TgZ(0,"mat-icon",29),b.ALo(1,"translate"),b._uU(2," account_circle "),b.qZA()),2&ht&&b.s9C("matTooltip",b.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function ue(ht,W){if(1&ht&&(b._UZ(0,"mat-icon",30),b.ALo(1,"translate")),2&ht){const le=b.oxw(2);b.s9C("matTooltip",b.lcZ(1,2,"MANAGERS_LIST.SERVICE")),b.Q6J("svgIcon",le.svgIcon)}}function Ee(ht,W){if(1&ht&&(b.TgZ(0,"td",26),b.YNc(1,q,3,3,"mat-icon",27),b.YNc(2,ue,2,4,"mat-icon",28),b.qZA()),2&ht){const le=W.$implicit;b.xp6(1),b.Q6J("ngIf",!le.serviceUser),b.xp6(1),b.Q6J("ngIf",le.serviceUser)}}function De(ht,W){1&ht&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Se(ht,W){if(1&ht&&(b.TgZ(0,"td",26),b._uU(1),b.qZA()),2&ht){const le=W.$implicit;b.xp6(1),b.hij(" ",le.id," ")}}function Ge(ht,W){1&ht&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ce(ht,W){if(1&ht&&(b.TgZ(0,"td",32),b.ALo(1,"lowercase"),b._uU(2),b.ALo(3,"userFullName"),b.qZA()),2&ht){const le=W.$implicit;b.Q2q("data-cy","",b.lcZ(1,2,le.firstName),"-firstName-td"),b.xp6(2),b.hij(" ",b.lcZ(3,4,le)," ")}}function qe(ht,W){1&ht&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function Pe(ht,W){if(1&ht&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userVo"),b.qZA()),2&ht){const le=W.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,le))}}function we(ht,W){1&ht&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function j(ht,W){if(1&ht&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userEmail"),b.qZA()),2&ht){const le=W.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,le))}}function I(ht,W){1&ht&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function F(ht,W){if(1&ht&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userLogins"),b.qZA()),2&ht){const le=W.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,le))}}function ge(ht,W){1&ht&&b._UZ(0,"tr",33)}const G=function(ht){return["/admin/users",ht]},_e=function(ht){return["/myProfile/service-identities",ht]};function Te(ht,W){if(1&ht&&b._UZ(0,"tr",34),2&ht){const le=W.$implicit,ie=b.oxw();b.ekj("cursor-pointer",!ie.disableRouting),b.Q6J("perunWebAppsForceRouterLink",ie.disableRouting?null:ie.routeToAdmin?b.VKq(4,G,le.id):b.VKq(6,_e,le.id))("perunWebAppsMiddleClickRouterLink",ie.disableRouting?null:ie.routeToAdmin?b.VKq(8,G,le.id):b.VKq(10,_e,le.id))}}function et(ht,W){if(1&ht&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht){const le=b.oxw();b.xp6(1),b.hij(" ",le.noUsersFoundLabel?le.noUsersFoundLabel:b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Xe(ht,W){1&ht&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ht&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const vt=function(ht){return{all:ht}};let rt=(()=>{class ht{constructor(le,ie,ae){this.authResolver=le,this.tableCheckbox=ie,this.storeService=ae,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(le){this.sort=le}static getDataForColumn(le,ie){switch(ie){case"id":return le.id.toString();case"user":return le.serviceUser?"true":"false";case"name":return le?le.lastName?le.lastName:le.firstName??"":"";case"organization":return(0,w.OV)(le);case"email":return(0,w.kN)(le);case"logins":return(0,w.lt)(le);default:return""}}static getExportDataForColumn(le,ie){switch(ie){case"id":return le.id.toString();case"user":return le.serviceUser?"service-user":"user";case"name":return le?(0,w.bD)(le):"";case"organization":return(0,w.OV)(le);case"email":return(0,w.kN)(le);case"logins":return(0,w.lt)(le);default:return""}}exportAllData(le){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,ht.getExportDataForColumn),le)}exportDisplayedData(le){const ie=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ae=ie+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ie,ae),this.displayedColumns,ht.getExportDataForColumn),le)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(le,ie)=>(0,w.Sd)(le,ie,this.displayedColumns,ht.getDataForColumn),this.dataSource.sortData=(le,ie)=>(0,w.pR)(le,ie,ht.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(le=>"id"!==le)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(le){return le?`${this.selection.isSelected(le)?"deselect":"select"} row ${le.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return ht.\u0275fac=function(le){return new(le||ht)(b.Y36(g.x4),b.Y36(g.UA),b.Y36(g.d6))},ht.\u0275cmp=b.Xpm({type:ht,selectors:[["app-users-list"]],viewQuery:function(le,ie){if(1&le&&(b.Gf(w.l9,7),b.Gf(e.YE,7)),2&le){let ae;b.iGM(ae=b.CRH())&&(ie.child=ae.first),b.iGM(ae=b.CRH())&&(ie.matSort=ae.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[b.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(le,ie){1&le&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(Ze){return ie.exportDisplayedData(Ze)})("exportAllData",function(Ze){return ie.exportAllData(Ze)}),b.TgZ(2,"table",2),b.YNc(3,H,3,0,"ng-container",3),b.ALo(4,"isAllSelected"),b.ynx(5,4),b.YNc(6,Y,1,0,"th",5),b.YNc(7,Ee,3,2,"td",6),b.BQk(),b.ynx(8,7),b.YNc(9,De,3,3,"th",8),b.YNc(10,Se,2,1,"td",6),b.BQk(),b.ynx(11,9),b.YNc(12,Ge,3,3,"th",8),b.YNc(13,Ce,4,6,"td",10),b.BQk(),b.ynx(14,11),b.YNc(15,qe,3,3,"th",8),b.YNc(16,Pe,3,3,"td",10),b.BQk(),b.ynx(17,12),b.YNc(18,we,3,3,"th",8),b.YNc(19,j,3,3,"td",10),b.BQk(),b.ynx(20,13),b.YNc(21,I,3,3,"th",8),b.YNc(22,F,3,3,"td",10),b.BQk(),b.YNc(23,ge,1,0,"tr",14),b.YNc(24,Te,1,12,"tr",15),b.qZA()()(),b.YNc(25,et,3,3,"perun-web-apps-alert",16),b.YNc(26,Xe,3,3,"perun-web-apps-alert",16)),2&le&&(b.Q6J("hidden",0===ie.users.length||!ie.dataSource||0===ie.dataSource.filteredData.length),b.xp6(1),b.Q6J("dataLength",ie.dataSource.filteredData.length)("pageSizeOptions",ie.pageSizeOptions)("tableId",ie.tableId),b.xp6(1),b.Q6J("dataSource",ie.dataSource),b.xp6(1),b.Q6J("ngIf",b.VKq(13,vt,b.xi3(4,10,ie.dataSource,ie.selection.selected.length))),b.xp6(20),b.Q6J("matHeaderRowDef",ie.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",ie.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===ie.users.length),b.xp6(1),b.Q6J("ngIf",0===ie.dataSource.filteredData.length&&0!==ie.users.length))},dependencies:[y.O5,E.Hw,e.YE,e.nU,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,S.oG,U.gM,A.w,N.Kd,N.YH,z.l,y.i8,Q.X$,ne.d,he.S,ee.g,fe.Z,ce.I],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ht})()},57706:(We,pe,h)=>{"use strict";h.d(pe,{c:()=>_});var e=h(94650),d=h(89383);let _=(()=>{class w{constructor(b){this.translateService=b,this.returnData=""}transform(b){switch(b){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(y=>{this.returnData=y});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(y=>{this.returnData=y});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(y=>{this.returnData=y});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(y=>{this.returnData=y});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(y=>{this.returnData=y});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(y=>{this.returnData=y});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(y=>{this.returnData=y});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(y=>{this.returnData=y});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(y=>{this.returnData=y});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(y=>{this.returnData=y});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(y=>{this.returnData=y});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(y=>{this.returnData=y});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(y=>{this.returnData=y});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(y=>{this.returnData=y});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(y=>{this.returnData=y});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(y=>{this.returnData=y});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(y=>{this.returnData=y});break;default:return b}return this.returnData}}return w.\u0275fac=function(b){return new(b||w)(e.Y36(d.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>_});var e=h(94650),d=h(89383);let _=(()=>{class w{constructor(b){this.translate=b,this.returnData=""}transform(b){switch(b){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(y=>{this.returnData=`done${y}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(y=>{this.returnData=`clear${y}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(y=>{this.returnData=`contact_mail ${y}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(y=>{this.returnData=`gavel${y}`});break;default:this.returnData=b}return this.returnData}}return w.\u0275fac=function(b){return new(b||w)(e.Y36(d.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(We,pe,h)=>{"use strict";h.d(pe,{u:()=>_});var e=h(35382),d=h(94650);let _=(()=>{class w{constructor(b){this.storeService=b,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(b,y,E){return!!(this.storeService.getProperty("enforce_consents")&&E&&y)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((U,A)=>U||b.startsWith(A),!1)}}return w.\u0275fac=function(b){return new(b||w)(d.Y36(e.d6,16))},w.\u0275pipe=d.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(We,pe,h)=>{"use strict";h.d(pe,{A:()=>d});var e=h(94650);let d=(()=>{class _{transform(g){return g.substring(40)}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"extSourceType",type:_,pure:!0}),_})()},14264:(We,pe,h)=>{"use strict";h.d(pe,{m:()=>de});var e=h(36895),d=h(94364),_=h(47957),w=h(4859),g=h(56709),b=h(3238),y=h(99602),E=h(65412),S=h(44850),U=h(37084),A=h(59549),N=h(97392),z=h(284),Q=h(98739),ne=h(73162),he=h(51572),ee=h(71948),fe=h(84385),ce=h(23267),ve=h(90455),v=h(17009),O=h(96308),H=h(30671),Y=h(3848),q=h(10266),ue=h(35423),Ee=h(73546),De=h(42673),Se=h(77331),Ge=h(28255),Ce=h(86257),qe=h(24006),Pe=h(73228),we=h(36769),j=h(35382),I=h(94650),F=h(50301),ge=h(89383);const G=["collapse"],_e=function(){return{color:"linkTextColor"}};function Te(Ve,$e){1&Ve&&(I.TgZ(0,"mat-icon",14),I._uU(1,"keyboard_arrow_right"),I.qZA()),2&Ve&&I.Q6J("ngStyle",I.DdM(1,_e))}function et(Ve,$e){1&Ve&&(I.TgZ(0,"mat-icon",14),I._uU(1,"keyboard_arrow_down"),I.qZA()),2&Ve&&I.Q6J("ngStyle",I.DdM(1,_e))}function Xe(Ve,$e){if(1&Ve&&(I.TgZ(0,"span",12),I.YNc(1,Te,2,2,"mat-icon",13),I.YNc(2,et,2,2,"mat-icon",13),I.qZA()),2&Ve){const nt=I.oxw().$implicit,Le=I.oxw(2);I.xp6(1),I.Q6J("ngIf",!Le.isActive(Le.currentUrl,nt.showChildrenRegex)),I.xp6(1),I.Q6J("ngIf",Le.isActive(Le.currentUrl,nt.showChildrenRegex))}}const vt=function(Ve,$e){return{color:Ve,"border-color":$e}};function rt(Ve,$e){if(1&Ve){const nt=I.EpF();I.TgZ(0,"a",17),I.NdJ("click",function(){const Pt=I.CHM(nt).$implicit,Vt=I.oxw(4);return I.KtG(Vt.navigate(Pt.url))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&Ve){const nt=$e.$implicit,Le=I.oxw(4);I.ekj("activated",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0===Le.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",nt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0!==Le.item.activatedClass?Le.item.activatedClass:"")("ngStyle",I.WLB(9,vt,Le.linkTextColor,Le.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(2,7,nt.label)," ")}}function ht(Ve,$e){if(1&Ve&&(I.TgZ(0,"div",15),I.YNc(1,rt,3,12,"a",16),I.qZA()),2&Ve){const nt=I.oxw().$implicit;I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",null==nt?null:nt.children)}}function W(Ve,$e){if(1&Ve){const nt=I.EpF();I.TgZ(0,"div")(1,"a",9),I.NdJ("click",function(){const Pt=I.CHM(nt).$implicit,Vt=I.oxw(2);return I.KtG(Vt.navigate(Pt.url))}),I._uU(2),I.ALo(3,"translate"),I.YNc(4,Xe,3,2,"span",10),I.qZA(),I.YNc(5,ht,2,2,"div",11),I.qZA()}if(2&Ve){const nt=$e.$implicit,Le=I.oxw(2);I.xp6(1),I.ekj("activated",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0===Le.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",nt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0!==Le.item.activatedClass?Le.item.activatedClass:"")("ngStyle",I.WLB(11,vt,Le.linkTextColor,Le.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(3,9,nt.label)," "),I.xp6(2),I.Q6J("ngIf",nt.children),I.xp6(1),I.Q6J("ngIf",Le.isActive(Le.currentUrl,nt.showChildrenRegex))}}function le(Ve,$e){if(1&Ve&&(I.TgZ(0,"div"),I.YNc(1,W,6,14,"div",8),I.qZA()),2&Ve){const nt=I.oxw();I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",nt.item.links)}}const ie=function(Ve,$e){return{background:Ve,"border-top":$e}},ae=function(Ve){return{color:Ve}},Ze=function(){return{color:"currentColor"}},Je=function(Ve){return{background:Ve}};let ct=(()=>{class Ve{constructor(nt,Le){this.router=nt,this.store=Le,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_item_links_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_item_links_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=nt.url,nt.events.subscribe(st=>{st instanceof d.m2&&(this.currentUrl=st.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(nt,Le){return new RegExp(Le).test(nt)}navigate(nt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(nt)):this.router.navigate(nt)}}return Ve.\u0275fac=function(nt){return new(nt||Ve)(I.Y36(d.F0),I.Y36(j.d6))},Ve.\u0275cmp=I.Xpm({type:Ve,selectors:[["app-side-menu-item"]],viewQuery:function(nt,Le){if(1&nt&&I.Gf(G,5),2&nt){let st;I.iGM(st=I.CRH())&&(Le.collapseDiv=st.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(nt,Le){1&nt&&(I.TgZ(0,"div",0)(1,"div",1),I.NdJ("click",function(){return Le.toggle()}),I.TgZ(2,"div",2)(3,"a",3)(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.TgZ(9,"div")(10,"div",6),I.YNc(11,le,2,2,"div",7),I.qZA()()()),2&nt&&(I.xp6(1),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.WLB(18,ie,Le.item.backgroundColorCss,Le.index?Le.dividerStyle:"none")),I.xp6(1),I.Gre("entity-menu-item-link ",Le.item.labelClass,""),I.Q6J("perunWebAppsMiddleClickRouterLink",Le.item.baseLink),I.xp6(1),I.Q6J("ngStyle",I.VKq(21,ae,Le.item.textColorCss)),I.xp6(2),I.Q6J("ngStyle",I.DdM(23,Ze))("svgIcon",Le.item.icon),I.xp6(2),I.Oqu(I.lcZ(8,16,Le.item.label)),I.xp6(2),I.Q6J("@openClose",Le.expanded?"open":"closed"),I.xp6(1),I.Gre("side-entity-menu ",Le.item.linksClass,""),I.Q6J("ngStyle",I.VKq(24,Je,Le.linkBgColor)),I.xp6(1),I.Q6J("ngIf",Le.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,N.Hw,b.wG,F.YH,ge.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:[we.BQ,we.Ly]}}),Ve})(),ze=(()=>{class Ve{transform(nt){if(void 0===nt.value)return"";switch(nt.type){case"java.lang.String":return nt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(nt.value);case"java.util.ArrayList":return this.whenValueIsArray(nt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(nt.value)}}whenValueIsArray(nt){let Le="";return nt.forEach(function(st){Le=Le.concat(st+", ")}),Le}whenValueIsMap(nt){let Le="";return nt.forEach((st,Pt)=>{Le=Le.concat(Pt+": "+st+", ")}),Le}}return Ve.\u0275fac=function(nt){return new(nt||Ve)},Ve.\u0275pipe=I.Yjl({name:"anyToString",type:Ve,pure:!0}),Ve})();const oe=["collapse"],V=function(){return{color:"linkTextColor"}};function r(Ve,$e){1&Ve&&(I.TgZ(0,"mat-icon",12),I._uU(1,"keyboard_arrow_right"),I.qZA()),2&Ve&&I.Q6J("ngStyle",I.DdM(1,V))}function s(Ve,$e){1&Ve&&(I.TgZ(0,"mat-icon",12),I._uU(1,"keyboard_arrow_down"),I.qZA()),2&Ve&&I.Q6J("ngStyle",I.DdM(1,V))}function f(Ve,$e){if(1&Ve&&(I.TgZ(0,"span",10),I.YNc(1,r,2,2,"mat-icon",11),I.YNc(2,s,2,2,"mat-icon",11),I.qZA()),2&Ve){const nt=I.oxw().$implicit,Le=I.oxw();I.xp6(1),I.Q6J("ngIf",!Le.isActive(Le.currentUrl,nt.showChildrenRegex)),I.xp6(1),I.Q6J("ngIf",Le.isActive(Le.currentUrl,nt.showChildrenRegex))}}const l=function(Ve,$e){return{color:Ve,"border-color":$e}};function a(Ve,$e){if(1&Ve){const nt=I.EpF();I.TgZ(0,"a",14),I.NdJ("click",function(){const Pt=I.CHM(nt).$implicit,Vt=I.oxw(3);return I.KtG(Vt.navigate(Pt.url))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&Ve){const nt=$e.$implicit,Le=I.oxw(3);I.ekj("activated",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0===Le.item.activatedClass),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.WLB(9,l,Le.linkTextColor,Le.linkTextColor))("ngClass",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0!==Le.item.activatedClass?Le.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",nt.url),I.xp6(1),I.hij(" ",I.lcZ(2,7,nt.label)," ")}}function n(Ve,$e){if(1&Ve&&(I.TgZ(0,"div"),I.YNc(1,a,3,12,"a",13),I.qZA()),2&Ve){const nt=I.oxw().$implicit;I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",null==nt?null:nt.children)}}function t(Ve,$e){if(1&Ve){const nt=I.EpF();I.TgZ(0,"div")(1,"a",7),I.NdJ("click",function(){const Pt=I.CHM(nt).$implicit,Vt=I.oxw();return I.KtG(Vt.navigate(Pt.url))}),I._uU(2),I.ALo(3,"translate"),I.YNc(4,f,3,2,"span",8),I.qZA(),I.YNc(5,n,2,2,"div",9),I.qZA()}if(2&Ve){const nt=$e.$implicit,Le=I.oxw();I.xp6(1),I.ekj("activated",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0===Le.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",nt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Le.isActive(Le.currentUrl,nt.activatedRegex)&&void 0!==Le.item.activatedClass?Le.item.activatedClass:"")("ngStyle",I.WLB(11,l,Le.linkTextColor,Le.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(3,9,nt.label)," "),I.xp6(2),I.Q6J("ngIf",nt.children),I.xp6(1),I.Q6J("ngIf",Le.isActive(Le.currentUrl,nt.showChildrenRegex))}}const i=function(Ve){return{background:Ve}},o=function(Ve){return{color:Ve}},c=function(){return{color:"currentColor"}};let p=(()=>{class Ve{constructor(nt,Le){this.router=nt,this.store=Le,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_item_links_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_item_links_text_color,this.currentUrl=nt.url,nt.events.subscribe(st=>{st instanceof d.m2&&(this.currentUrl=st.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(nt,Le){return new RegExp(Le).test(nt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(nt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(nt)):this.router.navigate(nt)}}return Ve.\u0275fac=function(nt){return new(nt||Ve)(I.Y36(d.F0),I.Y36(j.d6))},Ve.\u0275cmp=I.Xpm({type:Ve,selectors:[["app-side-menu-root-item"]],viewQuery:function(nt,Le){if(1&nt&&I.Gf(oe,5),2&nt){let st;I.iGM(st=I.CRH())&&(Le.collapseDiv=st.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(nt,Le){1&nt&&(I.TgZ(0,"div",0)(1,"div",1),I.NdJ("click",function(){return Le.toggle()}),I.TgZ(2,"div")(3,"a",2)(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.TgZ(9,"div")(10,"div",5),I.YNc(11,t,6,14,"div",6),I.qZA()()()),2&nt&&(I.s9C("id",Le.id),I.xp6(1),I.ekj("root-header-activated",Le.isActive(Le.currentUrl,Le.item.baseColorClassRegex)),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.VKq(21,i,Le.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",Le.item.baseLink),I.xp6(1),I.Gre("entity-menu-item-link ",Le.item.labelClass,""),I.xp6(1),I.Q6J("ngStyle",I.VKq(23,o,Le.item.textColorCss)),I.xp6(2),I.Q6J("ngStyle",I.DdM(25,c))("svgIcon",Le.item.icon),I.xp6(2),I.Oqu(I.lcZ(8,19,Le.item.label)),I.xp6(2),I.Q6J("@openClose",Le.expanded?"open":"closed"),I.xp6(1),I.Gre("side-entity-menu ",Le.item.linksClass,""),I.Q6J("ngStyle",I.VKq(26,i,Le.linkBgColor)),I.xp6(1),I.Q6J("ngForOf",Le.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,N.Hw,b.wG,F.YH,ge.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:[we.BQ,we.Ly]}}),Ve})();var M=h(73555),Me=h(67376),it=h(63189),Dt=h(37677),Zt=h(33604),Et=h(11243),pt=h(19516),je=h(33231),Oe=h(96338),Qe=h(9244),ye=h(28499),Ie=h(70844),$=h(74281);let de=(()=>{class Ve{constructor(nt){this.translate=nt,nt.addLangs(["en","cs"])}}return Ve.\u0275fac=function(nt){return new(nt||Ve)(I.LFG(ge.sK))},Ve.\u0275mod=I.oAB({type:Ve}),Ve.\u0275inj=I.cJS({providers:[ze,Dt.A,Ie.u],imports:[e.ez,d.Bz,_.Bb,z.c,A.lN,qe.UX,qe.u5,N.Ps,ce.SJ,U.To,ge.aw.forChild({}),w.ot,O.JX,H.p0,Y.Nh,ue.dp,w.ot,g.p9,E.Is,fe.LD,v.ZX,he.Cq,ne.Cv,q.AV,ve.rP,y.FA,b.XK,ee.Fk,S.t,b.si,Q.TU,Ee.QW,Ce.T5,M._t,Ee.QW,Se.Hi,Ge.Tx,Me.Cl,it.r,De.g,Zt.ez,Et.r,pt.d4,je.Co,Oe.ie,Qe.Je,ye.E3,$.jD,je.Co,_.Bb,z.c,d.Bz,qe.UX,qe.u5,N.Ps,ce.SJ,ge.aw,O.JX,H.p0,Y.Nh,ue.dp,w.ot,g.p9,E.Is,fe.LD,v.ZX,he.Cq,ne.Cv,q.AV,ve.rP,y.FA,b.XK,ee.Fk,S.t,Ee.QW,Ce.T5,b.si,Q.TU,M._t,Se.Hi,Se.Hi,U.To,Ge.Tx,Me.Cl,Me.Cl,Me.Cl,Et.r]}),Ve})();I.B6R(Pe.V,function(){return[e.sg,e.O5,ct,p]},[])},69024:(We,pe,h)=>{"use strict";h.d(pe,{V:()=>E});var e=h(35382),d=h(32105),_=h(9244),w=h(19516),g=h(64080),b=h(94650),y=h(89383);let E=(()=>{class S{constructor(A,N,z,Q,ne,he,ee,fe){this.translate=A,this.authResolver=N,this.store=z,this.apiRequest=Q,this.attributesManager=ne,this.notificator=he,this.guiAuthResolver=ee,this.routePolicyService=fe,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(A){return{label:A.name,baseLink:[`/facilities/${A.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(A),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(A,N){const z=(new w.r5).transform(A,N);return{label:A.name,baseLink:[z],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(z,N?"/organizations":"/facilities",A),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(A){return{label:A.name,baseLink:[`/organizations/${A.voId}/groups/${A.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(A),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(A,N=!1,z=!1){return{label:A.name,baseLink:[`/organizations/${A.id}`],links:this.getVoLinks(A,z),colorClass:"vo-item",icon:N?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(A){return{label:(0,_.bD)(A.user),baseLink:[`/organizations/${A.voId}/members/${A.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(A),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(A,N,z){return{label:(0,_.bD)(A),baseLink:[N],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(A,N,z),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(A){return{label:(0,_.bD)(A),baseLink:[`/myProfile/service-identities/${A.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${A.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${A.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${A.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(A){return{label:A.name,baseLink:[`/admin/services/${A.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${A.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${A.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${A.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(A,N){const z=[];if(z.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${A.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",A)&&z.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${A.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",A)&&z.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${A.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",A)){const Q=[];this.routePolicyService.canNavigate("organizations-resources-preview",A)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${A.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",A)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${A.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",A)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${A.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),z.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${A.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:Q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",A)&&z.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${A.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",A)&&z.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${A.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",A)&&z.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${A.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",A)&&z.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${A.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",A)&&z.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${A.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",A)){const Q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",A)&&Q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${A.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",A)&&Q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${A.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",A)&&Q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${A.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",A)&&Q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${A.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",A)&&Q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${A.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",A)&&Q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${A.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",A)&&N&&Q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${A.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),z.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${A.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:Q,showChildrenRegex:"/organizations/\\d+/settings"})}return z}getUserLinks(A,N,z){const Q=[];return Q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[N],activatedRegex:`${z}$`}),Q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${N}/organizations`],activatedRegex:`${z}/organizations`}),Q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${N}/groups`],activatedRegex:`${z}/groups`}),Q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${N}/accounts`],activatedRegex:`${z}/accounts`}),Q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${N}/identities`],activatedRegex:`${z}/identities`}),Q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${N}/facilities`],activatedRegex:`${z}/facilities`}),Q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${N}/resources`],activatedRegex:`${z}/resources`}),Q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${N}/attributes`],activatedRegex:`${z}/attributes`}),Q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${N}/roles`],activatedRegex:`^${N}/roles`}),Q.push(A.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${N}/associated-users`],activatedRegex:`^${N}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${N}/service-identities`],activatedRegex:`^${N}/service-identities`}),Q}getMemberLinks(A){const N=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${A.voId}/members/${A.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",A)&&N.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${A.voId}/members/${A.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",A)&&N.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${A.voId}/members/${A.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",A)&&N.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${A.voId}/members/${A.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",A)&&N.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${A.voId}/members/${A.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),N}getFacilityLinks(A){const N=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${A.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",A)&&N.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${A.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",A)&&N.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${A.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",A)&&N.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${A.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",A)&&N.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${A.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",A)&&N.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${A.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",A)&&N.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${A.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",A)&&N.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",A.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",A)){const z=[];this.routePolicyService.canNavigate("facilities-settings-owners",A)&&z.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",A.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",A)&&z.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",A.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",A)&&z.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${A.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",A)&&z.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",A.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),N.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",A.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:z,showChildrenRegex:"/facilities/\\d+/settings"})}return N}getGroupLinks(A){const N=[],z=[];return N.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${A.voId}/groups/${A.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",A)&&N.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${A.voId}/groups/${A.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",A)&&"members"!==A.name&&N.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${A.voId}/groups/${A.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",A)&&N.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${A.voId}/groups/${A.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",A)&&N.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${A.voId}/groups/${A.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",A)&&N.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${A.voId}/groups/${A.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",A)&&N.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${A.voId}/groups/${A.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",A)&&N.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${A.voId}/groups/${A.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(A.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{z.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${A.voId}/groups/${A.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},Q=>{"PrivilegeException"!==Q.name&&this.notificator.showRPCError(Q)}),this.routePolicyService.canNavigate("groups-settings-managers",A)&&z.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${A.voId}/groups/${A.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",A)&&z.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${A.voId}/groups/${A.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",A)&&z.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${A.voId}/groups/${A.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",A)&&z.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${A.voId}/groups/${A.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",A)&&z.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${A.voId}/groups/${A.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==z.length&&N.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${A.voId}/groups/${A.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:z,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),N}getResourceLinks(A,N,z){const Q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[A],activatedRegex:`${N}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[A,"groups"],activatedRegex:`${N}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[A,"services"],activatedRegex:`${N}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[A,"members"],activatedRegex:`${N}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[A,"tags"],activatedRegex:`${N}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[A,"attributes"],activatedRegex:`${N}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[A,"settings"],activatedRegex:`${N}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[A,"settings","managers"],activatedRegex:`${N}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${N}/\\d+/resources/\\d+/settings`}),Q}}return S.\u0275fac=function(A){return new(A||S)(b.LFG(y.sK),b.LFG(e.x4),b.LFG(e.d6),b.LFG(e.F5),b.LFG(d.H8),b.LFG(e.V6),b.LFG(e.x4),b.LFG(e.Ip))},S.\u0275prov=b.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},73228:(We,pe,h)=>{"use strict";h.d(pe,{V:()=>he});var e=h(72077),d=h(69024),_=h(35382),w=h(36769),g=h(94650),b=h(77968);function y(ee,fe){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&ee){const ce=fe.$implicit,ve=fe.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",ve)("item",ce)("sideNav",v.sideNav)}}function E(ee,fe){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const ce=fe.$implicit,ve=fe.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",ve)("item",ce)("showLinks",ve===v.accessItems.length-1)("sideNav",v.sideNav)}}function S(ee,fe){if(1&ee&&g._UZ(0,"app-side-menu-root-item",2),2&ee){const ce=g.oxw();g.Q6J("id","facilities-item-btn")("item",ce.facilityItem)("sideNav",ce.sideNav)}}function U(ee,fe){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const ce=fe.$implicit,ve=fe.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",ve)("item",ce)("showLinks",ve===v.facilityItems.length-1)("sideNav",v.sideNav)}}function A(ee,fe){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,U,2,5,"div",3),g.qZA()),2&ee){const ce=g.oxw();g.xp6(1),g.Q6J("ngForOf",ce.facilityItems)}}function N(ee,fe){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const ce=fe.$implicit,ve=fe.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",ve)("item",ce)("showLinks",ve===v.userItems.length-1)("sideNav",v.sideNav)}}function z(ee,fe){if(1&ee&&g._UZ(0,"app-side-menu-root-item",7),2&ee){const ce=g.oxw();g.Q6J("id","admin-item-btn")("item",ce.adminItem)("showOpen",ce.adminItemOpened)("sideNav",ce.sideNav)}}function Q(ee,fe){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const ce=fe.$implicit,ve=fe.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",ve)("item",ce)("showLinks",!0)("sideNav",v.sideNav)}}function ne(ee,fe){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,Q,2,5,"div",3),g.qZA()),2&ee){const ce=g.oxw();g.xp6(1),g.Q6J("ngForOf",ce.adminItems)}}let he=(()=>{class ee{constructor(ce,ve,v){this.sideMenuService=ce,this.sideMenuItemService=ve,this.authResolver=v,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(ce,ve){return ce.label===ve.label&&ce.labelClass===ve.labelClass}static areSameLinks(ce,ve){if(ce.links.length!==ve.links.length)return!1;for(let v=0;vve.length?ce.length:ve.length;for(let O=0;Oce.length-1)ce.push(ve[O]);else{if(O>ve.length-1){const H=ce.length;for(let Y=0;Y{this.setFacilityItems(ce)}),this.sideMenuService.accessItemsChange.subscribe(ce=>{this.setAccessItems(ce)}),this.sideMenuService.adminItemsChange.subscribe(ce=>{this.setAdminItems(ce)}),this.sideMenuService.userItemsChange.subscribe(ce=>{this.setUserItems(ce)}),this.sideMenuService.homeItemsChange.subscribe(ce=>{this.setHomeItems(ce)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.adminItems,[])}setHomeItems(ce){this.resetExceptHome(),ee.setNewItems(this.homeItems,ce)}setFacilityItems(ce){this.resetExceptFacility(),ee.setNewItems(this.facilityItems,ce)}setAccessItems(ce){this.resetExceptAccess(),ee.setNewItems(this.accessItems,ce)}setUserItems(ce){this.userItemOpened=0===ce.length,this.resetExceptUser(),ee.setNewItems(this.userItems,ce)}setAdminItems(ce){this.adminItemOpened=0===ce.length,this.resetExceptAdmin(),ee.setNewItems(this.adminItems,ce)}}return ee.\u0275fac=function(ce){return new(ce||ee)(g.Y36(b.D),g.Y36(d.V),g.Y36(_.x4))},ee.\u0275cmp=g.Xpm({type:ee,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(ce,ve){1&ce&&(g.TgZ(0,"div",0)(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,y,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,E,2,5,"div",3),g.qZA(),g.YNc(7,S,1,3,"app-side-menu-root-item",5),g.YNc(8,A,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,N,2,5,"div",3),g.YNc(11,z,1,4,"app-side-menu-root-item",8),g.YNc(12,ne,2,1,"div",6),g.qZA()()),2&ce&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",ve.homeItem)("sideNav",ve.sideNav),g.xp6(1),g.Q6J("ngForOf",ve.homeItems),g.xp6(1),g.Q6J("item",ve.accessItem)("id","access-item-btn")("sideNav",ve.sideNav),g.xp6(2),g.Q6J("ngForOf",ve.accessItems),g.xp6(1),g.Q6J("ngIf",ve.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",ve.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",ve.userItem)("showOpen",ve.userItemOpened)("sideNav",ve.sideNav),g.xp6(1),g.Q6J("ngForOf",ve.userItems),g.xp6(1),g.Q6J("ngIf",ve.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",ve.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]}}),ee})()},86511:(We,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(35382),d=h(94650),_=h(89383);let w=(()=>{class g{constructor(y,E){this.notificator=y,this.translate=E}setDialogRef(y){this.dialogRef=y}setType(y){this.entityType=y}getType(){return this.entityType}createCandidate(y){return{userExtSource:y.userExtSource,additionalUserExtSources:y.additionalUserExtSources,attributes:y.attributes,firstName:y.firstName,lastName:y.lastName,middleName:y.middleName,titleBefore:y.titleBefore,titleAfter:y.titleAfter,id:y.id}}getFormattedGroup(y){return{id:y.id,beanName:y.beanName,name:y.name,voId:y.voId}}success(y){this.notificator.showSuccess(this.translate.instant(y)),this.dialogRef.close(!0)}getCandidateWithError(y,E){if("MfaPrivilegeException"===String(E.type))return null;{const S=E.message.split(":").splice(1).join();return{candidate:y,errorName:E.name,errorMsg:S}}}}return g.\u0275fac=function(y){return new(y||g)(d.LFG(e.V6),d.LFG(_.sK))},g.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>je});var e=h(94650),d=h(73555),_=h(65412),w=h(4859),g=h(89383);let b=(()=>{class Oe{constructor(ye){this.dialogRef=ye}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Oe.\u0275fac=function(ye){return new(ye||Oe)(e.Y36(_.so))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(ye,Ie){1&ye&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Ie.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Ie.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&ye&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[w.lW,_.uh,_.xY,_.H8,g.X$]}),Oe})();var y=h(35382),E=h(83491),S=h(9244),U=h(94364),A=h(36895),N=h(24006),z=h(97392),Q=h(30671),ne=h(51572),he=h(10266),ee=h(98380),fe=h(21963),ce=h(28820),ve=h(57706),v=h(64597);const O=["table"];function H(Oe,Qe){1&Oe&&e._UZ(0,"mat-spinner",3)}function Y(Oe,Qe){1&Oe&&e._UZ(0,"th",24)}function q(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(ye);const $=e.oxw(2);return e.KtG($.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function ue(Oe,Qe){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function Ee(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&Oe){const ye=Qe.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,ye.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",ye.shortname,"",ye.required?"*":""," ")}}function De(Oe,Qe){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Se(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,ye.type)," ")}}function Ge(Oe,Qe){1&Oe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function Ce(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ie.disabledTooltip(ye)),e.xp6(3),e.hij(" ",Ie.disabledHiddenDependency(ye,ye.disabled,ye.disabledDependencyItemId)," ")}}function qe(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",28),e.YNc(1,Ce,5,2,"div",29),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ye.disabled)}}function Pe(Oe,Qe){1&Oe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function we(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ie.hiddenTooltip(ye)),e.xp6(3),e.hij(" ",Ie.disabledHiddenDependency(ye,ye.hidden,ye.hiddenDependencyItemId)," ")}}function j(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",28),e.YNc(1,we,5,2,"div",29),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ye.hidden)}}function I(Oe,Qe){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function F(Oe,Qe){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function ge(Oe,Qe){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function G(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(2),e.hij(" ",ye,"")}}function _e(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,G,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ie.getLocalizedOptions(ye)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Te(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Ie.getLocalizedLabel(ye),e.oJD)}}function et(Oe,Qe){if(1&Oe&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.hij(" ",ye," ")}}function Xe(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,et,2,1,"option",33),e.qZA()()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ie.getLocalizedOptions(ye))}}function vt(Oe,Qe){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function rt(Oe,Qe){if(1&Oe&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.hij(" ",ye," ")}}function ht(Oe,Qe){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function W(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function($){e.CHM(ye);const de=e.oxw().$implicit,Ve=e.oxw(2);return e.KtG(Ve.mapForCombobox[de.id]=$)}),e.YNc(2,rt,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,ht,3,0,"div",29),e.qZA()}if(2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Ie.mapForCombobox[ye.id]),e.xp6(1),e.Q6J("ngForOf",Ie.getLocalizedOptions(ye)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Ie.mapForCombobox[ye.id])}}function le(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(2),e.hij(" ",ye," ")}}function ie(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,le,3,1,"div",33),e.qZA()()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ie.getLocalizedOptions(ye))}}function ae(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(2),e.hij(" ",Ie.getLocalizedLabel(ye)," ")}}function Ze(Oe,Qe){1&Oe&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Oe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Je(Oe,Qe){if(1&Oe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Oe){const ye=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(2),e.hij(" ",Ie.getLocalizedLabel(ye)," ")}}function ct(Oe,Qe){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const ze=function(){return["Example 1","Example 2"]},oe=function(Oe){return{id:0,beanName:"Attribute",namespace:"",value:Oe}};function V(Oe,Qe){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Oe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,oe,e.DdM(1,ze))))}const r=function(){return{key1:"value 1",key2:"value 2"}};function s(Oe,Qe){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Oe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,oe,e.DdM(1,r))))}function f(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,F,3,0,"div",29),e.YNc(2,ge,5,0,"div",29),e.YNc(3,_e,5,4,"div",29),e.YNc(4,Te,2,1,"div",29),e.YNc(5,Xe,3,1,"div",29),e.YNc(6,vt,2,0,"div",29),e.YNc(7,W,7,6,"div",29),e.YNc(8,ie,3,1,"div",29),e.YNc(9,ae,3,1,"div",29),e.YNc(10,Ze,85,3,"div",29),e.YNc(11,Je,3,1,"div",29),e.YNc(12,ct,10,0,"div",29),e.YNc(13,V,2,4,"div",29),e.YNc(14,s,2,4,"div",29),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===ye.type||"VALIDATED_EMAIL"===ye.type||"USERNAME"===ye.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===ye.type),e.xp6(1),e.Q6J("ngIf","RADIO"===ye.type),e.xp6(1),e.Q6J("ngIf","HEADING"===ye.type||"HTML_COMMENT"===ye.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===ye.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===ye.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===ye.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===ye.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ye.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===ye.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===ye.type)}}function l(Oe,Qe){1&Oe&&e._UZ(0,"th",24)}function a(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ye);const $=e.oxw(3);return e.KtG($.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,a,4,3,"button",86),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ye.type&&!ye.forDelete)}}function t(Oe,Qe){1&Oe&&e._UZ(0,"th",24)}function i(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(ye);const $=e.oxw().$implicit,de=e.oxw(2);return e.KtG(de.edit($))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function o(Oe,Qe){1&Oe&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,i,4,3,"button",88),e.YNc(2,o,3,3,"div",89),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!ye.forDelete),e.xp6(1),e.Q6J("ngIf",ye.forDelete)}}function p(Oe,Qe){1&Oe&&e._UZ(0,"th",24)}function M(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(ye);const $=e.oxw().$implicit,de=e.oxw(2);return e.KtG(de.delete($))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Oe){const ye=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,ye.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function Me(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ye);const $=e.oxw().$implicit,de=e.oxw(2);return e.KtG(de.restore($))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function it(Oe,Qe){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,M,5,6,"button",92),e.YNc(2,Me,4,3,"button",86),e.qZA()),2&Oe){const ye=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!ye.forDelete),e.xp6(1),e.Q6J("ngIf",ye.forDelete)}}function Dt(Oe,Qe){1&Oe&&e._UZ(0,"tr",94)}function Zt(Oe,Qe){if(1&Oe&&e._UZ(0,"tr",95),2&Oe){const ye=Qe.$implicit,Ie=e.oxw(2);e.ekj("make-green",ye.id<=0)("make-red",ye.forDelete)("make-yellow",-1!==Ie.itemsChanged.indexOf(ye.id)&&!ye.forDelete&&ye.id>0),e.Q6J("cdkDragData",ye)}}function Et(Oe,Qe){if(1&Oe){const ye=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function($){e.CHM(ye);const de=e.oxw();return e.KtG(de.drop($))}),e.ynx(5,9),e.YNc(6,Y,1,0,"th",10),e.YNc(7,q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ue,3,3,"th",10),e.YNc(10,Ee,3,5,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,De,3,3,"th",10),e.YNc(13,Se,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,Ge,3,3,"th",15),e.YNc(16,qe,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,Pe,3,3,"th",15),e.YNc(19,j,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,I,3,3,"th",10),e.YNc(22,f,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,n,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,p,1,0,"th",10),e.YNc(31,it,3,2,"td",11),e.BQk(),e.YNc(32,Dt,1,0,"tr",22),e.YNc(33,Zt,1,7,"tr",23),e.qZA()()()()}if(2&Oe){const ye=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",ye.dragDisabled)("dataSource",ye.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",ye.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ye.displayedColumns)}}function pt(Oe,Qe){1&Oe&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let je=(()=>{class Oe{constructor(ye,Ie,$,de){this.dialog=ye,this.notificator=Ie,this.router=$,this.translate=de,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(ye,Ie,$){let de="";if("IF_EMPTY"===Ie||"IF_PREFILLED"===Ie){const Ve=null===$?"":this.applicationFormItems.find($e=>$e.id===$).shortname;de="IF_EMPTY"===Ie?`(${this.ifEmpty} ${Ve})`:`(${this.ifPrefilled} ${Ve})`}return de}disabledTooltip(ye){let Ie;switch(ye.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Ie=null===ye.disabledDependencyItemId?"":this.applicationFormItems.find($=>$.id===ye.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ie} ${this.isEmpty}`;case"IF_PREFILLED":return Ie=null===ye.disabledDependencyItemId?"":this.applicationFormItems.find($=>$.id===ye.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ie} ${this.isPrefilled}`}}hiddenTooltip(ye){let Ie;switch(ye.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Ie=null===ye.hiddenDependencyItemId?"":this.applicationFormItems.find($=>$.id===ye.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ie} ${this.isEmpty}`;case"IF_PREFILLED":return Ie=null===ye.hiddenDependencyItemId?"":this.applicationFormItems.find($=>$.id===ye.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ie} ${this.isPrefilled}`}}edit(ye){const Ie=(0,S.kZ)();Ie.width="600px",Ie.height="600px",Ie.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:ye,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(E._,Ie).afterClosed().subscribe(de=>{de&&(this.itemsChanged.push(ye.id),this.applicationFormItemsChange.emit())})}delete(ye){const Ie=(0,S.kZ)();Ie.width="500px",this.dialog.open(b,Ie).afterClosed().subscribe(de=>{de&&(ye.forDelete=!0,0===ye.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(ye),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(ye){this.dragDisabled=!0;const Ie=this.applicationFormItems.indexOf(ye.item.data);(0,d.bA)(this.applicationFormItems,Ie,ye.currentIndex),this.itemsChanged.push(this.applicationFormItems[ye.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(ye){if(ye.i18n[this.translate.getDefaultLang()]){const Ie=ye.i18n[this.translate.getDefaultLang()].options;if(null!==Ie&&""!==Ie){const $=[];for(const de of Ie.split("|"))$.push(de.split("#")[1]);return $}}return[]}getLocalizedLabel(ye){return ye.i18n[this.translate.getDefaultLang()]?ye.i18n[this.translate.getDefaultLang()].label:ye.shortname}restore(ye){ye.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Oe.\u0275fac=function(ye){return new(ye||Oe)(e.Y36(_.uw),e.Y36(y.V6),e.Y36(U.F0),e.Y36(g.sK))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["app-application-form-list"]],viewQuery:function(ye,Ie){if(1&ye&&e.Gf(O,5),2&ye){let $;e.iGM($=e.CRH())&&(Ie.table=$.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(ye,Ie){1&ye&&(e.YNc(0,H,1,0,"mat-spinner",0),e.YNc(1,Et,34,4,"div",1),e.YNc(2,pt,3,3,"perun-web-apps-alert",2)),2&ye&&(e.Q6J("ngIf",Ie.loading),e.xp6(1),e.Q6J("ngIf",0!==Ie.applicationFormItems.length&&!Ie.loading),e.xp6(1),e.Q6J("ngIf",0===Ie.applicationFormItems.length&&!Ie.loading))},dependencies:[A.sg,A.O5,N._Y,N.YN,N.Kr,N.EJ,N.JJ,N.JL,N.On,N.F,z.Hw,Q.BZ,Q.fO,Q.as,Q.w1,Q.Dz,Q.nj,Q.ge,Q.ev,Q.XQ,Q.Gk,w.lW,ne.Ou,he.gM,d.Wj,d.Zt,ee.w,fe.H,ce.$,g.X$,ve.c,v.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Oe})()},9146:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>p});var e=h(32105),d=h(9244),_=h(96308),w=h(35382),g=h(56451),b=h(18505),y=h(36895),E=h(74281),S=h(94650),U=h(10036),A=h(65412),N=h(94364),z=h(30671),Q=h(51572),ne=h(98380),he=h(50301),ee=h(18750),fe=h(97392),ce=h(10266);function ve(M,Me){1&M&&(S.TgZ(0,"div")(1,"mat-icon",1),S._uU(2,"arrow_right_alt"),S.qZA()())}function v(M,Me){1&M&&(S.TgZ(0,"div")(1,"mat-icon",2),S._uU(2,"restore"),S.qZA()())}function O(M,Me){1&M&&(S.TgZ(0,"div")(1,"mat-icon",3),S._uU(2,"nat"),S.qZA()())}let H=(()=>{class M{}return M.\u0275fac=function(it){return new(it||M)},M.\u0275cmp=S.Xpm({type:M,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(it,Dt){1&it&&(S.TgZ(0,"div"),S.YNc(1,ve,3,0,"div",0),S.YNc(2,v,3,0,"div",0),S.YNc(3,O,3,0,"div",0),S.qZA()),2&it&&(S.xp6(1),S.Q6J("ngIf","INITIAL"===Dt.applicationType),S.xp6(1),S.Q6J("ngIf","EXTENSION"===Dt.applicationType),S.xp6(1),S.Q6J("ngIf","EMBEDDED"===Dt.applicationType))},dependencies:[y.O5,fe.Hw,ce.gM]}),M})();var Y=h(89383),q=h(43157),ue=h(31359),Ee=h(64597);function De(M,Me){1&M&&(S.TgZ(0,"div",26),S._UZ(1,"mat-spinner",27),S.qZA())}function Se(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function Ge(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.id)}}function Ce(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function qe(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,it.createdAt,"d.M.y"))}}function Pe(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function we(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.vo.id)}}function j(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function I(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.vo.name)}}function F(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function ge(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.hij(" ",it.group?it.group.id:""," ")}}function G(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function _e(M,Me){if(1&M&&(S.TgZ(0,"td",29),S.ALo(1,"multiWordDataCy"),S._uU(2),S.qZA()),2&M){const it=Me.$implicit;S.Q2q("data-cy","",it.group?it.group.name:S.lcZ(1,2,"no-group"),"-groupname-td"),S.xp6(2),S.hij(" ",it.group?it.group.name:""," ")}}function Te(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function et(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._UZ(1,"app-application-type-icon",31),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Q6J("applicationType",it.type)}}function Xe(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function vt(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._UZ(1,"span",32),S.ALo(2,"applicationState"),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Q6J("outerHTML",S.lcZ(2,1,it.state),S.oJD)}}function rt(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function ht(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.extSourceName)}}function W(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function le(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.extSourceType)}}function ie(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function ae(M,Me){if(1&M&&(S.TgZ(0,"div"),S._uU(1),S.qZA()),2&M){const it=S.oxw().$implicit;S.xp6(1),S.hij(" ",it.createdBy.slice(it.createdBy.lastIndexOf("=")+1,it.createdBy.length)," ")}}function Ze(M,Me){if(1&M&&(S._uU(0),S.ALo(1,"userFullName")),2&M){const it=S.oxw().$implicit;S.hij(" ",S.lcZ(1,1,it.user)," ")}}function Je(M,Me){if(1&M&&(S.TgZ(0,"td",29),S.YNc(1,ae,2,1,"div",33),S.YNc(2,Ze,2,3,"ng-template",null,34,S.W1O),S.qZA()),2&M){const it=Me.$implicit,Dt=S.MAs(3);S.xp6(1),S.Q6J("ngIf",null===it.user)("ngIfElse",Dt)}}function ct(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function ze(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.Q2q("data-cy","",it.createdBy,"-createdBy"),S.xp6(1),S.hij(" ",it.createdBy.slice(it.createdBy.lastIndexOf("=")+1,it.createdBy.length)," ")}}function oe(M,Me){1&M&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function V(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit,Dt=S.oxw();S.xp6(1),S.Oqu(Dt.getFriendlyName(it.modifiedBy))}}function r(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function s(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,it.modifiedAt,"d.M.y"))}}function f(M,Me){1&M&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function l(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit;S.xp6(1),S.Oqu(it.fedInfo)}}function a(M,Me){if(1&M&&(S.TgZ(0,"th",30),S._uU(1),S.qZA()),2&M){const it=S.oxw().$implicit;S.xp6(1),S.Oqu(it)}}function n(M,Me){if(1&M&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&M){const it=Me.$implicit,Dt=S.oxw().$implicit,Zt=S.oxw();S.xp6(1),S.hij(" ",Zt.getValue(it.formData,Dt)," ")}}function t(M,Me){1&M&&(S.ynx(0,35),S.YNc(1,a,2,1,"th",9),S.YNc(2,n,2,1,"td",6),S.BQk()),2&M&&S.s9C("matColumnDef",Me.$implicit)}function i(M,Me){1&M&&S._UZ(0,"tr",36)}function o(M,Me){if(1&M&&S._UZ(0,"tr",37),2&M){const it=Me.$implicit,Dt=S.oxw();S.ekj("cursor-pointer",!Dt.disableRouting),S.Q6J("perunWebAppsMiddleClickRouterLink",Dt.selectApplication(it))("routerLink",Dt.selectApplication(it))}}function c(M,Me){1&M&&(S.TgZ(0,"perun-web-apps-alert",38),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&M&&(S.Q6J("alert_type","warn"),S.xp6(1),S.hij(" ",S.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let p=(()=>{class M{constructor(it,Dt,Zt,Et){this.authResolver=it,this.tableConfigService=Dt,this.dynamicPaginatingService=Zt,this.dialog=Et,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=d.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(it=>"id"!==it)),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),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(it=>{if(it||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Zt=>!this.parsedColumns.includes(Zt)),this.parsedColumns=[];const Dt=this.dataSource.getData()[0];Dt&&this.parseColumns(Dt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(it){(0,d.O6)((0,d.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),it)}exportAllData(it){const Dt="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Zt=(0,d.kZ)();Zt.width="300px";const Et=this.dialog.open(E.QQ,Zt);this.dataSource.getAllApplications(this.child.paginator.length,Dt,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(pt=>{Et.close(),(0,d.O6)((0,d.Xn)(pt,this.displayedColumns,this.getExportDataForColumn.bind(this)),it)})}selectApplication(it){return this.disableRouting?null:this.group?["/organizations",it.vo.id,"groups",this.group.id,"applications",it.id]:this.member?["/organizations",it.vo.id,"members",this.member.id,"applications",it.id]:["/organizations",it.vo.id,"applications",it.id]}getExportDataForColumn(it,Dt){switch(Dt){case"id":return it.id.toString();case"voId":return it.vo.id.toString();case"voName":return it.vo.name;case"groupId":return it.group?.id.toString()??"";case"groupName":return it.group?.name??"";case"type":return it.type;case"fedInfo":return it.fedInfo;case"formData":return this.stringify(it.formData);case"state":return it.state;case"extSourceName":return it.extSourceName;case"extSourceType":return it.extSourceType;case"user":return it.user?(0,d.bD)(it.user):"";case"createdBy":return it.createdBy;case"createdAt":return it.createdAt;case"modifiedBy":return it.modifiedBy;case"modifiedAt":return it.modifiedAt;default:return it[Dt]}}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(it){const Dt=it.lastIndexOf("/CN=");if(-1!==Dt){const Zt=it.slice(Dt+4,it.length).replace("/unstructuredName="," ");return-1!==Zt.lastIndexOf("\\")?it.slice(it.lastIndexOf("=")+1,it.length):Zt}return it}yearAgo(){const it=new Date;return it.setDate(it.getDate()-365),it}dateToString(it){return(0,y.p6)(it,"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(it){const Dt=Et=>Object.entries(Et).reduce((pt,[je,Oe])=>pt[je]instanceof Object?pt[je]=Dt(pt[je]):(null==Oe||"null"===Oe||0===Oe.length||(pt[je]=Oe),pt),{});let Zt=JSON.stringify(Dt(it));return Zt=Zt.replace("{","["),Zt=Zt.replace("}","]"),Zt}getFormDataString(it){return this.stringify(it.formItem)}parseColumns(it){it.forEach(Dt=>{this.displayedColumns.includes(Dt.shortname)||this.displayedColumns.push(Dt.shortname),this.parsedColumns.includes(Dt.shortname)||this.parsedColumns.push(Dt.shortname)})}getValue(it,Dt){const Zt=it.filter(Et=>Et.shortname===Dt);return 0===Zt.length?"":Zt[0].value??Zt[0].prefilledValue}}return M.\u0275fac=function(it){return new(it||M)(S.Y36(w.x4),S.Y36(U.dB),S.Y36(w.ly),S.Y36(A.uw))},M.\u0275cmp=S.Xpm({type:M,selectors:[["app-applications-dynamic-list"]],viewQuery:function(it,Dt){if(1&it&&(S.Gf(d.l9,7),S.Gf(_.YE,5)),2&it){let Zt;S.iGM(Zt=S.CRH())&&(Dt.child=Zt.first),S.iGM(Zt=S.CRH())&&(Dt.sort=Zt.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:[S.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(it,Dt){1&it&&(S.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),S.NdJ("exportDisplayedData",function(Et){return Dt.exportDisplayedData(Et)})("exportAllData",function(Et){return Dt.exportAllData(Et)}),S.YNc(2,De,2,0,"div",2),S.ALo(3,"async"),S.TgZ(4,"table",3),S.ynx(5,4),S.YNc(6,Se,3,3,"th",5),S.YNc(7,Ge,2,1,"td",6),S.BQk(),S.ynx(8,7),S.YNc(9,Ce,3,3,"th",5),S.YNc(10,qe,3,4,"td",6),S.BQk(),S.ynx(11,8),S.YNc(12,Pe,3,3,"th",9),S.YNc(13,we,2,1,"td",6),S.BQk(),S.ynx(14,10),S.YNc(15,j,3,3,"th",9),S.YNc(16,I,2,1,"td",6),S.BQk(),S.ynx(17,11),S.YNc(18,F,3,3,"th",9),S.YNc(19,ge,2,1,"td",6),S.BQk(),S.ynx(20,12),S.YNc(21,G,3,3,"th",9),S.YNc(22,_e,3,4,"td",6),S.BQk(),S.ynx(23,13),S.YNc(24,Te,3,3,"th",5),S.YNc(25,et,2,1,"td",6),S.BQk(),S.ynx(26,14),S.YNc(27,Xe,3,3,"th",5),S.YNc(28,vt,3,3,"td",6),S.BQk(),S.ynx(29,15),S.YNc(30,rt,3,3,"th",9),S.YNc(31,ht,2,1,"td",6),S.BQk(),S.ynx(32,16),S.YNc(33,W,3,3,"th",9),S.YNc(34,le,2,1,"td",6),S.BQk(),S.ynx(35,17),S.YNc(36,ie,3,3,"th",5),S.YNc(37,Je,4,2,"td",6),S.BQk(),S.ynx(38,18),S.YNc(39,ct,3,3,"th",9),S.YNc(40,ze,2,2,"td",6),S.BQk(),S.ynx(41,19),S.YNc(42,oe,3,3,"th",5),S.YNc(43,V,2,1,"td",6),S.BQk(),S.ynx(44,20),S.YNc(45,r,3,3,"th",9),S.YNc(46,s,3,4,"td",6),S.BQk(),S.ynx(47,21),S.YNc(48,f,3,3,"th",9),S.YNc(49,l,2,1,"td",6),S.BQk(),S.YNc(50,t,3,1,"ng-container",22),S.YNc(51,i,1,0,"tr",23),S.YNc(52,o,1,4,"tr",24),S.qZA()()(),S.YNc(53,c,3,4,"perun-web-apps-alert",25),S.ALo(54,"async")),2&it&&(S.Q6J("hidden",0===Dt.dataSource.allObjectCount),S.xp6(1),S.Q6J("dataLength",Dt.dataSource.allObjectCount)("pageSizeOptions",Dt.pageSizeOptions)("tableId",Dt.tableId),S.xp6(1),S.Q6J("ngIf",S.lcZ(3,10,Dt.dataSource.loading$)),S.xp6(2),S.Q6J("dataSource",Dt.dataSource),S.xp6(46),S.Q6J("ngForOf",Dt.parsedColumns),S.xp6(1),S.Q6J("matHeaderRowDef",Dt.displayedColumns),S.xp6(1),S.Q6J("matRowDefColumns",Dt.displayedColumns),S.xp6(1),S.Q6J("ngIf",0===Dt.dataSource.allObjectCount&&!1===S.lcZ(54,12,Dt.dataSource.loading$)))},dependencies:[y.sg,y.O5,N.rH,_.YE,_.nU,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,Q.Ou,ne.w,he.YH,ee.l,H,y.Ov,y.uU,Y.X$,q.h,ue.d,Ee.R]}),M})()},45256:(We,pe,h)=>{"use strict";h.d(pe,{k:()=>Q});var e=h(95017),d=h(32105),_=h(64080),w=h(65412),g=h(35382),b=h(9244),y=h(86511),E=h(77579),S=h(56451),U=h(39646),A=h(63900),N=h(68675),z=h(94650);let Q=(()=>{class ne{constructor(ee,fe,ce,ve,v,O,H,Y,q,ue){this.data=ee,this.dialogRef=fe,this.membersManagerService=ce,this.voService=ve,this.registrarManager=v,this.groupService=O,this.store=H,this.guiAuthResolver=Y,this.requestService=q,this.addMemberService=ue,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,A.w)(Ee=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,Ee))),(0,N.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(ee=>{this.addAuth=!!ee.source.selected.every(fe=>fe.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(fe=>null!==fe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ee=this.selection.selected.pop();ee.member?this.addMember(ee):ee.richUser?this.addUser(ee):ee.candidate&&this.addCandidate(ee)}invite(ee){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(ce=>null!==ce),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const fe=this.selection.selected.pop();fe.richUser?this.inviteUser(fe,ee):this.inviteCandidate(fe,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(ee.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},error:fe=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,fe)),this.add()}})}addMember(ee){this.groupService.addMembers(this.data.group.id,[ee.member.id]).subscribe({next:()=>{this.add()},error:fe=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,fe)),this.add()}})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:ee.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},error:fe=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,fe)),this.add()}})}inviteCandidate(ee,fe){this.registrarManager.sendInvitationForGroup((0,b.Jc)(ee.candidate),fe,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(fe)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,ce)),this.invite(fe)}})}inviteUser(ee,fe){this.registrarManager.sendInvitationGroupToExistingUser(ee.richUser.id,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(fe)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,ce)),this.invite(fe)}})}}return ne.\u0275fac=function(ee){return new(ee||ne)(z.Y36(w.WI),z.Y36(w.so),z.Y36(d.uq),z.Y36(d.YF),z.Y36(d.tk),z.Y36(d.ff),z.Y36(g.d6),z.Y36(g.x4),z.Y36(g.F5),z.Y36(y.A))},ne.\u0275cmp=z.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(ee,fe){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return fe.add()})("cancel",function(ve){return fe.cancel(ve)})("invite",function(ve){return fe.invite(ve)})("search",function(ve){return fe.searcher.next(ve)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",fe.loading)("languages",fe.languages)("manualAddingBlocked",fe.data.manualAddingBlocked)("addAuth",fe.addAuth)("inviteAuth",fe.inviteAuth)("failed",fe.failed)("members",z.lcZ(1,9,fe.members))("selection",fe.selection)("theme","group-theme")}}),ne})()},51525:(We,pe,h)=>{"use strict";h.d(pe,{H:()=>Q});var e=h(65412),d=h(32105),_=h(35382),w=h(95017),g=h(9244),b=h(64080),y=h(86511),E=h(77579),S=h(56451),U=h(39646),A=h(63900),N=h(68675),z=h(94650);let Q=(()=>{class ne{constructor(ee,fe,ce,ve,v,O,H,Y){this.data=ee,this.dialogRef=fe,this.membersManagerService=ce,this.voService=ve,this.registrarManager=v,this.store=O,this.requestService=H,this.addMemberService=Y,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,A.w)(q=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,q))),(0,N.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(fe=>null!==fe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ee=this.selection.selected.pop();ee.richUser?this.addUser(ee):this.addCandidate(ee)}invite(ee){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(ce=>null!==ce),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const fe=this.selection.selected.pop();fe.richUser?this.inviteUser(fe,ee):this.inviteCandidate(fe,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(ee.candidate)}).subscribe({next:fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},error:fe=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,fe)),this.add()}})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:ee.richUser.id}).subscribe({next:fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},error:fe=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,fe)),this.add()}})}inviteCandidate(ee,fe){this.registrarManager.sendInvitation((0,g.Jc)(ee.candidate),fe,this.data.voId).subscribe({next:()=>{this.invite(fe)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,ce)),this.invite(fe)}})}inviteUser(ee,fe){this.registrarManager.sendInvitationToExistingUser(ee.richUser.id,this.data.voId).subscribe({next:()=>{this.invite(fe)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,ce)),this.invite(fe)}})}}return ne.\u0275fac=function(ee){return new(ee||ne)(z.Y36(e.WI),z.Y36(e.so),z.Y36(d.uq),z.Y36(d.YF),z.Y36(d.tk),z.Y36(_.d6),z.Y36(_.F5),z.Y36(y.A))},ne.\u0275cmp=z.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(ee,fe){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return fe.add()})("cancel",function(ve){return fe.cancel(ve)})("invite",function(ve){return fe.invite(ve)})("search",function(ve){return fe.searcher.next(ve)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",fe.loading)("languages",fe.languages)("failed",fe.failed)("members",z.lcZ(1,6,fe.members))("selection",fe.selection)("theme","vo-theme")}}),ne})()},55857:(We,pe,h)=>{"use strict";h.d(pe,{W:()=>fe});var e=h(32105),d=h(10036),_=h(35382),w=h(24006),g=h(36895),b=h(94650),y=h(3238),E=h(59549),S=h(4859),U=h(84385),A=h(96214),N=h(39798),z=h(64901),Q=h(9146),ne=h(89383);function he(ce,ve){if(1&ce){const v=b.EpF();b.TgZ(0,"button",14),b.NdJ("click",function(){b.CHM(v);const H=b.oxw();return b.KtG(H.showAllDetails=!0)}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&ce&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function ee(ce,ve){if(1&ce){const v=b.EpF();b.TgZ(0,"button",14),b.NdJ("click",function(){b.CHM(v);const H=b.oxw();return b.KtG(H.showAllDetails=!1)}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&ce&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let fe=(()=>{class ce{constructor(v,O,H){this.registrarManager=v,this.guiAuthResolver=O,this.entityStorageService=H,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=d.Af,this.tableId=d.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.p4((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.p4((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 v=new Date;return v.setDate(v.getDate()-365),v}applyFilter(v){this.filterValue=v}}return ce.id="GroupApplicationsComponent",ce.\u0275fac=function(v){return new(v||ce)(b.Y36(e.tk),b.Y36(_.x4),b.Y36(_.fb))},ce.\u0275cmp=b.Xpm({type:ce,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(v,O){2&v&&b.ekj("router-component",O.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(v,O){1&v&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),b.NdJ("refresh",function(){return O.refresh=!O.refresh}),b.qZA(),b.YNc(5,he,3,3,"button",2),b.YNc(6,ee,3,3,"button",2),b.TgZ(7,"mat-form-field",3)(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"mat-select",4),b.NdJ("selectionChange",function(){return O.select()})("valueChange",function(Y){return O.state=Y}),b.TgZ(12,"mat-option",5),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"mat-option",6),b._uU(16),b.ALo(17,"translate"),b.qZA(),b.TgZ(18,"mat-option",7),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-option",8),b._uU(22),b.ALo(23,"translate"),b.qZA(),b.TgZ(24,"mat-option",9),b._uU(25),b.ALo(26,"translate"),b.qZA(),b.TgZ(27,"mat-option",10),b._uU(28),b.ALo(29,"translate"),b.qZA()()(),b.TgZ(30,"perun-web-apps-debounce-filter",11),b.NdJ("filter",function(Y){return O.applyFilter(Y)}),b.qZA(),b.TgZ(31,"perun-web-apps-date-range",12),b.NdJ("datePicker",function(){return O.select()}),b.qZA()(),b.TgZ(32,"div"),b._UZ(33,"app-applications-dynamic-list",13),b.qZA()),2&v&&(b.xp6(1),b.Oqu(b.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),b.xp6(4),b.Q6J("ngIf",!O.showAllDetails),b.xp6(1),b.Q6J("ngIf",O.showAllDetails),b.xp6(3),b.Oqu(b.lcZ(10,24,"APPLICATIONS_LIST.STATE")),b.xp6(2),b.Q6J("value",O.state),b.xp6(2),b.Oqu(b.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),b.xp6(3),b.Oqu(b.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),b.xp6(3),b.Oqu(b.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),b.xp6(3),b.Oqu(b.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),b.xp6(3),b.Oqu(b.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),b.xp6(3),b.Oqu(b.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),b.xp6(2),b.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),b.xp6(1),b.Q6J("endDate",O.endDate)("startDate",O.startDate),b.xp6(2),b.Q6J("tableId",O.showAllDetails?O.detailTableId:O.tableId)("searchString",O.filterValue)("displayedColumns",O.showAllDetails?O.detailedDisplayedColumns:O.displayedColumns)("states",O.currentStates)("dateFrom",O.startDate.value)("dateTo",O.endDate.value)("refreshTable",O.refresh)("group",O.group))},dependencies:[g.O5,y.ey,E.KE,E.hX,S.lW,U.gD,A.t,N.S,z.P,Q.S,ne.X$]}),ce})()},75234:(We,pe,h)=>{"use strict";h.d(pe,{y:()=>I});var e=h(95017),d=h(35382),_=h(64080),w=h(53455),g=h(32105),b=h(10036),y=h(9244),E=h(74414),S=h(24006),U=h(45256),A=h(94650),N=h(65412),z=h(36895),Q=h(3238),ne=h(59549),he=h(4859),ee=h(84385),fe=h(51572),ce=h(10266),ve=h(98380),v=h(96214),O=h(64901),H=h(4811),Y=h(89383),q=h(20551);let ue=(()=>{class F{transform(G,_e){return!!("members"===G.name||(0,y.bx)(G)||"add"===_e&&(0,y.jh)(G.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return F.\u0275fac=function(G){return new(G||F)},F.\u0275pipe=A.Yjl({name:"groupMembersActionButtonDisabled",type:F,pure:!0}),F})(),Ee=(()=>{class F{transform(G,_e){return"members"===G.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,y.bx)(G)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===_e&&(0,y.jh)(G.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return F.\u0275fac=function(G){return new(G||F)},F.\u0275pipe=A.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:F,pure:!0}),F})();function De(F,ge){1&F&&(A.TgZ(0,"perun-web-apps-alert",14),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&F&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Se(F,ge){if(1&F){const G=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(G);const Te=A.oxw();return A.KtG(Te.onAddMember())}),A.ALo(1,"groupMembersActionButtonDisabled"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&F){const G=A.oxw();A.Q6J("disabled",A.xi3(1,2,G.group,"add")),A.xp6(2),A.hij(" ",A.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Ge(F,ge){if(1&F){const G=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(G);const Te=A.oxw();return A.KtG(Te.onInviteMember())}),A.ALo(1,"groupMembersActionButtonDisabled"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&F){const G=A.oxw();A.Q6J("disabled",A.lcZ(1,2,G.group)),A.xp6(2),A.hij(" ",A.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function Ce(F,ge){if(1&F){const G=A.EpF();A.TgZ(0,"button",17),A.NdJ("click",function(){A.CHM(G);const Te=A.oxw();return A.KtG(Te.onRemoveMembers())}),A.ALo(1,"groupMembersActionButtonDisabled"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&F){const G=A.oxw();A.Q6J("disabled",G.selection.isEmpty()||A.lcZ(1,2,G.group)),A.xp6(2),A.hij(" ",A.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function qe(F,ge){if(1&F&&(A.TgZ(0,"mat-option",18),A._uU(1),A.ALo(2,"memberStatus"),A.qZA()),2&F){const G=ge.$implicit;A.Q6J("value",G),A.xp6(1),A.Oqu(A.lcZ(2,2,G))}}function Pe(F,ge){if(1&F&&(A.TgZ(0,"mat-option",18),A._uU(1),A.ALo(2,"memberStatus"),A.qZA()),2&F){const G=ge.$implicit;A.Q6J("value",G),A.xp6(1),A.Oqu(A.lcZ(2,2,G))}}function we(F,ge){1&F&&A._UZ(0,"mat-spinner",19)}function j(F,ge){if(1&F&&A._UZ(0,"perun-web-apps-members-dynamic-list",20),2&F){const G=A.oxw();A.Q6J("attrNames",G.memberAttrNames)("groupId",G.group.id)("tableId",G.tableId)("displayedColumns",G.displayedColumns)("searchString",G.searchString)("updateTable",G.updateTable)("selectedGroupStatuses",G.selectedGroupStatuses)("selectedStatuses",G.selectedStatuses)("selection",G.selection)("voId",G.group.voId)("isMembersGroup","members"===G.group.name)}}let I=(()=>{class F{constructor(G,_e,Te,et,Xe,vt,rt,ht){this.groupService=G,this.dialog=_e,this.guiAuthResolver=Te,this.storeService=et,this.attributesManager=Xe,this.apiRequest=vt,this.notificator=rt,this.entityStorageService=ht,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=b.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,_.r.MEMBER_LIFECYCLE_ALTERABLE],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new S.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new S.p4,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(G){this.groupService.getRichGroupByIdWithAttributesByNames(G,this.groupAttrNames).subscribe(_e=>{this.group=_e,this.synchEnabled=(0,y.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(G){this.searchString=G,this.selection.clear()}onAddMember(){const G=(0,y.kZ)();G.width="1000px",G.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(U.k,G).afterClosed().subscribe(Te=>{Te&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const G=(0,y.kZ)();G.width="450px",G.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,G).afterClosed().subscribe(Te=>{Te&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const G=(0,y.kZ)();G.width="650px",G.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(E.R,G)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const G=this.statuses.value;return G?`${G[0]} ${G.length>1?"(+"+(G.length-1).toString()+" "+(2===G.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(G){return new Promise(_e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(G,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:Te=>{this.blockManualMemberAdding=null!==Te.value,_e()},error:Te=>{"PrivilegeException"!==Te.name&&this.notificator.showError(Te.name),_e()}})})}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 F.id="GroupMembersComponent",F.\u0275fac=function(G){return new(G||F)(A.Y36(g.ff),A.Y36(N.uw),A.Y36(d.x4),A.Y36(d.d6),A.Y36(g.H8),A.Y36(d.F5),A.Y36(d.V6),A.Y36(d.fb))},F.\u0275cmp=A.Xpm({type:F,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(G,_e){2&G&&A.ekj("router-component",_e.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","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","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","isMembersGroup"]],template:function(G,_e){1&G&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.YNc(3,De,3,3,"perun-web-apps-alert",1),A.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),A.NdJ("click",function(){return _e.refreshTable()}),A.qZA(),A.TgZ(6,"span",4),A.ALo(7,"groupMembersActionButtonDisabled"),A.ALo(8,"translate"),A.ALo(9,"groupMembersActionButtonDisabledTooltip"),A.YNc(10,Se,4,7,"button",5),A.qZA(),A.TgZ(11,"span",4),A.ALo(12,"groupMembersActionButtonDisabled"),A.ALo(13,"translate"),A.ALo(14,"groupMembersActionButtonDisabledTooltip"),A.YNc(15,Ge,4,6,"button",6),A.qZA(),A.TgZ(16,"span",4),A.ALo(17,"groupMembersActionButtonDisabled"),A.ALo(18,"translate"),A.ALo(19,"groupMembersActionButtonDisabledTooltip"),A.YNc(20,Ce,4,6,"button",7),A.qZA(),A.TgZ(21,"mat-form-field",8)(22,"mat-label"),A._uU(23),A.ALo(24,"translate"),A.qZA(),A.TgZ(25,"mat-select",9),A.NdJ("closed",function(){return _e.changeVoStatuses()}),A.TgZ(26,"mat-select-trigger"),A._uU(27),A.ALo(28,"memberStatus"),A.qZA(),A.YNc(29,qe,3,4,"mat-option",10),A.qZA()(),A.TgZ(30,"mat-form-field",8)(31,"mat-label"),A._uU(32),A.ALo(33,"translate"),A.qZA(),A.TgZ(34,"mat-select",9),A.NdJ("closed",function(){return _e.changeGroupStatuses()}),A.TgZ(35,"mat-select-trigger"),A._uU(36),A.ALo(37,"memberStatus"),A.qZA(),A.YNc(38,Pe,3,4,"mat-option",10),A.qZA()(),A.TgZ(39,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(et){return _e.onSearchByString(et)}),A.qZA()(),A.YNc(40,we,1,0,"mat-spinner",12),A.YNc(41,j,1,11,"perun-web-apps-members-dynamic-list",13)),2&G&&(A.xp6(1),A.Oqu(A.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),A.xp6(2),A.Q6J("ngIf",_e.synchEnabled),A.xp6(3),A.s9C("matTooltip",A.lcZ(8,30,A.xi3(9,32,_e.group,"add"))),A.Q6J("matTooltipDisabled",!A.xi3(7,27,_e.group,"add"))("matTooltipPosition","above"),A.xp6(4),A.Q6J("ngIf",_e.addAuth),A.xp6(1),A.s9C("matTooltip",A.lcZ(13,37,A.lcZ(14,39,_e.group))),A.Q6J("matTooltipDisabled",!A.lcZ(12,35,_e.group))("matTooltipPosition","above"),A.xp6(4),A.Q6J("ngIf",_e.inviteAuth),A.xp6(1),A.s9C("matTooltip",A.lcZ(18,43,A.lcZ(19,45,_e.group))),A.Q6J("matTooltipDisabled",!A.lcZ(17,41,_e.group))("matTooltipPosition","above"),A.xp6(4),A.Q6J("ngIf",_e.removeAuth),A.xp6(3),A.Oqu(A.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),A.xp6(2),A.Q6J("formControl",_e.statuses),A.xp6(2),A.hij(" ",A.lcZ(28,49,_e.displaySelectedStatuses())," "),A.xp6(2),A.Q6J("ngForOf",_e.statusList),A.xp6(3),A.Oqu(A.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),A.xp6(2),A.Q6J("formControl",_e.groupStatuses),A.xp6(2),A.hij(" ",A.lcZ(37,53,_e.displaySelectedGroupStatuses())," "),A.xp6(2),A.Q6J("ngForOf",_e.groupStatusList),A.xp6(1),A.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),A.xp6(1),A.Q6J("ngIf",_e.loading),A.xp6(1),A.Q6J("ngIf",!_e.loading))},dependencies:[z.sg,z.O5,Q.ey,ne.KE,ne.hX,S.JJ,S.oH,he.lW,ee.gD,ee.$L,fe.Ou,ce.gM,ve.w,v.t,O.P,H.m,Y.X$,q.l,ue,Ee],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}"]}),F})()},37240:(We,pe,h)=>{"use strict";h.d(pe,{q:()=>W});var e=h(95017),d=h(32105),_=h(10036),w=h(65412),g=h(35382),y=(h(33604),h(94650)),E=h(89383),S=h(36895),U=h(24006),A=h(4859),N=h(51572),z=h(10266),Q=h(90455),ne=h(86257),he=h(62109),ee=h(64901);const fe=["list"],ce=["stepper"];function ve(le,ie){1&le&&y._UZ(0,"mat-spinner",4)}function v(le,ie){1&le&&(y._uU(0),y.ALo(1,"translate")),2&le&&y.Oqu(y.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function O(le,ie){1&le&&(y._uU(0),y.ALo(1,"translate")),2&le&&y.Oqu(y.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const H=function(){return["select","id","name","facility","tags","description"]};function Y(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),y.YNc(4,v,2,3,"ng-template",9),y.TgZ(5,"perun-web-apps-debounce-filter",10),y.NdJ("filter",function(Je){y.CHM(ae);const ct=y.oxw();return y.KtG(ct.applyFilter(Je))}),y.ALo(6,"translate"),y.qZA(),y._UZ(7,"perun-web-apps-resources-list",11,12),y.qZA(),y.TgZ(9,"mat-step"),y.YNc(10,O,2,3,"ng-template",9),y.TgZ(11,"mat-slide-toggle",13),y.NdJ("toggleChange",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.changeSubgroupsMessage())})("ngModelChange",function(Je){y.CHM(ae);const ct=y.oxw();return y.KtG(ct.autoAssignSubgroups=Je)}),y._uU(12),y.ALo(13,"translate"),y.qZA(),y.TgZ(14,"div",14),y._UZ(15,"i",15),y.qZA(),y.TgZ(16,"mat-slide-toggle",13),y.NdJ("toggleChange",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.changeInactiveMessage())})("ngModelChange",function(Je){y.CHM(ae);const ct=y.oxw();return y.KtG(ct.asActive=Je)}),y._uU(17),y.ALo(18,"translate"),y.qZA(),y.TgZ(19,"div",14),y._uU(20),y.qZA(),y.TgZ(21,"mat-slide-toggle",13),y.NdJ("toggleChange",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.changeAsyncMessage())})("ngModelChange",function(Je){y.CHM(ae);const ct=y.oxw();return y.KtG(ct.async=Je)}),y._uU(22),y.ALo(23,"translate"),y.qZA(),y.TgZ(24,"div",14),y._uU(25),y.qZA()()()()}if(2&le){const ae=y.MAs(8),Ze=y.oxw();y.xp6(1),y.Q6J("linear",!0),y.xp6(2),y.Q6J("completed",0!==Ze.selection.selected.length&&void 0!==ae&&ae.addAuth),y.xp6(2),y.s9C("placeholder",y.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),y.xp6(2),y.Q6J("filterValue",Ze.filterValue)("groupToResource",Ze.data.group)("disableRouting",!0)("resources",Ze.resources)("selection",Ze.selection)("displayedColumns",y.DdM(27,H))("tableId",Ze.tableId),y.xp6(4),y.Q6J("ngModel",Ze.autoAssignSubgroups),y.xp6(1),y.hij(" ",y.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),y.xp6(3),y.Q6J("innerHTML",Ze.autoAssignHint,y.oJD),y.xp6(1),y.Q6J("ngModel",Ze.asActive),y.xp6(1),y.hij(" ",y.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),y.xp6(3),y.hij(" ",Ze.asActiveHint," "),y.xp6(1),y.Q6J("ngModel",Ze.async),y.xp6(1),y.hij(" ",y.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),y.xp6(3),y.hij(" ",Ze.asyncHint," ")}}function q(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"button",22),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw(2);return y.KtG(Je.stepperPrevious())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}2&le&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ue(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"button",23),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw(2);return y.KtG(Je.stepperNext())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}if(2&le){const ae=y.oxw(2);y.ekj("ml-2",void 0!==ae.stepper&&0!==ae.stepper.selectedIndex)("ml-auto",!(void 0!==ae.stepper&&0!==ae.stepper.selectedIndex)),y.Q6J("disabled",0===ae.selection.selected.length||void 0!==ae.list&&!ae.list.addAuth),y.xp6(1),y.hij(" ",y.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function Ee(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"button",24),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw(2);return y.KtG(Je.onSubmit())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}if(2&le){const ae=y.oxw(2);y.Q6J("disabled",0===ae.selection.selected.length||ae.loading),y.xp6(1),y.hij(" ",y.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function De(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"div",16)(1,"button",17),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.onCancel())}),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.YNc(4,q,3,3,"button",18),y.YNc(5,ue,3,8,"button",19),y.TgZ(6,"span",20),y.ALo(7,"translate"),y.YNc(8,Ee,3,4,"button",21),y.qZA()()}if(2&le){const ae=y.oxw();y.xp6(2),y.hij(" ",y.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),y.xp6(2),y.Q6J("ngIf",void 0!==ae.stepper&&0!==ae.stepper.selectedIndex),y.xp6(1),y.Q6J("ngIf",void 0!==ae.stepper&&ae.stepper.selectedIndex!==ae.stepper._steps.length-1),y.xp6(1),y.s9C("matTooltip",y.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),y.Q6J("matTooltipDisabled",void 0===ae.list||ae.list.addAuth),y.xp6(2),y.Q6J("ngIf",void 0!==ae.stepper&&ae.stepper.selectedIndex===ae.stepper._steps.length-1)}}let Se=(()=>{class le{constructor(ae,Ze,Je,ct,ze,oe,V){this.dialogRef=ae,this.data=Ze,this.notificator=Je,this.translate=ct,this.resourcesManager=ze,this.guiAuthResolver=oe,this.cd=V,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(ae=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(Ze=>{for(const Je of ae)-1===Ze.findIndex(ct=>ct.id===Je.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Je])&&this.resources.push(Je);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ae){this.filterValue=ae}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ae=this.selection.selected.map(Ze=>Ze.id);this.resourcesManager.assignGroupToResources(this.data.group.id,ae,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(Ze=>{this.notificator.showSuccess(Ze),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 le.\u0275fac=function(ae){return new(ae||le)(y.Y36(w.so),y.Y36(w.WI),y.Y36(g.V6),y.Y36(E.sK),y.Y36(d.xk),y.Y36(g.x4),y.Y36(y.sBO))},le.\u0275cmp=y.Xpm({type:le,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(ae,Ze){if(1&ae&&(y.Gf(fe,5),y.Gf(ce,5)),2&ae){let Je;y.iGM(Je=y.CRH())&&(Ze.list=Je.first),y.iGM(Je=y.CRH())&&(Ze.stepper=Je.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(ae,Ze){1&ae&&(y.TgZ(0,"div")(1,"h1",0),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.YNc(4,ve,1,0,"mat-spinner",1),y.YNc(5,Y,26,28,"div",2),y.YNc(6,De,9,10,"div",3),y.qZA()),2&ae&&(y.Tol(Ze.theme),y.xp6(2),y.Oqu(y.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),y.xp6(2),y.Q6J("ngIf",Ze.loading),y.xp6(1),y.Q6J("ngIf",!Ze.loading),y.xp6(1),y.Q6J("ngIf",!Ze.loading&&void 0!==Ze.stepper))},dependencies:[S.O5,U.JJ,U.On,A.lW,w.uh,w.xY,w.H8,N.Ou,z.gM,Q.Rr,ne.C0,ne.VY,ne.Vq,he.C,ee.P,E.X$]}),le})();var Ge=h(30671);function Ce(le,ie){1&le&&y._UZ(0,"mat-spinner",4)}function qe(le,ie){1&le&&y._UZ(0,"th",13)}function Pe(le,ie){if(1&le&&(y.TgZ(0,"td",14),y._uU(1),y.qZA()),2&le){const ae=ie.$implicit;y.xp6(1),y.Oqu(ae.name)}}function we(le,ie){1&le&&y._UZ(0,"tr",15)}function j(le,ie){1&le&&y._UZ(0,"tr",16)}function I(le,ie){if(1&le&&(y.TgZ(0,"div",5)(1,"p"),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"div",6),y._uU(5),y.ALo(6,"translate"),y.qZA(),y.TgZ(7,"table",7),y.ynx(8,8),y.YNc(9,qe,1,0,"th",9),y.YNc(10,Pe,2,1,"td",10),y.BQk(),y.YNc(11,we,1,0,"tr",11),y.YNc(12,j,1,0,"tr",12),y.qZA()()),2&le){const ae=y.oxw();y.xp6(2),y.hij(" ",y.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),y.xp6(3),y.hij(" ",y.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),y.xp6(2),y.Q6J("dataSource",ae.dataSource),y.xp6(4),y.Q6J("matHeaderRowDef",ae.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",ae.displayedColumns)}}function F(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"div",17)(1,"button",18),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.onCancel())}),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"button",19),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.onSubmit())}),y._uU(5),y.ALo(6,"translate"),y.qZA()()}if(2&le){const ae=y.oxw();y.xp6(2),y.hij(" ",y.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),y.xp6(2),y.Q6J("disabled",ae.loading),y.xp6(1),y.hij(" ",y.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let ge=(()=>{class le{constructor(ae,Ze,Je,ct,ze){this.dialogRef=ae,this.data=Ze,this.notificator=Je,this.translate=ct,this.resourcesManager=ze,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ge.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ae=this.data.resources.map(Ze=>Ze.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,ae).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(Ze=>{this.loading=!1,this.notificator.showSuccess(Ze),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return le.\u0275fac=function(ae){return new(ae||le)(y.Y36(w.so),y.Y36(w.WI),y.Y36(g.V6),y.Y36(E.sK),y.Y36(d.xk))},le.\u0275cmp=y.Xpm({type:le,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(ae,Ze){1&ae&&(y.TgZ(0,"div")(1,"h1",0),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.YNc(4,Ce,1,0,"mat-spinner",1),y.YNc(5,I,13,9,"div",2),y.YNc(6,F,7,7,"div",3),y.qZA()),2&ae&&(y.Tol(Ze.data.theme),y.xp6(2),y.Oqu(y.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),y.xp6(2),y.Q6J("ngIf",Ze.loading),y.xp6(1),y.Q6J("ngIf",!Ze.loading),y.xp6(1),y.Q6J("ngIf",!Ze.loading))},dependencies:[S.O5,A.lW,Ge.BZ,Ge.fO,Ge.as,Ge.w1,Ge.Dz,Ge.nj,Ge.ge,Ge.ev,Ge.XQ,Ge.Gk,w.uh,w.xY,w.H8,N.Ou,E.X$]}),le})();var G=h(9244),_e=h(96214),Te=h(7434);const et=["list"];function Xe(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"button",8),y.NdJ("click",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.addResource())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}2&le&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function vt(le,ie){1&le&&y._UZ(0,"mat-spinner",9)}const rt=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function ht(le,ie){if(1&le){const ae=y.EpF();y.TgZ(0,"perun-web-apps-resources-list",10,11),y.NdJ("refreshTable",function(){y.CHM(ae);const Je=y.oxw();return y.KtG(Je.refreshTable())}),y.qZA()}if(2&le){const ae=y.oxw();y.Q6J("disableRouting",!ae.routingAuth)("filterValue",ae.filterValue)("resources",ae.resources)("routingVo",!0)("displayedColumns",y.DdM(10,rt))("selection",ae.selected)("groupId",ae.group.id)("groupToResource",ae.group)("resourcesToDisableCheckbox",ae.resourcesToDisable)("tableId",ae.tableId)}}let W=(()=>{class le{constructor(ae,Ze,Je,ct,ze){this.resourcesManager=ae,this.groupService=Ze,this.dialog=Je,this.guiAuthResolver=ct,this.entityStorageService=ze,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(ae=>{this.resources=ae.map(Ze=>{const Je=Ze.enrichedResource.resource;return Je.facility=Ze.facility,Je.status=Ze.status,Je.resourceTags=Ze.resourceTags,Je.failureCause=Ze.failureCause,Je.sourceGroupId=Ze.sourceGroupId,Je}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(Ze=>null!==Ze.sourceGroupId).map(Ze=>Ze.id)),this.setAuthorization(),this.loading=!1})}applyFilter(ae){this.filterValue=ae}addResource(){const ae=(0,G.kZ)();ae.width="1000px",ae.data={theme:"group-theme",group:this.group},this.dialog.open(Se,ae).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}removeResource(){const ae=(0,G.kZ)();ae.width="450px",ae.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(ge,ae).afterClosed().subscribe(Je=>{Je&&(this.selected.clear(),this.refreshTable())})}}return le.id="GroupResourcesComponent",le.\u0275fac=function(ae){return new(ae||le)(y.Y36(d.xk),y.Y36(d.ff),y.Y36(w.uw),y.Y36(g.x4),y.Y36(g.fb))},le.\u0275cmp=y.Xpm({type:le,selectors:[["app-group-resources"]],viewQuery:function(ae,Ze){if(1&ae&&y.Gf(et,5),2&ae){let Je;y.iGM(Je=y.CRH())&&(Ze.list=Je.first)}},hostVars:2,hostBindings:function(ae,Ze){2&ae&&y.ekj("router-component",Ze.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(ae,Ze){1&ae&&(y.TgZ(0,"div")(1,"h1",0),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"perun-web-apps-refresh-button",1),y.NdJ("refresh",function(){return Ze.refreshTable()}),y.qZA(),y.YNc(5,Xe,3,3,"button",2),y.TgZ(6,"span",3),y.ALo(7,"translate"),y.TgZ(8,"button",4),y.NdJ("click",function(){return Ze.removeResource()}),y._uU(9),y.ALo(10,"translate"),y.qZA()(),y.TgZ(11,"perun-web-apps-immediate-filter",5),y.NdJ("filter",function(ct){return Ze.applyFilter(ct)}),y.qZA(),y.YNc(12,vt,1,0,"mat-spinner",6),y.YNc(13,ht,2,11,"perun-web-apps-resources-list",7),y.qZA()),2&ae&&(y.xp6(2),y.Oqu(y.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),y.xp6(3),y.Q6J("ngIf",Ze.addAuth),y.xp6(1),y.s9C("matTooltip",y.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),y.Q6J("matTooltipDisabled",0===Ze.selected.selected.length||void 0!==Ze.list&&Ze.list.removeAuth),y.xp6(2),y.Q6J("disabled",0===Ze.selected.selected.length||void 0!==Ze.list&&!Ze.list.removeAuth),y.xp6(1),y.hij(" ",y.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),y.xp6(2),y.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),y.xp6(1),y.Q6J("ngIf",Ze.loading),y.xp6(1),y.Q6J("ngIf",Ze.resources&&!Ze.loading))},dependencies:[S.O5,A.lW,N.Ou,z.gM,_e.t,Te.L,he.C,E.X$]}),le})()},61639:(We,pe,h)=>{"use strict";h.d(pe,{C:()=>g});var e=h(32105),d=h(35382),_=h(94650),w=h(34775);let g=(()=>{class b{constructor(E,S){this.authzResolverService=E,this.entityStorageService=S,this.roleNames=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER","GROUPMEMBERSHIPMANAGER"]}ngOnInit(){this.outerLoading=!0,this.groupId=this.entityStorageService.getEntity().id,this.authzResolverService.getGroupRoles(this.groupId).subscribe(E=>{this.roleNames=Object.keys(E).map(S=>S.toUpperCase()),this.prepareRoles(E),this.outerLoading=!1})}prepareRoles(E){this.roleNames.forEach(S=>{const U=new Map;Object.keys(E[S]).forEach(N=>{U.set(N,E[S][N])}),this.roles.set(S,U)}),this.roleNames=this.roleNames.filter(S=>!this.roleFilter.includes(S))}}return b.id="GroupRolesComponent",b.\u0275fac=function(E){return new(E||b)(_.Y36(e.Ct),_.Y36(d.fb))},b.\u0275cmp=_.Xpm({type:b,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(E,S){2&E&&_.ekj("router-component",S.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","entityType","showDescription"]],template:function(E,S){1&E&&_._UZ(0,"app-perun-web-apps-roles-page",0),2&E&&_.Q6J("outerLoading",S.outerLoading)("roles",S.roles)("roleNames",S.roleNames)("entityId",S.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[w._]}),b})()},14336:(We,pe,h)=>{"use strict";h.d(pe,{Z:()=>ge});var e=h(35382),d=h(51076),_=h(83491),w=h(95502),g=h(1186),b=h(32105),y=h(9244),E=h(94650),S=h(65412),U=h(89383),A=h(94364),N=h(36895),z=h(24006),Q=h(97392),ne=h(4859),he=h(51572),ee=h(10266),fe=h(90455),ce=h(44850),ve=h(98380),v=h(96214),O=h(157);const H=["autoRegToggle"];function Y(G,_e){1&G&&E._UZ(0,"mat-spinner",3)}function q(G,_e){if(1&G&&(E.TgZ(0,"span"),E._uU(1," , "),E.TgZ(2,"mat-icon",22),E._uU(3,"nat"),E.qZA(),E._uU(4),E.ALo(5,"translate"),E.ALo(6,"translate"),E.qZA()),2&G){const Te=E.oxw(3);E.xp6(4),E.hij(" ",Te.applicationForm.automaticApprovalEmbedded?E.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ue(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"div")(1,"mat-slide-toggle",23,24),E.NdJ("change",function(){E.CHM(Te);const Xe=E.oxw(3);return E.KtG(Xe.updateAutoRegistration())}),E._uU(3),E.ALo(4,"translate"),E.qZA()()}if(2&G){const Te=E.oxw(3);E.xp6(1),E.Q6J("disabled",!Te.changeAutoRegistration)("ngModel",Te.autoRegistrationEnabled),E.xp6(2),E.hij(" ",E.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function Ee(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",25),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw(3);return E.KtG(Xe.settings())}),E.TgZ(1,"i",12),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&G&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function De(G,_e){if(1&G&&(E.TgZ(0,"div",15)(1,"div",16)(2,"div",17),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",17),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",18),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",19),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.YNc(20,q,7,5,"span",2),E.qZA(),E.YNc(21,ue,5,5,"div",2),E.qZA(),E.TgZ(22,"div",20),E.YNc(23,Ee,5,3,"button",21),E.qZA()()),2&G){const Te=E.oxw(2);E.xp6(1),E.Q6J("ngClass",Te.autoRegistrationEnabled?"w-75":"w-50"),E.xp6(2),E.AsE(" ",E.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Te.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",Te.applicationForm.automaticApproval?E.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",Te.applicationForm.automaticApprovalExtension?E.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(3),E.Q6J("ngIf",Te.autoRegistrationEnabled),E.xp6(1),E.Q6J("ngIf",Te.voHasEmbeddedGroupApplication),E.xp6(2),E.Q6J("ngIf",Te.editAuth)}}function Se(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",26),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw(2);return E.KtG(Xe.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&G&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ge(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",27),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw(2);return E.KtG(Xe.save())}),E.TgZ(1,"i",12),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&G){const Te=E.oxw(2);E.Q6J("disabled",!Te.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Ce(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",28),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw(2);return E.KtG(Xe.copy())}),E.TgZ(1,"i",12),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&G&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function qe(G,_e){1&G&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&G&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const Pe=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},we=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function j(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"div"),E.YNc(1,De,24,21,"div",4),E._UZ(2,"mat-divider",5),E.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),E.NdJ("refresh",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.updateFormItems())}),E.qZA(),E.YNc(5,Se,3,3,"button",8),E.YNc(6,Ge,5,4,"button",9),E.YNc(7,Ce,5,3,"button",10),E.TgZ(8,"button",11),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.preview())}),E.TgZ(9,"i",12),E._uU(10,"search"),E.qZA(),E._uU(11),E.ALo(12,"translate"),E.qZA()(),E.YNc(13,qe,3,3,"perun-web-apps-alert",13),E.TgZ(14,"app-application-form-list",14),E.NdJ("applicationFormItemsChange",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.changeItems())}),E.qZA()()}if(2&G){const Te=E.oxw();E.xp6(1),E.Q6J("ngIf",!Te.loading),E.xp6(4),E.Q6J("ngIf",Te.editAuth),E.xp6(1),E.Q6J("ngIf",Te.editAuth),E.xp6(1),E.Q6J("ngIf",Te.editAuth),E.xp6(4),E.hij(" ",E.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",Te.editAuth),E.xp6(1),E.Q6J("applicationForm",Te.applicationForm)("applicationFormItems",Te.applicationFormItems)("loading",Te.loading)("displayedColumns",Te.editAuth?E.DdM(14,Pe):E.DdM(15,we))("refreshApplicationForm",Te.refreshApplicationForm)("theme","group-theme")}}function I(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",32),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw(2);return E.KtG(Xe.createEmptyApplicationForm())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&G&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function F(G,_e){if(1&G&&(E.TgZ(0,"div")(1,"perun-web-apps-alert",30),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,I,3,3,"button",31),E.qZA()),2&G){const Te=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),E.xp6(2),E.Q6J("ngIf",Te.createEmptyForm)}}let ge=(()=>{class G{constructor(Te,et,Xe,vt,rt,ht,W,le,ie){this.registrarManager=Te,this.dialog=et,this.notificator=Xe,this.translate=vt,this.apiRequest=rt,this.router=ht,this.guiAuthResolver=W,this.attributesManager=le,this.entityStorageService=ie,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(Te=>{this.applicationForm=Te,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(et=>{this.applicationFormItems=et,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Xe=>{this.voHasEmbeddedGroupApplication=null!==Xe.value,this.autoRegistrationEnabled=!!Xe.value,this.loading=!1})},()=>this.loading=!1)},Te=>{"FormNotExistsException"===Te.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Te)})}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 Te=(0,y.kZ)();Te.width="500px",Te.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(d.J,Te).afterClosed().subscribe(Xe=>{Xe&&(this.applicationFormItems=Object.assign([],Xe[0]),Te=(0,y.kZ)(),Te.width="600px",Te.height="600px",Te.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Xe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(_._,Te),this.itemsChanged=!0)})}copy(){const Te=(0,y.kZ)();Te.width="500px",Te.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Te).afterClosed().subscribe(Xe=>{Xe&&this.updateFormItems()})}settings(){const Te=(0,y.kZ)();Te.width="400px",Te.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Te).afterClosed().subscribe(Xe=>{Xe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(vt=>{this.notificator.showSuccess(vt)}),this.applicationForm=Xe)})}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({next:Te=>{this.applicationFormItems=Te,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Te=0;for(const et of this.applicationFormItems)et.ordnum=Te,et.forDelete||Te++;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(et=>{this.notificator.showSuccess(et)}),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(Te=>{this.notificator.showSuccess(Te)}),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(Te=>{this.notificator.showSuccess(Te)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return G.id="GroupSettingsApplicationFormComponent",G.\u0275fac=function(Te){return new(Te||G)(E.Y36(b.tk),E.Y36(S.uw),E.Y36(e.V6),E.Y36(U.sK),E.Y36(e.F5),E.Y36(A.F0),E.Y36(e.x4),E.Y36(b.H8),E.Y36(e.fb))},G.\u0275cmp=E.Xpm({type:G,selectors:[["app-group-settings-application-form"]],viewQuery:function(Te,et){if(1&Te&&E.Gf(H,5),2&Te){let Xe;E.iGM(Xe=E.CRH())&&(et.autoRegToggle=Xe.first)}},hostVars:2,hostBindings:function(Te,et){2&Te&&E.ekj("router-component",et.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(Te,et){1&Te&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,Y,1,0,"mat-spinner",1),E.YNc(4,j,15,16,"div",2),E.YNc(5,F,5,4,"div",2)),2&Te&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",et.loading),E.xp6(1),E.Q6J("ngIf",!et.noApplicationForm),E.xp6(1),E.Q6J("ngIf",!et.loading&&et.noApplicationForm))},dependencies:[N.mk,N.O5,z.JJ,z.On,Q.Hw,ne.lW,he.Ou,ee.gM,fe.Rr,ce.d,ve.w,v.t,O.b,U.X$]}),G})()},15592:(We,pe,h)=>{"use strict";h.d(pe,{u:()=>j});var e=h(81889),d=h(95017),_=h(41656),w=h(9244),g=h(32105),b=h(64080),y=h(10036),E=h(87842),S=h(35382),A=(h(33604),h(94650)),N=h(65412),z=h(36895),Q=h(24006),ne=h(4859),he=h(51572),ee=h(10266),fe=h(90455),ce=h(24179),ve=h(96214),v=h(58956),O=h(64901),H=h(89383);const Y=["tree"],q=["list"],ue=["toggle"];function Ee(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"button",10),A.NdJ("click",function(){A.CHM(ge);const _e=A.oxw();return A.KtG(_e.onCreateGroup())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function De(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){A.CHM(ge);const _e=A.oxw();return A.KtG(_e.deleteGroup())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&I){const ge=A.oxw();A.Q6J("disabled",0===ge.selected.selected.length||void 0!==ge.tree&&!ge.tree.removeAuth||void 0!==ge.list&&!ge.list.removeAuth),A.xp6(1),A.hij(" ",A.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Se(I,F){1&I&&A._UZ(0,"mat-spinner",12)}function Ge(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"perun-web-apps-groups-tree",16,17),A.NdJ("moveGroup",function(_e){A.CHM(ge);const Te=A.oxw(2);return A.KtG(Te.onMoveGroup(_e))})("refreshTable",function(){A.CHM(ge);const _e=A.oxw(2);return A.KtG(_e.refreshTable())}),A.qZA()}if(2&I){const ge=A.oxw(2);A.Q6J("disableRouting",!ge.routeAuth)("expandAll",ge.filtering)("groups",ge.groups)("hideCheckbox",!ge.deleteAuth)("filterValue",ge.filterValue)("selection",ge.selected)}}const Ce=function(){return["select","id","name","description","menu"]},qe=function(){return["id","name","description","menu"]};function Pe(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"perun-web-apps-groups-list",18,19),A.NdJ("moveGroup",function(_e){A.CHM(ge);const Te=A.oxw(2);return A.KtG(Te.onMoveGroup(_e))})("refreshTable",function(){A.CHM(ge);const _e=A.oxw(2);return A.KtG(_e.refreshTable())}),A.qZA()}if(2&I){const ge=A.oxw(2);A.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!ge.routeAuth)("displayedColumns",ge.deleteAuth?A.DdM(8,Ce):A.DdM(9,qe))("groups",ge.groups)("selection",ge.selected)("filter",ge.filterValue)("tableId",ge.tableId)}}function we(I,F){if(1&I&&(A.TgZ(0,"div",13),A.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),A.YNc(2,Pe,2,10,"perun-web-apps-groups-list",15),A.qZA()),2&I){const ge=A.oxw();A.xp6(1),A.Q6J("ngIf",!ge.showGroupList),A.xp6(1),A.Q6J("ngIf",ge.showGroupList)}}let j=(()=>{class I{constructor(ge,G,_e,Te){this.dialog=ge,this.groupService=G,this.guiAuthResolver=_e,this.entityStorageService=Te,this.groups=[],this.selected=new d.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=y.bf,this.filterValue=""}onCreateGroup(){const ge=(0,w.kZ)();ge.width="450px",ge.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,ge).afterClosed().subscribe(_e=>{_e&&(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 ge=(0,w.kZ)();ge.width="450px",ge.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(_.P,ge).afterClosed().subscribe(_e=>{_e&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[b.r.GROUP_DEF_MAIL_FOOTER,b.r.GROUP_SYNC_ENABLED,b.r.GROUP_LAST_SYNC_STATE,b.r.GROUP_LAST_SYNC_TIMESTAMP,b.r.GROUP_STRUCTURE_SYNC_ENABLED,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(ge=>{this.groups=ge,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(ge){this.filterValue=ge,this.filtering=""!==ge}onMoveGroup(ge){const G=(0,w.kZ)();G.width="550px",G.data={group:ge,theme:"group-theme"},this.dialog.open(E.c,G).afterClosed().subscribe(Te=>{Te&&this.refreshTable()})}}return I.id="GroupSubgroupsComponent",I.\u0275fac=function(ge){return new(ge||I)(A.Y36(N.uw),A.Y36(g.ff),A.Y36(S.x4),A.Y36(S.fb))},I.\u0275cmp=A.Xpm({type:I,selectors:[["app-group-subgroups"]],viewQuery:function(ge,G){if(1&ge&&(A.Gf(Y,5),A.Gf(q,5),A.Gf(ue,7)),2&ge){let _e;A.iGM(_e=A.CRH())&&(G.tree=_e.first),A.iGM(_e=A.CRH())&&(G.list=_e.first),A.iGM(_e=A.CRH())&&(G.toggle=_e.first)}},hostVars:2,hostBindings:function(ge,G){2&ge&&A.ekj("router-component",G.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(ge,G){if(1&ge&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return G.refreshTable()}),A.qZA(),A.YNc(5,Ee,3,3,"button",2),A.TgZ(6,"span",3),A.ALo(7,"translate"),A.YNc(8,De,3,4,"button",4),A.qZA(),A.TgZ(9,"perun-web-apps-debounce-filter",5),A.NdJ("filter",function(Te){return G.applyFilter(Te)}),A.qZA(),A.TgZ(10,"mat-slide-toggle",6,7),A.NdJ("change",function(){return G.selected.clear()})("ngModelChange",function(Te){return G.showGroupList=Te}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"label"),A._uU(15),A.ALo(16,"translate"),A.qZA(),A.YNc(17,Se,1,0,"mat-spinner",8),A.YNc(18,we,3,2,"div",9),A.qZA()),2&ge){const _e=A.MAs(11);A.xp6(2),A.Oqu(A.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),A.xp6(3),A.Q6J("ngIf",G.createAuth),A.xp6(1),A.s9C("matTooltip",A.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),A.Q6J("matTooltipDisabled",void 0===G.tree&&void 0===G.list||void 0!==G.tree&&G.tree.removeAuth||void 0!==G.list&&G.list.removeAuth),A.xp6(2),A.Q6J("ngIf",G.deleteAuth),A.xp6(1),A.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),A.xp6(1),A.Q6J("ngModel",G.showGroupList),A.xp6(2),A.Oqu(A.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),A.xp6(2),A.uIk("for",_e.inputId),A.xp6(1),A.Oqu(A.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),A.xp6(2),A.Q6J("ngIf",G.loading),A.xp6(1),A.Q6J("ngIf",!G.loading)}},dependencies:[z.O5,Q.JJ,Q.On,ne.lW,he.Ou,ee.gM,fe.Rr,ce.W,ve.t,v.I,O.P,H.X$]}),I})()},85243:(We,pe,h)=>{"use strict";h.d(pe,{j:()=>ge});var e=h(32105),d=h(10036),_=h(95017),w=h(9244),g=h(65412),b=h(35382),y=h(64080),E=h(94650),S=h(89383),U=h(36895),A=h(4859),N=h(51572),z=h(24179),Q=h(7434);function ne(G,_e){1&G&&E._UZ(0,"mat-spinner",6)}function he(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"perun-web-apps-immediate-filter",7),E.NdJ("filter",function(Xe){E.CHM(Te);const vt=E.oxw();return E.KtG(vt.applyFilter(Xe))}),E.qZA()}2&G&&E.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const ee=function(){return["select","id","name","description"]};function fe(G,_e){if(1&G&&E._UZ(0,"perun-web-apps-groups-list",8),2&G){const Te=E.oxw();E.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",E.DdM(8,ee))("filter",Te.filterValue)("groupsToDisableCheckbox",Te.membersGroups)("disableRouting",!0)("groups",Te.groups)("selection",Te.selection)}}function ce(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"div",9)(1,"button",10),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",11),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.onAdd())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2&G){const Te=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===Te.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let ve=(()=>{class G{constructor(Te,et,Xe,vt,rt,ht,W){this.dialogRef=Te,this.data=et,this.groupManager=Xe,this.memberManager=vt,this.notificator=rt,this.translate=ht,this.authResolver=W,this.loading=!1,this.groups=[],this.selection=new _.Ov(!0,[]),this.attrNames=[y.r.GROUP_SYNC_ENABLED,y.r.GROUP_LAST_SYNC_STATE,y.r.GROUP_LAST_SYNC_TIMESTAMP,y.r.GROUP_STRUCTURE_SYNC_ENABLED,y.r.GROUP_LAST_STRUCTURE_SYNC_STATE,y.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(Te=>{this.member=Te,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(et=>{this.groups=et.filter(Xe=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Te=this.selection.selected.map(et=>et.id);this.loading=!0,this.groupManager.addMember(Te,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(Te){this.filterValue=Te}}return G.\u0275fac=function(Te){return new(Te||G)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(e.uq),E.Y36(b.V6),E.Y36(S.sK),E.Y36(b.x4))},G.\u0275cmp=E.Xpm({type:G,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(Te,et){1&Te&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ne,1,0,"mat-spinner",1),E.TgZ(5,"div",2),E.YNc(6,he,1,1,"perun-web-apps-immediate-filter",3),E.YNc(7,fe,1,9,"perun-web-apps-groups-list",4),E.qZA(),E.YNc(8,ce,7,7,"div",5),E.qZA()),2&Te&&(E.Tol(et.theme),E.xp6(2),E.Oqu(E.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",et.loading),E.xp6(2),E.Q6J("ngIf",!et.loading),E.xp6(1),E.Q6J("ngIf",!et.loading),E.xp6(1),E.Q6J("ngIf",!et.loading))},dependencies:[U.O5,A.lW,g.uh,g.xY,g.H8,N.Ou,z.W,Q.L,S.X$]}),G})();var v=h(30671);function O(G,_e){1&G&&E._UZ(0,"mat-spinner",6)}function H(G,_e){1&G&&E._UZ(0,"th",15)}function Y(G,_e){if(1&G&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2&G){const Te=_e.$implicit;E.xp6(1),E.Oqu(Te.name)}}function q(G,_e){1&G&&E._UZ(0,"tr",17)}function ue(G,_e){1&G&&E._UZ(0,"tr",18)}function Ee(G,_e){if(1&G&&(E.TgZ(0,"div",7)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",8),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",9),E.ynx(8,10),E.YNc(9,H,1,0,"th",11),E.YNc(10,Y,2,1,"td",12),E.BQk(),E.YNc(11,q,1,0,"tr",13),E.YNc(12,ue,1,0,"tr",14),E.qZA()()),2&G){const Te=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),E.xp6(2),E.Q6J("dataSource",Te.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Te.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Te.displayedColumns)}}let De=(()=>{class G{constructor(Te,et,Xe,vt,rt){this.dialogRef=Te,this.data=et,this.groupManager=Xe,this.notificator=vt,this.translate=rt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new v.by(this.data.groups)}onRemove(){this.loading=!0;const Te=this.dataSource.data.map(et=>et.id);this.groupManager.removeMember(Te,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 G.\u0275fac=function(Te){return new(Te||G)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(b.V6),E.Y36(S.sK))},G.\u0275cmp=E.Xpm({type:G,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(Te,et){1&Te&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,O,1,0,"mat-spinner",1),E.YNc(5,Ee,13,9,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return et.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return et.onRemove()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Te&&(E.Tol(et.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",et.loading),E.xp6(1),E.Q6J("ngIf",!et.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",et.loading),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[U.O5,A.lW,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,g.uh,g.xY,g.H8,N.Ou,S.X$]}),G})();h(33604);var Ge=h(94364),Ce=h(10266),qe=h(96214);const Pe=["list"];function we(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.addGroup())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&G&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function j(G,_e){1&G&&E._UZ(0,"mat-spinner",9)}const I=function(){return["select","id","name","description","expiration","groupStatus"]};function F(G,_e){if(1&G){const Te=E.EpF();E.TgZ(0,"perun-web-apps-groups-list",10,11),E.NdJ("refreshTable",function(){E.CHM(Te);const Xe=E.oxw();return E.KtG(Xe.refreshTable())}),E.qZA()}if(2&G){const Te=E.oxw();E.Q6J("displayedColumns",E.DdM(9,I))("authType","member-groups")("filter",Te.filterValue)("memberId",Te.memberId)("disableRouting",!Te.routeAuth)("groups",Te.groups)("memberGroupStatus",Te.member.groupStatus)("selection",Te.selection)("tableId",Te.tableId)}}let ge=(()=>{class G{constructor(Te,et,Xe,vt,rt){this.groupsService=Te,this.route=et,this.dialog=Xe,this.authResolver=vt,this.memberService=rt,this.filterValue="",this.tableId=d.W1,this.selection=new _.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Te=>{this.memberId=Number(Te.memberId),this.memberService.getMemberById(this.memberId).subscribe(et=>{this.member=et,this.groupsService.getAllGroups(this.member.voId).subscribe(Xe=>{this.allGroups=Xe,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[y.r.MEMBER_DEF_GROUP_EXPIRATION,y.r.MEMBER_GROUP_STATUS]).subscribe(Te=>{this.selection.clear(),this.groups=Te,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Te={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((et,Xe)=>et||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Te,this.groups[0]]))}addGroup(){const Te=(0,w.kZ)();Te.width="850px",Te.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Xe=>Xe.id)),theme:"member-theme"},this.dialog.open(ve,Te).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}removeGroup(){const Te=(0,w.kZ)();Te.width="650px",Te.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(De,Te).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}applyFilter(Te){this.filterValue=Te}}return G.id="MemberGroupsComponent",G.\u0275fac=function(Te){return new(Te||G)(E.Y36(e.ff),E.Y36(Ge.gz),E.Y36(g.uw),E.Y36(b.x4),E.Y36(e.uq))},G.\u0275cmp=E.Xpm({type:G,selectors:[["app-member-groups"]],viewQuery:function(Te,et){if(1&Te&&E.Gf(Pe,5),2&Te){let Xe;E.iGM(Xe=E.CRH())&&(et.list=Xe.first)}},hostVars:2,hostBindings:function(Te,et){2&Te&&E.ekj("router-component",et.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(Te,et){1&Te&&(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 et.refreshTable()}),E.qZA(),E.YNc(4,we,3,3,"button",2),E.TgZ(5,"span",3),E.ALo(6,"translate"),E.TgZ(7,"button",4),E.NdJ("click",function(){return et.removeGroup()}),E._uU(8),E.ALo(9,"translate"),E.qZA()(),E.TgZ(10,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(vt){return et.applyFilter(vt)}),E.qZA(),E.YNc(11,j,1,0,"mat-spinner",6),E.YNc(12,F,2,10,"perun-web-apps-groups-list",7)),2&Te&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),E.xp6(3),E.Q6J("ngIf",et.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",void 0===et.list||void 0!==et.list&&et.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===et.selection.selected.length||void 0!==et.list&&!et.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",et.loading),E.xp6(1),E.Q6J("ngIf",!et.loading))},dependencies:[U.O5,A.lW,N.Ou,Ce.gM,z.W,qe.t,Q.L,S.X$]}),G})()},94856:(We,pe,h)=>{"use strict";h.d(pe,{c:()=>ce});var e=h(32105),d=h(10036),_=h(24006),w=h(36895),g=h(35382),b=h(94650),y=h(3238),E=h(59549),S=h(4859),U=h(56709),A=h(84385),N=h(96214),z=h(39798),Q=h(64901),ne=h(9146),he=h(89383);function ee(ve,v){if(1&ve){const O=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){b.CHM(O);const Y=b.oxw();return b.KtG(Y.showDetails(!0))}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&ve&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function fe(ve,v){if(1&ve){const O=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){b.CHM(O);const Y=b.oxw();return b.KtG(Y.showDetails(!1))}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&ve&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let ce=(()=>{class ve{constructor(O,H){this.registrarManager=O,this.entityStorageService=H,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=d.Jf,this.tableId=d.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new _.p4((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new _.p4((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 O=new Date;return O.setDate(O.getDate()-365),O}showGroupApplications(O){this.showGroupApps=O.checked,this.currentColumns=this.refreshColumns()}showDetails(O){this.showAllDetails=O,this.currentColumns=this.refreshColumns()}applyFilter(O){this.filterValue=O}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(O=>"groupName"!==O&&"groupId"!==O):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(O=>"groupName"!==O)}}return ve.id="VoApplicationsComponent",ve.\u0275fac=function(O){return new(O||ve)(b.Y36(e.tk),b.Y36(g.fb))},ve.\u0275cmp=b.Xpm({type:ve,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(O,H){2&O&&b.ekj("router-component",H.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(O,H){1&O&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),b.NdJ("refresh",function(){return H.refresh=!H.refresh}),b.qZA(),b.YNc(5,ee,3,3,"button",2),b.YNc(6,fe,3,3,"button",2),b.TgZ(7,"mat-form-field",3)(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"mat-select",4),b.NdJ("selectionChange",function(){return H.select()})("valueChange",function(q){return H.state=q}),b.TgZ(12,"mat-option",5),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"mat-option",6),b._uU(16),b.ALo(17,"translate"),b.qZA(),b.TgZ(18,"mat-option",7),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-option",8),b._uU(22),b.ALo(23,"translate"),b.qZA(),b.TgZ(24,"mat-option",9),b._uU(25),b.ALo(26,"translate"),b.qZA(),b.TgZ(27,"mat-option",10),b._uU(28),b.ALo(29,"translate"),b.qZA()()(),b.TgZ(30,"perun-web-apps-debounce-filter",11),b.NdJ("filter",function(q){return H.applyFilter(q)}),b.qZA(),b.TgZ(31,"perun-web-apps-date-range",12),b.NdJ("datePicker",function(){return H.select()}),b.qZA(),b.TgZ(32,"div")(33,"mat-checkbox",13),b.NdJ("change",function(q){return H.showGroupApplications(q)}),b._uU(34),b.ALo(35,"translate"),b.qZA()()(),b.TgZ(36,"div"),b._UZ(37,"app-applications-dynamic-list",14),b.qZA()),2&O&&(b.xp6(1),b.Oqu(b.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),b.xp6(4),b.Q6J("ngIf",!H.showAllDetails),b.xp6(1),b.Q6J("ngIf",H.showAllDetails),b.xp6(3),b.Oqu(b.lcZ(10,27,"APPLICATIONS_LIST.STATE")),b.xp6(2),b.Q6J("value",H.state),b.xp6(2),b.Oqu(b.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),b.xp6(3),b.Oqu(b.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),b.xp6(3),b.Oqu(b.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),b.xp6(3),b.Oqu(b.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),b.xp6(3),b.Oqu(b.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),b.xp6(3),b.Oqu(b.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),b.xp6(2),b.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),b.xp6(1),b.Q6J("endDate",H.endDate)("startDate",H.startDate),b.xp6(2),b.Q6J("checked",H.showGroupApps),b.xp6(1),b.hij(" ",b.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),b.xp6(3),b.Q6J("tableId",H.showAllDetails?H.detailTableId:H.tableId)("searchString",H.filterValue)("displayedColumns",H.currentColumns)("states",H.currentStates)("dateFrom",H.startDate.value)("dateTo",H.endDate.value)("includeGroupApps",H.showGroupApps)("refreshTable",H.refresh)("vo",H.vo))},dependencies:[w.O5,y.ey,E.KE,E.hX,S.lW,U.oG,A.gD,N.t,z.S,Q.P,ne.S,he.X$]}),ve})()},4732:(We,pe,h)=>{"use strict";h.d(pe,{G:()=>j});var e=h(81889),d=h(41656),_=h(95017),w=h(87842),g=h(9244),b=h(32105),y=h(10036),E=h(64080),S=h(35382),A=(h(33604),h(94650)),N=h(65412),z=h(36895),Q=h(24006),ne=h(4859),he=h(51572),ee=h(10266),fe=h(90455),ce=h(98380),ve=h(24179),v=h(96214),O=h(58956),H=h(64901),Y=h(89383);const q=["toggle"],ue=["tree"],Ee=["list"];function De(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){A.CHM(ge);const _e=A.oxw();return A.KtG(_e.onCreateGroup())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Se(I,F){1&I&&A._UZ(0,"mat-spinner",12)}function Ge(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"perun-web-apps-groups-tree",16,17),A.NdJ("moveGroup",function(_e){A.CHM(ge);const Te=A.oxw(2);return A.KtG(Te.onMoveGroup(_e))})("refreshTable",function(){A.CHM(ge);const _e=A.oxw(2);return A.KtG(_e.loadAllGroups())}),A.qZA()}if(2&I){const ge=A.oxw(2);A.Q6J("expandAll",ge.filtering)("disableRouting",!ge.routeAuth)("groups",ge.groups)("selection",ge.selected)("filterValue",ge.filterValue)("vo",ge.vo)}}const Ce=function(){return["select","id","name","description","menu"]};function qe(I,F){if(1&I){const ge=A.EpF();A.TgZ(0,"perun-web-apps-groups-list",18,19),A.NdJ("refreshTable",function(){A.CHM(ge);const _e=A.oxw(2);return A.KtG(_e.loadAllGroups())})("moveGroup",function(_e){A.CHM(ge);const Te=A.oxw(2);return A.KtG(Te.onMoveGroup(_e))}),A.qZA()}if(2&I){const ge=A.oxw(2);A.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",A.DdM(8,Ce))("disableRouting",!ge.routeAuth)("groups",ge.groups)("selection",ge.selected)("filter",ge.filterValue)("tableId",ge.tableId)}}function Pe(I,F){if(1&I&&(A.TgZ(0,"div",13),A.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),A.YNc(2,qe,2,9,"perun-web-apps-groups-list",15),A.qZA()),2&I){const ge=A.oxw();A.xp6(1),A.Q6J("ngIf",!ge.showGroupList),A.xp6(1),A.Q6J("ngIf",ge.showGroupList)}}function we(I,F){1&I&&(A.TgZ(0,"perun-web-apps-alert",20),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let j=(()=>{class I{constructor(ge,G,_e,Te){this.dialog=ge,this.groupService=G,this.authResolver=_e,this.entityStorageService=Te,this.groups=[],this.showGroupList=!1,this.selected=new _.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=y.rc}onCreateGroup(){const ge=(0,g.kZ)();ge.width="450px",ge.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,ge).afterClosed().subscribe(_e=>{_e&&(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(){return this.tree?.removeAuth||this.list?.removeAuth}deleteGroup(){const ge=(0,g.kZ)();ge.width="450px",ge.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(d.P,ge).afterClosed().subscribe(_e=>{_e&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(ge){const G=(0,g.kZ)();G.width="550px",G.data={group:ge,theme:"vo-theme"},this.dialog.open(w.c,G).afterClosed().subscribe(Te=>{Te&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[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]).subscribe(ge=>{this.groups=ge,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(ge){this.filterValue=ge,this.filtering=""!==ge}}return I.id="VoGroupsComponent",I.\u0275fac=function(ge){return new(ge||I)(A.Y36(N.uw),A.Y36(b.ff),A.Y36(S.x4),A.Y36(S.fb))},I.\u0275cmp=A.Xpm({type:I,selectors:[["app-vo-groups"]],viewQuery:function(ge,G){if(1&ge&&(A.Gf(q,7),A.Gf(ue,5),A.Gf(Ee,5)),2&ge){let _e;A.iGM(_e=A.CRH())&&(G.toggle=_e.first),A.iGM(_e=A.CRH())&&(G.tree=_e.first),A.iGM(_e=A.CRH())&&(G.list=_e.first)}},hostVars:2,hostBindings:function(ge,G){2&ge&&A.ekj("router-component",G.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(ge,G){if(1&ge&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return G.loadAllGroups()}),A.qZA(),A.YNc(5,De,3,3,"button",2),A.TgZ(6,"span",3),A.ALo(7,"translate"),A.TgZ(8,"button",4),A.NdJ("click",function(){return G.deleteGroup()}),A._uU(9),A.ALo(10,"translate"),A.qZA()(),A.TgZ(11,"perun-web-apps-debounce-filter",5),A.NdJ("filter",function(Te){return G.applyFilter(Te)}),A.qZA(),A.TgZ(12,"mat-slide-toggle",6,7),A.NdJ("change",function(){return G.removeAllGroups()})("ngModelChange",function(Te){return G.showGroupList=Te}),A._uU(14),A.ALo(15,"translate"),A.qZA(),A.TgZ(16,"label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.YNc(19,Se,1,0,"mat-spinner",8),A.YNc(20,Pe,3,2,"div",9),A.YNc(21,we,3,3,"perun-web-apps-alert",10),A.qZA()),2&ge){const _e=A.MAs(13);A.xp6(2),A.Oqu(A.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),A.xp6(3),A.Q6J("ngIf",G.createAuth),A.xp6(1),A.s9C("matTooltip",A.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),A.Q6J("matTooltipDisabled",void 0===G.tree&&void 0===G.list||G.disableTooltip()),A.xp6(2),A.Q6J("disabled",0===G.selected.selected.length||G.disableRemove()),A.xp6(1),A.hij(" ",A.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),A.xp6(1),A.Q6J("ngModel",G.showGroupList),A.xp6(2),A.Oqu(A.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),A.xp6(2),A.uIk("for",_e.inputId),A.xp6(1),A.Oqu(A.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),A.xp6(2),A.Q6J("ngIf",G.loading),A.xp6(1),A.Q6J("ngIf",!G.loading&&0!==G.groups.length),A.xp6(1),A.Q6J("ngIf",0===G.groups.length&&!G.loading)}},dependencies:[z.O5,Q.JJ,Q.On,ne.lW,he.Ou,ee.gM,fe.Rr,ce.w,ve.W,v.t,O.I,H.P,Y.X$]}),I})()},81847:(We,pe,h)=>{"use strict";h.d(pe,{y:()=>Ce});var e=h(95017),d=h(35382),_=h(53455),w=h(32105),g=h(64080),b=h(24006),y=h(10036),E=h(9244),S=h(74414),U=h(51525),A=h(94650),N=h(65412),z=h(36895),Q=h(3238),ne=h(59549),he=h(4859),ee=h(84385),fe=h(51572),ce=h(10266),ve=h(96214),v=h(64901),O=h(4811),H=h(89383),Y=h(20551);function q(qe,Pe){if(1&qe){const we=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){A.CHM(we);const I=A.oxw();return A.KtG(I.onAddMember())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&qe){const we=A.oxw();A.Q6J("disabled",we.blockManualMemberAdding),A.xp6(1),A.hij(" ",A.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ue(qe,Pe){if(1&qe){const we=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(we);const I=A.oxw();return A.KtG(I.onInviteMember())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&qe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function Ee(qe,Pe){if(1&qe){const we=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(we);const I=A.oxw();return A.KtG(I.onRemoveMembers())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&qe){const we=A.oxw();A.Q6J("disabled",we.selection.isEmpty()),A.xp6(1),A.hij(" ",A.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function De(qe,Pe){if(1&qe&&(A.TgZ(0,"mat-option",17),A._uU(1),A.ALo(2,"memberStatus"),A.qZA()),2&qe){const we=Pe.$implicit;A.Q6J("value",we),A.xp6(1),A.Oqu(A.lcZ(2,2,we))}}function Se(qe,Pe){1&qe&&A._UZ(0,"mat-spinner",18)}function Ge(qe,Pe){if(1&qe&&A._UZ(0,"perun-web-apps-members-dynamic-list",19),2&qe){const we=A.oxw();A.Q6J("attrNames",we.attrNames)("selection",we.selection)("tableId",we.tableId)("displayedColumns",we.displayedColumns)("updateTable",we.updateTable)("searchString",we.searchString)("selectedStatuses",we.selectedStatuses)("voId",we.vo.id)("isMembersGroup",!1)}}let Ce=(()=>{class qe{constructor(we,j,I,F,ge,G,_e){this.notificator=we,this.dialog=j,this.authzService=I,this.storeService=F,this.attributesManager=ge,this.apiRequest=G,this.entityStorageService=_e,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 b.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=y.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(we){this.searchString=we,this.selection.clear()}onAddMember(){const we=(0,E.kZ)();we.width="1000px",we.data={voId:this.vo.id},this.dialog.open(U.H,we).afterClosed().subscribe(I=>{I&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const we=(0,E.kZ)();we.width="450px",we.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(_.X,we).afterClosed().subscribe(I=>{I&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const we=(0,E.kZ)();we.width="650px",we.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(S.R,we)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const we=this.statuses.value;return we?`${we[0]} ${we.length>1?"(+"+(we.length-1).toString()+" "+(2===we.length?"other)":"others)"):""}`:""}isManualAddingBlocked(we){return new Promise(j=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(we,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:I=>{this.blockManualMemberAdding=null!==I.value,j()},error:I=>{"PrivilegeException"!==I.name&&this.notificator.showError(I.name),j()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return qe.id="VoMembersComponent",qe.\u0275fac=function(we){return new(we||qe)(A.Y36(d.V6),A.Y36(N.uw),A.Y36(d.x4),A.Y36(d.d6),A.Y36(w.H8),A.Y36(d.F5),A.Y36(d.fb))},qe.\u0275cmp=A.Xpm({type:qe,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(we,j){2&we&&A.ekj("router-component",j.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","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(we,j){1&we&&(A.TgZ(0,"div",0)(1,"h1",1),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),A.NdJ("click",function(){return j.refreshTable()}),A.qZA(),A.TgZ(6,"div",4),A.ALo(7,"translate"),A.YNc(8,q,3,4,"button",5),A.qZA(),A.YNc(9,ue,3,3,"button",6),A.YNc(10,Ee,3,4,"button",7),A.TgZ(11,"mat-form-field",8)(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-select",9),A.NdJ("closed",function(){return j.changeStatuses()}),A.TgZ(16,"mat-select-trigger"),A._uU(17),A.ALo(18,"memberStatus"),A.qZA(),A.YNc(19,De,3,4,"mat-option",10),A.qZA()(),A.TgZ(20,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(F){return j.onSearchByString(F)}),A.qZA()(),A.YNc(21,Se,1,0,"mat-spinner",12),A.YNc(22,Ge,1,9,"perun-web-apps-members-dynamic-list",13),A.qZA()),2&we&&(A.xp6(2),A.Oqu(A.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),A.xp6(4),A.s9C("matTooltip",A.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),A.Q6J("matTooltipDisabled",!j.blockManualMemberAdding),A.xp6(2),A.Q6J("ngIf",j.addAuth),A.xp6(1),A.Q6J("ngIf",j.inviteAuth),A.xp6(1),A.Q6J("ngIf",j.removeAuth),A.xp6(3),A.Oqu(A.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),A.xp6(2),A.Q6J("formControl",j.statuses),A.xp6(2),A.hij(" ",A.lcZ(18,19,j.displaySelectedStatuses())," "),A.xp6(2),A.Q6J("ngForOf",j.statusList),A.xp6(1),A.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),A.xp6(1),A.Q6J("ngIf",j.loading),A.xp6(1),A.Q6J("ngIf",!j.loading))},dependencies:[z.sg,z.O5,Q.ey,ne.KE,ne.hX,b.JJ,b.oH,he.lW,ee.gD,ee.$L,fe.Ou,ce.gM,ve.t,v.P,O.m,H.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}"]}),qe})()},68056:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>ce});var e=h(95017),d=h(32105),_=h(533),w=h(10036),g=h(9244),b=h(35382),y=h(94650),E=h(65412),S=h(36895),U=h(4859),A=h(51572),N=h(96214),z=h(7434),Q=h(62109),ne=h(89383);function he(ve,v){if(1&ve){const O=y.EpF();y.TgZ(0,"button",6),y.NdJ("click",function(){y.CHM(O);const Y=y.oxw();return y.KtG(Y.deleteSelectedResources())}),y._uU(1),y.ALo(2,"translate"),y.qZA()}if(2&ve){const O=y.oxw();y.Q6J("disabled",0===O.selected.selected.length),y.xp6(1),y.hij(" ",y.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function ee(ve,v){1&ve&&y._UZ(0,"mat-spinner",7)}function fe(ve,v){if(1&ve&&y._UZ(0,"perun-web-apps-resources-list",8),2&ve){const O=y.oxw();y.Q6J("disableRouting",!O.routeAuth)("filterValue",O.filterValue)("resources",O.resources)("routingVo",!0)("displayedColumns",O.displayedColumns)("selection",O.selected)("tableId",O.tableId)}}let ce=(()=>{class ve{constructor(O,H,Y,q){this.resourcesManager=O,this.dialog=H,this.authResolver=Y,this.entityStorageService=q,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(O=>{this.resources=O,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(O){this.filterValue=O}deleteSelectedResources(){const O=(0,g.kZ)();O.width="450px",O.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(_.f,O).afterClosed().subscribe(Y=>{Y&&this.refreshTable()})}}return ve.id="VoResourcesPreviewComponent",ve.\u0275fac=function(O){return new(O||ve)(y.Y36(d.xk),y.Y36(E.uw),y.Y36(b.x4),y.Y36(b.fb))},ve.\u0275cmp=y.Xpm({type:ve,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(O,H){2&O&&y.ekj("router-component",H.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(O,H){1&O&&(y.TgZ(0,"div")(1,"h1",0),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"perun-web-apps-refresh-button",1),y.NdJ("refresh",function(){return H.refreshTable()}),y.qZA(),y.YNc(5,he,3,4,"button",2),y.TgZ(6,"perun-web-apps-immediate-filter",3),y.NdJ("filter",function(q){return H.applyFilter(q)}),y.qZA(),y.YNc(7,ee,1,0,"mat-spinner",4),y.YNc(8,fe,1,7,"perun-web-apps-resources-list",5),y.qZA()),2&O&&(y.xp6(2),y.Oqu(y.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),y.xp6(3),y.Q6J("ngIf",H.removeAuth),y.xp6(1),y.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),y.xp6(1),y.Q6J("ngIf",H.loading),y.xp6(1),y.Q6J("ngIf",!H.loading))},dependencies:[S.O5,U.lW,A.Ou,N.t,z.L,Q.C,ne.X$]}),ve})()},24219:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>le});var e=h(35382),d=h(32105),_=h(94650),w=h(36895),g=h(3848),b=h(98380),y=h(96214),E=h(30671),S=h(51572),U=h(44850),A=h(37084),N=h(89383);function z(ie,ae){1&ie&&_._UZ(0,"mat-spinner",2)}function Q(ie,ae){if(1&ie&&(_.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),_._uU(3," error "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.ALo(6,"translate"),_.qZA()()),2&ie){const Ze=_.oxw().$implicit,Je=_.oxw(2);_.xp6(4),_.HOy(" ",Je.getErrorCountStates(Ze)," ",_.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",Ze.taskList.length," ",_.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ne(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function he(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&ie){const Ze=ae.$implicit;_.xp6(1),_.Oqu(Ze.id)}}function ee(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function fe(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&ie){const Ze=ae.$implicit;_.xp6(1),_.Oqu(Ze.service.name)}}function ce(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function ve(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&ie){const Ze=ae.$implicit;_.xp6(1),_.Oqu(Ze.status)}}function v(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function O(ie,ae){if(1&ie&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&ie){const Ze=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Ze.schedule,"d.M.y H:mm:ss")," ")}}function H(ie,ae){1&ie&&(_._uU(0),_.ALo(1,"translate")),2&ie&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Y(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_.YNc(1,O,3,4,"div",25),_.YNc(2,H,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&ie){const Ze=ae.$implicit,Je=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Ze.schedule)("ngIfElse",Je)}}function q(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ue(ie,ae){if(1&ie&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&ie){const Ze=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Ze.schedule,"d.M.y H:mm:ss")," ")}}function Ee(ie,ae){1&ie&&(_._uU(0),_.ALo(1,"translate")),2&ie&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function De(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_.YNc(1,ue,3,4,"div",25),_.YNc(2,Ee,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&ie){const Ze=ae.$implicit,Je=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Ze.startTime)("ngIfElse",Je)}}function Se(ie,ae){1&ie&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Ge(ie,ae){if(1&ie&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&ie){const Ze=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Ze.schedule,"d.M.y H:mm:ss")," ")}}function Ce(ie,ae){1&ie&&(_._uU(0),_.ALo(1,"translate")),2&ie&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function qe(ie,ae){if(1&ie&&(_.TgZ(0,"td",24),_.YNc(1,Ge,3,4,"div",25),_.YNc(2,Ce,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&ie){const Ze=ae.$implicit,Je=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Ze.endTime)("ngIfElse",Je)}}function Pe(ie,ae){1&ie&&_._UZ(0,"tr",28)}const we=function(ie,ae,Ze){return{redTableItem:ie,greenTableItem:ae,yellowTableItem:Ze}};function j(ie,ae){if(1&ie&&_._UZ(0,"tr",29),2&ie){const Ze=ae.$implicit;_.Q6J("ngClass",_.kEZ(1,we,"ERROR"===Ze.status||"SENDERROR"===Ze.status||"GENERROR"===Ze.status,"DONE"===Ze.status,"WARNING"===Ze.status))}}function I(ie,ae){if(1&ie&&(_.TgZ(0,"table",12),_.ynx(1,13),_.YNc(2,ne,3,3,"th",14),_.YNc(3,he,2,1,"td",15),_.BQk(),_.ynx(4,16),_.YNc(5,ee,3,3,"th",14),_.YNc(6,fe,2,1,"td",15),_.BQk(),_.ynx(7,17),_.YNc(8,ce,3,3,"th",14),_.YNc(9,ve,2,1,"td",15),_.BQk(),_.ynx(10,18),_.YNc(11,v,3,3,"th",14),_.YNc(12,Y,4,2,"td",15),_.BQk(),_.ynx(13,19),_.YNc(14,q,3,3,"th",14),_.YNc(15,De,4,2,"td",15),_.BQk(),_.ynx(16,20),_.YNc(17,Se,3,3,"th",14),_.YNc(18,qe,4,2,"td",15),_.BQk(),_.YNc(19,Pe,1,0,"tr",21),_.YNc(20,j,1,5,"tr",22),_.qZA()),2&ie){const Ze=_.oxw(2).$implicit,Je=_.oxw(2);_.Q6J("dataSource",Je.datasources[Je.propagation.indexOf(Ze)]),_.xp6(19),_.Q6J("matHeaderRowDef",Je.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Je.displayedColumns)}}function F(ie,ae){1&ie&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function ge(ie,ae){if(1&ie&&(_._UZ(0,"mat-divider"),_.YNc(1,I,21,3,"table",11),_.YNc(2,F,3,3,"div",8)),2&ie){const Ze=_.oxw().$implicit;_.xp6(1),_.Q6J("ngIf",0!==Ze.taskList.length),_.xp6(1),_.Q6J("ngIf",0===Ze.taskList.length)}}function G(ie,ae){if(1&ie&&(_.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_._UZ(3,"img",6),_.TgZ(4,"div",7),_._uU(5),_.qZA()(),_.YNc(6,Q,7,8,"mat-panel-description",8),_.qZA(),_.YNc(7,ge,3,2,"ng-template",9),_.qZA()),2&ie){const Ze=ae.$implicit,Je=_.oxw(2);_.xp6(5),_.hij(" ",Ze.resource.name," "),_.xp6(1),_.Q6J("ngIf",0!==Je.getErrorCountStates(Ze))}}function _e(ie,ae){if(1&ie&&(_.TgZ(0,"div",3)(1,"mat-accordion",4),_.YNc(2,G,8,2,"mat-expansion-panel",5),_.qZA()()),2&ie){const Ze=_.oxw();_.xp6(2),_.Q6J("ngForOf",Ze.propagation)}}let Te=(()=>{class ie{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(Ze){let Je=0;for(const ct of Ze.taskList)("ERROR"===ct.status||"GENERROR"===ct.status||"SENDERROR"===ct.status)&&Je++;return Je}getDataSource(){this.datasources=[];for(const Ze of this.propagation)this.datasources.push(new E.by(Ze.taskList))}ngOnChanges(){this.getDataSource()}}return ie.\u0275fac=function(Ze){return new(Ze||ie)},ie.\u0275cmp=_.Xpm({type:ie,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(Ze,Je){1&Ze&&(_.YNc(0,z,1,0,"mat-spinner",0),_.YNc(1,_e,3,1,"div",1)),2&Ze&&(_.Q6J("ngIf",Je.loading),_.xp6(1),_.Q6J("ngIf",!Je.loading))},dependencies:[w.mk,w.sg,w.O5,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,S.Ou,U.d,A.pp,A.ib,A.yz,A.yK,A.u4,A.HS,w.uU,N.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),ie})();function et(ie,ae){if(1&ie&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",5),_._uU(3),_.qZA()),2&ie){const Ze=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),_.xp6(3),_.Oqu(Ze.errorPropagation.length)}}function Xe(ie,ae){1&ie&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function vt(ie,ae){if(1&ie&&(_.YNc(0,Xe,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&ie){const Ze=_.oxw();_.Q6J("ngIf",!Ze.loading&&0===Ze.errorPropagation.length),_.xp6(1),_.Q6J("loading",Ze.loading)("propagation",Ze.errorPropagation)}}function rt(ie,ae){if(1&ie&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",9),_._uU(3),_.qZA()),2&ie){const Ze=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),_.xp6(3),_.Oqu(Ze.okPropagation.length)}}function ht(ie,ae){1&ie&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&ie&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function W(ie,ae){if(1&ie&&(_.YNc(0,ht,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&ie){const Ze=_.oxw();_.Q6J("ngIf",!Ze.loading&&0===Ze.okPropagation.length),_.xp6(1),_.Q6J("loading",Ze.loading)("propagation",Ze.okPropagation)}}let le=(()=>{class ie{constructor(Ze,Je){this.taskService=Ze,this.entityStorageService=Je,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(Ze=>{this.resourceStates=Ze,this.okPropagation=[],this.errorPropagation=[];for(const Je of Ze){let ct=!0;for(const ze of Je.taskList)if("ERROR"===ze.status||"GENERROR"===ze.status||"SENDERROR"===ze.status){ct=!1;break}ct?this.okPropagation.push(Je):this.errorPropagation.push(Je)}this.loading=!1},()=>this.loading=!1)}}return ie.id="VoResourcesStatesComponent",ie.\u0275fac=function(Ze){return new(Ze||ie)(_.Y36(d.Ob),_.Y36(e.fb))},ie.\u0275cmp=_.Xpm({type:ie,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(Ze,Je){2&Ze&&_.ekj("router-component",Je.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(Ze,Je){1&Ze&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Je.refreshTable()}),_.qZA(),_.TgZ(4,"mat-tab-group",2),_.NdJ("selectedIndexChange",function(ze){return Je.selectedIndex=ze}),_.TgZ(5,"mat-tab"),_.YNc(6,et,4,4,"ng-template",3),_.YNc(7,vt,2,3,"ng-template",4),_.qZA(),_.TgZ(8,"mat-tab"),_.YNc(9,rt,4,4,"ng-template",3),_.YNc(10,W,2,3,"ng-template",4),_.qZA()()),2&Ze&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),_.xp6(3),_.Q6J("selectedIndex",Je.selectedIndex))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,b.w,y.t,Te,N.X$]}),ie})()},10369:(We,pe,h)=>{"use strict";h.d(pe,{w:()=>De});var e=h(1186),d=h(35382),_=h(95502),w=h(51076),g=h(83491),b=h(32105),y=h(9244),E=h(94650),S=h(65412),U=h(89383),A=h(94364),N=h(36895),z=h(97392),Q=h(4859),ne=h(51572),he=h(10266),ee=h(44850),fe=h(98380),ce=h(96214),ve=h(157);function v(Se,Ge){1&Se&&E._UZ(0,"mat-spinner",13)}function O(Se,Ge){if(1&Se){const Ce=E.EpF();E.TgZ(0,"button",21),E.NdJ("click",function(){E.CHM(Ce);const Pe=E.oxw(2);return E.KtG(Pe.settings())}),E.TgZ(1,"i",10),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Se&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function H(Se,Ge){if(1&Se&&(E.TgZ(0,"div",14)(1,"div",15)(2,"div",16),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",16),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",17),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",18),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.qZA()(),E.TgZ(20,"div",19),E.YNc(21,O,5,3,"button",20),E.qZA()()),2&Se){const Ce=E.oxw();E.xp6(3),E.AsE(" ",E.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Ce.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",Ce.applicationForm.automaticApproval?E.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",Ce.applicationForm.automaticApprovalExtension?E.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(4),E.Q6J("ngIf",Ce.editAuth)}}function Y(Se,Ge){if(1&Se){const Ce=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){E.CHM(Ce);const Pe=E.oxw();return E.KtG(Pe.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Se&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function q(Se,Ge){if(1&Se){const Ce=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){E.CHM(Ce);const Pe=E.oxw();return E.KtG(Pe.save())}),E.TgZ(1,"i",10),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&Se){const Ce=E.oxw();E.Q6J("disabled",!Ce.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ue(Se,Ge){if(1&Se){const Ce=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM(Ce);const Pe=E.oxw();return E.KtG(Pe.copy())}),E.TgZ(1,"i",10),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Se&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function Ee(Se,Ge){1&Se&&(E.TgZ(0,"perun-web-apps-alert",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Se&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let De=(()=>{class Se{constructor(Ce,qe,Pe,we,j,I,F,ge){this.registrarManager=Ce,this.dialog=qe,this.notificator=Pe,this.translate=we,this.router=j,this.authResolver=I,this.voService=F,this.entityStorageService=ge,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(Ce=>{this.applicationForm=Ce,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(qe=>{this.applicationFormItems=qe,this.loading=!1})})}add(){let Ce=(0,y.kZ)();Ce.width="500px",Ce.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,Ce).afterClosed().subscribe(Pe=>{Pe&&(this.applicationFormItems=Object.assign([],Pe[0]),Ce=(0,y.kZ)(),Ce.width="600px",Ce.height="600px",Ce.data={voId:this.vo.id,applicationFormItem:Pe[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,Ce),this.itemsChanged=!0)})}copy(){const Ce=(0,y.kZ)();Ce.width="500px",Ce.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(_.W,Ce).afterClosed().subscribe(Pe=>{Pe&&this.updateFormItems()})}settings(){const Ce=(0,y.kZ)();Ce.width="400px",Ce.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,Ce).afterClosed().subscribe(Pe=>{Pe&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(we=>{this.notificator.showSuccess(we)}),this.applicationForm=Pe)})}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(Ce=>{this.applicationFormItems=Ce,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let Ce=0;for(const qe of this.applicationFormItems)qe.ordnum=Ce,qe.forDelete||Ce++;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(qe=>{this.notificator.showSuccess(qe)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(Ce=>Ce.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 Se.id="VoSettingsApplicationFormComponent",Se.\u0275fac=function(Ce){return new(Ce||Se)(E.Y36(b.tk),E.Y36(S.uw),E.Y36(d.V6),E.Y36(U.sK),E.Y36(A.F0),E.Y36(d.x4),E.Y36(b.YF),E.Y36(d.fb))},Se.\u0275cmp=E.Xpm({type:Se,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(Ce,qe){2&Ce&&E.ekj("router-component",qe.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(Ce,qe){1&Ce&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,v,1,0,"mat-spinner",1),E.TgZ(4,"div"),E.YNc(5,H,22,18,"div",2),E._UZ(6,"mat-divider",3),E.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),E.NdJ("refresh",function(){return qe.updateFormItems()}),E.qZA(),E.YNc(9,Y,3,3,"button",6),E.YNc(10,q,5,4,"button",7),E.YNc(11,ue,5,3,"button",8),E.TgZ(12,"button",9),E.NdJ("click",function(){return qe.preview()}),E.TgZ(13,"i",10),E._uU(14,"search"),E.qZA(),E._uU(15),E.ALo(16,"translate"),E.qZA()(),E.YNc(17,Ee,3,3,"perun-web-apps-alert",11),E.TgZ(18,"app-application-form-list",12),E.NdJ("applicationFormItemsChange",function(){return qe.changeItems()}),E.qZA()()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",qe.loading),E.xp6(2),E.Q6J("ngIf",!qe.loading),E.xp6(4),E.Q6J("ngIf",qe.editAuth),E.xp6(1),E.Q6J("ngIf",qe.editAuth),E.xp6(1),E.Q6J("ngIf",qe.editAuth),E.xp6(4),E.hij(" ",E.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",qe.editAuth),E.xp6(1),E.Q6J("applicationForm",qe.applicationForm)("applicationFormItems",qe.applicationFormItems)("loading",qe.loading)("displayedColumns",qe.displayedColumns)("refreshApplicationForm",qe.refreshApplicationForm)("theme","vo-theme"))},dependencies:[N.O5,z.Hw,Q.lW,ne.Ou,he.gM,ee.d,fe.w,ce.t,ve.b,U.X$]}),Se})()},3246:(We,pe,h)=>{"use strict";h.d(pe,{T:()=>_i});var e=h(32105),d=h(95017),_=h(10036),w=h(9244),g=h(65412),b=h(35382),y=h(24006),E=h(36895),S=h(45323),U=h(28499),A=h(94650),N=h(89383),z=h(3238),Q=h(59549),ne=h(284),he=h(97392),ee=h(4859),fe=h(56709),ce=h(84385),ve=h(51572),v=h(10266),O=h(71948),H=h(86257),Y=h(98380),q=h(74250),ue=h(99602);let Ee=(()=>{class Tt{constructor(){this.expiration="never",this.datePicker=new A.vpe,this.expirationControl=new y.p4(null)}ngOnInit(){const te=new Date;this.minDate=new Date(te.getFullYear(),te.getMonth(),te.getDate()),this.expirationControl.setValue((0,E.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return Tt.\u0275fac=function(te){return new(te||Tt)},Tt.\u0275cmp=A.Xpm({type:Tt,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(te,dt){if(1&te){const xe=A.EpF();A.TgZ(0,"mat-radio-group",0),A.NdJ("ngModelChange",function(Nt){return dt.expiration=Nt})("change",function(){return dt.emitDate()}),A.TgZ(1,"mat-radio-button",1),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),A.NdJ("click",function(){A.CHM(xe);const Nt=A.MAs(12);return A.KtG(Nt.open())}),A.TgZ(6,"mat-label"),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.TgZ(9,"input",4),A.NdJ("dateChange",function(){return dt.setExpiration()}),A.qZA(),A._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),A.qZA()()()}if(2&te){const xe=A.MAs(12);A.Q6J("ngModel",dt.expiration),A.xp6(2),A.hij(" ",A.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),A.xp6(2),A.s9C("value",dt.expirationControl.value),A.xp6(3),A.Oqu(A.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),A.xp6(2),A.Q6J("min",dt.minDate)("formControl",dt.expirationControl)("matDatepicker",xe),A.xp6(1),A.Q6J("for",xe)("disabled",!1),A.xp6(1),A.Q6J("disabled",!1)}},dependencies:[y.Fj,y.JJ,y.On,Q.KE,Q.hX,Q.R9,y.oH,ne.Nt,ue.Mq,ue.hl,ue.nW,O.VQ,O.U0,N.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Tt})();var De=h(13469),Se=h(31359);const Ge=["stepper"];function Ce(Tt,Xt){1&Tt&&(A.TgZ(0,"h1",4),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function qe(Tt,Xt){1&Tt&&A._UZ(0,"mat-spinner",5)}function Pe(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function we(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",35),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function j(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function I(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function F(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function ge(Tt,Xt){if(1&Tt&&(A.TgZ(0,"mat-option",36),A._uU(1),A.qZA()),2&Tt){const te=Xt.$implicit;A.Q6J("value",te),A.uIk("data-cy",te),A.xp6(1),A.hij(" ",te," ")}}function G(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function _e(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Te(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function et(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Xe(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div")(1,"perun-web-apps-user-search-select",37),A.NdJ("userSelected",function(xe){A.CHM(te);const ot=A.oxw(2);return A.KtG(ot.selectedSponsor=xe)}),A.qZA()()}if(2&Tt){const te=A.oxw(2);A.xp6(1),A.Q6J("disableAutoSelect",!0)("users",te.voSponsors)}}function vt(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),A.YNc(4,Pe,2,3,"ng-template",10),A.YNc(5,we,3,3,"perun-web-apps-alert",11),A.TgZ(6,"form",12)(7,"h5",13),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"mat-form-field",14),A._UZ(11,"input",15),A.ALo(12,"translate"),A.YNc(13,j,3,3,"mat-error",16),A.qZA(),A.TgZ(14,"mat-form-field"),A._UZ(15,"input",17),A.ALo(16,"translate"),A.YNc(17,I,3,3,"mat-error",16),A.qZA(),A.TgZ(18,"mat-form-field"),A._UZ(19,"input",18),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-form-field"),A._UZ(22,"input",19),A.ALo(23,"translate"),A.qZA()()(),A.TgZ(24,"mat-step",9),A.YNc(25,F,2,3,"ng-template",10),A.TgZ(26,"h5",13),A._uU(27),A.ALo(28,"translate"),A.qZA(),A.TgZ(29,"form",20)(30,"mat-form-field",21)(31,"mat-select",22),A.NdJ("valueChange",function(xe){A.CHM(te);const ot=A.oxw();return A.KtG(ot.onNamespaceChanged(xe))}),A.ALo(32,"translate"),A.YNc(33,ge,2,3,"mat-option",23),A.qZA(),A.YNc(34,G,3,3,"mat-error",16),A.qZA(),A.TgZ(35,"mat-form-field",24),A.ALo(36,"translate"),A._UZ(37,"input",25),A.ALo(38,"translate"),A.YNc(39,_e,3,3,"mat-error",16),A.qZA(),A.TgZ(40,"mat-form-field"),A._UZ(41,"input",26),A.ALo(42,"translate"),A.YNc(43,Te,3,3,"mat-error",16),A.qZA(),A.TgZ(44,"span",24),A.ALo(45,"translate"),A.TgZ(46,"mat-checkbox",27),A.NdJ("change",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.passwordResetChange())}),A._uU(47),A.ALo(48,"translate"),A.qZA()(),A._UZ(49,"perun-web-apps-password-form",28),A.qZA()(),A.TgZ(50,"mat-step"),A.YNc(51,et,2,3,"ng-template",10),A.TgZ(52,"div",29)(53,"h5",13),A._uU(54),A.ALo(55,"translate"),A.qZA(),A.TgZ(56,"div",14)(57,"h6"),A._uU(58),A.ALo(59,"translate"),A.qZA(),A.TgZ(60,"mat-radio-group",30),A.NdJ("ngModelChange",function(xe){A.CHM(te);const ot=A.oxw();return A.KtG(ot.sponsorType=xe)}),A.TgZ(61,"span",31),A.ALo(62,"translate"),A.TgZ(63,"mat-radio-button",32),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.selectedSponsor=null)}),A._uU(64),A.ALo(65,"translate"),A.qZA()(),A.TgZ(66,"span",31),A.ALo(67,"translate"),A.TgZ(68,"mat-radio-button",33),A._uU(69),A.ALo(70,"translate"),A.qZA()()(),A.YNc(71,Xe,2,2,"div",16),A.qZA(),A.TgZ(72,"h6",14),A._uU(73),A.ALo(74,"translate"),A.qZA(),A.TgZ(75,"perun-web-apps-expiration-select",34),A.NdJ("datePicker",function(xe){A.CHM(te);const ot=A.oxw();return A.KtG(ot.setExpiration(xe))}),A.qZA()()()()()}if(2&Tt){const te=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",te.userControl),A.xp6(2),A.Q6J("ngIf",te.functionalityNotSupported),A.xp6(1),A.Q6J("formGroup",te.userControl),A.xp6(2),A.hij(" ",A.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),A.xp6(3),A.s9C("placeholder",A.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),A.xp6(2),A.Q6J("ngIf",te.userControl.hasError("required","firstName")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),A.xp6(2),A.Q6J("ngIf",te.userControl.hasError("required","lastName")),A.xp6(2),A.s9C("placeholder",A.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),A.xp6(3),A.s9C("placeholder",A.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),A.xp6(2),A.Q6J("stepControl",te.namespaceControl),A.xp6(3),A.Oqu(A.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),A.xp6(2),A.Q6J("formGroup",te.namespaceControl),A.xp6(2),A.s9C("placeholder",A.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),A.xp6(2),A.Q6J("ngForOf",te.namespaceOptions),A.xp6(1),A.Q6J("ngIf",te.namespaceControl.hasError("required","namespace")),A.xp6(1),A.s9C("matTooltip",A.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),A.Q6J("matTooltipDisabled",te.namespaceControl.get("login").enabled),A.xp6(2),A.s9C("placeholder",A.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),A.xp6(2),A.Q6J("ngIf",te.namespaceControl.hasError("required","login")),A.xp6(2),A.s9C("placeholder",A.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),A.xp6(2),A.Q6J("ngIf",te.namespaceControl.hasError("required","email")||te.namespaceControl.hasError("pattern","email")),A.xp6(1),A.s9C("matTooltip",A.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),A.Q6J("matTooltipDisabled",te.namespaceControl.get("passwordReset").enabled),A.xp6(3),A.hij("",A.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),A.xp6(2),A.Q6J("formGroup",te.namespaceControl)("namespace",te.selectedNamespace)("tooltipPwdViaEmail",te.namespaceControl.get("passwordReset").value),A.xp6(5),A.Oqu(A.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),A.xp6(4),A.Oqu(A.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),A.xp6(2),A.Q6J("ngModel",te.sponsorType),A.xp6(1),A.s9C("matTooltip",A.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),A.Q6J("matTooltipDisabled",te.isSponsor),A.xp6(2),A.Q6J("disabled",!te.isSponsor),A.xp6(1),A.hij(" ",A.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),A.Q6J("matTooltipDisabled",te.isPerunAdmin),A.xp6(2),A.Q6J("disabled",!te.isPerunAdmin),A.xp6(1),A.hij(" ",A.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),A.xp6(2),A.Q6J("ngIf","other"===te.sponsorType),A.xp6(2),A.Oqu(A.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function rt(Tt,Xt){if(1&Tt&&(A.TgZ(0,"div",6)(1,"div",38)(2,"mat-icon",39),A._uU(3,"done"),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.TgZ(6,"i"),A._uU(7),A.ALo(8,"userFullName"),A.qZA(),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"div"),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"div"),A._uU(15),A.ALo(16,"translate"),A.qZA(),A.TgZ(17,"perun-web-apps-alert",40),A._uU(18),A.ALo(19,"translate"),A.qZA()()),2&Tt){const te=A.oxw();A.xp6(4),A.hij(" ",A.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),A.xp6(3),A.Oqu(A.lcZ(8,10,te.createdMember.user)),A.xp6(2),A.hij(" ",A.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),A.xp6(3),A.AsE("",A.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",te.loginThatWasSet,""),A.xp6(3),A.AsE(" ",A.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",te.namespaceControl.get("passwordCtrl").value," "),A.xp6(3),A.Oqu(A.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function ht(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div",41)(1,"button",42),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onCancel())}),A._uU(2),A.ALo(3,"translate"),A.qZA()()}2&Tt&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function W(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",47),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.stepperPrevious())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function le(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",48),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.stepperNext())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&Tt){const te=A.oxw(2);A.ekj("ml-2",void 0!==te.stepper&&0!==te.stepper.selectedIndex)("ml-auto",!(void 0!==te.stepper&&0!==te.stepper.selectedIndex)),A.Q6J("disabled",te.getStepperNextConditions()),A.xp6(1),A.hij(" ",A.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function ie(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",49),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.onConfirm())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&Tt){const te=A.oxw(2);A.Q6J("disabled",null===te.sponsorType||"other"===te.sponsorType&&null===te.selectedSponsor),A.xp6(1),A.hij(" ",A.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function ae(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div",41)(1,"button",43),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onCancel())}),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,W,3,3,"button",44),A.YNc(5,le,3,8,"button",45),A.YNc(6,ie,3,4,"button",46),A.qZA()}if(2&Tt){const te=A.oxw();A.xp6(2),A.hij(" ",A.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),A.xp6(2),A.Q6J("ngIf",void 0!==te.stepper&&0!==te.stepper.selectedIndex),A.xp6(1),A.Q6J("ngIf",void 0!==te.stepper&&te.stepper.selectedIndex!==te.stepper._steps.length-1),A.xp6(1),A.Q6J("ngIf",void 0!==te.stepper&&te.stepper.selectedIndex===te.stepper._steps.length-1)}}let Ze=(()=>{class Tt{constructor(te,dt,xe,ot,Nt,en,cn,Fn,jn,si,yr){this.dialogRef=te,this.data=dt,this.membersService=xe,this.apiRequestConfiguration=ot,this.usersService=Nt,this.store=en,this.translator=cn,this.authzService=Fn,this.guiAuthResolver=jn,this.formBuilder=si,this.cd=yr,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(te,dt,xe){for(const ot of dt)switch(ot){case"login":te.login=xe;break;case"password":te.password=xe}}onConfirm(){this.loading=!0;const te={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},dt=this.namespaceControl.get("namespace").value,xe=this.parsedRules.get(dt);"No namespace"!==dt&&(te.userData.namespace=dt),"disabled"!==xe.login&&(te.userData.login=this.namespaceControl.get("login").value),"disabled"!==xe.password&&(te.sendActivationLink=this.namespaceControl.get("passwordReset").value,te.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(te.validityTo=this.expiration),this.membersService.createSponsoredMember(te).subscribe(ot=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=ot,!!ot&&!!ot.userAttributes&&ot.userAttributes.filter(Nt=>"login-namespace"===Nt.baseFriendlyName).filter(Nt=>Nt.friendlyNameParameter===dt).filter(Nt=>null!==Nt.value).forEach(Nt=>{this.loginThatWasSet=Nt.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(te){this.selectedNamespace=te;const dt=this.parsedRules.get(te),xe=this.namespaceControl.get("login"),ot=this.namespaceControl.get("passwordCtrl"),Nt=this.namespaceControl.get("passwordAgainCtrl"),en=this.namespaceControl.get("passwordReset");"disabled"!==dt.login?(0,w.mH)(xe,"optional"===dt.login?[]:[y.kI.required]):(xe.disable(),xe.setValue("")),"disabled"!==dt.password?((0,w.mH)(ot,"optional"===dt.password?[]:[y.kI.required],[(0,U.yT)(te,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(Nt,[]),(0,w.mH)(en,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(ot.disable(),ot.setValue(""),Nt.disable(),Nt.setValue(""),en.disable(),en.setValue(!1))}passwordResetChange(){const te=this.namespaceControl.get("passwordCtrl"),dt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(te.disable(),te.setValue(""),dt.disable(),dt.setValue("")):(te.enable(),dt.enable())}setExpiration(te){this.expiration="never"===te?"never":(0,E.p6)(te,"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(S.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",y.kI.required],lastName:["",y.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",y.kI.required],login:["",[y.kI.required]],passwordCtrl:["",y.kI.required,[(0,U.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[y.kI.required,y.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(te=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(te),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const te of this.namespaceRules){this.namespaceOptions.push(te.namespaceName);const dt={login:"disabled",password:"disabled"};Tt.parseAttributes(dt,te.requiredAttributes,"required"),Tt.parseAttributes(dt,te.optionalAttributes,"optional"),this.parsedRules.set(te.namespaceName,dt)}}}return Tt.\u0275fac=function(te){return new(te||Tt)(A.Y36(g.so),A.Y36(g.WI),A.Y36(e.uq),A.Y36(b.F5),A.Y36(e.Fv),A.Y36(b.d6),A.Y36(N.sK),A.Y36(e.Ct),A.Y36(b.x4),A.Y36(y.QS),A.Y36(A.sBO))},Tt.\u0275cmp=A.Xpm({type:Tt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(te,dt){if(1&te&&A.Gf(Ge,5),2&te){let xe;A.iGM(xe=A.CRH())&&(dt.stepper=xe.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required","",3,"placeholder"],["data-cy","email-input","matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[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","","data-cy","ok-button",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(te,dt){1&te&&(A.TgZ(0,"div"),A.YNc(1,Ce,3,3,"h1",0),A.YNc(2,qe,1,0,"mat-spinner",1),A.YNc(3,vt,76,80,"div",2),A.YNc(4,rt,20,20,"div",2),A.YNc(5,ht,4,3,"div",3),A.YNc(6,ae,7,6,"div",3),A.qZA()),2&te&&(A.Tol(dt.theme),A.xp6(1),A.Q6J("ngIf",!dt.successfullyCreated),A.xp6(1),A.Q6J("ngIf",dt.loading),A.xp6(1),A.Q6J("ngIf",!dt.loading&&!dt.successfullyCreated),A.xp6(1),A.Q6J("ngIf",!dt.loading&&dt.successfullyCreated),A.xp6(1),A.Q6J("ngIf",dt.successfullyCreated),A.xp6(1),A.Q6J("ngIf",!dt.loading&&!dt.successfullyCreated))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,ne.Nt,y._Y,y.Fj,y.JJ,y.JL,y.Q7,y.sg,y.u,y.On,he.Hw,ee.lW,fe.oG,g.uh,g.xY,g.H8,ce.gD,ve.Ou,v.gM,O.VQ,O.U0,H.C0,H.VY,H.Vq,Y.w,q.S,Ee,De.G,N.X$,Se.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}"]}),Tt})();var Je=h(64080),ct=h(28255),ze=h(24179),oe=h(7434),V=h(61150);const r=["stepper"];function s(Tt,Xt){1&Tt&&A._UZ(0,"mat-spinner",4)}function f(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",29),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function a(Tt,Xt){if(1&Tt&&(A.TgZ(0,"mat-option",30),A._uU(1),A.qZA()),2&Tt){const te=Xt.$implicit;A.Q6J("value",te),A.uIk("data-cy",te),A.xp6(1),A.hij(" ",te," ")}}function n(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(Tt,Xt){1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function i(Tt,Xt){if(1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt){const te=A.oxw(3);A.xp6(1),A.AsE(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",te.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function o(Tt,Xt){if(1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt){const te=A.oxw(3);A.xp6(1),A.AsE(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",te.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(Tt,Xt){if(1&Tt&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt){const te=A.oxw(3);A.xp6(1),A.AsE(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",te.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function p(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function M(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",31),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Me(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"mat-radio-group",32),A.NdJ("ngModelChange",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.passwordReset=xe)}),A.TgZ(1,"mat-radio-button",33),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"mat-radio-button",34),A._uU(5),A.ALo(6,"translate"),A.qZA()()}if(2&Tt){const te=A.oxw(3);A.Q6J("ngModel",te.passwordReset),A.xp6(2),A.hij(" ",A.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),A.xp6(3),A.hij(" ",A.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function it(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Dt(Tt,Xt){1&Tt&&(A._uU(0),A.ALo(1,"translate")),2&Tt&&A.Oqu(A.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Zt(Tt,Xt){1&Tt&&(A.TgZ(0,"div")(1,"perun-web-apps-alert",35),A._uU(2),A.ALo(3,"translate"),A.qZA()()),2&Tt&&(A.xp6(2),A.Oqu(A.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Et(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div")(1,"h5",36),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-create-group-form",37),A.NdJ("asSubgroupChanged",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.asSubGroup=xe)})("nameChanged",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.name=xe)})("descriptionChanged",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.description=xe)})("parentGroupChanged",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.parentGroup=xe)}),A.qZA()()}if(2&Tt){const te=A.oxw(3);A.xp6(2),A.hij(" ",A.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),A.xp6(2),A.Q6J("voGroups",te.allVoGroups)}}const pt=function(){return["select","id","name","description"]};function je(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div")(1,"h5",36),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-immediate-filter",38),A.NdJ("filter",function(xe){A.CHM(te);const ot=A.oxw(3);return A.KtG(ot.applyFilter(xe))}),A.qZA(),A._UZ(5,"perun-web-apps-groups-list",39),A.qZA()}if(2&Tt){const te=A.oxw(3);A.xp6(2),A.hij(" ",A.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),A.xp6(2),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),A.xp6(1),A.Q6J("groups",te.assignableGroups)("selection",te.selection)("disableRouting",!0)("displayedColumns",A.DdM(10,pt))("filter",te.filterValue)("tableId",te.tableId)}}function Oe(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),A.YNc(3,f,2,3,"ng-template",11),A.YNc(4,l,3,3,"perun-web-apps-alert",12),A.TgZ(5,"h5",13),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),A.ALo(11,"translate"),A.YNc(12,a,2,3,"mat-option",16),A.qZA(),A.YNc(13,n,3,3,"mat-error",7),A.qZA(),A.TgZ(14,"div"),A._uU(15),A.ALo(16,"translate"),A.qZA(),A.TgZ(17,"div",17),A._uU(18),A.qZA(),A.TgZ(19,"mat-form-field",18)(20,"mat-label"),A._uU(21),A.ALo(22,"translate"),A.qZA(),A.TgZ(23,"textarea",19),A._uU(24," "),A.qZA(),A.YNc(25,t,3,3,"mat-error",7),A.YNc(26,i,3,4,"mat-error",7),A.YNc(27,o,3,4,"mat-error",7),A.YNc(28,c,3,4,"mat-error",7),A.qZA()()(),A.TgZ(29,"mat-step"),A.YNc(30,p,2,3,"ng-template",11),A.TgZ(31,"div",13)(32,"h5",20),A._uU(33),A.ALo(34,"translate"),A.qZA(),A.YNc(35,M,3,3,"perun-web-apps-alert",21),A.YNc(36,Me,7,7,"mat-radio-group",22),A.qZA()(),A.TgZ(37,"mat-step"),A.YNc(38,it,2,3,"ng-template",11),A.TgZ(39,"div",13)(40,"h5",20),A._uU(41),A.ALo(42,"translate"),A.qZA(),A.TgZ(43,"perun-web-apps-expiration-select",23),A.NdJ("datePicker",function(xe){A.CHM(te);const ot=A.oxw(2);return A.KtG(ot.setExpiration(xe))}),A.qZA()()(),A.TgZ(44,"mat-step"),A.YNc(45,Dt,2,3,"ng-template",11),A.TgZ(46,"div",13)(47,"h5",20),A._uU(48),A.ALo(49,"translate"),A.qZA(),A.TgZ(50,"mat-radio-group",24),A.NdJ("change",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.groupAssigmentChanged())})("ngModelChange",function(xe){A.CHM(te);const ot=A.oxw(2);return A.KtG(ot.groupAssignment=xe)}),A.TgZ(51,"mat-radio-button",25),A._uU(52),A.ALo(53,"translate"),A.qZA(),A.TgZ(54,"span",26),A.ALo(55,"translate"),A.TgZ(56,"mat-radio-button",27),A._uU(57),A.ALo(58,"translate"),A.qZA()(),A.TgZ(59,"span",26),A.ALo(60,"translate"),A.TgZ(61,"mat-radio-button",28),A._uU(62),A.ALo(63,"translate"),A.qZA()()()(),A.YNc(64,Zt,4,3,"div",7),A.YNc(65,Et,5,4,"div",7),A.YNc(66,je,6,11,"div",7),A.qZA()()}if(2&Tt){const te=A.oxw(2);A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",te.usersInfoFormGroup),A.xp6(2),A.Q6J("ngIf",te.functionalityNotSupported),A.xp6(2),A.Oqu(A.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),A.xp6(2),A.Q6J("formGroup",te.usersInfoFormGroup),A.xp6(2),A.s9C("placeholder",A.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),A.xp6(2),A.Q6J("ngForOf",te.namespaceOptions),A.xp6(1),A.Q6J("ngIf",te.usersInfoFormGroup.hasError("required","namespace")),A.xp6(2),A.Oqu(A.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),A.xp6(3),A.hij(" ",te.getSelectedNamespaceRules().csvGenHeaderDescription," "),A.xp6(3),A.Oqu(A.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),A.xp6(2),A.s9C("placeholder",te.getSelectedNamespaceRules().csvGenPlaceholder),A.xp6(2),A.Q6J("ngIf",te.usersInfoFormGroup.hasError("required","sponsoredMembers")),A.xp6(1),A.Q6J("ngIf",te.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),A.xp6(1),A.Q6J("ngIf",te.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),A.xp6(1),A.Q6J("ngIf",te.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),A.xp6(5),A.hij(" ",A.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),A.xp6(2),A.Q6J("ngIf","No namespace"===te.getSelectedNamespaceRules().namespaceName),A.xp6(1),A.Q6J("ngIf","No namespace"!==te.getSelectedNamespaceRules().namespaceName),A.xp6(5),A.Oqu(A.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),A.xp6(2),A.Q6J("expiration",te.expiration),A.xp6(5),A.Oqu(A.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),A.xp6(2),A.Q6J("ngModel",te.groupAssignment),A.xp6(2),A.hij(" ",A.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),A.Q6J("matTooltipDisabled",!te.manualMemberAddingBlocked&&te.createGroupAuth),A.xp6(2),A.Q6J("disabled",te.manualMemberAddingBlocked||!te.createGroupAuth),A.xp6(1),A.hij(" ",A.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),A.Q6J("matTooltipDisabled",!te.manualMemberAddingBlocked&&0!==te.assignableGroups.length),A.xp6(2),A.Q6J("disabled",te.manualMemberAddingBlocked||0===te.assignableGroups.length),A.xp6(1),A.hij(" ",A.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),A.xp6(2),A.Q6J("ngIf","none"===te.groupAssignment),A.xp6(1),A.Q6J("ngIf","new"===te.groupAssignment),A.xp6(1),A.Q6J("ngIf","existing"===te.groupAssignment)}}function Qe(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",41),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.Q6J("alert_type","success"),A.xp6(1),A.hij(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function ye(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",41),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.Q6J("alert_type","warn"),A.xp6(1),A.hij(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Ie(Tt,Xt){if(1&Tt&&(A.TgZ(0,"div"),A.YNc(1,Qe,3,4,"perun-web-apps-alert",40),A.YNc(2,ye,3,4,"perun-web-apps-alert",40),A.qZA()),2&Tt){const te=A.oxw(2);A.xp6(1),A.Q6J("ngIf",!1===te.finishedWithErrors),A.xp6(1),A.Q6J("ngIf",te.finishedWithErrors)}}function $(Tt,Xt){if(1&Tt&&(A.TgZ(0,"div",5),A.YNc(1,Oe,67,59,"mat-stepper",6),A.YNc(2,Ie,3,2,"div",7),A.qZA()),2&Tt){const te=A.oxw();A.xp6(1),A.Q6J("ngIf","user-input"===te.state),A.xp6(1),A.Q6J("ngIf","results"===te.state)}}function de(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",47),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.stepperPrevious())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function Ve(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",48),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.stepperNext())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&Tt){const te=A.oxw(2);A.ekj("ml-2",void 0!==te.stepper&&0!==te.stepper.selectedIndex)("ml-auto",!(void 0!==te.stepper&&0!==te.stepper.selectedIndex)),A.Q6J("disabled",te.getStepperNextConditions()),A.xp6(1),A.hij(" ",A.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function $e(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",49),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.onSubmit())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&Tt){const te=A.oxw(2);A.Q6J("disabled",null===te.groupAssignment||"existing"===te.groupAssignment&&0===te.selection.selected.length||"new"===te.groupAssignment&&(0===te.name.length||0===te.description.length)||!0===te.asSubGroup&&null===te.parentGroup),A.xp6(1),A.hij(" ",A.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function nt(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div",42)(1,"button",43),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onCancel())}),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,de,3,3,"button",44),A.YNc(5,Ve,3,8,"button",45),A.YNc(6,$e,3,4,"button",46),A.qZA()}if(2&Tt){const te=A.oxw();A.xp6(2),A.hij(" ",A.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),A.xp6(2),A.Q6J("ngIf",void 0!==te.stepper&&0!==te.stepper.selectedIndex),A.xp6(1),A.Q6J("ngIf",void 0!==te.stepper&&te.stepper.selectedIndex!==te.stepper._steps.length-1),A.xp6(1),A.Q6J("ngIf",void 0!==te.stepper&&te.stepper.selectedIndex===te.stepper._steps.length-1)}}function Le(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"div",42)(1,"button",50),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onClose())}),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"button",51),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"mat-menu",null,52)(9,"button",53),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.generatePdf())}),A._uU(10),A.ALo(11,"translate"),A.qZA(),A.TgZ(12,"button",53),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.downloadCsv())}),A._uU(13),A.ALo(14,"translate"),A.qZA()()()}if(2&Tt){const te=A.MAs(8);A.xp6(2),A.hij(" ",A.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),A.xp6(2),A.Q6J("matMenuTriggerFor",te),A.xp6(1),A.hij(" ",A.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),A.xp6(5),A.hij(" ",A.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),A.xp6(3),A.hij(" ",A.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let st=(()=>{class Tt{constructor(te,dt,xe,ot,Nt,en,cn,Fn,jn,si,yr,qi){this.dialogRef=te,this.data=dt,this.store=xe,this.membersService=ot,this.notificator=Nt,this.translate=en,this.guiAuthResolver=cn,this.groupsService=Fn,this.attributesService=jn,this.formBuilder=si,this.sponsoredMembersPDFService=yr,this.cd=qi,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 d.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=[Je.r.GROUP_SYNC_ENABLED,Je.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(te){return te.forEach(dt=>{if("OK"!==dt.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:["",y.kI.required],sponsoredMembers:["",[y.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(te=>{this.manualMemberAddingBlocked=(0,w.jh)(te,Je.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(dt=>{this.allVoGroups=dt.filter(xe=>"members"!==xe.name),this.assignableGroups=this.filterAssignableGroups(dt),this.membersService.getAllNamespacesRules().subscribe(xe=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(xe),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(te){this.expiration="never"===te?"never":(0,E.p6)(te,"yyyy-MM-dd","en-GB")}applyFilter(te){this.filterValue=te}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(te=>{this.groupIds.push(te.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(te=>{this.groupIds.push(te.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(te=>te.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(te=>te.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(te){const dt=[];for(const xe of te)!(0,w.bx)(xe)&&!(0,w.jh)(xe.attributes,Je.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[xe])&&dt.push(xe);return dt}createOutputObjects(te){let dt="",xe="",ot="",Nt="";const en=[];return te.forEach(cn=>{dt=cn.name.replace(";"," ").split(";")[0],xe=cn.status,ot=cn.login?cn.login:ot,Nt=cn.password?cn.password:Nt;const Fn={name:dt,status:xe,login:ot,password:Nt};cn.note&&(Fn.note=cn.note),en.push(Fn)}),en}onGenerate(){this.loading=!0;const te=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),dt=this.getSelectedNamespaceRules().csvGenHeader,xe=[];for(const Nt of te){const en=this.parseMemberLine(Nt);if("format"===en||"email"===en)return void(this.loading=!1);""!==en&&xe.push(en)}const ot={data:xe,header:dt,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,E.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(Nt=>{this.state="results",this.finishedWithErrors=Tt.didSomeGenerationFailed(Nt),this.loading=!1,this.resultData=Nt},()=>this.loading=!1)}parseMemberLine(te){const dt=te.trim();if(""===dt)return"";const xe=dt.split(";"),ot=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(xe.length!==ot.length)return"format";if("mail"===ot[2].slice(ot[2].length-4).toLowerCase()&&!xe[2].trim().match(w.B2))return"email";if("login"===ot[3]&&""===xe[3].trim())return"login";let Nt="";for(const en of xe)Nt+=en.trim()+";";return Nt.slice(0,-1)}userInputValidator(){return te=>{const dt=te.value.split("\n");for(const xe of dt){const ot=this.parseMemberLine(xe);if("format"===ot)return{invalidFormat:{value:xe}};if("email"===ot)return{invalidEmail:{value:xe}};if("login"===ot)return{invalidLogin:{value:xe}}}return null}}}return Tt.\u0275fac=function(te){return new(te||Tt)(A.Y36(g.so),A.Y36(g.WI),A.Y36(b.d6),A.Y36(e.uq),A.Y36(b.V6),A.Y36(N.sK),A.Y36(b.x4),A.Y36(e.ff),A.Y36(e.H8),A.Y36(y.QS),A.Y36(b.HV),A.Y36(A.sBO))},Tt.\u0275cmp=A.Xpm({type:Tt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(te,dt){if(1&te&&A.Gf(r,5),2&te){let xe;A.iGM(xe=A.CRH())&&(dt.stepper=xe.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","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"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(te,dt){1&te&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,s,1,0,"mat-spinner",1),A.YNc(5,$,3,2,"div",2),A.YNc(6,nt,7,6,"div",3),A.YNc(7,Le,15,13,"div",3),A.qZA()),2&te&&(A.Tol(dt.theme),A.xp6(2),A.Oqu(A.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),A.xp6(2),A.Q6J("ngIf",dt.loading),A.xp6(1),A.Q6J("ngIf",!dt.loading),A.xp6(1),A.Q6J("ngIf",!dt.loading&&void 0!==dt.stepper&&"results"!==dt.state),A.xp6(1),A.Q6J("ngIf","results"===dt.state))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,Q.hX,ne.Nt,y._Y,y.Fj,y.JJ,y.JL,y.Q7,y.sg,y.u,y.On,ee.lW,g.uh,g.xY,g.H8,ce.gD,ve.Ou,v.gM,O.VQ,O.U0,H.C0,H.VY,H.Vq,ct.VK,ct.OP,ct.p6,Y.w,ze.W,oe.L,Ee,V.r,N.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Tt})();var Pt=h(38383);function Vt(Tt,Xt){1&Tt&&A._UZ(0,"mat-spinner",12)}const rn=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Jt(Tt,Xt){if(1&Tt&&A._UZ(0,"perun-web-apps-members-list",13),2&Tt){const te=A.oxw();A.Q6J("disableRouting",!0)("hidden",te.loading)("disableStatusChange",!0)("members",te.members)("selection",te.selection)("displayedColumns",A.DdM(7,rn))("tableId",te.tableId)}}function nn(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",14),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let un=(()=>{class Tt{constructor(te,dt,xe,ot,Nt,en){this.dialogRef=te,this.data=dt,this.store=xe,this.membersService=ot,this.notificator=Nt,this.translate=en,this.loading=!1,this.tableId=_.US,this.expiration="never",this.searchCtrl=new y.p4("",[y.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new d.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(te){if(this.loading=!0,0===te.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const dt=te.pop();dt.sponsored?this.membersService.sponsorMember(dt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(te)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(dt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(te)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const te=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(te)}setExpiration(te){this.expiration="never"===te?"never":(0,E.p6)(te,"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,[Je.r.MEMBER_DEF_EXPIRATION,Je.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(dt=>{this.members=dt,this.loading=!1},()=>this.loading=!1))}}return Tt.\u0275fac=function(te){return new(te||Tt)(A.Y36(g.so),A.Y36(g.WI),A.Y36(b.d6),A.Y36(e.uq),A.Y36(b.V6),A.Y36(N.sK))},Tt.\u0275cmp=A.Xpm({type:Tt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["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"],["data-cy","sponsor-member-button","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(te,dt){1&te&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label")(7,"input",3),A.NdJ("keyup.enter",function(){return dt.onSearchByString()}),A.ALo(8,"translate"),A.qZA()(),A.TgZ(9,"mat-error"),A._uU(10),A.ALo(11,"translate"),A.qZA()(),A.TgZ(12,"button",4),A.NdJ("click",function(){return dt.onSearchByString()}),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.YNc(15,Vt,1,0,"mat-spinner",5),A.YNc(16,Jt,1,8,"perun-web-apps-members-list",6),A.YNc(17,nn,3,3,"perun-web-apps-alert",7),A.TgZ(18,"div"),A._UZ(19,"br"),A.TgZ(20,"h6"),A._uU(21),A.ALo(22,"translate"),A.qZA(),A.TgZ(23,"perun-web-apps-expiration-select",8),A.NdJ("datePicker",function(ot){return dt.setExpiration(ot)}),A.qZA()()(),A.TgZ(24,"div",9)(25,"button",10),A.NdJ("click",function(){return dt.onCancel()}),A._uU(26),A.ALo(27,"translate"),A.qZA(),A.TgZ(28,"button",11),A.NdJ("click",function(){return dt.onSubmit()}),A._uU(29),A.ALo(30,"translate"),A.qZA()()()),2&te&&(A.Tol(dt.theme),A.xp6(2),A.Oqu(A.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),A.xp6(5),A.s9C("placeholder",A.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),A.Q6J("formControl",dt.searchCtrl),A.xp6(3),A.hij(" ",A.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),A.xp6(2),A.Q6J("disabled",dt.loading),A.xp6(1),A.hij(" ",A.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),A.xp6(2),A.Q6J("ngIf",dt.loading),A.xp6(1),A.Q6J("ngIf",dt.firstSearchDone),A.xp6(1),A.Q6J("ngIf",!dt.firstSearchDone),A.xp6(4),A.Oqu(A.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),A.xp6(5),A.hij(" ",A.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),A.xp6(2),A.Q6J("disabled",dt.loading||0===dt.selection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[E.O5,Q.TO,Q.KE,ne.Nt,y.Fj,y.JJ,y.oH,ee.lW,g.uh,g.xY,g.H8,ve.Ou,Y.w,Pt.O,Ee,N.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Tt})();var Bt=h(96308),It=h(30671),Ct=h(19352),kt=h(58964),Yt=h(94364),pn=h(50301),vn=h(18750),fn=h(20919),Wn=h(5865),_t=h(9185);function Ht(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"th",20)(1,"mat-checkbox",21),A.NdJ("change",function(xe){A.CHM(te);const ot=A.oxw(2);return A.KtG(xe?ot.masterToggle():null)}),A.qZA()()}if(2&Tt){const te=A.oxw().ngIf,dt=A.oxw();A.xp6(1),A.Q6J("aria-label",dt.checkboxLabel())("checked",dt.selection.hasValue()&&te.all)("indeterminate",dt.selection.hasValue()&&!te.all)}}function at(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"td",22)(1,"mat-checkbox",23),A.NdJ("change",function(xe){const Nt=A.CHM(te).$implicit,en=A.oxw(2);return A.KtG(xe?en.selection.toggle(Nt):null)})("click",function(xe){return xe.stopPropagation()}),A.qZA()()}if(2&Tt){const te=Xt.$implicit,dt=A.oxw(2);A.xp6(1),A.Q6J("aria-label",dt.checkboxLabel(te))("checked",dt.selection.isSelected(te))}}function Ke(Tt,Xt){1&Tt&&(A.ynx(0,17),A.YNc(1,Ht,2,3,"th",18),A.YNc(2,at,2,2,"td",19),A.BQk())}function bt(Tt,Xt){1&Tt&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Z(Tt,Xt){if(1&Tt&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.hij(" ",te.member.id," ")}}function Fe(Tt,Xt){1&Tt&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function At(Tt,Xt){if(1&Tt&&(A.TgZ(0,"td",26),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,te.member.user)," ")}}function Mt(Tt,Xt){1&Tt&&(A.TgZ(0,"th",27),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function $t(Tt,Xt){if(1&Tt&&(A.TgZ(0,"td",26),A._uU(1),A.ALo(2,"memberEmail"),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,te.member))}}function An(Tt,Xt){1&Tt&&(A.TgZ(0,"th",27),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Vn(Tt,Xt){if(1&Tt&&(A.TgZ(0,"td",26),A._uU(1),A.ALo(2,"memberLogins"),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,te.member)," ")}}function Pn(Tt,Xt){1&Tt&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function $n(Tt,Xt){if(1&Tt&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"userFullName"),A._UZ(3,"br"),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,te.user),"")}}function ai(Tt,Xt){if(1&Tt&&(A.TgZ(0,"td",26),A.YNc(1,$n,4,3,"span",28),A.qZA()),2&Tt){const te=Xt.$implicit;A.xp6(1),A.Q6J("ngForOf",te.sponsors)}}function oi(Tt,Xt){1&Tt&&A._UZ(0,"th",24)}function Gn(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"span",31),A.ALo(1,"translate"),A.TgZ(2,"button",32),A.NdJ("mouseenter",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.disableRouting=!0)})("mouseleave",function(){A.CHM(te);const xe=A.oxw(2);return A.KtG(xe.disableRouting=xe.routingStrategy)})("click",function(){A.CHM(te);const xe=A.oxw().$implicit,ot=A.oxw();return A.KtG(ot.resetPassword(xe))}),A.TgZ(3,"mat-icon"),A._uU(4,"vpn_key"),A.qZA()()()}if(2&Tt){const te=A.oxw().$implicit,dt=A.oxw();A.Q6J("matTooltipPosition","above")("matTooltip",A.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),A.xp6(2),A.Q2q("data-cy","",te.member.user.firstName,"-reset-passwd-button"),A.Q6J("disabled",dt.loading)}}function In(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"td",26)(1,"button",29),A.NdJ("click",function(){const ot=A.CHM(te).$implicit,Nt=A.oxw();return A.KtG(Nt.showSponsors(ot))})("mouseenter",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.disableRouting=!0)})("mouseleave",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.disableRouting=xe.routingStrategy)}),A.TgZ(2,"mat-icon"),A._uU(3,"edit"),A.qZA()(),A.YNc(4,Gn,5,6,"span",30),A.qZA()}if(2&Tt){const te=Xt.$implicit,dt=A.oxw();A.xp6(1),A.Q2q("data-cy","",te.member.user.firstName,"-edit-sponsors-button"),A.xp6(3),A.Q6J("ngIf",dt.passwdResetAuth(te))}}function zi(Tt,Xt){1&Tt&&A._UZ(0,"tr",33)}const kn=function(Tt,Xt){return["/organizations",Tt,"members",Xt]};function Zn(Tt,Xt){if(1&Tt&&A._UZ(0,"tr",34),2&Tt){const te=Xt.$implicit,dt=A.oxw();A.ekj("cursor-pointer",!dt.disableRouting)("disable-outline",dt.disableRouting),A.Q2q("data-cy","",te.member.user.firstName,"-name"),A.Q6J("perunWebAppsMiddleClickRouterLink",dt.disableRouting?null:A.WLB(7,kn,te.member.voId,te.member.id))("routerLink",dt.disableRouting?null:A.WLB(10,kn,te.member.voId,te.member.id))}}function Ni(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",35),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ki(Tt,Xt){1&Tt&&(A.TgZ(0,"perun-web-apps-alert",35),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const Ri=function(Tt){return{all:Tt}};let fi=(()=>{class Tt{constructor(te,dt,xe,ot,Nt){this.dialog=te,this.authResolver=dt,this.storeService=xe,this.attributesManager=ot,this.tableCheckbox=Nt,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new A.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(te){this.sort=te}static getSortDataForColumn(te,dt){switch(dt){case"id":return te.member.id.toString();case"name":return te.member.user?te.member.user.lastName?te.member.user.lastName:te.member.user.firstName??"":"";case"sponsors":return te.sponsors.length.toString();default:return""}}static getDataForColumn(te,dt){switch(dt){case"id":return te.member.id.toString();case"name":return te.member.user?(0,w.bD)(te.member.user):"";case"sponsors":return te.sponsors.map(xe=>(0,w.bD)(xe.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(te=>"id"!==te)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(te){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Tt.getDataForColumn),te)}exportDisplayedData(te){const dt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=dt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(dt,xe),this.displayedColumns,Tt.getDataForColumn),te)}setDataSource(){this.dataSource||(this.dataSource=new It.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(te,dt)=>(0,w.Sd)(te,dt,this.displayedColumns,Tt.getDataForColumn),this.dataSource.sortData=(te,dt)=>(0,w.pR)(te,dt,Tt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(te){const dt=(0,w.kZ)();dt.width="650px",dt.data={sponsors:te.sponsors,member:te.member,theme:"vo-theme"},this.dialog.open(Ct.H,dt).afterClosed().subscribe(ot=>{ot&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(te){return te?`${this.selection.isSelected(te)?"deselect":"select"} row ${te.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(te){this.loading=!0;const dt=this.storeService.getProperty("password_namespace_attributes").map(xe=>{const ot=xe.split(":");return ot[ot.length-1]});this.attributesManager.getLogins(te.member.userId).subscribe(xe=>{const ot=xe.filter(cn=>dt.includes(cn.friendlyNameParameter)),Nt=(0,w.kZ)();Nt.width="400px",Nt.data={userId:te.member.userId,memberId:te.member.id,logins:ot},this.dialog.open(kt.m,Nt).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(te){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:te.member.voId,beanName:"Vo"},te.member])}}return Tt.\u0275fac=function(te){return new(te||Tt)(A.Y36(g.uw),A.Y36(b.x4),A.Y36(b.d6),A.Y36(e.H8),A.Y36(b.UA))},Tt.\u0275cmp=A.Xpm({type:Tt,selectors:[["app-sponsored-members-list"]],viewQuery:function(te,dt){if(1&te&&(A.Gf(w.l9,7),A.Gf(Bt.YE,7)),2&te){let xe;A.iGM(xe=A.CRH())&&(dt.child=xe.first),A.iGM(xe=A.CRH())&&(dt.matSort=xe.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[A.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(te,dt){1&te&&(A.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportDisplayedData",function(ot){return dt.exportDisplayedData(ot)})("exportAllData",function(ot){return dt.exportAllData(ot)}),A.TgZ(2,"table",2),A.YNc(3,Ke,3,0,"ng-container",3),A.ALo(4,"isAllSelected"),A.ynx(5,4),A.YNc(6,bt,3,3,"th",5),A.YNc(7,Z,2,1,"td",6),A.BQk(),A.ynx(8,7),A.YNc(9,Fe,3,3,"th",5),A.YNc(10,At,3,3,"td",8),A.BQk(),A.ynx(11,9),A.YNc(12,Mt,3,3,"th",10),A.YNc(13,$t,3,3,"td",8),A.BQk(),A.ynx(14,11),A.YNc(15,An,3,3,"th",10),A.YNc(16,Vn,3,3,"td",8),A.BQk(),A.ynx(17,12),A.YNc(18,Pn,3,3,"th",5),A.YNc(19,ai,2,1,"td",8),A.BQk(),A.ynx(20,13),A.YNc(21,oi,1,0,"th",5),A.YNc(22,In,5,2,"td",8),A.BQk(),A.YNc(23,zi,1,0,"tr",14),A.YNc(24,Zn,1,13,"tr",15),A.qZA()()(),A.YNc(25,Ni,3,3,"perun-web-apps-alert",16),A.YNc(26,ki,3,3,"perun-web-apps-alert",16)),2&te&&(A.Q6J("hidden",0===dt.dataSource.filteredData.length||0===dt.sponsoredMembers.length),A.xp6(1),A.Q6J("pageSizeOptions",dt.pageSizeOptions)("dataLength",dt.dataSource.filteredData.length)("tableId",dt.tableId),A.xp6(1),A.Q6J("dataSource",dt.dataSource),A.xp6(1),A.Q6J("ngIf",A.VKq(13,Ri,A.xi3(4,10,dt.dataSource,dt.selection.selected.length))),A.xp6(20),A.Q6J("matHeaderRowDef",dt.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",dt.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===dt.dataSource.filteredData.length&&0!==dt.sponsoredMembers.length),A.xp6(1),A.Q6J("ngIf",0===dt.sponsoredMembers.length))},dependencies:[E.sg,E.O5,Yt.rH,he.Hw,ee.lW,Bt.YE,Bt.nU,It.BZ,It.fO,It.as,It.w1,It.Dz,It.nj,It.ge,It.ev,It.XQ,It.Gk,fe.oG,v.gM,Y.w,pn.YH,vn.l,N.X$,Se.d,fn.D,Wn.p,_t.I],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Tt})();var hi=h(96214);function Rr(Tt,Xt){if(1&Tt&&(A.TgZ(0,"button",11),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Tt){const te=A.oxw(),dt=A.MAs(9);A.Q6J("disabled",te.findSponsorsAuth&&0===te.voSponsors.length)("matMenuTriggerFor",dt),A.xp6(1),A.hij(" ",A.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function ir(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",12),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onCreate())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function gr(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",13),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onGenerate())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function rr(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.onSponsorExistingMember())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Tt&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ar(Tt,Xt){1&Tt&&A._UZ(0,"mat-spinner",15)}function la(Tt,Xt){if(1&Tt){const te=A.EpF();A.TgZ(0,"app-sponsored-members-list",16),A.NdJ("refreshTable",function(){A.CHM(te);const xe=A.oxw();return A.KtG(xe.refresh())}),A.qZA()}if(2&Tt){const te=A.oxw();A.Q6J("disableRouting",!te.routeAuth)("selection",te.selection)("filterValue",te.searchString)("sponsoredMembers",te.members)("tableId",te.tableId)}}let _i=(()=>{class Tt{constructor(te,dt,xe,ot,Nt,en){this.membersManager=te,this.dialog=dt,this.authResolver=xe,this.storeService=ot,this.authzResolver=Nt,this.entityStorageService=en,this.members=[],this.voSponsors=[],this.selection=new d.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=_.Bf,this.attrNames=[Je.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 te=["SPONSOR"],dt=new Map;this.authResolver.setRolesAuthorization(te,this.vo,dt),this.findSponsorsAuth=dt.get(te[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(S.u.SPONSOR,this.vo.id,"Vo",[Je.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 te=(0,w.kZ)();te.width="620px",te.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(Ze,te).afterClosed().subscribe(xe=>{xe&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(ot=>{this.storeService.setPerunPrincipal(ot),this.refresh()}))})}onGenerate(){const te=(0,w.kZ)();te.width="750px",te.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(st,te).afterClosed().subscribe(xe=>{xe&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(ot=>{this.storeService.setPerunPrincipal(ot),this.refresh()}))})}onSponsorExistingMember(){const te=(0,w.kZ)();te.width="650px",te.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(un,te).afterClosed().subscribe(xe=>{xe&&(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(te=>{this.selection.clear(),this.members=te,this.setAuthRights(),this.loading=!1})}applyFilter(te){this.searchString=te}}return Tt.id="VoSponsoredMembersComponent",Tt.\u0275fac=function(te){return new(te||Tt)(A.Y36(e.uq),A.Y36(g.uw),A.Y36(b.x4),A.Y36(b.d6),A.Y36(e.Ct),A.Y36(b.fb))},Tt.\u0275cmp=A.Xpm({type:Tt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(te,dt){2&te&&A.ekj("router-component",dt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(te,dt){1&te&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return dt.refresh()}),A.qZA(),A.TgZ(5,"span",2),A.ALo(6,"translate"),A.YNc(7,Rr,3,5,"button",3),A.qZA(),A.TgZ(8,"mat-menu",null,4),A.YNc(10,ir,3,3,"button",5),A.YNc(11,gr,3,3,"button",6),A.qZA(),A.YNc(12,rr,3,3,"button",7),A.TgZ(13,"perun-web-apps-immediate-filter",8),A.NdJ("filter",function(ot){return dt.applyFilter(ot)}),A.qZA(),A.YNc(14,ar,1,0,"mat-spinner",9),A.YNc(15,la,1,5,"app-sponsored-members-list",10),A.qZA()),2&te&&(A.xp6(2),A.Oqu(A.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),A.xp6(3),A.s9C("matTooltip",A.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),A.Q6J("matTooltipDisabled",!(dt.findSponsorsAuth&&0===dt.voSponsors.length)),A.xp6(2),A.Q6J("ngIf",dt.createAuth||dt.generateAuth),A.xp6(3),A.Q6J("ngIf",dt.createAuth),A.xp6(1),A.Q6J("ngIf",dt.generateAuth),A.xp6(1),A.Q6J("ngIf",dt.setSponsorshipAuth),A.xp6(1),A.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),A.xp6(1),A.Q6J("ngIf",dt.loading),A.xp6(1),A.Q6J("ngIf",!dt.loading))},dependencies:[E.O5,ee.lW,ve.Ou,v.gM,ct.VK,ct.OP,ct.p6,fi,hi.t,oe.L,N.X$]}),Tt})()},25309:(We,pe,h)=>{"use strict";h.d(pe,{Y:()=>qe});var e=h(32105),d=h(9244),_=h(35382),w=h(11717),g=h(95017),b=h(65412),y=h(24006),E=h(94650),S=h(89383),U=h(94364),A=h(36895),N=h(59549),z=h(284),Q=h(4859),ne=h(51572),he=h(10266);function ee(Pe,we){1&Pe&&E._UZ(0,"mat-spinner",3)}function fe(Pe,we){if(1&Pe){const j=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),E._UZ(3,"input",5),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",6),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA()()(),E.TgZ(14,"div",7)(15,"button",8),E.NdJ("click",function(){E.CHM(j);const F=E.oxw();return E.KtG(F.onCancel())}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"div",9),E.ALo(19,"translate"),E.TgZ(20,"button",10),E.NdJ("click",function(){E.CHM(j);const F=E.oxw();return E.KtG(F.onSubmit())}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()}if(2&Pe){const j=E.oxw();E.xp6(3),E.s9C("placeholder",E.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),E.Q6J("formControl",j.fullNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),E.Q6J("formControl",j.shortNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),E.xp6(4),E.hij(" ",E.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),E.Q6J("matTooltipDisabled",j.shortNameCtrl.valid&&j.fullNameCtrl.valid),E.xp6(2),E.Q6J("disabled",j.shortNameCtrl.invalid||j.fullNameCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let ce=(()=>{class Pe{constructor(j,I,F,ge,G,_e){this.dialogRef=j,this.data=I,this.notificator=F,this.voService=ge,this.translate=G,this.router=_e,G.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Te=>this.successMessage=Te)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new y.p4(null,[y.kI.required,y.kI.pattern("^[\\w.-]+$"),y.kI.maxLength(33)]),this.fullNameCtrl=new y.p4(null,[y.kI.required,y.kI.pattern(".*[\\S]+.*"),y.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(j=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",j.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return Pe.\u0275fac=function(j){return new(j||Pe)(E.Y36(b.so),E.Y36(b.WI),E.Y36(_.V6),E.Y36(e.YF),E.Y36(S.sK),E.Y36(U.F0))},Pe.\u0275cmp=E.Xpm({type:Pe,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(j,I){1&j&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ee,1,0,"mat-spinner",1),E.YNc(5,fe,23,25,"div",2),E.qZA()),2&j&&(E.Tol(I.theme),E.xp6(2),E.Oqu(E.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),E.xp6(2),E.Q6J("ngIf",I.loading),E.xp6(1),E.Q6J("ngIf",!I.loading))},dependencies:[A.O5,N.TO,N.KE,z.Nt,y.Fj,y.JJ,y.Q7,y.oH,Q.lW,b.uh,b.xY,b.H8,ne.Ou,he.gM,S.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}}"]}),Pe})();var ve=h(10036),v=h(77968),O=h(97392),H=h(87831),Y=h(96214),q=h(4235),ue=h(7434);function Ee(Pe,we){if(1&Pe){const j=E.EpF();E.TgZ(0,"button",9),E.NdJ("click",function(){E.CHM(j);const F=E.oxw();return E.KtG(F.onCreateVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function De(Pe,we){if(1&Pe){const j=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM(j);const F=E.oxw();return E.KtG(F.onRemoveVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Pe){const j=E.oxw();E.Q6J("disabled",0===j.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Se(Pe,we){1&Pe&&E._UZ(0,"mat-spinner",11)}function Ge(Pe,we){if(1&Pe&&E._UZ(0,"perun-web-apps-vos-list",12),2&Pe){const j=E.oxw();E.Q6J("tableId",j.tableId)("displayedColumns",j.displayedColumns)("filterValue",j.filterValue)("recentIds",j.recentIds)("selection",j.selection)("vos",j.vos)}}const Ce=function(){return{color:"black"}};let qe=(()=>{class Pe{constructor(j,I,F,ge,G,_e){this.sideMenuService=j,this.voService=I,this.guiAuthResolver=F,this.dialog=ge,this.notificator=G,this.apiRequest=_e,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=ve.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({next:j=>{this.vos=j,this.recentIds=(0,d.vL)("vos"),this.loading=!1},error:j=>{"PrivilegeException"===j.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(j)}})}applyFilter(j){this.filterValue=j}onCreateVo(){const j=(0,d.kZ)();j.width="610px",j.data={theme:"vo-theme"},this.dialog.open(ce,j).afterClosed().subscribe(F=>{F&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const j=(0,d.kZ)();j.width="500px",j.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,j).afterClosed().subscribe(F=>{F&&this.refreshTable()})}}return Pe.id="VoSelectPageComponent",Pe.\u0275fac=function(j){return new(j||Pe)(E.Y36(v.D),E.Y36(e.YF),E.Y36(_.x4),E.Y36(b.uw),E.Y36(_.V6),E.Y36(_.F5))},Pe.\u0275cmp=E.Xpm({type:Pe,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(j,I){2&j&&E.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(j,I){1&j&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return I.refreshTable()}),E.qZA(),E.YNc(7,Ee,3,3,"button",4),E.YNc(8,De,3,4,"button",5),E.TgZ(9,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(ge){return I.applyFilter(ge)}),E.qZA(),E.YNc(10,Se,1,0,"mat-spinner",7),E.YNc(11,Ge,1,6,"perun-web-apps-vos-list",8),E.qZA()),2&j&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(10,Ce)),E.xp6(1),E.hij(" ",E.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),E.xp6(3),E.Q6J("ngIf",I.createAuth),E.xp6(1),E.Q6J("ngIf",I.deleteAuth),E.xp6(1),E.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",I.loading),E.xp6(1),E.Q6J("ngIf",!I.loading))},dependencies:[A.O5,A.PC,O.Hw,Q.lW,ne.Ou,H.Z,Y.t,q.W,ue.L,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Pe})()},33246:(We,pe,h)=>{"use strict";var e=h(11481),d=h(94650),_=h(94364);let w=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(D,B){}}),J})();var g=h(32105),b=h(35382),y=h(9244),E=h(74281),S=h(77968),U=h(89383),A=h(65412),N=h(36895),z=h(24006),Q=h(97392),ne=h(23267),he=h(4859),ee=h(56709),fe=h(51572),ce=h(10266),ve=h(87831),v=h(24179),O=h(62109),H=h(74010);function Y(J,R){1&J&&d._UZ(0,"mat-spinner",7)}const q=function(){return["id","recent","shortName","name"]};function ue(J,R){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-vos-list",8),d.qZA()),2&J){const D=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(4,q))("recentIds",D.recentIds)("vos",D.objects)}}const Ee=function(){return["id","recent","vo","name","description"]};function De(J,R){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-groups-list",9),d.qZA()),2&J){const D=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(4,Ee))("groups",D.objects)("recentIds",D.recentIds)}}const Se=function(){return["id","recent","name","vo","facility"]};function Ge(J,R){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-resources-list",10),d.qZA()),2&J){const D=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(5,Se))("resources",D.objects)("recentIds",D.recentIds)("routingVo",!0)}}const Ce=function(){return["id","recent","name","description"]};function qe(J,R){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-facilities-list",11),d.qZA()),2&J){const D=d.oxw(2);d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,Ce))("facilities",D.objects)("pageSizeOptions",null)("recentIds",D.recentIds)}}function Pe(J,R){if(1&J&&(d.TgZ(0,"div"),d.YNc(1,ue,2,5,"span",6),d.YNc(2,De,2,5,"span",6),d.YNc(3,Ge,2,6,"span",6),d.YNc(4,qe,2,5,"span",6),d.qZA()),2&J){const D=d.oxw();d.xp6(1),d.Q6J("ngIf","Vo"===D.primaryObject),d.xp6(1),d.Q6J("ngIf","Group"===D.primaryObject),d.xp6(1),d.Q6J("ngIf","Resource"===D.primaryObject),d.xp6(1),d.Q6J("ngIf","Facility"===D.primaryObject)}}let we=(()=>{class J{constructor(D,B,He){this.authzResolver=D,this.guiAuthResolver=B,this.resourceService=He,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(D=>{this.objects=D,this.recentIds=(0,y.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D,this.recentIds=(0,y.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(D=>{this.objects=D,this.recentIds=(0,y.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D.map(B=>({facility:B})),this.recentIds=(0,y.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(g.Ct),d.Y36(b.x4),d.Y36(g.xk))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"div",0)(1,"div",1),d._UZ(2,"mat-icon",2),d._uU(3),d.ALo(4,"translate"),d.TgZ(5,"span",3),d.ALo(6,"translate"),d.TgZ(7,"mat-icon",4),d._uU(8,"info_outline"),d.qZA()()(),d.YNc(9,Y,1,0,"mat-spinner",5),d.YNc(10,Pe,5,4,"div",6),d.qZA()),2&D&&(d.xp6(2),d.Q6J("svgIcon",B.svgIcon),d.xp6(1),d.hij(" ",d.lcZ(4,5,B.title)," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(6,7,B.roleTooltipInfo)),d.xp6(4),d.Q6J("ngIf",B.loading),d.xp6(1),d.Q6J("ngIf",!B.loading))},dependencies:[N.O5,Q.Hw,fe.Ou,ce.gM,ve.Z,v.W,O.C,H.X,U.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}"]}),J})();var j=h(3238),I=h(98380);function F(J,R){1&J&&d._UZ(0,"mat-spinner",3)}function ge(J,R){1&J&&(d.TgZ(0,"perun-web-apps-alert",4),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function G(J,R){if(1&J&&(d.TgZ(0,"div",7)(1,"a",8)(2,"span",9),d._uU(3),d.qZA(),d._UZ(4,"mat-icon",10),d.TgZ(5,"p",11),d._uU(6),d.qZA()()()),2&J){const D=R.$implicit;d.xp6(1),d.Gre("",D.style," item-itself"),d.s9C("matTooltip",D.tooltip),d.Q6J("routerLink",D.url),d.xp6(2),d.Oqu(D.type),d.xp6(1),d.Q6J("svgIcon",D.cssIcon),d.xp6(2),d.Oqu(D.label)}}function _e(J,R){if(1&J&&(d.TgZ(0,"div",5),d.YNc(1,G,7,8,"div",6),d.qZA()),2&J){const D=d.oxw();d.xp6(1),d.Q6J("ngForOf",D.items)}}let Te=(()=>{class J{constructor(D,B,He,tt){this.vosManager=D,this.groupsManager=B,this.authResolver=He,this.facilitiesManager=tt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,y.j4)("recent");for(const D of this.recentItems)switch(D.type){case"Vo":this.vosIds.push(D.id);break;case"Group":this.groupsIds.push(D.id);break;case"Facility":this.facilitiesIds.push(D.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(D=>{this.vos=D,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(D=>{this.groups=D,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(D=>{this.facilities=D,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const D of this.recentItems)switch(D.type){case"Vo":{const B=this.vos.filter(He=>He.id===D.id)[0];B&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${B.id}`,label:B.name,tooltip:B.name,style:"vo-btn",type:"Organization"});break}case"Group":{const B=this.groups.filter(He=>He.id===D.id)[0];B&&this.items.push({cssIcon:"perun-group",url:`/organizations/${B.voId}/groups/${B.id}`,label:B.shortName,tooltip:`${D.voName} : ${B.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const B=this.facilities.filter(He=>He.id===D.id)[0];B&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${B.id}`,label:B.name,tooltip:B.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(g.YF),d.Y36(g.ff),d.Y36(b.x4),d.Y36(g.IQ))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.YNc(0,F,1,0,"mat-spinner",0),d.YNc(1,ge,3,3,"perun-web-apps-alert",1),d.YNc(2,_e,2,1,"div",2)),2&D&&(d.Q6J("ngIf",B.loading),d.xp6(1),d.Q6J("ngIf",0===B.items.length&&!B.loading),d.xp6(1),d.Q6J("ngIf",B.items.length>0))},dependencies:[N.sg,N.O5,_.yS,Q.Hw,fe.Ou,ce.gM,j.wG,I.w,U.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}"]}),J})();var et=h(31359);function Xe(J,R){if(1&J){const D=d.EpF();d.TgZ(0,"div")(1,"mat-checkbox",8),d.NdJ("change",function(He){const xt=d.CHM(D).$implicit,St=d.oxw();return d.KtG(He?St.changeRoleView(xt):null)}),d._uU(2),d.ALo(3,"translate"),d.qZA()()}if(2&J){const D=R.$implicit,B=d.oxw();d.xp6(1),d.Q6J("checked",B.isRoleShowed(D)),d.xp6(1),d.Oqu(d.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+D))}}function vt(J,R){if(1&J){const D=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){d.CHM(D);const He=d.oxw(2);return d.KtG(He.rightSettingOpened=!0)}),d.TgZ(1,"mat-icon"),d._uU(2,"settings"),d.qZA()()}}function rt(J,R){1&J&&(d.TgZ(0,"span"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function ht(J,R){1&J&&(d.TgZ(0,"span"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function W(J,R){if(1&J){const D=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(D);const He=d.oxw(3);return d.KtG(He.goToUserProfile())}),d.TgZ(1,"mat-icon",24),d._uU(2,"exit_to_app"),d.qZA(),d._uU(3),d.ALo(4,"translate"),d.qZA()}if(2&J){const D=d.oxw(3);d.xp6(3),d.AsE("",d.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",D.userProfileName," ")}}const le=function(){return["/myProfile"]};function ie(J,R){if(1&J&&(d.TgZ(0,"div")(1,"div",16)(2,"div",17),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.TgZ(5,"div",18),d.YNc(6,rt,3,3,"span",14),d.YNc(7,ht,3,3,"span",14),d.qZA(),d.TgZ(8,"div",19)(9,"button",20),d._UZ(10,"mat-icon",21),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.YNc(13,W,5,4,"button",22),d.qZA()()()),2&J){const D=d.oxw(2);d.xp6(3),d.hij(" ",d.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),d.xp6(3),d.Q6J("ngIf",!D.userProfileUrl),d.xp6(1),d.Q6J("ngIf",D.userProfileUrl),d.xp6(2),d.Q6J("routerLink",d.DdM(10,le)),d.xp6(2),d.hij(" ",d.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),d.xp6(2),d.Q6J("ngIf",D.userProfileUrl)}}function ae(J,R){1&J&&(d.TgZ(0,"span")(1,"div",3),d._uU(2),d.ALo(3,"translate"),d.qZA(),d._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),d.qZA()),2&J&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function Ze(J,R){1&J&&(d.TgZ(0,"div",27),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Je(J,R){if(1&J&&d._UZ(0,"app-perun-web-apps-dashboard-card",30),2&J){const D=d.oxw().$implicit,B=d.oxw(3);d.Q6J("roleName",D)("role",B.roles[D])}}function ct(J,R){if(1&J&&(d.TgZ(0,"div",28),d.YNc(1,Je,1,2,"app-perun-web-apps-dashboard-card",29),d.qZA()),2&J){const D=R.$implicit,B=d.oxw(3);d.xp6(1),d.Q6J("ngIf",B.isRoleShowed(D))}}function ze(J,R){if(1&J&&(d.TgZ(0,"div"),d.YNc(1,ae,5,3,"span",14),d.YNc(2,Ze,3,3,"div",25),d.TgZ(3,"div"),d.YNc(4,ct,2,1,"div",26),d.qZA()()),2&J){const D=d.oxw(2);d.xp6(1),d.Q6J("ngIf",D.recentlyViewedShow),d.xp6(1),d.Q6J("ngIf",D.rolesToHide.toString()!==D.roleNames.toString()),d.xp6(2),d.Q6J("ngForOf",D.roleNames)}}function oe(J,R){if(1&J&&(d.TgZ(0,"div",9)(1,"h1",10),d._UZ(2,"mat-icon",11),d.TgZ(3,"span",12),d._uU(4),d.ALo(5,"translate"),d.ALo(6,"userFullName"),d.qZA(),d.YNc(7,vt,3,0,"button",13),d.qZA(),d.YNc(8,ie,14,11,"div",14),d.YNc(9,ze,5,3,"div",14),d.qZA()),2&J){const D=d.oxw();d.xp6(4),d.AsE("",d.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",d.lcZ(6,7,D.user),""),d.xp6(3),d.Q6J("ngIf",!D.isOnlySelfRole),d.xp6(1),d.Q6J("ngIf",D.isOnlySelfRole),d.xp6(1),d.Q6J("ngIf",!D.isOnlySelfRole)}}let V=(()=>{class J{constructor(D,B,He,tt,xt,St,Ft,qt,ln,gn){this.userManager=D,this.storeService=B,this.sideMenuService=He,this.route=tt,this.router=xt,this.notificator=St,this.translateService=Ft,this.dialog=qt,this.apiRequestConfiguration=ln,this.otherApplicationService=gn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Ft.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Rn=>this.mailSuccessMessage=Rn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const D=Object.keys(this.roles);this.isOnlySelfRole=D.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(B=>D.includes(B)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(D){if(this.isRoleShowed(D)){const B=[];for(const He of this.roleNames)this.isRoleShowed(He)||B.push(He),He===D&&B.push(He);this.rolesToHide=B}else this.rolesToHide=this.rolesToHide.filter(B=>B!==D);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(D){return!this.rolesToHide.includes(D)}validatePreferredMailChange(){const D=this.route.snapshot.queryParamMap,B=D.get("token"),He=D.get("u");B&&He&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(B,Number.parseInt(He,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const tt=(0,y.kZ)();tt.width="600px",this.dialog.open(E.qD,tt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const D=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===D||D;const B=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===B?[]:B}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(g.Fv),d.Y36(b.d6),d.Y36(S.D),d.Y36(_.gz),d.Y36(_.F0),d.Y36(b.V6),d.Y36(U.sK),d.Y36(A.uw),d.Y36(b.F5),d.Y36(b.jq))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(D,B){2&D&&d.ekj("router-component",B.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(D,B){1&D&&(d.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),d.NdJ("openedChange",function(tt){return B.rightSettingOpened=tt}),d.TgZ(2,"div",2)(3,"div",3),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"mat-checkbox",4),d.NdJ("ngModelChange",function(tt){return B.recentlyViewedShow=tt})("change",function(tt){return tt?B.recentlyViewedChanged():null}),d._uU(8),d.ALo(9,"translate"),d.qZA()(),d.TgZ(10,"div",5),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.YNc(13,Xe,4,4,"div",6),d.qZA()(),d.TgZ(14,"mat-sidenav-content"),d.YNc(15,oe,10,9,"div",7),d.qZA()()),2&D&&(d.xp6(1),d.Q6J("opened",B.rightSettingOpened),d.xp6(3),d.Oqu(d.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),d.xp6(3),d.Q6J("ngModel",B.recentlyViewedShow),d.xp6(1),d.Oqu(d.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),d.xp6(3),d.Oqu(d.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),d.xp6(2),d.Q6J("ngForOf",B.roleNames),d.xp6(2),d.Q6J("ngIf",void 0!==B.user))},dependencies:[N.sg,N.O5,_.rH,z.JJ,z.On,Q.Hw,ne.JX,ne.TM,ne.Rh,he.lW,ee.oG,we,Te,U.X$,et.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}"]}),J})();var r=h(4235);let s=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.TgZ(2,"h1",1),d._uU(3),d.ALo(4,"translate"),d.qZA()()),2&D&&(d.xp6(3),d.Oqu(d.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[r.W,U.X$]}),J})();var f=h(33604),l=h(59549),a=h(284),n=h(63189);let t=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[N.ez,he.ot,Q.Ps,_.Bz,f.ez,U.aw,l.lN,z.UX,a.c,n.r]}),J})(),i=(()=>{class J{constructor(D,B){this.auth=D,this.router=B}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(b.e8),d.Y36(_.F0))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"button",4),d.NdJ("click",function(){return B.startAuth()}),d._uU(7),d.ALo(8,"translate"),d.TgZ(9,"mat-icon"),d._uU(10," login "),d.qZA()()()()()),2&D&&(d.xp6(4),d.hij(" ",d.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),d.xp6(3),d.hij(" ",d.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[he.lW,Q.Hw,U.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),J})();var o=h(41619);function c(J,R){if(1&J&&(d.TgZ(0,"div",8),d._UZ(1,"div",9),d.qZA()),2&J){const D=d.oxw();d.xp6(1),d.Q6J("innerHTML",D.logo,d.oJD)}}function p(J,R){if(1&J&&(d.TgZ(0,"div",10),d._UZ(1,"div",11)(2,"mat-icon",12),d.qZA()),2&J){const D=d.oxw();d.xp6(1),d.Q6J("innerHTML",D.logo,d.oJD)}}const M=function(J){return{color:J}};function Me(J,R){if(1&J&&(d.TgZ(0,"p",13),d._uU(1),d.qZA()),2&J){const D=d.oxw();d.Q6J("ngStyle",d.VKq(2,M,D.textColor)),d.xp6(1),d.hij(" ",D.headerTitle," ")}}const it=function(J,R){return{background:J,color:R}},Dt=function(J,R){return{"min-height":J,"background-color":R}};let Zt=(()=>{class J{constructor(D,B,He,tt){this.storeService=D,this.sanitizer=B,this.preferredLangService=He,this.translateService=tt,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const D=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(D)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(b.d6),d.Y36(e.H7),d.Y36(b.BN),d.Y36(U.sK))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(D,B){1&D&&(d.TgZ(0,"div",0),d.YNc(1,c,2,1,"div",1),d.YNc(2,p,3,1,"div",2),d.YNc(3,Me,2,4,"p",3),d.qZA(),d.TgZ(4,"div",4)(5,"div",5)(6,"div",6),d._UZ(7,"router-outlet"),d.qZA(),d.TgZ(8,"div",7),d._UZ(9,"perun-web-apps-footer"),d.qZA()()()),2&D&&(d.Q6J("ngStyle",d.WLB(5,it,B.headerBackgroundColor,B.headerTextColor)),d.xp6(1),d.Q6J("ngIf","admin-gui"===B.application||"user-profile"===B.application||"consolidator"===B.application),d.xp6(1),d.Q6J("ngIf","publications"===B.application),d.xp6(1),d.Q6J("ngIf",!!B.headerTitle),d.xp6(2),d.Q6J("ngStyle",d.WLB(8,Dt,B.getContentInnerMinHeight(),B.contentBackgroundColor)))},dependencies:[N.O5,N.PC,Q.Hw,_.lC,o.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),J})();function Et(J,R){1&J&&(d.TgZ(0,"perun-web-apps-alert",8),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const je=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:f.t$},{path:"api-callback",component:w},{path:"login",component:i},{path:"service-access",component:(()=>{class J{constructor(D){this.authzService=D,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new z.p4(null,[z.kI.required]),this.passwordCtrl=new z.p4(null,[z.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(D=>{sessionStorage.setItem("baPrincipal",JSON.stringify(D)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(g.Ct))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.YNc(6,Et,3,3,"perun-web-apps-alert",3),d.TgZ(7,"mat-form-field",4)(8,"mat-label"),d._uU(9),d.ALo(10,"translate"),d.qZA(),d._UZ(11,"input",5),d.TgZ(12,"mat-error"),d._uU(13),d.ALo(14,"translate"),d.qZA()(),d.TgZ(15,"mat-form-field",4)(16,"mat-label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d._UZ(19,"input",6),d.TgZ(20,"mat-error"),d._uU(21),d.ALo(22,"translate"),d.qZA()(),d.TgZ(23,"button",7),d.NdJ("click",function(){return B.startAuth()}),d._uU(24),d.ALo(25,"translate"),d.TgZ(26,"mat-icon"),d._uU(27," login "),d.qZA()()()()()),2&D&&(d.xp6(4),d.Oqu(d.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),d.xp6(2),d.Q6J("ngIf",B.wrongUsernameOrPassword),d.xp6(3),d.Oqu(d.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),d.xp6(2),d.Q6J("formControl",B.usernameCtrl),d.xp6(2),d.hij(" ",d.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),d.xp6(4),d.Oqu(d.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),d.xp6(2),d.Q6J("formControl",B.passwordCtrl)("type","password"),d.xp6(2),d.hij(" ",d.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),d.xp6(2),d.Q6J("disabled",B.usernameCtrl.invalid||B.passwordCtrl.invalid),d.xp6(1),d.hij(" ",d.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[N.O5,he.lW,Q.Hw,l.TO,l.KE,l.hX,z.Fj,z.JJ,z.Q7,z.oH,a.Nt,I.w,U.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}"]}),J})()},{path:"organizations",loadChildren:()=>Promise.all([h.e(969),h.e(323),h.e(243),h.e(858)]).then(h.bind(h,60858)).then(J=>J.VosModule)},{path:"admin",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(745)]).then(h.bind(h,82745)).then(J=>J.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(745),h.e(243),h.e(958)]).then(h.bind(h,12958)).then(J=>J.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([h.e(969),h.e(374)]).then(h.bind(h,46374)).then(J=>J.UsersModule)},{path:"home",component:V},{path:"notAuthorized",component:f.y9},{path:"**",component:s}];let Oe=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[_.Bz.forRoot(je,{preloadingStrategy:_.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),_.Bz]}),J})();var Qe=h(72077),ye=h(14264);class Ie{constructor(R,D="/assets/i18n/",B=".json"){this.http=R,this.prefix=D,this.suffix=B}getTranslation(R){return this.http.get(`${this.prefix}${R}${this.suffix}`)}}var $=h(80529),de=h(37340);function $e(J){return new d.vHH(3e3,!1)}function zi(){return typeof window<"u"&&typeof window.document<"u"}function kn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Zn(J){switch(J.length){case 0:return new de.ZN;case 1:return J[0];default:return new de.ZE(J)}}function Ni(J,R,D,B,He=new Map,tt=new Map){const xt=[],St=[];let Ft=-1,qt=null;if(B.forEach(ln=>{const gn=ln.get("offset"),Rn=gn==Ft,Ln=Rn&&qt||new Map;ln.forEach((Sn,On)=>{let ni=On,ri=Sn;if("offset"!==On)switch(ni=R.normalizePropertyName(ni,xt),ri){case de.k1:ri=He.get(On);break;case de.l3:ri=tt.get(On);break;default:ri=R.normalizeStyleValue(On,ni,ri,xt)}Ln.set(ni,ri)}),Rn||St.push(Ln),qt=Ln,Ft=gn}),xt.length)throw function Z(J){return new d.vHH(3502,!1)}();return St}function ki(J,R,D,B){switch(R){case"start":J.onStart(()=>B(D&&Ri(D,"start",J)));break;case"done":J.onDone(()=>B(D&&Ri(D,"done",J)));break;case"destroy":J.onDestroy(()=>B(D&&Ri(D,"destroy",J)))}}function Ri(J,R,D){const tt=fi(J.element,J.triggerName,J.fromState,J.toState,R||J.phaseName,D.totalTime??J.totalTime,!!D.disabled),xt=J._data;return null!=xt&&(tt._data=xt),tt}function fi(J,R,D,B,He="",tt=0,xt){return{element:J,triggerName:R,fromState:D,toState:B,phaseName:He,totalTime:tt,disabled:!!xt}}function hi(J,R,D){let B=J.get(R);return B||J.set(R,B=D),B}function Rr(J){const R=J.indexOf(":");return[J.substring(1,R),J.slice(R+1)]}let ir=(J,R)=>!1,gr=(J,R,D)=>[],rr=null;function ar(J){const R=J.parentNode||J.host;return R===rr?null:R}(kn()||typeof Element<"u")&&(zi()?(rr=(()=>document.documentElement)(),ir=(J,R)=>{for(;R;){if(R===J)return!0;R=ar(R)}return!1}):ir=(J,R)=>J.contains(R),gr=(J,R,D)=>{if(D)return Array.from(J.querySelectorAll(R));const B=J.querySelector(R);return B?[B]:[]});let Tt=null,Xt=!1;const ot=ir,Nt=gr;let cn=(()=>{class J{validateStyleProperty(D){return function te(J){Tt||(Tt=function xe(){return typeof document<"u"?document.body:null}()||{},Xt=!!Tt.style&&"WebkitAppearance"in Tt.style);let R=!0;return Tt.style&&!function _i(J){return"ebkit"==J.substring(1,6)}(J)&&(R=J in Tt.style,!R&&Xt&&(R="Webkit"+J.charAt(0).toUpperCase()+J.slice(1)in Tt.style)),R}(D)}matchesElement(D,B){return!1}containsElement(D,B){return ot(D,B)}getParentElement(D){return ar(D)}query(D,B,He){return Nt(D,B,He)}computeStyle(D,B,He){return He||""}animate(D,B,He,tt,xt,St=[],Ft){return new de.ZN(He,tt)}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})(),Fn=(()=>{class J{}return J.NOOP=new cn,J})();const qi="ng-enter",Vr="ng-leave",xi="ng-trigger",Tr=".ng-trigger",_r="ng-animating",or=".ng-animating";function sr(J){if("number"==typeof J)return J;const R=J.match(/^(-?[\.\d]+)(m?s)/);return!R||R.length<2?0:lr(parseFloat(R[1]),R[2])}function lr(J,R){return"s"===R?1e3*J:J}function Ar(J,R,D){return J.hasOwnProperty("duration")?J:function br(J,R,D){let He,tt=0,xt="";if("string"==typeof J){const St=J.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===St)return R.push($e()),{duration:0,delay:0,easing:""};He=lr(parseFloat(St[1]),St[2]);const Ft=St[3];null!=Ft&&(tt=lr(parseFloat(Ft),St[4]));const qt=St[5];qt&&(xt=qt)}else He=J;if(!D){let St=!1,Ft=R.length;He<0&&(R.push(function nt(){return new d.vHH(3100,!1)}()),St=!0),tt<0&&(R.push(function Le(){return new d.vHH(3101,!1)}()),St=!0),St&&R.splice(Ft,0,$e())}return{duration:He,delay:tt,easing:xt}}(J,R,D)}function cr(J,R={}){return Object.keys(J).forEach(D=>{R[D]=J[D]}),R}function Fr(J){const R=new Map;return Object.keys(J).forEach(D=>{R.set(D,J[D])}),R}function Wi(J,R=new Map,D){if(D)for(let[B,He]of D)R.set(B,He);for(let[B,He]of J)R.set(B,He);return R}function Ur(J,R,D){return D?R+":"+D+";":""}function Qi(J){let R="";for(let D=0;D{const tt=Xi(He);D&&!D.has(He)&&D.set(He,J.style[tt]),J.style[tt]=B}),kn()&&Qi(J))}function Ki(J,R){J.style&&(R.forEach((D,B)=>{const He=Xi(B);J.style[He]=""}),kn()&&Qi(J))}function zn(J){return Array.isArray(J)?1==J.length?J[0]:(0,de.vP)(J):J}const qr=new RegExp("{{\\s*(.+?)\\s*}}","g");function wr(J){let R=[];if("string"==typeof J){let D;for(;D=qr.exec(J);)R.push(D[1]);qr.lastIndex=0}return R}function vi(J,R,D){const B=J.toString(),He=B.replace(qr,(tt,xt)=>{let St=R[xt];return null==St&&(D.push(function Pt(J){return new d.vHH(3003,!1)}()),St=""),St.toString()});return He==B?J:He}function jr(J){const R=[];let D=J.next();for(;!D.done;)R.push(D.value),D=J.next();return R}const ca=/-+([a-z0-9])/g;function Xi(J){return J.replace(ca,(...R)=>R[1].toUpperCase())}function mi(J){return J.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ne(J,R,D){switch(R.type){case 7:return J.visitTrigger(R,D);case 0:return J.visitState(R,D);case 1:return J.visitTransition(R,D);case 2:return J.visitSequence(R,D);case 3:return J.visitGroup(R,D);case 4:return J.visitAnimate(R,D);case 5:return J.visitKeyframes(R,D);case 6:return J.visitStyle(R,D);case 8:return J.visitReference(R,D);case 9:return J.visitAnimateChild(R,D);case 10:return J.visitAnimateRef(R,D);case 11:return J.visitQuery(R,D);case 12:return J.visitStagger(R,D);default:throw function Vt(J){return new d.vHH(3004,!1)}()}}function gt(J,R){return window.getComputedStyle(J)[R]}function gi(J,R){const D=[];return"string"==typeof J?J.split(/\s*,\s*/).forEach(B=>function Yn(J,R,D){if(":"==J[0]){const Ft=function li(J,R){switch(J){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(D,B)=>parseFloat(B)>parseFloat(D);case":decrement":return(D,B)=>parseFloat(B) *"}}(J,D);if("function"==typeof Ft)return void R.push(Ft);J=Ft}const B=J.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==B||B.length<4)return D.push(function _t(J){return new d.vHH(3015,!1)}()),R;const He=B[1],tt=B[2],xt=B[3];R.push(Vi(He,xt));"<"==tt[0]&&!("*"==He&&"*"==xt)&&R.push(Vi(xt,He))}(B,D,R)):D.push(J),D}const Kt=new Set(["true","1"]),Dn=new Set(["false","0"]);function Vi(J,R){const D=Kt.has(J)||Dn.has(J),B=Kt.has(R)||Dn.has(R);return(He,tt)=>{let xt="*"==J||J==He,St="*"==R||R==tt;return!xt&&D&&"boolean"==typeof He&&(xt=He?Kt.has(J):Dn.has(J)),!St&&B&&"boolean"==typeof tt&&(St=tt?Kt.has(R):Dn.has(R)),xt&&St}}const di=new RegExp("s*:selfs*,?","g");function Mr(J,R,D,B){return new Ue(J).build(R,D,B)}class Ue{constructor(R){this._driver=R}build(R,D,B){const He=new mt(D);return this._resetContextStyleTimingState(He),Ne(this,zn(R),He)}_resetContextStyleTimingState(R){R.currentQuerySelector="",R.collectedStyles=new Map,R.collectedStyles.set("",new Map),R.currentTime=0}visitTrigger(R,D){let B=D.queryCount=0,He=D.depCount=0;const tt=[],xt=[];return"@"==R.name.charAt(0)&&D.errors.push(function Jt(){return new d.vHH(3006,!1)}()),R.definitions.forEach(St=>{if(this._resetContextStyleTimingState(D),0==St.type){const Ft=St,qt=Ft.name;qt.toString().split(/\s*,\s*/).forEach(ln=>{Ft.name=ln,tt.push(this.visitState(Ft,D))}),Ft.name=qt}else if(1==St.type){const Ft=this.visitTransition(St,D);B+=Ft.queryCount,He+=Ft.depCount,xt.push(Ft)}else D.errors.push(function nn(){return new d.vHH(3007,!1)}())}),{type:7,name:R.name,states:tt,transitions:xt,queryCount:B,depCount:He,options:null}}visitState(R,D){const B=this.visitStyle(R.styles,D),He=R.options&&R.options.params||null;if(B.containsDynamicStyles){const tt=new Set,xt=He||{};B.styles.forEach(St=>{St instanceof Map&&St.forEach(Ft=>{wr(Ft).forEach(qt=>{xt.hasOwnProperty(qt)||tt.add(qt)})})}),tt.size&&(jr(tt.values()),D.errors.push(function un(J,R){return new d.vHH(3008,!1)}()))}return{type:0,name:R.name,style:B,options:He?{params:He}:null}}visitTransition(R,D){D.queryCount=0,D.depCount=0;const B=Ne(this,zn(R.animation),D);return{type:1,matchers:gi(R.expr,D.errors),animation:B,queryCount:D.queryCount,depCount:D.depCount,options:Jn(R.options)}}visitSequence(R,D){return{type:2,steps:R.steps.map(B=>Ne(this,B,D)),options:Jn(R.options)}}visitGroup(R,D){const B=D.currentTime;let He=0;const tt=R.steps.map(xt=>{D.currentTime=B;const St=Ne(this,xt,D);return He=Math.max(He,D.currentTime),St});return D.currentTime=He,{type:3,steps:tt,options:Jn(R.options)}}visitAnimate(R,D){const B=function hn(J,R){if(J.hasOwnProperty("duration"))return J;if("number"==typeof J)return qn(Ar(J,R).duration,0,"");const D=J;if(D.split(/\s+/).some(tt=>"{"==tt.charAt(0)&&"{"==tt.charAt(1))){const tt=qn(0,0,"");return tt.dynamic=!0,tt.strValue=D,tt}const He=Ar(D,R);return qn(He.duration,He.delay,He.easing)}(R.timings,D.errors);D.currentAnimateTimings=B;let He,tt=R.styles?R.styles:(0,de.oB)({});if(5==tt.type)He=this.visitKeyframes(tt,D);else{let xt=R.styles,St=!1;if(!xt){St=!0;const qt={};B.easing&&(qt.easing=B.easing),xt=(0,de.oB)(qt)}D.currentTime+=B.duration+B.delay;const Ft=this.visitStyle(xt,D);Ft.isEmptyStep=St,He=Ft}return D.currentAnimateTimings=null,{type:4,timings:B,style:He,options:null}}visitStyle(R,D){const B=this._makeStyleAst(R,D);return this._validateStyleAst(B,D),B}_makeStyleAst(R,D){const B=[],He=Array.isArray(R.styles)?R.styles:[R.styles];for(let St of He)"string"==typeof St?St===de.l3?B.push(St):D.errors.push(new d.vHH(3002,!1)):B.push(Fr(St));let tt=!1,xt=null;return B.forEach(St=>{if(St instanceof Map&&(St.has("easing")&&(xt=St.get("easing"),St.delete("easing")),!tt))for(let Ft of St.values())if(Ft.toString().indexOf("{{")>=0){tt=!0;break}}),{type:6,styles:B,easing:xt,offset:R.offset,containsDynamicStyles:tt,options:null}}_validateStyleAst(R,D){const B=D.currentAnimateTimings;let He=D.currentTime,tt=D.currentTime;B&&tt>0&&(tt-=B.duration+B.delay),R.styles.forEach(xt=>{"string"!=typeof xt&&xt.forEach((St,Ft)=>{const qt=D.collectedStyles.get(D.currentQuerySelector),ln=qt.get(Ft);let gn=!0;ln&&(tt!=He&&tt>=ln.startTime&&He<=ln.endTime&&(D.errors.push(function Ct(J,R,D,B,He){return new d.vHH(3010,!1)}()),gn=!1),tt=ln.startTime),gn&&qt.set(Ft,{startTime:tt,endTime:He}),D.options&&function eo(J,R,D){const B=R.params||{},He=wr(J);He.length&&He.forEach(tt=>{B.hasOwnProperty(tt)||D.push(function st(J){return new d.vHH(3001,!1)}())})}(St,D.options,D.errors)})})}visitKeyframes(R,D){const B={type:5,styles:[],options:null};if(!D.currentAnimateTimings)return D.errors.push(function kt(){return new d.vHH(3011,!1)}()),B;let tt=0;const xt=[];let St=!1,Ft=!1,qt=0;const ln=R.steps.map(ri=>{const ji=this._makeStyleAst(ri,D);let tr=null!=ji.offset?ji.offset:function Wt(J){if("string"==typeof J)return null;let R=null;if(Array.isArray(J))J.forEach(D=>{if(D instanceof Map&&D.has("offset")){const B=D;R=parseFloat(B.get("offset")),B.delete("offset")}});else if(J instanceof Map&&J.has("offset")){const D=J;R=parseFloat(D.get("offset")),D.delete("offset")}return R}(ji.styles),Bi=0;return null!=tr&&(tt++,Bi=ji.offset=tr),Ft=Ft||Bi<0||Bi>1,St=St||Bi0&&tt{const tr=Rn>0?ji==Ln?1:Rn*ji:xt[ji],Bi=tr*ni;D.currentTime=Sn+On.delay+Bi,On.duration=Bi,this._validateStyleAst(ri,D),ri.offset=tr,B.styles.push(ri)}),B}visitReference(R,D){return{type:8,animation:Ne(this,zn(R.animation),D),options:Jn(R.options)}}visitAnimateChild(R,D){return D.depCount++,{type:9,options:Jn(R.options)}}visitAnimateRef(R,D){return{type:10,animation:this.visitReference(R.animation,D),options:Jn(R.options)}}visitQuery(R,D){const B=D.currentQuerySelector,He=R.options||{};D.queryCount++,D.currentQuery=R;const[tt,xt]=function Re(J){const R=!!J.split(/\s*,\s*/).find(D=>":self"==D);return R&&(J=J.replace(di,"")),J=J.replace(/@\*/g,Tr).replace(/@\w+/g,D=>Tr+"-"+D.slice(1)).replace(/:animating/g,or),[J,R]}(R.selector);D.currentQuerySelector=B.length?B+" "+tt:tt,hi(D.collectedStyles,D.currentQuerySelector,new Map);const St=Ne(this,zn(R.animation),D);return D.currentQuery=null,D.currentQuerySelector=B,{type:11,selector:tt,limit:He.limit||0,optional:!!He.optional,includeSelf:xt,animation:St,originalSelector:R.selector,options:Jn(R.options)}}visitStagger(R,D){D.currentQuery||D.errors.push(function fn(){return new d.vHH(3013,!1)}());const B="full"===R.timings?{duration:0,delay:0,easing:"full"}:Ar(R.timings,D.errors,!0);return{type:12,animation:Ne(this,zn(R.animation),D),timings:B,options:null}}}class mt{constructor(R){this.errors=R,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Jn(J){return J?(J=cr(J)).params&&(J.params=function be(J){return J?cr(J):null}(J.params)):J={},J}function qn(J,R,D){return{duration:J,delay:R,easing:D}}function Hi(J,R,D,B,He,tt,xt=null,St=!1){return{type:1,element:J,keyframes:R,preStyleProps:D,postStyleProps:B,duration:He,delay:tt,totalTime:He+tt,easing:xt,subTimeline:St}}class Or{constructor(){this._map=new Map}get(R){return this._map.get(R)||[]}append(R,D){let B=this._map.get(R);B||this._map.set(R,B=[]),B.push(...D)}has(R){return this._map.has(R)}clear(){this._map.clear()}}const $s=new RegExp(":enter","g"),qs=new RegExp(":leave","g");function To(J,R,D,B,He,tt=new Map,xt=new Map,St,Ft,qt=[]){return(new wo).buildKeyframes(J,R,D,B,He,tt,xt,St,Ft,qt)}class wo{buildKeyframes(R,D,B,He,tt,xt,St,Ft,qt,ln=[]){qt=qt||new Or;const gn=new to(R,D,qt,He,tt,ln,[]);gn.options=Ft;const Rn=Ft.delay?sr(Ft.delay):0;gn.currentTimeline.delayNextStep(Rn),gn.currentTimeline.setStyles([xt],null,gn.errors,Ft),Ne(this,B,gn);const Ln=gn.timelines.filter(Sn=>Sn.containsAnimation());if(Ln.length&&St.size){let Sn;for(let On=Ln.length-1;On>=0;On--){const ni=Ln[On];if(ni.element===D){Sn=ni;break}}Sn&&!Sn.allowOnlyTimelineStyles()&&Sn.setStyles([St],null,gn.errors,Ft)}return Ln.length?Ln.map(Sn=>Sn.buildKeyframes()):[Hi(D,[],[],[],0,Rn,"",!1)]}visitTrigger(R,D){}visitState(R,D){}visitTransition(R,D){}visitAnimateChild(R,D){const B=D.subInstructions.get(D.element);if(B){const He=D.createSubContext(R.options),tt=D.currentTimeline.currentTime,xt=this._visitSubInstructions(B,He,He.options);tt!=xt&&D.transformIntoNewTimeline(xt)}D.previousNode=R}visitAnimateRef(R,D){const B=D.createSubContext(R.options);B.transformIntoNewTimeline(),this.visitReference(R.animation,B),D.transformIntoNewTimeline(B.currentTimeline.currentTime),D.previousNode=R}_visitSubInstructions(R,D,B){let tt=D.currentTimeline.currentTime;const xt=null!=B.duration?sr(B.duration):null,St=null!=B.delay?sr(B.delay):null;return 0!==xt&&R.forEach(Ft=>{const qt=D.appendInstructionToTimeline(Ft,xt,St);tt=Math.max(tt,qt.duration+qt.delay)}),tt}visitReference(R,D){D.updateOptions(R.options,!0),Ne(this,R.animation,D),D.previousNode=R}visitSequence(R,D){const B=D.subContextCount;let He=D;const tt=R.options;if(tt&&(tt.params||tt.delay)&&(He=D.createSubContext(tt),He.transformIntoNewTimeline(),null!=tt.delay)){6==He.previousNode.type&&(He.currentTimeline.snapshotCurrentStyles(),He.previousNode=Qr);const xt=sr(tt.delay);He.delayNextStep(xt)}R.steps.length&&(R.steps.forEach(xt=>Ne(this,xt,He)),He.currentTimeline.applyStylesToKeyframe(),He.subContextCount>B&&He.transformIntoNewTimeline()),D.previousNode=R}visitGroup(R,D){const B=[];let He=D.currentTimeline.currentTime;const tt=R.options&&R.options.delay?sr(R.options.delay):0;R.steps.forEach(xt=>{const St=D.createSubContext(R.options);tt&&St.delayNextStep(tt),Ne(this,xt,St),He=Math.max(He,St.currentTimeline.currentTime),B.push(St.currentTimeline)}),B.forEach(xt=>D.currentTimeline.mergeTimelineCollectedStyles(xt)),D.transformIntoNewTimeline(He),D.previousNode=R}_visitTiming(R,D){if(R.dynamic){const B=R.strValue;return Ar(D.params?vi(B,D.params,D.errors):B,D.errors)}return{duration:R.duration,delay:R.delay,easing:R.easing}}visitAnimate(R,D){const B=D.currentAnimateTimings=this._visitTiming(R.timings,D),He=D.currentTimeline;B.delay&&(D.incrementTime(B.delay),He.snapshotCurrentStyles());const tt=R.style;5==tt.type?this.visitKeyframes(tt,D):(D.incrementTime(B.duration),this.visitStyle(tt,D),He.applyStylesToKeyframe()),D.currentAnimateTimings=null,D.previousNode=R}visitStyle(R,D){const B=D.currentTimeline,He=D.currentAnimateTimings;!He&&B.hasCurrentStyleProperties()&&B.forwardFrame();const tt=He&&He.easing||R.easing;R.isEmptyStep?B.applyEmptyStep(tt):B.setStyles(R.styles,tt,D.errors,D.options),D.previousNode=R}visitKeyframes(R,D){const B=D.currentAnimateTimings,He=D.currentTimeline.duration,tt=B.duration,St=D.createSubContext().currentTimeline;St.easing=B.easing,R.styles.forEach(Ft=>{St.forwardTime((Ft.offset||0)*tt),St.setStyles(Ft.styles,Ft.easing,D.errors,D.options),St.applyStylesToKeyframe()}),D.currentTimeline.mergeTimelineCollectedStyles(St),D.transformIntoNewTimeline(He+tt),D.previousNode=R}visitQuery(R,D){const B=D.currentTimeline.currentTime,He=R.options||{},tt=He.delay?sr(He.delay):0;tt&&(6===D.previousNode.type||0==B&&D.currentTimeline.hasCurrentStyleProperties())&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=Qr);let xt=B;const St=D.invokeQuery(R.selector,R.originalSelector,R.limit,R.includeSelf,!!He.optional,D.errors);D.currentQueryTotal=St.length;let Ft=null;St.forEach((qt,ln)=>{D.currentQueryIndex=ln;const gn=D.createSubContext(R.options,qt);tt&&gn.delayNextStep(tt),qt===D.element&&(Ft=gn.currentTimeline),Ne(this,R.animation,gn),gn.currentTimeline.applyStylesToKeyframe(),xt=Math.max(xt,gn.currentTimeline.currentTime)}),D.currentQueryIndex=0,D.currentQueryTotal=0,D.transformIntoNewTimeline(xt),Ft&&(D.currentTimeline.mergeTimelineCollectedStyles(Ft),D.currentTimeline.snapshotCurrentStyles()),D.previousNode=R}visitStagger(R,D){const B=D.parentContext,He=D.currentTimeline,tt=R.timings,xt=Math.abs(tt.duration),St=xt*(D.currentQueryTotal-1);let Ft=xt*D.currentQueryIndex;switch(tt.duration<0?"reverse":tt.easing){case"reverse":Ft=St-Ft;break;case"full":Ft=B.currentStaggerTime}const ln=D.currentTimeline;Ft&&ln.delayNextStep(Ft);const gn=ln.currentTime;Ne(this,R.animation,D),D.previousNode=R,B.currentStaggerTime=He.currentTime-gn+(He.startTime-B.currentTimeline.startTime)}}const Qr={};class to{constructor(R,D,B,He,tt,xt,St,Ft){this._driver=R,this.element=D,this.subInstructions=B,this._enterClassName=He,this._leaveClassName=tt,this.errors=xt,this.timelines=St,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ft||new Gr(this._driver,D,0),St.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(R,D){if(!R)return;const B=R;let He=this.options;null!=B.duration&&(He.duration=sr(B.duration)),null!=B.delay&&(He.delay=sr(B.delay));const tt=B.params;if(tt){let xt=He.params;xt||(xt=this.options.params={}),Object.keys(tt).forEach(St=>{(!D||!xt.hasOwnProperty(St))&&(xt[St]=vi(tt[St],xt,this.errors))})}}_copyOptions(){const R={};if(this.options){const D=this.options.params;if(D){const B=R.params={};Object.keys(D).forEach(He=>{B[He]=D[He]})}}return R}createSubContext(R=null,D,B){const He=D||this.element,tt=new to(this._driver,He,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(He,B||0));return tt.previousNode=this.previousNode,tt.currentAnimateTimings=this.currentAnimateTimings,tt.options=this._copyOptions(),tt.updateOptions(R),tt.currentQueryIndex=this.currentQueryIndex,tt.currentQueryTotal=this.currentQueryTotal,tt.parentContext=this,this.subContextCount++,tt}transformIntoNewTimeline(R){return this.previousNode=Qr,this.currentTimeline=this.currentTimeline.fork(this.element,R),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(R,D,B){const He={duration:D??R.duration,delay:this.currentTimeline.currentTime+(B??0)+R.delay,easing:""},tt=new Ko(this._driver,R.element,R.keyframes,R.preStyleProps,R.postStyleProps,He,R.stretchStartingKeyframe);return this.timelines.push(tt),He}incrementTime(R){this.currentTimeline.forwardTime(this.currentTimeline.duration+R)}delayNextStep(R){R>0&&this.currentTimeline.delayNextStep(R)}invokeQuery(R,D,B,He,tt,xt){let St=[];if(He&&St.push(this.element),R.length>0){R=(R=R.replace($s,"."+this._enterClassName)).replace(qs,"."+this._leaveClassName);let qt=this._driver.query(this.element,R,1!=B);0!==B&&(qt=B<0?qt.slice(qt.length+B,qt.length):qt.slice(0,B)),St.push(...qt)}return!tt&&0==St.length&&xt.push(function Wn(J){return new d.vHH(3014,!1)}()),St}}class Gr{constructor(R,D,B,He){this._driver=R,this.element=D,this.startTime=B,this._elementTimelineStylesLookup=He,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(D),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(D,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(R){const D=1===this._keyframes.size&&this._pendingStyles.size;this.duration||D?(this.forwardTime(this.currentTime+R),D&&this.snapshotCurrentStyles()):this.startTime+=R}fork(R,D){return this.applyStylesToKeyframe(),new Gr(this._driver,R,D||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(R){this.applyStylesToKeyframe(),this.duration=R,this._loadKeyframe()}_updateStyle(R,D){this._localTimelineStyles.set(R,D),this._globalTimelineStyles.set(R,D),this._styleSummary.set(R,{time:this.currentTime,value:D})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(R){R&&this._previousKeyframe.set("easing",R);for(let[D,B]of this._globalTimelineStyles)this._backFill.set(D,B||de.l3),this._currentKeyframe.set(D,de.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(R,D,B,He){D&&this._previousKeyframe.set("easing",D);const tt=He&&He.params||{},xt=function ua(J,R){const D=new Map;let B;return J.forEach(He=>{if("*"===He){B=B||R.keys();for(let tt of B)D.set(tt,de.l3)}else Wi(He,D)}),D}(R,this._globalTimelineStyles);for(let[Ft,qt]of xt){const ln=vi(qt,tt,B);var St;this._pendingStyles.set(Ft,ln),this._localTimelineStyles.has(Ft)||this._backFill.set(Ft,null!==(St=this._globalTimelineStyles.get(Ft))&&void 0!==St?St:de.l3),this._updateStyle(Ft,ln)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((R,D)=>{this._currentKeyframe.set(D,R)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((R,D)=>{this._currentKeyframe.has(D)||this._currentKeyframe.set(D,R)}))}snapshotCurrentStyles(){for(let[R,D]of this._localTimelineStyles)this._pendingStyles.set(R,D),this._updateStyle(R,D)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const R=[];for(let D in this._currentKeyframe)R.push(D);return R}mergeTimelineCollectedStyles(R){R._styleSummary.forEach((D,B)=>{const He=this._styleSummary.get(B);(!He||D.time>He.time)&&this._updateStyle(B,D.value)})}buildKeyframes(){this.applyStylesToKeyframe();const R=new Set,D=new Set,B=1===this._keyframes.size&&0===this.duration;let He=[];this._keyframes.forEach((St,Ft)=>{const qt=Wi(St,new Map,this._backFill);qt.forEach((ln,gn)=>{ln===de.k1?R.add(gn):ln===de.l3&&D.add(gn)}),B||qt.set("offset",Ft/this.duration),He.push(qt)});const tt=R.size?jr(R.values()):[],xt=D.size?jr(D.values()):[];if(B){const St=He[0],Ft=new Map(St);St.set("offset",0),Ft.set("offset",1),He=[St,Ft]}return Hi(this.element,He,tt,xt,this.duration,this.startTime,this.easing,!1)}}class Ko extends Gr{constructor(R,D,B,He,tt,xt,St=!1){super(R,D,xt.delay),this.keyframes=B,this.preStyleProps=He,this.postStyleProps=tt,this._stretchStartingKeyframe=St,this.timings={duration:xt.duration,delay:xt.delay,easing:xt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let R=this.keyframes,{delay:D,duration:B,easing:He}=this.timings;if(this._stretchStartingKeyframe&&D){const tt=[],xt=B+D,St=D/xt,Ft=Wi(R[0]);Ft.set("offset",0),tt.push(Ft);const qt=Wi(R[0]);qt.set("offset",Da(St)),tt.push(qt);const ln=R.length-1;for(let gn=1;gn<=ln;gn++){let Rn=Wi(R[gn]);const Ln=Rn.get("offset");Rn.set("offset",Da((D+Ln*B)/xt)),tt.push(Rn)}B=xt,D=0,He="",R=tt}return Hi(this.element,R,this.preStyleProps,this.postStyleProps,B,D,He,!0)}}function Da(J,R=3){const D=Math.pow(10,R-1);return Math.round(J*D)/D}class no{}const Xo=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ha extends no{normalizePropertyName(R,D){return Xi(R)}normalizeStyleValue(R,D,B,He){let tt="";const xt=B.toString().trim();if(Xo.has(D)&&0!==B&&"0"!==B)if("number"==typeof B)tt="px";else{const St=B.match(/^[+-]?[\d\.]+([a-z]*)$/);St&&0==St[1].length&&He.push(function rn(J,R){return new d.vHH(3005,!1)}())}return xt+tt}}function Mo(J,R,D,B,He,tt,xt,St,Ft,qt,ln,gn,Rn){return{type:0,element:J,triggerName:R,isRemovalTransition:He,fromState:D,fromStyles:tt,toState:B,toStyles:xt,timelines:St,queriedElements:Ft,preStyleProps:qt,postStyleProps:ln,totalTime:gn,errors:Rn}}const io={};class Ei{constructor(R,D,B){this._triggerName=R,this.ast=D,this._stateStyles=B}match(R,D,B,He){return function ui(J,R,D,B,He){return J.some(tt=>tt(R,D,B,He))}(this.ast.matchers,R,D,B,He)}buildStyles(R,D,B){let He=this._stateStyles.get("*");return void 0!==R&&(He=this._stateStyles.get(R?.toString())||He),He?He.buildStyles(D,B):new Map}build(R,D,B,He,tt,xt,St,Ft,qt,ln){var gn;const Rn=[],Ln=this.ast.options&&this.ast.options.params||io,On=this.buildStyles(B,St&&St.params||io,Rn),ni=Ft&&Ft.params||io,ri=this.buildStyles(He,ni,Rn),ji=new Set,tr=new Map,Bi=new Map,Ca="void"===He,Br={params:pa(ni,Ln),delay:null===(gn=this.ast.options)||void 0===gn?void 0:gn.delay},nr=ln?[]:To(R,D,this.ast.animation,tt,xt,On,ri,Br,qt,Rn);let pr=0;if(nr.forEach(Kn=>{pr=Math.max(Kn.duration+Kn.delay,pr)}),Rn.length)return Mo(D,this._triggerName,B,He,Ca,On,ri,[],[],tr,Bi,pr,Rn);nr.forEach(Kn=>{const bo=Kn.element,Uo=hi(tr,bo,new Set);Kn.preStyleProps.forEach($a=>Uo.add($a));const Ja=hi(Bi,bo,new Set);Kn.postStyleProps.forEach($a=>Ja.add($a)),bo!==D&&ji.add(bo)});const ys=jr(ji.values());return Mo(D,this._triggerName,B,He,Ca,On,ri,nr,ys,tr,Bi,pr)}}function pa(J,R){const D=cr(R);for(const B in J)J.hasOwnProperty(B)&&null!=J[B]&&(D[B]=J[B]);return D}class es{constructor(R,D,B){this.styles=R,this.defaultParams=D,this.normalizer=B}buildStyles(R,D){const B=new Map,He=cr(this.defaultParams);return Object.keys(R).forEach(tt=>{const xt=R[tt];null!==xt&&(He[tt]=xt)}),this.styles.styles.forEach(tt=>{"string"!=typeof tt&&tt.forEach((xt,St)=>{xt&&(xt=vi(xt,He,D));const Ft=this.normalizer.normalizePropertyName(St,D);xt=this.normalizer.normalizeStyleValue(St,Ft,xt,D),B.set(Ft,xt)})}),B}}class Xs{constructor(R,D,B){this.name=R,this.ast=D,this._normalizer=B,this.transitionFactories=[],this.states=new Map,D.states.forEach(He=>{this.states.set(He.name,new es(He.style,He.options&&He.options.params||{},B))}),ns(this.states,"true","1"),ns(this.states,"false","0"),D.transitions.forEach(He=>{this.transitionFactories.push(new Ei(R,He,this.states))}),this.fallbackTransition=function el(J,R,D){return new Ei(J,{type:1,animation:{type:2,steps:[],options:null},matchers:[(xt,St)=>!0],options:null,queryCount:0,depCount:0},R)}(R,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(R,D,B,He){return this.transitionFactories.find(xt=>xt.match(R,D,B,He))||null}matchStyles(R,D,B){return this.fallbackTransition.buildStyles(R,D,B)}}function ns(J,R,D){J.has(R)?J.has(D)||J.set(D,J.get(R)):J.has(D)&&J.set(R,J.get(D))}const ro=new Or;class Kr{constructor(R,D,B){this.bodyNode=R,this._driver=D,this._normalizer=B,this._animations=new Map,this._playersById=new Map,this.players=[]}register(R,D){const B=[],tt=Mr(this._driver,D,B,[]);if(B.length)throw function Fe(J){return new d.vHH(3503,!1)}();this._animations.set(R,tt)}_buildPlayer(R,D,B){const He=R.element,tt=Ni(0,this._normalizer,0,R.keyframes,D,B);return this._driver.animate(He,tt,R.duration,R.delay,R.easing,[],!0)}create(R,D,B={}){const He=[],tt=this._animations.get(R);let xt;const St=new Map;if(tt?(xt=To(this._driver,D,tt,qi,Vr,new Map,new Map,B,ro,He),xt.forEach(ln=>{const gn=hi(St,ln.element,new Map);ln.postStyleProps.forEach(Rn=>gn.set(Rn,null))})):(He.push(function At(){return new d.vHH(3300,!1)}()),xt=[]),He.length)throw function Mt(J){return new d.vHH(3504,!1)}();St.forEach((ln,gn)=>{ln.forEach((Rn,Ln)=>{ln.set(Ln,this._driver.computeStyle(gn,Ln,de.l3))})});const qt=Zn(xt.map(ln=>{const gn=St.get(ln.element);return this._buildPlayer(ln,new Map,gn)}));return this._playersById.set(R,qt),qt.onDestroy(()=>this.destroy(R)),this.players.push(qt),qt}destroy(R){const D=this._getPlayer(R);D.destroy(),this._playersById.delete(R);const B=this.players.indexOf(D);B>=0&&this.players.splice(B,1)}_getPlayer(R){const D=this._playersById.get(R);if(!D)throw function $t(J){return new d.vHH(3301,!1)}();return D}listen(R,D,B,He){const tt=fi(D,"","","");return ki(this._getPlayer(R),B,tt,He),()=>{}}command(R,D,B,He){if("register"==B)return void this.register(R,He[0]);if("create"==B)return void this.create(R,D,He[0]||{});const tt=this._getPlayer(R);switch(B){case"play":tt.play();break;case"pause":tt.pause();break;case"reset":tt.reset();break;case"restart":tt.restart();break;case"finish":tt.finish();break;case"init":tt.init();break;case"setPosition":tt.setPosition(parseFloat(He[0]));break;case"destroy":this.destroy(R)}}}const Sa="ng-animate-queued",ao="ng-animate-disabled",nl=[],Do={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fi="__ng_removed";class oo{constructor(R,D=""){this.namespaceId=D;const B=R&&R.hasOwnProperty("value");if(this.value=function lo(J){return J??null}(B?R.value:R),B){const tt=cr(R);delete tt.value,this.options=tt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(R){const D=R.params;if(D){const B=this.options.params;Object.keys(D).forEach(He=>{null==B[He]&&(B[He]=D[He])})}}}const fa="void",So=new oo(fa);class il{constructor(R,D,B){this.id=R,this.hostElement=D,this._engine=B,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+R,Ui(D,this._hostClassName)}listen(R,D,B,He){if(!this._triggers.has(D))throw function An(J,R){return new d.vHH(3302,!1)}();if(null==B||0==B.length)throw function Vn(J){return new d.vHH(3303,!1)}();if(!function rs(J){return"start"==J||"done"==J}(B))throw function Pn(J,R){return new d.vHH(3400,!1)}();const tt=hi(this._elementListeners,R,[]),xt={name:D,phase:B,callback:He};tt.push(xt);const St=hi(this._engine.statesByElement,R,new Map);return St.has(D)||(Ui(R,xi),Ui(R,xi+"-"+D),St.set(D,So)),()=>{this._engine.afterFlush(()=>{const Ft=tt.indexOf(xt);Ft>=0&&tt.splice(Ft,1),this._triggers.has(D)||St.delete(D)})}}register(R,D){return!this._triggers.has(R)&&(this._triggers.set(R,D),!0)}_getTrigger(R){const D=this._triggers.get(R);if(!D)throw function $n(J){return new d.vHH(3401,!1)}();return D}trigger(R,D,B,He=!0){const tt=this._getTrigger(D),xt=new ma(this.id,D,R);let St=this._engine.statesByElement.get(R);St||(Ui(R,xi),Ui(R,xi+"-"+D),this._engine.statesByElement.set(R,St=new Map));let Ft=St.get(D);const qt=new oo(B,this.id);if(!(B&&B.hasOwnProperty("value"))&&Ft&&qt.absorbOptions(Ft.options),St.set(D,qt),Ft||(Ft=So),qt.value!==fa&&Ft.value===qt.value){if(!function al(J,R){const D=Object.keys(J),B=Object.keys(R);if(D.length!=B.length)return!1;for(let He=0;He{Ki(R,ni),Di(R,ri)})}return}const Rn=hi(this._engine.playersByElement,R,[]);Rn.forEach(On=>{On.namespaceId==this.id&&On.triggerName==D&&On.queued&&On.destroy()});let Ln=tt.matchTransition(Ft.value,qt.value,R,qt.params),Sn=!1;if(!Ln){if(!He)return;Ln=tt.fallbackTransition,Sn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:R,triggerName:D,transition:Ln,fromState:Ft,toState:qt,player:xt,isFallbackTransition:Sn}),Sn||(Ui(R,Sa),xt.onStart(()=>{Sr(R,Sa)})),xt.onDone(()=>{let On=this.players.indexOf(xt);On>=0&&this.players.splice(On,1);const ni=this._engine.playersByElement.get(R);if(ni){let ri=ni.indexOf(xt);ri>=0&&ni.splice(ri,1)}}),this.players.push(xt),Rn.push(xt),xt}deregister(R){this._triggers.delete(R),this._engine.statesByElement.forEach(D=>D.delete(R)),this._elementListeners.forEach((D,B)=>{this._elementListeners.set(B,D.filter(He=>He.name!=R))})}clearElementCache(R){this._engine.statesByElement.delete(R),this._elementListeners.delete(R);const D=this._engine.playersByElement.get(R);D&&(D.forEach(B=>B.destroy()),this._engine.playersByElement.delete(R))}_signalRemovalForInnerTriggers(R,D){const B=this._engine.driver.query(R,Tr,!0);B.forEach(He=>{if(He[Fi])return;const tt=this._engine.fetchNamespacesByElement(He);tt.size?tt.forEach(xt=>xt.triggerLeaveAnimation(He,D,!1,!0)):this.clearElementCache(He)}),this._engine.afterFlushAnimationsDone(()=>B.forEach(He=>this.clearElementCache(He)))}triggerLeaveAnimation(R,D,B,He){const tt=this._engine.statesByElement.get(R),xt=new Map;if(tt){const St=[];if(tt.forEach((Ft,qt)=>{if(xt.set(qt,Ft.value),this._triggers.has(qt)){const ln=this.trigger(R,qt,fa,He);ln&&St.push(ln)}}),St.length)return this._engine.markElementAsRemoved(this.id,R,!0,D,xt),B&&Zn(St).onDone(()=>this._engine.processLeaveNode(R)),!0}return!1}prepareLeaveAnimationListeners(R){const D=this._elementListeners.get(R),B=this._engine.statesByElement.get(R);if(D&&B){const He=new Set;D.forEach(tt=>{const xt=tt.name;if(He.has(xt))return;He.add(xt);const Ft=this._triggers.get(xt).fallbackTransition,qt=B.get(xt)||So,ln=new oo(fa),gn=new ma(this.id,xt,R);this._engine.totalQueuedPlayers++,this._queue.push({element:R,triggerName:xt,transition:Ft,fromState:qt,toState:ln,player:gn,isFallbackTransition:!0})})}}removeNode(R,D){const B=this._engine;if(R.childElementCount&&this._signalRemovalForInnerTriggers(R,D),this.triggerLeaveAnimation(R,D,!0))return;let He=!1;if(B.totalAnimations){const tt=B.players.length?B.playersByQueriedElement.get(R):[];if(tt&&tt.length)He=!0;else{let xt=R;for(;xt=xt.parentNode;)if(B.statesByElement.get(xt)){He=!0;break}}}if(this.prepareLeaveAnimationListeners(R),He)B.markElementAsRemoved(this.id,R,!1,D);else{const tt=R[Fi];(!tt||tt===Do)&&(B.afterFlush(()=>this.clearElementCache(R)),B.destroyInnerAnimations(R),B._onRemovalComplete(R,D))}}insertNode(R,D){Ui(R,this._hostClassName)}drainQueuedTransitions(R){const D=[];return this._queue.forEach(B=>{const He=B.player;if(He.destroyed)return;const tt=B.element,xt=this._elementListeners.get(tt);xt&&xt.forEach(St=>{if(St.name==B.triggerName){const Ft=fi(tt,B.triggerName,B.fromState.value,B.toState.value);Ft._data=R,ki(B.player,St.phase,Ft,St.callback)}}),He.markedForDestroy?this._engine.afterFlush(()=>{He.destroy()}):D.push(B)}),this._queue=[],D.sort((B,He)=>{const tt=B.transition.ast.depCount,xt=He.transition.ast.depCount;return 0==tt||0==xt?tt-xt:this._engine.driver.containsElement(B.element,He.element)?1:-1})}destroy(R){this.players.forEach(D=>D.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,R)}elementContainsData(R){let D=!1;return this._elementListeners.has(R)&&(D=!0),D=!!this._queue.find(B=>B.element===R)||D,D}}class so{constructor(R,D,B){this.bodyNode=R,this.driver=D,this._normalizer=B,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=(He,tt)=>{}}_onRemovalComplete(R,D){this.onRemovalComplete(R,D)}get queuedPlayers(){const R=[];return this._namespaceList.forEach(D=>{D.players.forEach(B=>{B.queued&&R.push(B)})}),R}createNamespace(R,D){const B=new il(R,D,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,D)?this._balanceNamespaceList(B,D):(this.newHostElements.set(D,B),this.collectEnterElement(D)),this._namespaceLookup[R]=B}_balanceNamespaceList(R,D){const B=this._namespaceList,He=this.namespacesByHostElement;if(B.length-1>=0){let xt=!1,St=this.driver.getParentElement(D);for(;St;){const Ft=He.get(St);if(Ft){const qt=B.indexOf(Ft);B.splice(qt+1,0,R),xt=!0;break}St=this.driver.getParentElement(St)}xt||B.unshift(R)}else B.push(R);return He.set(D,R),R}register(R,D){let B=this._namespaceLookup[R];return B||(B=this.createNamespace(R,D)),B}registerTrigger(R,D,B){let He=this._namespaceLookup[R];He&&He.register(D,B)&&this.totalAnimations++}destroy(R,D){if(!R)return;const B=this._fetchNamespace(R);this.afterFlush(()=>{this.namespacesByHostElement.delete(B.hostElement),delete this._namespaceLookup[R];const He=this._namespaceList.indexOf(B);He>=0&&this._namespaceList.splice(He,1)}),this.afterFlushAnimationsDone(()=>B.destroy(D))}_fetchNamespace(R){return this._namespaceLookup[R]}fetchNamespacesByElement(R){const D=new Set,B=this.statesByElement.get(R);if(B)for(let He of B.values())if(He.namespaceId){const tt=this._fetchNamespace(He.namespaceId);tt&&D.add(tt)}return D}trigger(R,D,B,He){if(Ra(D)){const tt=this._fetchNamespace(R);if(tt)return tt.trigger(D,B,He),!0}return!1}insertNode(R,D,B,He){if(!Ra(D))return;const tt=D[Fi];if(tt&&tt.setForRemoval){tt.setForRemoval=!1,tt.setForMove=!0;const xt=this.collectedLeaveElements.indexOf(D);xt>=0&&this.collectedLeaveElements.splice(xt,1)}if(R){const xt=this._fetchNamespace(R);xt&&xt.insertNode(D,B)}He&&this.collectEnterElement(D)}collectEnterElement(R){this.collectedEnterElements.push(R)}markElementAsDisabled(R,D){D?this.disabledNodes.has(R)||(this.disabledNodes.add(R),Ui(R,ao)):this.disabledNodes.has(R)&&(this.disabledNodes.delete(R),Sr(R,ao))}removeNode(R,D,B,He){if(Ra(D)){const tt=R?this._fetchNamespace(R):null;if(tt?tt.removeNode(D,He):this.markElementAsRemoved(R,D,!1,He),B){const xt=this.namespacesByHostElement.get(D);xt&&xt.id!==R&&xt.removeNode(D,He)}}else this._onRemovalComplete(D,He)}markElementAsRemoved(R,D,B,He,tt){this.collectedLeaveElements.push(D),D[Fi]={namespaceId:R,setForRemoval:He,hasAnimation:B,removedBeforeQueried:!1,previousTriggersValues:tt}}listen(R,D,B,He,tt){return Ra(D)?this._fetchNamespace(R).listen(D,B,He,tt):()=>{}}_buildInstruction(R,D,B,He,tt){return R.transition.build(this.driver,R.element,R.fromState.value,R.toState.value,B,He,R.fromState.options,R.toState.options,D,tt)}destroyInnerAnimations(R){let D=this.driver.query(R,Tr,!0);D.forEach(B=>this.destroyActiveAnimationsForElement(B)),0!=this.playersByQueriedElement.size&&(D=this.driver.query(R,or,!0),D.forEach(B=>this.finishActiveQueriedAnimationOnElement(B)))}destroyActiveAnimationsForElement(R){const D=this.playersByElement.get(R);D&&D.forEach(B=>{B.queued?B.markedForDestroy=!0:B.destroy()})}finishActiveQueriedAnimationOnElement(R){const D=this.playersByQueriedElement.get(R);D&&D.forEach(B=>B.finish())}whenRenderingDone(){return new Promise(R=>{if(this.players.length)return Zn(this.players).onDone(()=>R());R()})}processLeaveNode(R){var D;const B=R[Fi];if(B&&B.setForRemoval){if(R[Fi]=Do,B.namespaceId){this.destroyInnerAnimations(R);const He=this._fetchNamespace(B.namespaceId);He&&He.clearElementCache(R)}this._onRemovalComplete(R,B.setForRemoval)}null!==(D=R.classList)&&void 0!==D&&D.contains(ao)&&this.markElementAsDisabled(R,!1),this.driver.query(R,".ng-animate-disabled",!0).forEach(He=>{this.markElementAsDisabled(He,!1)})}flush(R=-1){let D=[];if(this.newHostElements.size&&(this.newHostElements.forEach((B,He)=>this._balanceNamespaceList(B,He)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let B=0;BB()),this._flushFns=[],this._whenQuietFns.length){const B=this._whenQuietFns;this._whenQuietFns=[],D.length?Zn(D).onDone(()=>{B.forEach(He=>He())}):B.forEach(He=>He())}}reportError(R){throw function ai(J){return new d.vHH(3402,!1)}()}_flushAnimations(R,D){const B=new Or,He=[],tt=new Map,xt=[],St=new Map,Ft=new Map,qt=new Map,ln=new Set;this.disabledNodes.forEach(Cn=>{ln.add(Cn);const En=this.driver.query(Cn,".ng-animate-queued",!0);for(let Tn=0;Tn{const Tn=qi+On++;Sn.set(En,Tn),Cn.forEach(Un=>Ui(Un,Tn))});const ni=[],ri=new Set,ji=new Set;for(let Cn=0;Cnri.add(Un)):ji.add(En))}const tr=new Map,Bi=Lr(Rn,Array.from(ri));Bi.forEach((Cn,En)=>{const Tn=Vr+On++;tr.set(En,Tn),Cn.forEach(Un=>Ui(Un,Tn))}),R.push(()=>{Ln.forEach((Cn,En)=>{const Tn=Sn.get(En);Cn.forEach(Un=>Sr(Un,Tn))}),Bi.forEach((Cn,En)=>{const Tn=tr.get(En);Cn.forEach(Un=>Sr(Un,Tn))}),ni.forEach(Cn=>{this.processLeaveNode(Cn)})});const Ca=[],Br=[];for(let Cn=this._namespaceList.length-1;Cn>=0;Cn--)this._namespaceList[Cn].drainQueuedTransitions(D).forEach(Tn=>{const Un=Tn.player,Mi=Tn.element;if(Ca.push(Un),this.collectedEnterElements.length){const $i=Mi[Fi];if($i&&$i.setForMove){if($i.previousTriggersValues&&$i.previousTriggersValues.has(Tn.triggerName)){const va=$i.previousTriggersValues.get(Tn.triggerName),Cr=this.statesByElement.get(Tn.element);if(Cr&&Cr.has(Tn.triggerName)){const Co=Cr.get(Tn.triggerName);Co.value=va,Cr.set(Tn.triggerName,Co)}}return void Un.destroy()}}const na=!gn||!this.driver.containsElement(gn,Mi),Gi=tr.get(Mi),Yr=Sn.get(Mi),pi=this._buildInstruction(Tn,B,Yr,Gi,na);if(pi.errors&&pi.errors.length)return void Br.push(pi);if(na)return Un.onStart(()=>Ki(Mi,pi.fromStyles)),Un.onDestroy(()=>Di(Mi,pi.toStyles)),void He.push(Un);if(Tn.isFallbackTransition)return Un.onStart(()=>Ki(Mi,pi.fromStyles)),Un.onDestroy(()=>Di(Mi,pi.toStyles)),void He.push(Un);const _l=[];pi.timelines.forEach($i=>{$i.stretchStartingKeyframe=!0,this.disabledNodes.has($i.element)||_l.push($i)}),pi.timelines=_l,B.append(Mi,pi.timelines),xt.push({instruction:pi,player:Un,element:Mi}),pi.queriedElements.forEach($i=>hi(St,$i,[]).push(Un)),pi.preStyleProps.forEach(($i,va)=>{if($i.size){let Cr=Ft.get(va);Cr||Ft.set(va,Cr=new Set),$i.forEach((Co,hc)=>Cr.add(hc))}}),pi.postStyleProps.forEach(($i,va)=>{let Cr=qt.get(va);Cr||qt.set(va,Cr=new Set),$i.forEach((Co,hc)=>Cr.add(hc))})});if(Br.length){const Cn=[];Br.forEach(En=>{Cn.push(function Gn(J,R){return new d.vHH(3505,!1)}())}),Ca.forEach(En=>En.destroy()),this.reportError(Cn)}const nr=new Map,pr=new Map;xt.forEach(Cn=>{const En=Cn.element;B.has(En)&&(pr.set(En,En),this._beforeAnimationBuild(Cn.player.namespaceId,Cn.instruction,nr))}),He.forEach(Cn=>{const En=Cn.element;this._getPreviousPlayers(En,!1,Cn.namespaceId,Cn.triggerName,null).forEach(Un=>{hi(nr,En,[]).push(Un),Un.destroy()})});const ys=ni.filter(Cn=>er(Cn,Ft,qt)),Kn=new Map;Po(Kn,this.driver,ji,qt,de.l3).forEach(Cn=>{er(Cn,Ft,qt)&&ys.push(Cn)});const Uo=new Map;Ln.forEach((Cn,En)=>{Po(Uo,this.driver,new Set(Cn),Ft,de.k1)}),ys.forEach(Cn=>{var En,Tn;const Un=Kn.get(Cn),Mi=Uo.get(Cn);Kn.set(Cn,new Map([...Array.from(null!==(En=Un?.entries())&&void 0!==En?En:[]),...Array.from(null!==(Tn=Mi?.entries())&&void 0!==Tn?Tn:[])]))});const Ja=[],$a=[],dc={};xt.forEach(Cn=>{const{element:En,player:Tn,instruction:Un}=Cn;if(B.has(En)){if(ln.has(En))return Tn.onDestroy(()=>Di(En,Un.toStyles)),Tn.disabled=!0,Tn.overrideTotalTime(Un.totalTime),void He.push(Tn);let Mi=dc;if(pr.size>1){let Gi=En;const Yr=[];for(;Gi=Gi.parentNode;){const pi=pr.get(Gi);if(pi){Mi=pi;break}Yr.push(Gi)}Yr.forEach(pi=>pr.set(pi,Mi))}const na=this._buildAnimation(Tn.namespaceId,Un,nr,tt,Uo,Kn);if(Tn.setRealPlayer(na),Mi===dc)Ja.push(Tn);else{const Gi=this.playersByElement.get(Mi);Gi&&Gi.length&&(Tn.parentPlayer=Zn(Gi)),He.push(Tn)}}else Ki(En,Un.fromStyles),Tn.onDestroy(()=>Di(En,Un.toStyles)),$a.push(Tn),ln.has(En)&&He.push(Tn)}),$a.forEach(Cn=>{const En=tt.get(Cn.element);if(En&&En.length){const Tn=Zn(En);Cn.setRealPlayer(Tn)}}),He.forEach(Cn=>{Cn.parentPlayer?Cn.syncPlayerEvents(Cn.parentPlayer):Cn.destroy()});for(let Cn=0;Cn!na.destroyed);Mi.length?rl(this,En,Mi):this.processLeaveNode(En)}return ni.length=0,Ja.forEach(Cn=>{this.players.push(Cn),Cn.onDone(()=>{Cn.destroy();const En=this.players.indexOf(Cn);this.players.splice(En,1)}),Cn.play()}),Ja}elementContainsData(R,D){let B=!1;const He=D[Fi];return He&&He.setForRemoval&&(B=!0),this.playersByElement.has(D)&&(B=!0),this.playersByQueriedElement.has(D)&&(B=!0),this.statesByElement.has(D)&&(B=!0),this._fetchNamespace(R).elementContainsData(D)||B}afterFlush(R){this._flushFns.push(R)}afterFlushAnimationsDone(R){this._whenQuietFns.push(R)}_getPreviousPlayers(R,D,B,He,tt){let xt=[];if(D){const St=this.playersByQueriedElement.get(R);St&&(xt=St)}else{const St=this.playersByElement.get(R);if(St){const Ft=!tt||tt==fa;St.forEach(qt=>{qt.queued||!Ft&&qt.triggerName!=He||xt.push(qt)})}}return(B||He)&&(xt=xt.filter(St=>!(B&&B!=St.namespaceId||He&&He!=St.triggerName))),xt}_beforeAnimationBuild(R,D,B){const tt=D.element,xt=D.isRemovalTransition?void 0:R,St=D.isRemovalTransition?void 0:D.triggerName;for(const Ft of D.timelines){const qt=Ft.element,ln=qt!==tt,gn=hi(B,qt,[]);this._getPreviousPlayers(qt,ln,xt,St,D.toState).forEach(Ln=>{const Sn=Ln.getRealPlayer();Sn.beforeDestroy&&Sn.beforeDestroy(),Ln.destroy(),gn.push(Ln)})}Ki(tt,D.fromStyles)}_buildAnimation(R,D,B,He,tt,xt){const St=D.triggerName,Ft=D.element,qt=[],ln=new Set,gn=new Set,Rn=D.timelines.map(Sn=>{const On=Sn.element;ln.add(On);const ni=On[Fi];if(ni&&ni.removedBeforeQueried)return new de.ZN(Sn.duration,Sn.delay);const ri=On!==Ft,ji=function as(J){const R=[];return Io(J,R),R}((B.get(On)||nl).map(nr=>nr.getRealPlayer())).filter(nr=>!!nr.element&&nr.element===On),tr=tt.get(On),Bi=xt.get(On),Ca=Ni(0,this._normalizer,0,Sn.keyframes,tr,Bi),Br=this._buildPlayer(Sn,Ca,ji);if(Sn.subTimeline&&He&&gn.add(On),ri){const nr=new ma(R,St,On);nr.setRealPlayer(Br),qt.push(nr)}return Br});qt.forEach(Sn=>{hi(this.playersByQueriedElement,Sn.element,[]).push(Sn),Sn.onDone(()=>function is(J,R,D){let B=J.get(R);if(B){if(B.length){const He=B.indexOf(D);B.splice(He,1)}0==B.length&&J.delete(R)}return B}(this.playersByQueriedElement,Sn.element,Sn))}),ln.forEach(Sn=>Ui(Sn,_r));const Ln=Zn(Rn);return Ln.onDestroy(()=>{ln.forEach(Sn=>Sr(Sn,_r)),Di(Ft,D.toStyles)}),gn.forEach(Sn=>{hi(He,Sn,[]).push(Ln)}),Ln}_buildPlayer(R,D,B){return D.length>0?this.driver.animate(R.element,D,R.duration,R.delay,R.easing,B):new de.ZN(R.duration,R.delay)}}class ma{constructor(R,D,B){this.namespaceId=R,this.triggerName=D,this.element=B,this._player=new de.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(R){this._containsRealPlayer||(this._player=R,this._queuedCallbacks.forEach((D,B)=>{D.forEach(He=>ki(R,B,void 0,He))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(R.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(R){this.totalTime=R}syncPlayerEvents(R){const D=this._player;D.triggerCallback&&R.onStart(()=>D.triggerCallback("start")),R.onDone(()=>this.finish()),R.onDestroy(()=>this.destroy())}_queueEvent(R,D){hi(this._queuedCallbacks,R,[]).push(D)}onDone(R){this.queued&&this._queueEvent("done",R),this._player.onDone(R)}onStart(R){this.queued&&this._queueEvent("start",R),this._player.onStart(R)}onDestroy(R){this.queued&&this._queueEvent("destroy",R),this._player.onDestroy(R)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(R){this.queued||this._player.setPosition(R)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(R){const D=this._player;D.triggerCallback&&D.triggerCallback(R)}}function Ra(J){return J&&1===J.nodeType}function Xr(J,R){const D=J.style.display;return J.style.display=R??"none",D}function Po(J,R,D,B,He){const tt=[];D.forEach(Ft=>tt.push(Xr(Ft)));const xt=[];B.forEach((Ft,qt)=>{const ln=new Map;Ft.forEach(gn=>{const Rn=R.computeStyle(qt,gn,He);ln.set(gn,Rn),(!Rn||0==Rn.length)&&(qt[Fi]=Ia,xt.push(qt))}),J.set(qt,ln)});let St=0;return D.forEach(Ft=>Xr(Ft,tt[St++])),xt}function Lr(J,R){const D=new Map;if(J.forEach(St=>D.set(St,[])),0==R.length)return D;const He=new Set(R),tt=new Map;function xt(St){if(!St)return 1;let Ft=tt.get(St);if(Ft)return Ft;const qt=St.parentNode;return Ft=D.has(qt)?qt:He.has(qt)?1:xt(qt),tt.set(St,Ft),Ft}return R.forEach(St=>{const Ft=xt(St);1!==Ft&&D.get(Ft).push(St)}),D}function Ui(J,R){var D;null===(D=J.classList)||void 0===D||D.add(R)}function Sr(J,R){var D;null===(D=J.classList)||void 0===D||D.remove(R)}function rl(J,R,D){Zn(D).onDone(()=>J.processLeaveNode(R))}function Io(J,R){for(let D=0;DHe.add(tt)):R.set(J,B),D.delete(J),!0}class Oa{constructor(R,D,B){this.bodyNode=R,this._driver=D,this._normalizer=B,this._triggerCache={},this.onRemovalComplete=(He,tt)=>{},this._transitionEngine=new so(R,D,B),this._timelineEngine=new Kr(R,D,B),this._transitionEngine.onRemovalComplete=(He,tt)=>this.onRemovalComplete(He,tt)}registerTrigger(R,D,B,He,tt){const xt=R+"-"+He;let St=this._triggerCache[xt];if(!St){const Ft=[],ln=Mr(this._driver,tt,Ft,[]);if(Ft.length)throw function bt(J,R){return new d.vHH(3404,!1)}();St=function ts(J,R,D){return new Xs(J,R,D)}(He,ln,this._normalizer),this._triggerCache[xt]=St}this._transitionEngine.registerTrigger(D,He,St)}register(R,D){this._transitionEngine.register(R,D)}destroy(R,D){this._transitionEngine.destroy(R,D)}onInsert(R,D,B,He){this._transitionEngine.insertNode(R,D,B,He)}onRemove(R,D,B,He){this._transitionEngine.removeNode(R,D,He||!1,B)}disableAnimations(R,D){this._transitionEngine.markElementAsDisabled(R,D)}process(R,D,B,He){if("@"==B.charAt(0)){const[tt,xt]=Rr(B);this._timelineEngine.command(tt,D,xt,He)}else this._transitionEngine.trigger(R,D,B,He)}listen(R,D,B,He,tt){if("@"==B.charAt(0)){const[xt,St]=Rr(B);return this._timelineEngine.listen(xt,D,St,tt)}return this._transitionEngine.listen(R,D,B,He,tt)}flush(R=-1){this._transitionEngine.flush(R)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ha=(()=>{class J{constructor(D,B,He){this._element=D,this._startStyles=B,this._endStyles=He,this._state=0;let tt=J.initialStylesByElement.get(D);tt||J.initialStylesByElement.set(D,tt=new Map),this._initialStyles=tt}start(){this._state<1&&(this._startStyles&&Di(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Di(this._element,this._initialStyles),this._endStyles&&(Di(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(J.initialStylesByElement.delete(this._element),this._startStyles&&(Ki(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ki(this._element,this._endStyles),this._endStyles=null),Di(this._element,this._initialStyles),this._state=3)}}return J.initialStylesByElement=new WeakMap,J})();function La(J){let R=null;return J.forEach((D,B)=>{(function co(J){return"display"===J||"position"===J})(B)&&(R=R||new Map,R.set(B,D))}),R}class zr{constructor(R,D,B,He){this.element=R,this.keyframes=D,this.options=B,this._specialStyles=He,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=B.duration,this._delay=B.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(R=>R()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const R=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,R,this.options),this._finalKeyframe=R.length?R[R.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(R){const D=[];return R.forEach(B=>{D.push(Object.fromEntries(B))}),D}_triggerWebAnimation(R,D,B){return R.animate(this._convertKeyframesToObject(D),B)}onStart(R){this._originalOnStartFns.push(R),this._onStartFns.push(R)}onDone(R){this._originalOnDoneFns.push(R),this._onDoneFns.push(R)}onDestroy(R){this._onDestroyFns.push(R)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(R=>R()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(R=>R()),this._onDestroyFns=[])}setPosition(R){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=R*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const R=new Map;this.hasStarted()&&this._finalKeyframe.forEach((B,He)=>{"offset"!==He&&R.set(He,this._finished?B:gt(this.element,He))}),this.currentSnapshot=R}triggerCallback(R){const D="start"===R?this._onStartFns:this._onDoneFns;D.forEach(B=>B()),D.length=0}}class ol{validateStyleProperty(R){return!0}validateAnimatableStyleProperty(R){return!0}matchesElement(R,D){return!1}containsElement(R,D){return ot(R,D)}getParentElement(R){return ar(R)}query(R,D,B){return Nt(R,D,B)}computeStyle(R,D,B){return window.getComputedStyle(R)[D]}animate(R,D,B,He,tt,xt=[]){const Ft={duration:B,delay:He,fill:0==He?"both":"forwards"};tt&&(Ft.easing=tt);const qt=new Map,ln=xt.filter(Ln=>Ln instanceof zr);(function ke(J,R){return 0===J||0===R})(B,He)&&ln.forEach(Ln=>{Ln.currentSnapshot.forEach((Sn,On)=>qt.set(On,Sn))});let gn=function $r(J){return J.length?J[0]instanceof Map?J:J.map(R=>Fr(R)):[]}(D).map(Ln=>Wi(Ln));gn=function ft(J,R,D){if(D.size&&R.length){let B=R[0],He=[];if(D.forEach((tt,xt)=>{B.has(xt)||He.push(xt),B.set(xt,tt)}),He.length)for(let tt=1;ttxt.set(St,gt(J,St)))}}return R}(R,gn,qt);const Rn=function ea(J,R){let D=null,B=null;return Array.isArray(R)&&R.length?(D=La(R[0]),R.length>1&&(B=La(R[R.length-1]))):R instanceof Map&&(D=La(R)),D||B?new Ha(J,D,B):null}(R,gn);return new zr(R,gn,Ft,Rn)}}let os=(()=>{class J extends de._j{constructor(D,B){super(),this._nextAnimationId=0,this._renderer=D.createRenderer(B.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(D){const B=this._nextAnimationId.toString();this._nextAnimationId++;const He=Array.isArray(D)?(0,de.vP)(D):D;return Ro(this._renderer,null,B,"register",[He]),new ss(B,this._renderer)}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(d.FYo),d.LFG(N.K0))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();class ss extends de.LC{constructor(R,D){super(),this._id=R,this._renderer=D}create(R,D){return new ls(this._id,R,D||{},this._renderer)}}class ls{constructor(R,D,B,He){this.id=R,this.element=D,this._renderer=He,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",B)}_listen(R,D){return this._renderer.listen(this.element,`@@${this.id}:${R}`,D)}_command(R,...D){return Ro(this._renderer,this.element,this.id,R,D)}onDone(R){this._listen("done",R)}onStart(R){this._listen("start",R)}onDestroy(R){this._listen("destroy",R)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(R){this._command("setPosition",R)}getPosition(){var R,D;return null!==(R=null===(D=this._renderer.engine.players[+this.id])||void 0===D?void 0:D.getPosition())&&void 0!==R?R:0}}function Ro(J,R,D,B,He){return J.setProperty(R,`@@${D}:${B}`,He)}const Ai="@.disabled";let Na=(()=>{class J{constructor(D,B,He){this.delegate=D,this.engine=B,this._zone=He,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),B.onRemovalComplete=(tt,xt)=>{const St=xt?.parentNode(tt);St&&xt.removeChild(St,tt)}}createRenderer(D,B){const tt=this.delegate.createRenderer(D,B);if(!(D&&B&&B.data&&B.data.animation)){let ln=this._rendererCache.get(tt);return ln||(ln=new Oo("",tt,this.engine),this._rendererCache.set(tt,ln)),ln}const xt=B.id,St=B.id+"-"+this._currentId;this._currentId++,this.engine.register(St,D);const Ft=ln=>{Array.isArray(ln)?ln.forEach(Ft):this.engine.registerTrigger(xt,St,D,ln.name,ln)};return B.data.animation.forEach(Ft),new ka(this,St,tt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(D,B,He){D>=0&&DB(He)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(tt=>{const[xt,St]=tt;xt(St)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([B,He]))}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 J.\u0275fac=function(D){return new(D||J)(d.LFG(d.FYo),d.LFG(Oa),d.LFG(d.R0b))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();class Oo{constructor(R,D,B){this.namespaceId=R,this.delegate=D,this.engine=B,this.destroyNode=this.delegate.destroyNode?He=>D.destroyNode(He):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(R,D){return this.delegate.createElement(R,D)}createComment(R){return this.delegate.createComment(R)}createText(R){return this.delegate.createText(R)}appendChild(R,D){this.delegate.appendChild(R,D),this.engine.onInsert(this.namespaceId,D,R,!1)}insertBefore(R,D,B,He=!0){this.delegate.insertBefore(R,D,B),this.engine.onInsert(this.namespaceId,D,R,He)}removeChild(R,D,B){this.engine.onRemove(this.namespaceId,D,this.delegate,B)}selectRootElement(R,D){return this.delegate.selectRootElement(R,D)}parentNode(R){return this.delegate.parentNode(R)}nextSibling(R){return this.delegate.nextSibling(R)}setAttribute(R,D,B,He){this.delegate.setAttribute(R,D,B,He)}removeAttribute(R,D,B){this.delegate.removeAttribute(R,D,B)}addClass(R,D){this.delegate.addClass(R,D)}removeClass(R,D){this.delegate.removeClass(R,D)}setStyle(R,D,B,He){this.delegate.setStyle(R,D,B,He)}removeStyle(R,D,B){this.delegate.removeStyle(R,D,B)}setProperty(R,D,B){"@"==D.charAt(0)&&D==Ai?this.disableAnimations(R,!!B):this.delegate.setProperty(R,D,B)}setValue(R,D){this.delegate.setValue(R,D)}listen(R,D,B){return this.delegate.listen(R,D,B)}disableAnimations(R,D){this.engine.disableAnimations(R,D)}}class ka extends Oo{constructor(R,D,B,He){super(D,B,He),this.factory=R,this.namespaceId=D}setProperty(R,D,B){"@"==D.charAt(0)?"."==D.charAt(1)&&D==Ai?this.disableAnimations(R,B=void 0===B||!!B):this.engine.process(this.namespaceId,R,D.slice(1),B):this.delegate.setProperty(R,D,B)}listen(R,D,B){if("@"==D.charAt(0)){const He=function Va(J){switch(J){case"body":return document.body;case"document":return document;case"window":return window;default:return J}}(R);let tt=D.slice(1),xt="";return"@"!=tt.charAt(0)&&([tt,xt]=function ga(J){const R=J.indexOf(".");return[J.substring(0,R),J.slice(R+1)]}(tt)),this.engine.listen(this.namespaceId,He,tt,xt,St=>{this.factory.scheduleListenerCallback(St._data||-1,B,St)})}return this.delegate.listen(R,D,B)}}const ds=[{provide:de._j,useClass:os},{provide:no,useFactory:function Ho(){return new ha}},{provide:Oa,useClass:(()=>{class J extends Oa{constructor(D,B,He,tt){super(D.body,B,He)}ngOnDestroy(){this.flush()}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(N.K0),d.LFG(Fn),d.LFG(no),d.LFG(d.z2F))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})()},{provide:d.FYo,useFactory:function cs(J,R,D){return new Na(J,R,D)},deps:[e.se,Oa,d.R0b]}],Fa=[{provide:Fn,useFactory:()=>new ol},{provide:d.QbO,useValue:"BrowserAnimations"},...ds],Ua=[{provide:Fn,useClass:cn},{provide:d.QbO,useValue:"NoopAnimations"},...ds];let _a=(()=>{class J{static withConfig(D){return{ngModule:J,providers:D.disableAnimations?Ua:Fa}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({providers:Fa,imports:[e.b2]}),J})(),ho=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({providers:[b.e8],imports:[N.ez]}),J})();var Aa=h(81847),kl=h(4732),ll=h(94856),ei=h(55857),Vl=h(37240),Fl=h(15592),Ul=h(75234),jl=h(37380),cl=h(34904),Gl=h(85243),dl=h(68056),ja=h(24219),Zl=h(25828),ul=h(10369),yi=h(14336),Ga=h(25309),Za=h(86353),zl=h(3246),hl=h(57788),ur=h(80774),X=h(25610),re=h(61639);let me=(()=>{class J{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Aa.y.id,kl.G.id,ll.c.id,dl.z.id,ja.z.id,ul.w.id,zl.T.id,Ul.y.id,Fl.u.id,Vl.q.id,re.C.id,ei.W.id,yi.Z.id,jl.o.id,cl.f.id,X._.id,Gl.j.id,Zl.t.id,hl.g.id,ur.F.id,Ga.Y.id,Za.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(D,B){return D.routeConfig===B.routeConfig}retrieve(D){const B=this.getKey(D);return this.handlers.has(B)?this.handlers.get(B).routeHandle:null}shouldAttach(D){if(!this.isUserNavigatingBack||!D.component)return!1;const B=this.handlers.get(this.getKey(D));return B&&this.getCurrentTimestamp()-B.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(D),{routeHandle:B,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(D){this.isUserNavigatingBack="back"===D}getComponentId(D){return D.id}getKey(D){return D.pathFromRoot.map(B=>B.url.map(He=>He.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();const Be=new d.OlP("perun-api-service");let ut=(()=>{class J{constructor(D,B,He,tt,xt){this.http=D,this.storeService=B,this.authzSevice=He,this.titleService=tt,this.utilsService=xt}initializeColors(D,B){return new Promise(He=>{B.forEach(tt=>{const xt=this.storeService.getProperty("theme")[tt.configValue];document.documentElement.style.setProperty(tt.cssVariable,xt)}),D.forEach(tt=>{const xt=this.storeService.getProperty("theme")[tt.configValue];document.documentElement.style.setProperty(tt.cssVariable,xt),this.setEntityTheme(tt.entity,xt)}),He()})}setEntityTheme(D,B){const He=function wt(J){return[Rt(tinycolor(J).lighten(52),"50"),Rt(tinycolor(J).lighten(37),"100"),Rt(tinycolor(J).lighten(26),"200"),Rt(tinycolor(J).lighten(12),"300"),Rt(tinycolor(J).lighten(6),"400"),Rt(tinycolor(J),"500"),Rt(tinycolor(J).darken(6),"600"),Rt(tinycolor(J).darken(12),"700"),Rt(tinycolor(J).darken(18),"800"),Rt(tinycolor(J).darken(24),"900"),Rt(tinycolor(J).lighten(50).saturate(30),"A100"),Rt(tinycolor(J).lighten(30).saturate(30),"A200"),Rt(tinycolor(J).lighten(10).saturate(15),"A400"),Rt(tinycolor(J).lighten(5).saturate(5),"A700")]}(B);for(const tt of He){const Ft=`--${D}-theme-primary-contrast-${tt.name}`,qt=tt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${D}-theme-primary-${tt.name}`,`${tt.red},${tt.green},${tt.blue}`),document.documentElement.style.setProperty(Ft,qt)}}loadAppDefaultConfig(){return new Promise(D=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(B=>{this.storeService.setDefaultConfig(B),D()})})}loadAppInstanceConfig(){return new Promise(D=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(B=>{this.storeService.setInstanceConfig(B);const He=document.location.hostname;B?.brandings?.[He]&&this.storeService.setBanding(He),D()},()=>{D()})})}getNoCacheHeaders(){return new $.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(D=>{const B=document.querySelector("link[rel*='icon']")||document.createElement("link");B.type="image/x-icon",B.rel="shortcut icon",B.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(B),D()})}setApiUrl(){return new Promise(D=>{let B=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(B=B.replace("oauth","ba")),this.authzSevice.configuration.basePath=B,this.titleService.setTitle(this.storeService.getProperty("document_title").en),D()})}loadAppsConfig(){return new Promise((D,B)=>{this.utilsService.getAppsConfig().subscribe(He=>{this.storeService.setAppsConfig(He),D()},He=>B(He))})}}return J.\u0275fac=function(D){return new(D||J)(d.LFG($.eN),d.LFG(b.d6),d.LFG(g.Ct),d.LFG(e.Dx),d.LFG(g.FW))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Rt(J,R){const D=tinycolor(J),B=D.toRgb();return{name:R,hex:D.toHexString(),darkContrast:D.isLight(),red:B.r,green:B.g,blue:B.b}}let Gt=(()=>{class J{constructor(D,B){this.data=D,this.location=B}redirect(){this.location.go("/"),location.reload()}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(A.WI),d.Y36(N.Ye))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,B){1&D&&(d.TgZ(0,"h2"),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"p"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"button",0),d.NdJ("click",function(){return B.redirect()}),d._uU(8),d.ALo(9,"translate"),d.qZA()()),2&D&&(d.xp6(1),d.hij(" ",d.lcZ(2,3,B.data.title),"\n"),d.xp6(3),d.hij(" ",d.lcZ(5,5,B.data.message),"\n"),d.xp6(4),d.hij(" ",d.lcZ(9,7,B.data.action)," "))},dependencies:[U.X$]}),J})(),on=(()=>{class J{constructor(D,B){this.dialogRef=D,this.data=B}refresh(){location.reload()}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(A.so),d.Y36(A.WI))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,B){1&D&&(d.TgZ(0,"h2"),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"p"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"button",0),d.NdJ("click",function(){return B.refresh()}),d._uU(8),d.ALo(9,"translate"),d.qZA()()),2&D&&(d.xp6(1),d.hij(" ",d.lcZ(2,3,B.data.title),"\n"),d.xp6(3),d.hij(" ",d.lcZ(5,5,B.data.message),"\n"),d.xp6(4),d.hij(" ",d.lcZ(9,7,B.data.action)," "))},dependencies:[U.X$]}),J})();var _n=h(83905);let dn=(()=>{class J{constructor(D,B,He,tt,xt,St,Ft){this.initAuthService=D,this.appConfigService=B,this.authzSevice=He,this.dialog=tt,this.location=xt,this.guiAuthResolver=St,this.mfaHandlerService=Ft,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(D=>{if("Invalid path"!==D)throw this.mfaHandlerService.catchNoMfaTokenError(D?.params?.error),console.error(D),this.location.go("/"),location.reload(),D;this.handleErr(D)}).then(D=>D?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(B=>this.handleErr(B)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(D){const B=(0,y.kZ)();throw"Invalid path"===D?(B.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Gt,B)):(B.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===D.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":D.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(on,B)),console.error(D),D}loadPolicies(){return(0,_n.z)(this.authzSevice.getAllPolicies()).then(D=>this.guiAuthResolver.setPerunPolicies(D))}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(b.v0),d.LFG(ut),d.LFG(g.Ct),d.LFG(A.uw),d.LFG(N.Ye),d.LFG(b.x4),d.LFG(b.hy))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),wn=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[N.ez,A.Is,he.ot,U.aw]}),J})();var ti=h(40445),Si=h(84080),Ti=h(83353),bi=h(21281),Yi=h(77579),hr=h(56451),Li=h(54968),Ji=h(69751),po=h(66406),fo=h(39646),Hh=h(95698),Lo=h(54482),pl=h(72733),Qc=h(22529),ta=h(82722),Kc=h(28746),Wl=h(71345);const Bo=new d.OlP("SMOOTH_SCROLL_OPTIONS");let mo=(()=>{class J{constructor(D,B,He){this._document=D,this._platform=B,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...He}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(D,B,He){D.scrollLeft=B,D.scrollTop=He}_getElement(D,B){return"string"==typeof D?(B||this._document).querySelector(D):(0,bi.fI)(D)}_initSmoothScroll(D){return this._onGoingScrolls.has(D)&&this._onGoingScrolls.get(D).next(),this._onGoingScrolls.set(D,new Yi.x).get(D)}_isFinished(D,B,He){return D.currentX!==D.x||D.currentY!==D.y||(B.next(),He(),!1)}_interrupted(D,B){return(0,hr.T)((0,Li.R)(D,"wheel",{passive:!0,capture:!0}),(0,Li.R)(D,"touchmove",{passive:!0,capture:!0}),B).pipe((0,Hh.q)(1))}_destroy(D,B){B.complete(),this._onGoingScrolls.delete(D)}_step(D){return new Ji.y(B=>{let He=(this._now()-D.startTime)/D.duration;He=He>1?1:He;const tt=D.easing(He);D.currentX=D.startX+(D.x-D.startX)*tt,D.currentY=D.startY+(D.y-D.startY)*tt,this._scrollElement(D.scrollable,D.currentX,D.currentY),po.Z.schedule(()=>B.next(D))})}_applyScrollToOptions(D,B){if(!B.duration)return this._scrollElement(D,B.left,B.top),Promise.resolve();const He=this._initSmoothScroll(D),tt={scrollable:D,startTime:this._now(),startX:D.scrollLeft,startY:D.scrollTop,x:null==B.left?D.scrollLeft:~~B.left,y:null==B.top?D.scrollTop:~~B.top,duration:B.duration,easing:Wl(B.easing.x1,B.easing.y1,B.easing.x2,B.easing.y2)};return new Promise(xt=>{(0,fo.of)(null).pipe(function hs(J,R=1/0,D){return R=(R||0)<1?1/0:R,(0,Lo.e)((B,He)=>(0,pl.p)(B,He,J,R,void 0,!0,D))}(()=>this._step(tt).pipe((0,Qc.o)(St=>this._isFinished(St,He,xt)))),(0,ta.R)(this._interrupted(D,He)),(0,Kc.x)(()=>this._destroy(D,He))).subscribe()})}scrollTo(D,B){if((0,N.NF)(this._platform)){const He=this._getElement(D),tt="rtl"===getComputedStyle(He).direction,xt=(0,Ti._i)(),St={...this._defaultOptions,...B,left:B.left??(tt?B.end:B.start),right:B.right??(tt?B.start:B.end)};return null!=St.bottom&&(St.top=He.scrollHeight-He.clientHeight-St.bottom),tt&&0!==xt?(null!=St.left&&(St.right=He.scrollWidth-He.clientWidth-St.left),2===xt?St.left=St.right:1===xt&&(St.left=St.right?-St.right:St.right)):null!=St.right&&(St.left=He.scrollWidth-He.clientWidth-St.right),this._applyScrollToOptions(He,St)}return Promise.resolve()}scrollToElement(D,B,He={}){const tt=this._getElement(D),xt=this._getElement(B,tt),St={...He,left:xt.offsetLeft+(He.left||0),top:xt.offsetTop+(He.top||0)};return xt?this.scrollTo(tt,St):Promise.resolve()}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(N.K0),d.LFG(d.Lbi),d.LFG(Bo,8))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Pi=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({}),J})();var Yl=h(61135),Jl=h(50727),fl=h(60515),wi=h(18505),Pr=h(54004),ps=h(63900),$l=h(78372),No=h(71884);function ba(...J){const R=J.length;if(0===R)throw new Error("list of properties cannot be empty.");return(0,Pr.U)(D=>{let B=D;for(let He=0;He{J.onselectstart=()=>!1})}function Xl(J){return(0,wi.b)(()=>{J.onselectstart=null})}function za(){return(0,wi.b)(J=>J.stopPropagation())}function ms(J,R){return J.clientX>=R.left&&J.clientX<=R.left+R.width&&J.clientY>=R.top&&J.clientY<=R.top+R.height}let ml=(()=>{class J{constructor(D){this.viewPort=D,this.nativeElement=D.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientHeight)||0}get contentWidth(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientWidth)||0}activatePointerEvents(D,B){this.hovered=new Ji.y(He=>{const tt=(0,Li.R)(this.nativeElement,"mousemove",{passive:!0}),xt=D?tt:tt.pipe(za()),St=(0,Li.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Pr.U)(()=>!1));(0,hr.T)(xt,St).pipe((0,wi.b)(Ft=>He.next(Ft)),(0,ta.R)(B)).subscribe()}),this.clicked=new Ji.y(He=>{const tt=(0,Li.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,wi.b)(St=>He.next(St))),xt=(0,Li.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,wi.b)(()=>He.next(!1)));tt.pipe((0,ps.w)(()=>xt),(0,ta.R)(B)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(D){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${D}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(D){this.nativeElement.scrollTop=D}scrollXTo(D){this.nativeElement.scrollLeft=D}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollViewport",""]]}),J})(),Wr=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275dir=d.lG2({type:J}),J})();const ec=new d.OlP("NG_SCROLLBAR_OPTIONS"),tc={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let nc=(()=>{class J{constructor(D){this.globalOptions=D?{...tc,...D}:tc,this.rtlScrollAxisType=(0,Ti._i)()}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(ec,8))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),gs=(()=>{class J{constructor(D,B,He){this.document=D,this.manager=B,this.platform=He,this._scrollbarSize=new Yl.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),He.isBrowser&&(0,Li.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,$l.b)(this.manager.globalOptions.windowResizeDebounce),(0,Pr.U)(()=>this.getNativeScrollbarSize()),(0,No.x)(),(0,wi.b)(tt=>this._scrollbarSize.next(tt))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const D=this.document.createElement("div");D.className="ng-scrollbar-measure",D.style.left="0px",D.style.overflow="scroll",D.style.position="fixed",D.style.top="-9999px",this.document.body.appendChild(D);const B=D.getBoundingClientRect().right;return this.document.body.removeChild(D),B}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(N.K0),d.LFG(nc),d.LFG(Ti.t4))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),ic=(()=>{class J{constructor(D,B,He){this.renderer=B,this.hideNativeScrollbar=He,this._subscriber=Jl.w0.EMPTY,this._subscriber=He.scrollbarSize.subscribe(tt=>{this.renderer.setStyle(D.nativeElement,"--native-scrollbar-size",`-${tt}px`,d.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(gs))},J.\u0275dir=d.lG2({type:J,selectors:[["","hideNativeScrollbar",""]]}),J})(),nd=(()=>{class J{constructor(D){this.el=D}set ngAttr(D){for(const[B,He]of Object.entries(D))this.el.nativeElement.setAttribute(B,He)}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq))},J.\u0275dir=d.lG2({type:J,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),J})(),rc=(()=>{class J{constructor(D,B,He){if(this.zone=D,this.platform=B,this.scrollbar=He,this._disabled=!1,this._currentSubscription=null,this.event=new d.vpe,!He)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,bi.su)(D),this._subscribe()}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const D=new Ji.y(B=>{this._resizeObserver=new ResizeObserver(He=>B.next(He)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?D.pipe((0,$l.b)(this._debounce)):D).subscribe(this.event)})}}_unsubscribe(){var D,B;null===(D=this._resizeObserver)||void 0===D||D.disconnect(),null===(B=this._currentSubscription)||void 0===B||B.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.R0b),d.Y36(Ti.t4),d.Y36(Wr))},J.\u0275dir=d.lG2({type:J,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),J})(),ac=(()=>{class J{constructor(D,B,He){this.cmp=D,this.trackElement=B,this.document=He}get clicked(){const D=(0,Li.R)(this.trackElement,"mousedown",{passive:!0}).pipe(za(),_o(this.document)),B=(0,Li.R)(this.document,"mouseup",{passive:!0}).pipe(za(),Xl(this.document),(0,ps.w)(()=>fl.E));return(0,hr.T)(D,B)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(D,B,He){return(0,fo.of)(D).pipe(ba(this.pageProperty),(0,Pr.U)(tt=>(tt-this.offset-B/2)/this.size*He),(0,wi.b)(tt=>{this.cmp.scrollTo({...this.mapToScrollToOption(tt),duration:(0,bi.su)(this.cmp.trackClickScrollDuration)})}))}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(HTMLElement),d.Y36(Document))},J.\u0275dir=d.lG2({type:J}),J})(),_s=(()=>{class J extends ac{constructor(D,B,He){super(D,B.nativeElement,He),this.cmp=D,this.document=He}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(D){return{left:D}}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(d.SBq),d.Y36(N.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarTrackX",""]],features:[d.qOj]}),J})(),oc=(()=>{class J extends ac{constructor(D,B,He){super(D,B.nativeElement,He),this.cmp=D,this.document=He}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(D){return{top:D}}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(d.SBq),d.Y36(N.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarTrackY",""]],features:[d.qOj]}),J})(),As=(()=>{class J{constructor(D,B,He,tt){this.cmp=D,this.track=B,this.thumbElement=He,this.document=tt,this._dragging=new Yi.x,this.dragging=this._dragging.pipe((0,No.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,Li.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(za())}update(){const D=function id(J,R,D){return Math.max(~~(J/R*J),D)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),B=function sc(J,R,D){return J*D/R}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);po.Z.schedule(()=>this.updateStyles(this.handleDirection(B,this.trackMax),D))}dragged(D){let B,He;const tt=(0,fo.of)(D).pipe(_o(this.document),(0,wi.b)(()=>{B=this.trackMax,He=this.viewportScrollMax,this.setDragging(!0)})),xt=(0,Li.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(za()),St=(0,Li.R)(this.document,"mouseup",{capture:!0}).pipe(za(),Xl(this.document),(0,wi.b)(()=>this.setDragging(!1)));return tt.pipe(ba(this.pageProperty),(0,Pr.U)(Ft=>Ft-this.dragStartOffset),(0,ql.z)(Ft=>xt.pipe(ba(this.clientProperty),(0,Pr.U)(qt=>qt-this.track.offset),(0,Pr.U)(qt=>He*(qt-Ft)/B),(0,Pr.U)(qt=>this.handleDrag(qt,He)),(0,wi.b)(qt=>this.scrollTo(qt)),(0,ta.R)(St))))}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(ac),d.Y36(HTMLElement),d.Y36(Document))},J.\u0275dir=d.lG2({type:J,outputs:{dragging:"dragging"}}),J})(),Fo=(()=>{class J extends As{constructor(D,B,He,tt,xt){super(D,B,He.nativeElement,tt),this.cmp=D,this.track=B,this.element=He,this.document=tt,this.dir=xt}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(D,B){this.thumbElement.style.width=`${B}px`,this.thumbElement.style.transform=`translate3d(${D}px, 0, 0)`}handleDrag(D,B){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return D-B;if(2===this.cmp.manager.rtlScrollAxisType)return B-D}return D}handleDirection(D,B){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-D;if(0===this.cmp.manager.rtlScrollAxisType)return D-B}return D}setDragging(D){this.cmp.setDragging({horizontalDragging:D})}scrollTo(D){this.cmp.viewport.scrollXTo(D)}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(_s),d.Y36(d.SBq),d.Y36(N.K0),d.Y36(ti.Is))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarThumbX",""]],features:[d.qOj]}),J})(),bs=(()=>{class J extends As{constructor(D,B,He,tt){super(D,B,He.nativeElement,tt),this.cmp=D,this.track=B,this.element=He,this.document=tt}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(D,B){this.thumbElement.style.height=`${B}px`,this.thumbElement.style.transform=`translate3d(0px, ${D}px, 0)`}handleDrag(D){return D}handleDirection(D){return D}setDragging(D){this.cmp.setDragging({verticalDragging:D})}scrollTo(D){this.cmp.viewport.scrollYTo(D)}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(Wr),d.Y36(oc),d.Y36(d.SBq),d.Y36(N.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarThumbY",""]],features:[d.qOj]}),J})(),Wa=(()=>{class J{constructor(D,B,He,tt,xt){this.el=D,this.cmp=B,this.platform=He,this.document=tt,this.zone=xt,this.destroyed=new Yi.x}activatePointerEvents(){let D,B,He;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Yi.x,this.viewportThumbClicked=new Yi.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),D=this.viewportThumbClicked,B=this.viewportTrackClicked,He=this.cmp.viewport.hovered.pipe((0,Pr.U)(tt=>!!tt&&ms(tt,this.el.getBoundingClientRect())),(0,No.x)(),(0,wi.b)(tt=>this.document.onselectstart=tt?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,wi.b)(tt=>{tt?ms(tt,this.thumb.clientRect)?this.viewportThumbClicked.next(tt):ms(tt,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(tt)):this.cmp.setClicked(!1)}),(0,ta.R)(this.destroyed)).subscribe()):(D=this.thumb.clicked,B=this.track.clicked,He=this.hovered),(0,hr.T)(He.pipe((0,wi.b)(tt=>this.setHovered(tt))),D.pipe((0,ps.w)(tt=>this.thumb.dragged(tt))),B.pipe((0,ps.w)(tt=>this.track.onTrackClicked(tt,this.thumb.size,this.viewportScrollSize))))}get hovered(){const D=(0,Li.R)(this.el,"mouseenter",{passive:!0}).pipe(za(),(0,Pr.U)(()=>!0)),B=(0,Li.R)(this.el,"mouseleave",{passive:!0}).pipe(za(),(0,Pr.U)(()=>!1));return(0,hr.T)(D,B)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,ta.R)(this.destroyed)).subscribe(),(0,hr.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,wi.b)(()=>{var D;return null===(D=this.thumb)||void 0===D?void 0:D.update()}),(0,ta.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(HTMLElement),d.Y36(Wr),d.Y36(Ti.t4),d.Y36(Document),d.Y36(d.R0b))},J.\u0275dir=d.lG2({type:J}),J})(),rd=(()=>{class J extends Wa{constructor(D,B,He,tt,xt){super(D.nativeElement,B,He,tt,xt),this.cmp=B,this.platform=He,this.document=tt,this.zone=xt}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(D){this.cmp.setHovered({verticalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq),d.Y36(Wr),d.Y36(Ti.t4),d.Y36(N.K0),d.Y36(d.R0b))},J.\u0275cmp=d.Xpm({type:J,selectors:[["scrollbar-y"]],viewQuery:function(D,B){if(1&D&&(d.Gf(oc,7),d.Gf(bs,7)),2&D){let He;d.iGM(He=d.CRH())&&(B.track=He.first),d.iGM(He=d.CRH())&&(B.thumb=He.first)}},hostVars:2,hostBindings:function(D,B){2&D&&d.ekj("scrollbar-control",!0)},features:[d.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(D,B){1&D&&(d.TgZ(0,"div",0),d._UZ(1,"div",1),d.qZA()),2&D&&(d.Gre("ng-scrollbar-track ",B.cmp.trackClass,""),d.xp6(1),d.Gre("ng-scrollbar-thumb ",B.cmp.thumbClass,""))},dependencies:[bs,oc],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),J})(),ad=(()=>{class J extends Wa{constructor(D,B,He,tt,xt){super(D.nativeElement,B,He,tt,xt),this.cmp=B,this.platform=He,this.document=tt,this.zone=xt}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(D){this.cmp.setHovered({horizontalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq),d.Y36(Wr),d.Y36(Ti.t4),d.Y36(N.K0),d.Y36(d.R0b))},J.\u0275cmp=d.Xpm({type:J,selectors:[["scrollbar-x"]],viewQuery:function(D,B){if(1&D&&(d.Gf(_s,7),d.Gf(Fo,7)),2&D){let He;d.iGM(He=d.CRH())&&(B.track=He.first),d.iGM(He=d.CRH())&&(B.thumb=He.first)}},hostVars:2,hostBindings:function(D,B){2&D&&d.ekj("scrollbar-control",!0)},features:[d.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(D,B){1&D&&(d.TgZ(0,"div",0),d._UZ(1,"div",1),d.qZA()),2&D&&(d.Gre("ng-scrollbar-track ",B.cmp.trackClass,""),d.xp6(1),d.Gre("ng-scrollbar-thumb ",B.cmp.thumbClass,""))},dependencies:[Fo,_s],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),J})(),Bh=(()=>{class J{constructor(D,B,He,tt,xt,St){this.el=D,this.zone=B,this.changeDetectorRef=He,this.dir=tt,this.smoothScroll=xt,this.manager=St,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new d.vpe,this.state={},this.destroyed=new Yi.x}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(D){this._sensorDisabled=(0,bi.Ig)(D)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(D){this._pointerEventsDisabled=(0,bi.Ig)(D)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(D){this._viewportPropagateMouseMove=(0,bi.Ig)(D)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(D){this._autoHeightDisabled=(0,bi.Ig)(D)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(D){this._autoWidthDisabled=(0,bi.Ig)(D)}get nativeElement(){return this.el.nativeElement}updateState(){let D=!1,B=!1,He=!1,tt=!1;("all"===this.track||"vertical"===this.track)&&(He=this.viewport.scrollHeight>this.viewport.clientHeight,D="always"===this.visibility||He),("all"===this.track||"horizontal"===this.track)&&(tt=this.viewport.scrollWidth>this.viewport.clientWidth,B="always"===this.visibility||tt),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:D,horizontalUsed:B,isVerticallyScrollable:He,isHorizontallyScrollable:tt})}setState(D){this.state={...this.state,...D},this.changeDetectorRef.detectChanges()}getScrolledByDirection(D){let B;return this.scrolled.pipe((0,wi.b)(He=>B=He),ba("target",D),(0,ko.G)(),(0,Xc.h)(([He,tt])=>He!==tt),(0,Pr.U)(()=>B))}setHovered(D){this.zone.run(()=>this.setState({...D}))}setDragging(D){this.zone.run(()=>this.setState({...D}))}setClicked(D){this.zone.run(()=>this.setState({scrollbarClicked:D}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let D=(0,Li.R)(this.viewport.nativeElement,"scroll",{passive:!0});D=this.scrollAuditTime?D.pipe((0,Ql.e)(this.scrollAuditTime)):D,this.scrolled=D.pipe((0,ta.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(D){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,wi.b)(()=>this.update()),(0,ta.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(D){return this.smoothScroll.scrollTo(this.viewport.nativeElement,D)}scrollToElement(D,B){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,D,B)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.sBO),d.Y36(ti.Is),d.Y36(mo),d.Y36(nc))},J.\u0275cmp=d.Xpm({type:J,selectors:[["ng-scrollbar"]],contentQueries:function(D,B,He){if(1&D&&d.Suo(He,ml,7),2&D){let tt;d.iGM(tt=d.CRH())&&(B.customViewPort=tt.first)}},viewQuery:function(D,B){if(1&D&&(d.Gf(Vo,5,d.SBq),d.Gf(fs,5,d.SBq),d.Gf(ml,7)),2&D){let He;d.iGM(He=d.CRH())&&(B.scrollbarY=He.first),d.iGM(He=d.CRH())&&(B.scrollbarX=He.first),d.iGM(He=d.CRH())&&(B.defaultViewPort=He.first)}},hostVars:2,hostBindings:function(D,B){2&D&&d.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[d._Bn([{provide:Wr,useExisting:J}]),d.TTD],ngContentSelectors:go,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(D,B){1&D&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.NdJ("resizeSensor",function(){return B.update()}),d.TgZ(2,"div",2)(3,"div"),d.Hsn(4),d.qZA()()(),d.YNc(5,td,3,2,"ng-container",3),d.qZA()),2&D&&(d.Q6J("ngAttr",B.state),d.xp6(1),d.Q6J("sensorDebounce",B.sensorDebounce)("sensorDisabled",B.sensorDisabled),d.xp6(4),d.Q6J("ngIf",!B.disabled))},dependencies:[N.O5,ml,ic,nd,rc,rd,ad],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),J})(),Cs=(()=>{class J{static withConfig(D){return{ngModule:J,providers:[{provide:ec,useValue:D}]}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[N.ez,ti.vT,Si.eL,Ti.ud,Pi]}),J})();var vs=h(51214),Es=h(67376),gl=h(22465);function lc(J,R){if(1&J&&(d.TgZ(0,"div",9),d._UZ(1,"perun-web-apps-notification",10),d.qZA()),2&J){const D=R.$implicit;d.xp6(1),d.Q6J("data",D)("inDialog",!0)}}function Ya(J,R){if(1&J&&(d.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),d.YNc(2,lc,2,2,"div",8),d.qZA()()),2&J){const D=d.oxw();d.xp6(2),d.Q6J("cdkVirtualForOf",D.notifications)}}function od(J,R){1&J&&(d.TgZ(0,"perun-web-apps-alert",11),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let sd=(()=>{class J{constructor(D,B){this.dialogRef=D,this.notificationStorageService=B}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(A.so),d.Y36(b.SZ))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.YNc(3,Ya,3,1,"div",1),d.YNc(4,od,3,3,"perun-web-apps-alert",2),d.TgZ(5,"div",3)(6,"button",4),d.NdJ("click",function(){return B.onClear()}),d._uU(7),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"button",5),d.NdJ("click",function(){return B.onCancel()}),d._uU(10),d.ALo(11,"translate"),d.qZA()()),2&D&&(d.xp6(1),d.Oqu(d.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),d.xp6(2),d.Q6J("ngIf",0!==B.notifications.length),d.xp6(1),d.Q6J("ngIf",0===B.notifications.length),d.xp6(3),d.hij(" ",d.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),d.xp6(3),d.hij(" ",d.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},dependencies:[N.O5,he.lW,A.uh,A.H8,Es.xd,Es.x0,Es.N7,I.w,gl.c,U.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),J})();var ld=h(42673),cd=h(52314);function dd(J,R){1&J&&(d.TgZ(0,"div",10)(1,"span",11),d._uU(2," ~ \u{1f5f2}\xa0 "),d.qZA(),d.TgZ(3,"span",12),d._uU(4," DEVEL "),d.qZA(),d.TgZ(5,"span",11),d._uU(6," \xa0\u{1f5f2} ~ "),d.qZA()())}const Ir=function(J){return{color:J}},Ao=function(){return["/home"]};let ud=(()=>{class J{constructor(D,B,He,tt,xt,St){this.storeService=D,this.dialog=B,this.store=He,this.sanitizer=tt,this.notificationStorageService=xt,this.otherApplicationService=St,this.logoutEnabled=!0,this.navTextColor=this.store.getProperty("theme").nav_text_color,this.iconColor=this.store.getProperty("theme").nav_icon_color,this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.getProperty("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.getProperty("logo")),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.profileLabel=this.storeService.getProperty("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const D=(0,y.kZ)();D.width="520px",this.dialog.open(sd,D)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(b.d6),d.Y36(A.uw),d.Y36(b.d6),d.Y36(e.H7),d.Y36(b.SZ),d.Y36(b.jq))},J.\u0275cmp=d.Xpm({type:J,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(D,B){1&D&&(d.TgZ(0,"div",0)(1,"button",1),d.NdJ("click",function(){return B.sideNav.toggle()}),d.TgZ(2,"mat-icon",2),d._uU(3," menu "),d.qZA()(),d.TgZ(4,"a",3),d._UZ(5,"div",4),d.qZA()(),d.YNc(6,dd,7,0,"div",5),d.TgZ(7,"div",6)(8,"button",7),d.NdJ("click",function(){return B.showNotificationHistory()}),d.ALo(9,"translate"),d.TgZ(10,"mat-icon",8),d._uU(11),d.qZA()(),d._UZ(12,"perun-web-apps-header-menu",9),d.qZA()),2&D&&(d.Q6J("ngStyle",d.VKq(19,Ir,B.navTextColor)),d.xp6(2),d.Q6J("ngStyle",d.VKq(21,Ir,B.iconColor)),d.xp6(2),d.Q6J("routerLink",d.DdM(23,Ao)),d.xp6(1),d.Q6J("innerHTML",B.logo,d.oJD),d.xp6(1),d.Q6J("ngIf",B.isDevel),d.xp6(1),d.Q6J("ngStyle",d.VKq(24,Ir,B.navTextColor)),d.xp6(1),d.Q6J("matTooltip",d.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),d.xp6(2),d.s9C("matBadge",B.getNewNotificationsCount()>5?"5+":B.getNewNotificationsCount()),d.Q6J("ngStyle",d.VKq(26,Ir,B.iconColor))("matBadgeHidden",0===B.getNewNotificationsCount()),d.xp6(1),d.hij(" ",B.getNewNotificationsCount()?"notifications_active":"notifications"," "),d.xp6(1),d.Q6J("iconColor",B.iconColor)("label",B.profileLabel)("textColor",B.navTextColor)("logoutEnabled",B.logoutEnabled)("url",B.profileUrl)("user",B.principal.user))},dependencies:[N.O5,N.PC,_.yS,Q.Hw,he.lW,ce.gM,ld.k,cd.X,U.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}"]}),J})();var hd=h(73228),pd=h(36769);function fd(J,R){if(1&J){const D=d.EpF();d.TgZ(0,"div")(1,"perun-web-apps-notification",2),d.NdJ("closeNotification",function(){const tt=d.CHM(D).index,xt=d.oxw();return d.KtG(xt.removeNotification(tt))}),d.qZA()()}if(2&J){const D=R.$implicit;d.Q6J("@flyInOut",void 0),d.xp6(1),d.Q6J("data",D)("newNotification",!0)}}const md=function(J){return{top:J}};let gd=(()=>{class J{constructor(D,B){this.notificator=D,this.notificationStorageService=B,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(He=>{this.processNotification(He)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(D){this.notifications.splice(D,1)}processNotification(D){this.notifications.push(D),this.notificationStorageService.storeNotification(D)}}return J.\u0275fac=function(D){return new(D||J)(d.Y36(b.V6),d.Y36(b.SZ))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-notificator"]],hostBindings:function(D,B){1&D&&d.NdJ("resize",function(tt){return B.getScreenSize(tt)},!1,d.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(D,B){1&D&&(d.TgZ(0,"div",0),d.YNc(1,fd,2,3,"div",1),d.qZA()),2&D&&(d.Q6J("ngStyle",d.VKq(2,md,B.getNotificatorTop())),d.xp6(1),d.Q6J("ngForOf",B.notifications))},dependencies:[N.sg,N.PC,gl.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:[pd.Pd]}}),J})();const cc={provide:$.TP,useExisting:(0,d.Gpc)(()=>b.yC),multi:!0};function _d(J){return new Ie(J,"./assets/i18n/",".json")}function Ad(J){const R={basePath:J.getProperty("api_url")};return new g.VK(R)}const bd=J=>()=>J.initialize();let Cd=(()=>{class J{constructor(D,B){this.customIconService=D,this.translate=B,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return J.\u0275fac=function(D){return new(D||J)(d.LFG(b.EB),d.LFG(U.sK))},J.\u0275mod=d.oAB({type:J,bootstrap:[Qe.y]}),J.\u0275inj=d.cJS({providers:[dn,{provide:d.ip1,useFactory:bd,multi:!0,deps:[dn]},{provide:g.VK,useFactory:Ad,deps:[b.d6]},{provide:_.wN,useClass:me},b.EB,{provide:Be,useClass:b.sM},b.yC,cc,{provide:vs.Hy,useFactory:()=>localStorage}],imports:[_a,e.b2,$.JF,ye.m,ho,Oe,Q.Ps,wn,U.aw.forRoot({loader:{provide:U.Zw,useFactory:_d,deps:[$.eN]}}),g.au,f.ez,t,Cs.withConfig({autoWidthDisabled:!1,visibility:"hover"}),vs.zr.forRoot()]}),J})();d.B6R(Qe.y,function(){return[N.O5,N.PC,ud,_.lC,Q.Hw,hd.V,ne.JX,ne.TM,ne.Rh,o.$,gd,Zt,Bh]},[]),(0,d.G48)(),e.q6().bootstrapModule(Cd).catch(J=>console.error(J))},11243:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>_});var e=h(36895),d=h(94650);let _=(()=>{class w{}return w.\u0275fac=function(b){return new(b||w)},w.\u0275mod=d.oAB({type:w}),w.\u0275inj=d.cJS({imports:[e.ez]}),w})()},6335:(We,pe,h)=>{"use strict";h.d(pe,{Ng:()=>w,Rc:()=>d,pI:()=>_});var e=h(94650);const d="GUI_CONFIG.PREF_PAGE_SIZE",_="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(y){return localStorage.getItem(y)}getNumber(y){return parseInt(localStorage.getItem(y),10)}setNumber(y,E){localStorage.setItem(y,E.toString())}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(We,pe,h)=>{"use strict";h.d(pe,{$I:()=>Vt,$V:()=>Me,$t:()=>Jt,AA:()=>U,Ad:()=>Ce,Af:()=>H,Aj:()=>Ge,BV:()=>ve,Bf:()=>t,CE:()=>je,CP:()=>w,Cf:()=>Te,DR:()=>ze,FF:()=>Pt,H2:()=>Q,HC:()=>j,HE:()=>nt,Hi:()=>ue,Is:()=>Oe,It:()=>f,Iz:()=>s,JO:()=>V,Jf:()=>Ee,KE:()=>I,M8:()=>Ie,NG:()=>W,NL:()=>Ze,O7:()=>Y,O9:()=>le,RS:()=>we,S7:()=>it,Sb:()=>F,US:()=>p,VR:()=>A,W1:()=>De,Wv:()=>fe,XH:()=>rn,YF:()=>y,_7:()=>ge,_c:()=>de,aL:()=>ct,bf:()=>G,cL:()=>Pe,d7:()=>ie,dB:()=>_,dI:()=>he,dK:()=>Ve,e5:()=>n,ee:()=>st,eq:()=>ht,g:()=>$,gB:()=>q,gG:()=>M,gc:()=>E,iQ:()=>a,j1:()=>ee,kO:()=>Je,kZ:()=>qe,nT:()=>b,oK:()=>r,qV:()=>v,qy:()=>ce,rF:()=>Se,rc:()=>_e,tY:()=>O,tw:()=>g,uC:()=>oe,uI:()=>nn,uM:()=>N,v1:()=>S,vq:()=>ae,xt:()=>ne,xx:()=>z,yW:()=>$e,z6:()=>l,zW:()=>Et,zp:()=>c});var e=h(6335),d=h(94650);let _=(()=>{class un{constructor(It){this.guiConfigService=It}getTablePageSize(It){const Ct=this.guiConfigService.getNumber(e.pI+It);if(!isNaN(Ct))return Ct;const kt=this.guiConfigService.getNumber(e.Rc);return isNaN(kt)?10:kt}setTablePageSize(It,Ct){this.guiConfigService.setNumber(e.pI+It,Ct)}}return un.\u0275fac=function(It){return new(It||un)(d.LFG(e.Ng))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac,providedIn:"root"}),un})();const w="0",g="1",b="2",y="3",E="4",S="5",U="6",A="7",N="8",z="9",Q="10",ne="11",he="12",ee="13",fe="14",ce="15",ve="16",v="17",O="18",H="19",Y="20",q="21",ue="22",Ee="23",De="24",Se="25",Ge="26",Ce="27",qe="28",Pe="29",we="30",j="31",I="32",F="33",ge="34",G="35",_e="36",Te="37",ht="42",W="43",le="44",ie="45",ae="46",Ze="47",Je="48",ct="49",ze="50",oe="51",V="52",r="53",s="54",f="55",l="56",a="57",n="58",t="59",c="62",p="63",M="64",Me="65",it="66",Et="69",je="71",Oe="72",Ie="75",$="76",de="77",Ve="78",$e="79",nt="80",st="82",Pt="83",Vt="84",rn="85",Jt="86",nn="87"},36769:(We,pe,h)=>{"use strict";h.d(pe,{Ji:()=>g,Pd:()=>_,BQ:()=>d,Ly:()=>w,GH:()=>E,Ls:()=>S,SG:()=>y,es:()=>b});var e=h(37340);const d=(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})])]),b=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),y=(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})])])]),E=(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%)"}))])]),S=(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%)"}))])])},33604:(We,pe,h)=>{"use strict";h.d(pe,{Mw:()=>I.M,qG:()=>ct.qG,Sx:()=>Ze.S,y9:()=>ze,Nj:()=>vt.N,ez:()=>we,t$:()=>ht});var e=h(36895),d=h(56709),_=h(30671),w=h(89383),g=h(94364),b=h(96308),y=h(98739),E=h(51572),S=h(63189),U=h(97392),A=h(28255),N=h(4859),z=h(10266),Q=h(59549),ne=h(24006),he=h(284),ee=h(77331),fe=h(73555),ce=h(3238),ve=h(19516),v=h(64425),O=h(35423),H=h(99602),Y=h(71948),q=h(84385),ue=h(33231),Ee=h(67376),De=h(65412),Se=h(9244),Ge=h(57882),Ce=h(94650);let qe=(()=>{class oe extends ce.LF{format(r,s){return"input"===s?`${r.getDate().toString()}.${(r.getMonth()+1).toString()}.${r.getFullYear()}`:r.toDateString()}}return oe.\u0275fac=function(){let V;return function(s){return(V||(V=Ce.n5z(oe)))(s||oe)}}(),oe.\u0275prov=Ce.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const Pe={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 we=(()=>{class oe{}return oe.\u0275fac=function(r){return new(r||oe)},oe.\u0275mod=Ce.oAB({type:oe}),oe.\u0275inj=Ce.cJS({providers:[{provide:ce._A,useClass:qe},{provide:ce.sG,useValue:Pe}],imports:[e.ez,d.p9,_.p0,ne.u5,ee.Hi,fe._t,w.aw,g.Bz,b.JX,y.TU,E.Cq,S.r,U.Ps,A.Tx,N.ot,z.AV,Q.lN,ne.UX,he.c,ce.si,ve.d4,v.Iq,O.dp,H.FA,Y.Fk,ce.Ng,q.LD,ue.Co,Ee.Cl,De.Is,Se.Je,Ge.C]}),oe})();h(53984);var I=h(43532),vt=(h(38719),h(21963),h(28820),h(63167),h(62109),h(22465),h(80275),h(53599)),rt=h(35382);let ht=(()=>{class oe{constructor(r,s,f,l){this.router=r,this.route=s,this.location=f,this.forceRoute=l}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(r=>{this.router.navigate([r.redirectTo])}):this.location.back()}}return oe.\u0275fac=function(r){return new(r||oe)(Ce.Y36(g.F0),Ce.Y36(g.gz),Ce.Y36(e.Ye),Ce.Y36(rt.xw))},oe.\u0275cmp=Ce.Xpm({type:oe,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(r,s){}}),oe})();h(24179),h(58956),h(41619),h(61150);var Ze=h(63312),ct=(h(52314),h(52170));let ze=(()=>{class oe{constructor(r){this.router=r}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return oe.\u0275fac=function(r){return new(r||oe)(Ce.Y36(g.F0))},oe.\u0275cmp=Ce.Xpm({type:oe,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(r,s){1&r&&(Ce.TgZ(0,"div",0)(1,"h1",1),Ce._uU(2),Ce.ALo(3,"translate"),Ce.qZA(),Ce.TgZ(4,"div"),Ce._uU(5),Ce.ALo(6,"translate"),Ce.qZA(),Ce.TgZ(7,"button",2),Ce.NdJ("click",function(){return s.redirectToHome()}),Ce._uU(8),Ce.ALo(9,"translate"),Ce.qZA()()),2&r&&(Ce.xp6(2),Ce.Oqu(Ce.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),Ce.xp6(3),Ce.Oqu(Ce.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),Ce.xp6(3),Ce.hij(" ",Ce.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[N.lW,w.X$]}),oe})()},63312:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>g,Y:()=>b});var e=h(94650),_=(h(32105),h(89383)),w=h(42377);const g={};let b=(()=>{class y{constructor(S){this.translate=S,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=U=>U===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):U.shortname,this.secondaryFunction=U=>U===g?"":U.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(U.id),this.searchFunction=U=>U===g?"":U.shortname+String(U.id)}}return y.\u0275fac=function(S){return new(S||y)(e.Y36(_.sK))},y.\u0275cmp=e.Xpm({type:y,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(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(N){return U.itemSelected.emit(N)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.secondaryFunction)("entity",U.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[w.i,_.X$]}),y})()},38719:(We,pe,h)=>{"use strict";h.d(pe,{u:()=>U});var e=h(94650),d=h(9244),_=h(36895),w=h(56709),g=h(24006),b=h(59549),y=h(64597);function E(A,N){if(1&A){const z=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(z);const ne=e.oxw();return e.KtG(ne._sendEventToParent())})("ngModelChange",function(ne){e.CHM(z);const he=e.oxw();return e.KtG(he.attribute.value=ne)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&A){const z=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,z.attribute.displayName),"-value"),e.Q6J("ngModel",z.attribute.value)}}function S(A,N){if(1&A&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&A){const z=e.oxw();e.xp6(1),e.Oqu(z.attribute.value)}}let U=(()=>{class A{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return A.\u0275fac=function(z){return new(z||A)},A.\u0275cmp=e.Xpm({type:A,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(z,Q){1&z&&(e.TgZ(0,"div"),e.YNc(1,E,2,4,"mat-checkbox",0),e.YNc(2,S,2,1,"mat-label",1),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",!Q.readonly),e.xp6(1),e.Q6J("ngIf",Q.readonly))},dependencies:[_.O5,w.oG,g.JJ,g.On,b.hX,y.R]}),A})()},21963:(We,pe,h)=>{"use strict";h.d(pe,{H:()=>O});var e=h(94650),d=h(29521),_=h(73555),w=h(74281),g=h(9244),b=h(65412),y=h(36895),E=h(77331),S=h(97392),U=h(4859),A=h(10266),N=h(59549),z=h(284);function Q(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(q);const Ee=e.oxw(2);return e.KtG(Ee.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function ne(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(q);const Ee=e.oxw().$implicit,De=e.oxw();return e.KtG(De.edit(Ee))}),e._uU(1,"edit"),e.qZA()}}function he(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(q);const Ee=e.oxw().$implicit,De=e.oxw();return e.KtG(De.remove(Ee))}),e._uU(1,"cancel"),e.qZA()}}function ee(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const De=e.CHM(q).$implicit,Se=e.oxw();return Se.remove(De),e.KtG(Se._sendEventToParent())}),e.YNc(1,Q,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const De=e.CHM(q).$implicit,Se=e.oxw();return e.KtG(Se.readonly&&void 0!==Se.attribute.displayName&&Se.showValue(De,Se.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,ne,2,0,"mat-icon",7),e.YNc(5,he,2,0,"mat-icon",8),e.qZA()}if(2&H){const q=Y.$implicit,ue=e.oxw();e.Q6J("selectable",ue.selectable)("cdkDragData",q)("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(" ",q," "),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable)}}function fe(H,Y){1&H&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function ce(H,Y){1&H&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function ve(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(q);const Ee=e.oxw();return e.KtG(Ee.onShowChange())}),e.YNc(3,fe,2,0,"mat-icon",15),e.YNc(4,ce,2,0,"mat-icon",15),e.qZA()()()}if(2&H){const q=e.oxw();e.xp6(1),e.Q6J("matTooltip",q.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!q.showMore),e.xp6(1),e.Q6J("ngIf",q.showMore)}}function v(H,Y){if(1&H){const q=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(Ee){e.CHM(q);const De=e.oxw();return e.KtG(De.add(Ee))})("change",function(){e.CHM(q);const Ee=e.oxw();return e.KtG(Ee._sendEventToParent())}),e.qZA()()}if(2&H){const q=e.oxw(),ue=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ue)("matChipInputSeparatorKeyCodes",q.separatorKeysCodes)("matChipInputAddOnBlur",q.addOnBlur)}}let O=(()=>{class H{constructor(q,ue){this.dialog=q,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=[d.K5,d.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(q){const ue=q.input,Ee=q.value;(Ee||"").trim()&&(this.attribute.value.push(Ee.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ue&&(ue.value=""),this.sendEventToParent.emit()}remove(q){const ue=(0,g.kZ)();ue.width="400px",ue.data={name:q},this.dialog.open(w.Wr,ue).afterClosed().subscribe(De=>{if(De){const Se=this.attribute.value.indexOf(q);this.attribute.value.splice(Se,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(q){this.dragDisabled=!0,(0,_.bA)(this.attribute.value,q.previousIndex,q.currentIndex),this.values=this.attribute.value}edit(q){const ue=this.attribute.value.indexOf(q),Ee=(0,g.kZ)();Ee.width="600px",Ee.data={attribute:this.attribute,index:ue},this.dialog.open(w.r2,Ee).afterClosed().subscribe(Se=>{Se&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(q,ue){const Ee=(0,g.kZ)();Ee.width="350px",Ee.data={value:q,title:ue},this.dialog.open(w.mk,Ee)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return H.\u0275fac=function(q){return new(q||H)(e.Y36(b.uw),e.Y36(e.sBO))},H.\u0275cmp=e.Xpm({type:H,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(q,ue){1&q&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(De){return ue.drop(De),ue._sendEventToParent()}),e.YNc(3,ee,6,9,"mat-chip",2),e.YNc(4,ve,5,4,"div",3),e.YNc(5,v,2,3,"mat-form-field",3),e.qZA()()),2&q&&(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))},dependencies:[y.sg,y.O5,E.qn,E.HS,E.oH,_.Wj,_.Zt,S.Hw,U.lW,A.gM,N.KE,z.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),H})()},28820:(We,pe,h)=>{"use strict";h.d(pe,{$:()=>fe});var e=h(74281),d=h(9244),_=h(94650),w=h(65412),g=h(36895),b=h(24006),y=h(97392),E=h(4859),S=h(10266),U=h(59549),A=h(284);function N(ce,ve){if(1&ce){const v=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(v);const H=_.oxw().index,Y=_.oxw();return _.KtG(Y.removeValue(H))}),_.TgZ(1,"mat-icon"),_._uU(2," indeterminate_check_box "),_.qZA()()}}function z(ce,ve){if(1&ce){const v=_.EpF();_.TgZ(0,"div",9)(1,"mat-form-field",10),_._UZ(2,"label",11),_.TgZ(3,"input",12),_.NdJ("click",function(){const Y=_.CHM(v).index,q=_.oxw();return _.KtG(q.readonly&&q.attribute.displayName&&q.showValue(q.keys[Y],q.attribute.displayName))})("ngModelChange",function(H){const q=_.CHM(v).index,ue=_.oxw();return _.KtG(ue.keys[q]=H)}),_.qZA()(),_.TgZ(4,"mat-form-field",10),_._UZ(5,"label",11),_.TgZ(6,"input",13),_.NdJ("click",function(){const Y=_.CHM(v).$implicit,q=_.oxw();return _.KtG(q.readonly&&void 0!==q.attribute.displayName&&q.showValue(Y,q.attribute.displayName))})("ngModelChange",function(H){const q=_.CHM(v).index,ue=_.oxw();return _.KtG(ue.values[q]=H)}),_.qZA()(),_.YNc(7,N,3,0,"button",14),_.qZA()}if(2&ce){const v=ve.index,O=_.oxw();_.xp6(1),_.s9C("appearance",O.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",O.attribute.id,"-key-",v,""),_.xp6(1),_.ekj("cursor-pointer",O.readonly&&void 0!==O.attribute.displayName),_.hYB("id","",O.attribute.id,"-key-",v,""),_.MGl("name","key-",v,""),_.Q6J("ngModel",O.keys[v])("readonly",O.readonly),_.xp6(1),_.s9C("appearance",O.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",O.attribute.id,"-value-",v,""),_.xp6(1),_.ekj("cursor-pointer",O.readonly&&void 0!==O.attribute.displayName),_.MGl("name","value-",v,""),_.hYB("id","",O.attribute.id,"-value-",v,""),_.Q6J("readonly",O.readonly)("ngModel",O.values[v]),_.xp6(1),_.Q6J("ngIf",!O.readonly)}}function Q(ce,ve){1&ce&&(_.TgZ(0,"mat-icon"),_._uU(1,"more_horiz"),_.qZA())}function ne(ce,ve){1&ce&&(_.TgZ(0,"mat-icon"),_._uU(1,"keyboard_arrow_up"),_.qZA())}function he(ce,ve){if(1&ce){const v=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM(v);const H=_.oxw();return _.KtG(H.onShowChange())}),_.YNc(1,Q,2,0,"mat-icon",17),_.YNc(2,ne,2,0,"mat-icon",17),_.qZA()}if(2&ce){const v=_.oxw();_.xp6(1),_.Q6J("ngIf",!v.showMore),_.xp6(1),_.Q6J("ngIf",v.showMore)}}function ee(ce,ve){if(1&ce){const v=_.EpF();_.TgZ(0,"button",18),_.NdJ("click",function(){_.CHM(v);const H=_.oxw();return _.KtG(H.addValue())}),_.TgZ(1,"mat-icon"),_._uU(2," add_box "),_.qZA()()}}let fe=(()=>{class ce{constructor(v){this.dialog=v,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const v=new Map(Object.entries(this.attribute.value));for(const[O,H]of v.entries())this.keys.push(O),this.values.push(H)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}customTrackBy(v){return v}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(v){this.keys.splice(v,1),this.values.splice(v,1)}updateAttribute(){const v={};for(let O=0;OO.defaultItemsShown),_.xp6(1),_.Q6J("ngIf",!O.readonly))},dependencies:[g.sg,g.O5,b._Y,b.Fj,b.JJ,b.JL,b.Q7,b.On,b.F,y.Hw,E.lW,S.gM,U.KE,A.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),ce})()},63167:(We,pe,h)=>{"use strict";h.d(pe,{_:()=>S});var e=h(94650),d=h(9244),_=h(74281),w=h(65412),g=h(24006),b=h(59549),y=h(284),E=h(64597);let S=(()=>{class U{constructor(N){this.dialog=N,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(N,z){const Q=(0,d.kZ)();Q.width="350px",Q.data={value:N,title:z},this.dialog.open(_.mk,Q)}}return U.\u0275fac=function(N){return new(N||U)(e.Y36(w.uw))},U.\u0275cmp=e.Xpm({type:U,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(N,z){1&N&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return z.readonly&&void 0!==z.value&&z.showValue(z.value,z.attribute.displayName)})("ngModelChange",function(ne){return z.attribute.value=ne})("keydown",function(){return z._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&N&&(e.s9C("appearance",z.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",z.readonly&&void 0!==z.value),e.Q2q("data-cy","",e.lcZ(2,6,z.attribute.displayName),"-value"),e.Q6J("readonly",z.readonly)("ngModel",z.attribute.value))},dependencies:[g.Fj,g.JJ,g.On,b.KE,y.Nt,E.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),U})()},43532:(We,pe,h)=>{"use strict";h.d(pe,{M:()=>ve});var e=h(94650),d=h(28820),_=h(36895),w=h(38719),g=h(21963),b=h(63167),y=h(9244),E=h(74281),S=h(65412),U=h(24006),A=h(59549),N=h(284);let z=(()=>{class v{constructor(H){this.dialog=H,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,y.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(H){const Y=(0,y.kZ)();Y.width="350px",Y.data={value:H.value,title:H.displayName},this.dialog.open(E.mk,Y)}}return v.\u0275fac=function(H){return new(H||v)(e.Y36(S.uw))},v.\u0275cmp=e.Xpm({type:v,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(H,Y){1&H&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return Y.readonly&&void 0!==Y.attribute.value&&Y.showValue(Y.attribute)})("ngModelChange",function(ue){return Y.attribute.value=ue})("keydown",function(){return Y._sendEventToParent()}),e.qZA()()),2&H&&(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))},dependencies:[U.Fj,U.wV,U.JJ,U.On,A.KE,N.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),v})();const Q=["map"];function ne(v,O){if(1&v){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function he(v,O){if(1&v){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function ee(v,O){if(1&v&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&v){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function fe(v,O){if(1&v){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function ce(v,O){if(1&v){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}let ve=(()=>{class v{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return v.\u0275fac=function(H){return new(H||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(H,Y){if(1&H&&e.Gf(Q,5),2&H){let q;e.iGM(q=e.CRH())&&(Y.mapComponent=q.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(H,Y){1&H&&(e.TgZ(0,"div"),e.YNc(1,ne,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,he,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return Y._sendEventToParent2()}),e.YNc(4,ee,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,fe,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,ce,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&H&&(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))},dependencies:[_.O5,w.u,g.H,d.$,b._,z]}),v})()},53984:(We,pe,h)=>{"use strict";h.d(pe,{p:()=>Pe});var e=h(96308),d=h(30671),_=h(95017),w=h(43532),g=h(9244),b=h(35382),y=h(94650),E=h(36895),S=h(56709),U=h(98380),A=h(10266),N=h(18750),z=h(89383);let Q=(()=>{class we{transform(I){return"virt"===I.namespace.split(":")[4]}}return we.\u0275fac=function(I){return new(I||we)},we.\u0275pipe=y.Yjl({name:"isVirtualAttribute",type:we,pure:!0}),we})();var ne=h(64597),he=h(9185);function ee(we,j){if(1&we){const I=y.EpF();y.TgZ(0,"th",18)(1,"mat-checkbox",19),y.NdJ("change",function(ge){y.CHM(I);const G=y.oxw(2);return y.KtG(ge?G.masterToggle():null)}),y.qZA()()}if(2&we){const I=y.oxw().ngIf,F=y.oxw();y.xp6(1),y.Q6J("checked",F.selection.hasValue()&&I.all)("indeterminate",F.selection.hasValue()&&!I.all)("aria-label",F.checkboxLabel())}}function fe(we,j){if(1&we){const I=y.EpF();y.TgZ(0,"td",20)(1,"mat-checkbox",21),y.NdJ("click",function(ge){return ge.stopPropagation()})("change",function(ge){const _e=y.CHM(I).$implicit,Te=y.oxw(2);return y.KtG(ge?Te.selection.toggle(_e):null)}),y.ALo(2,"multiWordDataCy"),y.ALo(3,"isVirtualAttribute"),y.qZA()()}if(2&we){const I=j.$implicit,F=y.oxw(2);y.xp6(1),y.Q2q("data-cy","",y.lcZ(2,4,I.displayName),"-checkbox"),y.Q6J("checked",F.selection.isSelected(I))("disabled",y.lcZ(3,6,I)||!I.writable)("aria-label",F.checkboxLabel(I))}}function ce(we,j){1&we&&(y.ynx(0,15),y.YNc(1,ee,2,3,"th",16),y.YNc(2,fe,4,8,"td",17),y.BQk())}function ve(we,j){1&we&&(y.TgZ(0,"th",22),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function v(we,j){if(1&we&&(y.TgZ(0,"td",23),y._uU(1),y.qZA()),2&we){const I=j.$implicit;y.xp6(1),y.Oqu(I.id)}}function O(we,j){1&we&&(y.TgZ(0,"th",22),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function H(we,j){if(1&we&&(y.TgZ(0,"td",24),y.ALo(1,"multiWordDataCy"),y.TgZ(2,"div",25),y._uU(3),y.qZA()()),2&we){const I=j.$implicit,F=y.oxw();y.Q2q("data-cy","",y.lcZ(1,3,I.friendlyName),"-friendlyName"),y.xp6(2),y.s9C("matTooltip",F.getAttributeFullName(I)),y.xp6(1),y.hij(" ",I.displayName," ")}}function Y(we,j){1&we&&(y.TgZ(0,"th",26),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function q(we,j){if(1&we){const I=y.EpF();y.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),y.NdJ("sendEventToParent2",function(){const G=y.CHM(I).$implicit,_e=y.oxw();return y.KtG(_e.onValueChange(G))}),y.qZA()()}if(2&we){const I=j.$implicit,F=y.oxw();y.xp6(1),y.Q6J("attribute",I)("readonly",F.readonly||!I.writable)}}function ue(we,j){1&we&&(y.TgZ(0,"th",22),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function Ee(we,j){if(1&we&&(y.TgZ(0,"td",24),y._uU(1),y.qZA()),2&we){const I=j.$implicit;y.xp6(1),y.Oqu(I.description)}}function De(we,j){1&we&&y._UZ(0,"tr",28)}function Se(we,j){if(1&we&&(y._UZ(0,"tr",29),y.ALo(1,"translate")),2&we){const I=j.$implicit,F=y.oxw();y.s9C("matTooltip",y.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),y.Q6J("matTooltipPosition","before")("matTooltipDisabled",I.writable||F.readonly)}}function Ge(we,j){1&we&&(y.TgZ(0,"perun-web-apps-alert",30),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ce(we,j){if(1&we&&(y.TgZ(0,"perun-web-apps-alert",30),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&we){const I=y.oxw();y.xp6(1),y.hij(" ",y.lcZ(2,1,I.emptyListText),"\n")}}const qe=function(we){return{all:we}};let Pe=(()=>{class we{constructor(I,F){this.authResolver=I,this.tableCheckbox=F,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(I){this.sort=I,this.setDataSource()}static canBeSelected(I){return!(0,g.Hm)(I)&&I.writable}static getDataForColumn(I,F){switch(F){case"id":return I.id.toString();case"displayName":return I.displayName;case"description":return I.description;case"value":return JSON.stringify(I.value);case"urn":return I.namespace+":"+I.baseFriendlyName;default:return""}}canBeSelected(I){return!(0,g.Hm)(I)&&I.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(I=>"id"!==I)),this.dataSource=new d.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(I){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,we.getDataForColumn),I)}exportDisplayedData(I){const F=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ge=F+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(F,ge),this.displayedColumns,we.getDataForColumn),I)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(I=>!this.hiddenColumns.includes(I)),this.dataSource&&(this.dataSource.filterPredicate=(I,F)=>(0,g.Sd)(I,F,this.displayedColumns.concat("urn"),we.getDataForColumn),this.dataSource.sortData=(I,F)=>(0,g.pR)(I,F,we.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,we.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,we.canBeSelected)}checkboxLabel(I){return I?`${this.selection.isSelected(I)?"deselect":"select"} row ${I.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const I of this.items.toArray())"java.util.LinkedHashMap"===I.attribute.type&&I.updateMapAttribute()}onValueChange(I){we.canBeSelected(I)&&this.selection.select(I)}getAttributeFullName(I){return`${I.namespace}:${I.friendlyName}`}}return we.\u0275fac=function(I){return new(I||we)(y.Y36(b.x4),y.Y36(b.UA))},we.\u0275cmp=y.Xpm({type:we,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(I,F){if(1&I&&(y.Gf(g.l9,7),y.Gf(e.YE,7),y.Gf(w.M,5)),2&I){let ge;y.iGM(ge=y.CRH())&&(F.child=ge.first),y.iGM(ge=y.CRH())&&(F.matSort=ge.first),y.iGM(ge=y.CRH())&&(F.items=ge)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[y.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(I,F){1&I&&(y.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),y.NdJ("exportDisplayedData",function(G){return F.exportDisplayedData(G)})("exportAllData",function(G){return F.exportAllData(G)}),y.TgZ(2,"table",2),y.YNc(3,ce,3,0,"ng-container",3),y.ALo(4,"isAllSelected"),y.ynx(5,4),y.YNc(6,ve,3,3,"th",5),y.YNc(7,v,2,1,"td",6),y.BQk(),y.ynx(8,7),y.YNc(9,O,3,3,"th",5),y.YNc(10,H,4,5,"td",8),y.BQk(),y.ynx(11,9),y.YNc(12,Y,3,3,"th",10),y.YNc(13,q,2,2,"td",8),y.BQk(),y.ynx(14,11),y.YNc(15,ue,3,3,"th",5),y.YNc(16,Ee,2,1,"td",8),y.BQk(),y.YNc(17,De,1,0,"tr",12),y.YNc(18,Se,2,5,"tr",13),y.qZA()()(),y.YNc(19,Ge,3,3,"perun-web-apps-alert",14),y.YNc(20,Ce,3,3,"perun-web-apps-alert",14)),2&I&&(y.Q6J("hidden",0===F.dataSource.filteredData.length),y.xp6(1),y.Q6J("tableId",F.tableId)("dataLength",F.dataSource.filteredData.length)("pageSizeOptions",F.pageSizeOptions),y.xp6(1),y.Q6J("dataSource",F.dataSource),y.xp6(1),y.Q6J("ngIf",y.VKq(14,qe,y.Dn7(4,10,F.dataSource,F.selection.selected.length,F.canBeSelected))),y.xp6(14),y.Q6J("matHeaderRowDef",F.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",F.displayedColumns),y.xp6(1),y.Q6J("ngIf",0===F.dataSource.filteredData.length&&0!==F.dataSource.data.length),y.xp6(1),y.Q6J("ngIf",0===F.dataSource.data.length))},dependencies:[E.O5,S.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.YE,e.nU,U.w,A.gM,N.l,w.M,z.X$,Q,ne.R,he.I],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}"]}),we})()},4235:(We,pe,h)=>{"use strict";h.d(pe,{W:()=>S});var e=h(35382),d=h(94650),_=h(36895),w=h(97392),g=h(4859),b=h(10266),y=h(89383);const E=function(U){return{color:U}};let S=(()=>{class U{constructor(N,z){this.location=N,this.storeService=z}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return U.\u0275fac=function(N){return new(N||U)(d.Y36(_.Ye),d.Y36(e.d6))},U.\u0275cmp=d.Xpm({type:U,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(N,z){1&N&&(d.TgZ(0,"button",0),d.NdJ("click",function(){return z.goBack()}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon",1),d._uU(3,"arrow_right_alt"),d.qZA()()),2&N&&(d.s9C("matTooltip",d.lcZ(1,2,"Back")),d.Q6J("ngStyle",d.VKq(4,E,z.backButtonColor)))},dependencies:[_.PC,w.Hw,g.lW,b.gM,y.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),U})()},61150:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>N});var e=h(94650),d=h(24006),_=h(35382),w=h(36895),g=h(56709),b=h(59549),y=h(284),E=h(82322),S=h(89383);function U(z,Q){if(1&z){const ne=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(ne);const ee=e.oxw();return e.KtG(ee.emitAsSubGroup())})("ngModelChange",function(ee){e.CHM(ne);const fe=e.oxw();return e.KtG(fe.asSubgroup=ee)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&z){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 A(z,Q){if(1&z){const ne=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(ee){e.CHM(ne);const fe=e.oxw();return e.KtG(fe.emitParentGroup(ee))}),e.qZA()}if(2&z){const ne=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ne.voGroups)}}let N=(()=>{class z{constructor(ne){this.store=ne,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new d.p4("",[d.kI.required,d.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),d.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new d.p4("",[d.kI.required,d.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 z.\u0275fac=function(ne){return new(ne||z)(e.Y36(_.d6))},z.\u0275cmp=e.Xpm({type:z,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,he){1&ne&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return he.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return he.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,U,3,5,"mat-checkbox",5),e.YNc(16,A,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",he.nameControl),e.xp6(3),e.hij(" ",he.invalidNameMessage.length?he.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",he.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",he.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",he.asSubgroup))},dependencies:[w.O5,g.oG,d.Fj,d.JJ,d.Q7,d.On,b.TO,b.KE,d.oH,y.Nt,E.h,S.X$]}),z})()},39798:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>y});var e=h(94650),d=h(24006),_=h(59549),w=h(284),g=h(99602),b=h(89383);let y=(()=>{class E{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 E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,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(U,A){if(1&U){const N=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(N);const Q=e.MAs(7);return e.KtG(Q.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return A.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(N);const Q=e.MAs(15);return e.KtG(Q.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return A.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&U){const N=e.MAs(7),z=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",N)("min",A.startMinDate)("max",A.startMaxDate)("formControl",A.startDate),e.xp6(1),e.Q6J("for",N),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",z)("min",A.endMinDate)("max",A.endMaxDate)("formControl",A.endDate),e.xp6(1),e.Q6J("for",z)}},dependencies:[d.Fj,d.JJ,_.KE,_.hX,_.R9,d.oH,w.Nt,g.Mq,g.hl,g.nW,b.X$]}),E})()},64901:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>A});var e=h(94650),d=h(54968),_=h(54004),w=h(78372),g=h(71884),b=h(24006),y=h(59549),E=h(284),S=h(89383);const U=["input"];let A=(()=>{class N{constructor(){this.autoFocus=!1,this.control=new b.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,d.R)(this.input.nativeElement,"keyup").pipe((0,_.U)(Q=>Q.target.value),(0,w.b)(500),(0,g.x)()).subscribe(Q=>{this.control.invalid||this.filter.emit(Q)})}}return N.\u0275fac=function(Q){return new(Q||N)},N.\u0275cmp=e.Xpm({type:N,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(Q,ne){if(1&Q&&e.Gf(U,7),2&Q){let he;e.iGM(he=e.CRH())&&(ne.input=he.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(Q,ne){1&Q&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&Q&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ne.placeholder)),e.Q6J("formControl",ne.control),e.xp6(4),e.hij(" ",ne.error," "))},dependencies:[b.Fj,b.JJ,y.TO,y.KE,b.oH,E.Nt,S.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),N})()},42377:(We,pe,h)=>{"use strict";h.d(pe,{i:()=>ce});var e=h(94650),d=h(24006),_=h(4707),w=h(77579),g=h(71884),b=h(82722),y=h(36895),E=h(59549),S=h(3238),U=h(84385),A=h(33231),N=h(67376);const z=["scrollViewport"];function Q(ve,v){if(1&ve&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&ve){const O=e.oxw();e.xp6(1),e.hij(" ",O.multipleSelectedText()," ")}}function ne(ve,v){if(1&ve&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&ve){const O=e.oxw(2);e.Tol(O.colorByStatus(null==O.entitiesCtrl?null:O.entitiesCtrl.value)),e.xp6(1),e.hij(" ",O.statusTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)?"("+O.statusTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)+")":""," ")}}function he(ve,v){if(1&ve&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ne,2,4,"span",10),e.qZA()),2&ve){const O=e.oxw();e.Q6J("value",null==O.entitiesCtrl?null:O.entitiesCtrl.value),e.xp6(1),e.hij(" ",O.mainTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(O.secondaryTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",O.displayStatus)}}function ee(ve,v){if(1&ve&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&ve){const O=e.oxw().$implicit,H=e.oxw();e.Tol(H.colorByStatus(O)),e.xp6(1),e.hij(" ",H.statusTextFunction(O)?"("+H.statusTextFunction(O)+")":""," ")}}function fe(ve,v){if(1&ve&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ee,2,4,"span",10),e.qZA()),2&ve){const O=v.$implicit,H=e.oxw();e.Tol(H.theme),e.Q6J("value",O),e.xp6(1),e.hij(" ",H.mainTextFunction(O)," "),e.xp6(2),e.Oqu(H.secondaryTextFunction(O)),e.xp6(1),e.Q6J("ngIf",H.displayStatus)}}let ce=(()=>{class ve{constructor(O){this.cd=O,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 d.p4,this.entityFilterCtrl=new d.p4,this.filteredEntities=new _.t(1),this._onDestroy=new w.x,this.entitiesLen=0,this.mainTextFunction=H=>JSON.stringify(H),this.secondaryTextFunction=H=>"#".concat(String(H.id),H.description?" ".concat(H.description):""),this.statusTextFunction=H=>H.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,g.x)()).subscribe(O=>this.entitySelected.emit(O)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(O=>this.entitiesLen=O.length),this.entityFilterCtrl.valueChanges.pipe((0,b.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(O){switch(O.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(O){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),O.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(O){return O.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let O=48*this.entitiesLen;return O>192&&(O=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),O}multipleSelectedText(){const O=this.entitiesCtrl.value;if(O&&0!==O.length)return O.length===this.entities.length?"ALL":O.length>1?this.mainTextFunction(O[0])+` + ${O.length-1} other(s)`:this.mainTextFunction(O[0])+" "+this.secondaryTextFunction(O[0])}filterEntites(){if(!this.entities)return;let O=this.entityFilterCtrl.value;if(!O)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();O=this.normalize(O),this.filteredEntities.next(this.entities.filter(H=>this.normalize(this.searchFunction(H)).includes(O))),this.cd.detectChanges()}}return ve.\u0275fac=function(O){return new(O||ve)(e.Y36(e.sBO))},ve.\u0275cmp=e.Xpm({type:ve,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(O,H){if(1&O&&e.Gf(z,5),2&O){let Y;e.iGM(Y=e.CRH())&&(H.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"],["data-cy","search-select-input",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(O,H){1&O&&(e.TgZ(0,"mat-form-field",0)(1,"mat-select",1),e.NdJ("openedChange",function(){return H.openChange()}),e.YNc(2,Q,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,he,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,fe,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA()()()),2&O&&(e.xp6(1),e.s9C("placeholder",H.selectPlaceholder),e.Q6J("formControl",H.entitiesCtrl)("multiple",H.multiple),e.xp6(1),e.Q6J("ngIf",H.multiple),e.xp6(2),e.s9C("placeholderLabel",H.findPlaceholder),e.s9C("noEntriesFoundLabel",H.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",H.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==H.entitiesCtrl?null:H.entitiesCtrl.value),e.xp6(1),e.Udp("height",H.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,H.filteredEntities)))},dependencies:[y.O5,d.JJ,E.KE,d.oH,S.ey,U.gD,U.$L,A.nu,N.xd,N.x0,N.N7,y.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}"]}),ve})()},74010:(We,pe,h)=>{"use strict";h.d(pe,{X:()=>W});var e=h(96308),d=h(30671),_=h(9244),w=h(35382),g=h(94650),b=h(36895),y=h(56709),E=h(94364),S=h(98380),U=h(18750),A=h(50301),N=h(10441),z=h(24006),Q=h(97392),ne=h(4859),he=h(10266);function ee(le,ie){if(1&le&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&le){const ae=ie.$implicit,Ze=g.oxw();g.xp6(1),g.hij(" ",ae[Ze.paramName]," ")}}function fe(le,ie){1&le&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function ce(le,ie){1&le&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function ve(le,ie){if(1&le){const ae=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){g.CHM(ae);const Je=g.oxw();return g.KtG(Je.onShowChange())}),g.YNc(1,fe,2,0,"mat-icon",8),g.YNc(2,ce,2,0,"mat-icon",8),g.qZA()}if(2&le){const ae=g.oxw();g.xp6(1),g.Q6J("ngIf",!ae.showMore),g.xp6(1),g.Q6J("ngIf",ae.showMore)}}let v=(()=>{class le{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 le.\u0275fac=function(ae){return new(ae||le)},le.\u0275cmp=g.Xpm({type:le,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(ae,Ze){1&ae&&(g.TgZ(0,"form",0)(1,"div",1)(2,"div",2),g.YNc(3,ee,2,1,"div",3),g.qZA(),g.TgZ(4,"div")(5,"span",4),g.YNc(6,ve,3,2,"button",5),g.qZA()()()()),2&ae&&(g.xp6(3),g.Q6J("ngForOf",Ze.objects.slice(0,Ze.itemsShown)),g.xp6(2),g.Q6J("matTooltip",Ze.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",Ze.objects.length>Ze.defaultItemsShown))},dependencies:[b.sg,b.O5,z._Y,z.JL,z.F,Q.Hw,ne.lW,he.gM]}),le})();var O=h(89383),H=h(53561);let Y=(()=>{class le{transform(ae,Ze,Je){return ae.filter(ct=>ct[Je].includes(Ze)).filter((ct,ze,oe)=>oe.findIndex(V=>V[Je]===ct[Je])===ze)}}return le.\u0275fac=function(ae){return new(ae||le)},le.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:le,pure:!0}),le})();function q(le,ie){1&le&&g._UZ(0,"th",20)}function ue(le,ie){if(1&le){const ae=g.EpF();g.TgZ(0,"td",21)(1,"mat-checkbox",22),g.NdJ("change",function(Je){const ze=g.CHM(ae).$implicit,oe=g.oxw();return g.KtG(Je?oe.selection.toggle(ze):null)})("click",function(Je){return Je.stopPropagation()}),g.qZA()()}if(2&le){const ae=ie.$implicit,Ze=g.oxw();g.xp6(1),g.Q2q("data-cy","",ae.facility.name,"-checkbox"),g.Q6J("aria-label",Ze.checkboxLabel(ae))("checked",Ze.selection.isSelected(ae))}}function Ee(le,ie){1&le&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function De(le,ie){if(1&le&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&le){const ae=ie.$implicit;g.xp6(1),g.hij(" ",ae.facility.id," ")}}function Se(le,ie){1&le&&g._UZ(0,"th",25)}function Ge(le,ie){if(1&le&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&le){const ae=ie.$implicit,Ze=g.oxw();g.xp6(1),g.Q6J("id",ae.facility.id)("recentIds",Ze.recentIds)}}function Ce(le,ie){1&le&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function qe(le,ie){if(1&le&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&le){const ae=ie.$implicit;g.uIk("data-cy",ae.facility.name),g.xp6(1),g.hij(" ",ae.facility.name," ")}}function Pe(le,ie){1&le&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function we(le,ie){if(1&le&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&le){const ae=ie.$implicit;g.xp6(1),g.Oqu(ae.facility.description)}}function j(le,ie){1&le&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function I(le,ie){if(1&le&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&le){const ae=ie.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,ae.owners))}}function F(le,ie){1&le&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function ge(le,ie){if(1&le){const ae=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(ae);const Je=g.oxw();return g.KtG(Je.localDisableRouting=!0)})("mouseleave",function(){g.CHM(ae);const Je=g.oxw();return g.KtG(Je.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&le){const ae=ie.$implicit,Ze=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,ae.destinations,Ze.filterValue,"destination"))("paramName","destination")}}function G(le,ie){1&le&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function _e(le,ie){if(1&le){const ae=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(ae);const Je=g.oxw();return g.KtG(Je.localDisableRouting=!0)})("mouseleave",function(){g.CHM(ae);const Je=g.oxw();return g.KtG(Je.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&le){const ae=ie.$implicit,Ze=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,ae.hosts,Ze.filterValue,"hostname"))("paramName","hostname")}}function Te(le,ie){1&le&&g._UZ(0,"tr",29)}const et=function(le){return["/facilities",le]},Xe=function(){return[]};function vt(le,ie){if(1&le&&g._UZ(0,"tr",30),2&le){const ae=ie.$implicit,Ze=g.oxw();g.ekj("cursor-pointer",!Ze.disableRouting)("disable-outline",Ze.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(6,et,ae.facility.id))("routerLink",Ze.disableRouting||Ze.localDisableRouting?g.DdM(8,Xe):g.VKq(9,et,ae.facility.id))}}function rt(le,ie){1&le&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ht(le,ie){1&le&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let W=(()=>{class le{constructor(ae){this.authResolver=ae,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=_.f7,this.disableRouting=!1,this.getDataForColumnFun=(Ze,Je)=>le.getDataForColumn(Ze,Je,this.recentIds)}set matSort(ae){this.sort=ae}static getDataForColumn(ae,Ze,Je){switch(Ze){case"id":return ae.facility.id.toString();case"name":return ae.facility.name;case"description":return ae.facility.description;case"technicalOwners":return(0,_.te)(ae.owners);case"recent":return Je&&Je.includes(ae.facility.id)?"#".repeat(Je.indexOf(ae.facility.id)):ae.name;case"destinations":return ae.destinations.map(ct=>ct.destination).join(" ; ");case"hosts":return ae.hosts.map(ct=>ct.hostname).join(" ; ");default:return ae[Ze]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ae=>"id"!==ae)),this.setDataSource()}exportAllData(ae){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),ae)}exportDisplayedData(ae){const Ze=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Je=Ze+this.dataSource.paginator.pageSize;(0,_.O6)((0,_.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ze,Je),this.displayedColumns,this.getDataForColumnFun),ae)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ae,Ze)=>(0,_.Sd)(ae,Ze,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(ae,Ze)=>(0,_.pR)(ae,Ze,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(ae=>this.selection.select(ae))}checkboxLabel(ae){return ae?`${this.selection.isSelected(ae)?"deselect":"select"} row ${ae.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return le.\u0275fac=function(ae){return new(ae||le)(g.Y36(w.x4))},le.\u0275cmp=g.Xpm({type:le,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(ae,Ze){if(1&ae&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&ae){let Je;g.iGM(Je=g.CRH())&&(Ze.child=Je.first),g.iGM(Je=g.CRH())&&(Ze.matSort=Je.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ae,Ze){1&ae&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(ct){return Ze.exportDisplayedData(ct)})("exportAllData",function(ct){return Ze.exportAllData(ct)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,q,1,0,"th",4),g.YNc(5,ue,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,Ee,3,3,"th",7),g.YNc(8,De,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Se,1,0,"th",10),g.YNc(11,Ge,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Ce,3,3,"th",7),g.YNc(14,qe,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,Pe,3,3,"th",10),g.YNc(17,we,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,j,3,3,"th",10),g.YNc(20,I,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,F,3,3,"th",10),g.YNc(23,ge,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,G,3,3,"th",10),g.YNc(26,_e,3,6,"td",11),g.BQk(),g.YNc(27,Te,1,0,"tr",17),g.YNc(28,vt,1,11,"tr",18),g.qZA()()(),g.YNc(29,rt,3,3,"perun-web-apps-alert",19),g.YNc(30,ht,3,3,"perun-web-apps-alert",19)),2&ae&&(g.Q6J("hidden",!Ze.dataSource||0===Ze.dataSource.filteredData.length||0===Ze.facilities.length),g.xp6(1),g.Q6J("tableId",Ze.tableId)("dataLength",Ze.dataSource.filteredData.length)("pageSizeOptions",Ze.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",Ze.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",Ze.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Ze.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Ze.dataSource.filteredData.length&&0!==Ze.facilities.length),g.xp6(1),g.Q6J("ngIf",0===Ze.facilities.length))},dependencies:[b.O5,y.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,E.rH,e.YE,e.nU,S.w,U.l,A.YH,N.W,v,O.X$,H.J,Y],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),le})()},13449:(We,pe,h)=>{"use strict";h.d(pe,{i:()=>v});var e=h(94650),d=h(35382),_=h(36895),w=h(97392),g=h(28255),b=h(4859),y=h(10266),E=h(64425),S=h(89383),U=h(29218),A=h(45942),N=h(28764);function z(O,H){if(1&O){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(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&O){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 Q(O,H){if(1&O){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&O){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 ne(O,H){if(1&O){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&O){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 he(O,H){if(1&O&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,z,9,17,"span",4),e.YNc(6,Q,5,5,"span",4),e.YNc(7,ne,5,5,"span",4),e.qZA()),2&O){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 ee(O,H){if(1&O){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&O){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 fe(O,H){if(1&O){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&O){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 ce(O,H){if(1&O){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(Y);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&O){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 ve(O,H){if(1&O&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,ee,10,16,"button",10),e.YNc(13,fe,6,4,"button",10),e.YNc(14,ce,6,4,"button",10),e.qZA()()),2&O){const Y=e.MAs(5),q=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",Y),e.xp6(5),e.Q6J("cdkCopyToClipboard",q.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",q.syncAuth),e.xp6(1),e.Q6J("ngIf",q.moveAuth),e.xp6(1),e.Q6J("ngIf",q.editAuth)}}let v=(()=>{class O{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 O.\u0275fac=function(Y){return new(Y||O)(e.Y36(d.x4))},O.\u0275cmp=e.Xpm({type:O,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,q){1&Y&&(e.YNc(0,he,8,8,"div",0),e.YNc(1,ve,15,8,"div",1)),2&Y&&(e.Q6J("ngIf",q.displayButtons),e.xp6(1),e.Q6J("ngIf",!q.displayButtons))},dependencies:[_.O5,w.Hw,g.VK,g.OP,g.p6,b.lW,y.gM,E.i3,S.X$,U.J,A.r,N.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),O})()},8223:(We,pe,h)=>{"use strict";h.d(pe,{x:()=>z});var e=h(94650),d=h(9244),_=h(74281),w=h(65412),g=h(36895),b=h(97392),y=h(10266),E=h(89383);function S(Q,ne){if(1&Q){const he=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(he);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&Q){const he=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",he.groupName,"-active")}}function U(Q,ne){if(1&Q){const he=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(he);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&Q){const he=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",he.groupName,"-inactive")}}function A(Q,ne){if(1&Q){const he=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(he);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&Q){const he=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",he.failureCause,"")}}function N(Q,ne){1&Q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&Q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let z=(()=>{class Q{constructor(he){this.dialog=he,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const he=(0,d.kZ)();he.width="500px",he.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(_.Qu,he).afterClosed().subscribe(fe=>{fe&&this.statusChange.emit()})}}return Q.\u0275fac=function(he){return new(he||Q)(e.Y36(w.uw))},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(he,ee){1&he&&(e.TgZ(0,"div",0),e.YNc(1,S,4,4,"span",1),e.YNc(2,U,4,4,"span",1),e.YNc(3,A,4,4,"span",1),e.YNc(4,N,4,3,"span",2),e.qZA()),2&he&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","FAILED"===ee.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===ee.status))},dependencies:[g.O5,b.Hw,y.gM,E.X$]}),Q})()},82322:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>g});var e=h(94650),d=h(9244),_=h(42377),w=h(89383);let g=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=E=>E.name}ngOnInit(){this.groups=this.groups.sort(d.aC)}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){if(1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(A){return S.groupSelected.emit(A)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E){let U;e.Q6J("entities",S.groups)("entity",null!==(U=S.firstSelectedGroup)&&void 0!==U?U:null)("displayStatus",S.displayStatus)("disableAutoSelect",S.disableAutoSelect)("mainTextFunction",S.nameFunction)("searchFunction",S.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[_.i,w.X$]}),b})()},24179:(We,pe,h)=>{"use strict";h.d(pe,{W:()=>l});var e=h(94650),d=h(74281),_=h(32105),w=h(35382),g=h(9244),b=h(96308),y=h(30671),E=h(95017),S=h(36895),U=h(65412),A=h(56709),N=h(98380),z=h(97392),Q=h(4859),ne=h(10266),he=h(18750),ee=h(13449),fe=h(50301),ce=h(10441),ve=h(8223),v=h(89383),O=h(21757);let H=(()=>{class a{transform(t){return t.attributes.find(o=>"groupMembershipExpiration"===o.baseFriendlyName)?.value??"Never"}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275pipe=e.Yjl({name:"groupExpiration",type:a,pure:!0}),a})();var Y=h(82514),q=h(62383),ue=h(9185);function Ee(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(o){e.CHM(t);const c=e.oxw(3);return e.KtG(o?c.masterToggle():null)}),e.qZA()}if(2&a){const t=e.oxw(2).ngIf,i=e.oxw();e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&t.all)("indeterminate",i.selection.hasValue()&&!t.all)}}function De(a,n){if(1&a&&(e.TgZ(0,"th",25),e.YNc(1,Ee,1,3,"mat-checkbox",26),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.disableHeadCheckbox)}}function Se(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",28)(1,"span",29),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",30),e.NdJ("change",function(o){const p=e.CHM(t).$implicit,M=e.oxw(2);return e.KtG(o?M.itemSelectionToggle(p):null)})("click",function(o){return o.stopPropagation()}),e.qZA()()()}if(2&a){const t=n.$implicit,i=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,i.getCheckboxTooltipMessage(t))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),e.xp6(2),e.Q2q("data-cy","",t.name,"-checkbox"),e.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function Ge(a,n){1&a&&(e.ynx(0,22),e.YNc(1,De,2,1,"th",23),e.YNc(2,Se,4,9,"td",24),e.BQk())}function Ce(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function qe(a,n){if(1&a&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(t.id)}}function Pe(a,n){1&a&&e._UZ(0,"th",33)}function we(a,n){if(1&a&&(e.TgZ(0,"td",34),e._UZ(1,"perun-web-apps-recently-viewed-icon",35),e.qZA()),2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.Q6J("recentIds",i.recentIds)("id",t.id)}}function j(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function I(a,n){if(1&a&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.hij(" ",i.voNames.get(t.voId)," ")}}function F(a,n){1&a&&e._UZ(0,"th",33)}function ge(a,n){1&a&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&a&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function G(a,n){1&a&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&a&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function _e(a,n){if(1&a&&(e.TgZ(0,"td",34),e.YNc(1,ge,3,3,"mat-icon",36),e.YNc(2,G,3,3,"mat-icon",36),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Q6J("ngIf",t.sourceGroupId&&!t.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",t.moreTypesOfAssignment)}}function Te(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function et(a,n){if(1&a&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.uIk("data-cy",t.name),e.xp6(1),e.hij(" ",t.name," ")}}function Xe(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function vt(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",38)(1,"perun-web-apps-group-resource-status",39),e.NdJ("mouseenter",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.disabledRouting=!0)})("mouseleave",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.disabledRouting=o.disableRouting)})("statusChange",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.refreshTable.emit())}),e.qZA()()}if(2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",t.id)("groupName",t.name)("resourceId",i.resourceId)("failureCause",t.failureCause)("status",t.status)}}function rt(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function ht(a,n){if(1&a&&(e.TgZ(0,"td",34)(1,"i",40),e.ALo(2,"groupStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA()()()),2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,i.getStatusAttribute(t)),""),e.s9C("matTooltip",i.getStatusAttribute(t)),e.xp6(3),e.hij(" ",e.lcZ(5,7,i.getStatusAttribute(t))," ")}}function W(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function le(a,n){if(1&a&&(e.TgZ(0,"td",38),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(t.description)}}function ie(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function ae(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"button",42),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,c=e.oxw();return e.KtG(c.changeExpiration(o))})("mouseenter",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.disabledRouting=!0)})("mouseleave",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.disabledRouting=o.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ze(a,n){if(1&a&&(e.TgZ(0,"td",38),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,ae,3,0,"button",41),e.qZA()),2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,t))," "),e.xp6(3),e.Q6J("ngIf",i.canManageGroup(t))}}function Je(a,n){1&a&&e._UZ(0,"th",33)}function ct(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",34)(1,"perun-web-apps-group-menu",43),e.NdJ("mouseenter",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.disabledRouting=!0)})("mouseleave",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.disabledRouting=o.disableRouting)})("moveGroup",function(){const c=e.CHM(t).$implicit,p=e.oxw();return e.KtG(p.onMoveGroup(c))})("changeNameDescription",function(){const c=e.CHM(t).$implicit,p=e.oxw();return e.KtG(p.onChangeNameDescription(c))})("syncGroup",function(){const c=e.CHM(t).$implicit,p=e.oxw();return e.KtG(p.onSyncDetail(c))}),e.qZA()()}if(2&a){const t=n.$implicit,i=e.oxw();e.xp6(1),e.Q6J("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function ze(a,n){1&a&&e._UZ(0,"tr",44)}const oe=function(a,n){return["/organizations",a,"groups",n]};function V(a,n){if(1&a&&e._UZ(0,"tr",45),2&a){const t=n.$implicit,i=e.oxw();e.ekj("cursor-pointer",!i.disableRouting&&!i.groupsToDisableRouting.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisableRouting.has(t.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:e.WLB(6,oe,t.voId,t.id))("perunWebAppsForceRouterLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:e.WLB(9,oe,t.voId,t.id))}}function r(a,n){if(1&a&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,t.noGroupsAlert),"\n")}}function s(a,n){1&a&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const f=function(a){return{all:a}};let l=(()=>{class a{constructor(t,i,o,c,p){this.dialog=t,this.authResolver=i,this.voService=o,this.tableCheckbox=c,this.changeDetector=p,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new E.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=(M,Me)=>a.getDataForColumn(M,Me,this.voNames),this.getSortDataForColumnFun=(M,Me)=>a.getSortDataForColumn(M,Me,this.voNames,this.recentIds),this.canBeSelected=M=>!("members"===M.name&&this.disableMembers||this.disableSelect(M))}set matSort(t){this.sort=t}static getDataForColumn(t,i,o){switch(i){case"id":return t.id.toString();case"vo":return o.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const c=(0,g.x2)(t);return(0,g.sG)(c)}case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[i]}}static getSortDataForColumn(t,i,o,c){switch(i){case"id":return t.id.toString();case"vo":return o.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const p=(0,g.x2)(t);return p&&"never"!==p.toLowerCase()?(0,S.p6)(p,"yyyy.MM.dd","en"):p}case"recent":return c&&c.includes(t.id)?"#".repeat(c.indexOf(t.id)):t.name;case"status":return t.status;default:return t[i]}}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 t of this.groups)if("members"===t.name)return!0;return!1}exportAllData(t){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),t)}exportDisplayedData(t){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,o=i+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,o),this.displayedColumns,this.getDataForColumnFun),t)}setDataSource(){this.dataSource||(this.dataSource=new y.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,i)=>(0,g.Sd)(t,i,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(t,i)=>(0,g.pR)(t,i,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(t){return this.disableGroups&&(this.groupsToDisableCheckbox.has(t.id)||(0,g.bx)(t))}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(t=>"id"!==t),this.changeDetector.detectChanges())}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const i=(0,g.kZ)();i.data={groupId:t.id,theme:this.theme},this.dialog.open(d.Bp,i)}onChangeNameDescription(t){const i=(0,g.kZ)();i.data={theme:"group-theme",group:t,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,i).afterClosed().subscribe(c=>{c&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,i)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,i)=>t&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[i]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,i)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,i]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,i)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[i]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,i)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,i]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":t.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(t=>{this.voIds.has(t.voId)||this.voIds.add(t.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(t=>{t.forEach(i=>{this.voNames.set(i.id,i.name)})}))}changeExpiration(t){const i=t.attributes.find(p=>"groupMembershipExpiration"===p.baseFriendlyName),o=(0,g.kZ)();o.width="400px",o.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,status:this.getStatusAttribute(t)},this.dialog.open(d.u3,o).afterClosed().subscribe(p=>{p.success&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}getStatusAttribute(t){const i=t.attributes.find(o=>"groupStatus"===o.baseFriendlyName);return i?.value?i.value:""}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(U.uw),e.Y36(w.x4),e.Y36(_.YF),e.Y36(w.UA),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,i){if(1&t&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&t){let o;e.iGM(o=e.CRH())&&(i.child=o.first),e.iGM(o=e.CRH())&&(i.matSort=o.first)}},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(c){return i.shouldHideButtons(c)},!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:39,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","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(t,i){1&t&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(c){return i.exportDisplayedData(c)})("exportAllData",function(c){return i.exportAllData(c)}),e.TgZ(2,"table",2),e.YNc(3,Ge,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Ce,3,3,"th",5),e.YNc(7,qe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Pe,1,0,"th",8),e.YNc(10,we,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,j,3,3,"th",5),e.YNc(13,I,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,F,1,0,"th",8),e.YNc(16,_e,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Te,3,3,"th",5),e.YNc(19,et,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,Xe,3,3,"th",5),e.YNc(22,vt,2,6,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,rt,3,3,"th",5),e.YNc(25,ht,6,9,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,W,3,3,"th",5),e.YNc(28,le,2,1,"td",14),e.BQk(),e.ynx(29,17),e.YNc(30,ie,3,3,"th",5),e.YNc(31,Ze,5,6,"td",14),e.BQk(),e.ynx(32,18),e.YNc(33,Je,1,0,"th",8),e.YNc(34,ct,2,3,"td",9),e.BQk(),e.YNc(35,ze,1,0,"tr",19),e.YNc(36,V,1,12,"tr",20),e.qZA()()(),e.YNc(37,r,3,3,"perun-web-apps-alert",21),e.YNc(38,s,3,3,"perun-web-apps-alert",21)),2&t&&(e.Q6J("hidden",0===i.groups.length||!i.dataSource||0===i.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,f,e.Dn7(4,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),e.xp6(32),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===i.groups.length),e.xp6(1),e.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.groups.length))},dependencies:[S.O5,A.oG,y.BZ,y.fO,y.as,y.w1,y.Dz,y.nj,y.ge,y.ev,y.XQ,y.Gk,b.YE,b.nU,N.w,z.Hw,Q.lW,ne.gM,he.l,ee.i,fe.Kd,fe.YH,ce.W,ve.x,v.X$,O.f,H,Y.F,q.M,ue.I],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}"]}),a})()},58956:(We,pe,h)=>{"use strict";h.d(pe,{I:()=>Se});var e=h(94650),d=h(35423),_=h(57851),w=h(95017);class g{constructor(Ce){this.id=Ce.id,this.name=Ce.name,this.parentGroupId=Ce.parentGroupId,this.voId=Ce.voId,this.shortName=Ce.shortName,this.description=Ce.description,this.attributes=Ce.attributes,this.beanName=Ce.beanName}addChild(Ce){null==this.children?this.children=[Ce]:this.children.push(Ce)}}var b=h(9244),y=h(74281),E=h(35382),S=h(65412),U=h(36895),A=h(56709),N=h(94364),z=h(98380),Q=h(97392),ne=h(4859),he=h(10266),ee=h(67376),fe=h(13449),ce=h(89383);const ve=["scrollViewport"];function v(Ge,Ce){if(1&Ge){const qe=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(qe);const we=e.oxw().$implicit,j=e.oxw(2);return e.KtG(j.itemSelectionToggle(we))}),e.qZA()}if(2&Ge){const qe=e.oxw().$implicit,Pe=e.oxw(2);e.Q2q("data-cy","",qe.name,"-checkbox"),e.Q6J("disabled","members"===qe.fullName)("checked",Pe.selection.isSelected(qe))("indeterminate",Pe.descendantsPartiallySelected(qe))}}function O(Ge,Ce){if(1&Ge&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ge){const qe=e.oxw().$implicit,Pe=e.oxw(2);e.xp6(1),e.hij(" ",Pe.treeControl.isExpanded(qe)?"expand_more":"chevron_right"," ")}}function H(Ge,Ce){if(1&Ge&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ge){const qe=e.oxw().$implicit;e.xp6(1),e.hij(" #",qe.id," ")}}const Y=function(Ge,Ce){return["/organizations",Ge,"groups",Ce]};function q(Ge,Ce){if(1&Ge){const qe=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,v,1,4,"mat-checkbox",7),e.TgZ(3,"a",8)(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(qe);const we=e.oxw(2);return e.KtG(we.disableRouting=!0)})("mouseleave",function(){e.CHM(qe);const we=e.oxw(2);return e.KtG(we.disableRouting=!1)})("click",function(){const j=e.CHM(qe).$implicit,I=e.oxw(2);return e.KtG(I.treeControl.toggle(j))}),e.YNc(5,O,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,H,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const j=e.CHM(qe).$implicit,I=e.oxw(2);return e.KtG(I.onMoveGroup(j))})("syncGroup",function(){const j=e.CHM(qe).$implicit,I=e.oxw(2);return e.KtG(I.onSyncDetail(j))})("changeNameDescription",function(){const j=e.CHM(qe).$implicit,I=e.oxw(2);return e.KtG(I.onChangeNameDescription(j))}),e.qZA()()(),e.BQk()}if(2&Ge){const qe=Ce.$implicit,Pe=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*qe.level+"px"),e.xp6(1),e.Q6J("ngIf",!Pe.hideCheckbox),e.xp6(1),e.Q6J("routerLink",Pe.disableRouting?null:e.WLB(15,Y,qe.voId,qe.id)),e.xp6(1),e.Q6J("disabled",!qe.expandable),e.uIk("aria-label","toggle "+qe.name),e.xp6(1),e.Q6J("ngIf",qe.expandable),e.xp6(2),e.uIk("data-cy",qe.name),e.xp6(1),e.hij(" ",qe.name," "),e.xp6(1),e.Q6J("ngIf",Pe.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",qe.description),e.xp6(1),e.hij(" ",qe.description," "),e.xp6(2),e.Q6J("disabled","members"===qe.fullName)("displayButtons",Pe.displayButtons)("group",qe)}}const ue=function(Ge){return{height:Ge}};function Ee(Ge,Ce){if(1&Ge&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,q,16,18,"ng-container",5),e.qZA()()),2&Ge){const qe=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ue,qe.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",qe.dataSource)}}function De(Ge,Ce){1&Ge&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Se=(()=>{class Ge{constructor(qe,Pe,we){this.cd=qe,this.dialog=Pe,this.authResolver=we,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(j=>j.level,j=>j.expandable),this.hasChild=(j,I)=>I.expandable,this.getLevel=j=>j.level,this.transformer=(j,I)=>({expandable:!!j.children&&j.children.length>0,name:j.shortName,fullName:j.name,parentGroupId:j.parentGroupId,level:I,id:j.id,voId:j.voId,attributes:j.attributes,beanName:j.beanName,description:j.description}),this.treeFlattener=new d.JZ(this.transformer,j=>j.level,j=>j.expandable,j=>j.children),this.dataSource=new d.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(qe=>qe.name?.toLowerCase().includes(this.filterValue.toLowerCase())||qe.description?.toLowerCase().includes(this.filterValue.toLowerCase())||qe.id.toString().includes(this.filterValue.toLowerCase())||qe.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const qe of this.filteredGroups)qe.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,b.oU)(qe.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(qe){const Pe=(0,b.kZ)();Pe.data={groupId:qe.id,theme:this.theme},this.dialog.open(y.Bp,Pe)}onChangeNameDescription(qe){const Pe=(0,b.kZ)();Pe.data={theme:"group-theme",group:qe,dialogType:y.Eg.GROUP},this.dialog.open(y.rd,Pe).afterClosed().subscribe(j=>{j&&this.refreshTable.emit()})}createGroupTrees(qe){const Pe=new Map;for(const I of qe)Pe.set(I.id,new g(I));const we=new Set;Pe.forEach((I,F,ge)=>{const G=ge.get(I.parentGroupId);void 0!==G&&(G.addChild(I),ge.set(I.parentGroupId,G)),null!==I.parentGroupId&&void 0===G&&we.add(I.id)});const j=[];Pe.forEach(I=>{(null===I.parentGroupId||we.has(I.id))&&j.push(I)}),this.dataSource.data=j,this.cd.detectChanges()}getParentNode(qe){const Pe=this.getLevel(qe);if(Pe<1)return null;for(let j=this.treeControl.dataNodes.indexOf(qe)-1;j>=0;j--){const I=this.treeControl.dataNodes[j];if(this.getLevel(I)this.selection.isSelected(I));Pe&&!j&&this.selection.deselect(qe)}checkAllParentsSelection(qe){let Pe=this.getParentNode(qe);for(;Pe;)this.checkRootNodeSelection(Pe),Pe=this.getParentNode(Pe);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(qe){return this.treeControl.getDescendants(qe).some(j=>this.selection.isSelected(j))&&!this.selection.isSelected(qe)}itemSelectionToggle(qe){this.selection.toggle(qe);const Pe=this.treeControl.getDescendants(qe);this.selection.isSelected(qe)?this.selection.select(...Pe):this.selection.deselect(...Pe),Pe.every(we=>this.selection.isSelected(we)),this.checkAllParentsSelection(qe)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(qe,Pe)=>qe&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,Pe]):(qe,Pe)=>qe&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[Pe]),!0)}onMoveGroup(qe){this.moveGroup.emit(qe)}getTreeViewHeight(){let qe=0;this.scrollViewport&&(qe=this.scrollViewport.getDataLength());let Pe=48*qe;return Pe>672&&(Pe=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(Pe)+"px"}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(e.Y36(e.sBO),e.Y36(S.uw),e.Y36(E.x4))},Ge.\u0275cmp=e.Xpm({type:Ge,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(qe,Pe){if(1&qe&&e.Gf(ve,5),2&qe){let we;e.iGM(we=e.CRH())&&(Pe.scrollViewport=we.first)}},hostBindings:function(qe,Pe){1&qe&&e.NdJ("resize",function(j){return Pe.shouldHideButtons(j)},!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(qe,Pe){1&qe&&(e.YNc(0,Ee,4,6,"div",0),e.YNc(1,De,3,3,"perun-web-apps-alert",1)),2&qe&&(e.Q6J("ngIf",0!==Pe.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===Pe.filteredGroups.length))},dependencies:[U.O5,U.PC,A.oG,N.yS,z.w,Q.Hw,ne.lW,he.gM,ee.xd,ee.x0,ee.N7,fe.i,ce.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}"]}),Ge})()},52314:(We,pe,h)=>{"use strict";h.d(pe,{X:()=>z});var e=h(35382),d=h(94650),_=h(36895),w=h(97392),g=h(28255),b=h(4859),y=h(10266),E=h(89383);const S=function(Q){return{color:Q}};function U(Q,ne){if(1&Q&&(d.TgZ(0,"button",8),d.ALo(1,"translate"),d.TgZ(2,"mat-icon",4),d._uU(3," apps "),d.qZA()()),2&Q){const he=d.oxw(),ee=d.MAs(2);d.Q6J("matMenuTriggerFor",ee)("matTooltip",d.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),d.xp6(2),d.Q6J("ngStyle",d.VKq(5,S,he.iconColor))}}function A(Q,ne){if(1&Q&&(d.TgZ(0,"span",9),d._uU(1),d.qZA()),2&Q){const he=d.oxw();d.Q6J("ngStyle",d.VKq(6,S,he.textColor)),d.xp6(1),d.xDo(" ",he.user.titleBefore," ",he.user.firstName," ",he.user.middleName," ",he.user.lastName," ",he.user.titleAfter," ")}}function N(Q,ne){if(1&Q){const he=d.EpF();d.TgZ(0,"button",2),d.NdJ("click",function(){d.CHM(he);const fe=d.oxw();return d.KtG(fe.onLogOut())}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&Q&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"NAV.LOGOUT")," "))}let z=(()=>{class Q{constructor(he){this.authService=he}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return Q.\u0275fac=function(he){return new(he||Q)(d.Y36(e.e8))},Q.\u0275cmp=d.Xpm({type:Q,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(he,ee){if(1&he&&(d.YNc(0,U,4,7,"button",0),d.TgZ(1,"mat-menu",null,1)(3,"button",2),d.NdJ("click",function(){return ee.redirectToUrl()}),d.TgZ(4,"span"),d._uU(5),d.qZA()()(),d.TgZ(6,"button",3)(7,"mat-icon",4),d._uU(8," person "),d.qZA(),d.YNc(9,A,2,8,"span",5),d.qZA(),d.TgZ(10,"mat-menu",null,6),d.YNc(12,N,3,3,"button",7),d.qZA()),2&he){const fe=d.MAs(11);d.Q6J("ngIf",ee.url),d.xp6(5),d.Oqu(ee.label),d.xp6(1),d.Q6J("matMenuTriggerFor",fe),d.xp6(1),d.Q6J("ngStyle",d.VKq(6,S,ee.iconColor)),d.xp6(2),d.Q6J("ngIf",null!==ee.user),d.xp6(3),d.Q6J("ngIf",ee.logoutEnabled)}},dependencies:[_.O5,_.PC,w.Hw,g.VK,g.OP,g.p6,b.lW,y.gM,E.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),Q})()},7434:(We,pe,h)=>{"use strict";h.d(pe,{L:()=>U});var e=h(94650),d=h(24006),_=h(36895),w=h(59549),g=h(284),b=h(50301),y=h(89383);function E(A,N){if(1&A&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&A){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}function S(A,N){if(1&A&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&A){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}let U=(()=>{class A{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new d.p4}ngOnInit(){this.formControl.valueChanges.subscribe(z=>{let Q=z.trim();Q=Q.toLowerCase(),this.filter.emit(Q)})}}return A.\u0275fac=function(z){return new(z||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(z,Q){1&z&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,E,2,4,"input",1),e.YNc(2,S,2,4,"input",2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",Q.autoFocus),e.xp6(1),e.Q6J("ngIf",!Q.autoFocus))},dependencies:[_.O5,d.Fj,d.JJ,w.KE,d.oH,g.Nt,b.hT,y.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),A})()},4811:(We,pe,h)=>{"use strict";h.d(pe,{m:()=>oe});var e=h(74281),d=h(35382),_=h(9244),w=h(96308),g=h(56451),b=h(18505),y=h(94650),E=h(65412),S=h(10036),U=h(36895),A=h(56709),N=h(30671),z=h(94364),Q=h(51572),ne=h(98380),he=h(97392),ee=h(10266),fe=h(18750),ce=h(50301),ve=h(89383),v=h(31359),O=h(69773),H=h(21757),Y=h(12856),q=h(20919),ue=h(5865),Ee=h(82514),De=h(96974),Se=h(38993),Ge=h(86349);function Ce(V,r){1&V&&(y.TgZ(0,"div",22),y._UZ(1,"mat-spinner",23),y.qZA())}function qe(V,r){if(1&V){const s=y.EpF();y.TgZ(0,"th",24)(1,"mat-checkbox",25),y.NdJ("change",function(l){y.CHM(s);const a=y.oxw();return y.KtG(l?a.masterToggle():null)}),y.qZA()()}if(2&V){const s=y.oxw();y.xp6(1),y.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&s.isAllSelected())("indeterminate",s.selection.hasValue()&&!s.isAllSelected())}}function Pe(V,r){if(1&V){const s=y.EpF();y.TgZ(0,"td",26)(1,"mat-checkbox",27),y.NdJ("change",function(l){const n=y.CHM(s).$implicit,t=y.oxw();return y.KtG(l?t.selection.toggle(n):null)})("click",function(l){return l.stopPropagation()}),y.ALo(2,"lowercase"),y.ALo(3,"memberStatusDisabled"),y.ALo(4,"memberCheckboxLabel"),y.qZA()()}if(2&V){const s=r.$implicit,f=y.oxw();y.xp6(1),y.Q2q("data-cy","",y.lcZ(2,5,s.user.firstName),"-checkbox"),y.Q6J("aria-label",f.checkboxLabel(s))("checked",f.selection.isSelected(s))("disabled",y.xi3(3,7,s,f.groupId))("matTooltip",y.xi3(4,10,s,f.groupId))}}function we(V,r){1&V&&(y.TgZ(0,"th",28),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.ID")))}function j(V,r){if(1&V&&(y.TgZ(0,"td",29),y._uU(1),y.qZA()),2&V){const s=r.$implicit;y.xp6(1),y.Oqu(s.id)}}function I(V,r){1&V&&y._UZ(0,"th",28)}function F(V,r){if(1&V){const s=y.EpF();y.TgZ(0,"mat-icon",32),y.NdJ("click",function(l){y.CHM(s);const a=y.oxw().$implicit,n=y.oxw();return y.KtG(n.viewMemberGroupTree(l,a))}),y.ALo(1,"translate"),y._uU(2,"transfer_within_a_station"),y.qZA()}2&V&&y.Q6J("matTooltip",y.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ge(V,r){if(1&V&&(y.TgZ(0,"td",30),y.YNc(1,F,3,3,"mat-icon",31),y.qZA()),2&V){const s=r.$implicit;y.xp6(1),y.Q6J("ngIf","DIRECT"!==s.membershipType)}}function G(V,r){1&V&&(y.TgZ(0,"th",28),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function _e(V,r){if(1&V&&(y.TgZ(0,"td",30),y.ALo(1,"lowercase"),y._uU(2),y.ALo(3,"userFullName"),y.qZA()),2&V){const s=r.$implicit;y.Q2q("data-cy","",y.lcZ(1,2,s.user.firstName),"-firstName-td"),y.xp6(2),y.hij(" ",y.lcZ(3,4,s.user)," ")}}function Te(V,r){1&V&&(y.TgZ(0,"th",33),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function et(V,r){if(1&V){const s=y.EpF();y.TgZ(0,"td",30)(1,"i",34),y.NdJ("click",function(l){const n=y.CHM(s).$implicit,t=y.oxw();return y.KtG(t.changeStatus(l,n))}),y.ALo(2,"memberStatusIconColor"),y.ALo(3,"memberStatusTooltip"),y.TgZ(4,"span"),y._uU(5),y.ALo(6,"memberStatusIcon"),y.qZA()()()}if(2&V){const s=r.$implicit;y.xp6(1),y.Gre("material-icons ",y.lcZ(2,5,s),""),y.s9C("matTooltip",y.xi3(3,7,s,!1)),y.xp6(4),y.hij(" ",y.lcZ(6,10,s.status)," ")}}function Xe(V,r){1&V&&(y.TgZ(0,"th",33),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function vt(V,r){if(1&V){const s=y.EpF();y.TgZ(0,"td",30)(1,"i",34),y.NdJ("click",function(l){const n=y.CHM(s).$implicit,t=y.oxw();return y.KtG(t.changeStatus(l,n,t.groupId))}),y.ALo(2,"groupStatusIconColor"),y.ALo(3,"memberStatusTooltip"),y.TgZ(4,"span"),y._uU(5),y.ALo(6,"memberStatusIcon"),y.qZA()()()}if(2&V){const s=r.$implicit,f=y.oxw();y.xp6(1),y.Gre("material-icons ",y.Dn7(2,5,s.groupStatus,"INDIRECT"===s.membershipType,f.isMembersGroup),""),y.s9C("matTooltip",y.Dn7(3,9,s,!0,f.isMembersGroup)),y.xp6(4),y.hij(" ",y.lcZ(6,13,s.groupStatus)," ")}}function rt(V,r){1&V&&(y.TgZ(0,"th",33),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function ht(V,r){if(1&V&&(y.TgZ(0,"td",30),y._uU(1),y.ALo(2,"memberOrganization"),y.qZA()),2&V){const s=r.$implicit;y.xp6(1),y.Oqu(y.lcZ(2,1,s))}}function W(V,r){1&V&&(y.TgZ(0,"th",33),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function le(V,r){if(1&V&&(y.TgZ(0,"td",30),y._uU(1),y.ALo(2,"memberEmail"),y.qZA()),2&V){const s=r.$implicit;y.xp6(1),y.Oqu(y.lcZ(2,1,s))}}function ie(V,r){1&V&&(y.TgZ(0,"th",33),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.Oqu(y.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function ae(V,r){if(1&V&&(y.TgZ(0,"td",30),y._uU(1),y.ALo(2,"memberLogins"),y.qZA()),2&V){const s=r.$implicit;y.xp6(1),y.Oqu(y.lcZ(2,1,s))}}function Ze(V,r){1&V&&y._UZ(0,"tr",35)}const Je=function(V,r){return["/organizations",V,"members",r]};function ct(V,r){if(1&V&&y._UZ(0,"tr",36),2&V){const s=r.$implicit,f=y.oxw();y.ekj("cursor-pointer",f.dataSource.routeAuth)("italic_font","INDIRECT"===s.membershipType)("disable-outline",!f.dataSource.routeAuth),y.Q6J("perunWebAppsMiddleClickRouterLink",f.dataSource.routeAuth?y.WLB(8,Je,s.voId,s.id):null)("routerLink",f.dataSource.routeAuth?y.WLB(11,Je,s.voId,s.id):null)}}function ze(V,r){1&V&&(y.TgZ(0,"perun-web-apps-alert",37),y._uU(1),y.ALo(2,"translate"),y.qZA()),2&V&&(y.xp6(1),y.hij(" ",y.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let oe=(()=>{class V{constructor(s,f,l,a,n){this.dialog=s,this.authResolver=f,this.tableCheckbox=l,this.tableConfigService=a,this.dynamicPaginatingService=n,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=_.f7,this.canBeSelected=t=>!(0,_.im)(t)}static getExportDataForColumn(s,f){switch(f){case"id":return s.id.toString();case"fullName":return s.user?(0,_.bD)(s.user):"";case"status":return s.status;case"groupStatus":return s.groupStatus;case"organization":return(0,_.Gw)(s);case"email":return(0,_.g$)(s);case"logins":return(0,_.lt)(s);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(s=>"id"!==s)),this.dataSource=new d.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(s=>{this.canBeSelected(s)&&this.selection.select(s)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(l=>this.canBeSelected(l)).length}checkboxLabel(s){return s?`${this.selection.isSelected(s)?"deselect":"select"} row ${s.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(s,f,l){if(s.stopPropagation(),this.isMembersGroup&&l)return;const a=(0,_.zr)(f);if("INDIRECT"===a&&l||!l&&"UNALTERABLE"===a)return;const n=(0,_.kZ)();n.width="500px",n.data={member:f,voId:this.voId,groupId:l};const t=l?f.groupStatus:f.status;this.dialog.open(e.pf,n).afterClosed().subscribe(o=>{if(o){const c=l?o.groupStatus:o.status;"VALID"===t&&("EXPIRED"===c||"DISABLED"===c)||"VALID"===c?(l?f.groupStatus=c:f.status=c,this.changeExpiration(f,l)):this.loadMembersPage()}})}changeExpiration(s,f){const l=s.memberAttributes.find(f?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),a=(0,_.kZ)();let n;a.width="400px",a.data={voId:this.voId,groupId:f,memberId:s.id,expirationAttr:l,status:f?s.groupStatus:s.status,statusChanged:!0},n=this.dialog.open(f?e.u3:e.kZ,a),n.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)}exportDisplayedData(s){(0,_.O6)((0,_.Xn)(this.dataSource.getData(),this.displayedColumns,V.getExportDataForColumn),s)}exportAllData(s){const f="asc"===this.sort.direction?"ASCENDING":"DESCENDING",l="fullName"===this.sort.active?"NAME":"ID",a=(0,_.kZ)();a.width="300px";const n=this.dialog.open(e.QQ,a);this.dataSource.getAllMembers(this.voId,this.attrNames,f,this.child.paginator.length,l,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(t=>{n.close(),(0,_.O6)((0,_.Xn)(t,this.displayedColumns,V.getExportDataForColumn),s)})}viewMemberGroupTree(s,f){s.stopPropagation();const l=(0,_.kZ)();l.width="800px",l.data={member:f,groupId:this.groupId},this.dialog.open(e.jd,l)}}return V.\u0275fac=function(s){return new(s||V)(y.Y36(E.uw),y.Y36(d.x4),y.Y36(d.UA),y.Y36(S.dB),y.Y36(d.ly))},V.\u0275cmp=y.Xpm({type:V,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(s,f){if(1&s&&(y.Gf(_.l9,7),y.Gf(w.YE,5)),2&s){let l;y.iGM(l=y.CRH())&&(f.child=l.first),y.iGM(l=y.CRH())&&(f.sort=l.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup"},features:[y.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["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(s,f){1&s&&(y.TgZ(0,"div",0),y.ALo(1,"async"),y.TgZ(2,"perun-web-apps-table-wrapper",1),y.NdJ("exportDisplayedData",function(a){return f.exportDisplayedData(a)})("exportAllData",function(a){return f.exportAllData(a)}),y.YNc(3,Ce,2,0,"div",2),y.ALo(4,"async"),y.TgZ(5,"table",3),y.ynx(6,4),y.YNc(7,qe,2,3,"th",5),y.YNc(8,Pe,5,13,"td",6),y.BQk(),y.ynx(9,7),y.YNc(10,we,3,3,"th",8),y.YNc(11,j,2,1,"td",9),y.BQk(),y.ynx(12,10),y.YNc(13,I,1,0,"th",8),y.YNc(14,ge,2,1,"td",11),y.BQk(),y.ynx(15,12),y.YNc(16,G,3,3,"th",8),y.YNc(17,_e,4,6,"td",11),y.BQk(),y.ynx(18,13),y.YNc(19,Te,3,3,"th",14),y.YNc(20,et,7,12,"td",11),y.BQk(),y.ynx(21,15),y.YNc(22,Xe,3,3,"th",14),y.YNc(23,vt,7,15,"td",11),y.BQk(),y.ynx(24,16),y.YNc(25,rt,3,3,"th",14),y.YNc(26,ht,3,3,"td",11),y.BQk(),y.ynx(27,17),y.YNc(28,W,3,3,"th",14),y.YNc(29,le,3,3,"td",11),y.BQk(),y.ynx(30,18),y.YNc(31,ie,3,3,"th",14),y.YNc(32,ae,3,3,"td",11),y.BQk(),y.YNc(33,Ze,1,0,"tr",19),y.YNc(34,ct,1,14,"tr",20),y.qZA()()(),y.YNc(35,ze,3,3,"perun-web-apps-alert",21),y.ALo(36,"async")),2&s&&(y.Q6J("hidden",0===f.dataSource.allObjectCount&&!1===y.lcZ(1,9,f.dataSource.loading$)),y.xp6(2),y.Q6J("tableId",f.tableId)("dataLength",f.dataSource.allObjectCount)("pageSizeOptions",f.pageSizeOptions),y.xp6(1),y.Q6J("ngIf",y.lcZ(4,11,f.dataSource.loading$)),y.xp6(2),y.Q6J("dataSource",f.dataSource),y.xp6(28),y.Q6J("matHeaderRowDef",f.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",f.displayedColumns),y.xp6(1),y.Q6J("ngIf",0===f.dataSource.allObjectCount&&!1===y.lcZ(36,13,f.dataSource.loading$)))},dependencies:[U.O5,A.oG,N.BZ,N.fO,N.as,N.w1,N.Dz,N.nj,N.ge,N.ev,N.XQ,N.Gk,z.rH,w.YE,w.nU,Q.Ou,ne.w,he.Hw,ee.gM,fe.l,ce.YH,U.Ov,U.i8,ve.X$,v.d,O.u,H.f,Y.i,q.D,ue.p,Ee.F,De.M,Se.n,Ge.A],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),V})()},38383:(We,pe,h)=>{"use strict";h.d(pe,{O:()=>l});var e=h(94650),d=h(96308),_=h(30671),w=h(95017),g=h(9244),b=h(74281),y=h(35382),E=h(65412),S=h(94364),U=h(36895),A=h(56709),N=h(98380),z=h(97392),Q=h(10266),ne=h(18750),he=h(50301),ee=h(89383),fe=h(31359),ce=h(69773),ve=h(21757),v=h(12856),O=h(20919),H=h(5865),Y=h(82514),q=h(96974),ue=h(9185);function Ee(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"th",27)(1,"mat-checkbox",28),e.NdJ("change",function(o){e.CHM(t);const c=e.oxw(2);return e.KtG(o?c.masterToggle():null)}),e.qZA()()}if(2&a){const t=e.oxw().ngIf,i=e.oxw();e.xp6(1),e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&t.all)("indeterminate",i.selection.hasValue()&&!t.all)}}function De(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",29)(1,"mat-checkbox",30),e.NdJ("change",function(o){const p=e.CHM(t).$implicit,M=e.oxw(2);return e.KtG(o?M.selection.toggle(p):null)})("click",function(o){return o.stopPropagation()}),e.ALo(2,"translate"),e.qZA()()}if(2&a){const t=n.$implicit,i=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",t.user.firstName,"-checkbox"),e.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?e.lcZ(2,5,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function Se(a,n){1&a&&(e.ynx(0,24),e.YNc(1,Ee,2,3,"th",25),e.YNc(2,De,3,7,"td",26),e.BQk())}function Ge(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Ce(a,n){if(1&a&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(t.id)}}function qe(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function Pe(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(t.voId)}}function we(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function j(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(t.userId)}}function I(a,n){1&a&&e._UZ(0,"th",31)}function F(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"mat-icon",35),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,c=e.oxw();return e.KtG(c.viewMemberGroupTree(o))})("mouseenter",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.disableRouting=!0)})("mouseleave",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.disableRouting=o.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&a&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ge(a,n){if(1&a&&(e.TgZ(0,"td",33),e.YNc(1,F,3,3,"mat-icon",34),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==t.membershipType)}}function G(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function _e(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.user))}}function Te(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function et(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",33)(1,"i",36),e.NdJ("click",function(o){const p=e.CHM(t).$implicit,M=e.oxw();return e.KtG(M.changeStatus(o,p))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&a){const t=n.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,t),""),e.s9C("matTooltip",e.xi3(3,7,t,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,t.status)," ")}}function Xe(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function vt(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"td",33)(1,"i",36),e.NdJ("click",function(o){const p=e.CHM(t).$implicit,M=e.oxw();return e.KtG(M.changeStatus(o,p))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&a){const t=n.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,t.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,t,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,t.groupStatus)," ")}}function rt(a,n){1&a&&(e.TgZ(0,"th",37),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function ht(a,n){1&a&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function W(a,n){if(1&a&&(e.TgZ(0,"td",38),e.YNc(1,ht,2,0,"mat-icon",39),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Q6J("ngIf",t.sponsored)}}function le(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function ie(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t))}}function ae(a,n){1&a&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function Ze(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t))}}function Je(a,n){1&a&&(e.TgZ(0,"th",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function ct(a,n){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&a){const t=n.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t))}}function ze(a,n){1&a&&e._UZ(0,"tr",41)}const oe=function(a,n){return["/organizations",a,"members",n]};function V(a,n){if(1&a&&e._UZ(0,"tr",42),2&a){const t=n.$implicit,i=e.oxw();e.ekj("cursor-pointer",!i.disabledRouting)("disable-outline",i.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:e.WLB(6,oe,t.voId,t.id))("routerLink",i.disableRouting?null:e.WLB(9,oe,t.voId,t.id))}}function r(a,n){1&a&&(e.TgZ(0,"perun-web-apps-alert",43),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function s(a,n){1&a&&(e.TgZ(0,"perun-web-apps-alert",43),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const f=function(a){return{all:a}};let l=(()=>{class a{constructor(t,i,o,c){this.dialog=t,this.authResolver=i,this.tableCheckbox=o,this.route=c,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=(p,M)=>a.getExportDataForColumn(p,M,this.showGroupStatuses),this.getSortDataForColumnFun=(p,M)=>a.getSortDataForColumn(p,M,this.showGroupStatuses),this.canBeSelected=p=>"DIRECT"===p.membershipType}set matSort(t){this.sort=t}static getFilterDataForColumn(t,i){switch(i){case"fullName":return t.user?(0,g.bD)(t.user):"";case"email":return(0,g.g$)(t);case"logins":return(0,g.lt)(t);default:return""}}static getExportDataForColumn(t,i,o){switch(i){case"id":return t.id.toString();case"fullName":return t.user?(0,g.bD)(t.user):"";case"status":return o?t.groupStatus:t.status;case"organization":return(0,g.Gw)(t);case"email":return(0,g.g$)(t);case"logins":return(0,g.lt)(t);default:return""}}static getSortDataForColumn(t,i,o){switch(i){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:t.user.firstName??"":"";case"status":return o?t.groupStatus:t.status;case"organization":return(0,g.Gw)(t);case"email":return(0,g.g$)(t);default:return""}}exportDisplayedData(t){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,o=i+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,o),this.displayedColumns,this.getExportDataForColumnFun),t)}exportAllData(t){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),t)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,i)=>(0,g.Sd)(t,i,this.displayedColumns,a.getFilterDataForColumn),this.dataSource.sortData=(t,i)=>(0,g.pR)(t,i,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(t=>{t.groupId&&(this.groupId=Number(t.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,i){if(t.stopPropagation(),!this.disableStatusChange){const o=(0,g.kZ)();o.width="500px",o.data={member:i,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(b.pf,o).afterClosed().subscribe(p=>{p&&this.updateTable.emit(!0)})}}viewMemberGroupTree(t){const i=(0,g.kZ)();i.width="800px",i.data={member:t,groupId:this.groupId},this.dialog.open(b.jd,i)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(E.uw),e.Y36(y.x4),e.Y36(y.UA),e.Y36(S.gz))},a.\u0275cmp=e.Xpm({type:a,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,i){if(1&t&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&t){let o;e.iGM(o=e.CRH())&&(i.child=o.first),e.iGM(o=e.CRH())&&(i.matSort=o.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:42,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["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(t,i){1&t&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(c){return i.exportDisplayedData(c)})("exportAllData",function(c){return i.exportAllData(c)}),e.TgZ(2,"table",2),e.YNc(3,Se,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Ge,3,3,"th",5),e.YNc(7,Ce,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,qe,3,3,"th",5),e.YNc(10,Pe,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,we,3,3,"th",5),e.YNc(13,j,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,I,1,0,"th",5),e.YNc(16,ge,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,G,3,3,"th",5),e.YNc(19,_e,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,Te,3,3,"th",5),e.YNc(22,et,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,Xe,3,3,"th",5),e.YNc(25,vt,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,rt,3,3,"th",15),e.YNc(28,W,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,le,3,3,"th",5),e.YNc(31,ie,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,ae,3,3,"th",5),e.YNc(34,Ze,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,Je,3,3,"th",20),e.YNc(37,ct,3,3,"td",8),e.BQk(),e.YNc(38,ze,1,0,"tr",21),e.YNc(39,V,1,12,"tr",22),e.qZA()()(),e.YNc(40,r,3,3,"perun-web-apps-alert",23),e.YNc(41,s,3,3,"perun-web-apps-alert",23)),2&t&&(e.Q6J("hidden",0===i.members.length||!i.dataSource||0===i.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId)("pageSizeOptions",i.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,f,e.Dn7(4,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==i.members.length&&0===i.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===i.members.length))},dependencies:[U.O5,A.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,S.rH,d.YE,d.nU,N.w,z.Hw,Q.gM,ne.l,he.YH,ee.X$,fe.d,ce.u,ve.f,v.i,O.D,H.p,Y.F,q.M,ue.I],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}"]}),a})()},22465:(We,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(94650),d=h(35382),_=h(9244),w=h(74281),g=h(65412),b=h(36895),y=h(97392),E=h(89383);function S(N,z){if(1&N&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&N){const Q=e.oxw();e.xp6(2),e.Oqu(Q.data.icon)}}function U(N,z){if(1&N&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&N){const Q=e.oxw();e.xp6(1),e.hij(" ",Q.showTimestamp()," ")}}let A=(()=>{class N{constructor(Q,ne){this.dialog=Q,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 Q=(0,_.kZ)();Q.width="550px",Q.data=this.data,Q.autoFocus=!1,this.dialog.open(w.FM,Q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,_.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[Q,ne]=this.data.timeStamp.split(":");return ne.length<2?Q+":0"+ne:this.data.timeStamp}}return N.\u0275fac=function(Q){return new(Q||N)(e.Y36(g.uw),e.Y36(d.SZ))},N.\u0275cmp=e.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(Q,ne){1&Q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return ne.alreadyClosed||ne.waiting?"":ne.closeSelf()}),e.YNc(2,S,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,U,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ne.waiting=!0,ne.doAction()}),e._uU(8),e.qZA()()()),2&Q&&(e.Gre("notification ",ne.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ne.data.type)("success","success"===ne.data.type),e.xp6(2),e.Q6J("ngIf",null!==ne.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ne.data.title)," "),e.xp6(2),e.Q6J("ngIf",ne.inDialog),e.xp6(1),e.Q6J("hidden",ne.alreadyPressed),e.xp6(1),e.hij(" ",ne.data.actionText," "))},dependencies:[b.O5,y.Hw,E.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}"]}),N})()},53599:(We,pe,h)=>{"use strict";h.d(pe,{N:()=>ue});var e=h(94650),d=h(32105),_=h(35382),w=h(30671),g=h(9244),b=h(74281),y=h(65412),E=h(94364),S=h(36895),U=h(96308),A=h(98380),N=h(4859),z=h(89383),Q=h(34447);function ne(Ee,De){1&Ee&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ee&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function he(Ee,De){1&Ee&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function ee(Ee,De){if(1&Ee&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&Ee){const Se=De.$implicit;e.xp6(1),e.Oqu(Se.friendlyNameParameter)}}function fe(Ee,De){1&Ee&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function ce(Ee,De){if(1&Ee&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&Ee){const Se=De.$implicit;e.xp6(1),e.Oqu(Se.value)}}function ve(Ee,De){1&Ee&&e._UZ(0,"th",16)}function v(Ee,De){if(1&Ee){const Se=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const qe=e.CHM(Se).$implicit,Pe=e.oxw();return e.KtG(Pe.resetPassword(qe.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&Ee){const Se=De.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(Se)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function O(Ee,De){1&Ee&&e._UZ(0,"th",16)}function H(Ee,De){if(1&Ee){const Se=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const qe=e.CHM(Se).$implicit,Pe=e.oxw();return e.KtG(Pe.changePassword(qe))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&Ee){const Se=De.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(Se)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Y(Ee,De){1&Ee&&e._UZ(0,"tr",22)}function q(Ee,De){1&Ee&&e._UZ(0,"tr",23)}let ue=(()=>{class Ee{constructor(Se,Ge,Ce,qe,Pe,we,j){this.attributesManagerService=Se,this.store=Ge,this.dialog=Ce,this.route=qe,this.router=Pe,this.otherApplicationService=we,this.entityStorageService=j,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(Se=>{const Ge=Se.split(":");return Ge[Ge.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(Se=>{if(this.logins=Se.filter(Ge=>this.nameSpaces.includes(Ge.friendlyNameParameter)),this.filteredNamespaces.emit(Se.map(Ge=>Ge.friendlyNameParameter)),this.dataSource=new w.by(Se),!this.authenticationPage){const Ce=this.route.snapshot.queryParamMap.get("namespace");if(Ce){const qe=this.logins.find(Pe=>Pe.friendlyNameParameter===Ce);qe&&this.changePassword(qe)}}})}resetPassword(Se){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",Se),"_blank")}changePassword(Se){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:Se.friendlyNameParameter},queryParamsHandling:"merge"});const Ge=(0,g.kZ)();Ge.width="600px",Ge.data={login:String(Se.value),namespace:Se.friendlyName.split(":")[1]},this.dialog.open(b.xF,Ge).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return Ee.\u0275fac=function(Se){return new(Se||Ee)(e.Y36(d.H8),e.Y36(_.d6),e.Y36(y.uw),e.Y36(E.gz),e.Y36(E.F0),e.Y36(_.jq),e.Y36(_.fb))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(Se,Ge){1&Se&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,ne,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,he,4,5,"th",7),e.YNc(11,ee,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,fe,4,5,"th",7),e.YNc(14,ce,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,ve,1,0,"th",7),e.YNc(17,v,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,O,1,0,"th",7),e.YNc(20,H,5,6,"td",12),e.BQk(),e.YNc(21,Y,1,0,"tr",14),e.YNc(22,q,1,0,"tr",15),e.qZA()()()()),2&Se&&(e.xp6(1),e.hij(" ",Ge.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!Ge.logins.length&&!Ge.authenticationPage),e.xp6(4),e.Q6J("dataSource",Ge.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",Ge.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ge.displayedColumns))},dependencies:[S.O5,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,U.YE,A.w,N.lW,z.X$,Q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),Ee})()},41619:(We,pe,h)=>{"use strict";h.d(pe,{$:()=>Pe});var e=h(35382),d=h(32105),_=h(94650),w=h(65412),g=h(89383),b=h(36895),y=h(24006),E=h(4859),S=h(59549),U=h(284);function A(we,j){1&we&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&we&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let N=(()=>{class we{constructor(I,F,ge,G,_e){this.dialogRef=I,this.translate=F,this.notificator=ge,this.rtMessages=G,this.storeService=_e,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("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: ",h(4147).i8)}close(){this.dialogRef.close()}}return we.\u0275fac=function(I){return new(I||we)(_.Y36(w.so),_.Y36(g.sK),_.Y36(e.V6),_.Y36(d.Hr),_.Y36(e.d6))},we.\u0275cmp=_.Xpm({type:we,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,F){if(1&I&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"input",2,3),_.NdJ("ngModelChange",function(G){return F.subject=G}),_.qZA(),_.YNc(10,A,3,3,"mat-error",4),_.qZA(),_.TgZ(11,"mat-form-field")(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"textarea",5),_.NdJ("ngModelChange",function(G){return F.message=G}),_.ALo(16,"translate"),_._uU(17," "),_.qZA(),_.TgZ(18,"mat-hint"),_._uU(19),_.ALo(20,"translate"),_.qZA()()(),_.TgZ(21,"div",6)(22,"div",7)(23,"button",8),_.NdJ("click",function(){return F.close()}),_._uU(24),_.ALo(25,"translate"),_.qZA(),_.TgZ(26,"button",9),_.NdJ("click",function(){return F.sendBugReport()}),_._uU(27),_.ALo(28,"translate"),_.qZA()()()),2&I){const ge=_.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",F.subject),_.xp6(2),_.Q6J("ngIf",ge.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",F.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",ge.invalid),_.xp6(1),_.hij(" ",_.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[b.O5,y.Fj,y.JJ,y.Q7,y.On,E.lW,S.TO,S.KE,S.bx,S.hX,U.Nt,w.uh,w.xY,w.H8,g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),we})();var z=h(9244);let Q=(()=>{class we{transform(I,F,ge){return I[`${ge}_${F}`]}}return we.\u0275fac=function(I){return new(I||we)},we.\u0275pipe=_.Yjl({name:"localisedText",type:we,pure:!0}),we})(),ne=(()=>{class we{transform(I,F){return I["link_"+F]||I.link_en}}return we.\u0275fac=function(I){return new(I||we)},we.\u0275pipe=_.Yjl({name:"localisedLink",type:we,pure:!0}),we})(),he=(()=>{class we{transform(I){return I.includes("/")?I:"/assets/config/"+I}}return we.\u0275fac=function(I){return new(I||we)},we.\u0275pipe=_.Yjl({name:"footerLogoPath",type:we,pure:!0}),we})();function ee(we,j){if(1&we&&(_.TgZ(0,"a",13),_.ALo(1,"localisedLink"),_._UZ(2,"img",14),_.ALo(3,"footerLogoPath"),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw(3);_.Q6J("href",_.xi3(1,2,I,F.language),_.LSH),_.xp6(2),_.s9C("src",_.lcZ(3,5,I.logo),_.LSH)}}function fe(we,j){if(1&we&&(_.TgZ(0,"span"),_._UZ(1,"img",14),_.ALo(2,"footerLogoPath"),_.qZA()),2&we){const I=_.oxw().$implicit;_.xp6(1),_.s9C("src",_.lcZ(2,1,I.logo),_.LSH)}}function ce(we,j){if(1&we&&(_.TgZ(0,"div"),_.YNc(1,ee,4,7,"a",11),_.ALo(2,"localisedLink"),_.YNc(3,fe,3,3,"span",12),_.ALo(4,"localisedLink"),_.qZA()),2&we){const I=j.$implicit,F=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_.xi3(2,2,I,F.language)),_.xp6(2),_.Q6J("ngIf",!_.xi3(4,5,I,F.language))}}const ve=function(we){return{"min-height":we}};function v(we,j){if(1&we&&(_.TgZ(0,"div",10),_.YNc(1,ce,5,8,"div",5),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw();_.Q6J("ngStyle",_.VKq(2,ve,F.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",I.elements)}}const O=function(we){return{color:we}};function H(we,j){if(1&we&&(_.TgZ(0,"i",20),_._uU(1),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw(3);_.Q6J("ngStyle",_.VKq(2,O,F.linksTextColor)),_.xp6(1),_.hij(" ",I.icon," ")}}function Y(we,j){if(1&we){const I=_.EpF();_.TgZ(0,"span",21),_.NdJ("click",function(){_.CHM(I);const ge=_.oxw().$implicit,G=_.oxw(3);return _.KtG(G.openDialog(ge.dialog))}),_._uU(1),_.ALo(2,"localisedText"),_.qZA()}if(2&we){const I=_.oxw().$implicit,F=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,O,F.linksTextColor)),_.xp6(1),_.hij("",_.Dn7(2,2,I,F.language,"label")," ")}}function q(we,j){if(1&we&&(_.TgZ(0,"a",22),_.ALo(1,"localisedLink"),_._uU(2),_.ALo(3,"localisedText"),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw(3);_.Q6J("href",_.xi3(1,3,I,F.language),_.LSH)("ngStyle",_.VKq(10,O,F.linksTextColor)),_.xp6(2),_.Oqu(_.Dn7(3,6,I,F.language,"label"))}}function ue(we,j){if(1&we&&(_.TgZ(0,"span",10),_._uU(1),_.ALo(2,"localisedText"),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,O,F.linksTextColor)),_.xp6(1),_.Oqu(_.Dn7(2,2,I,F.language,"label"))}}function Ee(we,j){if(1&we&&(_.TgZ(0,"div",16),_.YNc(1,H,2,4,"i",17),_.YNc(2,Y,3,8,"span",18),_.YNc(3,q,4,12,"a",19),_.ALo(4,"localisedLink"),_.YNc(5,ue,3,8,"span",9),_.ALo(6,"localisedLink"),_.qZA()),2&we){const I=j.$implicit,F=_.oxw(3);_.xp6(1),_.Q6J("ngIf",I.icon),_.xp6(1),_.Q6J("ngIf",I.dialog),_.xp6(1),_.Q6J("ngIf",_.xi3(4,4,I,F.language)&&!I.dialog),_.xp6(2),_.Q6J("ngIf",!_.xi3(6,7,I,F.language)&&!I.dialog)}}const De=function(we){return{height:we}};function Se(we,j){if(1&we&&(_.TgZ(0,"div",10),_.YNc(1,Ee,7,10,"div",15),_.qZA()),2&we){const I=_.oxw().$implicit,F=_.oxw();_.Q6J("ngStyle",_.VKq(2,De,F.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",I.elements)}}function Ge(we,j){if(1&we&&(_.TgZ(0,"div",7)(1,"h6",8),_._uU(2),_.ALo(3,"localisedText"),_.qZA(),_.YNc(4,v,2,4,"div",9),_.YNc(5,Se,2,4,"div",9),_.qZA()),2&we){const I=j.$implicit,F=_.oxw();_.ekj("my-auto",F.containsLogos),_.xp6(1),_.Q6J("ngStyle",_.VKq(10,O,F.headersTextColor)),_.xp6(1),_.hij(" ",_.Dn7(3,6,I,F.language,"title")," "),_.xp6(2),_.Q6J("ngIf",I.logos),_.xp6(1),_.Q6J("ngIf",I.elements&&!I.logos)}}function Ce(we,j){if(1&we&&(_.TgZ(0,"span")(1,"a",6),_._uU(2),_.qZA()()),2&we){const I=j.$implicit,F=j.index,ge=_.oxw();_.xp6(1),_.Q6J("href",I.url,_.LSH)("ngStyle",_.VKq(3,O,ge.copyrightTextColor)),_.xp6(1),_.Oqu(F?", "+I.name:I.name)}}const qe=function(we){return{background:we}};let Pe=(()=>{class we{constructor(I,F,ge,G,_e){this.storeService=I,this.translateService=F,this.utilsService=ge,this.dialog=G,this.authService=_e,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(I=>{this.language=I.lang}),this.version=h(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=h(4147).i8,this.authService.isLoggedIn()&&this.utilsService.getPerunStatus().subscribe(I=>{const F=I[0];this.backendVersion=F.substring(F.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("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.getProperty("footer").copyrightItems}openDialog(I){const F=(0,z.kZ)();"reportIssue"===I&&(F.width="550px",this.dialog.open(N,F))}}return we.\u0275fac=function(I){return new(I||we)(_.Y36(e.d6),_.Y36(g.sK),_.Y36(d.FW),_.Y36(w.uw),_.Y36(e.e8))},we.\u0275cmp=_.Xpm({type:we,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(I,F){1&I&&(_.TgZ(0,"footer",0)(1,"div",1),_.YNc(2,Ge,6,12,"div",2),_.qZA(),_._UZ(3,"hr",3),_.TgZ(4,"div",4),_._uU(5),_.YNc(6,Ce,3,5,"span",5),_._uU(7,", web application: "),_.TgZ(8,"a",6),_._uU(9),_.qZA(),_._uU(10,", server: "),_.TgZ(11,"a",6),_._uU(12),_.qZA()()()),2&I&&(_.Q6J("ngStyle",_.VKq(11,qe,F.bgColor)),_.xp6(2),_.Q6J("ngForOf",F.footerColumns),_.xp6(2),_.Q6J("ngStyle",_.VKq(13,O,F.copyrightTextColor)),_.xp6(1),_.hij(" \xa9 ",F.currentYear," Copyright: "),_.xp6(1),_.Q6J("ngForOf",F.copyrightItems),_.xp6(2),_.Q6J("href",F.githubRepository,_.LSH)("ngStyle",_.VKq(15,O,F.copyrightTextColor)),_.xp6(1),_.Oqu(F.guiVersion),_.xp6(2),_.Q6J("href",F.githubBackendRepository,_.LSH)("ngStyle",_.VKq(17,O,F.copyrightTextColor)),_.xp6(1),_.Oqu(F.backendVersion))},dependencies:[b.sg,b.O5,b.PC,Q,ne,he],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}"]}),we})()},10441:(We,pe,h)=>{"use strict";h.d(pe,{W:()=>y});var e=h(94650),d=h(36895),_=h(97392),w=h(10266),g=h(89383);function b(E,S){1&E&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&E&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let y=(()=>{class E{constructor(){this.recentIds=[]}}return E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,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(U,A){1&U&&e.YNc(0,b,3,3,"mat-icon",0),2&U&&e.Q6J("ngIf",A.recentIds.indexOf(A.id)>-1)},dependencies:[d.O5,_.Hw,w.gM,g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),E})()},96214:(We,pe,h)=>{"use strict";h.d(pe,{t:()=>b});var e=h(94650),d=h(97392),_=h(4859),w=h(10266),g=h(89383);let b=(()=>{class y{constructor(){this.refresh=new e.vpe}onClickbutton(S){this.refresh.emit(S)}}return y.\u0275fac=function(S){return new(S||y)},y.\u0275cmp=e.Xpm({type:y,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(S,U){1&S&&(e.TgZ(0,"button",0),e.NdJ("click",function(N){return U.onClickbutton(N)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&S&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",U.disabled),e.xp6(2),e.s9C("svgIcon",U.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[d.Hw,_.lW,w.gM,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}"]}),y})()},45703:(We,pe,h)=>{"use strict";h.d(pe,{L:()=>g});var e=h(94650),d=h(9244),_=h(42377),w=h(89383);let g=(()=>{class b{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(d.aC)}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.Xpm({type:b,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(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(A){return S.resourceSelected.emit(A)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.resource)("entities",S.resources)("displayStatus",S.displayStatus)("searchFunction",S.nameFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.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"))},dependencies:[_.i,w.X$]}),b})()},62109:(We,pe,h)=>{"use strict";h.d(pe,{C:()=>ct});var e=h(94650),d=h(96308),_=h(30671),w=h(95017),g=h(9244),b=h(35382),y=h(36895),E=h(56709),S=h(94364),U=h(98380),A=h(97392),N=h(10266),z=h(18750),Q=h(50301),ne=h(10441),he=h(8223),ee=h(89383);let fe=(()=>{class ze{transform(V){if(null==V)return null;let s="";return V.forEach(function(f){s=s.concat(f.tagName)}),s}}return ze.\u0275fac=function(V){return new(V||ze)},ze.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:ze,pure:!0}),ze})();var ce=h(82895),ve=h(9185);function v(ze,oe){if(1&ze){const V=e.EpF();e.TgZ(0,"th",25)(1,"mat-checkbox",26),e.NdJ("change",function(s){e.CHM(V);const f=e.oxw(2);return e.KtG(s?f.masterToggle():null)}),e.qZA()()}if(2&ze){const V=e.oxw().ngIf,r=e.oxw();e.xp6(1),e.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&V.all)("indeterminate",r.selection.hasValue()&&!V.all)}}function O(ze,oe){if(1&ze){const V=e.EpF();e.TgZ(0,"td",27)(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(s){const l=e.CHM(V).$implicit,a=e.oxw(2);return e.KtG(s?a.itemSelectionToggle(l):null)})("click",function(s){return s.stopPropagation()}),e.qZA()()()}if(2&ze){const V=oe.$implicit,r=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!r.disableSelect(V)),e.xp6(2),e.Q2q("data-cy","",V.name,"-checkbox"),e.Q6J("aria-label",r.checkboxLabel(V))("checked",r.selection.isSelected(V))("disabled",r.disableSelect(V))}}function H(ze,oe){1&ze&&(e.ynx(0,22),e.YNc(1,v,2,3,"th",23),e.YNc(2,O,4,9,"td",24),e.BQk())}function Y(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function q(ze,oe){if(1&ze&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.id)}}function ue(ze,oe){1&ze&&e._UZ(0,"th",32)}function Ee(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&ze){const V=oe.$implicit,r=e.oxw();e.xp6(1),e.Q6J("recentIds",r.recentIds)("id",V.id)}}function De(ze,oe){1&ze&&e._UZ(0,"th",32)}function Se(ze,oe){1&ze&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&ze&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Ge(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e.YNc(1,Se,3,3,"mat-icon",35),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Q6J("ngIf",V.sourceGroupId)}}function Ce(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function qe(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.uIk("data-cy",V.name),e.xp6(1),e.hij(" ",V.name," ")}}function Pe(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function we(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.vo.name)}}function j(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function I(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.voId)}}function F(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function ge(ze,oe){if(1&ze){const V=e.EpF();e.TgZ(0,"td",33)(1,"perun-web-apps-group-resource-status",37),e.NdJ("mouseenter",function(){e.CHM(V);const s=e.oxw();return e.KtG(s.disabledRouting=!0)})("mouseleave",function(){e.CHM(V);const s=e.oxw();return e.KtG(s.disabledRouting=s.disableRouting)})("statusChange",function(){e.CHM(V);const s=e.oxw();return e.KtG(s.refreshTable.emit())}),e.qZA()()}if(2&ze){const V=oe.$implicit,r=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",V.id)("groupId",r.groupId)("failureCause",V.failureCause)("status",V.status)}}function G(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function _e(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.facility.name)}}function Te(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function et(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.facilityId)}}function Xe(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function vt(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,V.resourceTags)," ")}}function rt(ze,oe){1&ze&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function ht(ze,oe){if(1&ze&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ze){const V=oe.$implicit;e.xp6(1),e.Oqu(V.description)}}function W(ze,oe){1&ze&&e._UZ(0,"tr",38)}const le=function(ze){return[ze]};function ie(ze,oe){if(1&ze&&(e._UZ(0,"tr",39),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&ze){const V=oe.$implicit,r=e.oxw();e.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,le,r.disabledRouting?null:e.xi3(1,6,V,r.routingVo)))("routerLink",r.disabledRouting?null:e.xi3(2,9,V,r.routingVo))}}function ae(ze,oe){1&ze&&(e.TgZ(0,"perun-web-apps-alert",40),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"))}function Ze(ze,oe){1&ze&&(e.TgZ(0,"perun-web-apps-alert",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const Je=function(ze){return{all:ze}};let ct=(()=>{class ze{constructor(V,r){this.guiAuthResolver=V,this.tableCheckbox=r,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=(s,f)=>ze.getDataForColumn(s,f,this.recentIds),this.canBeSelected=s=>!this.disableSelect(s)}set matSort(V){this.sort=V}static getDataForColumn(V,r,s){switch(r){case"id":return V.id.toString();case"vo":return V.vo.name;case"name":return V.name;case"facility":return V.facility.name;case"description":return V.description;case"recent":return s&&s.includes(V.id)?"#".repeat(s.indexOf(V.id)):V.name;case"tags":{if(!V.resourceTags)return V[r];let l="";return V.resourceTags.forEach(function(a){l=l.concat(a.tagName)}),l}case"status":return V.status;case"uuid":return V.uuid;default:return V[r]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(V=>"id"!==V)),this.setDataSource(),this.setAuth()}exportAllData(V){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),V)}exportDisplayedData(V){const r=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,s=r+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(r,s),this.displayedColumns,this.getDataForColumnFun),V)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(V,r)=>(0,g.Sd)(V,r,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(V,r)=>(0,g.pR)(V,r,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const V=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(V),V}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(V){return V?`${this.selection.isSelected(V)?"deselect":"select"} row ${V.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const V=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((r,s)=>r&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",V.concat([s])),!0),this.addAuth=this.selection.selected.reduce((r,s)=>r&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",V.concat([s])),!0)}itemSelectionToggle(V){this.selection.toggle(V),this.setAuth()}disableSelect(V){return this.resourcesToDisableCheckbox.has(V.id)}}return ze.\u0275fac=function(V){return new(V||ze)(e.Y36(b.x4),e.Y36(b.UA))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(V,r){if(1&V&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&V){let s;e.iGM(s=e.CRH())&&(r.child=s.first),e.iGM(s=e.CRH())&&(r.matSort=s.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["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(V,r){1&V&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(f){return r.exportDisplayedData(f)})("exportAllData",function(f){return r.exportAllData(f)}),e.TgZ(2,"table",2),e.YNc(3,H,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Y,3,3,"th",5),e.YNc(7,q,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ue,1,0,"th",8),e.YNc(10,Ee,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,De,1,0,"th",8),e.YNc(13,Ge,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,Ce,3,3,"th",5),e.YNc(16,qe,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Pe,3,3,"th",5),e.YNc(19,we,2,1,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,j,3,3,"th",5),e.YNc(22,I,2,1,"td",9),e.BQk(),e.ynx(23,14),e.YNc(24,F,3,3,"th",5),e.YNc(25,ge,2,5,"td",9),e.BQk(),e.ynx(26,15),e.YNc(27,G,3,3,"th",5),e.YNc(28,_e,2,1,"td",9),e.BQk(),e.ynx(29,16),e.YNc(30,Te,3,3,"th",5),e.YNc(31,et,2,1,"td",9),e.BQk(),e.ynx(32,17),e.YNc(33,Xe,3,3,"th",5),e.YNc(34,vt,3,3,"td",9),e.BQk(),e.ynx(35,18),e.YNc(36,rt,3,3,"th",5),e.YNc(37,ht,2,1,"td",9),e.BQk(),e.YNc(38,W,1,0,"tr",19),e.YNc(39,ie,3,14,"tr",20),e.qZA()()(),e.YNc(40,ae,3,3,"perun-web-apps-alert",21),e.YNc(41,Ze,3,3,"perun-web-apps-alert",21)),2&V&&(e.Q6J("hidden",0===r.dataSource.filteredData.length||0===r.resources.length),e.xp6(1),e.Q6J("dataLength",r.dataSource.filteredData.length)("tableId",r.tableId)("pageSizeOptions",r.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",r.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,Je,e.Dn7(4,10,r.dataSource,r.selection.selected.length,r.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",r.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",r.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===r.dataSource.filteredData.length&&0!==r.resources.length),e.xp6(1),e.Q6J("ngIf",0===r.resources.length))},dependencies:[y.O5,E.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,S.rH,d.YE,d.nU,U.w,A.Hw,N.gM,z.l,Q.YH,ne.W,he.x,ee.X$,fe,ce.r,ve.I],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}"]}),ze})()},52170:(We,pe,h)=>{"use strict";h.d(pe,{$x:()=>b,qG:()=>g});var e=h(94650),d=h(89383),_=h(42377);class w{constructor(E,S){this.value=S,this.displayName=E}}var g=(()=>{return(y=g||(g={}))[y.SOURCE=0]="SOURCE",y[y.DESTINATION=1]="DESTINATION",y[y.FEDERATION=2]="FEDERATION",g;var y})();let b=(()=>{class y{constructor(S){this.translateService=S,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=U=>U.displayName,this.shortNameFunction=()=>null,this.searchFunction=U=>U.displayName}static getDefinition(S){const U=S.namespace.split(":");return null===U[4]?"null":U[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(S=>{const U=new w(S,"");this.items.push(U),this.item=U});for(const S of this.attributes){const U=new w(S.friendlyName+" ("+S.entity+" / "+y.getDefinition(S)+")",S.namespace+":"+S.friendlyName);U.value===this.selectedAttribute&&(this.item=U),("user"===S.entity.toLowerCase()||"member"===S.entity.toLowerCase()||"vo"===S.entity.toLowerCase()&&this.type===g.SOURCE||"group"===S.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(U)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{this.items.push(new w(S,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(U=>{this.items.push(new w(U,"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 S of this.items)if(S.value===this.selectedAttribute)return void(this.item=S);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(S){S.sort((U,A)=>""===U.value?-1:""===A.value?1:U.displayName.localeCompare(A.displayName))}}return y.\u0275fac=function(S){return new(S||y)(e.Y36(d.sK))},y.\u0275cmp=e.Xpm({type:y,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(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(N){return U.itemSelected.emit(N)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("entity",U.item)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[_.i,d.X$]}),y})()},30540:(We,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(94650),d=h(42377),_=h(89383);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=y=>y.name,this.secondaryFunction=()=>"",this.searchFunction=y=>y.name}}return g.\u0275fac=function(y){return new(y||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(y,E){1&y&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(U){return E.serviceSelected.emit(U)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&y&&e.Q6J("entity",E.service)("entities",E.services)("multiple",E.multiple)("disableAutoSelect",E.disableAutoSelect)("searchFunction",E.searchFunction)("mainTextFunction",E.nameFunction)("secondaryTextFunction",E.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",E.theme)},dependencies:[d.i,_.X$]}),g})()},80275:(We,pe,h)=>{"use strict";h.d(pe,{j:()=>we});var e=h(95017),d=h(96308),_=h(30671),w=h(35382),g=h(9244),b=h(94650),y=h(94364),E=h(36895),S=h(56709),U=h(98380),A=h(10266),N=h(18750),z=h(50301),Q=h(89383);let ne=(()=>{class j{transform(F){return F.find(G=>"mail"===G.friendlyName)?.value??""}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275pipe=b.Yjl({name:"getMailFromAttributes",type:j,pure:!0}),j})();var he=h(34447);function ee(j,I){1&j&&b._UZ(0,"th",18)}function fe(j,I){if(1&j){const F=b.EpF();b.TgZ(0,"td",19)(1,"span",20),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.TgZ(4,"mat-checkbox",21),b.NdJ("change",function(G){const Te=b.CHM(F).$implicit,et=b.oxw();return b.KtG(G?et.selection.toggle(Te):null)})("click",function(G){return G.stopPropagation()}),b.qZA()()()}if(2&j){const F=I.$implicit,ge=b.oxw();b.xp6(1),b.s9C("matTooltip",b.lcZ(2,6,b.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),b.Q6J("matTooltipPosition","above")("matTooltipDisabled",!F.userExtSource.persistent),b.xp6(3),b.Q6J("aria-label",ge.checkboxLabel(F))("checked",ge.selection.isSelected(F))("disabled",F.userExtSource.persistent)}}function ce(j,I){1&j&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function ve(j,I){if(1&j&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&j){const F=I.$implicit;b.xp6(1),b.hij(" ",F.userExtSource.id," ")}}function v(j,I){1&j&&(b.TgZ(0,"th",24),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function O(j,I){if(1&j&&(b.TgZ(0,"td",23),b._uU(1),b.ALo(2,"getMailFromAttributes"),b.qZA()),2&j){const F=I.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,F.attributes)," ")}}function H(j,I){if(1&j&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j){const F=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,F.extSourceNameHeader?F.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Y(j,I){if(1&j&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&j){const F=I.$implicit;b.xp6(1),b.hij(" ",F.userExtSource.extSource.name," ")}}function q(j,I){if(1&j&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j){const F=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,F.loginHeader?F.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ue(j,I){if(1&j&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&j){const F=I.$implicit;b.xp6(1),b.hij(" ",F.userExtSource.login," ")}}function Ee(j,I){1&j&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function De(j,I){if(1&j&&(b.TgZ(0,"td",25),b._uU(1),b.ALo(2,"date"),b.qZA()),2&j){const F=I.$implicit;b.xp6(1),b.hij(" ",b.xi3(2,1,F.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Se(j,I){1&j&&b._UZ(0,"tr",26)}const Ge=function(j,I){return["/admin","users",j,"identities",I]};function Ce(j,I){if(1&j&&b._UZ(0,"tr",27),2&j){const F=I.$implicit,ge=b.oxw();b.ekj("cursor-pointer",!ge.disableRouting)("disable-outline",ge.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",ge.disableRouting?null:b.WLB(6,Ge,ge.userId,F.userExtSource.id))("routerLink",ge.disableRouting?null:b.WLB(9,Ge,ge.userId,F.userExtSource.id))}}function qe(j,I){1&j&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&j&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Pe(j,I){1&j&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&j&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let we=(()=>{class j{constructor(F,ge){this.route=F,this.authResolver=ge,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(F){this.sort=F,this.setDataSource()}static getDataForColumn(F,ge){switch(ge){case"id":return F.userExtSource.id.toString();case"mail":{const G=F.attributes.find(_e=>"mail"===_e.friendlyName);return G?G.value:"N/A"}case"extSourceName":return F.userExtSource.extSource.name;case"login":return F.userExtSource.login;case"lastAccess":return F.userExtSource.lastAccess.split(".")[0];default:return F[ge]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(F=>{this.userId=Number(F.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(F=>"id"!==F)),this.dataSource=new _.by(this.userExtSources),this.setDataSource()}exportAllData(F){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,j.getDataForColumn),F)}exportDisplayedData(F){const ge=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,G=ge+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ge,G),this.displayedColumns,j.getDataForColumn),F)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(F,ge)=>(0,g.Sd)(F,ge,this.displayedColumns,j.getDataForColumn),this.dataSource.sortData=(F,ge)=>(0,g.pR)(F,ge,j.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(F){return`${this.selection.isSelected(F.userExtSource)?"deselect":"select"} row ${F.userExtSource.id+1}`}}return j.\u0275fac=function(F){return new(F||j)(b.Y36(y.gz),b.Y36(w.x4))},j.\u0275cmp=b.Xpm({type:j,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(F,ge){if(1&F&&(b.Gf(g.l9,7),b.Gf(d.YE,7)),2&F){let G;b.iGM(G=b.CRH())&&(ge.child=G.first),b.iGM(G=b.CRH())&&(ge.matSort=G.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[b.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(F,ge){1&F&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(_e){return ge.exportDisplayedData(_e)})("exportAllData",function(_e){return ge.exportAllData(_e)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,ee,1,0,"th",4),b.YNc(5,fe,5,10,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,ce,4,5,"th",7),b.YNc(8,ve,2,1,"td",8),b.BQk(),b.ynx(9,9),b.YNc(10,v,4,5,"th",10),b.YNc(11,O,3,3,"td",8),b.BQk(),b.ynx(12,11),b.YNc(13,H,4,5,"th",7),b.YNc(14,Y,2,1,"td",8),b.BQk(),b.ynx(15,12),b.YNc(16,q,4,5,"th",7),b.YNc(17,ue,2,1,"td",8),b.BQk(),b.ynx(18,13),b.YNc(19,Ee,4,5,"th",7),b.YNc(20,De,3,4,"td",14),b.BQk(),b.YNc(21,Se,1,0,"tr",15),b.YNc(22,Ce,1,12,"tr",16),b.qZA()()(),b.YNc(23,qe,3,3,"perun-web-apps-alert",17),b.YNc(24,Pe,4,5,"perun-web-apps-alert",17)),2&F&&(b.Q6J("hidden",0===ge.userExtSources.length||0===ge.dataSource.filteredData.length),b.xp6(1),b.Q6J("tableId",ge.tableId)("dataLength",ge.dataSource.filteredData.length)("pageSizeOptions",ge.pageSizeOptions),b.xp6(1),b.Q6J("dataSource",ge.dataSource),b.xp6(19),b.Q6J("matHeaderRowDef",ge.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",ge.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===ge.dataSource.filteredData.length&&0!==ge.userExtSources.length),b.xp6(1),b.Q6J("ngIf",0===ge.userExtSources.length))},dependencies:[E.O5,S.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,y.rH,d.YE,d.nU,U.w,A.gM,N.l,z.YH,E.uU,Q.X$,ne,he.a],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}"]}),j})()},74250:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(94650),d=h(9244),_=h(42377),w=h(89383);let g=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=d.bD}ngOnInit(){this.users=this.users.sort(d.fx)}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(A){return S.userSelected.emit(A)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entities",S.users)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.userFullNameFunction)("mainTextFunction",S.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[_.i,w.X$]}),b})()},88561:(We,pe,h)=>{"use strict";h.d(pe,{M:()=>W});var e=h(95017),d=h(9244),_=h(96308),w=h(35382),g=h(56451),b=h(18505),y=h(74281),E=h(94650),S=h(10036),U=h(65412),A=h(36895),N=h(56709),z=h(30671),Q=h(51572),ne=h(98380),he=h(97392),ee=h(10266),fe=h(18750),ce=h(50301),ve=h(89383),v=h(31359),O=h(16119),H=h(7598),Y=h(9954);function q(le,ie){1&le&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function ue(le,ie){if(1&le){const ae=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(Je){E.CHM(ae);const ct=E.oxw(2);return E.KtG(Je?ct.masterToggle():null)}),E.qZA()}if(2&le){const ae=E.oxw(2);E.Q6J("aria-label",ae.checkboxLabel())("checked",ae.selection.hasValue()&&ae.isAllSelected())("indeterminate",ae.selection.hasValue()&&!ae.isAllSelected())}}function Ee(le,ie){if(1&le&&(E.TgZ(0,"th",22),E.YNc(1,ue,1,3,"mat-checkbox",23),E.qZA()),2&le){const ae=E.oxw();E.xp6(1),E.Q6J("ngIf",ae.selection.isMultipleSelection())}}function De(le,ie){if(1&le){const ae=E.EpF();E.TgZ(0,"td",25)(1,"mat-checkbox",26),E.NdJ("change",function(Je){const ze=E.CHM(ae).$implicit,oe=E.oxw();return E.KtG(Je?oe.selection.toggle(ze):null)})("click",function(Je){return Je.stopPropagation()}),E.qZA()()}if(2&le){const ae=ie.$implicit,Ze=E.oxw();E.xp6(1),E.Q6J("aria-label",Ze.checkboxLabel(ae))("checked",Ze.selection.isSelected(ae))}}function Se(le,ie){1&le&&E._UZ(0,"th",27)}function Ge(le,ie){1&le&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&le&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Ce(le,ie){if(1&le&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&le){const ae=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",ae.svgIcon)}}function qe(le,ie){if(1&le&&(E.TgZ(0,"td",28),E.YNc(1,Ge,3,3,"mat-icon",29),E.YNc(2,Ce,2,4,"mat-icon",30),E.qZA()),2&le){const ae=ie.$implicit;E.xp6(1),E.Q6J("ngIf",!ae.serviceUser),E.xp6(1),E.Q6J("ngIf",ae.serviceUser)}}function Pe(le,ie){1&le&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function we(le,ie){if(1&le&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&le){const ae=ie.$implicit;E.xp6(1),E.hij(" ",ae.id," ")}}function j(le,ie){1&le&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function I(le,ie){if(1&le&&(E.TgZ(0,"td",34),E.ALo(1,"lowercase"),E._uU(2),E.ALo(3,"userFullName"),E.qZA()),2&le){const ae=ie.$implicit;E.Q2q("data-cy","",E.lcZ(1,2,ae.firstName),"-td"),E.xp6(2),E.hij(" ",E.lcZ(3,4,ae)," ")}}function F(le,ie){1&le&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function ge(le,ie){if(1&le&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&le){const ae=ie.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ae))}}function G(le,ie){1&le&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function _e(le,ie){if(1&le&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&le){const ae=ie.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ae))}}function Te(le,ie){1&le&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function et(le,ie){if(1&le&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&le){const ae=ie.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ae))}}function Xe(le,ie){1&le&&E._UZ(0,"tr",35)}const vt=function(le){return["/admin/users",le]};function rt(le,ie){if(1&le&&E._UZ(0,"tr",36),2&le){const ae=ie.$implicit,Ze=E.oxw();E.ekj("cursor-pointer",!Ze.disableRouting),E.Q6J("perunWebAppsForceRouterLink",Ze.disableRouting?null:E.VKq(4,vt,ae.id))("perunWebAppsMiddleClickRouterLink",Ze.disableRouting?null:E.VKq(6,vt,ae.id))}}function ht(le,ie){1&le&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let W=(()=>{class le{constructor(ae,Ze,Je,ct,ze){this.authResolver=ae,this.tableCheckbox=Ze,this.tableConfigService=Je,this.dynamicPaginatingService=ct,this.dialog=ze,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=d.f7}static getExportDataForColumn(ae,Ze){switch(Ze){case"id":return ae.id.toString();case"user":return ae.serviceUser?"service-user":"user";case"name":return ae?(0,d.bD)(ae):"";case"organization":return(0,d.OV)(ae);case"email":return(0,d.kN)(ae);case"logins":return(0,d.lt)(ae);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ae=>"id"!==ae)),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(ae=>this.selection.select(ae))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(ae){return ae?`${this.selection.isSelected(ae)?"deselect":"select"} row ${ae.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)}exportDisplayedData(ae){(0,d.O6)((0,d.Xn)(this.dataSource.getData(),this.displayedColumns,le.getExportDataForColumn),ae)}exportAllData(ae){const Ze="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Je="name"===this.sort.active?"NAME":"ID",ct=(0,d.kZ)();ct.width="300px";const ze=this.dialog.open(y.QQ,ct);this.dataSource.getAllUsers(this.attrNames,Ze,this.child.paginator.length,Je,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed).subscribe(oe=>{ze.close(),(0,d.O6)((0,d.Xn)(oe,this.displayedColumns,le.getExportDataForColumn),ae)})}}return le.\u0275fac=function(ae){return new(ae||le)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(S.dB),E.Y36(w.ly),E.Y36(U.uw))},le.\u0275cmp=E.Xpm({type:le,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(ae,Ze){if(1&ae&&(E.Gf(d.l9,7),E.Gf(_.YE,5)),2&ae){let Je;E.iGM(Je=E.CRH())&&(Ze.child=Je.first),E.iGM(Je=E.CRH())&&(Ze.sort=Je.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","exportDisplayedData","exportAllData"],["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(ae,Ze){1&ae&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportDisplayedData",function(ct){return Ze.exportDisplayedData(ct)})("exportAllData",function(ct){return Ze.exportAllData(ct)}),E.YNc(3,q,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,De,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,Se,1,0,"th",8),E.YNc(11,qe,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,Pe,3,3,"th",11),E.YNc(14,we,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,j,3,3,"th",11),E.YNc(17,I,4,6,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,F,3,3,"th",8),E.YNc(20,ge,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,G,3,3,"th",8),E.YNc(23,_e,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Te,3,3,"th",8),E.YNc(26,et,3,3,"td",13),E.BQk(),E.YNc(27,Xe,1,0,"tr",17),E.YNc(28,rt,1,8,"tr",18),E.qZA()()(),E.YNc(29,ht,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&ae&&(E.Q6J("hidden",0===Ze.dataSource.allObjectCount&&!1===E.lcZ(1,9,Ze.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",Ze.tableId)("dataLength",Ze.dataSource.allObjectCount)("pageSizeOptions",Ze.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,Ze.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",Ze.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",Ze.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Ze.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Ze.dataSource.allObjectCount&&!1===E.lcZ(30,13,Ze.dataSource.loading$)))},dependencies:[A.O5,N.oG,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,_.YE,_.nU,Q.Ou,ne.w,he.Hw,ee.gM,fe.l,ce.Kd,ce.YH,A.Ov,A.i8,ve.X$,v.d,O.S,H.g,Y.Z],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),le})()},62707:(We,pe,h)=>{"use strict";h.d(pe,{M:()=>g});var e=h(94650),d=h(9244),_=h(42377),w=h(89383);let g=(()=>{class b{constructor(){this.voSelected=new e.vpe,this.nameFunction=E=>E.name,this.shortNameFunction=E=>E.shortName,this.searchFunction=E=>E.name+E.shortName+String(E.id)}ngOnChanges(){this.vos.sort(d.aC),this.vo||(this.vo=this.vos[0])}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.Xpm({type:b,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(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(A){return S.voSelected.emit(A)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.vo)("entities",S.vos)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.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"))},dependencies:[_.i,w.X$]}),b})()},87831:(We,pe,h)=>{"use strict";h.d(pe,{Z:()=>qe});var e=h(96308),d=h(30671),_=h(9244),w=h(35382),g=h(94650),b=h(36895),y=h(56709),E=h(98380),S=h(97392),U=h(18750),A=h(50301),N=h(10441),z=h(89383);function Q(Pe,we){1&Pe&&g._UZ(0,"th",19)}function ne(Pe,we){if(1&Pe){const j=g.EpF();g.TgZ(0,"td",20)(1,"mat-checkbox",21),g.NdJ("change",function(F){const G=g.CHM(j).$implicit,_e=g.oxw();return g.KtG(F?_e.selection.toggle(G):null)})("click",function(F){return F.stopPropagation()}),g.qZA()()}if(2&Pe){const j=we.$implicit,I=g.oxw();g.xp6(1),g.Q6J("aria-label",I.checkboxLabel(j))("checked",I.selection.isSelected(j))}}function he(Pe,we){1&Pe&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function ee(Pe,we){if(1&Pe&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&Pe){const j=we.$implicit;let I;g.xp6(1),g.Oqu(null!==(I=j.id)&&void 0!==I?I:j.vo.id)}}function fe(Pe,we){1&Pe&&g._UZ(0,"th",24)}function ce(Pe,we){if(1&Pe&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&Pe){const j=we.$implicit,I=g.oxw();let F;g.xp6(1),g.Q6J("recentIds",I.recentIds)("id",null!==(F=j.id)&&void 0!==F?F:j.vo.id)}}function ve(Pe,we){1&Pe&&g._UZ(0,"th",24)}function v(Pe,we){1&Pe&&g._UZ(0,"mat-icon",28),2&Pe&&g.Q6J("svgIcon","perun-hierarchical-vo")}function O(Pe,we){if(1&Pe&&(g.TgZ(0,"td",25),g.YNc(1,v,1,1,"mat-icon",27),g.qZA()),2&Pe){const j=we.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==j||null==j.memberVos?null:j.memberVos.length))}}function H(Pe,we){1&Pe&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function Y(Pe,we){if(1&Pe&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&Pe){const j=we.$implicit;let I,F;g.uIk("data-cy",null!==(I=j.shortName)&&void 0!==I?I:j.vo.shortName),g.xp6(1),g.hij(" ",null!==(F=j.shortName)&&void 0!==F?F:j.vo.shortName," ")}}function q(Pe,we){1&Pe&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ue(Pe,we){if(1&Pe&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&Pe){const j=we.$implicit;let I;g.xp6(1),g.Oqu(null!==(I=j.name)&&void 0!==I?I:j.vo.name)}}function Ee(Pe,we){1&Pe&&g._UZ(0,"tr",29)}const De=function(Pe){return["/organizations",Pe]};function Se(Pe,we){if(1&Pe&&g._UZ(0,"tr",30),2&Pe){const j=we.$implicit,I=g.oxw();let F,ge;g.ekj("disable-outline",I.disableRouting)("cursor-pointer",!I.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",I.disableRouting?null:g.VKq(6,De,null!==(F=j.id)&&void 0!==F?F:j.vo.id))("perunWebAppsForceRouterLink",I.disableRouting?null:g.VKq(8,De,null!==(ge=j.id)&&void 0!==ge?ge:j.vo.id))}}function Ge(Pe,we){1&Pe&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ce(Pe,we){1&Pe&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let qe=(()=>{class Pe{constructor(j){this.authResolver=j,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=_.f7,this.getDataForColumnFun=(I,F)=>Pe.getDataForColumn(I,F,this.recentIds)}set matSort(j){this.sort=j}static getDataForColumn(j,I,F){switch(Pe.isEnrichedVo(j)&&(j=j.vo),I){case"id":return j.id.toString();case"shortName":return j.shortName;case"name":return j.name;case"recent":return F&&F.includes(j.id)?"#".repeat(F.indexOf(j.id)):j.name;default:return j[I]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(j=>"id"!==j)),this.setDataSource()}exportAllData(j){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),j)}exportDisplayedData(j){const I=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,F=I+this.dataSource.paginator.pageSize;(0,_.O6)((0,_.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(I,F),this.displayedColumns,this.getDataForColumnFun),j)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(j,I)=>(0,_.Sd)(j,I,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(j,I)=>(0,_.pR)(j,I,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(j){return`${this.selection.isSelected(j)?"deselect":"select"} row ${j.id+1}`}}return Pe.isEnrichedVo=we=>void 0!==we.vo,Pe.\u0275fac=function(j){return new(j||Pe)(g.Y36(w.x4))},Pe.\u0275cmp=g.Xpm({type:Pe,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(j,I){if(1&j&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&j){let F;g.iGM(F=g.CRH())&&(I.child=F.first),g.iGM(F=g.CRH())&&(I.matSort=F.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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","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(j,I){1&j&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(ge){return I.exportDisplayedData(ge)})("exportAllData",function(ge){return I.exportAllData(ge)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,Q,1,0,"th",4),g.YNc(5,ne,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,he,3,3,"th",7),g.YNc(8,ee,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,fe,1,0,"th",10),g.YNc(11,ce,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,ve,1,0,"th",10),g.YNc(14,O,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,H,3,3,"th",7),g.YNc(17,Y,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,q,3,3,"th",7),g.YNc(20,ue,2,1,"td",11),g.BQk(),g.YNc(21,Ee,1,0,"tr",15),g.YNc(22,Se,1,10,"tr",16),g.qZA()()(),g.YNc(23,Ge,3,3,"perun-web-apps-alert",17),g.YNc(24,Ce,3,3,"perun-web-apps-alert",18)),2&j&&(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))},dependencies:[b.O5,y.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.YE,e.nU,E.w,S.Hw,U.l,A.Kd,A.YH,N.W,z.X$],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}"]}),Pe})()},74281:(We,pe,h)=>{"use strict";h.d(pe,{GI:()=>Tt,Wr:()=>Et,r2:()=>Zt,gr:()=>Qe,u3:()=>An,Qu:()=>la,pf:()=>Pe,xF:()=>Gn,hd:()=>ki,kZ:()=>kn,wA:()=>Dt,rd:()=>Xe,Eg:()=>et,QQ:()=>Xt,Bp:()=>ae,qD:()=>at,jd:()=>Ht,FM:()=>V,jD:()=>O,Lc:()=>i,mk:()=>c,Ts:()=>Vt});var e=h(36895),d=h(89383),_=h(30671),w=h(65412),g=h(4859),b=h(59549),y=h(24006),E=h(284),S=h(51572),U=h(71948),A=h(99602),N=h(64425),z=h(97392),Q=h(19516),ne=h(63189),he=h(94364),ee=h(35423),fe=h(84385),ce=h(28499),ve=h(57882),v=h(94650);let O=(()=>{class te{}return te.\u0275fac=function(xe){return new(xe||te)},te.\u0275mod=v.oAB({type:te}),te.\u0275inj=v.cJS({imports:[e.ez,d.aw,_.p0,w.Is,g.ot,b.lN,y.u5,E.c,S.Cq,U.Fk,A.FA,y.UX,N.Iq,z.Ps,Q.d4,ne.r,he.Bz,ee.dp,fe.LD,ce.E3,ve.C]}),te})();var H=h(32105),Y=h(35382),q=h(3238),ue=h(20551);function Ee(te,dt){1&te&&v._UZ(0,"mat-spinner",6)}function De(te,dt){if(1&te&&(v.TgZ(0,"mat-option",17),v._uU(1),v.ALo(2,"memberStatus"),v.qZA()),2&te){const xe=dt.$implicit;v.Q6J("value",xe),v.xp6(1),v.Oqu(v.lcZ(2,2,xe))}}function Se(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"mat-form-field",14)(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-select",15),v.NdJ("selectionChange",function(Nt){v.CHM(xe);const en=v.oxw(3);return v.KtG(en.changeStatus(Nt))}),v.YNc(5,De,3,4,"mat-option",16),v.qZA()()}if(2&te){const xe=v.oxw(3);v.xp6(2),v.Oqu(v.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),v.xp6(3),v.Q6J("ngForOf",xe.allStatuses)}}function Ge(te,dt){if(1&te&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.YNc(3,Se,6,4,"mat-form-field",13),v.qZA()),2&te){const xe=v.oxw(2);v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),v.xp6(2),v.Q6J("ngIf",!xe.loading)}}function Ce(te,dt){if(1&te&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"memberStatus"),v.qZA()),2&te){const xe=v.oxw(2);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",v.lcZ(3,4,xe.allStatuses[0])," ")}}function qe(te,dt){if(1&te&&(v.TgZ(0,"div",7)(1,"div",8),v._uU(2),v.ALo(3,"translate"),v.ALo(4,"memberStatus"),v.qZA(),v.TgZ(5,"div",9),v._uU(6),v.qZA(),v.YNc(7,Ge,4,4,"div",10),v.YNc(8,Ce,4,6,"div",10),v.TgZ(9,"div",11),v._UZ(10,"i",12),v.qZA()()),2&te){const xe=v.oxw();v.xp6(2),v.AsE(" ",v.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",v.lcZ(4,8,xe.actualStatus)," "),v.xp6(4),v.Oqu(xe.description),v.xp6(1),v.Q6J("ngIf",xe.allStatuses.length>1),v.xp6(1),v.Q6J("ngIf",1===xe.allStatuses.length),v.xp6(2),v.Q6J("innerHTML",xe.changeMessage,v.oJD)}}let Pe=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn){this.dialogRef=xe,this.data=ot,this.memberManager=Nt,this.groupsManager=en,this.notificatorService=cn,this.translate=Fn,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(xe=>xe!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(xe){this.selectedStatus=xe.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(xe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(ot=>{this.notificatorService.showSuccess(ot),this.dialogRef.close(xe)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(xe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(ot=>{this.notificatorService.showSuccess(ot),this.dialogRef.close(xe)})},()=>this.loading=!1)}changeStatusMessage(xe,ot){if("VALID"===xe)switch(ot){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(ot){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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.uq),v.Y36(H.ff),v.Y36(Y.V6),v.Y36(d.sK))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){1&xe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ee,1,0,"mat-spinner",1),v.YNc(5,qe,11,10,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return ot.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return ot.submit()}),v._uU(11),v.qZA()()()),2&xe&&(v.Tol(ot.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",ot.loading||!ot.selectedStatus),v.xp6(1),v.hij(" ",ot.submitButtonText," "))},dependencies:[e.sg,e.O5,w.uh,w.xY,w.H8,g.lW,b.KE,b.hX,S.Ou,fe.gD,q.ey,d.X$,ue.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),te})();function we(te,dt){1&te&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function j(te,dt){1&te&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function I(te,dt){1&te&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function F(te,dt){1&te&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function ge(te,dt){1&te&&v._UZ(0,"mat-spinner",8)}function G(te,dt){if(1&te&&(v.TgZ(0,"mat-form-field"),v._UZ(1,"input",13),v.ALo(2,"translate"),v.qZA()),2&te){const xe=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),v.Q6J("value",xe.shortName)}}function _e(te,dt){if(1&te&&(v.TgZ(0,"mat-form-field",14),v._UZ(1,"textarea",15),v.ALo(2,"translate"),v.qZA()),2&te){const xe=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),v.Q6J("formControl",xe.descriptionCtrl)}}function Te(te,dt){if(1&te&&(v.TgZ(0,"div",9),v.YNc(1,G,3,4,"mat-form-field",10),v.TgZ(2,"mat-form-field"),v._UZ(3,"input",11),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.YNc(8,_e,3,4,"mat-form-field",12),v.qZA()),2&te){const xe=v.oxw();v.xp6(1),v.Q6J("ngIf",2===xe.dialogType),v.xp6(2),v.MGl("placeholder","",v.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),v.Q6J("formControl",xe.nameCtrl),v.xp6(3),v.hij(" ",xe.invalidNameMessage.length?xe.invalidNameMessage:v.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),v.xp6(2),v.Q6J("ngIf",2!==xe.dialogType)}}var et=(()=>{return(te=et||(et={}))[te.FACILITY=0]="FACILITY",te[te.RESOURCE=1]="RESOURCE",te[te.VO=2]="VO",te[te.GROUP=3]="GROUP",et;var te})();let Xe=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn,jn,si,yr){this.dialogRef=xe,this.data=ot,this.notificator=Nt,this.translateService=en,this.facilitiesManager=cn,this.resourcesManager=Fn,this.groupsManager=jn,this.vosManager=si,this.store=yr,this.invalidNameMessage=this.data.dialogType===et.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===et.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case et.FACILITY:this.nameCtrl=new y.p4(this.data.facility.name,[y.kI.required,y.kI.pattern(".*[\\S]+.*"),y.kI.maxLength(129)]),this.descriptionCtrl=new y.p4(this.data.facility.description);break;case et.RESOURCE:this.nameCtrl=new y.p4(this.data.resource.name,[y.kI.required,y.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new y.p4(this.data.resource.description);break;case et.GROUP:{const xe=this.data.group.name.split(":");this.nameCtrl=new y.p4(xe[xe.length-1],[y.kI.required,y.kI.pattern(".*[\\S]+.*"),y.kI.pattern(this.secondaryRegex),y.kI.maxLength(129)]),this.descriptionCtrl=new y.p4(this.data.group.description);break}case et.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new y.p4(this.data.vo.name,[y.kI.required,y.kI.pattern(".*[\\S]+.*"),y.kI.maxLength(129)]),this.descriptionCtrl=new y.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case et.FACILITY:this.editFacility();break;case et.RESOURCE:this.editResource();break;case et.GROUP:this.editGroup();break;case et.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(xe=>{const ot=xe;ot.name=this.nameCtrl.value,ot.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:ot}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Nt=>{this.notificator.showSuccess(Nt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(Y.V6),v.Y36(d.sK),v.Y36(H.IQ),v.Y36(H.xk),v.Y36(H.ff),v.Y36(H.YF),v.Y36(Y.d6))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div"),v.YNc(1,we,3,3,"h1",0),v.YNc(2,j,3,3,"h1",0),v.YNc(3,I,3,3,"h1",0),v.YNc(4,F,3,3,"h1",0),v.TgZ(5,"div",1),v.YNc(6,ge,1,0,"mat-spinner",2),v.YNc(7,Te,9,9,"div",3),v.qZA(),v.TgZ(8,"div",4)(9,"button",5),v.NdJ("click",function(){return ot.cancel()}),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"button",6),v.NdJ("click",function(){return ot.submit()}),v._uU(13),v.ALo(14,"translate"),v.qZA()()()),2&xe&&(v.Tol(ot.theme),v.xp6(1),v.Q6J("ngIf",0===ot.dialogType),v.xp6(1),v.Q6J("ngIf",1===ot.dialogType),v.xp6(1),v.Q6J("ngIf",2===ot.dialogType),v.xp6(1),v.Q6J("ngIf",3===ot.dialogType),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(3),v.hij(" ",v.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("disabled",ot.loading||ot.nameCtrl.invalid||ot.descriptionCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,b.TO,b.KE,y.Fj,y.JJ,y.Q7,E.Nt,S.Ou,y.oH,d.X$]}),te})();var vt=h(64080),rt=h(9244);function ht(te,dt){1&te&&v._UZ(0,"mat-spinner",8)}function W(te,dt){if(1&te&&(v.TgZ(0,"div",9)(1,"span"),v._uU(2),v.ALo(3,"translate"),v.TgZ(4,"b"),v._uU(5),v.qZA()(),v._UZ(6,"br"),v.TgZ(7,"span"),v._uU(8),v.ALo(9,"translate"),v.TgZ(10,"b"),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v._UZ(13,"br"),v.TgZ(14,"span"),v._uU(15),v.ALo(16,"translate"),v.TgZ(17,"b"),v._uU(18),v.ALo(19,"translate"),v.qZA()(),v._UZ(20,"br"),v.TgZ(21,"span"),v._uU(22),v.ALo(23,"translate"),v.TgZ(24,"b"),v._uU(25),v.ALo(26,"translate"),v.qZA()()()),2&te){const xe=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),v.xp6(3),v.Oqu(xe.group.name),v.xp6(3),v.hij(" ",v.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),v.xp6(3),v.Oqu(v.lcZ(12,12,xe.getSynchronizationType())),v.xp6(4),v.hij(" ",v.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),v.xp6(3),v.Oqu(v.lcZ(19,16,xe.getLastSyncState())),v.xp6(4),v.hij(" ",v.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),v.xp6(3),v.Oqu(v.lcZ(26,20,xe.getLastSyncTime()))}}function le(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onForceStructure())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("disabled",xe.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function ie(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onForce())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("disabled",xe.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let ae=(()=>{class te{constructor(xe,ot,Nt,en){this.dialogRef=xe,this.data=ot,this.groupService=Nt,this.notificator=en,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,[vt.r.GROUP_SYNC_ENABLED,vt.r.GROUP_LAST_SYNC_STATE,vt.r.GROUP_LAST_SYNC_TIMESTAMP,vt.r.GROUP_STRUCTURE_SYNC_ENABLED,vt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,vt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(xe=>{this.group=xe,this.syncEnabled=(0,rt.IL)(this.group.attributes,vt.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,rt.IL)(this.group.attributes,vt.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,rt.IL)(this.group.attributes,vt.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,rt.IL)(this.group.attributes,vt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,rt.IL)(this.group.attributes,vt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,rt.IL)(this.group.attributes,vt.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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.ff),v.Y36(Y.V6))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){1&xe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ht,1,0,"mat-spinner",1),v.YNc(5,W,27,22,"div",2),v.TgZ(6,"div",3)(7,"div",4)(8,"button",5),v.NdJ("click",function(){return ot.refresh()}),v.TgZ(9,"mat-icon"),v._uU(10,"refresh"),v.qZA()(),v.YNc(11,le,3,4,"button",6),v.YNc(12,ie,3,4,"button",6),v.TgZ(13,"button",7),v.NdJ("click",function(){return ot.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()()),2&xe&&(v.Tol(ot.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(6),v.Q6J("ngIf",ot.isStructured()),v.xp6(1),v.Q6J("ngIf",ot.isBasic()||ot.isStructured()),v.xp6(2),v.hij(" ",v.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,S.Ou,z.Hw,d.X$]}),te})();function Ze(te,dt){1&te&&v._UZ(0,"mat-spinner",7)}function Je(te,dt){1&te&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ct(te,dt){1&te&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function ze(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"input",9,10),v.NdJ("ngModelChange",function(Nt){v.CHM(xe);const en=v.oxw();return v.KtG(en.subject=Nt)}),v.qZA(),v.YNc(7,Je,3,3,"mat-error",11),v.qZA(),v.TgZ(8,"mat-form-field")(9,"mat-label"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"textarea",12,13),v.NdJ("ngModelChange",function(Nt){v.CHM(xe);const en=v.oxw();return v.KtG(en.message=Nt)}),v.ALo(14,"translate"),v._uU(15," "),v.qZA(),v.YNc(16,ct,3,3,"mat-error",11),v.qZA()()}if(2&te){const xe=v.MAs(6),ot=v.MAs(13),Nt=v.oxw();v.xp6(3),v.Oqu(v.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),v.xp6(2),v.Q6J("ngModel",Nt.subject),v.xp6(2),v.Q6J("ngIf",xe.invalid),v.xp6(3),v.Oqu(v.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),v.xp6(2),v.s9C("placeholder",v.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),v.Q6J("ngModel",Nt.message),v.xp6(4),v.Q6J("ngIf",ot.invalid)}}let oe=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn){this.dialogRef=xe,this.translate=ot,this.notificator=Nt,this.rtMessages=en,this.data=cn,this.storeService=Fn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(xe=>{this.dialogRef.afterClosed().subscribe(()=>{const ot="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),xe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(ot)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const xe=this.storeService.getProperty("config");let ot=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(ot=ot.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),ot=ot.concat(this.data.error.message,"\n","Perun instance: ",xe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Nt=/"password":".+?"/;let en=JSON.stringify(this.data.error.payload);en=en.replace(Nt,'"password":"####"'),ot=ot.concat("Payload:\n"+en+"\n\n")}return ot=ot.concat("Sent from new Perun Gui, version: ",h(4147).i8),ot.split("\n").join("\n ")}parseMethod(xe){return xe&&this.methodRegexp.exec(xe)[1]}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(d.sK),v.Y36(Y.V6),v.Y36(H.Hr),v.Y36(w.WI),v.Y36(Y.d6))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,Ze,1,0,"mat-spinner",1),v.YNc(4,ze,17,13,"div",2),v.TgZ(5,"div",3)(6,"div",4)(7,"button",5),v.NdJ("click",function(){return ot.dialogRef.close()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",6),v.NdJ("click",function(){return ot.sendBugReport()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&xe&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(4),v.hij(" ",v.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",""===ot.message||""===ot.subject||ot.loading),v.xp6(1),v.hij(" ",v.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,b.TO,b.KE,b.hX,y.Fj,y.JJ,y.Q7,y.On,E.Nt,S.Ou,d.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),te})(),V=(()=>{class te{constructor(xe,ot,Nt){this.dialogRef=xe,this.dialog=ot,this.data=Nt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const xe=(0,rt.kZ)();xe.width="550px",xe.data={error:this.data.error},xe.autoFocus=!1,this.dialog.open(oe,xe)}),this.dialogRef.close()}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.uw),v.Y36(w.WI))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1),v._uU(3),v.qZA(),v.TgZ(4,"div",2)(5,"div",3)(6,"button",4),v.NdJ("click",function(){return ot.onBugReportClick()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v.NdJ("click",function(){return ot.onCloseClick()}),v._uU(10),v.ALo(11,"translate"),v.qZA()()()),2&xe&&(v.xp6(1),v.Oqu(ot.data.title),v.xp6(2),v.hij(" ",ot.data.description,"\n"),v.xp6(3),v.Q6J("hidden","error"!==ot.data.type),v.xp6(1),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),v.xp6(3),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,d.X$]}),te})();var r=h(34447);function s(te,dt){1&te&&v._UZ(0,"mat-spinner",3)}function f(te,dt){1&te&&v._UZ(0,"th",15)}function l(te,dt){if(1&te&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&te){const xe=dt.$implicit;v.xp6(1),v.hij(" ",xe.userExtSource.extSource.name," ")}}function a(te,dt){1&te&&v._UZ(0,"tr",17)}function n(te,dt){1&te&&v._UZ(0,"tr",18)}function t(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"p"),v._uU(3),v.ALo(4,"translate"),v.ALo(5,"customTranslate"),v.qZA(),v.TgZ(6,"div",5),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.TgZ(10,"table",6),v.ynx(11,7),v.YNc(12,f,1,0,"th",8),v.YNc(13,l,2,1,"td",9),v.BQk(),v.YNc(14,a,1,0,"tr",10),v.YNc(15,n,1,0,"tr",11),v.qZA()(),v.TgZ(16,"div",12)(17,"button",13),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onCancel())}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA(),v.TgZ(21,"button",14),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onSubmit())}),v._uU(22),v.ALo(23,"translate"),v.ALo(24,"customTranslate"),v.qZA()()()}if(2&te){const xe=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,7,v.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),v.xp6(4),v.hij(" ",v.lcZ(8,11,v.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),v.xp6(3),v.Q6J("dataSource",xe.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",xe.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",xe.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,15,v.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(23,19,v.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let i=(()=>{class te{constructor(xe,ot,Nt,en,cn){this.dialogRef=xe,this.data=ot,this.usersManagerService=Nt,this.translate=en,this.notificator=cn,this.force=!1,this.displayedColumns=["name"],en.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Fn=>this.successMessage=Fn)}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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.Fv),v.Y36(d.sK),v.Y36(Y.V6))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div"),v.YNc(5,s,1,0,"mat-spinner",1),v.YNc(6,t,25,23,"div",2),v.qZA()),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,6,v.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),v.xp6(3),v.Tol(ot.theme),v.xp6(1),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,d.X$,r.a]}),te})();var o=h(39349);let c=(()=>{class te{constructor(xe,ot){this.dialogRef=xe,this.data=ot}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1)(3,"textarea",2),v._uU(4),v.qZA()(),v.TgZ(5,"div",3)(6,"button",4),v.NdJ("click",function(){return ot.onCancel()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v._uU(10),v.ALo(11,"translate"),v.qZA()()),2&xe&&(v.xp6(1),v.Oqu(ot.title),v.xp6(3),v.Oqu(ot.value),v.xp6(3),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),v.xp6(2),v.Q6J("cdkCopyToClipboard",ot.value),v.xp6(1),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,o.IC,E.Nt,N.i3,d.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),te})();function p(te,dt){1&te&&v._UZ(0,"th",12)}function M(te,dt){if(1&te&&(v.TgZ(0,"td",13),v._uU(1),v.qZA()),2&te){const xe=dt.$implicit;v.xp6(1),v.Oqu(xe.displayName)}}function Me(te,dt){1&te&&v._UZ(0,"tr",14)}function it(te,dt){1&te&&v._UZ(0,"tr",15)}let Dt=(()=>{class te{constructor(xe,ot,Nt,en,cn){this.dialogRef=xe,this.data=ot,this.notificator=Nt,this.translate=en,this.attributesManager=cn,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(xe=>{this.notificator.showSuccess(xe),this.dialogRef.close(!0)})}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(Y.V6),v.Y36(d.sK),v.Y36(H.H8))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"table",3),v.ynx(11,4),v.YNc(12,p,1,0,"th",5),v.YNc(13,M,2,1,"td",6),v.BQk(),v.YNc(14,Me,1,0,"tr",7),v.YNc(15,it,1,0,"tr",8),v.qZA()(),v.TgZ(16,"div",9)(17,"button",10),v.NdJ("click",function(){return ot.onCancel()}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",11),v.NdJ("click",function(){return ot.onSubmit()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()),2&xe&&(v.xp6(1),v.Oqu(v.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),v.xp6(4),v.hij(" ",v.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),v.xp6(2),v.Q6J("dataSource",ot.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",ot.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",ot.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),v.xp6(3),v.hij(" ",v.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,w.uh,w.xY,w.H8,g.lW,d.X$]}),te})(),Zt=(()=>{class te{constructor(xe,ot){this.dialogRef=xe,this.data=ot,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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),v.NdJ("ngModelChange",function(en){return ot.attributeValue=en}),v.qZA()()(),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return ot.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return ot.submit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),v.xp6(4),v.Q6J("ngModel",ot.attributeValue),v.xp6(3),v.hij(" ",v.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,b.KE,y.Fj,y.JJ,y.On,o.IC,E.Nt,d.X$]}),te})(),Et=(()=>{class te{constructor(xe,ot){this.dialogRef=xe,this.data=ot}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.qZA()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return ot.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return ot.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),v.xp6(4),v.hij(" ",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),v.xp6(3),v.hij(" ",ot.data.name," "),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,d.X$]}),te})();var pt=h(98380);function je(te,dt){if(1&te&&(v.TgZ(0,"perun-web-apps-alert",9),v._uU(1),v.qZA()),2&te){const xe=v.oxw();v.xp6(1),v.Oqu(xe.pendingEmailsMessage)}}function Oe(te,dt){1&te&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Qe=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn){this.dialogRef=xe,this.data=ot,this.translate=Nt,this.notificator=en,this.usersManagerService=cn,this.authService=Fn,this.pendingMails=[],Nt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(jn=>this.successMessage=jn),Nt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(jn=>this.pendingEmailsMessageStart=jn),Nt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(jn=>this.pendingEmailsMessageEnd=jn)}ngOnInit(){this.emailControl=new y.p4(null,[y.kI.required,y.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(xe=>{this.pendingMails=xe.filter((Nt,en,cn)=>en===cn.indexOf(Nt));let ot="";this.pendingMails.forEach(Nt=>ot+=`${Nt===this.pendingMails[0]?"":", "}${Nt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+ot+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const ot=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",ot[0]+"//"+ot[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(d.sK),v.Y36(Y.V6),v.Y36(H.Fv),v.Y36(Y.e8))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,je,2,1,"perun-web-apps-alert",2),v.TgZ(6,"mat-form-field",3)(7,"label",3),v._UZ(8,"input",4),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v.YNc(11,Oe,4,5,"mat-error",5),v.qZA()(),v.TgZ(12,"div",6)(13,"button",7),v.NdJ("click",function(){return ot.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.ALo(16,"customTranslate"),v.qZA(),v.TgZ(17,"button",8),v.NdJ("click",function(){return ot.onSubmit()}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA()()),2&xe&&(v.xp6(1),v.Oqu(v.lcZ(2,8,v.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),v.xp6(4),v.Q6J("ngIf",ot.pendingMails.length),v.xp6(3),v.s9C("placeholder",v.lcZ(9,12,v.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),v.Q6J("formControl",ot.emailControl),v.xp6(3),v.Q6J("ngIf",ot.emailControl.invalid),v.xp6(3),v.hij(" ",v.lcZ(15,16,v.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",!ot.emailControl.valid),v.xp6(1),v.hij(" ",v.lcZ(19,20,v.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,b.TO,b.KE,y.Fj,y.JJ,y.Q7,E.Nt,y.oH,pt.w,d.X$,r.a]}),te})();function ye(te,dt){1&te&&v._UZ(0,"mat-spinner",7)}function Ie(te,dt){1&te&&(v.TgZ(0,"div",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function $(te,dt){1&te&&v._UZ(0,"th",18)}function de(te,dt){if(1&te&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&te){const xe=dt.$implicit;v.xp6(1),v.Oqu(xe)}}function Ve(te,dt){1&te&&v._UZ(0,"tr",20)}function $e(te,dt){1&te&&v._UZ(0,"tr",21)}function nt(te,dt){if(1&te&&(v.TgZ(0,"perun-web-apps-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te){const xe=v.oxw(2);v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,xe.data.alert)," ")}}function Le(te,dt){if(1&te&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ie,3,3,"div",9),v.TgZ(5,"table",10),v.ynx(6,11),v.YNc(7,$,1,0,"th",12),v.YNc(8,de,2,1,"td",13),v.BQk(),v.YNc(9,Ve,1,0,"tr",14),v.YNc(10,$e,1,0,"tr",15),v.qZA(),v.YNc(11,nt,3,4,"perun-web-apps-alert",16),v.qZA()),2&te){const xe=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,6,xe.data.description)," "),v.xp6(2),v.Q6J("ngIf",xe.data.showAsk),v.xp6(1),v.Q6J("dataSource",xe.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",xe.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",xe.displayedColumns),v.xp6(1),v.Q6J("ngIf",xe.data.alert)}}function st(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("disabled",xe.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function Pt(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("disabled",xe.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Vt=(()=>{class te{constructor(xe,ot){this.dialogRef=xe,this.data=ot,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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){1&xe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ye,1,0,"mat-spinner",1),v.YNc(5,Le,12,8,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return ot.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.YNc(10,st,3,4,"button",5),v.YNc(11,Pt,3,4,"button",6),v.qZA()()),2&xe&&(v.Tol(ot.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,ot.data.title)),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("ngIf","remove"===ot.data.type),v.xp6(1),v.Q6J("ngIf","confirmation"===ot.data.type))},dependencies:[e.O5,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,pt.w,d.X$]}),te})();var rn=h(57851);let Jt=(()=>{class te{transform(xe){const ot=xe.split(":");return ot[ot.length-1]}}return te.\u0275fac=function(xe){return new(xe||te)},te.\u0275pipe=v.Yjl({name:"parseGroupName",type:te,pure:!0}),te})();function nn(te,dt){1&te&&v._UZ(0,"mat-spinner",7)}function un(te,dt){1&te&&(v.TgZ(0,"perun-web-apps-alert"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Bt(te,dt){1&te&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function It(te,dt){1&te&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Ct=function(te){return{"min-width":te}};function kt(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),v.NdJ("click",function(){const en=v.CHM(xe).$implicit,cn=v.oxw(3);return v.KtG(cn.navigate(en.id,en.include))}),v._UZ(3,"button",19),v.TgZ(4,"div",20)(5,"span"),v._uU(6),v.ALo(7,"parseGroupName"),v.qZA(),v.YNc(8,Bt,3,3,"span",21),v.YNc(9,It,3,3,"span",21),v.qZA(),v.TgZ(10,"span",22),v._uU(11),v.qZA()()()()}if(2&te){const xe=dt.$implicit,ot=v.oxw(3);v.xp6(2),v.ekj("cursor-pointer",xe.direct||xe.include)("act-disabled",!xe.direct&&!xe.include),v.xp6(2),v.Q6J("ngStyle",v.VKq(11,Ct,ot.getMinWidth(xe.level))),v.xp6(2),v.Oqu(v.lcZ(7,9,xe.name)),v.xp6(2),v.Q6J("ngIf",xe.direct),v.xp6(1),v.Q6J("ngIf",xe.include),v.xp6(2),v.Oqu(xe.description)}}function Yt(te,dt){1&te&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function pn(te,dt){1&te&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function vn(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),v._uU(5),v.qZA()(),v.TgZ(6,"div",18),v.NdJ("click",function(){const en=v.CHM(xe).$implicit,cn=v.oxw(3);return v.KtG(cn.navigate(en.id,en.include))}),v.TgZ(7,"div",20)(8,"span"),v._uU(9),v.ALo(10,"parseGroupName"),v.qZA(),v.YNc(11,Yt,3,3,"span",21),v.YNc(12,pn,3,3,"span",21),v.qZA(),v.TgZ(13,"span",22),v._uU(14),v.qZA()()(),v.TgZ(15,"ul"),v.GkF(16,26),v.qZA()()()}if(2&te){const xe=dt.$implicit,ot=v.oxw(3);v.xp6(3),v.uIk("aria-label","Toggle "+xe.name),v.xp6(2),v.hij(" ",ot.treeControl.isExpanded(xe)?"expand_more":"chevron_right"," "),v.xp6(1),v.ekj("cursor-pointer",xe.direct||xe.include)("act-disabled",!xe.direct&&!xe.include),v.xp6(1),v.Q6J("ngStyle",v.VKq(15,Ct,ot.getMinWidth(xe.level))),v.xp6(2),v.Oqu(v.lcZ(10,13,xe.name)),v.xp6(2),v.Q6J("ngIf",xe.direct),v.xp6(1),v.Q6J("ngIf",xe.include),v.xp6(2),v.Oqu(xe.description),v.xp6(1),v.ekj("example-tree-invisible",!ot.treeControl.isExpanded(xe))}}function fn(te,dt){if(1&te&&(v.TgZ(0,"mat-tree",13),v.YNc(1,kt,12,13,"mat-tree-node",14),v.YNc(2,vn,17,17,"mat-nested-tree-node",15),v.qZA()),2&te){const xe=v.oxw(2);v.Q6J("dataSource",xe.dataSource)("treeControl",xe.treeControl),v.xp6(2),v.Q6J("matTreeNodeDefWhen",xe.hasChild)}}function Wn(te,dt){if(1&te&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-form-field",9),v._UZ(5,"input",10),v.ALo(6,"translate"),v.qZA(),v.YNc(7,un,3,3,"perun-web-apps-alert",11),v.YNc(8,fn,3,3,"mat-tree",12),v.qZA()),2&te){const xe=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),v.xp6(3),v.s9C("placeholder",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),v.Q6J("formControl",xe.formControl),v.xp6(2),v.Q6J("ngIf",!xe.dataSource.data.length),v.xp6(1),v.Q6J("ngIf",xe.dataSource.data.length)}}const _t=function(te){return{name:te}};let Ht=(()=>{class te{constructor(xe,ot,Nt){this.dialogRef=xe,this.data=ot,this.groupsManagerService=Nt,this.treeControl=new rn.VY(en=>en.children),this.dataSource=new ee.WX,this.formControl=new y.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(en,cn)=>!!cn.children&&cn.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(xe=>{this.paths=xe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(xe=>{const ot=xe.trim().toLowerCase(),Nt=this.paths.filter(en=>en.filter(cn=>cn.name.includes(ot)).length);this.createGroupTree(Nt),this.dataSource.data=this.groupTree}),this.userName=(0,rt.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(xe,ot=!1){window.open(`/organizations/${this.data.member.voId}/groups/${xe}${ot?"/settings/relations":""}`,"_blank")}getMinWidth(xe){return String(400-40*xe)+"px"}recursiveSearch(xe,ot,Nt){for(const cn of xe)if(cn.name===ot[Nt].name)return ot.length===Nt+1?(cn.direct=!0,xe):(cn.children=ot[++Nt].name.includes(ot[Nt-1].name)?this.recursiveSearch(cn.children,ot,Nt):[{name:ot[Nt].name,id:ot[Nt-1].id,description:ot[Nt].description,direct:!1,include:!0,level:Nt,children:[]}].concat(cn.children),xe);return xe.push({name:ot[Nt].name,id:ot[Nt].id,description:ot[Nt].description,direct:!1,include:!1,level:Nt,children:[]}),this.recursiveSearch(xe,ot,Nt)}createGroupTree(xe){this.groupTree=[],xe.forEach(ot=>{this.groupTree=this.recursiveSearch(this.groupTree,ot,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.ff))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,nn,1,0,"mat-spinner",2),v.YNc(5,Wn,9,9,"div",3),v.TgZ(6,"div",4)(7,"div",5)(8,"button",6),v.NdJ("click",function(){return ot.onCancel()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()()()),2&xe&&(v.xp6(2),v.hij(" ",v.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",v.VKq(9,_t,ot.userName))," "),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,w.uh,w.xY,w.H8,g.lW,b.KE,y.Fj,y.JJ,E.Nt,S.Ou,y.oH,z.Hw,pt.w,ee.GZ,ee.fQ,ee.eu,ee.gi,ee.uo,ee.Ar,d.X$,Jt],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}"]}),te})(),at=(()=>{class te{constructor(xe,ot){this.dialogRef=xe,this.router=ot}onClose(){this.router.navigate([]),this.dialogRef.close()}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(he.F0))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"div",3)(8,"button",4),v.NdJ("click",function(){return ot.onClose()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),v.xp6(4),v.Oqu(v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,pt.w,d.X$]}),te})();var Ke=h(62383);function bt(te,dt){1&te&&(v.TgZ(0,"mat-radio-button",16),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Z(te,dt){1&te&&(v.TgZ(0,"mat-radio-button",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Fe(te,dt){1&te&&(v.TgZ(0,"perun-web-apps-alert",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let At=(()=>{class te{constructor(xe){this.dialogRef=xe,this.canExtendMembership=!1,this.expirationChanged=new v.vpe,this.statusChange=new v.vpe,this.expirationControl=new y.p4(null)}ngOnInit(){const xe=new Date;this.currentDate=(0,e.p6)(new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(xe){return(0,e.p6)(xe,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){if(1&xe){const Nt=v.EpF();v.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._uU(6),v.ALo(7,"parseDate"),v.qZA(),v.TgZ(8,"p")(9,"strong"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.ALo(13,"parseDate"),v.qZA(),v.TgZ(14,"mat-radio-group",2),v.NdJ("ngModelChange",function(cn){return ot.newExpiration=cn}),v.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),v.NdJ("click",function(){v.CHM(Nt);const cn=v.MAs(23);return v.KtG(cn.open())}),v.TgZ(17,"mat-label"),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"input",5),v.NdJ("dateChange",function(){return ot.setExpiration()}),v.qZA(),v._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),v.qZA()(),v.YNc(24,bt,3,3,"mat-radio-button",9),v.YNc(25,Z,3,3,"mat-radio-button",10),v.TgZ(26,"mat-radio-button",11),v._uU(27),v.ALo(28,"translate"),v.qZA()(),v.YNc(29,Fe,3,3,"perun-web-apps-alert",12),v.qZA(),v.TgZ(30,"div",13)(31,"button",14),v.NdJ("click",function(){return ot.onCancel()}),v._uU(32),v.ALo(33,"translate"),v.qZA(),v.TgZ(34,"button",15),v.NdJ("click",function(){return ot.onChange()}),v._uU(35),v.ALo(36,"translate"),v.qZA()()()}if(2&xe){const Nt=v.MAs(23);v.xp6(4),v.Oqu(v.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),v.xp6(2),v.hij(" ",v.lcZ(7,23,ot.currentExpiration)," "),v.xp6(4),v.Oqu(v.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),v.xp6(2),v.hij(" ",ot.newExpiration?v.lcZ(13,27,ot.newExpiration):"never"," "),v.xp6(2),v.Q6J("ngModel",ot.newExpiration),v.xp6(1),v.s9C("value",ot.expirationControl.value),v.xp6(3),v.Oqu(v.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),v.xp6(2),v.Q6J("min",ot.minDate)("max",ot.maxDate)("formControl",ot.expirationControl)("matDatepicker",Nt),v.xp6(1),v.Q6J("for",Nt)("disabled",!1),v.xp6(1),v.Q6J("disabled",!1),v.xp6(2),v.Q6J("ngIf",ot.canExtendMembership&&"vo"===ot.mode),v.xp6(1),v.Q6J("ngIf",ot.canExtendMembership&&"group"===ot.mode),v.xp6(2),v.hij(" ",v.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),v.xp6(2),v.Q6J("ngIf","EXPIRED"===ot.status&&("never"===ot.newExpiration||ot.parseDate(ot.expirationControl.value)>ot.currentDate)),v.xp6(3),v.hij(" ",v.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),v.xp6(2),v.Q6J("disabled",ot.expirationControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,w.xY,w.H8,g.lW,b.KE,b.hX,b.R9,y.Fj,y.JJ,y.On,E.Nt,U.VQ,U.U0,A.Mq,A.hl,A.nW,y.oH,pt.w,d.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}"]}),te})();function Mt(te,dt){1&te&&v._UZ(0,"mat-spinner",4)}function $t(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.changeStatus=!0)})("expirationChanged",function(Nt){v.CHM(xe);const en=v.oxw();return v.KtG(en.onExpirationChanged(Nt))}),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("minDate",xe.minDate)("maxDate",xe.maxDate)("currentExpiration",xe.currentExpiration)("newExpiration",xe.newExpiration)("canExtendMembership",xe.canExtendMembership)("mode","group")("status",xe.status)}}let An=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn,jn){this.dialogRef=xe,this.data=ot,this.attributesManagerService=Nt,this.memberManager=en,this.groupManager=cn,this.translate=Fn,this.notificator=jn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Fn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(si=>this.successMessage=si)}ngOnInit(){this.status=this.data.status,this.loading=!0;const xe=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()):this.minDate=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(xe,"yyyy-MM-dd","en"),this.maxDate=xe):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,vt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(ot=>{null!==ot.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(Nt=>{this.canExtendMembership=!!Nt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(xe){this.loading=!0,"groupRules"===xe?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"===xe?null:xe,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(ot=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Nt=>{this.notificator.showSuccess(Nt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:ot})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.H8),v.Y36(H.uq),v.Y36(H.ff),v.Y36(d.sK),v.Y36(Y.V6))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){1&xe&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Mt,1,0,"mat-spinner",2),v.YNc(5,$t,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&xe&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,w.uh,S.Ou,At,d.X$]}),te})();var Vn=h(13469);function Pn(te,dt){1&te&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function $n(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._UZ(6,"input",7),v.TgZ(7,"mat-icon",8),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.showOldPassword=!Nt.showOldPassword)}),v._uU(8),v.qZA(),v.YNc(9,Pn,3,3,"mat-error",9),v.qZA(),v._UZ(10,"perun-web-apps-password-form",10),v.qZA()()}if(2&te){const xe=v.oxw();v.Q6J("formGroup",xe.formGroup),v.xp6(4),v.Oqu(v.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),v.xp6(2),v.Q6J("type",xe.showOldPassword?"text":"password"),v.xp6(2),v.hij(" ",xe.showOldPassword?"visibility_off":"visibility"," "),v.xp6(1),v.Q6J("ngIf",xe.oldPwd.hasError("required")),v.xp6(1),v.Q6J("formGroup",xe.formGroup)("namespace",xe.data.namespace)}}function ai(te,dt){1&te&&v._UZ(0,"mat-spinner",11)}function oi(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"div",12)(1,"div",13)(2,"button",14),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.close())}),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"button",15),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.changePassword())}),v._uU(6),v.ALo(7,"translate"),v.qZA()()()}if(2&te){const xe=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",xe.formGroup.invalid||xe.formGroup.pending),v.xp6(1),v.hij(" ",v.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Gn=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn,jn){this.dialogRef=xe,this.data=ot,this._formBuilder=Nt,this.usersManagerService=en,this.apiRequestConfiguration=cn,this.notificator=Fn,this.translate=jn,this.showOldPassword=!1,jn.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(si=>this.successMessage=si)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",y.kI.required],passwordCtrl:["",y.kI.required,[(0,ce.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:rt.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(y.QS),v.Y36(H.Fv),v.Y36(Y.F5),v.Y36(Y.V6),v.Y36(d.sK))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1),v.YNc(4,$n,11,9,"form",2),v.YNc(5,ai,1,0,"mat-spinner",3),v.qZA(),v.YNc(6,oi,8,7,"div",4)),2&xe&&(v.xp6(1),v.Oqu(v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),v.xp6(3),v.Q6J("ngIf",!ot.loading),v.xp6(1),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,b.TO,b.KE,b.hX,b.R9,y._Y,y.Fj,y.JJ,y.JL,y.Q7,E.Nt,S.Ou,y.sg,y.u,z.Hw,Vn.G,d.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}"]}),te})();function In(te,dt){1&te&&v._UZ(0,"mat-spinner",4)}function zi(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.changeStatus=!0)})("expirationChanged",function(Nt){v.CHM(xe);const en=v.oxw();return v.KtG(en.onExpirationChanged(Nt))}),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("minDate",xe.minDate)("maxDate",xe.maxDate)("currentExpiration",xe.currentExpiration)("newExpiration",xe.newExpiration)("canExtendMembership",xe.canExtendMembership)("mode","vo")("status",xe.status)}}let kn=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn){this.dialogRef=xe,this.data=ot,this.attributesManagerService=Nt,this.memberManager=en,this.translate=cn,this.notificator=Fn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,cn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(jn=>this.successMessage=jn)}ngOnInit(){this.status=this.data.status,this.loading=!0;const xe=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()):this.minDate=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(xe,"yyyy-MM-dd","en"),this.maxDate=xe):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,vt.r.VO_DEF_EXPIRATION_RULES).subscribe(ot=>{null!==ot.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(Nt=>{this.canExtendMembership=!!Nt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(xe){this.loading=!0,"voRules"===xe?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"===xe?null:xe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(ot=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Nt=>{this.notificator.showSuccess(Nt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:ot})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.H8),v.Y36(H.uq),v.Y36(d.sK),v.Y36(Y.V6))},te.\u0275cmp=v.Xpm({type:te,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(xe,ot){1&xe&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,In,1,0,"mat-spinner",2),v.YNc(5,zi,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&xe&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,w.uh,S.Ou,At,d.X$]}),te})();function Zn(te,dt){1&te&&v._UZ(0,"mat-spinner",4)}function Ni(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("expirationChanged",function(Nt){v.CHM(xe);const en=v.oxw();return v.KtG(en.onExpirationChanged(Nt))}),v.qZA()}if(2&te){const xe=v.oxw();v.Q6J("minDate",xe.minDate)("currentExpiration",xe.currentExpiration)("newExpiration",xe.newExpiration)("mode","sponsor")}}let ki=(()=>{class te{constructor(xe,ot,Nt,en,cn,Fn,jn){this.dialogRef=xe,this.data=ot,this.attributesManagerService=Nt,this.memberManager=en,this.groupManager=cn,this.translate=Fn,this.notificator=jn,this.loading=!1,Fn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(si=>this.successMessage=si)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const xe=new Date;this.minDate=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()),this.loading=!1}onExpirationChanged(xe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===xe?null:xe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.H8),v.Y36(H.uq),v.Y36(H.ff),v.Y36(d.sK),v.Y36(Y.V6))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Zn,1,0,"mat-spinner",2),v.YNc(5,Ni,1,4,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&xe&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,w.uh,S.Ou,At,d.X$]}),te})();function Ri(te,dt){1&te&&v._UZ(0,"mat-spinner",4)}function fi(te,dt){1&te&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function hi(te,dt){1&te&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Rr(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"mat-radio-group",12),v.NdJ("ngModelChange",function(Nt){v.CHM(xe);const en=v.oxw(2);return v.KtG(en.asyncValidation=Nt)}),v.TgZ(1,"span",13),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",14),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-radio-button",14),v._uU(8),v.ALo(9,"translate"),v.qZA()()}if(2&te){const xe=v.oxw(2);v.Q6J("ngModel",xe.asyncValidation),v.xp6(2),v.hij(" ",v.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),v.xp6(2),v.Q6J("value",!1),v.xp6(1),v.hij(" ",v.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),v.xp6(2),v.Q6J("value",!0),v.xp6(1),v.hij(" ",v.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ir(te,dt){1&te&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function gr(te,dt){1&te&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&te&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function rr(te,dt){if(1&te&&(v.TgZ(0,"div",5)(1,"p",6),v._uU(2),v.TgZ(3,"span",7),v._uU(4),v.qZA(),v._uU(5),v.TgZ(6,"span",7),v._uU(7),v.qZA()(),v.TgZ(8,"p")(9,"strong",8),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.qZA(),v.TgZ(13,"p")(14,"strong",8),v._uU(15),v.ALo(16,"translate"),v.qZA(),v._uU(17),v.qZA(),v.YNc(18,fi,3,3,"span",9),v.YNc(19,hi,3,3,"span",9),v.YNc(20,Rr,10,12,"mat-radio-group",10),v.YNc(21,ir,3,3,"span",9),v.YNc(22,gr,3,3,"span",9),v.qZA()),2&te){const xe=v.oxw();v.xp6(2),v.hij(" ",xe.group.name," "),v.xp6(2),v.hij("#",xe.group.id,""),v.xp6(1),v.hij(" - ",xe.resource.name," "),v.xp6(2),v.hij("#",xe.resource.id,""),v.xp6(3),v.hij(" ",v.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),v.xp6(2),v.hij(" ",xe.status," "),v.xp6(3),v.hij(" ",v.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),v.xp6(2),v.hij(" ",xe.getReversedStatus()," "),v.xp6(1),v.Q6J("ngIf","INACTIVE"===xe.status||"FAILED"===xe.status),v.xp6(1),v.Q6J("ngIf","ACTIVE"===xe.status),v.xp6(1),v.Q6J("ngIf","INACTIVE"===xe.status||"FAILED"===xe.status),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===xe.status||"FAILED"===xe.status)&&!1===xe.asyncValidation),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===xe.status||"FAILED"===xe.status)&&!0===xe.asyncValidation)}}function ar(te,dt){if(1&te){const xe=v.EpF();v.TgZ(0,"div",15)(1,"button",16),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",17),v.NdJ("click",function(){v.CHM(xe);const Nt=v.oxw();return v.KtG(Nt.onSubmit())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&te){const xe=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",xe.loading),v.xp6(1),v.hij(" ",v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===xe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let la=(()=>{class te{constructor(xe,ot,Nt,en){this.dialogRef=xe,this.data=ot,this.resourceService=Nt,this.groupService=en,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(xe=>{this.resource=xe,this.groupService.getGroupById(this.data.groupId).subscribe(ot=>{this.group=ot,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 te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(H.xk),v.Y36(H.ff))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ri,1,0,"mat-spinner",1),v.YNc(5,rr,23,17,"div",2),v.YNc(6,ar,7,7,"div",3),v.qZA()),2&xe&&(v.Tol(ot.theme),v.xp6(2),v.hij(" ",v.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,y.JJ,y.On,S.Ou,U.VQ,U.U0,d.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),te})();var _i=h(90995);let Tt=(()=>{class te{constructor(xe,ot,Nt,en,cn){this.dialogRef=xe,this.data=ot,this.notificator=Nt,this.usersService=en,this.translate=cn,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(xe){this.force=xe.force,xe.deleted?this.anonymizeUser():this.onCancel()}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so),v.Y36(w.WI),v.Y36(Y.V6),v.Y36(H.Fv),v.Y36(d.sK))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),v.NdJ("deleted",function(en){return ot.onSubmit(en)}),v.qZA()()),2&xe&&(v.Tol(ot.theme),v.xp6(1),v.Q6J("entityNames",ot.dataSource)("entityType","user")("relations",ot.relations)("loading",ot.loading)("anonymize",!0))},dependencies:[_i.e]}),te})(),Xt=(()=>{class te{constructor(xe){this.dialogRef=xe}close(){this.dialogRef.close()}}return te.\u0275fac=function(xe){return new(xe||te)(v.Y36(w.so))},te.\u0275cmp=v.Xpm({type:te,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",2),v._UZ(5,"mat-spinner",3),v.qZA()()),2&xe&&(v.xp6(2),v.hij(" ",v.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),v.xp6(3),v.Q6J("diameter",50))},dependencies:[w.uh,w.xY,S.Ou,d.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),te})()},90995:(We,pe,h)=>{"use strict";h.d(pe,{e:()=>we});var e=h(94650),d=h(24006),_=h(30671),w=h(36895),g=h(65412),b=h(4859),y=h(59549),E=h(284),S=h(51572),U=h(97392),A=h(98380),N=h(96338),z=h(89383),Q=h(31359);let ne=(()=>{class j{constructor(F){this.translate=F}transform(F){return this.translate.instant(F?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return j.\u0275fac=function(F){return new(F||j)(e.Y36(z.sK,16))},j.\u0275pipe=e.Yjl({name:"deleteDialogType",type:j,pure:!0}),j})();function he(j,I){1&j&&e._UZ(0,"mat-spinner",2)}const ee=function(j){return{action:j}};function fe(j,I){if(1&j&&(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&j){const F=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,ee,e.lcZ(3,9,F.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",F.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",F.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function ce(j,I){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&j){const F=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,ee,e.lcZ(3,5,F.anonymize)))," ",F.entityType," ? ")}}function ve(j,I){1&j&&e._UZ(0,"th",18)}function v(j,I){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const F=I.$implicit,ge=e.oxw(2);e.xp6(1),e.hij(" ",ge.anonymize?e.lcZ(2,1,F):F.name," ")}}function O(j,I){1&j&&e._UZ(0,"tr",20)}function H(j,I){1&j&&e._UZ(0,"tr",21)}function Y(j,I){if(1&j){const F=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(F);const G=e.oxw(2);return e.KtG(G.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&j){const F=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,ee,e.lcZ(5,5,e.lcZ(6,7,F.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const q=function(){return["name"]};function ue(j,I){if(1&j){const F=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,fe,10,19,"div",5),e.YNc(8,ce,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,ve,1,0,"th",8),e.YNc(12,v,3,3,"td",9),e.BQk(),e.YNc(13,O,1,0,"tr",10),e.YNc(14,H,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(F);const G=e.oxw();return e.KtG(G.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(F);const G=e.oxw();return e.KtG(G.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()()}if(2&j){const F=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,ee,e.lcZ(4,13,e.lcZ(5,15,F.anonymize))))," ",F.entityType," "),e.xp6(5),e.Q6J("ngIf",!F.disableForce),e.xp6(1),e.Q6J("ngIf",F.disableForce),e.xp6(1),e.Q6J("dataSource",F.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,q)),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,ee,e.lcZ(22,22,e.lcZ(23,24,F.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!F.disableForce)}}function Ee(j,I){if(1&j&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&j){const F=I.$implicit;e.xp6(4),e.hij(" ",F," ")}}function De(j,I){if(1&j&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&j){const F=e.oxw(2);e.xp6(1),e.hij(" ",F.anotherMessage," ")}}function Se(j,I){1&j&&e._UZ(0,"th",18)}function Ge(j,I){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const F=I.$implicit,ge=e.oxw(2);e.xp6(1),e.hij(" ",ge.anonymize?e.lcZ(2,1,F):F.name," ")}}function Ce(j,I){1&j&&e._UZ(0,"tr",20)}function qe(j,I){1&j&&e._UZ(0,"tr",21)}function Pe(j,I){if(1&j){const F=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,Ee,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,De,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,Se,1,0,"th",8),e.YNc(21,Ge,3,3,"td",9),e.BQk(),e.YNc(22,Ce,1,0,"tr",10),e.YNc(23,qe,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(F);const G=e.oxw();return e.KtG(G.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(F);const G=e.oxw();return e.KtG(G.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&j){const F=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,ee,e.lcZ(4,20,e.lcZ(5,22,F.anonymize))))," ",F.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",F.relations),e.xp6(1),e.Q6J("ngIf",F.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,ee,e.lcZ(17,31,F.anonymize)))," ",F.entityType," ? "),e.xp6(3),e.Q6J("dataSource",F.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,q)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,ee,e.lcZ(27,36,e.lcZ(28,38,F.anonymize))))),e.Q6J("formControl",F.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",F.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,ee,e.lcZ(38,45,e.lcZ(39,47,F.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let we=(()=>{class j{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 d.p4("",[d.kI.required,d.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275cmp=e.Xpm({type:j,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(F,ge){1&F&&(e.YNc(0,he,1,0,"mat-spinner",0),e.YNc(1,ue,25,32,"div",1),e.YNc(2,Pe,41,61,"div",1)),2&F&&(e.Q6J("ngIf",ge.loading),e.xp6(1),e.Q6J("ngIf",!ge.force&&!ge.loading),e.xp6(1),e.Q6J("ngIf",ge.force&&!ge.loading))},dependencies:[w.sg,w.O5,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,g.uh,g.xY,g.H8,b.lW,y.KE,d.Fj,d.JJ,E.Nt,S.Ou,d.oH,U.Hw,A.w,N.i$,N.Tg,w.gd,w.rS,z.X$,Q.d,ne],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),j})()},50301:(We,pe,h)=>{"use strict";h.d(pe,{hT:()=>d,Kd:()=>w,YH:()=>g});var e=h(94650);let d=(()=>{class b{constructor(E){this.elementRef=E}ngOnInit(){this.elementRef.nativeElement.focus()}}return b.\u0275fac=function(E){return new(E||b)(e.Y36(e.SBq))},b.\u0275dir=e.lG2({type:b,selectors:[["","perunWebAppsAutoFocus",""]]}),b})();var _=h(35382);let w=(()=>{class b{constructor(E){this.router=E}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return b.\u0275fac=function(E){return new(E||b)(e.Y36(_.xw))},b.\u0275dir=e.lG2({type:b,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("click",function(){return S.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),b})(),g=(()=>{class b{onClick(E){if(1===E.button&&null!=this.perunWebAppsMiddleClickRouterLink){const S=this.perunWebAppsMiddleClickRouterLink.join("/"),U=location.search;window.open(S+U)}}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275dir=e.lG2({type:b,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("mouseup",function(A){return S.onClick(A)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),b})()},45323:(We,pe,h)=>{"use strict";h.d(pe,{u:()=>e});var e=(()=>{return(d=e||(e={})).PERUNADMIN="PERUNADMIN",d.PERUNOBSERVER="PERUNOBSERVER",d.VOADMIN="VOADMIN",d.GROUPADMIN="GROUPADMIN",d.GROUPOBSERVER="GROUPOBSERVER",d.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",d.SELF="SELF",d.FACILITYADMIN="FACILITYADMIN",d.FACILITIYOBSERVER="FACILITYOBSERVER",d.RESOURCEADMIN="RESOURCEADMIN",d.RESOURCESELFSERVICE="RESOURCESELFSERVICE",d.REGISTRAR="REGISTRAR",d.ENGINE="ENGINE",d.RPC="RPC",d.NOTIFICATIONS="NOTIFICATIONS",d.SERVICEUSER="SERVICEUSER",d.SPONSOR="SPONSOR",d.VOOBSERVER="VOOBSERVER",d.TOPGROUPCREATOR="TOPGROUPCREATOR",d.SECURITYADMIN="SECURITYADMIN",d.CABINETADMIN="CABINETADMIN",d.UNKNOWNROLENAME="UNKNOWNROLENAME",d.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",d.UNKNOWN="UNKNOWN",d.MEMBERSHIP="MEMBERSHIP",e;var d})()},28499:(We,pe,h)=>{"use strict";h.d(pe,{E3:()=>A,yT:()=>N.y});var e=h(36895),d=h(59549),_=h(10266),w=h(24006),g=h(284),b=h(89383),y=h(51572),E=h(97392),S=h(63189),U=h(94650);let A=(()=>{class Q{}return Q.\u0275fac=function(he){return new(he||Q)},Q.\u0275mod=U.oAB({type:Q}),Q.\u0275inj=U.cJS({imports:[e.ez,d.lN,_.AV,w.UX,g.c,b.aw,y.Cq,E.Ps,S.r]}),Q})();var N=h(47549);h(13469)},13469:(We,pe,h)=>{"use strict";h.d(pe,{G:()=>ve});var e=h(47549),d=h(35382),_=h(32105),w=h(94650),g=h(89383),b=h(36895),y=h(59549),E=h(10266),S=h(24006),U=h(284),A=h(51572),N=h(97392),z=h(98380);function Q(v,O){1&v&&w._UZ(0,"mat-spinner",12),2&v&&w.Q6J("diameter",18)}function ne(v,O){if(1&v&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&v){const H=w.oxw();w.Q6J("matTooltip",H.getErrorTooltip())("matTooltipDisabled",!H.formGroup.get("passwordCtrl").hasError("backendError"))}}function he(v,O){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ee(v,O){if(1&v&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&v){const H=w.oxw();w.Q6J("matTooltip",H.getErrorTooltip()),w.xp6(1),w.Oqu(H.getErrorTooltip())}}function fe(v,O){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ce(v,O){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let ve=(()=>{class v{constructor(H,Y,q){this.translator=H,this.usersManagerService=Y,this.store=q,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!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.getProperty("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(H=>{const Y=H.userAttributes.find(q=>"preferredLanguage"===q.friendlyName);this.language=Y?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_requirements_help":"password_requirements_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"!==this.language?"en"===this.language?"password_requirements_help":"password_requirements_help_cs":"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 H=this.formGroup.get("passwordCtrl").getError("backendError");return H&&(H=H.replace(":null","")),H}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(H=>H.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(H=>"default"===H.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return v.\u0275fac=function(H){return new(H||v)(w.Y36(g.sK),w.Y36(_.Fv),w.Y36(d.d6))},v.\u0275cmp=w.Xpm({type:v,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(H,Y){1&H&&(w.TgZ(0,"div",0)(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,Q,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,ne,2,2,"mat-icon",5),w.YNc(8,he,3,3,"mat-error",6),w.YNc(9,ee,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8)(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,fe,3,3,"mat-error",6),w.YNc(18,ce,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA()()),2&H&&(w.Q6J("formGroup",Y.formGroup),w.xp6(1),w.Q6J("matTooltip",Y.getPasswordDisabledTooltip())("matTooltipDisabled",Y.formGroup.get("passwordCtrl").enabled||Y.tooltipPwdDisabledForNamespace),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))},dependencies:[b.O5,y.TO,y.KE,y.hX,y.R9,E.gM,S.Fj,S.JJ,S.JL,S.Q7,S.sg,S.u,U.Nt,A.Ou,N.Hw,z.w,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)}"]}),v})()},47549:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>b,y:()=>y});var e=h(82805),d=h(39646),_=h(63900),w=h(54004),g=h(70262);class b{isErrorState(S){return!(!S?.invalid||!S?.dirty)}}const y=(E,S,U,A=500)=>N=>(0,e.H)(A).pipe((0,_.w)(()=>(U.dontHandleErrorForNext(),E&&"No namespace"!==E?S.checkPasswordStrength({password:N.value,namespace:E}):(0,d.of)(null))),(0,w.U)(()=>null),(0,g.K)(z=>{const Q={backendError:z.message.substring(z.message.indexOf(":")+1)};return(0,d.of)(Q)}))},32105:(We,pe,h)=>{"use strict";h.d(pe,{au:()=>ze,sY:()=>Pe,oW:()=>we,H8:()=>y,jw:()=>E,Ct:()=>S,VK:()=>b,WY:()=>A,KG:()=>z,IQ:()=>Q,ff:()=>he,uq:()=>fe,aC:()=>ce,Hr:()=>ve,tk:()=>v,xk:()=>O,t7:()=>H,KK:()=>Y,Ob:()=>q,Dy:()=>ae,Fv:()=>ue,FW:()=>Ee,YF:()=>De});var e=h(80529);class d{encodeKey(V){return encodeURIComponent(V)}encodeValue(V){return encodeURIComponent(V)}decodeKey(V){return decodeURIComponent(V)}decodeValue(V){return decodeURIComponent(V)}}var _=h(94650);const w=new _.OlP("basePath");class b{constructor(V={}){this.apiKeys=V.apiKeys,this.username=V.username,this.password=V.password,this.accessToken=V.accessToken,this.basePath=V.basePath,this.withCredentials=V.withCredentials,this.encoder=V.encoder,this.credentials=V.credentials?V.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(V){if(0===V.length)return;const r=V.find(s=>this.isJsonMime(s));return void 0===r?V[0]:r}selectHeaderAccept(V){if(0===V.length)return;const r=V.find(s=>this.isJsonMime(s));return void 0===r?V[0]:r}isJsonMime(V){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==V&&(r.test(V)||"application/json-patch+json"===V.toLowerCase())}lookupCredential(V){const r=this.credentials[V];return"function"==typeof r?r():r}}let y=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}convertAttributeToNonunique(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}convertAttributeToUnique(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}createAttributeDefinition(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteAttributeDefinition(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteAttributeDefinitions(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllAttributeDefinitions(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAttribute(r,s,f,l,a,n,t,i,o,c,p,M="body",Me=!1,it){let Dt=new e.LE({encoder:this.encoder});null!=r&&(Dt=this.addToHttpParams(Dt,r,"attributeName")),null!=s&&(Dt=this.addToHttpParams(Dt,s,"attributeId")),null!=f&&(Dt=this.addToHttpParams(Dt,f,"facility")),null!=l&&(Dt=this.addToHttpParams(Dt,l,"user")),null!=a&&(Dt=this.addToHttpParams(Dt,a,"vo")),null!=n&&(Dt=this.addToHttpParams(Dt,n,"resource")),null!=t&&(Dt=this.addToHttpParams(Dt,t,"member")),null!=i&&(Dt=this.addToHttpParams(Dt,i,"group")),null!=o&&(Dt=this.addToHttpParams(Dt,o,"host")),null!=c&&(Dt=this.addToHttpParams(Dt,c,"userExtSource")),null!=p&&(Dt=this.addToHttpParams(Dt,p,"key"));let Et,Zt=this.defaultHeaders;Et=this.configuration.lookupCredential("BasicAuth"),Et&&(Zt=Zt.set("Authorization","Basic "+Et)),Et=this.configuration.lookupCredential("BearerAuth"),Et&&(Zt=Zt.set("Authorization","Bearer "+Et));let pt=it&&it.httpHeaderAccept;void 0===pt&&(pt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==pt&&(Zt=Zt.set("Accept",pt));let je=it&&it.context;void 0===je&&(je=new e.qT);let Oe="json";return pt&&(Oe=pt.startsWith("text")?"text":this.configuration.isJsonMime(pt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:je,params:Dt,responseType:Oe,withCredentials:this.configuration.withCredentials,headers:Zt,observe:M,reportProgress:Me})}getAttributeDefinitionById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributeDefinitionByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributeDefinitionsByNamespace(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributeModulesDependenciesForAttributeGraphText(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==s)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"format")),null!=s&&(n=this.addToHttpParams(n,s,"attrName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAttributeModulesDependenciesGraphText(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributePolicyCollections(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributeRights(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributeRules(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAttributesDefinitionWithRights(r,s,f,l,a,n,t,i,o="body",c=!1,p){let M=new e.LE({encoder:this.encoder});null!=r&&(M=this.addToHttpParams(M,r,"member")),null!=s&&(M=this.addToHttpParams(M,s,"user")),null!=f&&(M=this.addToHttpParams(M,f,"vo")),null!=l&&(M=this.addToHttpParams(M,l,"group")),null!=a&&(M=this.addToHttpParams(M,a,"resource")),null!=n&&(M=this.addToHttpParams(M,n,"facility")),null!=t&&(M=this.addToHttpParams(M,t,"host")),null!=i&&(M=this.addToHttpParams(M,i,"userExtSource"));let it,Me=this.defaultHeaders;it=this.configuration.lookupCredential("BasicAuth"),it&&(Me=Me.set("Authorization","Basic "+it)),it=this.configuration.lookupCredential("BearerAuth"),it&&(Me=Me.set("Authorization","Bearer "+it));let Dt=p&&p.httpHeaderAccept;void 0===Dt&&(Dt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Dt&&(Me=Me.set("Accept",Dt));let Zt=p&&p.context;void 0===Zt&&(Zt=new e.qT);let Et="json";return Dt&&(Et=Dt.startsWith("text")?"text":this.configuration.isJsonMime(Dt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Zt,params:M,responseType:Et,withCredentials:this.configuration.withCredentials,headers:Me,observe:o,reportProgress:c})}getEntitylessAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessAttributesByKey(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getEntitylessAttributesByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getEntitylessAttributesWithKeys(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attrName")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"keys[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessKeys(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityResourceUserMemberAttributes(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),null!=f&&(i=this.addToHttpParams(i,f,"user")),null!=l&&(i=this.addToHttpParams(i,l,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getFacilityUserAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupResourceAttributeById(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getGroupResourceAttributeByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getGroupResourceAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLogins(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMemberAndUserAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAndUserAttributesByNames(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==f)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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMemberAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAndUserAttributesByNames(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getMemberGroupAttributeById(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberGroupAttributeByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberGroupAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAttributesByNames(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getMemberResourceAttributeById(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberResourceAttributeByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberResourceAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesDefinition(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRequiredAttributesFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRequiredAttributesFacilityService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesFacilityServices(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesGroupResourceService(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getRequiredAttributesHostService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==s)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"host"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMemberGroup(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==f)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 o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=f&&(o=this.addToHttpParams(o,f,"group")),null!=l&&(o=this.addToHttpParams(o,l,"member")),null!=a&&(o=this.addToHttpParams(o,a,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"group")),null!=f&&(i=this.addToHttpParams(i,f,"member")),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getRequiredAttributesMemberResource(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getRequiredAttributesMemberResourceService(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),null!=f&&(i=this.addToHttpParams(i,f,"member")),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getRequiredAttributesResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRequiredAttributesResourceService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesResourceServices(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRequiredAttributesUserFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesVoService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourceAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupAndGroupAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"workWithGroupAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getResourceGroupAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupMemberAttributesByNames(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group")),null!=f&&(i=this.addToHttpParams(i,f,"member")),l&&l.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getUserAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserExtSourceAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserFacilityAttributeById(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getUserFacilityAttributeByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getUserFacilityAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(r,s,f,l,a,n,t="body",i=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==f)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==a)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 c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"facility")),null!=s&&(c=this.addToHttpParams(c,s,"resource")),null!=f&&(c=this.addToHttpParams(c,f,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=a&&(c=this.addToHttpParams(c,a,"member")),n&&n.forEach(Zt=>{c=this.addToHttpParams(c,Zt,"attributes[]")});let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Me=o&&o.httpHeaderAccept;void 0===Me&&(Me=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Me&&(p=p.set("Accept",Me));let it=o&&o.context;void 0===it&&(it=new e.qT);let Dt="json";return Me&&(Dt=Me.startsWith("text")?"text":this.configuration.isJsonMime(Me)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:it,params:c,responseType:Dt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}removeAttributesForFacilityResourceUserMember(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==f)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==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=f&&(o=this.addToHttpParams(o,f,"user")),null!=l&&(o=this.addToHttpParams(o,l,"member")),a&&a.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"attributes[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}removeEntitylessAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupResourceAttribute(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeGroupResourceAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attributes[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}removeHostAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==f)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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"attributes[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeMemberGroupAttribute(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeMemberGroupAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attributes[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}removeMemberResourceAttribute(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeMemberResourceAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"resource")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeResourceAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUesAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSourceAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserFacilityAttribute(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeUserFacilityAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"facility")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeVoAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setAttributeActionCriticality(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==f)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=s&&(t=this.addToHttpParams(t,s,"action")),null!=f&&(t=this.addToHttpParams(t,f,"critical"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}setAttributePolicyCollections(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setAttributeRights(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setEntitylessAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setFacilityAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setFacilityAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setFacilityResourceGroupUserMemberAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=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:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setFacilityResourceUserMemberAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=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:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setFacilityUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setGroupAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setGroupAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setGroupResourceAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setGroupResourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setHostAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setHostAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberGroupAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberGroupAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberGroupWithUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberResourceAndUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberResourceAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberResourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setMemberWithUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setResourceAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setResourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setResourceGroupAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setResourceGroupWithGroupAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserExtSourceAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserExtSourceAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserFacilityAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setUserFacilityAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setVoAttribute(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setVoAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateAttributeDefinition(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),E=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}auditMessagesManagerLog(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}createAuditerConsumer(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllAuditerConsumers(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAuditerMessagesCount(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getLastMessageId(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMessages(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMessagesByCount(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMessagesByIdAndCount(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==s)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=s&&(n=this.addToHttpParams(n,s,"count"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMessagesPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}pollConsumerMessages(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}setLastProcessedId(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==s)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consumerName")),null!=s&&(n=this.addToHttpParams(n,s,"lastProcessedId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),S=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}getAllPolicies(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllRolesManagementRules(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAuthzAdminGroups(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"complementaryObjectId")),null!=f&&(t=this.addToHttpParams(t,f,"complementaryObjectName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getAuthzRichAdmins(r,s,f,l,a,n,t="body",i=!1,o){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==f)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!=s&&(c=this.addToHttpParams(c,s,"complementaryObjectId")),null!=f&&(c=this.addToHttpParams(c,f,"complementaryObjectName")),l&&l.forEach(Zt=>{c=this.addToHttpParams(c,Zt,"specificAttributes")}),null!=a&&(c=this.addToHttpParams(c,a,"allUserAttributes")),null!=n&&(c=this.addToHttpParams(c,n,"onlyDirectAdmins"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Me=o&&o.httpHeaderAccept;void 0===Me&&(Me=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Me&&(p=p.set("Accept",Me));let it=o&&o.context;void 0===it&&(it=new e.qT);let Dt="json";return Me&&(Dt=Me.startsWith("text")?"text":this.configuration.isJsonMime(Me)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:it,params:c,responseType:Dt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}getFacilitiesWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupRoleNames(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupRoles(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupsWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLoggedUser(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMembersWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getPerunPrincipal(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPrincipalRoleNames(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getResourcesWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserRoleNames(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserRoles(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVosWhereUserIsInRoles(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isFacilityAdmin(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}isGroupAdmin(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}isPerunAdmin(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}isVoAdmin(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}keepAlive(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}loadAuthorizationComponents(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}setRoleWithGroupComplementaryObject(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setRoleWithUserComplementaryObject(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}unsetRoleWithGroupComplementaryObject(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}unsetRoleWithUserComplementaryObject(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),A=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}changeConsentStatus(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consent")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}evaluateConsentsForConsentHub(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}evaluateConsentsForService(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllConsentHubs(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllConsents(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getConsentById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentForUserAndConsentHub(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"consentHub")),null!=f&&(t=this.addToHttpParams(t,f,"status"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getConsentHubByFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentHubById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentHubByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentsForConsentHub(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentsForConsentHubWithStatus(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consentHub")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getConsentsForUserAndConsentHub(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"consentHub"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUserWithStatus(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateConsentHub(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),z=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addExtSourceWithGroupSource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addExtSourceWithVoSource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createExtSourceFromExtSourceObject(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createExtSourceWithNameType(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==s)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteExtSource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getExtSourceById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getExtSourceByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getExtSources(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getGroupExtSources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoExtSources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}loadExtSourcesDefinitions(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeExtSourceWithGroupSource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeExtSourceWithVoSource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Q=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addFacilityAdminGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminGroupByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUserByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwner(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByOwnerName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHost(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHosts(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostsByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeam(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeamByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesByDestinationName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceDestinationNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersByDestinationName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceDestinationNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwners(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersByDestinationName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceDestinationNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacilityByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllFacilities(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllowedGroups(r,s,f,l="body",a=!1,n){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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getAllowedGroupsByFacilityName(r,s,f,l="body",a=!1,n){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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getAllowedRichGroupsWithAttributes(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")}),null!=f&&(i=this.addToHttpParams(i,f,"vo")),null!=l&&(i=this.addToHttpParams(i,l,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")}),null!=f&&(i=this.addToHttpParams(i,f,"vo")),null!=l&&(i=this.addToHttpParams(i,l,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getAllowedUsersOfFacility(r,s,f,l="body",a=!1,n){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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(r,s,f,l="body",a=!1,n){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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=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:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getAllowedVos(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllowedVosByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedFacilitiesByGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedFacilitiesByMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedFacilitiesByService(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedFacilitiesByUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResourcesByAssignedServiceForFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedResourcesForFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResourcesForFacilityByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesForFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesForFacilityAndService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedRichResourcesForFacilityByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedSecurityTeams(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedSecurityTeamsByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedUsers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedUsersByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getBansForFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getBansForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getEnrichedFacilities(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getEnrichedHosts(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByDestination(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilitiesByHostName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilitiesByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilitiesCount(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFacilitiesWhereUserIsAdmin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityAdminGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityAdminUsers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAdminUsersByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBan(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBanById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityForHost(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityOwners(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityOwnersByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHosts(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostsByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostsByHostname(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostsCount(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getHostsCountByFacilityName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getOwnerFacilities(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichFacilities(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeBanByUserIdFacilityId(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroupByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUserByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityBanById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeFacilityOwner(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByOwnerName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHost(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeHostByHostname(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeHosts(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostsByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeam(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeamByFacilityName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setFacilityBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFacilityBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),he=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling addMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addMembers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling addMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupToHierarchicalVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}canExtendMembershipInGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupUnion(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=s&&(n=this.addToHttpParams(n,s,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupWithParentGroupNameDescription(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"name")),null!=f&&(t=this.addToHttpParams(t,f,"description"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}createGroupWithVoNameDescription(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"name")),null!=f&&(t=this.addToHttpParams(t,f,"description"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}deleteGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}disallowGroupToHierarchicalVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}extendMembershipInGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}forceAllSubGroupsSynchronization(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}forceGroupStructureSynchronization(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}forceGroupSynchronization(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllAllowedGroupsToHierarchicalVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllGroupsFromAllVos(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllMemberGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllRichGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllRichGroupsWithAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==s)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMemberById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupMembersCount(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupMembersCountsByGroupStatus(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupMembersCountsByVoStatus(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupRichMembersByIds(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==s)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==f)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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"members[]")}),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getGroupUnions(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==s)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"reverseDirection"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupsPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getGroupsWhereMemberIsActive(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getIndirectMembershipPaths(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMemberRichGroupsWithAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichGroupByIdWithAttributesByNames(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"groupId")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSubgroupsPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getVoAllAllowedGroupsToHierarchicalVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isAllowedGroupToHierarchicalVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isGroupMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"destinationGroup")),null!=r&&(n=this.addToHttpParams(n,r,"movingGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupUnion(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=s&&(n=this.addToHttpParams(n,s,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMembers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setGroupsMemberStatus(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==s)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"group")),null!=f&&(t=this.addToHttpParams(t,f,"status"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}updateGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),fe=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}canExtendMembership(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}createMemberForCandidate(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createMemberForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createMemberFromExtSource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createSpecificMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createSponsoredMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createSponsoredMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createSponsoredMembersFromCSV(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}extendMembership(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}findCompleteRichMembersByAttributes(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrsNames[]")}),null!=s&&(t=this.addToHttpParams(t,s,"searchString")),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"allowedStatuses[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}findCompleteRichMembersForGroup(r,s,f,l,a,n,t="body",i=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==f)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")),s&&s.forEach(Zt=>{c=this.addToHttpParams(c,Zt,"attrsNames[]")}),a&&a.forEach(Zt=>{c=this.addToHttpParams(c,Zt,"allowedStatuses[]")}),n&&n.forEach(Zt=>{c=this.addToHttpParams(c,Zt,"allowedGroupStatuses[]")}),null!=f&&(c=this.addToHttpParams(c,f,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Me=o&&o.httpHeaderAccept;void 0===Me&&(Me=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Me&&(p=p.set("Accept",Me));let it=o&&o.context;void 0===it&&(it=new e.qT);let Dt="json";return Me&&(Dt=Me.startsWith("text")?"text":this.configuration.isJsonMime(Me)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:it,params:c,responseType:Dt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}findCompleteRichMembersForVo(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"attrsNames[]")}),l&&l.forEach(it=>{i=this.addToHttpParams(i,it,"allowedStatuses[]")}),null!=f&&(i=this.addToHttpParams(i,f,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}findMembersInVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findSponsoredCompleteRichMembersForVo(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"attrsNames[]")}),null!=f&&(i=this.addToHttpParams(i,f,"searchString")),null!=l&&(i=this.addToHttpParams(i,l,"onlySponsored"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getAllMembers(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllNamespacesRules(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllSponsoredMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllSponsoredMembersAndTheirSponsors(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getCompleteRichMembersForGroup(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),f&&f.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"allowedStatuses[]")}),l&&l.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"allowedGroupStatuses[]")}),null!=s&&(o=this.addToHttpParams(o,s,"lookingInParentGroup")),a&&a.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"attrsNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),f&&f.forEach(it=>{i=this.addToHttpParams(i,it,"attrsNames[]")}),l&&l.forEach(it=>{i=this.addToHttpParams(i,it,"allowedStatuses[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getCompleteRichMembersForVo(r,s,f,l="body",a=!1,n){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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"allowedStatuses[]")}),f&&f.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"extLogin")),null!=f&&(t=this.addToHttpParams(t,f,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getMemberById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMemberByUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembers(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembersByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMembersByUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMembersCount(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMembersPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getMembersWithStatusCount(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichMemberWithAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichMembersByIds(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"ids[]")}),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMembersNoUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getSponsoredMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getSponsoredMembersAndTheirSponsors(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByVo(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceName")),null!=f&&(i=this.addToHttpParams(i,f,"extLogin")),l&&l.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}moveMembership(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==s)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"sourceUser")),null!=f&&(t=this.addToHttpParams(t,f,"targetUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}removeSponsor(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"sponsor"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendAccountActivationLinkEmail(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"namespace")),null!=f&&(i=this.addToHttpParams(i,f,"emailAttributeURN")),null!=l&&(i=this.addToHttpParams(i,l,"language"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}sendPasswordResetLinkEmail(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==f)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 o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member")),null!=s&&(o=this.addToHttpParams(o,s,"namespace")),null!=f&&(o=this.addToHttpParams(o,f,"emailAttributeURN")),null!=l&&(o=this.addToHttpParams(o,l,"language")),null!=a&&(o=this.addToHttpParams(o,a,"baseUrl"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}setSponsoredMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setSponsorshipForMember(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}setStatus(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling setStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sponsorMember(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}updateSponsorshipValidity(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}validateMemberAsync(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ce=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}createOwner(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteOwner(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"owner")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllOwners(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getOwnerById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getOwnerByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ve=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}sentMessageToRTWithMemberQueue(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"memberId")),null!=s&&(i=this.addToHttpParams(i,s,"queue")),null!=f&&(i=this.addToHttpParams(i,f,"subject")),null!=l&&(i=this.addToHttpParams(i,l,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}sentMessageToRTWithQueue(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=f&&(t=this.addToHttpParams(t,f,"text"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}sentMessageToRTWithVo(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=f&&(t=this.addToHttpParams(t,f,"text"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}sentMessageToRTWithVoQueue(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"queue")),null!=f&&(i=this.addToHttpParams(i,f,"subject")),null!=l&&(i=this.addToHttpParams(i,l,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),v=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addApplicationMailForGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}addApplicationMailForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}addGroupsToAutoRegistration(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}approveApplication(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}checkForSimilarRichIdentities(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}checkForSimilarUsersWithAuthInfo(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}consolidate(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}consolidateIdentityUsingToken(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}copyFormFromGroupToGroup(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromGroupToVo(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToGroup(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToVo(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToGroup(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToVo(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToGroup(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToVo(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createApplicationFormInGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}createApplicationFormInVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteApplication(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteApplicationMailForGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteApplicationMailForVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroupsFromAutoRegistration(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getApplicationById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getApplicationDataById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getApplicationMailsForGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getApplicationMailsForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getApplicationsForGroup(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"state[]")}),null!=f&&(i=this.addToHttpParams(i,f,"dateFrom")),null!=l&&(i=this.addToHttpParams(i,l,"dateTo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getApplicationsForMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getApplicationsForVo(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"state[]")}),null!=f&&(i=this.addToHttpParams(i,f,"dateFrom")),null!=l&&(i=this.addToHttpParams(i,l,"dateTo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getApplicationsPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getConsolidatorToken(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFormItemsForGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFormItemsForGroupWithType(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFormItemsForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFormItemsForVoWithType(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupApplicationForm(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupsToAutoRegistration(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoApplicationForm(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}rejectApplication(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=s&&(n=this.addToHttpParams(n,s,"reason"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendInvitation(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let i=new e.LE({encoder:this.encoder});null!=f&&(i=this.addToHttpParams(i,f,"voId")),null!=l&&(i=this.addToHttpParams(i,l,"name")),null!=r&&(i=this.addToHttpParams(i,r,"email")),null!=s&&(i=this.addToHttpParams(i,s,"language"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}sendInvitationForGroup(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=f&&(o=this.addToHttpParams(o,f,"voId")),null!=l&&(o=this.addToHttpParams(o,l,"groupId")),null!=a&&(o=this.addToHttpParams(o,a,"name")),null!=r&&(o=this.addToHttpParams(o,r,"email")),null!=s&&(o=this.addToHttpParams(o,s,"language"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(r,s,f,l="body",a=!1,n){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=s&&(t=this.addToHttpParams(t,s,"voId")),null!=f&&(t=this.addToHttpParams(t,f,"groupId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}sendInvitationToExistingUser(r,s,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userId")),null!=s&&(n=this.addToHttpParams(n,s,"voId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendMessage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}setSendingEnabled(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}submitApplication(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateApplicationMail(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateForm(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFormItemData(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFormItemsData(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFormItemsForGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateFormItemsForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}verifyApplication(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),O=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}activateGroupResourceAssignment(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"async"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}addAdminToGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addAdminToUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupsToResources(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(Me=>{t=this.addToHttpParams(t,Me,"groups[]")}),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"resources[]")}),null!=f&&(t=this.addToHttpParams(t,f,"async"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}assignGroupToResource(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=f&&(o=this.addToHttpParams(o,f,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupToResources(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),s&&s.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"resources[]")}),null!=f&&(o=this.addToHttpParams(o,f,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupsToResource(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"groups[]")}),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=f&&(o=this.addToHttpParams(o,f,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignResourceTagToResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}assignService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling assignService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServices(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling assignServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServicesPackage(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createResource(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==f)throw new Error("Required parameter name was null or undefined when calling createResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"facility")),null!=f&&(i=this.addToHttpParams(i,f,"name")),null!=l&&(i=this.addToHttpParams(i,l,"description"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}createResourceTagWithResourceTag(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createResourceTagWithTagName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"tagName")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deactivateGroupResourceAssignment(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteAllResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteAllResourcesTagsForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}deleteResourceTag(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getAdminGroups(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAdmins(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllResourcesByResourceTag(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getAllResourcesTagsForResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllResourcesTagsForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllResourcesWhereUserIsAdmin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllowedMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllowedResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllowedUsersOfResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedGroups(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedMembersWithStatus(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResourcesWithGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResourcesWithMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResourcesWithStatus(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichMembers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesWithGroup(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesWithMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesWithMemberService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedServicesToResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getBansForMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getBansForResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getEnrichedResourceById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupAssignments(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMailingServiceRichResourcesWithMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourceAssignments(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBan(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBanById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourceById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourceByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourcesByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourcesCountForAll(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getResourcesCountForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getResourcesFromVoWhereUserIsAdmin(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourcesWhereGroupIsAdmin(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getResourcesWhereUserIsAdmin(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getRichAdmins(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(it=>{i=this.addToHttpParams(i,it,"specificAttributes")}),null!=f&&(i=this.addToHttpParams(i,f,"allUserAttributes")),null!=l&&(i=this.addToHttpParams(i,l,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getRichResourceById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichResourcesByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeAllResourceTagsFromResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeBanByMemberAndResource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAdminResource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResources(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupsFromResource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceBanById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeResourceSelfServiceGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceSelfServiceUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceTagFromResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}removeService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServices(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling removeServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServicesPackage(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAdminResource(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setResourceBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}unallowGroupsFromResources(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateResource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateResourceBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateResourceTag(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),H=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}getAttributesMatchResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getAttributesResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getFacilities(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getMembersByUserAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getUsersSearcher(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Y=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addDestination(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==f)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 o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=s&&(o=this.addToHttpParams(o,s,"facility")),null!=f&&(o=this.addToHttpParams(o,f,"destination")),null!=l&&(o=this.addToHttpParams(o,l,"type")),null!=a&&(o=this.addToHttpParams(o,a,"propagationType"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}addDestinationToMultipleServices(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addDestinationsForAllServicesOnFacility(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==f)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"destination")),null!=f&&(i=this.addToHttpParams(i,f,"type")),null!=l&&(i=this.addToHttpParams(i,l,"propagationType"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}addRequiredAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addRequiredAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addServiceToServicesPackage(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnDestinationById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}blockAllServicesOnDestinationByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=s&&(n=this.addToHttpParams(n,s,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}blockServiceOnDestination(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockServiceOnDestinationWithNameAndType(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}blockServiceOnFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createService(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"description")),null!=f&&(t=this.addToHttpParams(t,f,"script"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}createServiceWithService(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createServicesPackage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createServicesPackageByNameAndDescription(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteService(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteServicesPackage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}forceServicePropagation(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllDestinations(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllRichDestinationsForFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllRichDestinationsForService(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedResources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedServices(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedServicesVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithGroups(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithVos(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getDestinations(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationsCount(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFacilitiesDestinations(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityAssignedServicesForGUI(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFlatData(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHashedDataWithGroups(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getHashedHierarchicalData(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getHierarchicalData(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichDestinations(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getServiceById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServiceByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServices(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getServicesBlockedOnDestination(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesBlockedOnFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesByAttributeDefinition(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesFromServicesPackage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesPackageById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesPackageByName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getServicesPackages(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}isServiceBlockedOnDestination(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isServiceBlockedOnFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}planServicePropagation(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllDestinations(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllRequiredAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeDestination(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==f)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 i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility")),null!=f&&(i=this.addToHttpParams(i,f,"destination")),null!=l&&(i=this.addToHttpParams(i,l,"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 p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}removeRequiredAttribute(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeRequiredAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServiceFromServicesPackage(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnDestinationById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}unblockAllServicesOnDestinationByName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=s&&(n=this.addToHttpParams(n,s,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}unblockServiceOnDestinationById(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockServiceOnDestinationByName(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}unblockServiceOnFacility(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateService(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateServicesPackage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),q=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}countTasks(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}deleteTask(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteTaskResultById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteTaskResultsIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteTaskResultsNames(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getAllFacilitiesStates(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAllResourcesState(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityServicesState(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getFacilityState(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTask(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTaskResultById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTaskResults(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getTaskResultsByTask(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTaskResultsForDestinations(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTaskResultsForGUIByTask(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getTaskResultsForGUIByTaskAndDestination(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"task")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}isThereSuchTask(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}listAllTasks(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}listAllTasksForFacility(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}suspendTasksPropagation(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ue=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addSpecificUserOwner(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addUserExtSource(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}anonymizeUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}changeNonAuthzPasswordByToken(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}changePasswordForLogin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}changePasswordForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}checkPasswordResetRequestByTokenIsValid(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}checkPasswordStrength(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createAlternativePassword(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}createServiceUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteAlternativePassword(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"loginNamespace")),null!=f&&(t=this.addToHttpParams(t,f,"passwordId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}deletePasswordForLogin(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deletePasswordForUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findRichUsers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}findRichUsersWithAttributes(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"searchString")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrsNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findUsers(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}generateAccountForName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"namespace")),null!=s&&(n=this.addToHttpParams(n,s,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichUsersWithAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getAssignedRichResourcesForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getGroupsForFacilityWhereUserIsActive(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsForResourceWhereUserIsActive(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsWhereUserIsAdmin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getPendingPreferredEmailChanges(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichUserExtSources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichUserWithAttributes(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichUsersByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichUsersWithAttributesByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichUsersWithoutVoWithAttributes(r,s="body",f=!1,l){let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getSpecificUsersByUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getSponsorsForMember(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsForMemberByVoAndLogin(r,s,f,l,a="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceName")),null!=f&&(i=this.addToHttpParams(i,f,"extLogin")),l&&l.forEach(it=>{i=this.addToHttpParams(i,it,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Me="json";return p&&(Me=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:M,params:i,responseType:Me,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:n})}getUserByExtSourceNameAndExtLogin(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extLogin")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserExtSourceByExtLoginAndExtSourceName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==s)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extSourceName")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceLogin"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeId")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSources(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUserExtSourcesByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUsers(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getUsersByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUsersBySpecificUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getUsersPage(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}getVosWhereUserIsAdmin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVosWhereUserIsMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}isLoginAvailable(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==s)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"loginNamespace")),null!=s&&(n=this.addToHttpParams(n,s,"login"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}loginExist(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSpecificUserOwner(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSource(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"userExtSource")),null!=f&&(t=this.addToHttpParams(t,f,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}requestPreferredEmailChange(r,s,f,l,a,n,t="body",i=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==s)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!=s&&(c=this.addToHttpParams(c,s,"email")),null!=f&&(c=this.addToHttpParams(c,f,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=a&&(c=this.addToHttpParams(c,a,"customUrl")),null!=n&&(c=this.addToHttpParams(c,n,"idpFilter"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Me=o&&o.httpHeaderAccept;void 0===Me&&(Me=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Me&&(p=p.set("Accept",Me));let it=o&&o.context;void 0===it&&(it=new e.qT);let Dt="json";return Me&&(Dt=Me.startsWith("text")?"text":this.configuration.isJsonMime(Me)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:it,params:c,responseType:Dt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}reservePasswordForLogin(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}reservePasswordForUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}reserveRandomPassword(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setLogin(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==f)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"login")),null!=f&&(t=this.addToHttpParams(t,f,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}updateUser(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateUserExtSourceLastAccess(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}validatePasswordForLogin(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePasswordForUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePreferredEmailChangeWithToken(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==s)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"token")),null!=s&&(n=this.addToHttpParams(n,s,"u"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Ee=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}getAppsConfig(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getGuiConfiguration(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunRPCVersion(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunStatistics(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunStatus(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunSystemTimeInMillis(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),De=(()=>{class oe{constructor(r,s,f){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,f){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,f):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,f){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,f));else if(s instanceof Date){if(null==f)throw Error("key may not be null if value is Date");r=r.append(f,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");r=r.append(f,s)}return r}addMemberVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithName(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==s)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"shortName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}deleteVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findCandidates(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==s)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!=s&&(t=this.addToHttpParams(t,s,"searchString")),null!=f&&(t=this.addToHttpParams(t,f,"maxNumOfResults"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}findCandidatesForGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllVos(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getCompleteCandidatesForGroup(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==f)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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getCompleteCandidatesForVo(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==f)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")),s&&s.forEach(Me=>{t=this.addToHttpParams(t,Me,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getEnrichedVoById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMemberVos(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getMyEnrichedVos(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMyVos(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getParentVos(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getRichAdminsForVo(r,s,f,l,a,n="body",t=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==f)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==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo")),null!=s&&(o=this.addToHttpParams(o,s,"role")),f&&f.forEach(Dt=>{o=this.addToHttpParams(o,Dt,"specificAttributes")}),null!=l&&(o=this.addToHttpParams(o,l,"allUserAttributes")),null!=a&&(o=this.addToHttpParams(o,a,"onlyDirectAdmins"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Me=i&&i.context;void 0===Me&&(Me=new e.qT);let it="json";return M&&(it=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:Me,params:o,responseType:it,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getVoAdminGroups(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"role"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAdminUsers(r,s,f,l="body",a=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==f)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!=s&&(t=this.addToHttpParams(t,s,"role")),null!=f&&(t=this.addToHttpParams(t,f,"onlyDirectAdmins"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:a})}getVoBanById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoBanForMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoBansForVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoById(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoByShortName(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVoMembersCountsByStatus(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVosByIds(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}getVosCount(r="body",s=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeMemberVo(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminGroup(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminUser(r,s,f="body",l=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=a&&a.context;void 0===c&&(c=new e.qT);let p="json";return o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}removeVoBanForMember(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:o,params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:f})}setVoBan(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}updateVo(r,s="body",f=!1,l){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(a=a.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:f})}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(e.eN),_.LFG(w,8),_.LFG(b,8))},oe.\u0275prov=_.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();const Pe={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},we={WRITE:"WRITE",READ:"READ"},ae={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let ze=(()=>{class oe{constructor(r,s){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!s)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:oe,providers:[{provide:b,useFactory:r}]}}}return oe.\u0275fac=function(r){return new(r||oe)(_.LFG(oe,12),_.LFG(e.eN,8))},oe.\u0275mod=_.oAB({type:oe}),oe.\u0275inj=_.cJS({}),oe})()},19516:(We,pe,h)=>{"use strict";h.d(pe,{bY:()=>ee.b,r5:()=>b.r,d4:()=>_,dp:()=>w.d});var e=h(36895),d=h(94650);let _=(()=>{class fe{}return fe.\u0275fac=function(ve){return new(ve||fe)},fe.\u0275mod=d.oAB({type:fe}),fe.\u0275inj=d.cJS({imports:[e.ez]}),fe})();var w=h(31359),b=(h(34447),h(82895)),ee=(h(69773),h(12856),h(20919),h(5865),h(38993),h(86349),h(53561),h(16119),h(7598),h(9954),h(4765))},34447:(We,pe,h)=>{"use strict";h.d(pe,{a:()=>w});var e=h(35382),d=h(94650),_=h(89383);let w=(()=>{class g{constructor(y,E){this.translate=y,this.storage=E}transform(y,E="en"){const S=this.storage.getProperty("custom_labels");if(S)for(const U of S)if(U.label===y)return U[E];return y}}return g.\u0275fac=function(y){return new(y||g)(d.Y36(_.sK,16),d.Y36(e.d6,16))},g.\u0275pipe=d.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},4765:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>d});var e=h(94650);let d=(()=>{class _{transform(g){return g.namespace.includes("virt")||g.namespace.includes("core")||g.namespace.includes("entityless")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:_,pure:!0}),_})()},82895:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>d});var e=h(94650);let d=(()=>{class _{transform(g,b){return b?`/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}),_})()},82514:(We,pe,h)=>{"use strict";h.d(pe,{F:()=>d});var e=h(94650);let d=(()=>{class _{transform(g,b,y){let E;switch(g){case"VALID":E="green";break;case"INVALID":E="red";break;default:E=""}return`${E}${y||b?" cursor-default":""}`}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:_,pure:!0}),_})()},28764:(We,pe,h)=>{"use strict";h.d(pe,{F:()=>w});var e=h(9244),d=h(64080),_=h(94650);let w=(()=>{class g{transform(y){if(null==y||null==y.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(y.attributes,d.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(y.attributes,d.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const N=(0,e.IL)(y.attributes,d.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(y.attributes,d.r.GROUP_LAST_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}if(U){const N=(0,e.IL)(y.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(y.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}return""}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(We,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(64080),d=h(9244),_=h(94650);let w=(()=>{class g{transform(y){if(null==y||null==y.attributes)return"";const E=(0,d.IL)(y.attributes,e.r.GROUP_SYNC_ENABLED),S=(0,d.IL)(y.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"";const U=S.value;if("true"===E.value){const N=(0,d.IL)(y.attributes,e.r.GROUP_LAST_SYNC_STATE),z=(0,d.IL)(y.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}if(U){const N=(0,d.IL)(y.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,d.IL)(y.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(9244),d=h(64080),_=h(94650);let w=(()=>{class g{transform(y){if(null==y||null==y.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(y.attributes,d.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(y.attributes,d.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const N=(0,e.IL)(y.attributes,d.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(y.attributes,d.r.GROUP_LAST_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.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(U){const N=(0,e.IL)(y.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(y.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=N.value,ne=z.value;return null!=Q&&Q.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(y){return new(y||g)},g.\u0275pipe=_.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},9185:(We,pe,h)=>{"use strict";h.d(pe,{I:()=>_});var e=h(35382),d=h(94650);let _=(()=>{class w{constructor(b){this.tableCheckboxService=b}transform(b,y,E){return this.tableCheckboxService.isAllSelected(y,b,E)}}return w.\u0275fac=function(b){return new(b||w)(d.Y36(e.UA,16))},w.\u0275pipe=d.Yjl({name:"isAllSelected",type:w,pure:!0}),w})()},86349:(We,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(9244),d=h(94650),_=h(89383);let w=(()=>{class g{constructor(y){this.translate=y}transform(y,E){const S=(0,e.zr)(y);return"INDIRECT"===S?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):E||"UNALTERABLE"!==S?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return g.\u0275fac=function(y){return new(y||g)(d.Y36(_.sK,16))},g.\u0275pipe=d.Yjl({name:"memberCheckboxLabel",type:g,pure:!0}),g})()},20919:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.g$)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(We,pe,h)=>{"use strict";h.d(pe,{p:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.lt)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(We,pe,h)=>{"use strict";h.d(pe,{M:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.Gw)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},38993:(We,pe,h)=>{"use strict";h.d(pe,{n:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b,y){const E=(0,e.zr)(b);return"INDIRECT"===E||!y&&"UNALTERABLE"===E}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"memberStatusDisabled",type:w,pure:!0}),w})()},69773:(We,pe,h)=>{"use strict";h.d(pe,{u:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){const y=(0,e.zr)(b);let E;switch(b.status){case"VALID":E="green";break;case"INVALID":E="red";break;case"DISABLED":E="black";break;default:return""}return`${E}${"UNALTERABLE"===y?" cursor-default":""}`}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"memberStatusIconColor",type:w,pure:!0}),w})()},21757:(We,pe,h)=>{"use strict";h.d(pe,{f:()=>d});var e=h(94650);let d=(()=>{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:(We,pe,h)=>{"use strict";h.d(pe,{i:()=>w});var e=h(9244),d=h(94650),_=h(89383);let w=(()=>{class g{constructor(y){this.translate=y}transform(y,E,S){let U=null,A=null;y.memberAttributes&&(U=y.memberAttributes.find(Q=>"membershipExpiration"===Q.friendlyName),A=y.memberAttributes.find(Q=>"groupMembershipExpiration"===Q.friendlyName));let N="";N=E?`\n Group status: ${(0,e.Oe)(y.groupStatus)}\n Expiration: ${A?.value??"never"}`:y.memberAttributes?`Status: ${(0,e.Oe)(y.status,y.groupStatus)}\n Vo status: ${(0,e.Oe)(y.status)}\n Expiration: ${U?.value??"never"}`:`Status: ${(0,e.Oe)(y.status,y.groupStatus)}\n Vo status: ${(0,e.Oe)(y.status)}`;const z=(0,e.zr)(y);return S?N=`${N}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===z&&E?N=`${N}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!E&&"UNALTERABLE"===z&&(N=`${N}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),N}}return g.\u0275fac=function(y){return new(y||g)(d.Y36(_.sK,16))},g.\u0275pipe=d.Yjl({name:"memberStatusTooltip",type:g,pure:!0}),g})()},20551:(We,pe,h)=>{"use strict";h.d(pe,{l:()=>d});var e=h(94650);let d=(()=>{class _{transform(g){return g.replace("VALID","ACTIVE")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatus",type:_,pure:!0}),_})()},64597:(We,pe,h)=>{"use strict";h.d(pe,{R:()=>d});var e=h(94650);let d=(()=>{class _{transform(g){return g.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:_,pure:!0}),_})()},62383:(We,pe,h)=>{"use strict";h.d(pe,{M:()=>_});var e=h(36895),d=h(94650);let _=(()=>{class w{transform(b,y){return"voRules"===b?"Vo rules":"groupRules"===b?"Group rules":b&&"never"!==b.toLowerCase()?(0,e.p6)(b.replace(" ","T"),"d.M.yyyy "+(y?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(We,pe,h)=>{"use strict";h.d(pe,{J:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.te)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.kN)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(We,pe,h)=>{"use strict";h.d(pe,{d:()=>d});var e=h(94650);let d=(()=>{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:(We,pe,h)=>{"use strict";h.d(pe,{g:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.$0)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(We,pe,h)=>{"use strict";h.d(pe,{Z:()=>_});var e=h(9244),d=h(94650);let _=(()=>{class w{transform(b){return(0,e.OV)(b)}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275pipe=d.Yjl({name:"userVo",type:w,pure:!0}),w})()},35382:(We,pe,h)=>{"use strict";h.d(pe,{yC:()=>I,F5:()=>we,sM:()=>ge,eE:()=>s,e8:()=>A,EB:()=>ue,Be:()=>Je,Hy:()=>rt,ly:()=>Te,fb:()=>ct,xw:()=>G,x4:()=>w,v0:()=>H,hy:()=>O,SZ:()=>F,V6:()=>j,jq:()=>ae,BN:()=>ht,Ip:()=>oe,HV:()=>ie,d6:()=>E,UA:()=>_e});var e=h(32105),d=h(45323),_=h(94650);let w=(()=>{class f{constructor(a){this.authzSevice=a,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(a){this.principal=a,this.initData(a)}setPerunPolicies(a){this.perunPolicies=a}getPerunPolicies(){return this.perunPolicies}isAuthorized(a,n){if(null===this.principal.roles)return!1;const t=this.fetchPolicyWithAllIncludedPolicies(a);let i=[];for(const c of t)i=i.concat(c.perunRoles);const o=this.fetchAllRelatedObjects(n);return this.resolveAuthorization(i,o)}principalHasRole(a,n,t){let i=n;return n.startsWith("Rich")&&(i=n.substring(4)),!(!this.principal.roles[a]||!this.principal.roles[a][i])&&this.principal.roles[a][i].includes(Number(t.toString()))}canManageFacilities(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER,d.u.FACILITYADMIN,d.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(d.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.VOADMIN)}isThisVoAdminOrObserver(a){return this.editableVos.includes(Number(a.toString()))||this.observableVos.includes(Number(a.toString()))||this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)}isThisVoAdmin(a){return this.editableVos.includes(a)||this.principalRoles.has(d.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(d.u.SPONSOR)}isThisGroupAdmin(a){return this.editableGroups.includes(a)||this.principalRoles.has(d.u.PERUNADMIN)}isGroupAdminInThisVo(a){return this.hasGroupInTheseVos.includes(a)}isFacilityAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.FACILITYADMIN)}isThisFacilityAdmin(a){return this.editableFacilities.includes(a)||this.principalRoles.has(d.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(d.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.VOOBSERVER,d.u.PERUNOBSERVER)}isThisVoObserver(a){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)||this.observableVos.includes(a)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((a,n)=>{this.authzSevice.getAllRolesManagementRules().subscribe(t=>{this.allRolesManagementRules=t,a()},t=>n(t))})}assignAvailableRoles(a,n){this.allRolesManagementRules.forEach(t=>{t.primaryObject===n&&a.push(t.roleName)}),a.sort(),"Vo"===n&&this.voCustomSort(a)}isManagerPagePrivileged(a){const n=[];let t=a.beanName;t.startsWith("Rich")&&(t=t.substring(4)),this.assignAvailableRoles(n,t);const i=new Map;this.setRolesAuthorization(n,a,i);for(const o of i.values())if(o.readAuth||o.manageAuth)return!0;return!1}setRolesAuthorization(a,n,t){for(const i of a){let o=[],c=[],p=[];for(const Zt of this.allRolesManagementRules)if(Zt.roleName===i){o=o.concat(Zt.privilegedRolesToRead),c=c.concat(Zt.privilegedRolesToManage);for(const Et of Object.keys(Zt.entitiesToManage))p="User"===Et?[Et].concat(p):p.concat(Et);break}const M=this.fetchAllRelatedObjects([n]),Me=this.resolveAuthorization(o,M),it=this.resolveAuthorization(c,M);t.set(i,{readAuth:Me,manageAuth:it,modes:p})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(a){for(const n of this.allRolesManagementRules)if(n.roleName===a)return n.primaryObject;return""}resolveAuthorization(a,n){for(const t of a){let i=!0;for(const o of Object.keys(t)){const c=t[o];if(null===c)this.principalRoles.has(o)||(i=!1);else if(n[c]){for(const p of n[c])if(!this.principalHasRole(o,c,p)){i=!1;break}}else i=!1;if(!i)break}if(i)return!0}return!1}getPerunPolicy(a){for(const n of this.perunPolicies)if(n.policyName===a)return n;return null}fetchAllRelatedObjects(a){const n={};for(const t of a){let i=t.beanName;switch(t.beanName.startsWith("Rich")&&(i=t.beanName.substring(4)),n[i]?n[i].push(t.id):n[i]=[t.id],i){case"Member":n.User?n.User.push(t.userId):n.User=[t.userId],n.Vo?n.Vo.push(t.voId):n.Vo=[t.voId];break;case"Group":case"ResourceTag":n.Vo?n.Vo.push(t.voId):n.Vo=[t.voId];break;case"Resource":n.Facility?n.Facility.push(t.facilityId):n.Facility=[t.facilityId],n.Vo?n.Vo.push(t.voId):n.Vo=[t.voId]}}return n}fetchPolicyWithAllIncludedPolicies(a){const n=new Map;let t=[];for(t.push(a);0!==t.length;){const o=t.shift();if(n.has(o))continue;const c=this.getPerunPolicy(o);if(!c)return[];n.set(o,c),t=t.concat(c.includePolicies)}const i=[];for(const o of n.values())i.push(o);return i}voCustomSort(a){for(let n=0;n{class f{constructor(){this.branding=""}setInstanceConfig(a){this.instanceConfig=a}setDefaultConfig(a){this.defaultConfig=a}getAppsConfig(){return this.appsConfig}setAppsConfig(a){this.appsConfig=a}setPerunPrincipal(a){this.principal=a}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(a){this.initialPageId=a}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(a){this.branding=a}getProperty(a){if(!this.instanceConfig||!this.defaultConfig)return null;const n=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],t=this.defaultConfig[a];let i=null;for(const o of n)o&&null==i&&(i=o[a]);return null===i?t:this.addMissingValuesToProperty(i,t)}addMissingValuesToProperty(a,n){if("object"!=typeof a||Array.isArray(a)||null==a){if(null!=a)return a}else for(const t of Object.keys(n))n[t]=this.addMissingValuesToProperty(a[t],n[t]);return n}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var S=h(65412),U=h(51214);let A=(()=>{class f{constructor(a,n,t,i,o){this.injector=a,this.store=n,this.dialog=t,this.route=i,this.oauthService=o,setTimeout(()=>{this.router=this.injector.get(b.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const a=this.setIdpFilter(),i=.5+.25*Math.random(),o=a?{acr_values:a}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(o.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(o.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(o.prompt?o.prompt+=" login":o.prompt="login",o.max_age="0"),"Linker"===this.store.getProperty("application")){o.prompt?o.prompt+=" login":o.prompt="login";const p=(0,y.O5)("idphint",location.search.substring(1));p&&(o.idphint=p)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:i,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:o}}setIdpFilter(){const a=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const n=this.store.getProperty("oidc_client").filters;if(!n)return null;let t=null;return a.forEach(i=>{const o=i.split("=");"idpFilter"===o[0]&&n[o[1]]&&(this.filterShortname=o[1],t=n[o[1]])}),n.default&&!t?(this.filterShortname="default",n.default):t}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(a=>a instanceof b.m2)).subscribe(()=>{const a={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===a.idpFilter?{}:a,queryParamsHandling:"merge",replaceUrl:!0})})}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(_.zs3),_.LFG(E),_.LFG(S.uw),_.LFG(b.gz),_.LFG(U.Ct))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var N=h(89383);let z=(()=>{class f{constructor(a){this.dialogRef=a}}return f.\u0275fac=function(a){return new(a||f)(_.Y36(S.so))},f.\u0275cmp=_.Xpm({type:f,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(a,n){1&a&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&a&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[S.xY,N.X$]}),f})();var Q=h(83905),ne=h(69751),he=h(4859),ee=h(98380);let fe=(()=>{class f{constructor(a){this.dialogRef=a}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return f.\u0275fac=function(a){return new(a||f)(_.Y36(S.so))},f.\u0275cmp=_.Xpm({type:f,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(a,n){1&a&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.qZA()(),_.TgZ(7,"div",3)(8,"button",4),_.NdJ("click",function(){return n.cancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return n.submit()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()),2&a&&(_.xp6(1),_.Oqu(_.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),_.xp6(4),_.hij(" ",_.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),_.xp6(4),_.hij(" ",_.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[S.uh,S.xY,S.H8,he.lW,ee.w,N.X$]}),f})();var ce=h(97392);let ve=(()=>{class f{}return f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=_.Xpm({type:f,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(a,n){1&a&&(_.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),_._uU(3," info "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div"),_._uU(7),_.ALo(8,"translate"),_.qZA()()),2&a&&(_.xp6(4),_.hij(" ",_.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),_.xp6(3),_.hij(" ",_.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[ce.Hw,N.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),f})(),v=(()=>{class f{constructor(a,n){this.data=a,this.dialogRef=n}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return f.\u0275fac=function(a){return new(a||f)(_.Y36(S.WI),_.Y36(S.so))},f.\u0275cmp=_.Xpm({type:f,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(a,n){1&a&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.qZA()(),_.TgZ(7,"div",3)(8,"button",4),_.NdJ("click",function(){return n.cancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return n.submit()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()),2&a&&(_.xp6(1),_.Oqu(_.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),_.xp6(4),_.hij(" ",_.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),_.xp6(4),_.hij(" ",_.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[S.uh,S.xY,S.H8,he.lW,ee.w,N.X$]}),f})(),O=(()=>{class f{constructor(a,n,t,i){this.dialog=a,this.oauthService=n,this.authService=t,this.store=i}openMfaWindow(){let a=null,n=null;const t=(0,y.kZ)();t.width="450px";const i=this.dialog.open(fe,t);let o=!1;if(i.afterClosed().subscribe(c=>{if(c){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),a=this.setupMfaWindow(),a){const p=(0,y.kZ)();p.width="450px",p.panelClass="noBorderDialog",n=this.dialog.open(ve,p)}}else o=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const c=(0,y.kZ)();c.width="450px",c.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(v,c)}return new ne.y(c=>{const p=setInterval(()=>a?.closed?(clearInterval(p),n.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),c.next(!0)):o?(clearInterval(p),c.next(!1)):void 0,1e3)})}catchNoMfaTokenError(a){"unmet_authentication_requirements"===a&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const a=location.pathname+location.search,i=window.top;return window.open(a,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`)}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(S.uw),_.LFG(U.Ct),_.LFG(A),_.LFG(E))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),H=(()=>{class f{constructor(a,n,t,i,o,c,p,M){this.authService=a,this.oauthService=n,this.storeService=t,this.authResolver=i,this.authzService=o,this.dialog=c,this.router=p,this.mfaHandlerService=M,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const a=location.pathname,n=location.search.substring(1);return"/api-callback"===a?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",n),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(a)?(sessionStorage.setItem("auth:redirect",a),sessionStorage.setItem("auth:queryParams",n),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,Q.z)(this.authzService.getPerunPrincipal()).then(a=>{if(null===a.user){const n=(0,y.kZ)();this.dialog.open(z,n)}else this.storeService.setPerunPrincipal(a),this.authResolver.init(a)})}simpleLoadPrincipal(){return(0,Q.z)(this.authzService.getPerunPrincipal()).then(a=>{this.storeService.setPerunPrincipal(a)})}checkRouteGuard(){const a=localStorage.getItem("routeAuthGuard");a&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([a]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const a=location.pathname,n=location.search.substring(1);sessionStorage.setItem("auth:redirect",a),sessionStorage.setItem("auth:queryParams",n);const t={};return n.split("&").forEach(i=>{const o=i.split("=");t[o[0]]=o[1]}),this.router.navigate(["service-access"],{queryParams:t,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const a=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",a),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(a){this.loginScreenShown=a}isPotentiallyValidPath(a){const n=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===a)return!0;for(const t of n)if(a.startsWith(t))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,g.h)(a=>"token_expires"===a.type&&"access_token"===a.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const a=sessionStorage.getItem("mfa_route");if(a)return this.router.navigate([a],{replaceUrl:!0});let n=sessionStorage.getItem("auth:redirect");(!n||"/login"===n)&&(n="/"),sessionStorage.removeItem("auth:redirect");const t=sessionStorage.getItem("auth:queryParams");let i=[];t&&(i=t.split("&"));const o={};return i.forEach(c=>{const p=c.split("=");o[p[0]]=p[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([n],{queryParams:o,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(A),_.LFG(U.Ct),_.LFG(E),_.LFG(w),_.LFG(e.Ct),_.LFG(S.uw),_.LFG(b.F0),_.LFG(O))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var Y=h(11481);let ue=(()=>{class f{constructor(a,n){this.matIconRegistry=a,this.domSanitizer=n,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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(a=>{this.matIconRegistry.addSvgIcon(a.name,this.domSanitizer.bypassSecurityTrustResourceUrl(a.url))})}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(ce.jv),_.LFG(Y.H7))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac}),f})();var Ee=h(80529),De=h(62843),Se=h(28746),Ge=h(18505),Ce=h(70262),qe=h(63900);let Pe=(()=>{class f{constructor(a){this.dialogRef=a}close(){this.dialogRef.close(!0)}}return f.\u0275fac=function(a){return new(a||f)(_.Y36(S.so))},f.\u0275cmp=_.Xpm({type:f,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(a,n){1&a&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2)(7,"div",3)(8,"button",4),_.NdJ("click",function(){return n.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA()()()),2&a&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[S.uh,S.xY,S.H8,he.lW,N.X$]}),f})(),we=(()=>{class f{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const a=this.handleNextError;return this.handleNextError=!0,a}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),j=(()=>{class f{constructor(a){this.translate=a,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(a,n=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===a.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===a.name?n:n+"\n"+a.name,a,a.message)}showRouteError(){const a=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),n=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(a,null,n)}showError(a,n,t,i,o){this.addNotification.emit({type:"error",error:n,description:t,title:a,actionText:void 0===i&&void 0!==t?this.getDefaultActionMessage():i,delay:this.defaultErrorDelayMs,icon:"error_outline",action:o,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(a,n,t,i){this.addNotification.emit({type:"success",description:n,title:a,actionText:void 0===t&&void 0!==n?this.getDefaultActionMessage():t,delay:this.defaultSuccessDelayMs,icon:"done",action:i,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(N.sK))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),I=(()=>{class f{constructor(a,n,t,i,o,c,p){this.authService=a,this.apiRequestConfiguration=n,this.notificator=t,this.store=i,this.dialog=o,this.initAuthService=c,this.mfaHandlerService=p}intercept(a,n){const t=this.store.getProperty("api_url");if(a.url.includes("i18n")&&(a=a.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==t&&this.isCallToPerunApi(a.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const i=(0,y.kZ)();i.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Pe,i),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,Se.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?a=a.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(a.url)&&(a=a.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(a,n)}handleRequest(a,n){const t=this.apiRequestConfiguration.shouldHandleError(),i="POST"===a.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(a.url);return n.handle(a).pipe((0,Ge.b)(o=>{o instanceof Ee.Zn&&i&&this.initAuthService.loadPrincipal()}),(0,Ce.K)(o=>{const c=o.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow().pipe((0,qe.w)(p=>p?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(a),n)):(0,De._)(()=>c)));{const p=this.formatErrors(o,a);return void 0===p?(0,De._)(()=>o):(t&&this.notificator.showRPCError(p),(0,De._)(()=>p))}}))}replaceAuthenticationToken(a){return a.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(a){return a.startsWith(this.store.getProperty("api_url"))}formatErrors(a,n){let t;console.error(a);const i=a.error;if(i.errorId&&(t=i),void 0!==t)return t.urlWithParams=n.urlWithParams,t.call=n.url,t.payload=n.body,t}isNotConsolidatorOrLinker(){const a=this.store.getProperty("application");return!("Linker"===a||"Consolidator"===a)}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(A),_.LFG(we),_.LFG(j),_.LFG(E),_.LFG(S.uw),_.LFG(H),_.LFG(O))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac}),f})(),F=(()=>{class f{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(a){this.newNotificationsCount++,this.notificationData.push(a)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),ge=(()=>{class f{constructor(a,n,t,i){this.http=a,this.notificator=n,this.authService=t,this.storeService=i}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let a=new Ee.WM;return a=a.set("Authorization",this.authService.getAuthorizationHeaderValue()),a}get(a,n=!0){const t=`${this.getApiUrl()}${a}`;return this.http.get(t,{headers:this.getHeaders()}).pipe((0,Ce.K)(i=>this.formatErrors(i,t,null,n)))}put(a,n={},t=!0){const i=`${this.getApiUrl()}${a}`,o=JSON.stringify(n);return this.http.put(i,o,{headers:this.getHeaders()}).pipe((0,Ce.K)(c=>this.formatErrors(c,i,o,t)))}post(a,n={},t=!0){const i=`${this.getApiUrl()}${a}`,o=JSON.stringify(n);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(i,o,{headers:c}).pipe((0,Ce.K)(p=>this.formatErrors(p,i,o,t)))}delete(a,n=!0){const t=`${this.getApiUrl()}${a}`;return this.http.delete(t,{headers:this.getHeaders()}).pipe((0,Ce.K)(i=>this.formatErrors(i,t,null,n)))}formatErrors(a,n,t,i){const o=a.error;return o.call=n,o.payload=t,i&&this.notificator.showRPCError(a.error),(0,De._)(o)}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(Ee.eN),_.LFG(j),_.LFG(A),_.LFG(E))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),G=(()=>{class f{constructor(a){this.router=a,this.lastState="forward",this.history=new Set,a.events.subscribe(n=>{n instanceof b.OD&&("popstate"===n.navigationTrigger?this.history.has(n.restoredState.navigationId)?(this.lastState="back",this.history.delete(n.restoredState.navigationId)):(this.lastState="forward",this.history.add(n.id)):(this.history.add(n.id),this.lastState="forward"))})}forceNavigate(a,n){if(null===a)return;let t="";a.forEach(i=>t+="/"+i),t.length>0&&(t=t.substring(1)),void 0===n&&(n={}),n.queryParams={redirectTo:t},this.router.navigate(["redirect"],n)}getLastState(){return this.lastState}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(b.F0))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),_e=(()=>{class f{isAllSelected(a,n,t=(()=>!0)){const i=n.paginator.pageSize??0,o=n.paginator.pageIndex??0,c=n.paginator.hasNextPage(),p=n.data.length===n.filteredData.length;this.numCanBeSelected=0,this.pageStart=o*i,this.pageEnd=this.pageStart+i,this.numSelected=a,this.dataLength=p?n.data.length:n.filteredData.length;const M=n.sort;return c||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),this.pageIterator=0,n.sortData(n.filteredData,M).forEach(Me=>{this.pageStart<=this.pageIterator&&this.pageIterator{M?Me(it)&&this.pageStart<=this.pageIterator&&this.pageIterator{class f{constructor(a,n,t,i){this.membersService=a,this.usersService=n,this.auditMessagesManagerService=t,this.registrarService=i}getMembers(a,n,t,i,o,c,p,M,Me,it){return this.membersService.getMembersPage({vo:a,attrNames:n,query:{pageSize:o,offset:i*o,order:t,sortColumn:c,statuses:p,searchString:M,groupId:Me,groupStatuses:it}})}getUsers(a,n,t,i,o,c,p,M,Me,it,Dt,Zt){return this.usersService.getUsersPage({attrNames:a,query:{offset:i*t,pageSize:i,order:n,sortColumn:o,searchString:c,withoutVo:p,facilityId:M,voId:Me,resourceId:it,serviceId:Dt,onlyAllowed:Zt}})}getAuditMessages(a,n,t){return this.auditMessagesManagerService.getMessagesPage({query:{offset:t*n,pageSize:t,order:a}})}getApplications(a,n,t,i,o,c,p,M,Me,it,Dt,Zt,Et){return this.registrarService.getApplicationsPage({vo:Dt,query:{pageSize:a,offset:n*a,order:t,sortColumn:i,searchString:c,includeGroupApplications:o,getDetails:Et,states:p,dateFrom:M,dateTo:Me,userId:it,groupId:Zt}})}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(e.uq),_.LFG(e.Fv),_.LFG(e.jw),_.LFG(e.tk))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var et=h(61135),Xe=h(39646),vt=h(4128);class rt{constructor(l,a){this.dynamicPaginatingService=l,this.authzService=a,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new et.X([]),this.loadingSubject=new et.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(l,a,n,t,i,o,c,p,M,Me){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const it=this.latestQueryTime;this.dynamicPaginatingService.getMembers(l,a,n,t,i,o,c,p,M,Me).pipe((0,Ce.K)(()=>(0,Xe.of)([])),(0,Se.x)(()=>this.loadingSubject.next(!1))).subscribe(Dt=>{if(this.latestQueryTime<=it){const Zt=Dt.data;null!==Zt&&0!==Zt.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:l},Zt[0]])),this.allObjectCount=Dt.totalCount,this.dataSubject.next(Zt)}})}getAllMembers(l,a,n,t,i,o,c,p,M){return new ne.y(Me=>{const it=[];for(let Dt=0;Dt{const Zt=[].concat(...Dt.map(Et=>Et.data));Me.next(Zt),Me.complete()},error:Dt=>Me.error(Dt)})})}loadUsers(l,a,n,t,i,o,c,p,M,Me,it,Dt){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Zt=this.latestQueryTime;this.dynamicPaginatingService.getUsers(l,t,n,a,i,o,c,p,M,Me,it,Dt).pipe((0,Ce.K)(()=>(0,Xe.of)([])),(0,Se.x)(()=>this.loadingSubject.next(!1))).subscribe(Et=>{if(this.latestQueryTime<=Zt){const pt=Et.data;this.allObjectCount=Et.totalCount,this.dataSubject.next(pt)}})}getAllUsers(l,a,n,t,i,o,c,p,M,Me,it){return new ne.y(Dt=>{const Zt=[];for(let Et=0;Et{const pt=[].concat(...Et.map(je=>je.data));Dt.next(pt),Dt.complete()},error:Et=>Dt.error(Et)})})}loadAuditMessages(l,a,n){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const t=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(n,a,l).pipe((0,Ce.K)(()=>(0,Xe.of)([])),(0,Se.x)(()=>this.loadingSubject.next(!1))).subscribe(i=>{if(this.latestQueryTime<=t){const o=i.data;this.allObjectCount=i.totalCount,this.dataSubject.next(o)}})}getAllAuditMessages(l,a){return new ne.y(n=>{const t=[];for(let i=0;i{const o=[].concat(...i.map(c=>c.data));n.next(o),n.complete()},error:i=>n.error(i)})})}loadApplications(l,a,n,t,i,o,c,p,M,Me,it,Dt,Zt){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Et=this.latestQueryTime;this.dynamicPaginatingService.getApplications(l,a,n,t,o,i,c,p,M,Me,Dt,it,Zt??!1).pipe((0,Ce.K)(()=>(0,Xe.of)([])),(0,Se.x)(()=>this.loadingSubject.next(!1))).subscribe(pt=>{if(this.latestQueryTime<=Et){const je=pt.data;if(null!==je&&0!==je.length){const Oe=je;this.routeAuth=Oe[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[Oe[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[Oe[0].vo])}this.allObjectCount=pt.totalCount,this.dataSubject.next(je)}})}getAllApplications(l,a,n,t,i,o,c,p,M,Me,it,Dt){return new ne.y(Zt=>{const Et=[];for(let pt=0;pt{const je=[].concat(...pt.map(Oe=>Oe.data));Zt.next(je),Zt.complete()},error:pt=>Zt.error(pt)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let ht=(()=>{class f{constructor(a,n){this.route=a,this.store=n}getPreferredLanguage(a){const n=this.store.getProperty("supported_languages"),t=navigator.languages.map(c=>c.split("-")[0]),i=location.search.substring(1).split("&");let o=null;for(const c of i){const p=c.split("=");"lang"===p[0]&&(o=p[1])}return o&&n.includes(o)?o:a&&n.includes(a)?a:t&&n.includes(t[0])?t[0]:"en"}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(b.gz),_.LFG(E))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var W=h(15861);let le=(()=>{class f{generatePdf(a){var n=this;return(0,W.Z)(function*(){yield n.loadPdfMake(),n.pdfMake.createPdf(a).open()})()}loadPdfMake(){var a=this;return(0,W.Z)(function*(){if(!a.pdfMake){const n=yield h.e(641).then(h.t.bind(h,54641,23)),t=yield h.e(493).then(h.t.bind(h,58493,19));a.pdfMake=n.default,a.pdfMake.vfs=t.default.pdfMake.vfs}})()}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),ie=(()=>{class f{constructor(a){this.pdfService=a}static generateTableForUser(a){const n=a.name.replace(";"," ").split(";")[0];return"OK"!==a.status?this.generateErrorRowForUser(n,a.status):f.generateRowForUser(n,a.login,a.password)}static generateErrorRowForUser(a,n){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:a,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:n,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(a,n,t){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[f.generateNameCell(a),{},f.getPasswordLabelCell(),f.generatePasswordCell(t)],[f.getLoginLabelCell(),f.generateLoginCell(n),{},{}]]}}}static generateNameCell(a){return{text:a,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(a){return{text:a??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(a){return{text:a??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(a){var n=this;return(0,W.Z)(function*(){const t=[];for(const o of a)t.push(f.generateTableForUser(o));return n.pdfService.generatePdf({content:t})})()}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(le))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),ae=(()=>{class f{constructor(a){this.storeService=a}static getBrandContainingDomain(a,n){for(const t of a)if(t.newApps.admin===n||t.newApps.profile===n||t.newApps.pwdReset===n||t.newApps.consolidator===n||t.newApps.linker===n)return t;return a[0]}getUrlForOtherApplication(a,n){const i=window.location.href.split("/"),o=i[0]+"//"+i[2],c=f.getBrandContainingDomain(this.storeService.getAppsConfig().brands,o);let p;if(c.newApps[a])p=c.newApps[a],"pwdReset"===a&&(p+=`?login-namespace=${n}`);else switch(p=c.oldGuiDomain+"/fed",a){case"admin":p+="/gui/";break;case"profile":p+="/profile/";break;case"pwdReset":p+=`/pwd-reset/?login-namespace=${n}`}return p}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(E))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var Ze=h(98739);let Je=(()=>{class f extends Ze.ye{constructor(){super(...arguments),this.getRangeLabel=function(a,n,t){let i;return i=t<1e3?String(t):t<1e4?"1 000":t<1e5?"10 000":"100 000",`${a*n+1} \u2013 ${(a+1)*n} of ${i} +`}}}return f.\u0275fac=function(){let l;return function(n){return(l||(l=_.n5z(f)))(n||f)}}(),f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac}),f})(),ct=(()=>{class f{setEntity(a){this.entity=a}getEntity(){return this.entity}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var ze=h(64080);let oe=(()=>{class f{constructor(a,n,t,i,o){this.authResolver=a,this.attributesManager=n,this.notificator=t,this.apiRequest=i,this.router=o,this.routePolicies=new Map([["organizations",c=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[c])],["organizations-members",c=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[c])],["organizations-groups",c=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[c])],["organizations-resources",c=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[c])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[c])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[c])],["organizations-resources-preview",c=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[c])],["organizations-resources-tags",c=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[c])],["organizations-resources-states",c=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[c])],["organizations-applications",c=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[c])],["organizations-sponsoredMembers",c=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[c])],["organizations-serviceAccounts",c=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[c])],["organizations-attributes",c=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[c])],["organizations-statistics",c=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[c])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[c])],["organizations-settings",c=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[c])||this.authResolver.isManagerPagePrivileged(c)||this.authResolver.isThisVoAdminOrObserver(c.id)],["organizations-settings-expiration",c=>this.authResolver.isThisVoAdminOrObserver(c.id)],["organizations-settings-managers",c=>this.authResolver.isManagerPagePrivileged(c)],["organizations-settings-applicationForm",c=>this.authResolver.isThisVoAdminOrObserver(c.id)],["organizations-settings-notifications",c=>this.authResolver.isThisVoAdminOrObserver(c.id)],["organizations-settings-extsources",c=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[c])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",c=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[c])],["members-groups",c=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[c])],["members-applications",c=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[c])],["members-resources",c=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[c])],["members-attributes",c=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[c])],["groups",c=>this.authResolver.isAuthorized("getGroupById_int_policy",[c])],["groups-members",c=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[c])],["groups-subgroups",c=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[c])],["groups-resources",c=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[c])],["groups-applications",c=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[c])],["groups-attributes",c=>this.authResolver.isAuthorized("getGroupById_int_policy",[c])],["groups-statistics",c=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[c])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[c])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[c])],["groups-roles",c=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[c])],["groups-settings",c=>this.authResolver.isManagerPagePrivileged(c)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[c])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[c])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[c])],["groups-settings-managers",c=>this.authResolver.isManagerPagePrivileged(c)],["groups-settings-applicationForm",c=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[c])],["groups-settings-notifications",c=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[c])],["groups-settings-relations",c=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[c])],["groups-settings-extsources",c=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[c])],["groups-settings-expiration",c=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(c.id,ze.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",c=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[c])],["resources-groups",c=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[c])],["resources-services",c=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[c])],["resources-members",c=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[c])],["resources-tags",c=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[c])],["resources-attributes",c=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[c])],["resources-settings",c=>this.authResolver.isManagerPagePrivileged(c)],["resources-settings-managers",c=>this.authResolver.isManagerPagePrivileged(c)],["facilities",c=>this.authResolver.isAuthorized("getFacilityById_int_policy",[c])],["facilities-resources",c=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[c])],["facilities-allowed-users",c=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[c])],["facilities-allowed-groups",c=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[c])],["facilities-services-status",c=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[c])],["services-status",c=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[c])],["facilities-services-destinations",c=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[c])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",c=>this.authResolver.isAuthorized("getFacilityById_int_policy",[c])],["facilities-settings",c=>this.authResolver.isAuthorized("getOwners_Facility_policy",[c])||this.authResolver.isManagerPagePrivileged(c)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[c])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[c])],["facilities-settings-owners",c=>this.authResolver.isAuthorized("getOwners_Facility_policy",[c])],["facilities-settings-managers",c=>this.authResolver.isManagerPagePrivileged(c)],["facilities-settings-security-teams",c=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[c])],["facilities-settings-blacklist",c=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[c])]])}canNavigate(a,n){if(a.startsWith("admin")||a.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===a&&-1===n.id)return this.authResolver.canManageFacilities();const t=this.routePolicies.get(a);return!t||t(n)}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(w),_.LFG(e.H8),_.LFG(j),_.LFG(we),_.LFG(b.F0))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var V=h(54004),r=h(4707);let s=(()=>{class f{constructor(a,n){this.authService=a,this.attributesManager=n,this.roleWithObjects$=new r.t(1),this.authService.getAllRolesManagementRules().pipe((0,V.U)(t=>t.filter(i=>i.assignableToAttributes)),(0,qe.w)(t=>{const i=new Map;return t.map(o=>i.set(o.roleName,["None",...Object.keys(o.assignedObjects)])),(0,Xe.of)(new Map([...i.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return this.roleWithObjects$.pipe((0,qe.w)(a=>(0,Xe.of)(Array.from(a.keys()))))}getObjects(a){return this.roleWithObjects$.pipe((0,qe.w)(n=>(0,Xe.of)(n.get(a))))}filterNullInPolicy(){return function(a){return a.pipe((0,V.U)(n=>(n.forEach(t=>t.policies=t.policies.filter(i=>null!==i.role&&null!==i.object)),n)))}}updateAttributeAction(a,n,t,i){return void 0!==a&&a!==n?this.attributesManager.setAttributeActionCriticality(t,i,a):(0,Xe.of)(void 0)}addAttributeId(){return function(a){return a.pipe((0,V.U)(([n,t])=>(t.forEach(i=>i.attributeId=n),t)))}}}return f.\u0275fac=function(a){return new(a||f)(_.LFG(e.Ct),_.LFG(e.H8))},f.\u0275prov=_.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},64080:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>e});let e=(()=>{class d{}return d.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",d.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",d.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",d.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",d.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",d.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",d.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",d.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",d.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",d.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",d.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",d.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",d.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",d.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",d.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",d.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",d.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",d.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",d.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",d.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",d.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",d.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",d.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",d.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",d.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",d.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",d.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",d})()},9244:(We,pe,h)=>{"use strict";h.d(pe,{dN:()=>A,Je:()=>E,f7:()=>S.f7,l9:()=>U.l,sF:()=>S.sF,XI:()=>S.XI,Xd:()=>S.Xd,aC:()=>S.aC,fx:()=>S.fx,dv:()=>S.dv,i5:()=>S.i5,Sd:()=>S.Sd,pR:()=>S.pR,ys:()=>S.ys,O6:()=>S.O6,B2:()=>S.B2,mH:()=>S.mH,MX:()=>S.MX,oU:()=>S.oU,IL:()=>S.IL,Jc:()=>S.Jc,Xn:()=>S.Xn,kZ:()=>S.kZ,v$:()=>S.v$,x2:()=>S.x2,vL:()=>S.vL,j4:()=>S.j4,jh:()=>S.jh,bx:()=>S.bx,im:()=>S.im,zr:()=>S.zr,Hm:()=>S.Hm,Cz:()=>S.Cz,sG:()=>S.sG,g$:()=>S.g$,bD:()=>S.bD,lt:()=>S.lt,Oe:()=>S.Oe,hu:()=>S.hu,Gw:()=>S.Gw,O5:()=>S.O5,te:()=>S.te,kN:()=>S.kN,$0:()=>S.$0,OV:()=>S.OV});var e=h(98739),d=h(28255),_=h(97392),w=h(4859),g=h(89383),b=h(36895),y=h(94650);let E=(()=>{class N{}return N.\u0275fac=function(Q){return new(Q||N)},N.\u0275mod=y.oAB({type:N}),N.\u0275inj=y.cJS({imports:[e.TU,d.Tx,_.Ps,w.ot,g.aw,b.ez]}),N})();var S=h(17218),U=h(18750);class A{static passwordMatchValidator(z){const Q=z.get("passwordCtrl").value,ne=z.get("passwordAgainCtrl").value;return z.get("passwordAgainCtrl").setErrors(Q!==ne?{noPasswordMatch:!0}:null),null}static patternValidator(z){return Q=>{if(!Q.value)return null;let ne=0;for(const he of z)ne+=he.test(Q.value)?1:0;return ne>=3?null:{isWeak:!0}}}}},17218:(We,pe,h)=>{"use strict";h.d(pe,{$0:()=>A,B2:()=>E,Cz:()=>he,Gw:()=>et,Hm:()=>_e,IL:()=>Ce,Jc:()=>qe,MX:()=>Se,O5:()=>r,O6:()=>ae,OV:()=>De,Oe:()=>Te,Sd:()=>W,XI:()=>q,Xd:()=>Je,Xn:()=>ie,aC:()=>Ze,bD:()=>Q,bx:()=>V,dv:()=>G,f7:()=>y,fx:()=>ct,g$:()=>S,hu:()=>ne,i5:()=>F,im:()=>s,j4:()=>H,jh:()=>oe,kN:()=>U,kZ:()=>ge,lt:()=>N,mH:()=>ze,oU:()=>Ge,pR:()=>ht,sF:()=>Y,sG:()=>vt,te:()=>fe,v$:()=>Pe,vL:()=>O,x2:()=>Xe,ys:()=>ce,zr:()=>f});var e=h(15861),d=h(65412),_=h(36895),w=h(94327),b=h(64080);const y=[5,10,25,100],E=/^(([^<>+()[\]\\.,;:\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 S(l){let a="";return l?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a&&0===a.length&&null!==l.memberAttributes&&l.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(a=n.value)}),a}function U(l){let a="";return l&&l.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a}function A(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function N(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function Q(l){let a="";return null!==l.titleBefore&&(a+=l.titleBefore+" "),null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),null!==l.titleAfter&&(a+=l.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function ne(l){let a="";return null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function he(l){let a="";return l.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function fe(l){let a="";for(const n of l)"technical"===n.type&&(a+=n.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function ce(l,a){return ve.apply(this,arguments)}function ve(){return(ve=(0,e.Z)(function*(l,a){yield v(l),a()})).apply(this,arguments)}function v(l){return new Promise(a=>setTimeout(a,l))}function O(l){return JSON.parse(localStorage.getItem(l))||[]}function H(l){return JSON.parse(localStorage.getItem(l))||[]}function Y(l,a){if(null===localStorage.getItem(l)){const n=[];n.unshift(a.id),localStorage.setItem(l,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(l)),t=function Ee(l,a){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(a.id),n.length>5&&n.pop(),localStorage.setItem(l,JSON.stringify(n))}}function q(l,a){if(null===localStorage.getItem("recent")){let n;n="Group"===l.beanName?[{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}]:[{id:l.id,name:l.name,type:l.beanName,voId:l.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===l.beanName?{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}:{id:l.id,name:l.name,type:l.beanName,voId:l.voId};const i=function ue(l,a){for(let n=0;n0&&n.splice(i,1),0!==i&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function De(l){let a="";return l&&l.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function Se(l){return l.filter(a=>!a.namespace.includes("def:core"))}function Ge(l,a){const n=a.find(t=>t.id===l);return n?n.parentGroupId?Ge(n.parentGroupId,a).concat(n):[n]:[]}function Ce(l,a){for(const n of l)if(n.namespace+":"+n.friendlyName===a)return n;return null}function qe(l){return null!=l.attributes["urn:perun:member:attribute-def:def:mail"]?l.attributes["urn:perun:member:attribute-def:def:mail"]:null!=l.attributes["urn:perun:user:attribute-def:def:preferredMail"]?l.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Pe(l){return l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function we(l){if(l.includes("/CN=")){const a=l.split("/");for(const n of a)if(n.startsWith("CN="))return j(n.substring(3))}return l}(l.userExtSource.extSource.name):l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function I(l){switch(l){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 l}}(l.userExtSource.extSource.name):l.userExtSource.extSource.name}function j(l){return decodeURIComponent(l.replace(/\\x/g,"%"))}function F(l=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return l.forEach(n=>{a.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},a.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),a}function ge(){const l=new d.vA;return l.disableClose=!0,l.autoFocus=!1,l}function G(l){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of l)a.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return a}function _e(l){return"virt"===l.namespace.split(":")[4]}function Te(l,a){return"valid"!==l.toLowerCase()||a&&"valid"!==l.toLowerCase()?l:"ACTIVE"}function et(l){let a="";return l?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(a=n.value)}),0===a.length&&l?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function Xe(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function vt(l){return l&&"never"!==l.toLowerCase()?(0,_.p6)(l,"d.M.yyyy","en"):l}const rt=new Intl.Collator("cs",{numeric:!0});function ht(l,a,n){const t=a.active,i=a.direction;return t&&""!==i?l.sort((o,c)=>{const p=n(o,t),M=n(c,t);return rt.compare(p,M)*("asc"===i?1:-1)}):l}function W(l,a,n,t,i){a=a.toLowerCase();let o="";return n.forEach(c=>{o+=";"+t(l,c)}),i&&(o+=";"+t(l,"uuid")),o.toLowerCase().includes(a)}function ie(l,a,n){const t=[],i=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(o=>!i.includes(o)),l.forEach(o=>{const c={};a.forEach(p=>{c[p]=(n(o,p)??"").split('"').join("''").trim()}),t.push(c)}),t}function ae(l,a="csv",n="export"){if("csv"===a){const t=(M,Me)=>null===Me?"":Me,i=Object.keys(l[0]),o=l.map(M=>i.map(Me=>JSON.stringify(M[Me],t)).join(","));o.unshift(i.join(",").split(" ").join("_").split('"').join("''"));const c=o.join("\r\n"),p=new Blob([c],{type:"text/csv"});(0,w.saveAs)(p,`${n}.${a}`)}}function Ze(l,a){return l.name.toLowerCase()>a.name.toLowerCase()?1:l.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Je(l,a){return l.displayName.toLowerCase()>a.displayName.toLowerCase()?1:l.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function ct(l,a){let n,t;return l.user?(n=l.user.lastName?l.user.lastName:l.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(n=l.lastName?l.lastName:l.firstName??"",t=a.lastName?a.lastName:a.firstName??""),n>t?1:n===t?0:-1}function ze(l,a,n=[]){l.enable(),l.clearValidators(),l.clearAsyncValidators(),l.setValidators(a),l.setAsyncValidators(n),l.updateValueAndValidity()}function oe(l,a){return!!l&&l.some(n=>n.namespace+":"+n.friendlyName===a&&null!==n.value&&"true"===String(n.value))}function V(l){return oe(l.attributes,b.r.GROUP_SYNC_ENABLED)||oe(l.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED)}function r(l,a){const n=a.split("&");for(const t of n){const[i,o]=t.split("=");if(i.includes(l))return o}return""}function s(l){if("INDIRECT"===l.membershipType)return!0;const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!a&&!a.value}function f(l){if("INDIRECT"===l.membershipType)return"INDIRECT";const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(We,pe,h)=>{"use strict";h.d(pe,{l:()=>he});var e=h(94650),d=h(98739),_=h(17218),w=h(10036),g=h(36895),b=h(28255),y=h(97392),E=h(4859),S=h(89383);function U(ee,fe){if(1&ee){const ce=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(ce);const v=e.oxw();return e.KtG(v.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let A=(()=>{class ee{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(ce,ve){if(1&ce&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return ve.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,U,3,3,"button",8),e.qZA()()),2&ce){const v=e.MAs(5),O=e.MAs(10),H=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",v),e.xp6(5),e.Q6J("matMenuTriggerFor",O),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",H),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",ve.allowExportAll)}},dependencies:[b.VK,b.OP,b.p6,y.Hw,E.lW,g.O5,S.X$]}),ee})();const N=["topNav"];function z(ee,fe){if(1&ee){const ce=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(v){e.CHM(ce);const O=e.oxw();return e.KtG(O.exportDisplayedData.emit(v))})("exportAllData",function(v){e.CHM(ce);const O=e.oxw();return e.KtG(O.exportAllData.emit(v))}),e.qZA()}if(2&ee){const ce=e.oxw();e.Q6J("allowExportAll",ce.allowExportAll)}}function Q(ee,fe){if(1&ee){const ce=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(v){e.CHM(ce);const O=e.oxw();return e.KtG(O.exportDisplayedData.emit(v))})("exportAllData",function(v){e.CHM(ce);const O=e.oxw();return e.KtG(O.exportAllData.emit(v))}),e.qZA()}if(2&ee){const ce=e.oxw();e.Q6J("allowExportAll",ce.allowExportAll)}}const ne=["*"];let he=(()=>{class ee{constructor(ce){this.tableConfigService=ce,this.hideExport=!1,this.pageSizeOptions=_.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(ce){this.paginator=ce}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(ce){this.pageSize=ce.pageSize,this.tableConfigService.setTablePageSize(this.tableId,ce.pageSize)}pageChangedBottom(ce){this.paginator.pageSize=ce.pageSize,this.paginator.pageIndex=ce.pageIndex,this.paginator.page.emit(ce),this.pageSize=ce.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,ce.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(w.dB))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(ce,ve){if(1&ce&&(e.Gf(N,5),e.Gf(d.NW,7)),2&ce){let v;e.iGM(v=e.CRH())&&(ve.topNav=v.first),e.iGM(v=e.CRH())&&(ve.matPaginator=v.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:ne,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(ce,ve){1&ce&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(O){return ve.pageChangedTop(O)}),e.qZA(),e.YNc(4,z,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(O){return ve.pageChangedBottom(O)}),e.qZA(),e.YNc(9,Q,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&ce&&(e.xp6(3),e.Q6J("length",ve.dataLength)("pageSizeOptions",ve.pageSizeOptions)("pageSize",ve.pageSize),e.xp6(1),e.Q6J("ngIf",!ve.hideExport),e.xp6(4),e.Q6J("length",ve.paginator.length)("pageIndex",ve.paginator.pageIndex)("pageSizeOptions",ve.paginator.pageSizeOptions)("pageSize",ve.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!ve.hideExport))},dependencies:[d.NW,g.O5,A]}),ee})()},98380:(We,pe,h)=>{"use strict";h.d(pe,{w:()=>S});var e=h(94650),d=h(97392),_=h(36895);function w(U,A){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(U,A){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function b(U,A){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function y(U,A){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const E=["*"];let S=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:E,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(N,z){1&N&&(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,b,2,0,"mat-icon",1),e.YNc(4,y,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&N&&(e.ekj("warn-alert","warn"===z.alert_type)("error-alert","error"===z.alert_type)("success-alert","success"===z.alert_type)("info-alert","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===z.alert_type),e.xp6(1),e.Q6J("ngIf","error"===z.alert_type),e.xp6(1),e.Q6J("ngIf","success"===z.alert_type))},dependencies:[d.Hw,_.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),U})()},63189:(We,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(97392),d=h(36895),_=h(94650);let w=(()=>{class g{}return g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[e.Ps,d.ez]}),g})()},57882:(We,pe,h)=>{"use strict";h.d(pe,{C:()=>f});var e=h(36895),d=h(4859),_=h(73546),w=h(56709),g=h(65412),b=h(44850),y=h(37084),E=h(59549),S=h(94650),U=h(3238);let qe=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.uc,U.BQ,U.uc,U.BQ]}),l})();var we=h(97392),j=h(284),I=h(51572),F=h(86257),ge=h(30671),G=h(67376),_e=h(24006),Te=h(99602),et=h(23267),Xe=h(96338),vt=h(28255);let Ze=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.BQ,U.BQ]}),l})();var Je=h(96308),ct=h(98739),ze=h(10266),oe=h(84385),V=h(3848),r=h(90455),s=h(77331);let f=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[e.ez,_.QW,b.t,y.To,d.ot,qe,w.p9,we.Ps,ge.p0,g.Is,I.Cq,E.lN,j.c,G.Cl,_e.u5,_e.UX,F.T5,Te.FA,U.XK,et.SJ,Xe.ie,vt.Tx,Ze,Je.JX,ct.TU,ze.AV,oe.LD,U.si,ge.p0,r.rP,s.Hi,_.QW,b.t,y.To,d.ot,qe,w.p9,we.Ps,ge.p0,g.Is,I.Cq,E.lN,j.c,G.Cl,_e.u5,_e.UX,F.T5,Te.FA,U.XK,et.SJ,Xe.ie,vt.Tx,Ze,Je.JX,ct.TU,ze.AV,oe.LD,U.si,V.Nh,r.rP,s.Hi]}),l})()},71345:We=>{var w=.1,g="function"==typeof Float32Array;function b(Q,ne){return 1-3*ne+3*Q}function y(Q,ne){return 3*ne-6*Q}function E(Q){return 3*Q}function S(Q,ne,he){return((b(ne,he)*Q+y(ne,he))*Q+E(ne))*Q}function U(Q,ne,he){return 3*b(ne,he)*Q*Q+2*y(ne,he)*Q+E(ne)}function z(Q){return Q}We.exports=function(ne,he,ee,fe){if(!(0<=ne&&ne<=1&&0<=ee&&ee<=1))throw new Error("bezier x values must be in [0, 1] range");if(ne===he&&ee===fe)return z;for(var ce=g?new Float32Array(11):new Array(11),ve=0;ve<11;++ve)ce[ve]=S(ve*w,ne,ee);return function(H){return 0===H?0:1===H?1:S(function v(O){for(var H=0,Y=1;10!==Y&&ce[Y]<=O;++Y)H+=w;--Y;var Ee=H+(O-ce[Y])/(ce[Y+1]-ce[Y])*w,De=U(Ee,ne,ee);return De>=.001?function N(Q,ne,he,ee){for(var fe=0;fe<4;++fe){var ce=U(ne,he,ee);if(0===ce)return ne;ne-=(S(ne,he,ee)-Q)/ce}return ne}(O,Ee,ne,ee):0===De?Ee:function A(Q,ne,he,ee,fe){var ce,ve,v=0;do{(ce=S(ve=ne+(he-ne)/2,ee,fe)-Q)>0?he=ve:ne=ve}while(Math.abs(ce)>1e-7&&++v<10);return ve}(O,H,H+w,ne,ee)}(H),he,fe)}}},1302:function(We,pe,h){var e;!function(d,_){var w={};!function(d){"use strict";d.__esModule=!0,d.digestLength=32,d.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(z,Q,ne,he,ee){for(var fe,ce,ve,v,O,H,Y,q,ue,Ee,De,Se,Ge;ee>=64;){for(fe=Q[0],ce=Q[1],ve=Q[2],v=Q[3],O=Q[4],H=Q[5],Y=Q[6],q=Q[7],Ee=0;Ee<16;Ee++)z[Ee]=(255&ne[De=he+4*Ee])<<24|(255&ne[De+1])<<16|(255&ne[De+2])<<8|255&ne[De+3];for(Ee=16;Ee<64;Ee++)z[Ee]=((Se=((ue=z[Ee-2])>>>17|ue<<15)^(ue>>>19|ue<<13)^ue>>>10)+z[Ee-7]|0)+((Ge=((ue=z[Ee-15])>>>7|ue<<25)^(ue>>>18|ue<<14)^ue>>>3)+z[Ee-16]|0);for(Ee=0;Ee<64;Ee++)Se=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&H^~O&Y)|0)+(q+(_[Ee]+z[Ee]|0)|0)|0,Ge=((fe>>>2|fe<<30)^(fe>>>13|fe<<19)^(fe>>>22|fe<<10))+(fe&ce^fe&ve^ce&ve)|0,q=Y,Y=H,H=O,O=v+Se|0,v=ve,ve=ce,ce=fe,fe=Se+Ge|0;Q[0]+=fe,Q[1]+=ce,Q[2]+=ve,Q[3]+=v,Q[4]+=O,Q[5]+=H,Q[6]+=Y,Q[7]+=q,he+=64,ee-=64}return he}var g=function(){function z(){this.digestLength=d.digestLength,this.blockSize=d.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 z.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},z.prototype.clean=function(){for(var Q=0;Q0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=Q[he++],ne--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(he=w(this.temp,this.state,Q,he,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=Q[he++],ne--;return this},z.prototype.finish=function(Q){if(!this.finished){var ne=this.bytesHashed,he=this.bufferLength,ee=ne/536870912|0,fe=ne<<3,ce=ne%64<56?64:128;this.buffer[he]=128;for(var ve=he+1;ve>>24&255,this.buffer[ce-7]=ee>>>16&255,this.buffer[ce-6]=ee>>>8&255,this.buffer[ce-5]=ee>>>0&255,this.buffer[ce-4]=fe>>>24&255,this.buffer[ce-3]=fe>>>16&255,this.buffer[ce-2]=fe>>>8&255,this.buffer[ce-1]=fe>>>0&255,w(this.temp,this.state,this.buffer,0,ce),this.finished=!0}for(ve=0;ve<8;ve++)Q[4*ve+0]=this.state[ve]>>>24&255,Q[4*ve+1]=this.state[ve]>>>16&255,Q[4*ve+2]=this.state[ve]>>>8&255,Q[4*ve+3]=this.state[ve]>>>0&255;return this},z.prototype.digest=function(){var Q=new Uint8Array(this.digestLength);return this.finish(Q),Q},z.prototype._saveState=function(Q){for(var ne=0;nethis.blockSize)(new g).update(Q).finish(ne).clean();else for(var he=0;he1&&Q.update(z),ne&&Q.update(ne),Q.update(he),Q.finish(z),he[0]++}d.HMAC=b,d.hash=y,d.default=y,d.hmac=E;var U=new Uint8Array(d.digestLength);d.hkdf=function A(z,Q,ne,he){void 0===Q&&(Q=U),void 0===he&&(he=32);for(var ee=new Uint8Array([1]),fe=E(Q,z),ce=new b(fe),ve=new Uint8Array(ce.digestLength),v=ve.length,O=new Uint8Array(he),H=0;H>>24&255,ce[1]=Y>>>16&255,ce[2]=Y>>>8&255,ce[3]=Y>>>0&255,ee.reset(),ee.update(Q),ee.update(ce),ee.finish(v);for(var q=0;q=A.status}function b(U){try{U.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),U.dispatchEvent(A)}}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,E=y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=y.saveAs||("object"!=typeof window||window!==y?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(U,A,N){var z=y.URL||y.webkitURL,Q=document.createElement("a");Q.download=A=A||U.name||"download",Q.rel="noopener","string"==typeof U?(Q.href=U,Q.origin===location.origin?b(Q):g(Q.href)?w(U,A,N):b(Q,Q.target="_blank")):(Q.href=z.createObjectURL(U),setTimeout(function(){z.revokeObjectURL(Q.href)},4e4),setTimeout(function(){b(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(U,A,N){if(A=A||U.name||"download","string"!=typeof U)navigator.msSaveOrOpenBlob(function _(U,A){return typeof A>"u"?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(U.type)?new Blob(["\ufeff",U],{type:U.type}):U}(U,N),A);else if(g(U))w(U,A,N);else{var z=document.createElement("a");z.href=U,z.target="_blank",setTimeout(function(){b(z)})}}:function(U,A,N,z){if((z=z||open("","_blank"))&&(z.document.title=z.document.body.innerText="downloading..."),"string"==typeof U)return w(U,A,N);var Q="application/octet-stream"===U.type,ne=/constructor/i.test(y.HTMLElement)||y.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||Q&&ne||E)&&typeof FileReader<"u"){var ee=new FileReader;ee.onloadend=function(){var ve=ee.result;ve=he?ve:ve.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=ve:location=ve,z=null},ee.readAsDataURL(U)}else{var fe=y.URL||y.webkitURL,ce=fe.createObjectURL(U);z?z.location=ce:location.href=ce,z=null,setTimeout(function(){fe.revokeObjectURL(ce)},4e4)}});y.saveAs=S.saveAs=S,We.exports=S}.apply(pe,[]))&&(We.exports=d)},61135:(We,pe,h)=>{"use strict";h.d(pe,{X:()=>d});var e=h(77579);class d extends e.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const g=super._subscribe(w);return!g.closed&&w.next(this._value),g}getValue(){const{hasError:w,thrownError:g,_value:b}=this;if(w)throw g;return this._throwIfClosed(),b}next(w){super.next(this._value=w)}}},69751:(We,pe,h)=>{"use strict";h.d(pe,{y:()=>E});var e=h(70930),d=h(50727),_=h(48822),w=h(89635),g=h(42416),b=h(30576),y=h(72806);let E=(()=>{class N{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const ne=new N;return ne.source=this,ne.operator=Q,ne}subscribe(Q,ne,he){const ee=function A(N){return N&&N instanceof e.Lv||function U(N){return N&&(0,b.m)(N.next)&&(0,b.m)(N.error)&&(0,b.m)(N.complete)}(N)&&(0,d.Nn)(N)}(Q)?Q:new e.Hp(Q,ne,he);return(0,y.x)(()=>{const{operator:fe,source:ce}=this;ee.add(fe?fe.call(ee,ce):ce?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(Q){try{return this._subscribe(Q)}catch(ne){Q.error(ne)}}forEach(Q,ne){return new(ne=S(ne))((he,ee)=>{const fe=new e.Hp({next:ce=>{try{Q(ce)}catch(ve){ee(ve),fe.unsubscribe()}},error:ee,complete:he});this.subscribe(fe)})}_subscribe(Q){var ne;return null===(ne=this.source)||void 0===ne?void 0:ne.subscribe(Q)}[_.L](){return this}pipe(...Q){return(0,w.U)(Q)(this)}toPromise(Q){return new(Q=S(Q))((ne,he)=>{let ee;this.subscribe(fe=>ee=fe,fe=>he(fe),()=>ne(ee))})}}return N.create=z=>new N(z),N})();function S(N){var z;return null!==(z=N??g.v.Promise)&&void 0!==z?z:Promise}},4707:(We,pe,h)=>{"use strict";h.d(pe,{t:()=>_});var e=h(77579),d=h(26063);class _ extends e.x{constructor(g=1/0,b=1/0,y=d.l){super(),this._bufferSize=g,this._windowTime=b,this._timestampProvider=y,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,g),this._windowTime=Math.max(1,b)}next(g){const{isStopped:b,_buffer:y,_infiniteTimeWindow:E,_timestampProvider:S,_windowTime:U}=this;b||(y.push(g),!E&&y.push(S.now()+U)),this._trimBuffer(),super.next(g)}_subscribe(g){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(g),{_infiniteTimeWindow:y,_buffer:E}=this,S=E.slice();for(let U=0;U{"use strict";h.d(pe,{x:()=>y});var e=h(69751),d=h(50727);const w=(0,h(83888).d)(S=>function(){S(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var g=h(38737),b=h(72806);let y=(()=>{class S extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){const N=new E(this,this);return N.operator=A,N}_throwIfClosed(){if(this.closed)throw new w}next(A){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const N of this.currentObservers)N.next(A)}})}error(A){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=A;const{observers:N}=this;for(;N.length;)N.shift().error(A)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:A}=this;for(;A.length;)A.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var A;return(null===(A=this.observers)||void 0===A?void 0:A.length)>0}_trySubscribe(A){return this._throwIfClosed(),super._trySubscribe(A)}_subscribe(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)}_innerSubscribe(A){const{hasError:N,isStopped:z,observers:Q}=this;return N||z?d.Lc:(this.currentObservers=null,Q.push(A),new d.w0(()=>{this.currentObservers=null,(0,g.P)(Q,A)}))}_checkFinalizedStatuses(A){const{hasError:N,thrownError:z,isStopped:Q}=this;N?A.error(z):Q&&A.complete()}asObservable(){const A=new e.y;return A.source=this,A}}return S.create=(U,A)=>new E(U,A),S})();class E extends y{constructor(U,A){super(),this.destination=U,this.source=A}next(U){var A,N;null===(N=null===(A=this.destination)||void 0===A?void 0:A.next)||void 0===N||N.call(A,U)}error(U){var A,N;null===(N=null===(A=this.destination)||void 0===A?void 0:A.error)||void 0===N||N.call(A,U)}complete(){var U,A;null===(A=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===A||A.call(U)}_subscribe(U){var A,N;return null!==(N=null===(A=this.source)||void 0===A?void 0:A.subscribe(U))&&void 0!==N?N:d.Lc}}},70930:(We,pe,h)=>{"use strict";h.d(pe,{Hp:()=>he,Lv:()=>N});var e=h(30576),d=h(50727),_=h(42416),w=h(87849),g=h(25032);const b=S("C",void 0,void 0);function S(v,O,H){return{kind:v,value:O,error:H}}var U=h(43410),A=h(72806);class N extends d.w0{constructor(O){super(),this.isStopped=!1,O?(this.destination=O,(0,d.Nn)(O)&&O.add(this)):this.destination=ve}static create(O,H,Y){return new he(O,H,Y)}next(O){this.isStopped?ce(function E(v){return S("N",v,void 0)}(O),this):this._next(O)}error(O){this.isStopped?ce(function y(v){return S("E",void 0,v)}(O),this):(this.isStopped=!0,this._error(O))}complete(){this.isStopped?ce(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(O){this.destination.next(O)}_error(O){try{this.destination.error(O)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const z=Function.prototype.bind;function Q(v,O){return z.call(v,O)}class ne{constructor(O){this.partialObserver=O}next(O){const{partialObserver:H}=this;if(H.next)try{H.next(O)}catch(Y){ee(Y)}}error(O){const{partialObserver:H}=this;if(H.error)try{H.error(O)}catch(Y){ee(Y)}else ee(O)}complete(){const{partialObserver:O}=this;if(O.complete)try{O.complete()}catch(H){ee(H)}}}class he extends N{constructor(O,H,Y){let q;if(super(),(0,e.m)(O)||!O)q={next:O??void 0,error:H??void 0,complete:Y??void 0};else{let ue;this&&_.v.useDeprecatedNextContext?(ue=Object.create(O),ue.unsubscribe=()=>this.unsubscribe(),q={next:O.next&&Q(O.next,ue),error:O.error&&Q(O.error,ue),complete:O.complete&&Q(O.complete,ue)}):q=O}this.destination=new ne(q)}}function ee(v){_.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(v):(0,w.h)(v)}function ce(v,O){const{onStoppedNotification:H}=_.v;H&&U.z.setTimeout(()=>H(v,O))}const ve={closed:!0,next:g.Z,error:function fe(v){throw v},complete:g.Z}},50727:(We,pe,h)=>{"use strict";h.d(pe,{Lc:()=>b,w0:()=>g,Nn:()=>y});var e=h(30576);const _=(0,h(83888).d)(S=>function(A){S(this),this.message=A?`${A.length} errors occurred during unsubscription:\n${A.map((N,z)=>`${z+1}) ${N.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=A});var w=h(38737);class g{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(const Q of A)Q.remove(this);else A.remove(this);const{initialTeardown:N}=this;if((0,e.m)(N))try{N()}catch(Q){U=Q instanceof _?Q.errors:[Q]}const{_finalizers:z}=this;if(z){this._finalizers=null;for(const Q of z)try{E(Q)}catch(ne){U=U??[],ne instanceof _?U=[...U,...ne.errors]:U.push(ne)}}if(U)throw new _(U)}}add(U){var A;if(U&&U!==this)if(this.closed)E(U);else{if(U instanceof g){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(A=this._finalizers)&&void 0!==A?A:[]).push(U)}}_hasParent(U){const{_parentage:A}=this;return A===U||Array.isArray(A)&&A.includes(U)}_addParent(U){const{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(U),A):A?[A,U]:U}_removeParent(U){const{_parentage:A}=this;A===U?this._parentage=null:Array.isArray(A)&&(0,w.P)(A,U)}remove(U){const{_finalizers:A}=this;A&&(0,w.P)(A,U),U instanceof g&&U._removeParent(this)}}g.EMPTY=(()=>{const S=new g;return S.closed=!0,S})();const b=g.EMPTY;function y(S){return S instanceof g||S&&"closed"in S&&(0,e.m)(S.remove)&&(0,e.m)(S.add)&&(0,e.m)(S.unsubscribe)}function E(S){(0,e.m)(S)?S():S.unsubscribe()}},42416:(We,pe,h)=>{"use strict";h.d(pe,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>_});var e=h(86805),d=h(70930);function _(w,g){const b="object"==typeof g;return new Promise((y,E)=>{const S=new d.Hp({next:U=>{y(U),S.unsubscribe()},error:E,complete:()=>{b?y(g.defaultValue):E(new e.K)}});w.subscribe(S)})}},39841:(We,pe,h)=>{"use strict";h.d(pe,{a:()=>U});var e=h(69751),d=h(54742),_=h(32076),w=h(44671),g=h(83268),b=h(63269),y=h(31810),E=h(25403),S=h(39672);function U(...z){const Q=(0,b.yG)(z),ne=(0,b.jO)(z),{args:he,keys:ee}=(0,d.D)(z);if(0===he.length)return(0,_.D)([],Q);const fe=new e.y(function A(z,Q,ne=w.y){return he=>{N(Q,()=>{const{length:ee}=z,fe=new Array(ee);let ce=ee,ve=ee;for(let v=0;v{const O=(0,_.D)(z[v],Q);let H=!1;O.subscribe((0,E.x)(he,Y=>{fe[v]=Y,H||(H=!0,ve--),ve||he.next(ne(fe.slice()))},()=>{--ce||he.complete()}))},he)},he)}}(he,Q,ee?ce=>(0,y.n)(ee,ce):w.y));return ne?fe.pipe((0,g.Z)(ne)):fe}function N(z,Q,ne){z?(0,S.f)(ne,z,Q):Q()}},97272:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>g});var e=h(8189),_=h(63269),w=h(32076);function g(...b){return function d(){return(0,e.J)(1)}()((0,w.D)(b,(0,_.yG)(b)))}},49770:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>_});var e=h(69751),d=h(38421);function _(w){return new e.y(g=>{(0,d.Xf)(w()).subscribe(g)})}},60515:(We,pe,h)=>{"use strict";h.d(pe,{E:()=>d});const d=new(h(69751).y)(g=>g.complete())},4128:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>E});var e=h(69751),d=h(54742),_=h(38421),w=h(63269),g=h(25403),b=h(83268),y=h(31810);function E(...S){const U=(0,w.jO)(S),{args:A,keys:N}=(0,d.D)(S),z=new e.y(Q=>{const{length:ne}=A;if(!ne)return void Q.complete();const he=new Array(ne);let ee=ne,fe=ne;for(let ce=0;ce{ve||(ve=!0,fe--),he[ce]=v},()=>ee--,void 0,()=>{(!ee||!ve)&&(fe||Q.next(N?(0,y.n)(N,he):he),Q.complete())}))}});return U?z.pipe((0,b.Z)(U)):z}},32076:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>Y});var e=h(38421),d=h(39672),_=h(54482),w=h(25403);function g(q,ue=0){return(0,_.e)((Ee,De)=>{Ee.subscribe((0,w.x)(De,Se=>(0,d.f)(De,q,()=>De.next(Se),ue),()=>(0,d.f)(De,q,()=>De.complete(),ue),Se=>(0,d.f)(De,q,()=>De.error(Se),ue)))})}function b(q,ue=0){return(0,_.e)((Ee,De)=>{De.add(q.schedule(()=>Ee.subscribe(De),ue))})}var S=h(69751),A=h(2202),N=h(30576);function Q(q,ue){if(!q)throw new Error("Iterable cannot be null");return new S.y(Ee=>{(0,d.f)(Ee,ue,()=>{const De=q[Symbol.asyncIterator]();(0,d.f)(Ee,ue,()=>{De.next().then(Se=>{Se.done?Ee.complete():Ee.next(Se.value)})},0,!0)})})}var ne=h(93670),he=h(28239),ee=h(81144),fe=h(26495),ce=h(12206),ve=h(44532),v=h(53260);function Y(q,ue){return ue?function H(q,ue){if(null!=q){if((0,ne.c)(q))return function y(q,ue){return(0,e.Xf)(q).pipe(b(ue),g(ue))}(q,ue);if((0,ee.z)(q))return function U(q,ue){return new S.y(Ee=>{let De=0;return ue.schedule(function(){De===q.length?Ee.complete():(Ee.next(q[De++]),Ee.closed||this.schedule())})})}(q,ue);if((0,he.t)(q))return function E(q,ue){return(0,e.Xf)(q).pipe(b(ue),g(ue))}(q,ue);if((0,ce.D)(q))return Q(q,ue);if((0,fe.T)(q))return function z(q,ue){return new S.y(Ee=>{let De;return(0,d.f)(Ee,ue,()=>{De=q[A.h](),(0,d.f)(Ee,ue,()=>{let Se,Ge;try{({value:Se,done:Ge}=De.next())}catch(Ce){return void Ee.error(Ce)}Ge?Ee.complete():Ee.next(Se)},0,!0)}),()=>(0,N.m)(De?.return)&&De.return()})}(q,ue);if((0,v.L)(q))return function O(q,ue){return Q((0,v.Q)(q),ue)}(q,ue)}throw(0,ve.z)(q)}(q,ue):(0,e.Xf)(q)}},54968:(We,pe,h)=>{"use strict";h.d(pe,{R:()=>U});var e=h(38421),d=h(69751),_=h(86099),w=h(81144),g=h(30576),b=h(83268);const y=["addListener","removeListener"],E=["addEventListener","removeEventListener"],S=["on","off"];function U(ne,he,ee,fe){if((0,g.m)(ee)&&(fe=ee,ee=void 0),fe)return U(ne,he,ee).pipe((0,b.Z)(fe));const[ce,ve]=function Q(ne){return(0,g.m)(ne.addEventListener)&&(0,g.m)(ne.removeEventListener)}(ne)?E.map(v=>O=>ne[v](he,O,ee)):function N(ne){return(0,g.m)(ne.addListener)&&(0,g.m)(ne.removeListener)}(ne)?y.map(A(ne,he)):function z(ne){return(0,g.m)(ne.on)&&(0,g.m)(ne.off)}(ne)?S.map(A(ne,he)):[];if(!ce&&(0,w.z)(ne))return(0,_.z)(v=>U(v,he,ee))((0,e.Xf)(ne));if(!ce)throw new TypeError("Invalid event target");return new d.y(v=>{const O=(...H)=>v.next(1ve(O)})}function A(ne,he){return ee=>fe=>ne[ee](he,fe)}},38421:(We,pe,h)=>{"use strict";h.d(pe,{Xf:()=>z});var e=h(70655),d=h(81144),_=h(28239),w=h(69751),g=h(93670),b=h(12206),y=h(44532),E=h(26495),S=h(53260),U=h(30576),A=h(87849),N=h(48822);function z(v){if(v instanceof w.y)return v;if(null!=v){if((0,g.c)(v))return function Q(v){return new w.y(O=>{const H=v[N.L]();if((0,U.m)(H.subscribe))return H.subscribe(O);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,d.z)(v))return function ne(v){return new w.y(O=>{for(let H=0;H{v.then(H=>{O.closed||(O.next(H),O.complete())},H=>O.error(H)).then(null,A.h)})}(v);if((0,b.D)(v))return fe(v);if((0,E.T)(v))return function ee(v){return new w.y(O=>{for(const H of v)if(O.next(H),O.closed)return;O.complete()})}(v);if((0,S.L)(v))return function ce(v){return fe((0,S.Q)(v))}(v)}throw(0,y.z)(v)}function fe(v){return new w.y(O=>{(function ve(v,O){var H,Y,q,ue;return(0,e.mG)(this,void 0,void 0,function*(){try{for(H=(0,e.KL)(v);!(Y=yield H.next()).done;)if(O.next(Y.value),O.closed)return}catch(Ee){q={error:Ee}}finally{try{Y&&!Y.done&&(ue=H.return)&&(yield ue.call(H))}finally{if(q)throw q.error}}O.complete()})})(v,O).catch(H=>O.error(H))})}},17445:(We,pe,h)=>{"use strict";h.d(pe,{F:()=>_});var e=h(34986),d=h(82805);function _(w=0,g=e.z){return w<0&&(w=0),(0,d.H)(w,w,g)}},56451:(We,pe,h)=>{"use strict";h.d(pe,{T:()=>b});var e=h(8189),d=h(38421),_=h(60515),w=h(63269),g=h(32076);function b(...y){const E=(0,w.yG)(y),S=(0,w._6)(y,1/0),U=y;return U.length?1===U.length?(0,d.Xf)(U[0]):(0,e.J)(S)((0,g.D)(U,E)):_.E}},39646:(We,pe,h)=>{"use strict";h.d(pe,{of:()=>_});var e=h(63269),d=h(32076);function _(...w){const g=(0,e.yG)(w);return(0,d.D)(w,g)}},54355:(We,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(69751),d=h(38421),_=h(75797),w=h(25403);function g(...y){return 1===(y=(0,_.k)(y)).length?(0,d.Xf)(y[0]):new e.y(function b(y){return E=>{let S=[];for(let U=0;S&&!E.closed&&U{if(S){for(let N=0;N{"use strict";h.d(pe,{_:()=>_});var e=h(69751),d=h(30576);function _(w,g){const b=(0,d.m)(w)?w:()=>w,y=E=>E.error(b());return new e.y(g?E=>g.schedule(y,0,E):y)}},82805:(We,pe,h)=>{"use strict";h.d(pe,{H:()=>g});var e=h(69751),d=h(34986),_=h(93532),w=h(51165);function g(b=0,y,E=d.P){let S=-1;return null!=y&&((0,_.K)(y)?E=y:S=y),new e.y(U=>{let A=(0,w.q)(b)?+b-E.now():b;A<0&&(A=0);let N=0;return E.schedule(function(){U.closed||(U.next(N++),0<=S?this.schedule(void 0,S):U.complete())},A)})}},25403:(We,pe,h)=>{"use strict";h.d(pe,{x:()=>d});var e=h(70930);function d(w,g,b,y,E){return new _(w,g,b,y,E)}class _ extends e.Lv{constructor(g,b,y,E,S,U){super(g),this.onFinalize=S,this.shouldUnsubscribe=U,this._next=b?function(A){try{b(A)}catch(N){g.error(N)}}:super._next,this._error=E?function(A){try{E(A)}catch(N){g.error(N)}finally{this.unsubscribe()}}:super._error,this._complete=y?function(){try{y()}catch(A){g.error(A)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var g;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(g=this.onFinalize)||void 0===g||g.call(this))}}}},23601:(We,pe,h)=>{"use strict";h.d(pe,{e:()=>y});var e=h(34986),d=h(54482),_=h(38421),w=h(25403),b=h(82805);function y(E,S=e.z){return function g(E){return(0,d.e)((S,U)=>{let A=!1,N=null,z=null,Q=!1;const ne=()=>{if(z?.unsubscribe(),z=null,A){A=!1;const ee=N;N=null,U.next(ee)}Q&&U.complete()},he=()=>{z=null,Q&&U.complete()};S.subscribe((0,w.x)(U,ee=>{A=!0,N=ee,z||(0,_.Xf)(E(ee)).subscribe(z=(0,w.x)(U,ne,he))},()=>{Q=!0,(!A||!z||z.closed)&&U.complete()}))})}(()=>(0,b.H)(E,S))}},70262:(We,pe,h)=>{"use strict";h.d(pe,{K:()=>w});var e=h(38421),d=h(25403),_=h(54482);function w(g){return(0,_.e)((b,y)=>{let U,E=null,S=!1;E=b.subscribe((0,d.x)(y,void 0,void 0,A=>{U=(0,e.Xf)(g(A,w(g)(b))),E?(E.unsubscribe(),E=null,U.subscribe(y)):S=!0})),S&&(E.unsubscribe(),E=null,U.subscribe(y))})}},24351:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>_});var e=h(86099),d=h(30576);function _(w,g){return(0,d.m)(g)?(0,e.z)(w,g,1):(0,e.z)(w,1)}},78372:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>w});var e=h(34986),d=h(54482),_=h(25403);function w(g,b=e.z){return(0,d.e)((y,E)=>{let S=null,U=null,A=null;const N=()=>{if(S){S.unsubscribe(),S=null;const Q=U;U=null,E.next(Q)}};function z(){const Q=A+g,ne=b.now();if(ne{U=Q,A=b.now(),S||(S=b.schedule(z,g),E.add(S))},()=>{N(),E.complete()},void 0,()=>{U=S=null}))})}},46590:(We,pe,h)=>{"use strict";h.d(pe,{d:()=>_});var e=h(54482),d=h(25403);function _(w){return(0,e.e)((g,b)=>{let y=!1;g.subscribe((0,d.x)(b,E=>{y=!0,b.next(E)},()=>{y||b.next(w),b.complete()}))})}},91005:(We,pe,h)=>{"use strict";h.d(pe,{g:()=>N});var e=h(34986),d=h(97272),_=h(95698),w=h(54482),g=h(25403),b=h(25032),E=h(69718),S=h(86099);function U(z,Q){return Q?ne=>(0,d.z)(Q.pipe((0,_.q)(1),function y(){return(0,w.e)((z,Q)=>{z.subscribe((0,g.x)(Q,b.Z))})}()),ne.pipe(U(z))):(0,S.z)((ne,he)=>z(ne,he).pipe((0,_.q)(1),(0,E.h)(ne)))}var A=h(82805);function N(z,Q=e.z){const ne=(0,A.H)(z,Q);return U(()=>ne)}},71884:(We,pe,h)=>{"use strict";h.d(pe,{x:()=>w});var e=h(44671),d=h(54482),_=h(25403);function w(b,y=e.y){return b=b??g,(0,d.e)((E,S)=>{let U,A=!0;E.subscribe((0,_.x)(S,N=>{const z=y(N);(A||!b(U,z))&&(A=!1,U=z,S.next(N))}))})}function g(b,y){return b===y}},39300:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>_});var e=h(54482),d=h(25403);function _(w,g){return(0,e.e)((b,y)=>{let E=0;b.subscribe((0,d.x)(y,S=>w.call(g,S,E++)&&y.next(S)))})}},28746:(We,pe,h)=>{"use strict";h.d(pe,{x:()=>d});var e=h(54482);function d(_){return(0,e.e)((w,g)=>{try{w.subscribe(g)}finally{g.add(_)}})}},50590:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>y});var e=h(86805),d=h(39300),_=h(95698),w=h(46590),g=h(18068),b=h(44671);function y(E,S){const U=arguments.length>=2;return A=>A.pipe(E?(0,d.h)((N,z)=>E(N,z,A)):b.y,(0,_.q)(1),U?(0,w.d)(S):(0,g.T)(()=>new e.K))}},54004:(We,pe,h)=>{"use strict";h.d(pe,{U:()=>_});var e=h(54482),d=h(25403);function _(w,g){return(0,e.e)((b,y)=>{let E=0;b.subscribe((0,d.x)(y,S=>{y.next(w.call(g,S,E++))}))})}},69718:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>d});var e=h(54004);function d(_){return(0,e.U)(()=>_)}},8189:(We,pe,h)=>{"use strict";h.d(pe,{J:()=>_});var e=h(86099),d=h(44671);function _(w=1/0){return(0,e.z)(d.y,w)}},72733:(We,pe,h)=>{"use strict";h.d(pe,{p:()=>w});var e=h(38421),d=h(39672),_=h(25403);function w(g,b,y,E,S,U,A,N){const z=[];let Q=0,ne=0,he=!1;const ee=()=>{he&&!z.length&&!Q&&b.complete()},fe=ve=>Q{U&&b.next(ve),Q++;let v=!1;(0,e.Xf)(y(ve,ne++)).subscribe((0,_.x)(b,O=>{S?.(O),U?fe(O):b.next(O)},()=>{v=!0},void 0,()=>{if(v)try{for(Q--;z.length&&Qce(O)):ce(O)}ee()}catch(O){b.error(O)}}))};return g.subscribe((0,_.x)(b,fe,()=>{he=!0,ee()})),()=>{N?.()}}},86099:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>b});var e=h(54004),d=h(38421),_=h(54482),w=h(72733),g=h(30576);function b(y,E,S=1/0){return(0,g.m)(E)?b((U,A)=>(0,e.U)((N,z)=>E(U,N,A,z))((0,d.Xf)(y(U,A))),S):("number"==typeof E&&(S=E),(0,_.e)((U,A)=>(0,w.p)(U,A,y,S)))}},11520:(We,pe,h)=>{"use strict";h.d(pe,{G:()=>_});var e=h(54482),d=h(25403);function _(){return(0,e.e)((w,g)=>{let b,y=!1;w.subscribe((0,d.x)(g,E=>{const S=b;b=E,y&&g.next([S,E]),y=!0}))})}},57359:(We,pe,h)=>{"use strict";h.d(pe,{U:()=>d});var e=h(25403);function d(_,w,g,b,y){return(E,S)=>{let U=g,A=w,N=0;E.subscribe((0,e.x)(S,z=>{const Q=N++;A=U?_(A,z,Q):(U=!0,z),b&&S.next(A)},y&&(()=>{U&&S.next(A),S.complete()})))}}},13099:(We,pe,h)=>{"use strict";h.d(pe,{B:()=>g});var e=h(38421),d=h(77579),_=h(70930),w=h(54482);function g(y={}){const{connector:E=(()=>new d.x),resetOnError:S=!0,resetOnComplete:U=!0,resetOnRefCountZero:A=!0}=y;return N=>{let z,Q,ne,he=0,ee=!1,fe=!1;const ce=()=>{Q?.unsubscribe(),Q=void 0},ve=()=>{ce(),z=ne=void 0,ee=fe=!1},v=()=>{const O=z;ve(),O?.unsubscribe()};return(0,w.e)((O,H)=>{he++,!fe&&!ee&&ce();const Y=ne=ne??E();H.add(()=>{he--,0===he&&!fe&&!ee&&(Q=b(v,A))}),Y.subscribe(H),!z&&he>0&&(z=new _.Hp({next:q=>Y.next(q),error:q=>{fe=!0,ce(),Q=b(ve,S,q),Y.error(q)},complete:()=>{ee=!0,ce(),Q=b(ve,U),Y.complete()}}),(0,e.Xf)(O).subscribe(z))})(N)}}function b(y,E,...S){if(!0===E)return void y();if(!1===E)return;const U=new _.Hp({next:()=>{U.unsubscribe(),y()}});return E(...S).subscribe(U)}},34782:(We,pe,h)=>{"use strict";h.d(pe,{d:()=>_});var e=h(4707),d=h(13099);function _(w,g,b){let y,E=!1;return w&&"object"==typeof w?({bufferSize:y=1/0,windowTime:g=1/0,refCount:E=!1,scheduler:b}=w):y=w??1/0,(0,d.B)({connector:()=>new e.t(y,g,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E})}},35684:(We,pe,h)=>{"use strict";h.d(pe,{T:()=>d});var e=h(39300);function d(_){return(0,e.h)((w,g)=>_<=g)}},68675:(We,pe,h)=>{"use strict";h.d(pe,{O:()=>w});var e=h(97272),d=h(63269),_=h(54482);function w(...g){const b=(0,d.yG)(g);return(0,_.e)((y,E)=>{(b?(0,e.z)(g,y,b):(0,e.z)(g,y)).subscribe(E)})}},63900:(We,pe,h)=>{"use strict";h.d(pe,{w:()=>w});var e=h(38421),d=h(54482),_=h(25403);function w(g,b){return(0,d.e)((y,E)=>{let S=null,U=0,A=!1;const N=()=>A&&!S&&E.complete();y.subscribe((0,_.x)(E,z=>{S?.unsubscribe();let Q=0;const ne=U++;(0,e.Xf)(g(z,ne)).subscribe(S=(0,_.x)(E,he=>E.next(b?b(z,he,ne,Q++):he),()=>{S=null,N()}))},()=>{A=!0,N()}))})}},95698:(We,pe,h)=>{"use strict";h.d(pe,{q:()=>w});var e=h(60515),d=h(54482),_=h(25403);function w(g){return g<=0?()=>e.E:(0,d.e)((b,y)=>{let E=0;b.subscribe((0,_.x)(y,S=>{++E<=g&&(y.next(S),g<=E&&y.complete())}))})}},82722:(We,pe,h)=>{"use strict";h.d(pe,{R:()=>g});var e=h(54482),d=h(25403),_=h(38421),w=h(25032);function g(b){return(0,e.e)((y,E)=>{(0,_.Xf)(b).subscribe((0,d.x)(E,()=>E.complete(),w.Z)),!E.closed&&y.subscribe(E)})}},22529:(We,pe,h)=>{"use strict";h.d(pe,{o:()=>_});var e=h(54482),d=h(25403);function _(w,g=!1){return(0,e.e)((b,y)=>{let E=0;b.subscribe((0,d.x)(y,S=>{const U=w(S,E++);(U||g)&&y.next(S),!U&&y.complete()}))})}},18505:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>g});var e=h(30576),d=h(54482),_=h(25403),w=h(44671);function g(b,y,E){const S=(0,e.m)(b)||y||E?{next:b,error:y,complete:E}:b;return S?(0,d.e)((U,A)=>{var N;null===(N=S.subscribe)||void 0===N||N.call(S);let z=!0;U.subscribe((0,_.x)(A,Q=>{var ne;null===(ne=S.next)||void 0===ne||ne.call(S,Q),A.next(Q)},()=>{var Q;z=!1,null===(Q=S.complete)||void 0===Q||Q.call(S),A.complete()},Q=>{var ne;z=!1,null===(ne=S.error)||void 0===ne||ne.call(S,Q),A.error(Q)},()=>{var Q,ne;z&&(null===(Q=S.unsubscribe)||void 0===Q||Q.call(S)),null===(ne=S.finalize)||void 0===ne||ne.call(S)}))}):w.y}},18068:(We,pe,h)=>{"use strict";h.d(pe,{T:()=>w});var e=h(86805),d=h(54482),_=h(25403);function w(b=g){return(0,d.e)((y,E)=>{let S=!1;y.subscribe((0,_.x)(E,U=>{S=!0,E.next(U)},()=>S?E.complete():E.error(b())))})}function g(){return new e.K}},17414:(We,pe,h)=>{"use strict";h.d(pe,{V:()=>S});var e=h(34986),d=h(51165),_=h(54482),w=h(38421),g=h(83888),b=h(25403),y=h(39672);const E=(0,g.d)(A=>function(z=null){A(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=z});function S(A,N){const{first:z,each:Q,with:ne=U,scheduler:he=N??e.z,meta:ee=null}=(0,d.q)(A)?{first:A}:"number"==typeof A?{each:A}:A;if(null==z&&null==Q)throw new TypeError("No timeout provided.");return(0,_.e)((fe,ce)=>{let ve,v,O=null,H=0;const Y=q=>{v=(0,y.f)(ce,he,()=>{try{ve.unsubscribe(),(0,w.Xf)(ne({meta:ee,lastValue:O,seen:H})).subscribe(ce)}catch(ue){ce.error(ue)}},q)};ve=fe.subscribe((0,b.x)(ce,q=>{v?.unsubscribe(),H++,ce.next(O=q),Q>0&&Y(Q)},void 0,void 0,()=>{v?.closed||v?.unsubscribe(),O=null})),!H&&Y(null!=z?"number"==typeof z?z:+z-he.now():Q)})}function U(A){throw new E(A)}},84408:(We,pe,h)=>{"use strict";h.d(pe,{o:()=>g});var e=h(50727);class d extends e.w0{constructor(y,E){super()}schedule(y,E=0){return this}}const _={setInterval(b,y,...E){const{delegate:S}=_;return S?.setInterval?S.setInterval(b,y,...E):setInterval(b,y,...E)},clearInterval(b){const{delegate:y}=_;return(y?.clearInterval||clearInterval)(b)},delegate:void 0};var w=h(38737);class g extends d{constructor(y,E){super(y,E),this.scheduler=y,this.work=E,this.pending=!1}schedule(y,E=0){if(this.closed)return this;this.state=y;const S=this.id,U=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(U,S,E)),this.pending=!0,this.delay=E,this.id=this.id||this.requestAsyncId(U,this.id,E),this}requestAsyncId(y,E,S=0){return _.setInterval(y.flush.bind(y,this),S)}recycleAsyncId(y,E,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return E;_.clearInterval(E)}execute(y,E){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(y,E);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(y,E){let U,S=!1;try{this.work(y)}catch(A){S=!0,U=A||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:y,scheduler:E}=this,{actions:S}=E;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(S,this),null!=y&&(this.id=this.recycleAsyncId(E,y,null)),this.delay=null,super.unsubscribe()}}}},97565:(We,pe,h)=>{"use strict";h.d(pe,{v:()=>_});var e=h(26063);class d{constructor(g,b=d.now){this.schedulerActionCtor=g,this.now=b}schedule(g,b=0,y){return new this.schedulerActionCtor(this,g).schedule(y,b)}}d.now=e.l.now;class _ extends d{constructor(g,b=d.now){super(g,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(g){const{actions:b}=this;if(this._active)return void b.push(g);let y;this._active=!0;do{if(y=g.execute(g.state,g.delay))break}while(g=b.shift());if(this._active=!1,y){for(;g=b.shift();)g.unsubscribe();throw y}}}},66406:(We,pe,h)=>{"use strict";h.d(pe,{Z:()=>y});var e=h(84408),d=h(50727);const _={schedule(S){let U=requestAnimationFrame,A=cancelAnimationFrame;const{delegate:N}=_;N&&(U=N.requestAnimationFrame,A=N.cancelAnimationFrame);const z=U(Q=>{A=void 0,S(Q)});return new d.w0(()=>A?.(z))},requestAnimationFrame(...S){const{delegate:U}=_;return(U?.requestAnimationFrame||requestAnimationFrame)(...S)},cancelAnimationFrame(...S){const{delegate:U}=_;return(U?.cancelAnimationFrame||cancelAnimationFrame)(...S)},delegate:void 0};var g=h(97565);const y=new class b extends g.v{flush(U){this._active=!0;const A=this._scheduled;this._scheduled=void 0;const{actions:N}=this;let z;U=U||N.shift();do{if(z=U.execute(U.state,U.delay))break}while((U=N[0])&&U.id===A&&N.shift());if(this._active=!1,z){for(;(U=N[0])&&U.id===A&&N.shift();)U.unsubscribe();throw z}}}(class w extends e.o{constructor(U,A){super(U,A),this.scheduler=U,this.work=A}requestAsyncId(U,A,N=0){return null!==N&&N>0?super.requestAsyncId(U,A,N):(U.actions.push(this),U._scheduled||(U._scheduled=_.requestAnimationFrame(()=>U.flush(void 0))))}recycleAsyncId(U,A,N=0){if(null!=N&&N>0||null==N&&this.delay>0)return super.recycleAsyncId(U,A,N);U.actions.some(z=>z.id===A)||(_.cancelAnimationFrame(A),U._scheduled=void 0)}})},53101:(We,pe,h)=>{"use strict";h.d(pe,{E:()=>Q});var e=h(84408);let _,d=1;const w={};function g(he){return he in w&&(delete w[he],!0)}const b={setImmediate(he){const ee=d++;return w[ee]=!0,_||(_=Promise.resolve()),_.then(()=>g(ee)&&he()),ee},clearImmediate(he){g(he)}},{setImmediate:E,clearImmediate:S}=b,U={setImmediate(...he){const{delegate:ee}=U;return(ee?.setImmediate||E)(...he)},clearImmediate(he){const{delegate:ee}=U;return(ee?.clearImmediate||S)(he)},delegate:void 0};var N=h(97565);const Q=new class z extends N.v{flush(ee){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:ce}=this;let ve;ee=ee||ce.shift();do{if(ve=ee.execute(ee.state,ee.delay))break}while((ee=ce[0])&&ee.id===fe&&ce.shift());if(this._active=!1,ve){for(;(ee=ce[0])&&ee.id===fe&&ce.shift();)ee.unsubscribe();throw ve}}}(class A extends e.o{constructor(ee,fe){super(ee,fe),this.scheduler=ee,this.work=fe}requestAsyncId(ee,fe,ce=0){return null!==ce&&ce>0?super.requestAsyncId(ee,fe,ce):(ee.actions.push(this),ee._scheduled||(ee._scheduled=U.setImmediate(ee.flush.bind(ee,void 0))))}recycleAsyncId(ee,fe,ce=0){if(null!=ce&&ce>0||null==ce&&this.delay>0)return super.recycleAsyncId(ee,fe,ce);ee.actions.some(ve=>ve.id===fe)||(U.clearImmediate(fe),ee._scheduled=void 0)}})},34986:(We,pe,h)=>{"use strict";h.d(pe,{P:()=>w,z:()=>_});var e=h(84408);const _=new(h(97565).v)(e.o),w=_},26063:(We,pe,h)=>{"use strict";h.d(pe,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e={setTimeout(d,_,...w){const{delegate:g}=e;return g?.setTimeout?g.setTimeout(d,_,...w):setTimeout(d,_,...w)},clearTimeout(d){const{delegate:_}=e;return(_?.clearTimeout||clearTimeout)(d)},delegate:void 0}},2202:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>d});const d=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(We,pe,h)=>{"use strict";h.d(pe,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(We,pe,h)=>{"use strict";h.d(pe,{K:()=>d});const d=(0,h(83888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(We,pe,h)=>{"use strict";h.d(pe,{_6:()=>b,jO:()=>w,yG:()=>g});var e=h(30576),d=h(93532);function _(y){return y[y.length-1]}function w(y){return(0,e.m)(_(y))?y.pop():void 0}function g(y){return(0,d.K)(_(y))?y.pop():void 0}function b(y,E){return"number"==typeof _(y)?y.pop():E}},54742:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>g});const{isArray:e}=Array,{getPrototypeOf:d,prototype:_,keys:w}=Object;function g(y){if(1===y.length){const E=y[0];if(e(E))return{args:E,keys:null};if(function b(y){return y&&"object"==typeof y&&d(y)===_}(E)){const S=w(E);return{args:S.map(U=>E[U]),keys:S}}}return{args:y,keys:null}}},75797:(We,pe,h)=>{"use strict";h.d(pe,{k:()=>d});const{isArray:e}=Array;function d(_){return 1===_.length&&e(_[0])?_[0]:_}},38737:(We,pe,h)=>{"use strict";function e(d,_){if(d){const w=d.indexOf(_);0<=w&&d.splice(w,1)}}h.d(pe,{P:()=>e})},83888:(We,pe,h)=>{"use strict";function e(d){const w=d(g=>{Error.call(g),g.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}h.d(pe,{d:()=>e})},31810:(We,pe,h)=>{"use strict";function e(d,_){return d.reduce((w,g,b)=>(w[g]=_[b],w),{})}h.d(pe,{n:()=>e})},72806:(We,pe,h)=>{"use strict";h.d(pe,{O:()=>w,x:()=>_});var e=h(42416);let d=null;function _(g){if(e.v.useDeprecatedSynchronousErrorHandling){const b=!d;if(b&&(d={errorThrown:!1,error:null}),g(),b){const{errorThrown:y,error:E}=d;if(d=null,y)throw E}}else g()}function w(g){e.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=g)}},39672:(We,pe,h)=>{"use strict";function e(d,_,w,g=0,b=!1){const y=_.schedule(function(){w(),b?d.add(this.schedule(null,g)):this.unsubscribe()},g);if(d.add(y),!b)return y}h.d(pe,{f:()=>e})},44671:(We,pe,h)=>{"use strict";function e(d){return d}h.d(pe,{y:()=>e})},81144:(We,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e=d=>d&&"number"==typeof d.length&&"function"!=typeof d},12206:(We,pe,h)=>{"use strict";h.d(pe,{D:()=>d});var e=h(30576);function d(_){return Symbol.asyncIterator&&(0,e.m)(_?.[Symbol.asyncIterator])}},51165:(We,pe,h)=>{"use strict";function e(d){return d instanceof Date&&!isNaN(d)}h.d(pe,{q:()=>e})},30576:(We,pe,h)=>{"use strict";function e(d){return"function"==typeof d}h.d(pe,{m:()=>e})},93670:(We,pe,h)=>{"use strict";h.d(pe,{c:()=>_});var e=h(48822),d=h(30576);function _(w){return(0,d.m)(w[e.L])}},26495:(We,pe,h)=>{"use strict";h.d(pe,{T:()=>_});var e=h(2202),d=h(30576);function _(w){return(0,d.m)(w?.[e.h])}},45191:(We,pe,h)=>{"use strict";h.d(pe,{b:()=>_});var e=h(69751),d=h(30576);function _(w){return!!w&&(w instanceof e.y||(0,d.m)(w.lift)&&(0,d.m)(w.subscribe))}},28239:(We,pe,h)=>{"use strict";h.d(pe,{t:()=>d});var e=h(30576);function d(_){return(0,e.m)(_?.then)}},53260:(We,pe,h)=>{"use strict";h.d(pe,{L:()=>w,Q:()=>_});var e=h(70655),d=h(30576);function _(g){return(0,e.FC)(this,arguments,function*(){const y=g.getReader();try{for(;;){const{value:E,done:S}=yield(0,e.qq)(y.read());if(S)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(E)}}finally{y.releaseLock()}})}function w(g){return(0,d.m)(g?.getReader)}},93532:(We,pe,h)=>{"use strict";h.d(pe,{K:()=>d});var e=h(30576);function d(_){return _&&(0,e.m)(_.schedule)}},54482:(We,pe,h)=>{"use strict";h.d(pe,{A:()=>d,e:()=>_});var e=h(30576);function d(w){return(0,e.m)(w?.lift)}function _(w){return g=>{if(d(g))return g.lift(function(b){try{return w(b,this)}catch(y){this.error(y)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(We,pe,h)=>{"use strict";h.d(pe,{Z:()=>w});var e=h(54004);const{isArray:d}=Array;function w(g){return(0,e.U)(b=>function _(g,b){return d(b)?g(...b):g(b)}(g,b))}},25032:(We,pe,h)=>{"use strict";function e(){}h.d(pe,{Z:()=>e})},89635:(We,pe,h)=>{"use strict";h.d(pe,{U:()=>_,z:()=>d});var e=h(44671);function d(...w){return _(w)}function _(w){return 0===w.length?e.y:1===w.length?w[0]:function(b){return w.reduce((y,E)=>E(y),b)}}},87849:(We,pe,h)=>{"use strict";h.d(pe,{h:()=>_});var e=h(42416),d=h(43410);function _(w){d.z.setTimeout(()=>{const{onUnhandledError:g}=e.v;if(!g)throw w;g(w)})}},44532:(We,pe,h)=>{"use strict";function e(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}h.d(pe,{z:()=>e})},70655:(We,pe,h)=>{"use strict";function g(De,Se,Ge,Ce){var we,qe=arguments.length,Pe=qe<3?Se:null===Ce?Ce=Object.getOwnPropertyDescriptor(Se,Ge):Ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Pe=Reflect.decorate(De,Se,Ge,Ce);else for(var j=De.length-1;j>=0;j--)(we=De[j])&&(Pe=(qe<3?we(Pe):qe>3?we(Se,Ge,Pe):we(Se,Ge))||Pe);return qe>3&&Pe&&Object.defineProperty(Se,Ge,Pe),Pe}function E(De,Se,Ge,Ce){return new(Ge||(Ge=Promise))(function(Pe,we){function j(ge){try{F(Ce.next(ge))}catch(G){we(G)}}function I(ge){try{F(Ce.throw(ge))}catch(G){we(G)}}function F(ge){ge.done?Pe(ge.value):function qe(Pe){return Pe instanceof Ge?Pe:new Ge(function(we){we(Pe)})}(ge.value).then(j,I)}F((Ce=Ce.apply(De,Se||[])).next())})}function ee(De){return this instanceof ee?(this.v=De,this):new ee(De)}function fe(De,Se,Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var qe,Ce=Ge.apply(De,Se||[]),Pe=[];return qe={},we("next"),we("throw"),we("return"),qe[Symbol.asyncIterator]=function(){return this},qe;function we(_e){Ce[_e]&&(qe[_e]=function(Te){return new Promise(function(et,Xe){Pe.push([_e,Te,et,Xe])>1||j(_e,Te)})})}function j(_e,Te){try{!function I(_e){_e.value instanceof ee?Promise.resolve(_e.value.v).then(F,ge):G(Pe[0][2],_e)}(Ce[_e](Te))}catch(et){G(Pe[0][3],et)}}function F(_e){j("next",_e)}function ge(_e){j("throw",_e)}function G(_e,Te){_e(Te),Pe.shift(),Pe.length&&j(Pe[0][0],Pe[0][1])}}function ve(De){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ge,Se=De[Symbol.asyncIterator];return Se?Se.call(De):(De=function N(De){var Se="function"==typeof Symbol&&Symbol.iterator,Ge=Se&&De[Se],Ce=0;if(Ge)return Ge.call(De);if(De&&"number"==typeof De.length)return{next:function(){return De&&Ce>=De.length&&(De=void 0),{value:De&&De[Ce++],done:!De}}};throw new TypeError(Se?"Object is not iterable.":"Symbol.iterator is not defined.")}(De),Ge={},Ce("next"),Ce("throw"),Ce("return"),Ge[Symbol.asyncIterator]=function(){return this},Ge);function Ce(Pe){Ge[Pe]=De[Pe]&&function(we){return new Promise(function(j,I){!function qe(Pe,we,j,I){Promise.resolve(I).then(function(F){Pe({value:F,done:j})},we)}(j,I,(we=De[Pe](we)).done,we.value)})}}}h.d(pe,{FC:()=>fe,KL:()=>ve,gn:()=>g,mG:()=>E,qq:()=>ee})},37340:(We,pe,h)=>{"use strict";h.d(pe,{F4:()=>U,IO:()=>ne,LC:()=>d,SB:()=>S,X$:()=>w,ZE:()=>ce,ZN:()=>fe,_j:()=>e,eR:()=>A,jt:()=>g,k1:()=>ve,l3:()=>_,oB:()=>E,pV:()=>z,ru:()=>b,vP:()=>y});class e{}class d{}const _="*";function w(v,O){return{type:7,name:v,definitions:O,options:{}}}function g(v,O=null){return{type:4,styles:O,timings:v}}function b(v,O=null){return{type:3,steps:v,options:O}}function y(v,O=null){return{type:2,steps:v,options:O}}function E(v){return{type:6,styles:v,offset:null}}function S(v,O,H){return{type:0,name:v,styles:O,options:H}}function U(v){return{type:5,steps:v}}function A(v,O,H=null){return{type:1,expr:v,animation:O,options:H}}function z(v=null){return{type:9,options:v}}function ne(v,O,H=null){return{type:11,selector:v,animation:O,options:H}}function ee(v){Promise.resolve(null).then(v)}class fe{constructor(O=0,H=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=O+H}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(O=>O()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(O){this._position=this.totalTime?O*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(O){const H="start"==O?this._onStartFns:this._onDoneFns;H.forEach(Y=>Y()),H.length=0}}class ce{constructor(O){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=O;let H=0,Y=0,q=0;const ue=this.players.length;0==ue?ee(()=>this._onFinish()):this.players.forEach(Ee=>{Ee.onDone(()=>{++H==ue&&this._onFinish()}),Ee.onDestroy(()=>{++Y==ue&&this._onDestroy()}),Ee.onStart(()=>{++q==ue&&this._onStart()})}),this.totalTime=this.players.reduce((Ee,De)=>Math.max(Ee,De.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this.players.forEach(O=>O.init())}onStart(O){this._onStartFns.push(O)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(O=>O()),this._onStartFns=[])}onDone(O){this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(O=>O.play())}pause(){this.players.forEach(O=>O.pause())}restart(){this.players.forEach(O=>O.restart())}finish(){this._onFinish(),this.players.forEach(O=>O.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(O=>O.destroy()),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this.players.forEach(O=>O.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(O){const H=O*this.totalTime;this.players.forEach(Y=>{const q=Y.totalTime?Math.min(1,H/Y.totalTime):1;Y.setPosition(q)})}getPosition(){const O=this.players.reduce((H,Y)=>null===H||Y.totalTime>H.totalTime?Y:H,null);return null!=O?O.getPosition():0}beforeDestroy(){this.players.forEach(O=>{O.beforeDestroy&&O.beforeDestroy()})}triggerCallback(O){const H="start"==O?this._onStartFns:this._onDoneFns;H.forEach(Y=>Y()),H.length=0}}const ve="!"},12687:(We,pe,h)=>{"use strict";h.d(pe,{$s:()=>De,Em:()=>Pe,Kd:()=>c,X6:()=>V,ic:()=>j,kH:()=>Dt,mK:()=>ae,qV:()=>ie,qm:()=>je,rt:()=>Oe,s1:()=>qe,tE:()=>it,yG:()=>r});var e=h(36895),d=h(94650),_=h(83353),w=h(77579),g=h(50727),b=h(61135),y=h(39646),E=h(29521),S=h(18505),U=h(78372),A=h(39300),N=h(54004),z=h(95698),Q=h(35684),ne=h(71884),he=h(82722),ee=h(21281),fe=h(49643),ce=h(62289);function H(Qe,ye){return(Qe.getAttribute(ye)||"").match(/\S+/g)||[]}const q="cdk-describedby-message",ue="cdk-describedby-host";let Ee=0,De=(()=>{class Qe{constructor(Ie,$){this._platform=$,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ee++,this._document=Ie,this._id=(0,d.f3M)(d.AFp)+"-"+Ee++}describe(Ie,$,de){if(!this._canBeDescribed(Ie,$))return;const Ve=Se($,de);"string"!=typeof $?(Ge($,this._id),this._messageRegistry.set(Ve,{messageElement:$,referenceCount:0})):this._messageRegistry.has(Ve)||this._createMessageElement($,de),this._isElementDescribedByMessage(Ie,Ve)||this._addMessageReference(Ie,Ve)}removeDescription(Ie,$,de){var Ve;if(!$||!this._isElementNode(Ie))return;const $e=Se($,de);if(this._isElementDescribedByMessage(Ie,$e)&&this._removeMessageReference(Ie,$e),"string"==typeof $){const nt=this._messageRegistry.get($e);nt&&0===nt.referenceCount&&this._deleteMessageElement($e)}0===(null===(Ve=this._messagesContainer)||void 0===Ve?void 0:Ve.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Ie;const $=this._document.querySelectorAll(`[${ue}="${this._id}"]`);for(let de=0;de<$.length;de++)this._removeCdkDescribedByReferenceIds($[de]),$[de].removeAttribute(ue);null===(Ie=this._messagesContainer)||void 0===Ie||Ie.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(Ie,$){const de=this._document.createElement("div");Ge(de,this._id),de.textContent=Ie,$&&de.setAttribute("role",$),this._createMessagesContainer(),this._messagesContainer.appendChild(de),this._messageRegistry.set(Se(Ie,$),{messageElement:de,referenceCount:0})}_deleteMessageElement(Ie){var $,de;null===($=this._messageRegistry.get(Ie))||void 0===$||null===(de=$.messageElement)||void 0===de||de.remove(),this._messageRegistry.delete(Ie)}_createMessagesContainer(){if(this._messagesContainer)return;const Ie="cdk-describedby-message-container",$=this._document.querySelectorAll(`.${Ie}[platform="server"]`);for(let Ve=0;Ve<$.length;Ve++)$[Ve].remove();const de=this._document.createElement("div");de.style.visibility="hidden",de.classList.add(Ie),de.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&de.setAttribute("platform","server"),this._document.body.appendChild(de),this._messagesContainer=de}_removeCdkDescribedByReferenceIds(Ie){const $=H(Ie,"aria-describedby").filter(de=>0!=de.indexOf(q));Ie.setAttribute("aria-describedby",$.join(" "))}_addMessageReference(Ie,$){const de=this._messageRegistry.get($);(function v(Qe,ye,Ie){const $=H(Qe,ye);$.some(de=>de.trim()==Ie.trim())||($.push(Ie.trim()),Qe.setAttribute(ye,$.join(" ")))})(Ie,"aria-describedby",de.messageElement.id),Ie.setAttribute(ue,this._id),de.referenceCount++}_removeMessageReference(Ie,$){const de=this._messageRegistry.get($);de.referenceCount--,function O(Qe,ye,Ie){const de=H(Qe,ye).filter(Ve=>Ve!=Ie.trim());de.length?Qe.setAttribute(ye,de.join(" ")):Qe.removeAttribute(ye)}(Ie,"aria-describedby",de.messageElement.id),Ie.removeAttribute(ue)}_isElementDescribedByMessage(Ie,$){const de=H(Ie,"aria-describedby"),Ve=this._messageRegistry.get($),$e=Ve&&Ve.messageElement.id;return!!$e&&-1!=de.indexOf($e)}_canBeDescribed(Ie,$){if(!this._isElementNode(Ie))return!1;if($&&"object"==typeof $)return!0;const de=null==$?"":`${$}`.trim(),Ve=Ie.getAttribute("aria-label");return!(!de||Ve&&Ve.trim()===de)}_isElementNode(Ie){return Ie.nodeType===this._document.ELEMENT_NODE}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(e.K0),d.LFG(_.t4))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function Se(Qe,ye){return"string"==typeof Qe?`${ye||""}/${Qe}`:Qe}function Ge(Qe,ye){Qe.id||(Qe.id=`${q}-${ye}-${Ee++}`)}class Ce{constructor(ye){this._items=ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=g.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Ie=>Ie.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,ye instanceof d.n_E&&ye.changes.subscribe(Ie=>{if(this._activeItem){const de=Ie.toArray().indexOf(this._activeItem);de>-1&&de!==this._activeItemIndex&&(this._activeItemIndex=de)}})}skipPredicate(ye){return this._skipPredicateFn=ye,this}withWrap(ye=!0){return this._wrap=ye,this}withVerticalOrientation(ye=!0){return this._vertical=ye,this}withHorizontalOrientation(ye){return this._horizontal=ye,this}withAllowedModifierKeys(ye){return this._allowedModifierKeys=ye,this}withTypeAhead(ye=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(Ie=>this._pressedLetters.push(Ie)),(0,U.b)(ye),(0,A.h)(()=>this._pressedLetters.length>0),(0,N.U)(()=>this._pressedLetters.join(""))).subscribe(Ie=>{const $=this._getItemsArray();for(let de=1;de<$.length+1;de++){const Ve=(this._activeItemIndex+de)%$.length,$e=$[Ve];if(!this._skipPredicateFn($e)&&0===$e.getLabel().toUpperCase().trim().indexOf(Ie)){this.setActiveItem(Ve);break}}this._pressedLetters=[]}),this}withHomeAndEnd(ye=!0){return this._homeAndEnd=ye,this}setActiveItem(ye){const Ie=this._activeItem;this.updateActiveItem(ye),this._activeItem!==Ie&&this.change.next(this._activeItemIndex)}onKeydown(ye){const Ie=ye.keyCode,de=["altKey","ctrlKey","metaKey","shiftKey"].every(Ve=>!ye[Ve]||this._allowedModifierKeys.indexOf(Ve)>-1);switch(Ie){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&de){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&de){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&de){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&de){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&de){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&de){this.setLastItemActive();break}return;default:return void((de||(0,E.Vb)(ye,"shiftKey"))&&(ye.key&&1===ye.key.length?this._letterKeyStream.next(ye.key.toLocaleUpperCase()):(Ie>=E.A&&Ie<=E.Z||Ie>=E.xE&&Ie<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(Ie))))}this._pressedLetters=[],ye.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(ye){const Ie=this._getItemsArray(),$="number"==typeof ye?ye:Ie.indexOf(ye);this._activeItem=Ie[$]??null,this._activeItemIndex=$}_setActiveItemByDelta(ye){this._wrap?this._setActiveInWrapMode(ye):this._setActiveInDefaultMode(ye)}_setActiveInWrapMode(ye){const Ie=this._getItemsArray();for(let $=1;$<=Ie.length;$++){const de=(this._activeItemIndex+ye*$+Ie.length)%Ie.length;if(!this._skipPredicateFn(Ie[de]))return void this.setActiveItem(de)}}_setActiveInDefaultMode(ye){this._setActiveItemByIndex(this._activeItemIndex+ye,ye)}_setActiveItemByIndex(ye,Ie){const $=this._getItemsArray();if($[ye]){for(;this._skipPredicateFn($[ye]);)if(!$[ye+=Ie])return;this.setActiveItem(ye)}}_getItemsArray(){return this._items instanceof d.n_E?this._items.toArray():this._items}}class qe extends Ce{setActiveItem(ye){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ye),this.activeItem&&this.activeItem.setActiveStyles()}}class Pe extends Ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ye){return this._origin=ye,this}setActiveItem(ye){super.setActiveItem(ye),this.activeItem&&this.activeItem.focus(this._origin)}}let j=(()=>{class Qe{constructor(Ie){this._platform=Ie}isDisabled(Ie){return Ie.hasAttribute("disabled")}isVisible(Ie){return function F(Qe){return!!(Qe.offsetWidth||Qe.offsetHeight||"function"==typeof Qe.getClientRects&&Qe.getClientRects().length)}(Ie)&&"visible"===getComputedStyle(Ie).visibility}isTabbable(Ie){if(!this._platform.isBrowser)return!1;const $=function I(Qe){try{return Qe.frameElement}catch{return null}}(function W(Qe){return Qe.ownerDocument&&Qe.ownerDocument.defaultView||window}(Ie));if($&&(-1===vt($)||!this.isVisible($)))return!1;let de=Ie.nodeName.toLowerCase(),Ve=vt(Ie);return Ie.hasAttribute("contenteditable")?-1!==Ve:!("iframe"===de||"object"===de||this._platform.WEBKIT&&this._platform.IOS&&!function rt(Qe){let ye=Qe.nodeName.toLowerCase(),Ie="input"===ye&&Qe.type;return"text"===Ie||"password"===Ie||"select"===ye||"textarea"===ye}(Ie))&&("audio"===de?!!Ie.hasAttribute("controls")&&-1!==Ve:"video"===de?-1!==Ve&&(null!==Ve||this._platform.FIREFOX||Ie.hasAttribute("controls")):Ie.tabIndex>=0)}isFocusable(Ie,$){return function ht(Qe){return!function G(Qe){return function Te(Qe){return"input"==Qe.nodeName.toLowerCase()}(Qe)&&"hidden"==Qe.type}(Qe)&&(function ge(Qe){let ye=Qe.nodeName.toLowerCase();return"input"===ye||"select"===ye||"button"===ye||"textarea"===ye}(Qe)||function _e(Qe){return function et(Qe){return"a"==Qe.nodeName.toLowerCase()}(Qe)&&Qe.hasAttribute("href")}(Qe)||Qe.hasAttribute("contenteditable")||Xe(Qe))}(Ie)&&!this.isDisabled(Ie)&&($?.ignoreVisibility||this.isVisible(Ie))}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(_.t4))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function Xe(Qe){if(!Qe.hasAttribute("tabindex")||void 0===Qe.tabIndex)return!1;let ye=Qe.getAttribute("tabindex");return!(!ye||isNaN(parseInt(ye,10)))}function vt(Qe){if(!Xe(Qe))return null;const ye=parseInt(Qe.getAttribute("tabindex")||"",10);return isNaN(ye)?-1:ye}class le{constructor(ye,Ie,$,de,Ve=!1){this._element=ye,this._checker=Ie,this._ngZone=$,this._document=de,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ve||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ye){this._enabled=ye,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ye,this._startAnchor),this._toggleAnchorTabIndex(ye,this._endAnchor))}destroy(){const ye=this._startAnchor,Ie=this._endAnchor;ye&&(ye.removeEventListener("focus",this.startAnchorListener),ye.remove()),Ie&&(Ie.removeEventListener("focus",this.endAnchorListener),Ie.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(ye){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusInitialElement(ye)))})}focusFirstTabbableElementWhenReady(ye){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusFirstTabbableElement(ye)))})}focusLastTabbableElementWhenReady(ye){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusLastTabbableElement(ye)))})}_getRegionBoundary(ye){const Ie=this._element.querySelectorAll(`[cdk-focus-region-${ye}], [cdkFocusRegion${ye}], [cdk-focus-${ye}]`);return"start"==ye?Ie.length?Ie[0]:this._getFirstTabbableElement(this._element):Ie.length?Ie[Ie.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ye){const Ie=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ie){if(!this._checker.isFocusable(Ie)){const $=this._getFirstTabbableElement(Ie);return $?.focus(ye),!!$}return Ie.focus(ye),!0}return this.focusFirstTabbableElement(ye)}focusFirstTabbableElement(ye){const Ie=this._getRegionBoundary("start");return Ie&&Ie.focus(ye),!!Ie}focusLastTabbableElement(ye){const Ie=this._getRegionBoundary("end");return Ie&&Ie.focus(ye),!!Ie}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ye){if(this._checker.isFocusable(ye)&&this._checker.isTabbable(ye))return ye;const Ie=ye.children;for(let $=0;$=0;$--){const de=Ie[$].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ie[$]):null;if(de)return de}return null}_createAnchor(){const ye=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ye),ye.classList.add("cdk-visually-hidden"),ye.classList.add("cdk-focus-trap-anchor"),ye.setAttribute("aria-hidden","true"),ye}_toggleAnchorTabIndex(ye,Ie){ye?Ie.setAttribute("tabindex","0"):Ie.removeAttribute("tabindex")}toggleAnchors(ye){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ye,this._startAnchor),this._toggleAnchorTabIndex(ye,this._endAnchor))}_executeOnStable(ye){this._ngZone.isStable?ye():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(ye)}}let ie=(()=>{class Qe{constructor(Ie,$,de){this._checker=Ie,this._ngZone=$,this._document=de}create(Ie,$=!1){return new le(Ie,this._checker,this._ngZone,this._document,$)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(j),d.LFG(d.R0b),d.LFG(e.K0))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),ae=(()=>{class Qe{constructor(Ie,$,de){this._elementRef=Ie,this._focusTrapFactory=$,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Ie){this.focusTrap.enabled=(0,ee.Ig)(Ie)}get autoCapture(){return this._autoCapture}set autoCapture(Ie){this._autoCapture=(0,ee.Ig)(Ie)}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(Ie){const $=Ie.autoCapture;$&&!$.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.Y36(d.SBq),d.Y36(ie),d.Y36(e.K0))},Qe.\u0275dir=d.lG2({type:Qe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[d.TTD]}),Qe})();function V(Qe){return 0===Qe.buttons||0===Qe.offsetX&&0===Qe.offsetY}function r(Qe){const ye=Qe.touches&&Qe.touches[0]||Qe.changedTouches&&Qe.changedTouches[0];return!(!ye||-1!==ye.identifier||null!=ye.radiusX&&1!==ye.radiusX||null!=ye.radiusY&&1!==ye.radiusY)}const s=new d.OlP("cdk-input-modality-detector-options"),f={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},a=(0,_.i$)({passive:!0,capture:!0});let n=(()=>{class Qe{constructor(Ie,$,de,Ve){this._platform=Ie,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=$e=>{var nt,Le;null!==(nt=this._options)&&void 0!==nt&&null!==(Le=nt.ignoreKeys)&&void 0!==Le&&Le.some(st=>st===$e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)($e))},this._onMousedown=$e=>{Date.now()-this._lastTouchMs<650||(this._modality.next(V($e)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)($e))},this._onTouchstart=$e=>{r($e)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)($e))},this._options={...f,...Ve},this.modalityDetected=this._modality.pipe((0,Q.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ne.x)()),Ie.isBrowser&&$.runOutsideAngular(()=>{de.addEventListener("keydown",this._onKeydown,a),de.addEventListener("mousedown",this._onMousedown,a),de.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(_.t4),d.LFG(d.R0b),d.LFG(e.K0),d.LFG(s,8))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const t=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function i(){return null}}),o=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let c=(()=>{class Qe{constructor(Ie,$,de,Ve){this._ngZone=$,this._defaultOptions=Ve,this._document=de,this._liveElement=Ie||this._createLiveElement()}announce(Ie,...$){const de=this._defaultOptions;let Ve,$e;return 1===$.length&&"number"==typeof $[0]?$e=$[0]:[Ve,$e]=$,this.clear(),clearTimeout(this._previousTimeout),Ve||(Ve=de&&de.politeness?de.politeness:"polite"),null==$e&&de&&($e=de.duration),this._liveElement.setAttribute("aria-live",Ve),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ie,"number"==typeof $e&&(this._previousTimeout=setTimeout(()=>this.clear(),$e)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Ie,$;clearTimeout(this._previousTimeout),null===(Ie=this._liveElement)||void 0===Ie||Ie.remove(),this._liveElement=null,null===($=this._currentResolve)||void 0===$||$.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ie="cdk-live-announcer-element",$=this._document.getElementsByClassName(Ie),de=this._document.createElement("div");for(let Ve=0;Ve<$.length;Ve++)$[Ve].remove();return de.classList.add(Ie),de.classList.add("cdk-visually-hidden"),de.setAttribute("aria-atomic","true"),de.setAttribute("aria-live","polite"),this._document.body.appendChild(de),de}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(t,8),d.LFG(d.R0b),d.LFG(e.K0),d.LFG(o,8))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const M=new d.OlP("cdk-focus-monitor-default-options"),Me=(0,_.i$)({passive:!0,capture:!0});let it=(()=>{class Qe{constructor(Ie,$,de,Ve,$e){this._ngZone=Ie,this._platform=$,this._inputModalityDetector=de,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new w.x,this._rootNodeFocusAndBlurListener=nt=>{for(let st=(0,_.sA)(nt);st;st=st.parentElement)"focus"===nt.type?this._onFocus(nt,st):this._onBlur(nt,st)},this._document=Ve,this._detectionMode=$e?.detectionMode||0}monitor(Ie,$=!1){const de=(0,ee.fI)(Ie);if(!this._platform.isBrowser||1!==de.nodeType)return(0,y.of)(null);const Ve=(0,_.kV)(de)||this._getDocument(),$e=this._elementInfo.get(de);if($e)return $&&($e.checkChildren=!0),$e.subject;const nt={checkChildren:$,subject:new w.x,rootNode:Ve};return this._elementInfo.set(de,nt),this._registerGlobalListeners(nt),nt.subject}stopMonitoring(Ie){const $=(0,ee.fI)(Ie),de=this._elementInfo.get($);de&&(de.subject.complete(),this._setClasses($),this._elementInfo.delete($),this._removeGlobalListeners(de))}focusVia(Ie,$,de){const Ve=(0,ee.fI)(Ie);Ve===this._getDocument().activeElement?this._getClosestElementsInfo(Ve).forEach(([nt,Le])=>this._originChanged(nt,$,Le)):(this._setOrigin($),"function"==typeof Ve.focus&&Ve.focus(de))}ngOnDestroy(){this._elementInfo.forEach((Ie,$)=>this.stopMonitoring($))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ie){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ie)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ie&&this._isLastInteractionFromInputLabel(Ie)?"mouse":"program"}_shouldBeAttributedToTouch(Ie){return 1===this._detectionMode||!(null==Ie||!Ie.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Ie,$){Ie.classList.toggle("cdk-focused",!!$),Ie.classList.toggle("cdk-touch-focused","touch"===$),Ie.classList.toggle("cdk-keyboard-focused","keyboard"===$),Ie.classList.toggle("cdk-mouse-focused","mouse"===$),Ie.classList.toggle("cdk-program-focused","program"===$)}_setOrigin(Ie,$=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ie,this._originFromTouchInteraction="touch"===Ie&&$,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ie,$){const de=this._elementInfo.get($),Ve=(0,_.sA)(Ie);!de||!de.checkChildren&&$!==Ve||this._originChanged($,this._getFocusOrigin(Ve),de)}_onBlur(Ie,$){const de=this._elementInfo.get($);!de||de.checkChildren&&Ie.relatedTarget instanceof Node&&$.contains(Ie.relatedTarget)||(this._setClasses($),this._emitOrigin(de,null))}_emitOrigin(Ie,$){Ie.subject.observers.length&&this._ngZone.run(()=>Ie.subject.next($))}_registerGlobalListeners(Ie){if(!this._platform.isBrowser)return;const $=Ie.rootNode,de=this._rootNodeFocusListenerCount.get($)||0;de||this._ngZone.runOutsideAngular(()=>{$.addEventListener("focus",this._rootNodeFocusAndBlurListener,Me),$.addEventListener("blur",this._rootNodeFocusAndBlurListener,Me)}),this._rootNodeFocusListenerCount.set($,de+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,he.R)(this._stopInputModalityDetector)).subscribe(Ve=>{this._setOrigin(Ve,!0)}))}_removeGlobalListeners(Ie){const $=Ie.rootNode;if(this._rootNodeFocusListenerCount.has($)){const de=this._rootNodeFocusListenerCount.get($);de>1?this._rootNodeFocusListenerCount.set($,de-1):($.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Me),$.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Me),this._rootNodeFocusListenerCount.delete($))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ie,$,de){this._setClasses(Ie,$),this._emitOrigin(de,$),this._lastFocusOrigin=$}_getClosestElementsInfo(Ie){const $=[];return this._elementInfo.forEach((de,Ve)=>{(Ve===Ie||de.checkChildren&&Ve.contains(Ie))&&$.push([Ve,de])}),$}_isLastInteractionFromInputLabel(Ie){const{_mostRecentTarget:$,mostRecentModality:de}=this._inputModalityDetector;if("mouse"!==de||!$||$===Ie||"INPUT"!==Ie.nodeName&&"TEXTAREA"!==Ie.nodeName||Ie.disabled)return!1;const Ve=Ie.labels;if(Ve)for(let $e=0;$e{class Qe{constructor(Ie,$){this._elementRef=Ie,this._focusMonitor=$,this.cdkFocusChange=new d.vpe}ngAfterViewInit(){const Ie=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Ie,1===Ie.nodeType&&Ie.hasAttribute("cdkMonitorSubtreeFocus")).subscribe($=>this.cdkFocusChange.emit($))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.Y36(d.SBq),d.Y36(it))},Qe.\u0275dir=d.lG2({type:Qe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Qe})();const Zt="cdk-high-contrast-black-on-white",Et="cdk-high-contrast-white-on-black",pt="cdk-high-contrast-active";let je=(()=>{class Qe{constructor(Ie,$){this._platform=Ie,this._document=$,this._breakpointSubscription=(0,d.f3M)(ce.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ie=this._document.createElement("div");Ie.style.backgroundColor="rgb(1,2,3)",Ie.style.position="absolute",this._document.body.appendChild(Ie);const $=this._document.defaultView||window,de=$&&$.getComputedStyle?$.getComputedStyle(Ie):null,Ve=(de&&de.backgroundColor||"").replace(/ /g,"");switch(Ie.remove(),Ve){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ie=this._document.body.classList;Ie.remove(pt,Zt,Et),this._hasCheckedHighContrastMode=!0;const $=this.getHighContrastMode();1===$?Ie.add(pt,Zt):2===$&&Ie.add(pt,Et)}}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(_.t4),d.LFG(e.K0))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Oe=(()=>{class Qe{constructor(Ie){Ie._applyBodyHighContrastModeCssClasses()}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(d.LFG(je))},Qe.\u0275mod=d.oAB({type:Qe}),Qe.\u0275inj=d.cJS({imports:[fe.Q8]}),Qe})()},40445:(We,pe,h)=>{"use strict";h.d(pe,{Is:()=>y,vT:()=>S});var e=h(94650),d=h(36895);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(d.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let y=(()=>{class U{constructor(N){if(this.value="ltr",this.change=new e.vpe,N){const Q=N.documentElement?N.documentElement.dir:null;this.value=function b(U){var A;const N=U?.toLowerCase()||"";return"auto"===N&&typeof navigator<"u"&&null!==(A=navigator)&&void 0!==A&&A.language?g.test(navigator.language)?"rtl":"ltr":"rtl"===N?"rtl":"ltr"}((N.body?N.body.dir:null)||Q||"ltr")}}ngOnDestroy(){this.change.complete()}}return U.\u0275fac=function(N){return new(N||U)(e.LFG(_,8))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),S=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({}),U})()},64425:(We,pe,h)=>{"use strict";h.d(pe,{Iq:()=>y,TU:()=>w,i3:()=>b});var e=h(36895),d=h(94650);class _{constructor(S,U){this._document=U;const A=this._textarea=this._document.createElement("textarea"),N=A.style;N.position="fixed",N.top=N.opacity="0",N.left="-999em",A.setAttribute("aria-hidden","true"),A.value=S,A.readOnly=!0,this._document.body.appendChild(A)}copy(){const S=this._textarea;let U=!1;try{if(S){const A=this._document.activeElement;S.select(),S.setSelectionRange(0,S.value.length),U=this._document.execCommand("copy"),A&&A.focus()}}catch{}return U}destroy(){const S=this._textarea;S&&(S.remove(),this._textarea=void 0)}}let w=(()=>{class E{constructor(U){this._document=U}copy(U){const A=this.beginCopy(U),N=A.copy();return A.destroy(),N}beginCopy(U){return new _(U,this._document)}}return E.\u0275fac=function(U){return new(U||E)(d.LFG(e.K0))},E.\u0275prov=d.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const g=new d.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let b=(()=>{class E{constructor(U,A,N){this._clipboard=U,this._ngZone=A,this.text="",this.attempts=1,this.copied=new d.vpe,this._pending=new Set,N&&null!=N.attempts&&(this.attempts=N.attempts)}copy(U=this.attempts){if(U>1){let A=U;const N=this._clipboard.beginCopy(this.text);this._pending.add(N);const z=()=>{const Q=N.copy();Q||!--A||this._destroyed?(this._currentTimeout=null,this._pending.delete(N),N.destroy(),this.copied.emit(Q)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(z,1))};z()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(U=>U.destroy()),this._pending.clear(),this._destroyed=!0}}return E.\u0275fac=function(U){return new(U||E)(d.Y36(w),d.Y36(d.R0b),d.Y36(g,8))},E.\u0275dir=d.lG2({type:E,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(U,A){1&U&&d.NdJ("click",function(){return A.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),E})(),y=(()=>{class E{}return E.\u0275fac=function(U){return new(U||E)},E.\u0275mod=d.oAB({type:E}),E.\u0275inj=d.cJS({}),E})()},21281:(We,pe,h)=>{"use strict";h.d(pe,{Eq:()=>g,HM:()=>b,Ig:()=>d,du:()=>E,fI:()=>y,su:()=>_,t6:()=>w});var e=h(94650);function d(S){return null!=S&&"false"!=`${S}`}function _(S,U=0){return w(S)?Number(S):U}function w(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}function g(S){return Array.isArray(S)?S:[S]}function b(S){return null==S?"":"string"==typeof S?S:`${S}px`}function y(S){return S instanceof e.SBq?S.nativeElement:S}function E(S,U=/\s+/){const A=[];if(null!=S){const N=Array.isArray(S)?S:`${S}`.split(U);for(const z of N){const Q=`${z}`.trim();Q&&A.push(Q)}}return A}},95017:(We,pe,h)=>{"use strict";h.d(pe,{A8:()=>N,Ov:()=>U,P3:()=>y,Z9:()=>b,eX:()=>S,k:()=>z,o2:()=>g,yy:()=>E});var e=h(45191),d=h(39646),_=h(77579),w=h(94650);class g{}function b(Q){return Q&&"function"==typeof Q.connect}class y extends g{constructor(ne){super(),this._data=ne}connect(){return(0,e.b)(this._data)?this._data:(0,d.of)(this._data)}disconnect(){}}class E{applyChanges(ne,he,ee,fe,ce){ne.forEachOperation((ve,v,O)=>{let H,Y;if(null==ve.previousIndex){const ue=ee(ve,v,O);H=he.createEmbeddedView(ue.templateRef,ue.context,ue.index),Y=1}else null==O?(he.remove(v),Y=3):(H=he.get(v),he.move(H,O),Y=2);var q;ce&&ce({context:null===(q=H)||void 0===q?void 0:q.context,operation:Y,record:ve})})}detach(){}}class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ne,he,ee,fe,ce){ne.forEachOperation((ve,v,O)=>{let H,Y;var q;null==ve.previousIndex?(H=this._insertView(()=>ee(ve,v,O),O,he,fe(ve)),Y=H?1:0):null==O?(this._detachAndCacheView(v,he),Y=3):(H=this._moveView(v,O,he,fe(ve)),Y=2),ce&&ce({context:null===(q=H)||void 0===q?void 0:q.context,operation:Y,record:ve})})}detach(){for(const ne of this._viewCache)ne.destroy();this._viewCache=[]}_insertView(ne,he,ee,fe){const ce=this._insertViewFromCache(he,ee);if(ce)return void(ce.context.$implicit=fe);const ve=ne();return ee.createEmbeddedView(ve.templateRef,ve.context,ve.index)}_detachAndCacheView(ne,he){const ee=he.detach(ne);this._maybeCacheView(ee,he)}_moveView(ne,he,ee,fe){const ce=ee.get(ne);return ee.move(ce,he),ce.context.$implicit=fe,ce}_maybeCacheView(ne,he){if(this._viewCache.lengththis._markSelected(ce)):this._markSelected(he[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(ee=>this._markSelected(ee));const he=this._hasQueuedChanges();return this._emitChangeEvent(),he}deselect(...ne){this._verifyValueAssignment(ne),ne.forEach(ee=>this._unmarkSelected(ee));const he=this._hasQueuedChanges();return this._emitChangeEvent(),he}setSelection(...ne){this._verifyValueAssignment(ne);const he=this.selected,ee=new Set(ne);ne.forEach(ce=>this._markSelected(ce)),he.filter(ce=>!ee.has(ce)).forEach(ce=>this._unmarkSelected(ce));const fe=this._hasQueuedChanges();return this._emitChangeEvent(),fe}toggle(ne){return this.isSelected(ne)?this.deselect(ne):this.select(ne)}clear(ne=!0){this._unmarkAll();const he=this._hasQueuedChanges();return ne&&this._emitChangeEvent(),he}isSelected(ne){if(this.compareWith){for(const he of this._selection)if(this.compareWith(he,ne))return!0;return!1}return this._selection.has(ne)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ne){this._multiple&&this.selected&&this._selected.sort(ne)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ne){this.isSelected(ne)||(this._multiple||this._unmarkAll(),this.isSelected(ne)||this._selection.add(ne),this._emitChanges&&this._selectedToEmit.push(ne))}_unmarkSelected(ne){this.isSelected(ne)&&(this._selection.delete(ne),this._emitChanges&&this._deselectedToEmit.push(ne))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ne=>this._unmarkSelected(ne))}_verifyValueAssignment(ne){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let N=(()=>{class Q{constructor(){this._listeners=[]}notify(he,ee){for(let fe of this._listeners)fe(he,ee)}listen(he){return this._listeners.push(he),()=>{this._listeners=this._listeners.filter(ee=>he!==ee)}}ngOnDestroy(){this._listeners=[]}}return Q.\u0275fac=function(he){return new(he||Q)},Q.\u0275prov=w.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const z=new w.OlP("_ViewRepeater")},73555:(We,pe,h)=>{"use strict";h.d(pe,{Wj:()=>Me,Zt:()=>Qe,_t:()=>ye,bA:()=>W});var e=h(94650),d=h(36895),_=h(67376),w=h(83353),g=h(21281),b=h(12687),y=h(77579),E=h(50727),S=h(17445),U=h(66406),A=h(69751),N=h(56451),z=h(82722),Q=h(68675),ne=h(54004),he=h(95698),ee=h(18505),fe=h(63900),ce=h(40445);function ve(Ie,$,de){for(let Ve in $)if($.hasOwnProperty(Ve)){const $e=$[Ve];$e?Ie.setProperty(Ve,$e,null!=de&&de.has(Ve)?"important":""):Ie.removeProperty(Ve)}return Ie}function v(Ie,$){const de=$?"":"none";ve(Ie.style,{"touch-action":$?"":"none","-webkit-user-drag":$?"":"none","-webkit-tap-highlight-color":$?"":"transparent","user-select":de,"-ms-user-select":de,"-webkit-user-select":de,"-moz-user-select":de})}function O(Ie,$,de){ve(Ie.style,{position:$?"":"fixed",top:$?"":"0",opacity:$?"":"0",left:$?"":"-999em"},de)}function H(Ie,$){return $&&"none"!=$?Ie+" "+$:Ie}function Y(Ie){const $=Ie.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Ie)*$}function ue(Ie,$){return Ie.getPropertyValue($).split(",").map(Ve=>Ve.trim())}function Ee(Ie){const $=Ie.getBoundingClientRect();return{top:$.top,right:$.right,bottom:$.bottom,left:$.left,width:$.width,height:$.height,x:$.x,y:$.y}}function De(Ie,$,de){const{top:Ve,bottom:$e,left:nt,right:Le}=Ie;return de>=Ve&&de<=$e&&$>=nt&&$<=Le}function Se(Ie,$,de){Ie.top+=$,Ie.bottom=Ie.top+Ie.height,Ie.left+=de,Ie.right=Ie.left+Ie.width}function Ge(Ie,$,de,Ve){const{top:$e,right:nt,bottom:Le,left:st,width:Pt,height:Vt}=Ie,rn=Pt*$,Jt=Vt*$;return Ve>$e-Jt&&Vest-rn&&de{this.positions.set(de,{scrollPosition:{top:de.scrollTop,left:de.scrollLeft},clientRect:Ee(de)})})}handleScroll($){const de=(0,w.sA)($),Ve=this.positions.get(de);if(!Ve)return null;const $e=Ve.scrollPosition;let nt,Le;if(de===this._document){const Vt=this.getViewportScrollPosition();nt=Vt.top,Le=Vt.left}else nt=de.scrollTop,Le=de.scrollLeft;const st=$e.top-nt,Pt=$e.left-Le;return this.positions.forEach((Vt,rn)=>{Vt.clientRect&&de!==rn&&de.contains(rn)&&Se(Vt.clientRect,st,Pt)}),$e.top=nt,$e.left=Le,{top:st,left:Pt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qe(Ie){const $=Ie.cloneNode(!0),de=$.querySelectorAll("[id]"),Ve=Ie.nodeName.toLowerCase();$.removeAttribute("id");for(let $e=0;$e{if(this.beforeStarted.next(),this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&this._initializeDragSequence(Pt,st)}else this.disabled||this._initializeDragSequence(this._rootElement,st)},this._pointerMove=st=>{const Pt=this._getPointerPositionOnPage(st);if(!this._hasStartedDragging){if(Math.abs(Pt.x-this._pickupPositionOnPage.x)+Math.abs(Pt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const un=Date.now()>=this._dragStartTime+this._getDragStartDelay(st),Bt=this._dropContainer;if(!un)return void this._endDragSequence(st);(!Bt||!Bt.isDragging()&&!Bt.isReceiving())&&(st.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(st)))}return}st.preventDefault();const Vt=this._getConstrainedPointerPosition(Pt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Pt,this._updatePointerDirectionDelta(Vt),this._dropContainer)this._updateActiveDropContainer(Vt,Pt);else{const rn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Jt=this._activeTransform;Jt.x=Vt.x-rn.x+this._passiveTransform.x,Jt.y=Vt.y-rn.y+this._passiveTransform.y,this._applyRootElementTransform(Jt.x,Jt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Vt,event:st,distance:this._getDragDistance(Vt),delta:this._pointerDirectionDelta})})},this._pointerUp=st=>{this._endDragSequence(st)},this._nativeDragStart=st=>{if(this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&st.preventDefault()}else this.disabled||st.preventDefault()},this.withRootElement($).withParent(de.parentDragRef||null),this._parentPositions=new Ce(Ve),Le.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled($){const de=(0,g.Ig)($);de!==this._disabled&&(this._disabled=de,this._toggleNativeDragInteractions(),this._handles.forEach(Ve=>v(Ve,de)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles($){this._handles=$.map(Ve=>(0,g.fI)(Ve)),this._handles.forEach(Ve=>v(Ve,this.disabled)),this._toggleNativeDragInteractions();const de=new Set;return this._disabledHandles.forEach(Ve=>{this._handles.indexOf(Ve)>-1&&de.add(Ve)}),this._disabledHandles=de,this}withPreviewTemplate($){return this._previewTemplate=$,this}withPlaceholderTemplate($){return this._placeholderTemplate=$,this}withRootElement($){const de=(0,g.fI)($);return de!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{de.addEventListener("mousedown",this._pointerDown,ge),de.addEventListener("touchstart",this._pointerDown,F),de.addEventListener("dragstart",this._nativeDragStart,ge)}),this._initialTransform=void 0,this._rootElement=de),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement($){return this._boundaryElement=$?(0,g.fI)($):null,this._resizeSubscription.unsubscribe(),$&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent($){return this._parentDragRef=$,this}dispose(){var $,de;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(de=this._rootElement)||void 0===de||de.remove()),null===($=this._anchor)||void 0===$||$.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($){!this._disabledHandles.has($)&&this._handles.indexOf($)>-1&&(this._disabledHandles.add($),v($,!0))}enableHandle($){this._disabledHandles.has($)&&(this._disabledHandles.delete($),v($,this.disabled))}withDirection($){return this._direction=$,this}_withDropContainer($){this._dropContainer=$}getFreeDragPosition(){const $=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:$.x,y:$.y}}setFreeDragPosition($){return this._activeTransform={x:0,y:0},this._passiveTransform.x=$.x,this._passiveTransform.y=$.y,this._dropContainer||this._applyRootElementTransform($.x,$.y),this}withPreviewContainer($){return this._previewContainer=$,this}_sortFromLastPointerPosition(){const $=this._lastKnownPointerPosition;$&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition($),$)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var $,de;null===($=this._preview)||void 0===$||$.remove(),null===(de=this._previewRef)||void 0===de||de.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var $,de;null===($=this._placeholder)||void 0===$||$.remove(),null===(de=this._placeholderRef)||void 0===de||de.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence($){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:$}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts($),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const de=this._getPointerPositionOnPage($);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(de),dropPoint:de,event:$})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence($){vt($)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const de=this._dropContainer;if(de){const Ve=this._rootElement,$e=Ve.parentNode,nt=this._placeholder=this._createPlaceholderElement(),Le=this._anchor=this._anchor||this._document.createComment(""),st=this._getShadowRoot();$e.insertBefore(Le,Ve),this._initialTransform=Ve.style.transform||"",this._preview=this._createPreviewElement(),O(Ve,!1,_e),this._document.body.appendChild($e.replaceChild(nt,Ve)),this._getPreviewInsertionPoint($e,st).appendChild(this._preview),this.started.next({source:this,event:$}),de.start(),this._initialContainer=de,this._initialIndex=de.getItemIndex(this)}else this.started.next({source:this,event:$}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(de?de.getScrollableParents():[])}_initializeDragSequence($,de){this._parentDragRef&&de.stopPropagation();const Ve=this.isDragging(),$e=vt(de),nt=!$e&&0!==de.button,Le=this._rootElement,st=(0,w.sA)(de),Pt=!$e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Vt=$e?(0,b.yG)(de):(0,b.X6)(de);if(st&&st.draggable&&"mousedown"===de.type&&de.preventDefault(),Ve||nt||Pt||Vt)return;if(this._handles.length){const nn=Le.style;this._rootElementTapHighlight=nn.webkitTapHighlightColor||"",nn.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(nn=>this._updateOnScroll(nn)),this._boundaryElement&&(this._boundaryRect=Ee(this._boundaryElement));const rn=this._previewTemplate;this._pickupPositionInElement=rn&&rn.template&&!rn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,$,de);const Jt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(de);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Jt.x,y:Jt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,de)}_cleanupDragArtifacts($){O(this._rootElement,!0,_e),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const de=this._dropContainer,Ve=de.getItemIndex(this),$e=this._getPointerPositionOnPage($),nt=this._getDragDistance($e),Le=de._isOverContainer($e.x,$e.y);this.ended.next({source:this,distance:nt,dropPoint:$e,event:$}),this.dropped.next({item:this,currentIndex:Ve,previousIndex:this._initialIndex,container:de,previousContainer:this._initialContainer,isPointerOverContainer:Le,distance:nt,dropPoint:$e,event:$}),de.drop(this,Ve,this._initialIndex,this._initialContainer,Le,nt,$e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:$,y:de},{x:Ve,y:$e}){let nt=this._initialContainer._getSiblingContainerFromPosition(this,$,de);!nt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer($,de)&&(nt=this._initialContainer),nt&&nt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=nt,this._dropContainer.enter(this,$,de,nt===this._initialContainer&&nt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:nt,currentIndex:nt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Ve,$e),this._dropContainer._sortItem(this,$,de,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform($,de):this._applyPreviewTransform($-this._pickupPositionInElement.x,de-this._pickupPositionInElement.y))}_createPreviewElement(){const $=this._previewTemplate,de=this.previewClass,Ve=$?$.template:null;let $e;if(Ve&&$){const nt=$.matchSize?this._initialClientRect:null,Le=$.viewContainer.createEmbeddedView(Ve,$.context);Le.detectChanges(),$e=rt(Le,this._document),this._previewRef=Le,$.matchSize?ht($e,nt):$e.style.transform=et(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else $e=qe(this._rootElement),ht($e,this._initialClientRect),this._initialTransform&&($e.style.transform=this._initialTransform);return ve($e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_e),v($e,!1),$e.classList.add("cdk-drag-preview"),$e.setAttribute("dir",this._direction),de&&(Array.isArray(de)?de.forEach(nt=>$e.classList.add(nt)):$e.classList.add(de)),$e}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const $=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform($.left,$.top);const de=function q(Ie){const $=getComputedStyle(Ie),de=ue($,"transition-property"),Ve=de.find(st=>"transform"===st||"all"===st);if(!Ve)return 0;const $e=de.indexOf(Ve),nt=ue($,"transition-duration"),Le=ue($,"transition-delay");return Y(nt[$e])+Y(Le[$e])}(this._preview);return 0===de?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Ve=>{const $e=Le=>{var st;(!Le||(0,w.sA)(Le)===this._preview&&"transform"===Le.propertyName)&&(null===(st=this._preview)||void 0===st||st.removeEventListener("transitionend",$e),Ve(),clearTimeout(nt))},nt=setTimeout($e,1.5*de);this._preview.addEventListener("transitionend",$e)}))}_createPlaceholderElement(){const $=this._placeholderTemplate,de=$?$.template:null;let Ve;return de?(this._placeholderRef=$.viewContainer.createEmbeddedView(de,$.context),this._placeholderRef.detectChanges(),Ve=rt(this._placeholderRef,this._document)):Ve=qe(this._rootElement),Ve.style.pointerEvents="none",Ve.classList.add("cdk-drag-placeholder"),Ve}_getPointerPositionInElement($,de,Ve){const $e=de===this._rootElement?null:de,nt=$e?$e.getBoundingClientRect():$,Le=vt(Ve)?Ve.targetTouches[0]:Ve,st=this._getViewportScrollPosition();return{x:nt.left-$.left+(Le.pageX-nt.left-st.left),y:nt.top-$.top+(Le.pageY-nt.top-st.top)}}_getPointerPositionOnPage($){const de=this._getViewportScrollPosition(),Ve=vt($)?$.touches[0]||$.changedTouches[0]||{pageX:0,pageY:0}:$,$e=Ve.pageX-de.left,nt=Ve.pageY-de.top;if(this._ownerSVGElement){const Le=this._ownerSVGElement.getScreenCTM();if(Le){const st=this._ownerSVGElement.createSVGPoint();return st.x=$e,st.y=nt,st.matrixTransform(Le.inverse())}}return{x:$e,y:nt}}_getConstrainedPointerPosition($){const de=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Ve,y:$e}=this.constrainPosition?this.constrainPosition($,this,this._initialClientRect,this._pickupPositionInElement):$;if("x"===this.lockAxis||"x"===de?$e=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===de)&&(Ve=this._pickupPositionOnPage.x),this._boundaryRect){const{x:nt,y:Le}=this._pickupPositionInElement,st=this._boundaryRect,{width:Pt,height:Vt}=this._getPreviewRect(),rn=st.top+Le,Jt=st.bottom-(Vt-Le);Ve=Xe(Ve,st.left+nt,st.right-(Pt-nt)),$e=Xe($e,rn,Jt)}return{x:Ve,y:$e}}_updatePointerDirectionDelta($){const{x:de,y:Ve}=$,$e=this._pointerDirectionDelta,nt=this._pointerPositionAtLastDirectionChange,Le=Math.abs(de-nt.x),st=Math.abs(Ve-nt.y);return Le>this._config.pointerDirectionChangeThreshold&&($e.x=de>nt.x?1:-1,nt.x=de),st>this._config.pointerDirectionChangeThreshold&&($e.y=Ve>nt.y?1:-1,nt.y=Ve),$e}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const $=this._handles.length>0||!this.isDragging();$!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=$,v(this._rootElement,$))}_removeRootElementListeners($){$.removeEventListener("mousedown",this._pointerDown,ge),$.removeEventListener("touchstart",this._pointerDown,F),$.removeEventListener("dragstart",this._nativeDragStart,ge)}_applyRootElementTransform($,de){const Ve=et($,de),$e=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=$e.transform&&"none"!=$e.transform?$e.transform:""),$e.transform=H(Ve,this._initialTransform)}_applyPreviewTransform($,de){var Ve;const $e=null!==(Ve=this._previewTemplate)&&void 0!==Ve&&Ve.template?void 0:this._initialTransform,nt=et($,de);this._preview.style.transform=H(nt,$e)}_getDragDistance($){const de=this._pickupPositionOnPage;return de?{x:$.x-de.x,y:$.y-de.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:$,y:de}=this._passiveTransform;if(0===$&&0===de||this.isDragging()||!this._boundaryElement)return;const Ve=this._rootElement.getBoundingClientRect(),$e=this._boundaryElement.getBoundingClientRect();if(0===$e.width&&0===$e.height||0===Ve.width&&0===Ve.height)return;const nt=$e.left-Ve.left,Le=Ve.right-$e.right,st=$e.top-Ve.top,Pt=Ve.bottom-$e.bottom;$e.width>Ve.width?(nt>0&&($+=nt),Le>0&&($-=Le)):$=0,$e.height>Ve.height?(st>0&&(de+=st),Pt>0&&(de-=Pt)):de=0,($!==this._passiveTransform.x||de!==this._passiveTransform.y)&&this.setFreeDragPosition({y:de,x:$})}_getDragStartDelay($){const de=this.dragStartDelay;return"number"==typeof de?de:vt($)?de.touch:de?de.mouse:0}_updateOnScroll($){const de=this._parentPositions.handleScroll($);if(de){const Ve=(0,w.sA)($);this._boundaryRect&&Ve!==this._boundaryElement&&Ve.contains(this._boundaryElement)&&Se(this._boundaryRect,de.top,de.left),this._pickupPositionOnPage.x+=de.left,this._pickupPositionOnPage.y+=de.top,this._dropContainer||(this._activeTransform.x-=de.left,this._activeTransform.y-=de.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var $;return(null===($=this._parentPositions.positions.get(this._document))||void 0===$?void 0:$.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint($,de){const Ve=this._previewContainer||"global";if("parent"===Ve)return $;if("global"===Ve){const $e=this._document;return de||$e.fullscreenElement||$e.webkitFullscreenElement||$e.mozFullScreenElement||$e.msFullscreenElement||$e.body}return(0,g.fI)(Ve)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle($){return this._handles.find(de=>$.target&&($.target===de||de.contains($.target)))}}function et(Ie,$){return`translate3d(${Math.round(Ie)}px, ${Math.round($)}px, 0)`}function Xe(Ie,$,de){return Math.max($,Math.min(de,Ie))}function vt(Ie){return"t"===Ie.type[0]}function rt(Ie,$){const de=Ie.rootNodes;if(1===de.length&&de[0].nodeType===$.ELEMENT_NODE)return de[0];const Ve=$.createElement("div");return de.forEach($e=>Ve.appendChild($e)),Ve}function ht(Ie,$){Ie.style.width=`${$.width}px`,Ie.style.height=`${$.height}px`,Ie.style.transform=et($.left,$.top)}function W(Ie,$,de){const Ve=ae($,Ie.length-1),$e=ae(de,Ie.length-1);if(Ve===$e)return;const nt=Ie[Ve],Le=$e0)return null;const st="horizontal"===this.orientation,Pt=nt.findIndex(Ct=>Ct.drag===$),Vt=nt[Le],Jt=Vt.clientRect,nn=Pt>Le?1:-1,un=this._getItemOffsetPx(nt[Pt].clientRect,Jt,nn),Bt=this._getSiblingOffsetPx(Pt,nt,nn),It=nt.slice();return W(nt,Pt,Le),nt.forEach((Ct,kt)=>{if(It[kt]===Ct)return;const Yt=Ct.drag===$,pn=Yt?un:Bt,vn=Yt?$.getPlaceholderElement():Ct.drag.getRootElement();Ct.offset+=pn,st?(vn.style.transform=H(`translate3d(${Math.round(Ct.offset)}px, 0, 0)`,Ct.initialTransform),Se(Ct.clientRect,0,pn)):(vn.style.transform=H(`translate3d(0, ${Math.round(Ct.offset)}px, 0)`,Ct.initialTransform),Se(Ct.clientRect,pn,0))}),this._previousSwap.overlaps=De(Jt,de,Ve),this._previousSwap.drag=Vt.drag,this._previousSwap.delta=st?$e.x:$e.y,{previousIndex:Pt,currentIndex:Le}}enter($,de,Ve,$e){const nt=null==$e||$e<0?this._getItemIndexFromPointerPosition($,de,Ve):$e,Le=this._activeDraggables,st=Le.indexOf($),Pt=$.getPlaceholderElement();let Vt=Le[nt];if(Vt===$&&(Vt=Le[nt+1]),!Vt&&(null==nt||-1===nt||nt-1&&Le.splice(st,1),Vt&&!this._dragDropRegistry.isDragging(Vt)){const rn=Vt.getRootElement();rn.parentElement.insertBefore(Pt,rn),Le.splice(nt,0,$)}else(0,g.fI)(this._element).appendChild(Pt),Le.push($);Pt.style.transform="",this._cacheItemPositions()}withItems($){this._activeDraggables=$.slice(),this._cacheItemPositions()}withSortPredicate($){this._sortPredicate=$}reset(){this._activeDraggables.forEach($=>{const de=$.getRootElement();if(de){var Ve;const $e=null===(Ve=this._itemPositions.find(nt=>nt.drag===$))||void 0===Ve?void 0:Ve.initialTransform;de.style.transform=$e||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex($){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Ve=>Ve.drag===$)}updateOnScroll($,de){this._itemPositions.forEach(({clientRect:Ve})=>{Se(Ve,$,de)}),this._itemPositions.forEach(({drag:Ve})=>{this._dragDropRegistry.isDragging(Ve)&&Ve._sortFromLastPointerPosition()})}_cacheItemPositions(){const $="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(de=>{const Ve=de.getVisibleElement();return{drag:de,offset:0,initialTransform:Ve.style.transform||"",clientRect:Ee(Ve)}}).sort((de,Ve)=>$?de.clientRect.left-Ve.clientRect.left:de.clientRect.top-Ve.clientRect.top)}_getItemOffsetPx($,de,Ve){const $e="horizontal"===this.orientation;let nt=$e?de.left-$.left:de.top-$.top;return-1===Ve&&(nt+=$e?de.width-$.width:de.height-$.height),nt}_getSiblingOffsetPx($,de,Ve){const $e="horizontal"===this.orientation,nt=de[$].clientRect,Le=de[$+-1*Ve];let st=nt[$e?"width":"height"]*Ve;if(Le){const Pt=$e?"left":"top",Vt=$e?"right":"bottom";-1===Ve?st-=Le.clientRect[Pt]-nt[Vt]:st+=nt[Pt]-Le.clientRect[Vt]}return st}_shouldEnterAsFirstChild($,de){if(!this._activeDraggables.length)return!1;const Ve=this._itemPositions,$e="horizontal"===this.orientation;if(Ve[0].drag!==this._activeDraggables[0]){const Le=Ve[Ve.length-1].clientRect;return $e?$>=Le.right:de>=Le.bottom}{const Le=Ve[0].clientRect;return $e?$<=Le.left:de<=Le.top}}_getItemIndexFromPointerPosition($,de,Ve,$e){const nt="horizontal"===this.orientation,Le=this._itemPositions.findIndex(({drag:st,clientRect:Pt})=>{if(st===$)return!1;if($e){const Vt=nt?$e.x:$e.y;if(st===this._previousSwap.drag&&this._previousSwap.overlaps&&Vt===this._previousSwap.delta)return!1}return nt?de>=Math.floor(Pt.left)&&de=Math.floor(Pt.top)&&Ve!0,this.sortPredicate=()=>!0,this.beforeStarted=new y.x,this.entered=new y.x,this.exited=new y.x,this.dropped=new y.x,this.sorted=new y.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new y.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,S.F)(0,U.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Le=this._scrollNode,st=this.autoScrollStep;1===this._verticalScrollDirection?Le.scrollBy(0,-st):2===this._verticalScrollDirection&&Le.scrollBy(0,st),1===this._horizontalScrollDirection?Le.scrollBy(-st,0):2===this._horizontalScrollDirection&&Le.scrollBy(st,0)})},this.element=(0,g.fI)($),this._document=Ve,this.withScrollableParents([this.element]),de.registerDropContainer(this),this._parentPositions=new Ce(Ve),this._sortStrategy=new Ze(this.element,de),this._sortStrategy.withSortPredicate((Le,st)=>this.sortPredicate(Le,st,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter($,de,Ve,$e){this._draggingStarted(),null==$e&&this.sortingDisabled&&($e=this._draggables.indexOf($)),this._sortStrategy.enter($,de,Ve,$e),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:$,container:this,currentIndex:this.getItemIndex($)})}exit($){this._reset(),this.exited.next({item:$,container:this})}drop($,de,Ve,$e,nt,Le,st,Pt={}){this._reset(),this.dropped.next({item:$,currentIndex:de,previousIndex:Ve,container:this,previousContainer:$e,isPointerOverContainer:nt,distance:Le,dropPoint:st,event:Pt})}withItems($){const de=this._draggables;return this._draggables=$,$.forEach(Ve=>Ve._withDropContainer(this)),this.isDragging()&&(de.filter($e=>$e.isDragging()).every($e=>-1===$.indexOf($e))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection($){return this._sortStrategy.direction=$,this}connectedTo($){return this._siblings=$.slice(),this}withOrientation($){return this._sortStrategy.orientation=$,this}withScrollableParents($){const de=(0,g.fI)(this.element);return this._scrollableElements=-1===$.indexOf(de)?[de,...$]:$.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex($){return this._isDragging?this._sortStrategy.getItemIndex($):this._draggables.indexOf($)}isReceiving(){return this._activeSiblings.size>0}_sortItem($,de,Ve,$e){if(this.sortingDisabled||!this._clientRect||!Ge(this._clientRect,.05,de,Ve))return;const nt=this._sortStrategy.sort($,de,Ve,$e);nt&&this.sorted.next({previousIndex:nt.previousIndex,currentIndex:nt.currentIndex,container:this,item:$})}_startScrollingIfNecessary($,de){if(this.autoScrollDisabled)return;let Ve,$e=0,nt=0;if(this._parentPositions.positions.forEach((Le,st)=>{st===this._document||!Le.clientRect||Ve||Ge(Le.clientRect,.05,$,de)&&([$e,nt]=function r(Ie,$,de,Ve){const $e=oe($,Ve),nt=V($,de);let Le=0,st=0;if($e){const Pt=Ie.scrollTop;1===$e?Pt>0&&(Le=1):Ie.scrollHeight-Pt>Ie.clientHeight&&(Le=2)}if(nt){const Pt=Ie.scrollLeft;1===nt?Pt>0&&(st=1):Ie.scrollWidth-Pt>Ie.clientWidth&&(st=2)}return[Le,st]}(st,Le.clientRect,$,de),($e||nt)&&(Ve=st))}),!$e&&!nt){const{width:Le,height:st}=this._viewportRuler.getViewportSize(),Pt={width:Le,height:st,top:0,right:Le,bottom:st,left:0};$e=oe(Pt,de),nt=V(Pt,$),Ve=window}Ve&&($e!==this._verticalScrollDirection||nt!==this._horizontalScrollDirection||Ve!==this._scrollNode)&&(this._verticalScrollDirection=$e,this._horizontalScrollDirection=nt,this._scrollNode=Ve,($e||nt)&&Ve?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const $=(0,g.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=$.msScrollSnapType||$.scrollSnapType||"",$.scrollSnapType=$.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const $=(0,g.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get($).clientRect}_reset(){this._isDragging=!1;const $=(0,g.fI)(this.element).style;$.scrollSnapType=$.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(de=>de._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer($,de){return null!=this._clientRect&&De(this._clientRect,$,de)}_getSiblingContainerFromPosition($,de,Ve){return this._siblings.find($e=>$e._canReceive($,de,Ve))}_canReceive($,de,Ve){if(!this._clientRect||!De(this._clientRect,de,Ve)||!this.enterPredicate($,this))return!1;const $e=this._getShadowRoot().elementFromPoint(de,Ve);if(!$e)return!1;const nt=(0,g.fI)(this.element);return $e===nt||nt.contains($e)}_startReceiving($,de){const Ve=this._activeSiblings;!Ve.has($)&&de.every($e=>this.enterPredicate($e,this)||this._draggables.indexOf($e)>-1)&&(Ve.add($),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving($){this._activeSiblings.delete($),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe($=>{if(this.isDragging()){const de=this._parentPositions.handleScroll($);de&&this._sortStrategy.updateOnScroll(de.top,de.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const $=(0,w.kV)((0,g.fI)(this.element));this._cachedShadowRoot=$||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const $=this._sortStrategy.getActiveItemsSnapshot().filter(de=>de.isDragging());this._siblings.forEach(de=>de._startReceiving(this,$))}}function oe(Ie,$){const{top:de,bottom:Ve,height:$e}=Ie,nt=.05*$e;return $>=de-nt&&$<=de+nt?1:$>=Ve-nt&&$<=Ve+nt?2:0}function V(Ie,$){const{left:de,right:Ve,width:$e}=Ie,nt=.05*$e;return $>=de-nt&&$<=de+nt?1:$>=Ve-nt&&$<=Ve+nt?2:0}const s=(0,w.i$)({passive:!1,capture:!0});let f=(()=>{class Ie{constructor(de,Ve){this._ngZone=de,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=$e=>$e.isDragging(),this.pointerMove=new y.x,this.pointerUp=new y.x,this.scroll=new y.x,this._preventDefaultWhileDragging=$e=>{this._activeDragInstances.length>0&&$e.preventDefault()},this._persistentTouchmoveListener=$e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&$e.preventDefault(),this.pointerMove.next($e))},this._document=Ve}registerDropContainer(de){this._dropInstances.has(de)||this._dropInstances.add(de)}registerDragItem(de){this._dragInstances.add(de),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,s)})}removeDropContainer(de){this._dropInstances.delete(de)}removeDragItem(de){this._dragInstances.delete(de),this.stopDragging(de),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,s)}startDragging(de,Ve){if(!(this._activeDragInstances.indexOf(de)>-1)&&(this._activeDragInstances.push(de),1===this._activeDragInstances.length)){const $e=Ve.type.startsWith("touch");this._globalListeners.set($e?"touchend":"mouseup",{handler:nt=>this.pointerUp.next(nt),options:!0}).set("scroll",{handler:nt=>this.scroll.next(nt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:s}),$e||this._globalListeners.set("mousemove",{handler:nt=>this.pointerMove.next(nt),options:s}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((nt,Le)=>{this._document.addEventListener(Le,nt.handler,nt.options)})})}}stopDragging(de){const Ve=this._activeDragInstances.indexOf(de);Ve>-1&&(this._activeDragInstances.splice(Ve,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(de){return this._activeDragInstances.indexOf(de)>-1}scrolled(de){const Ve=[this.scroll];return de&&de!==this._document&&Ve.push(new A.y($e=>this._ngZone.runOutsideAngular(()=>{const Le=st=>{this._activeDragInstances.length&&$e.next(st)};return de.addEventListener("scroll",Le,!0),()=>{de.removeEventListener("scroll",Le,!0)}}))),(0,N.T)(...Ve)}ngOnDestroy(){this._dragInstances.forEach(de=>this.removeDragItem(de)),this._dropInstances.forEach(de=>this.removeDropContainer(de)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((de,Ve)=>{this._document.removeEventListener(Ve,de.handler,de.options)}),this._globalListeners.clear()}}return Ie.\u0275fac=function(de){return new(de||Ie)(e.LFG(e.R0b),e.LFG(d.K0))},Ie.\u0275prov=e.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const l={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Ie{constructor(de,Ve,$e,nt){this._document=de,this._ngZone=Ve,this._viewportRuler=$e,this._dragDropRegistry=nt}createDrag(de,Ve=l){return new Te(de,Ve,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(de){return new ze(de,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Ie.\u0275fac=function(de){return new(de||Ie)(e.LFG(d.K0),e.LFG(e.R0b),e.LFG(_.rL),e.LFG(f))},Ie.\u0275prov=e.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const n=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),o=new e.OlP("CDK_DRAG_CONFIG");let p=0;const M=new e.OlP("CdkDropList");let Me=(()=>{class Ie{constructor(de,Ve,$e,nt,Le,st,Pt){this.element=de,this._changeDetectorRef=$e,this._scrollDispatcher=nt,this._dir=Le,this._group=st,this._destroyed=new y.x,this.connectedTo=[],this.id="cdk-drop-list-"+p++,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=Ve.createDropList(de),this._dropListRef.data=this,Pt&&this._assignDefaults(Pt),this._dropListRef.enterPredicate=(Vt,rn)=>this.enterPredicate(Vt.data,rn.data),this._dropListRef.sortPredicate=(Vt,rn,Jt)=>this.sortPredicate(Vt,rn.data,Jt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Ie._dropLists.push(this),st&&st._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(de){this._dropListRef.disabled=this._disabled=(0,g.Ig)(de)}addItem(de){this._unsortedItems.add(de),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(de){this._unsortedItems.delete(de),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((de,Ve)=>de._dragRef.getVisibleElement().compareDocumentPosition(Ve._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const de=Ie._dropLists.indexOf(this);de>-1&&Ie._dropLists.splice(de,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(de){this._dir&&this._dir.change.pipe((0,Q.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(Ve=>de.withDirection(Ve)),de.beforeStarted.subscribe(()=>{const Ve=(0,g.Eq)(this.connectedTo).map($e=>"string"==typeof $e?Ie._dropLists.find(Le=>Le.id===$e):$e);if(this._group&&this._group._items.forEach($e=>{-1===Ve.indexOf($e)&&Ve.push($e)}),!this._scrollableParentsResolved){const $e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(nt=>nt.getElementRef().nativeElement);this._dropListRef.withScrollableParents($e),this._scrollableParentsResolved=!0}de.disabled=this.disabled,de.lockAxis=this.lockAxis,de.sortingDisabled=(0,g.Ig)(this.sortingDisabled),de.autoScrollDisabled=(0,g.Ig)(this.autoScrollDisabled),de.autoScrollStep=(0,g.su)(this.autoScrollStep,2),de.connectedTo(Ve.filter($e=>$e&&$e!==this).map($e=>$e._dropListRef)).withOrientation(this.orientation)})}_handleEvents(de){de.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),de.entered.subscribe(Ve=>{this.entered.emit({container:this,item:Ve.item.data,currentIndex:Ve.currentIndex})}),de.exited.subscribe(Ve=>{this.exited.emit({container:this,item:Ve.item.data}),this._changeDetectorRef.markForCheck()}),de.sorted.subscribe(Ve=>{this.sorted.emit({previousIndex:Ve.previousIndex,currentIndex:Ve.currentIndex,container:this,item:Ve.item.data})}),de.dropped.subscribe(Ve=>{this.dropped.emit({previousIndex:Ve.previousIndex,currentIndex:Ve.currentIndex,previousContainer:Ve.previousContainer.data,container:Ve.container.data,item:Ve.item.data,isPointerOverContainer:Ve.isPointerOverContainer,distance:Ve.distance,dropPoint:Ve.dropPoint,event:Ve.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(de){const{lockAxis:Ve,draggingDisabled:$e,sortingDisabled:nt,listAutoScrollDisabled:Le,listOrientation:st}=de;this.disabled=$e??!1,this.sortingDisabled=nt??!1,this.autoScrollDisabled=Le??!1,this.orientation=st||"vertical",Ve&&(this.lockAxis=Ve)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(de=>de._dragRef))}}return Ie._dropLists=[],Ie.\u0275fac=function(de){return new(de||Ie)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(_.mF),e.Y36(ce.Is,8),e.Y36(t,12),e.Y36(o,8))},Ie.\u0275dir=e.lG2({type:Ie,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(de,Ve){2&de&&(e.uIk("id",Ve.id),e.ekj("cdk-drop-list-disabled",Ve.disabled)("cdk-drop-list-dragging",Ve._dropListRef.isDragging())("cdk-drop-list-receiving",Ve._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:M,useExisting:Ie}])]}),Ie})();const it=new e.OlP("CdkDragHandle"),Zt=new e.OlP("CdkDragPlaceholder"),pt=new e.OlP("CdkDragPreview");let Qe=(()=>{class Ie{constructor(de,Ve,$e,nt,Le,st,Pt,Vt,rn,Jt,nn){this.element=de,this.dropContainer=Ve,this._ngZone=nt,this._viewContainerRef=Le,this._dir=Pt,this._changeDetectorRef=rn,this._selfHandle=Jt,this._parentDrag=nn,this._destroyed=new y.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new A.y(un=>{const Bt=this._dragRef.moved.pipe((0,ne.U)(It=>({source:this,pointerPosition:It.pointerPosition,event:It.event,delta:It.delta,distance:It.distance}))).subscribe(un);return()=>{Bt.unsubscribe()}}),this._dragRef=Vt.createDrag(de,{dragStartThreshold:st&&null!=st.dragStartThreshold?st.dragStartThreshold:5,pointerDirectionChangeThreshold:st&&null!=st.pointerDirectionChangeThreshold?st.pointerDirectionChangeThreshold:5,zIndex:st?.zIndex}),this._dragRef.data=this,Ie._dragInstances.push(this),st&&this._assignDefaults(st),Ve&&(this._dragRef._withDropContainer(Ve._dropListRef),Ve.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(de){this._disabled=(0,g.Ig)(de),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(de){this._dragRef.setFreeDragPosition(de)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,he.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(de){const Ve=de.rootElementSelector,$e=de.freeDragPosition;Ve&&!Ve.firstChange&&this._updateRootElement(),$e&&!$e.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const de=Ie._dragInstances.indexOf(this);de>-1&&Ie._dragInstances.splice(de,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const de=this.element.nativeElement;let Ve=de;var $e;this.rootElementSelector&&(Ve=void 0!==de.closest?de.closest(this.rootElementSelector):null===($e=de.parentElement)||void 0===$e?void 0:$e.closest(this.rootElementSelector)),this._dragRef.withRootElement(Ve||de)}_getBoundaryElement(){const de=this.boundaryElement;return de?"string"==typeof de?this.element.nativeElement.closest(de):(0,g.fI)(de):null}_syncInputs(de){de.beforeStarted.subscribe(()=>{if(!de.isDragging()){const Ve=this._dir,$e=this.dragStartDelay,nt=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Le=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;de.disabled=this.disabled,de.lockAxis=this.lockAxis,de.dragStartDelay="object"==typeof $e&&$e?$e:(0,g.su)($e),de.constrainPosition=this.constrainPosition,de.previewClass=this.previewClass,de.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(nt).withPreviewTemplate(Le).withPreviewContainer(this.previewContainer||"global"),Ve&&de.withDirection(Ve.value)}}),de.beforeStarted.pipe((0,he.q)(1)).subscribe(()=>{if(this._parentDrag)return void de.withParent(this._parentDrag._dragRef);let Ve=this.element.nativeElement.parentElement;for(;Ve;){if(Ve.classList.contains("cdk-drag")){var $e;de.withParent((null===($e=Ie._dragInstances.find(nt=>nt.element.nativeElement===Ve))||void 0===$e?void 0:$e._dragRef)||null);break}Ve=Ve.parentElement}})}_handleEvents(de){de.started.subscribe(Ve=>{this.started.emit({source:this,event:Ve.event}),this._changeDetectorRef.markForCheck()}),de.released.subscribe(Ve=>{this.released.emit({source:this,event:Ve.event})}),de.ended.subscribe(Ve=>{this.ended.emit({source:this,distance:Ve.distance,dropPoint:Ve.dropPoint,event:Ve.event}),this._changeDetectorRef.markForCheck()}),de.entered.subscribe(Ve=>{this.entered.emit({container:Ve.container.data,item:this,currentIndex:Ve.currentIndex})}),de.exited.subscribe(Ve=>{this.exited.emit({container:Ve.container.data,item:this})}),de.dropped.subscribe(Ve=>{this.dropped.emit({previousIndex:Ve.previousIndex,currentIndex:Ve.currentIndex,previousContainer:Ve.previousContainer.data,container:Ve.container.data,isPointerOverContainer:Ve.isPointerOverContainer,item:this,distance:Ve.distance,dropPoint:Ve.dropPoint,event:Ve.event})})}_assignDefaults(de){const{lockAxis:Ve,dragStartDelay:$e,constrainPosition:nt,previewClass:Le,boundaryElement:st,draggingDisabled:Pt,rootElementSelector:Vt,previewContainer:rn}=de;this.disabled=Pt??!1,this.dragStartDelay=$e||0,Ve&&(this.lockAxis=Ve),nt&&(this.constrainPosition=nt),Le&&(this.previewClass=Le),st&&(this.boundaryElement=st),Vt&&(this.rootElementSelector=Vt),rn&&(this.previewContainer=rn)}_setupHandlesListener(){this._handles.changes.pipe((0,Q.O)(this._handles),(0,ee.b)(de=>{const Ve=de.filter($e=>$e._parentDrag===this).map($e=>$e.element);this._selfHandle&&this.rootElementSelector&&Ve.push(this.element),this._dragRef.withHandles(Ve)}),(0,fe.w)(de=>(0,N.T)(...de.map(Ve=>Ve._stateChanges.pipe((0,Q.O)(Ve))))),(0,z.R)(this._destroyed)).subscribe(de=>{const Ve=this._dragRef,$e=de.element.nativeElement;de.disabled?Ve.disableHandle($e):Ve.enableHandle($e)})}}return Ie._dragInstances=[],Ie.\u0275fac=function(de){return new(de||Ie)(e.Y36(e.SBq),e.Y36(M,12),e.Y36(d.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(o,8),e.Y36(ce.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(it,10),e.Y36(n,12))},Ie.\u0275dir=e.lG2({type:Ie,selectors:[["","cdkDrag",""]],contentQueries:function(de,Ve,$e){if(1&de&&(e.Suo($e,pt,5),e.Suo($e,Zt,5),e.Suo($e,it,5)),2&de){let nt;e.iGM(nt=e.CRH())&&(Ve._previewTemplate=nt.first),e.iGM(nt=e.CRH())&&(Ve._placeholderTemplate=nt.first),e.iGM(nt=e.CRH())&&(Ve._handles=nt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(de,Ve){2&de&&e.ekj("cdk-drag-disabled",Ve.disabled)("cdk-drag-dragging",Ve._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:n,useExisting:Ie}]),e.TTD]}),Ie})(),ye=(()=>{class Ie{}return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({providers:[a],imports:[_.ZD]}),Ie})()},29521:(We,pe,h)=>{"use strict";h.d(pe,{A:()=>G,JH:()=>ve,JU:()=>b,K5:()=>g,Ku:()=>z,LH:()=>fe,L_:()=>N,MW:()=>o,Mf:()=>_,OC:()=>At,SV:()=>ce,Sd:()=>he,VM:()=>Q,Vb:()=>zi,Z:()=>i,ZH:()=>d,aO:()=>we,b2:()=>In,hY:()=>A,jx:()=>y,oh:()=>ee,uR:()=>ne,xE:()=>q,yY:()=>Y,zL:()=>E});const d=8,_=9,g=13,b=16,y=17,E=18,A=27,N=32,z=33,Q=34,ne=35,he=36,ee=37,fe=38,ce=39,ve=40,Y=46,q=48,we=57,G=65,i=90,o=91,At=188,In=224;function zi(kn,...Zn){return Zn.length?Zn.some(Ni=>kn[Ni]):kn.altKey||kn.shiftKey||kn.ctrlKey||kn.metaKey}},62289:(We,pe,h)=>{"use strict";h.d(pe,{Yg:()=>ve,u3:()=>O});var e=h(94650),d=h(21281),_=h(77579),w=h(39841),g=h(97272),b=h(69751),y=h(95698),E=h(35684),S=h(78372),U=h(54004),A=h(68675),N=h(82722),z=h(83353);const ne=new Set;let he,ee=(()=>{class H{constructor(q){this._platform=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ce}matchMedia(q){return(this._platform.WEBKIT||this._platform.BLINK)&&function fe(H){if(!ne.has(H))try{he||(he=document.createElement("style"),he.setAttribute("type","text/css"),document.head.appendChild(he)),he.sheet&&(he.sheet.insertRule(`@media ${H} {body{ }}`,0),ne.add(H))}catch(Y){console.error(Y)}}(q),this._matchMedia(q)}}return H.\u0275fac=function(q){return new(q||H)(e.LFG(z.t4))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function ce(H){return{matches:"all"===H||""===H,media:H,addListener:()=>{},removeListener:()=>{}}}let ve=(()=>{class H{constructor(q,ue){this._mediaMatcher=q,this._zone=ue,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(q){return v((0,d.Eq)(q)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(q){const Ee=v((0,d.Eq)(q)).map(Se=>this._registerQuery(Se).observable);let De=(0,w.a)(Ee);return De=(0,g.z)(De.pipe((0,y.q)(1)),De.pipe((0,E.T)(1),(0,S.b)(0))),De.pipe((0,U.U)(Se=>{const Ge={matches:!1,breakpoints:{}};return Se.forEach(({matches:Ce,query:qe})=>{Ge.matches=Ge.matches||Ce,Ge.breakpoints[qe]=Ce}),Ge}))}_registerQuery(q){if(this._queries.has(q))return this._queries.get(q);const ue=this._mediaMatcher.matchMedia(q),De={observable:new b.y(Se=>{const Ge=Ce=>this._zone.run(()=>Se.next(Ce));return ue.addListener(Ge),()=>{ue.removeListener(Ge)}}).pipe((0,A.O)(ue),(0,U.U)(({matches:Se})=>({query:q,matches:Se})),(0,N.R)(this._destroySubject)),mql:ue};return this._queries.set(q,De),De}}return H.\u0275fac=function(q){return new(q||H)(e.LFG(ee),e.LFG(e.R0b))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function v(H){return H.map(Y=>Y.split(",")).reduce((Y,q)=>Y.concat(q)).map(Y=>Y.trim())}const O={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(We,pe,h)=>{"use strict";h.d(pe,{Q8:()=>S,wD:()=>E});var e=h(21281),d=h(94650),_=h(69751),w=h(77579),g=h(78372);let b=(()=>{class U{create(N){return typeof MutationObserver>"u"?null:new MutationObserver(N)}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=d.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),y=(()=>{class U{constructor(N){this._mutationObserverFactory=N,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((N,z)=>this._cleanupObserver(z))}observe(N){const z=(0,e.fI)(N);return new _.y(Q=>{const he=this._observeElement(z).subscribe(Q);return()=>{he.unsubscribe(),this._unobserveElement(z)}})}_observeElement(N){if(this._observedElements.has(N))this._observedElements.get(N).count++;else{const z=new w.x,Q=this._mutationObserverFactory.create(ne=>z.next(ne));Q&&Q.observe(N,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(N,{observer:Q,stream:z,count:1})}return this._observedElements.get(N).stream}_unobserveElement(N){this._observedElements.has(N)&&(this._observedElements.get(N).count--,this._observedElements.get(N).count||this._cleanupObserver(N))}_cleanupObserver(N){if(this._observedElements.has(N)){const{observer:z,stream:Q}=this._observedElements.get(N);z&&z.disconnect(),Q.complete(),this._observedElements.delete(N)}}}return U.\u0275fac=function(N){return new(N||U)(d.LFG(b))},U.\u0275prov=d.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),E=(()=>{class U{constructor(N,z,Q){this._contentObserver=N,this._elementRef=z,this._ngZone=Q,this.event=new d.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,e.Ig)(N),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(N){this._debounce=(0,e.su)(N),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const N=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?N.pipe((0,g.b)(this.debounce)):N).subscribe(this.event)})}_unsubscribe(){var N;null===(N=this._currentSubscription)||void 0===N||N.unsubscribe()}}return U.\u0275fac=function(N){return new(N||U)(d.Y36(y),d.Y36(d.SBq),d.Y36(d.R0b))},U.\u0275dir=d.lG2({type:U,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=d.oAB({type:U}),U.\u0275inj=d.cJS({providers:[b]}),U})()},98184:(We,pe,h)=>{"use strict";h.d(pe,{Iu:()=>we,U8:()=>ze,X_:()=>Y,Xj:()=>Pe,_G:()=>F,aV:()=>W,pI:()=>Ze,xu:()=>ae});var e=h(67376),d=h(36895),_=h(94650),w=h(21281),g=h(83353),b=h(40445),y=h(84080),E=h(77579),S=h(50727),U=h(56451),A=h(95698),N=h(82722),z=h(22529),Q=h(29521);const ne=(0,g.Mq)();class he{constructor(r,s){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=(0,w.HM)(-this._previousScrollPosition.left),r.style.top=(0,w.HM)(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,f=r.style,l=this._document.body.style,a=f.scrollBehavior||"",n=l.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),ne&&(f.scrollBehavior=l.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ne&&(f.scrollBehavior=a,l.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,f=this._viewportRuler.getViewportSize();return s.scrollHeight>f.height||s.scrollWidth>f.width}}class fe{constructor(r,s,f,l){this._scrollDispatcher=r,this._ngZone=s,this._viewportRuler=f,this._config=l,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ce{enable(){}disable(){}attach(){}}function ve(V,r){return r.some(s=>V.bottoms.bottom||V.rights.right)}function v(V,r){return r.some(s=>V.tops.bottom||V.lefts.right)}class O{constructor(r,s,f,l){this._scrollDispatcher=r,this._viewportRuler=s,this._ngZone=f,this._config=l,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:l}=this._viewportRuler.getViewportSize();ve(s,[{width:f,height:l,bottom:l,right:f,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 H=(()=>{class V{constructor(s,f,l,a){this._scrollDispatcher=s,this._viewportRuler=f,this._ngZone=l,this.noop=()=>new ce,this.close=n=>new fe(this._scrollDispatcher,this._ngZone,this._viewportRuler,n),this.block=()=>new he(this._viewportRuler,this._document),this.reposition=n=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,n),this._document=a}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(d.K0))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();class Y{constructor(r){if(this.scrollStrategy=new ce,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const s=Object.keys(r);for(const f of s)void 0!==r[f]&&(this[f]=r[f])}}}class Ee{constructor(r,s){this.connectionPair=r,this.scrollableViewProperties=s}}let Ge=(()=>{class V{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const f=this._attachedOverlays.indexOf(s);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(d.K0))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),Ce=(()=>{class V extends Ge{constructor(s,f){super(s),this._ngZone=f,this._keydownListener=l=>{const a=this._attachedOverlays;for(let n=a.length-1;n>-1;n--)if(a[n]._keydownEvents.observers.length>0){const t=a[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(l)):t.next(l);break}}}add(s){super.add(s),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(d.K0),_.LFG(_.R0b,8))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),qe=(()=>{class V extends Ge{constructor(s,f,l){super(s),this._platform=f,this._ngZone=l,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,g.sA)(a)},this._clickListener=a=>{const n=(0,g.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const c=i[o];if(c._outsidePointerEvents.observers.length<1||!c.hasAttached())continue;if(c.overlayElement.contains(n)||c.overlayElement.contains(t))break;const p=c._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(a)):p.next(a)}}}add(s){if(super.add(s),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(d.K0),_.LFG(g.t4),_.LFG(_.R0b,8))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),Pe=(()=>{class V{constructor(s,f){this._platform=f,this._document=s}ngOnDestroy(){var s;null===(s=this._containerElement)||void 0===s||s.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const l=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let a=0;athis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new E.x,this._outsidePointerEvents=new E.x,l.scrollStrategy&&(this._scrollStrategy=l.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=l.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const s=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof s?.onDestroy&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,s&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=(0,w.HM)(this._config.width),r.height=(0,w.HM)(this._config.height),r.minWidth=(0,w.HM)(this._config.minWidth),r.minHeight=(0,w.HM)(this._config.minHeight),r.maxWidth=(0,w.HM)(this._config.maxWidth),r.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,s,f){const l=(0,w.Eq)(s||[]).filter(a=>!!a);l.length&&(f?r.classList.add(...l):r.classList.remove(...l))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe((0,N.R)((0,U.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const j="cdk-overlay-connected-position-bounding-box",I=/([A-Za-z%]+)$/;class F{constructor(r,s,f,l,a){this._viewportRuler=s,this._document=f,this._platform=l,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E.x,this._resizeSubscription=S.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(j),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,s=this._overlayRect,f=this._viewportRect,l=this._containerRect,a=[];let n;for(let t of this._preferredPositions){let i=this._getOriginPoint(r,l,t),o=this._getOverlayPoint(i,s,t),c=this._getOverlayFit(o,s,f,t);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,i);this._canFitWithFlexibleDimensions(c,o,f)?a.push({position:t,origin:i,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(i,t)}):(!n||n.overlayFit.visibleAreai&&(i=c,t=o)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ge(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,s)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,s,f){let l,a;if("center"==f.originX)l=r.left+r.width/2;else{const n=this._isRtl()?r.right:r.left,t=this._isRtl()?r.left:r.right;l="start"==f.originX?n:t}return s.left<0&&(l-=s.left),a="center"==f.originY?r.top+r.height/2:"top"==f.originY?r.top:r.bottom,s.top<0&&(a-=s.top),{x:l,y:a}}_getOverlayPoint(r,s,f){let l,a;return l="center"==f.overlayX?-s.width/2:"start"===f.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,a="center"==f.overlayY?-s.height/2:"top"==f.overlayY?0:-s.height,{x:r.x+l,y:r.y+a}}_getOverlayFit(r,s,f,l){const a=_e(s);let{x:n,y:t}=r,i=this._getOffset(l,"x"),o=this._getOffset(l,"y");i&&(n+=i),o&&(t+=o);let M=0-t,Me=t+a.height-f.height,it=this._subtractOverflows(a.width,0-n,n+a.width-f.width),Dt=this._subtractOverflows(a.height,M,Me),Zt=it*Dt;return{visibleArea:Zt,isCompletelyWithinViewport:a.width*a.height===Zt,fitsInViewportVertically:Dt===a.height,fitsInViewportHorizontally:it==a.width}}_canFitWithFlexibleDimensions(r,s,f){if(this._hasFlexibleDimensions){const l=f.bottom-s.y,a=f.right-s.x,n=G(this._overlayRef.getConfig().minHeight),t=G(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=t&&t<=a;return(r.fitsInViewportVertically||null!=n&&n<=l)&&o}return!1}_pushOverlayOnScreen(r,s,f){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const l=_e(s),a=this._viewportRect,n=Math.max(r.x+l.width-a.width,0),t=Math.max(r.y+l.height-a.height,0),i=Math.max(a.top-f.top-r.y,0),o=Math.max(a.left-f.left-r.x,0);let c=0,p=0;return c=l.width<=a.width?o||-n:r.xit&&!this._isInitialRender&&!this._growAfterOpen&&(n=r.y-it/2)}if("end"===s.overlayX&&!l||"start"===s.overlayX&&l)M=f.width-r.x+this._viewportMargin,c=r.x-this._viewportMargin;else if("start"===s.overlayX&&!l||"end"===s.overlayX&&l)p=r.x,c=f.right-r.x;else{const Me=Math.min(f.right-r.x+f.left,r.x),it=this._lastBoundingBoxSize.width;c=2*Me,p=r.x-Me,c>it&&!this._isInitialRender&&!this._growAfterOpen&&(p=r.x-it/2)}return{top:n,left:p,bottom:t,right:M,width:c,height:a}}_setBoundingBoxStyles(r,s){const f=this._calculateBoundingBoxRect(r,s);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const l={};if(this._hasExactPosition())l.top=l.left="0",l.bottom=l.right=l.maxHeight=l.maxWidth="",l.width=l.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;l.height=(0,w.HM)(f.height),l.top=(0,w.HM)(f.top),l.bottom=(0,w.HM)(f.bottom),l.width=(0,w.HM)(f.width),l.left=(0,w.HM)(f.left),l.right=(0,w.HM)(f.right),l.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",l.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",a&&(l.maxHeight=(0,w.HM)(a)),n&&(l.maxWidth=(0,w.HM)(n))}this._lastBoundingBoxSize=f,ge(this._boundingBox.style,l)}_resetBoundingBoxStyles(){ge(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ge(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,s){const f={},l=this._hasExactPosition(),a=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(l){const c=this._viewportRuler.getViewportScrollPosition();ge(f,this._getExactOverlayY(s,r,c)),ge(f,this._getExactOverlayX(s,r,c))}else f.position="static";let t="",i=this._getOffset(s,"x"),o=this._getOffset(s,"y");i&&(t+=`translateX(${i}px) `),o&&(t+=`translateY(${o}px)`),f.transform=t.trim(),n.maxHeight&&(l?f.maxHeight=(0,w.HM)(n.maxHeight):a&&(f.maxHeight="")),n.maxWidth&&(l?f.maxWidth=(0,w.HM)(n.maxWidth):a&&(f.maxWidth="")),ge(this._pane.style,f)}_getExactOverlayY(r,s,f){let l={top:"",bottom:""},a=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),"bottom"===r.overlayY?l.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":l.top=(0,w.HM)(a.y),l}_getExactOverlayX(r,s,f){let n,l={left:"",right:""},a=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),n=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===n?l.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":l.left=(0,w.HM)(a.x),l}_getScrollVisibility(){const r=this._getOriginRect(),s=this._pane.getBoundingClientRect(),f=this._scrollables.map(l=>l.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:v(r,f),isOriginOutsideView:ve(r,f),isOverlayClipped:v(s,f),isOverlayOutsideView:ve(s,f)}}_subtractOverflows(r,...s){return s.reduce((f,l)=>f-Math.max(l,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+r-this._viewportMargin,bottom:f.top+s-this._viewportMargin,width:r-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,s){return"x"===s?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&(0,w.Eq)(r).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof _.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const s=r.width||0,f=r.height||0;return{top:r.y,bottom:r.y+f,left:r.x,right:r.x+s,height:f,width:s}}}function ge(V,r){for(let s in r)r.hasOwnProperty(s)&&(V[s]=r[s]);return V}function G(V){if("number"!=typeof V&&null!=V){const[r,s]=V.split(I);return s&&"px"!==s?null:parseFloat(r)}return V||null}function _e(V){return{top:Math.floor(V.top),right:Math.floor(V.right),bottom:Math.floor(V.bottom),left:Math.floor(V.left),width:Math.floor(V.width),height:Math.floor(V.height)}}const Xe="cdk-global-overlay-wrapper";class vt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const s=r.getConfig();this._overlayRef=r,this._width&&!s.width&&r.updateSize({width:this._width}),this._height&&!s.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Xe),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:l,height:a,maxWidth:n,maxHeight:t}=f,i=!("100%"!==l&&"100vw"!==l||n&&"100%"!==n&&"100vw"!==n),o=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),c=this._xPosition,p=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let Me="",it="",Dt="";i?Dt="flex-start":"center"===c?(Dt="center",M?it=p:Me=p):M?"left"===c||"end"===c?(Dt="flex-end",Me=p):("right"===c||"start"===c)&&(Dt="flex-start",it=p):"left"===c||"start"===c?(Dt="flex-start",Me=p):("right"===c||"end"===c)&&(Dt="flex-end",it=p),r.position=this._cssPosition,r.marginLeft=i?"0":Me,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":it,s.justifyContent=Dt,s.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,f=s.style;s.classList.remove(Xe),f.justifyContent=f.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let rt=(()=>{class V{constructor(s,f,l,a){this._viewportRuler=s,this._document=f,this._platform=l,this._overlayContainer=a}global(){return new vt}flexibleConnectedTo(s){return new F(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(e.rL),_.LFG(d.K0),_.LFG(g.t4),_.LFG(Pe))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),ht=0,W=(()=>{class V{constructor(s,f,l,a,n,t,i,o,c,p,M,Me){this.scrollStrategies=s,this._overlayContainer=f,this._componentFactoryResolver=l,this._positionBuilder=a,this._keyboardDispatcher=n,this._injector=t,this._ngZone=i,this._document=o,this._directionality=c,this._location=p,this._outsideClickDispatcher=M,this._animationsModuleType=Me}create(s){const f=this._createHostElement(),l=this._createPaneElement(f),a=this._createPortalOutlet(l),n=new Y(s);return n.direction=n.direction||this._directionality.value,new we(a,f,l,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const f=this._document.createElement("div");return f.id="cdk-overlay-"+ht++,f.classList.add("cdk-overlay-pane"),s.appendChild(f),f}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new y.u0(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return V.\u0275fac=function(s){return new(s||V)(_.LFG(H),_.LFG(Pe),_.LFG(_._Vd),_.LFG(rt),_.LFG(Ce),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(d.K0),_.LFG(b.Is),_.LFG(d.Ye),_.LFG(qe),_.LFG(_.QbO,8))},V.\u0275prov=_.Yz7({token:V,factory:V.\u0275fac}),V})();const le=[{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"}],ie=new _.OlP("cdk-connected-overlay-scroll-strategy");let ae=(()=>{class V{constructor(s){this.elementRef=s}}return V.\u0275fac=function(s){return new(s||V)(_.Y36(_.SBq))},V.\u0275dir=_.lG2({type:V,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),V})(),Ze=(()=>{class V{constructor(s,f,l,a,n){this._overlay=s,this._dir=n,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.w0.EMPTY,this._attachSubscription=S.w0.EMPTY,this._detachSubscription=S.w0.EMPTY,this._positionSubscription=S.w0.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 y.UE(f,l),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(s){this._offsetX=s,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(s){this._offsetY=s,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,w.Ig)(s)}get lockPosition(){return this._lockPosition}set lockPosition(s){this._lockPosition=(0,w.Ig)(s)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(s){this._flexibleDimensions=(0,w.Ig)(s)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(s){this._growAfterOpen=(0,w.Ig)(s)}get push(){return this._push}set push(s){this._push=(0,w.Ig)(s)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(s){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),s.origin&&this.open&&this._position.apply()),s.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=le);const s=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=s.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=s.detachments().subscribe(()=>this.detach.emit()),s.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===Q.hY&&!this.disableClose&&!(0,Q.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const s=this._position=this.positionStrategy||this._createPositionStrategy(),f=new Y({direction:this._dir,positionStrategy:s,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(s){const f=this.positions.map(l=>({originX:l.originX,originY:l.originY,overlayX:l.overlayX,overlayY:l.overlayY,offsetX:l.offsetX||this.offsetX,offsetY:l.offsetY||this.offsetY,panelClass:l.panelClass||void 0}));return s.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const s=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(s),s}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ae?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(s=>{this.backdropClick.emit(s)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(s=>{this.positionChange.emit(s),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return V.\u0275fac=function(s){return new(s||V)(_.Y36(W),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(ie),_.Y36(b.Is,8))},V.\u0275dir=_.lG2({type:V,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]}),V})();const ct={provide:ie,deps:[W],useFactory:function Je(V){return()=>V.scrollStrategies.reposition()}};let ze=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({providers:[W,ct],imports:[b.vT,y.eL,e.Cl,e.Cl]}),V})()},83353:(We,pe,h)=>{"use strict";h.d(pe,{Mq:()=>Q,Oy:()=>v,_i:()=>ne,ht:()=>ce,i$:()=>A,kV:()=>fe,qK:()=>E,sA:()=>ve,t4:()=>w,ud:()=>g});var e=h(94650),d=h(36895);let _;try{_=typeof Intl<"u"&&Intl.v8BreakIterator}catch{_=!1}let b,w=(()=>{class O{constructor(Y){this._platformId=Y,this.isBrowser=this._platformId?(0,d.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&&!_)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return O.\u0275fac=function(Y){return new(Y||O)(e.LFG(e.Lbi))},O.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),g=(()=>{class O{}return O.\u0275fac=function(Y){return new(Y||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({}),O})();const y=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(y),b;let O=document.createElement("input");return b=new Set(y.filter(H=>(O.setAttribute("type",H),O.type===H))),b}let S,N,z,he;function A(O){return function U(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?O:!!O.capture}function Q(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const O=Element.prototype.scrollTo;z=!!O&&!/\{\s*\[native code\]\s*\}/.test(O.toString())}}return z}function ne(){if("object"!=typeof document||!document)return 0;if(null==N){const O=document.createElement("div"),H=O.style;O.dir="rtl",H.width="1px",H.overflow="auto",H.visibility="hidden",H.pointerEvents="none",H.position="absolute";const Y=document.createElement("div"),q=Y.style;q.width="2px",q.height="1px",O.appendChild(Y),document.body.appendChild(O),N=0,0===O.scrollLeft&&(O.scrollLeft=1,N=0===O.scrollLeft?1:2),O.remove()}return N}function fe(O){if(function ee(){if(null==he){const O=typeof document<"u"?document.head:null;he=!(!O||!O.createShadowRoot&&!O.attachShadow)}return he}()){const H=O.getRootNode?O.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&H instanceof ShadowRoot)return H}return null}function ce(){let O=typeof document<"u"&&document?document.activeElement:null;for(;O&&O.shadowRoot;){const H=O.shadowRoot.activeElement;if(H===O)break;O=H}return O}function ve(O){return O.composedPath?O.composedPath()[0]:O.target}function v(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(We,pe,h)=>{"use strict";h.d(pe,{C5:()=>U,Pl:()=>ce,UE:()=>A,eL:()=>v,en:()=>z,ig:()=>ee,u0:()=>ne});var e=h(94650),d=h(36895);class S{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 U extends S{constructor(Y,q,ue,Ee){super(),this.component=Y,this.viewContainerRef=q,this.injector=ue,this.componentFactoryResolver=Ee}}class A extends S{constructor(Y,q,ue,Ee){super(),this.templateRef=Y,this.viewContainerRef=q,this.context=ue,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(Y,q=this.context){return this.context=q,super.attach(Y)}detach(){return this.context=void 0,super.detach()}}class N extends S{constructor(Y){super(),this.element=Y instanceof e.SBq?Y.nativeElement:Y}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Y){return Y instanceof U?(this._attachedPortal=Y,this.attachComponentPortal(Y)):Y instanceof A?(this._attachedPortal=Y,this.attachTemplatePortal(Y)):this.attachDomPortal&&Y instanceof N?(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 ne extends z{constructor(Y,q,ue,Ee,De){super(),this.outletElement=Y,this._componentFactoryResolver=q,this._appRef=ue,this._defaultInjector=Ee,this.attachDomPortal=Se=>{const Ge=Se.element,Ce=this._document.createComment("dom-portal");Ge.parentNode.insertBefore(Ce,Ge),this.outletElement.appendChild(Ge),this._attachedPortal=Se,super.setDisposeFn(()=>{Ce.parentNode&&Ce.parentNode.replaceChild(Ge,Ce)})},this._document=De}attachComponentPortal(Y){const ue=(Y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Y.component);let Ee;return Y.viewContainerRef?(Ee=Y.viewContainerRef.createComponent(ue,Y.viewContainerRef.length,Y.injector||Y.viewContainerRef.injector),this.setDisposeFn(()=>Ee.destroy())):(Ee=ue.create(Y.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(Ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ee.hostView),Ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ee)),this._attachedPortal=Y,Ee}attachTemplatePortal(Y){let q=Y.viewContainerRef,ue=q.createEmbeddedView(Y.templateRef,Y.context,{injector:Y.injector});return ue.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),ue.detectChanges(),this.setDisposeFn(()=>{let Ee=q.indexOf(ue);-1!==Ee&&q.remove(Ee)}),this._attachedPortal=Y,ue}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Y){return Y.hostView.rootNodes[0]}}let ee=(()=>{class H extends A{constructor(q,ue){super(q,ue)}}return H.\u0275fac=function(q){return new(q||H)(e.Y36(e.Rgc),e.Y36(e.s_b))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),H})(),ce=(()=>{class H extends z{constructor(q,ue,Ee){super(),this._componentFactoryResolver=q,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=De=>{const Se=De.element,Ge=this._document.createComment("dom-portal");De.setAttachedHost(this),Se.parentNode.insertBefore(Ge,Se),this._getRootNode().appendChild(Se),this._attachedPortal=De,super.setDisposeFn(()=>{Ge.parentNode&&Ge.parentNode.replaceChild(Se,Ge)})},this._document=Ee}get portal(){return this._attachedPortal}set portal(q){this.hasAttached()&&!q&&!this._isInitialized||(this.hasAttached()&&super.detach(),q&&super.attach(q),this._attachedPortal=q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(q){q.setAttachedHost(this);const ue=null!=q.viewContainerRef?q.viewContainerRef:this._viewContainerRef,De=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component),Se=ue.createComponent(De,ue.length,q.injector||ue.injector);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(Se.hostView.rootNodes[0]),super.setDisposeFn(()=>Se.destroy()),this._attachedPortal=q,this._attachedRef=Se,this.attached.emit(Se),Se}attachTemplatePortal(q){q.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(q.templateRef,q.context,{injector:q.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=q,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const q=this._viewContainerRef.element.nativeElement;return q.nodeType===q.ELEMENT_NODE?q:q.parentNode}}return H.\u0275fac=function(q){return new(q||H)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(d.K0))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),H})(),v=(()=>{class H{}return H.\u0275fac=function(q){return new(q||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})()},67376:(We,pe,h)=>{"use strict";h.d(pe,{Cl:()=>vt,N7:()=>ge,PQ:()=>Ce,ZD:()=>Xe,mF:()=>Ge,rL:()=>Pe,x0:()=>_e,xd:()=>De});var e=h(21281),d=h(94650),_=h(77579),w=h(39646),g=h(69751),b=h(54968),y=h(66406),E=h(53101),S=h(50727),U=h(45191),A=h(71884),N=h(23601),z=h(39300),Q=h(82722),ne=h(68675),he=h(11520),ee=h(63900),fe=h(34782),ce=h(83353),ve=h(36895),v=h(40445),O=h(95017);const H=["contentWrapper"],Y=["*"],q=new d.OlP("VIRTUAL_SCROLL_STRATEGY");class ue{constructor(ht,W,le){this._scrolledIndexChange=new _.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,A.x)()),this._viewport=null,this._itemSize=ht,this._minBufferPx=W,this._maxBufferPx=le}attach(ht){this._viewport=ht,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(ht,W,le){this._itemSize=ht,this._minBufferPx=W,this._maxBufferPx=le,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(ht,W){this._viewport&&this._viewport.scrollToOffset(ht*this._itemSize,W)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const ht=this._viewport.getRenderedRange(),W={start:ht.start,end:ht.end},le=this._viewport.getViewportSize(),ie=this._viewport.getDataLength();let ae=this._viewport.measureScrollOffset(),Ze=this._itemSize>0?ae/this._itemSize:0;if(W.end>ie){const ct=Math.ceil(le/this._itemSize),ze=Math.max(0,Math.min(Ze,ie-ct));Ze!=ze&&(Ze=ze,ae=ze*this._itemSize,W.start=Math.floor(Ze)),W.end=Math.max(0,Math.min(ie,W.start+ct))}const Je=ae-W.start*this._itemSize;if(Je0&&(W.end=Math.min(ie,W.end+ze),W.start=Math.max(0,Math.floor(Ze-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(W),this._viewport.setRenderedContentOffset(this._itemSize*W.start),this._scrolledIndexChange.next(Math.floor(Ze))}}function Ee(rt){return rt._scrollStrategy}let De=(()=>{class rt{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(W){this._itemSize=(0,e.su)(W)}get minBufferPx(){return this._minBufferPx}set minBufferPx(W){this._minBufferPx=(0,e.su)(W)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(W){this._maxBufferPx=(0,e.su)(W)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return rt.\u0275fac=function(W){return new(W||rt)},rt.\u0275dir=d.lG2({type:rt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[d._Bn([{provide:q,useFactory:Ee,deps:[(0,d.Gpc)(()=>rt)]}]),d.TTD]}),rt})(),Ge=(()=>{class rt{constructor(W,le,ie){this._ngZone=W,this._platform=le,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ie}register(W){this.scrollContainers.has(W)||this.scrollContainers.set(W,W.elementScrolled().subscribe(()=>this._scrolled.next(W)))}deregister(W){const le=this.scrollContainers.get(W);le&&(le.unsubscribe(),this.scrollContainers.delete(W))}scrolled(W=20){return this._platform.isBrowser?new g.y(le=>{this._globalSubscription||this._addGlobalListener();const ie=W>0?this._scrolled.pipe((0,N.e)(W)).subscribe(le):this._scrolled.subscribe(le);return this._scrolledCount++,()=>{ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((W,le)=>this.deregister(le)),this._scrolled.complete()}ancestorScrolled(W,le){const ie=this.getAncestorScrollContainers(W);return this.scrolled(le).pipe((0,z.h)(ae=>!ae||ie.indexOf(ae)>-1))}getAncestorScrollContainers(W){const le=[];return this.scrollContainers.forEach((ie,ae)=>{this._scrollableContainsElement(ae,W)&&le.push(ae)}),le}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(W,le){let ie=(0,e.fI)(le),ae=W.getElementRef().nativeElement;do{if(ie==ae)return!0}while(ie=ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const W=this._getWindow();return(0,b.R)(W.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return rt.\u0275fac=function(W){return new(W||rt)(d.LFG(d.R0b),d.LFG(ce.t4),d.LFG(ve.K0,8))},rt.\u0275prov=d.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),Ce=(()=>{class rt{constructor(W,le,ie,ae){this.elementRef=W,this.scrollDispatcher=le,this.ngZone=ie,this.dir=ae,this._destroyed=new _.x,this._elementScrolled=new g.y(Ze=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(Ze)))}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(W){const le=this.elementRef.nativeElement,ie=this.dir&&"rtl"==this.dir.value;null==W.left&&(W.left=ie?W.end:W.start),null==W.right&&(W.right=ie?W.start:W.end),null!=W.bottom&&(W.top=le.scrollHeight-le.clientHeight-W.bottom),ie&&0!=(0,ce._i)()?(null!=W.left&&(W.right=le.scrollWidth-le.clientWidth-W.left),2==(0,ce._i)()?W.left=W.right:1==(0,ce._i)()&&(W.left=W.right?-W.right:W.right)):null!=W.right&&(W.left=le.scrollWidth-le.clientWidth-W.right),this._applyScrollToOptions(W)}_applyScrollToOptions(W){const le=this.elementRef.nativeElement;(0,ce.Mq)()?le.scrollTo(W):(null!=W.top&&(le.scrollTop=W.top),null!=W.left&&(le.scrollLeft=W.left))}measureScrollOffset(W){const le="left",ae=this.elementRef.nativeElement;if("top"==W)return ae.scrollTop;if("bottom"==W)return ae.scrollHeight-ae.clientHeight-ae.scrollTop;const Ze=this.dir&&"rtl"==this.dir.value;return"start"==W?W=Ze?"right":le:"end"==W&&(W=Ze?le:"right"),Ze&&2==(0,ce._i)()?W==le?ae.scrollWidth-ae.clientWidth-ae.scrollLeft:ae.scrollLeft:Ze&&1==(0,ce._i)()?W==le?ae.scrollLeft+ae.scrollWidth-ae.clientWidth:-ae.scrollLeft:W==le?ae.scrollLeft:ae.scrollWidth-ae.clientWidth-ae.scrollLeft}}return rt.\u0275fac=function(W){return new(W||rt)(d.Y36(d.SBq),d.Y36(Ge),d.Y36(d.R0b),d.Y36(v.Is,8))},rt.\u0275dir=d.lG2({type:rt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),rt})(),Pe=(()=>{class rt{constructor(W,le,ie){this._platform=W,this._change=new _.x,this._changeListener=ae=>{this._change.next(ae)},this._document=ie,le.runOutsideAngular(()=>{if(W.isBrowser){const ae=this._getWindow();ae.addEventListener("resize",this._changeListener),ae.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const W=this._getWindow();W.removeEventListener("resize",this._changeListener),W.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const W={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),W}getViewportRect(){const W=this.getViewportScrollPosition(),{width:le,height:ie}=this.getViewportSize();return{top:W.top,left:W.left,bottom:W.top+ie,right:W.left+le,height:ie,width:le}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const W=this._document,le=this._getWindow(),ie=W.documentElement,ae=ie.getBoundingClientRect();return{top:-ae.top||W.body.scrollTop||le.scrollY||ie.scrollTop||0,left:-ae.left||W.body.scrollLeft||le.scrollX||ie.scrollLeft||0}}change(W=20){return W>0?this._change.pipe((0,N.e)(W)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const W=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:W.innerWidth,height:W.innerHeight}:{width:0,height:0}}}return rt.\u0275fac=function(W){return new(W||rt)(d.LFG(ce.t4),d.LFG(d.R0b),d.LFG(ve.K0,8))},rt.\u0275prov=d.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})();const we=new d.OlP("VIRTUAL_SCROLLABLE");let j=(()=>{class rt extends Ce{constructor(W,le,ie,ae){super(W,le,ie,ae)}measureViewportSize(W){const le=this.elementRef.nativeElement;return"horizontal"===W?le.clientWidth:le.clientHeight}}return rt.\u0275fac=function(W){return new(W||rt)(d.Y36(d.SBq),d.Y36(Ge),d.Y36(d.R0b),d.Y36(v.Is,8))},rt.\u0275dir=d.lG2({type:rt,features:[d.qOj]}),rt})();const F=typeof requestAnimationFrame<"u"?y.Z:E.E;let ge=(()=>{class rt extends j{constructor(W,le,ie,ae,Ze,Je,ct,ze){super(W,Je,ie,Ze),this.elementRef=W,this._changeDetectorRef=le,this._scrollStrategy=ae,this.scrollable=ze,this._detachedSubject=new _.x,this._renderedRangeSubject=new _.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(oe=>this._scrollStrategy.scrolledIndexChange.subscribe(V=>Promise.resolve().then(()=>this.ngZone.run(()=>oe.next(V))))),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=S.w0.EMPTY,this._viewportChanges=ct.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(W){this._orientation!==W&&(this._orientation=W,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(W){this._appendOnly=(0,e.Ig)(W)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ne.O)(null),(0,N.e)(0,F)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(W){this.ngZone.runOutsideAngular(()=>{this._forOf=W,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(le=>{const ie=le.length;ie!==this._dataLength&&(this._dataLength=ie,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(W){return this.getElementRef().nativeElement.getBoundingClientRect()[W]}setTotalContentSize(W){this._totalContentSize!==W&&(this._totalContentSize=W,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(W){(function I(rt,ht){return rt.start==ht.start&&rt.end==ht.end})(this._renderedRange,W)||(this.appendOnly&&(W={start:0,end:Math.max(this._renderedRange.end,W.end)}),this._renderedRangeSubject.next(this._renderedRange=W),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(W,le="to-start"){W=this.appendOnly&&"to-start"===le?0:W;const ae="horizontal"==this.orientation,Ze=ae?"X":"Y";let ct=`translate${Ze}(${Number((ae&&this.dir&&"rtl"==this.dir.value?-1:1)*W)}px)`;this._renderedContentOffset=W,"to-end"===le&&(ct+=` translate${Ze}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=ct&&(this._renderedContentTransform=ct,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(W,le="auto"){const ie={behavior:le};"horizontal"===this.orientation?ie.start=W:ie.top=W,this.scrollable.scrollTo(ie)}scrollToIndex(W,le="auto"){this._scrollStrategy.scrollToIndex(W,le)}measureScrollOffset(W){let le;return le=this.scrollable==this?ie=>super.measureScrollOffset(ie):ie=>this.scrollable.measureScrollOffset(ie),Math.max(0,le(W??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(W){var le;let ie;const Je="rtl"==(null===(le=this.dir)||void 0===le?void 0:le.value);ie="start"==W?Je?"right":"left":"end"==W?Je?"left":"right":W||("horizontal"===this.orientation?"left":"top");const ct=this.scrollable.measureBoundingClientRectWithScrollOffset(ie);return this.elementRef.nativeElement.getBoundingClientRect()[ie]-ct}measureRenderedContentSize(){const W=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?W.offsetWidth:W.offsetHeight}measureRangeSize(W){return this._forOf?this._forOf.measureRangeSize(W,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(W){W&&this._runAfterChangeDetection.push(W),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 W=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const le of W)le()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return rt.\u0275fac=function(W){return new(W||rt)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.R0b),d.Y36(q,8),d.Y36(v.Is,8),d.Y36(Ge),d.Y36(Pe),d.Y36(we,8))},rt.\u0275cmp=d.Xpm({type:rt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(W,le){if(1&W&&d.Gf(H,7),2&W){let ie;d.iGM(ie=d.CRH())&&(le._contentWrapper=ie.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(W,le){2&W&&d.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===le.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==le.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[d._Bn([{provide:Ce,useFactory:(ht,W)=>ht||W,deps:[j,rt]}]),d.qOj],ngContentSelectors:Y,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(W,le){1&W&&(d.F$t(),d.TgZ(0,"div",0,1),d.Hsn(2),d.qZA(),d._UZ(3,"div",2)),2&W&&(d.xp6(3),d.Udp("width",le._totalContentWidth)("height",le._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),rt})();function G(rt,ht,W){if(!W.getBoundingClientRect)return 0;const ie=W.getBoundingClientRect();return"horizontal"===rt?"start"===ht?ie.left:ie.right:"start"===ht?ie.top:ie.bottom}let _e=(()=>{class rt{constructor(W,le,ie,ae,Ze,Je){this._viewContainerRef=W,this._template=le,this._differs=ie,this._viewRepeater=ae,this._viewport=Ze,this.viewChange=new _.x,this._dataSourceChanges=new _.x,this.dataStream=this._dataSourceChanges.pipe((0,ne.O)(null),(0,he.G)(),(0,ee.w)(([ct,ze])=>this._changeDataSource(ct,ze)),(0,fe.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.x,this.dataStream.subscribe(ct=>{this._data=ct,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Q.R)(this._destroyed)).subscribe(ct=>{this._renderedRange=ct,this.viewChange.observers.length&&Je.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(W){this._cdkVirtualForOf=W,(0,O.Z9)(W)?this._dataSourceChanges.next(W):this._dataSourceChanges.next(new O.P3((0,U.b)(W)?W:Array.from(W||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(W){this._needsUpdate=!0,this._cdkVirtualForTrackBy=W?(le,ie)=>W(le+(this._renderedRange?this._renderedRange.start:0),ie):void 0}set cdkVirtualForTemplate(W){W&&(this._needsUpdate=!0,this._template=W)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(W){this._viewRepeater.viewCacheSize=(0,e.su)(W)}measureRangeSize(W,le){if(W.start>=W.end)return 0;const ie=W.start-this._renderedRange.start,ae=W.end-W.start;let Ze,Je;for(let ct=0;ct-1;ct--){const ze=this._viewContainerRef.get(ct+ie);if(ze&&ze.rootNodes.length){Je=ze.rootNodes[ze.rootNodes.length-1];break}}return Ze&&Je?G(le,"end",Je)-G(le,"start",Ze):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const W=this._differ.diff(this._renderedItems);W?this._applyChanges(W):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((W,le)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(W,le):le)),this._needsUpdate=!0)}_changeDataSource(W,le){return W&&W.disconnect(this),this._needsUpdate=!0,le?le.connect(this):(0,w.of)()}_updateContext(){const W=this._data.length;let le=this._viewContainerRef.length;for(;le--;){const ie=this._viewContainerRef.get(le);ie.context.index=this._renderedRange.start+le,ie.context.count=W,this._updateComputedContextProperties(ie.context),ie.detectChanges()}}_applyChanges(W){this._viewRepeater.applyChanges(W,this._viewContainerRef,(ae,Ze,Je)=>this._getEmbeddedViewArgs(ae,Je),ae=>ae.item),W.forEachIdentityChange(ae=>{this._viewContainerRef.get(ae.currentIndex).context.$implicit=ae.item});const le=this._data.length;let ie=this._viewContainerRef.length;for(;ie--;){const ae=this._viewContainerRef.get(ie);ae.context.index=this._renderedRange.start+ie,ae.context.count=le,this._updateComputedContextProperties(ae.context)}}_updateComputedContextProperties(W){W.first=0===W.index,W.last=W.index===W.count-1,W.even=W.index%2==0,W.odd=!W.even}_getEmbeddedViewArgs(W,le){return{templateRef:this._template,context:{$implicit:W.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:le}}}return rt.\u0275fac=function(W){return new(W||rt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(O.k),d.Y36(ge,4),d.Y36(d.R0b))},rt.\u0275dir=d.lG2({type:rt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[d._Bn([{provide:O.k,useClass:O.eX}])]}),rt})(),Xe=(()=>{class rt{}return rt.\u0275fac=function(W){return new(W||rt)},rt.\u0275mod=d.oAB({type:rt}),rt.\u0275inj=d.cJS({}),rt})(),vt=(()=>{class rt{}return rt.\u0275fac=function(W){return new(W||rt)},rt.\u0275mod=d.oAB({type:rt}),rt.\u0275inj=d.cJS({imports:[v.vT,Xe,v.vT,Xe]}),rt})()},39349:(We,pe,h)=>{"use strict";h.d(pe,{IC:()=>z,Ky:()=>Q,Lq:()=>A});var e=h(83353),d=h(94650),_=h(21281),w=h(60515),g=h(77579),b=h(54968),y=h(23601),E=h(82722),S=h(36895);const U=(0,e.i$)({passive:!0});let A=(()=>{class ne{constructor(ee,fe){this._platform=ee,this._ngZone=fe,this._monitoredElements=new Map}monitor(ee){if(!this._platform.isBrowser)return w.E;const fe=(0,_.fI)(ee),ce=this._monitoredElements.get(fe);if(ce)return ce.subject;const ve=new g.x,v="cdk-text-field-autofilled",O=H=>{"cdk-text-field-autofill-start"!==H.animationName||fe.classList.contains(v)?"cdk-text-field-autofill-end"===H.animationName&&fe.classList.contains(v)&&(fe.classList.remove(v),this._ngZone.run(()=>ve.next({target:H.target,isAutofilled:!1}))):(fe.classList.add(v),this._ngZone.run(()=>ve.next({target:H.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{fe.addEventListener("animationstart",O,U),fe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(fe,{subject:ve,unlisten:()=>{fe.removeEventListener("animationstart",O,U)}}),ve}stopMonitoring(ee){const fe=(0,_.fI)(ee),ce=this._monitoredElements.get(fe);ce&&(ce.unlisten(),ce.subject.complete(),fe.classList.remove("cdk-text-field-autofill-monitored"),fe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(fe))}ngOnDestroy(){this._monitoredElements.forEach((ee,fe)=>this.stopMonitoring(fe))}}return ne.\u0275fac=function(ee){return new(ee||ne)(d.LFG(e.t4),d.LFG(d.R0b))},ne.\u0275prov=d.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),z=(()=>{class ne{constructor(ee,fe,ce,ve){this._elementRef=ee,this._platform=fe,this._ngZone=ce,this._destroyed=new g.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=v=>{this._hasFocus="focus"===v.type},this._document=ve,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ee){this._minRows=(0,_.su)(ee),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ee){this._maxRows=(0,_.su)(ee),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ee){ee=(0,_.Ig)(ee),this._enabled!==ee&&((this._enabled=ee)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ee){this._cachedPlaceholderHeight=void 0,ee?this._textareaElement.setAttribute("placeholder",ee):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ee=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.minHeight=ee)}_setMaxHeight(){const ee=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.maxHeight=ee)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ee=this._getWindow();(0,b.R)(ee,"resize").pipe((0,y.e)(16),(0,E.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 ee=this._textareaElement.cloneNode(!1);ee.rows=1,ee.style.position="absolute",ee.style.visibility="hidden",ee.style.border="none",ee.style.padding="0",ee.style.height="",ee.style.minHeight="",ee.style.maxHeight="",ee.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ee),this._cachedLineHeight=ee.clientHeight,ee.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ee=this._textareaElement,fe=ee.style.marginBottom||"",ce=this._platform.FIREFOX,ve=ce&&this._hasFocus,v=ce?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";ve&&(ee.style.marginBottom=`${ee.clientHeight}px`),ee.classList.add(v);const O=ee.scrollHeight-4;return ee.classList.remove(v),ve&&(ee.style.marginBottom=fe),O}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ee=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ee}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ee=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const fe=this._elementRef.nativeElement,ce=fe.value;if(!ee&&this._minRows===this._previousMinRows&&ce===this._previousValue)return;const ve=this._measureScrollHeight(),v=Math.max(ve,this._cachedPlaceholderHeight||0);fe.style.height=`${v}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(fe)):setTimeout(()=>this._scrollToCaretPosition(fe))}),this._previousValue=ce,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(ee){const{selectionStart:fe,selectionEnd:ce}=ee;!this._destroyed.isStopped&&this._hasFocus&&ee.setSelectionRange(fe,ce)}}return ne.\u0275fac=function(ee){return new(ee||ne)(d.Y36(d.SBq),d.Y36(e.t4),d.Y36(d.R0b),d.Y36(S.K0,8))},ne.\u0275dir=d.lG2({type:ne,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ee,fe){1&ee&&d.NdJ("input",function(){return fe._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ne})(),Q=(()=>{class ne{}return ne.\u0275fac=function(ee){return new(ee||ne)},ne.\u0275mod=d.oAB({type:ne}),ne.\u0275inj=d.cJS({}),ne})()},57851:(We,pe,h)=>{"use strict";h.d(pe,{C2:()=>z,HI:()=>ne,Hs:()=>q,Ud:()=>Ce,VY:()=>Q,XJ:()=>Ge,Xx:()=>De,_0:()=>Y,cu:()=>he,nZ:()=>Pe,rO:()=>fe});var e=h(95017),d=h(45191),_=h(77579),w=h(61135),g=h(39646),b=h(95698),y=h(39300),E=h(82722),S=h(94650),U=h(21281),A=h(40445);class N{constructor(){this.expansionModel=new e.Ov(!0)}toggle(j){this.expansionModel.toggle(this._trackByValue(j))}expand(j){this.expansionModel.select(this._trackByValue(j))}collapse(j){this.expansionModel.deselect(this._trackByValue(j))}isExpanded(j){return this.expansionModel.isSelected(this._trackByValue(j))}toggleDescendants(j){this.expansionModel.isSelected(this._trackByValue(j))?this.collapseDescendants(j):this.expandDescendants(j)}collapseAll(){this.expansionModel.clear()}expandDescendants(j){let I=[j];I.push(...this.getDescendants(j)),this.expansionModel.select(...I.map(F=>this._trackByValue(F)))}collapseDescendants(j){let I=[j];I.push(...this.getDescendants(j)),this.expansionModel.deselect(...I.map(F=>this._trackByValue(F)))}_trackByValue(j){return this.trackBy?this.trackBy(j):j}}class z extends N{constructor(j,I,F){super(),this.getLevel=j,this.isExpandable=I,this.options=F,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(j){const F=[];for(let ge=this.dataNodes.indexOf(j)+1;gethis._trackByValue(j)))}}class Q extends N{constructor(j,I){super(),this.getChildren=j,this.options=I,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const j=this.dataNodes.reduce((I,F)=>[...I,...this.getDescendants(F),F],[]);this.expansionModel.select(...j.map(I=>this._trackByValue(I)))}getDescendants(j){const I=[];return this._getDescendants(I,j),I.splice(1)}_getDescendants(j,I){j.push(I);const F=this.getChildren(I);Array.isArray(F)?F.forEach(ge=>this._getDescendants(j,ge)):(0,d.b)(F)&&F.pipe((0,b.q)(1),(0,y.h)(Boolean)).subscribe(ge=>{for(const G of ge)this._getDescendants(j,G)})}}const ne=new S.OlP("CDK_TREE_NODE_OUTLET_NODE");let he=(()=>{class we{constructor(I,F){this.viewContainer=I,this._node=F}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(S.s_b),S.Y36(ne,8))},we.\u0275dir=S.lG2({type:we,selectors:[["","cdkTreeNodeOutlet",""]]}),we})();class ee{constructor(j){this.$implicit=j}}let fe=(()=>{class we{constructor(I){this.template=I}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(S.Rgc))},we.\u0275dir=S.lG2({type:we,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),we})(),Y=(()=>{class we{constructor(I,F){this._differs=I,this._changeDetectorRef=F,this._onDestroy=new _.x,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(F=>!F.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,d.b)(this._dataSource)?I=this._dataSource:Array.isArray(this._dataSource)&&(I=(0,g.of)(this._dataSource)),I&&(this._dataSubscription=I.pipe((0,E.R)(this._onDestroy)).subscribe(F=>this.renderNodeChanges(F)))}renderNodeChanges(I,F=this._dataDiffer,ge=this._nodeOutlet.viewContainer,G){const _e=F.diff(I);!_e||(_e.forEachOperation((Te,et,Xe)=>{if(null==Te.previousIndex)this.insertNode(I[Xe],Xe,ge,G);else if(null==Xe)ge.remove(et),this._levels.delete(Te.item);else{const vt=ge.get(et);ge.move(vt,Xe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(I,F){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(G=>G.when&&G.when(F,I))||this._defaultNodeDef}insertNode(I,F,ge,G){const _e=this._getNodeDef(I,F),Te=new ee(I);Te.level=this.treeControl.getLevel?this.treeControl.getLevel(I):typeof G<"u"&&this._levels.has(G)?this._levels.get(G)+1:0,this._levels.set(I,Te.level),(ge||this._nodeOutlet.viewContainer).createEmbeddedView(_e.template,Te,F),q.mostRecentTreeNode&&(q.mostRecentTreeNode.data=I)}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(S.ZZ4),S.Y36(S.sBO))},we.\u0275cmp=S.Xpm({type:we,selectors:[["cdk-tree"]],contentQueries:function(I,F,ge){if(1&I&&S.Suo(ge,fe,5),2&I){let G;S.iGM(G=S.CRH())&&(F._nodeDefs=G)}},viewQuery:function(I,F){if(1&I&&S.Gf(he,7),2&I){let ge;S.iGM(ge=S.CRH())&&(F._nodeOutlet=ge.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,F){1&I&&S.GkF(0,0)},dependencies:[he],encapsulation:2}),we})(),q=(()=>{class we{constructor(I,F){this._elementRef=I,this._tree=F,this._destroyed=new _.x,this._dataChanges=new _.x,we.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 ue(we){let j=we.parentElement;for(;j&&!Ee(j);)j=j.parentElement;return j?j.classList.contains("cdk-nested-tree-node")?(0,U.su)(j.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){we.mostRecentTreeNode===this&&(we.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return we.mostRecentTreeNode=null,we.\u0275fac=function(I){return new(I||we)(S.Y36(S.SBq),S.Y36(Y))},we.\u0275dir=S.lG2({type:we,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(I,F){2&I&&S.uIk("aria-expanded",F.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),we})();function Ee(we){const j=we.classList;return!!(null!=j&&j.contains("cdk-nested-tree-node")||null!=j&&j.contains("cdk-tree"))}let De=(()=>{class we extends q{constructor(I,F,ge){super(I,F),this._differs=ge}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,d.b)(I)&&I.pipe((0,E.R)(this._destroyed)).subscribe(F=>this.updateChildrenNodes(F)),this.nodeOutlet.changes.pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(I){const F=this._getNodeOutlet();I&&(this._children=I),F&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,F.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(F=>!F._node||F._node===this)}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(S.SBq),S.Y36(Y),S.Y36(S.ZZ4))},we.\u0275dir=S.lG2({type:we,selectors:[["cdk-nested-tree-node"]],contentQueries:function(I,F,ge){if(1&I&&S.Suo(ge,he,5),2&I){let G;S.iGM(G=S.CRH())&&(F.nodeOutlet=G)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[S._Bn([{provide:q,useExisting:we},{provide:ne,useExisting:we}]),S.qOj]}),we})();const Se=/([A-Za-z%]+)$/;let Ge=(()=>{class we{constructor(I,F,ge,G){this._treeNode=I,this._tree=F,this._element=ge,this._dir=G,this._destroyed=new _.x,this.indentUnits="px",this._indent=40,this._setPadding(),G&&G.change.pipe((0,E.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,F=this._level??I;return"number"==typeof F?`${F*this._indent}${this.indentUnits}`:null}_setPadding(I=!1){const F=this._paddingIndent();if(F!==this._currentPadding||I){const ge=this._element.nativeElement,G=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",_e="paddingLeft"===G?"paddingRight":"paddingLeft";ge.style[G]=F||"",ge.style[_e]="",this._currentPadding=F}}_setLevelInput(I){this._level=(0,U.su)(I,null),this._setPadding()}_setIndentInput(I){let F=I,ge="px";if("string"==typeof I){const G=I.split(Se);F=G[0],ge=G[1]||ge}this.indentUnits=ge,this._indent=(0,U.su)(F),this._setPadding()}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(q),S.Y36(Y),S.Y36(S.SBq),S.Y36(A.Is,8))},we.\u0275dir=S.lG2({type:we,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),we})(),Ce=(()=>{class we{constructor(I,F){this._tree=I,this._treeNode=F,this._recursive=!1}get recursive(){return this._recursive}set recursive(I){this._recursive=(0,U.Ig)(I)}_toggle(I){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),I.stopPropagation()}}return we.\u0275fac=function(I){return new(I||we)(S.Y36(Y),S.Y36(q))},we.\u0275dir=S.lG2({type:we,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(I,F){1&I&&S.NdJ("click",function(G){return F._toggle(G)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),we})(),Pe=(()=>{class we{}return we.\u0275fac=function(I){return new(I||we)},we.\u0275mod=S.oAB({type:we}),we.\u0275inj=S.cJS({}),we})()},36895:(We,pe,h)=>{"use strict";h.d(pe,{Do:()=>ve,ED:()=>hi,EM:()=>wr,HT:()=>g,JF:()=>mi,K0:()=>y,Mx:()=>An,NF:()=>Di,O5:()=>kn,Ov:()=>xe,PC:()=>rr,PM:()=>Ki,RF:()=>Ri,S$:()=>ee,V_:()=>U,Ye:()=>v,b0:()=>ce,bD:()=>Ci,ez:()=>$r,gd:()=>cn,i8:()=>ot,mk:()=>Vn,n9:()=>fi,p6:()=>o,q:()=>_,rS:()=>en,sg:()=>Gn,tP:()=>ar,uU:()=>jn,w_:()=>b});var e=h(94650);let d=null;function _(){return d}function g(ke){d||(d=ke)}class b{}const y=new e.OlP("DocumentToken");let E=(()=>{class ke{historyGo(Ne){throw new Error("Not implemented")}}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275prov=e.Yz7({token:ke,factory:function(){return function S(){return(0,e.LFG)(A)}()},providedIn:"platform"}),ke})();const U=new e.OlP("Location Initialized");let A=(()=>{class ke extends E{constructor(Ne){super(),this._doc=Ne,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(Ne){const gt=_().getGlobalEventTarget(this._doc,"window");return gt.addEventListener("popstate",Ne,!1),()=>gt.removeEventListener("popstate",Ne)}onHashChange(Ne){const gt=_().getGlobalEventTarget(this._doc,"window");return gt.addEventListener("hashchange",Ne,!1),()=>gt.removeEventListener("hashchange",Ne)}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(Ne){this.location.pathname=Ne}pushState(Ne,gt,Ot){N()?this._history.pushState(Ne,gt,Ot):this.location.hash=Ot}replaceState(Ne,gt,Ot){N()?this._history.replaceState(Ne,gt,Ot):this.location.hash=Ot}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ne=0){this._history.go(Ne)}getState(){return this._history.state}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.LFG(y))},ke.\u0275prov=e.Yz7({token:ke,factory:function(){return function z(){return new A((0,e.LFG)(y))}()},providedIn:"platform"}),ke})();function N(){return!!window.history.pushState}function Q(ke,ft){if(0==ke.length)return ft;if(0==ft.length)return ke;let Ne=0;return ke.endsWith("/")&&Ne++,ft.startsWith("/")&&Ne++,2==Ne?ke+ft.substring(1):1==Ne?ke+ft:ke+"/"+ft}function ne(ke){const ft=ke.match(/#|\?|$/),Ne=ft&&ft.index||ke.length;return ke.slice(0,Ne-("/"===ke[Ne-1]?1:0))+ke.slice(Ne)}function he(ke){return ke&&"?"!==ke[0]?"?"+ke:ke}let ee=(()=>{class ke{historyGo(Ne){throw new Error("Not implemented")}}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275prov=e.Yz7({token:ke,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"}),ke})();const fe=new e.OlP("appBaseHref");let ce=(()=>{class ke extends ee{constructor(Ne,gt){var Ot,zt,jt;super(),this._platformLocation=Ne,this._removeListenerFns=[],this._baseHref=null!==(Ot=null!==(zt=gt??this._platformLocation.getBaseHrefFromDOM())&&void 0!==zt?zt:null===(jt=(0,e.f3M)(y).location)||void 0===jt?void 0:jt.origin)&&void 0!==Ot?Ot:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ne){this._removeListenerFns.push(this._platformLocation.onPopState(Ne),this._platformLocation.onHashChange(Ne))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ne){return Q(this._baseHref,Ne)}path(Ne=!1){const gt=this._platformLocation.pathname+he(this._platformLocation.search),Ot=this._platformLocation.hash;return Ot&&Ne?`${gt}${Ot}`:gt}pushState(Ne,gt,Ot,zt){const jt=this.prepareExternalUrl(Ot+he(zt));this._platformLocation.pushState(Ne,gt,jt)}replaceState(Ne,gt,Ot,zt){const jt=this.prepareExternalUrl(Ot+he(zt));this._platformLocation.replaceState(Ne,gt,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ne=0){var gt,Ot;null===(gt=(Ot=this._platformLocation).historyGo)||void 0===gt||gt.call(Ot,Ne)}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.LFG(E),e.LFG(fe,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),ve=(()=>{class ke extends ee{constructor(Ne,gt){super(),this._platformLocation=Ne,this._baseHref="",this._removeListenerFns=[],null!=gt&&(this._baseHref=gt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ne){this._removeListenerFns.push(this._platformLocation.onPopState(Ne),this._platformLocation.onHashChange(Ne))}getBaseHref(){return this._baseHref}path(Ne=!1){let gt=this._platformLocation.hash;return null==gt&&(gt="#"),gt.length>0?gt.substring(1):gt}prepareExternalUrl(Ne){const gt=Q(this._baseHref,Ne);return gt.length>0?"#"+gt:gt}pushState(Ne,gt,Ot,zt){let jt=this.prepareExternalUrl(Ot+he(zt));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.pushState(Ne,gt,jt)}replaceState(Ne,gt,Ot,zt){let jt=this.prepareExternalUrl(Ot+he(zt));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.replaceState(Ne,gt,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ne=0){var gt,Ot;null===(gt=(Ot=this._platformLocation).historyGo)||void 0===gt||gt.call(Ot,Ne)}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.LFG(E),e.LFG(fe,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),v=(()=>{class ke{constructor(Ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Ne;const gt=this._locationStrategy.getBaseHref();this._baseHref=ne(Y(gt)),this._locationStrategy.onPopState(Ot=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ot.state,type:Ot.type})})}ngOnDestroy(){var Ne;null===(Ne=this._urlChangeSubscription)||void 0===Ne||Ne.unsubscribe(),this._urlChangeListeners=[]}path(Ne=!1){return this.normalize(this._locationStrategy.path(Ne))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Ne,gt=""){return this.path()==this.normalize(Ne+he(gt))}normalize(Ne){return ke.stripTrailingSlash(function H(ke,ft){return ke&&ft.startsWith(ke)?ft.substring(ke.length):ft}(this._baseHref,Y(Ne)))}prepareExternalUrl(Ne){return Ne&&"/"!==Ne[0]&&(Ne="/"+Ne),this._locationStrategy.prepareExternalUrl(Ne)}go(Ne,gt="",Ot=null){this._locationStrategy.pushState(Ot,"",Ne,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ne+he(gt)),Ot)}replaceState(Ne,gt="",Ot=null){this._locationStrategy.replaceState(Ot,"",Ne,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ne+he(gt)),Ot)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Ne=0){var gt,Ot;null===(gt=(Ot=this._locationStrategy).historyGo)||void 0===gt||gt.call(Ot,Ne)}onUrlChange(Ne){return this._urlChangeListeners.push(Ne),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(gt=>{this._notifyUrlChangeListeners(gt.url,gt.state)})),()=>{const gt=this._urlChangeListeners.indexOf(Ne);var Ot;this._urlChangeListeners.splice(gt,1),0===this._urlChangeListeners.length&&(null===(Ot=this._urlChangeSubscription)||void 0===Ot||Ot.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Ne="",gt){this._urlChangeListeners.forEach(Ot=>Ot(Ne,gt))}subscribe(Ne,gt,Ot){return this._subject.subscribe({next:Ne,error:gt,complete:Ot})}}return ke.normalizeQueryParams=he,ke.joinWithSlash=Q,ke.stripTrailingSlash=ne,ke.\u0275fac=function(Ne){return new(Ne||ke)(e.LFG(ee))},ke.\u0275prov=e.Yz7({token:ke,factory:function(){return function O(){return new v((0,e.LFG)(ee))}()},providedIn:"root"}),ke})();function Y(ke){return ke.replace(/\/index.html$/,"")}var De=(()=>((De=De||{})[De.Format=0]="Format",De[De.Standalone=1]="Standalone",De))(),Se=(()=>((Se=Se||{})[Se.Narrow=0]="Narrow",Se[Se.Abbreviated=1]="Abbreviated",Se[Se.Wide=2]="Wide",Se[Se.Short=3]="Short",Se))(),Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.Medium=1]="Medium",Ge[Ge.Long=2]="Long",Ge[Ge.Full=3]="Full",Ge))(),Ce=(()=>((Ce=Ce||{})[Ce.Decimal=0]="Decimal",Ce[Ce.Group=1]="Group",Ce[Ce.List=2]="List",Ce[Ce.PercentSign=3]="PercentSign",Ce[Ce.PlusSign=4]="PlusSign",Ce[Ce.MinusSign=5]="MinusSign",Ce[Ce.Exponential=6]="Exponential",Ce[Ce.SuperscriptingExponent=7]="SuperscriptingExponent",Ce[Ce.PerMille=8]="PerMille",Ce[Ce.Infinity=9]="Infinity",Ce[Ce.NaN=10]="NaN",Ce[Ce.TimeSeparator=11]="TimeSeparator",Ce[Ce.CurrencyDecimal=12]="CurrencyDecimal",Ce[Ce.CurrencyGroup=13]="CurrencyGroup",Ce))();function _e(ke,ft){return ze((0,e.cg1)(ke)[e.wAp.DateFormat],ft)}function Te(ke,ft){return ze((0,e.cg1)(ke)[e.wAp.TimeFormat],ft)}function et(ke,ft){return ze((0,e.cg1)(ke)[e.wAp.DateTimeFormat],ft)}function Xe(ke,ft){const Ne=(0,e.cg1)(ke),gt=Ne[e.wAp.NumberSymbols][ft];if(typeof gt>"u"){if(ft===Ce.CurrencyDecimal)return Ne[e.wAp.NumberSymbols][Ce.Decimal];if(ft===Ce.CurrencyGroup)return Ne[e.wAp.NumberSymbols][Ce.Group]}return gt}function ae(ke){if(!ke[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ke[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ze(ke,ft){for(let Ne=ft;Ne>-1;Ne--)if(typeof ke[Ne]<"u")return ke[Ne];throw new Error("Locale data API: locale data undefined")}function oe(ke){const[ft,Ne]=ke.split(":");return{hours:+ft,minutes:+Ne}}const f=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,l={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var n=(()=>((n=n||{})[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),i=(()=>((i=i||{})[i.DayPeriods=0]="DayPeriods",i[i.Days=1]="Days",i[i.Months=2]="Months",i[i.Eras=3]="Eras",i))();function o(ke,ft,Ne,gt){let Ot=function Pt(ke){if(rn(ke))return ke;if("number"==typeof ke&&!isNaN(ke))return new Date(ke);if("string"==typeof ke){if(ke=ke.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ke)){const[Ot,zt=1,jt=1]=ke.split("-").map(mn=>+mn);return c(Ot,zt-1,jt)}const Ne=parseFloat(ke);if(!isNaN(ke-Ne))return new Date(Ne);let gt;if(gt=ke.match(f))return function Vt(ke){const ft=new Date(0);let Ne=0,gt=0;const Ot=ke[8]?ft.setUTCFullYear:ft.setFullYear,zt=ke[8]?ft.setUTCHours:ft.setHours;ke[9]&&(Ne=Number(ke[9]+ke[10]),gt=Number(ke[9]+ke[11])),Ot.call(ft,Number(ke[1]),Number(ke[2])-1,Number(ke[3]));const jt=Number(ke[4]||0)-Ne,mn=Number(ke[5]||0)-gt,ii=Number(ke[6]||0),Xn=Math.floor(1e3*parseFloat("0."+(ke[7]||0)));return zt.call(ft,jt,mn,ii,Xn),ft}(gt)}const ft=new Date(ke);if(!rn(ft))throw new Error(`Unable to convert "${ke}" into a date`);return ft}(ke);ft=p(Ne,ft)||ft;let mn,jt=[];for(;ft;){if(mn=a.exec(ft),!mn){jt.push(ft);break}{jt=jt.concat(mn.slice(1));const Qn=jt.pop();if(!Qn)break;ft=Qn}}let ii=Ot.getTimezoneOffset();gt&&(ii=nt(gt,ii),Ot=function st(ke,ft,Ne){const gt=Ne?-1:1,Ot=ke.getTimezoneOffset();return function Le(ke,ft){return(ke=new Date(ke.getTime())).setMinutes(ke.getMinutes()+ft),ke}(ke,gt*(nt(ft,Ot)-Ot))}(Ot,gt,!0));let Xn="";return jt.forEach(Qn=>{const Hn=function $e(ke){if(Ve[ke])return Ve[ke];let ft;switch(ke){case"G":case"GG":case"GGG":ft=Et(i.Eras,Se.Abbreviated);break;case"GGGG":ft=Et(i.Eras,Se.Wide);break;case"GGGGG":ft=Et(i.Eras,Se.Narrow);break;case"y":ft=Dt(t.FullYear,1,0,!1,!0);break;case"yy":ft=Dt(t.FullYear,2,0,!0,!0);break;case"yyy":ft=Dt(t.FullYear,3,0,!1,!0);break;case"yyyy":ft=Dt(t.FullYear,4,0,!1,!0);break;case"Y":ft=de(1);break;case"YY":ft=de(2,!0);break;case"YYY":ft=de(3);break;case"YYYY":ft=de(4);break;case"M":case"L":ft=Dt(t.Month,1,1);break;case"MM":case"LL":ft=Dt(t.Month,2,1);break;case"MMM":ft=Et(i.Months,Se.Abbreviated);break;case"MMMM":ft=Et(i.Months,Se.Wide);break;case"MMMMM":ft=Et(i.Months,Se.Narrow);break;case"LLL":ft=Et(i.Months,Se.Abbreviated,De.Standalone);break;case"LLLL":ft=Et(i.Months,Se.Wide,De.Standalone);break;case"LLLLL":ft=Et(i.Months,Se.Narrow,De.Standalone);break;case"w":ft=$(1);break;case"ww":ft=$(2);break;case"W":ft=$(1,!0);break;case"d":ft=Dt(t.Date,1);break;case"dd":ft=Dt(t.Date,2);break;case"c":case"cc":ft=Dt(t.Day,1);break;case"ccc":ft=Et(i.Days,Se.Abbreviated,De.Standalone);break;case"cccc":ft=Et(i.Days,Se.Wide,De.Standalone);break;case"ccccc":ft=Et(i.Days,Se.Narrow,De.Standalone);break;case"cccccc":ft=Et(i.Days,Se.Short,De.Standalone);break;case"E":case"EE":case"EEE":ft=Et(i.Days,Se.Abbreviated);break;case"EEEE":ft=Et(i.Days,Se.Wide);break;case"EEEEE":ft=Et(i.Days,Se.Narrow);break;case"EEEEEE":ft=Et(i.Days,Se.Short);break;case"a":case"aa":case"aaa":ft=Et(i.DayPeriods,Se.Abbreviated);break;case"aaaa":ft=Et(i.DayPeriods,Se.Wide);break;case"aaaaa":ft=Et(i.DayPeriods,Se.Narrow);break;case"b":case"bb":case"bbb":ft=Et(i.DayPeriods,Se.Abbreviated,De.Standalone,!0);break;case"bbbb":ft=Et(i.DayPeriods,Se.Wide,De.Standalone,!0);break;case"bbbbb":ft=Et(i.DayPeriods,Se.Narrow,De.Standalone,!0);break;case"B":case"BB":case"BBB":ft=Et(i.DayPeriods,Se.Abbreviated,De.Format,!0);break;case"BBBB":ft=Et(i.DayPeriods,Se.Wide,De.Format,!0);break;case"BBBBB":ft=Et(i.DayPeriods,Se.Narrow,De.Format,!0);break;case"h":ft=Dt(t.Hours,1,-12);break;case"hh":ft=Dt(t.Hours,2,-12);break;case"H":ft=Dt(t.Hours,1);break;case"HH":ft=Dt(t.Hours,2);break;case"m":ft=Dt(t.Minutes,1);break;case"mm":ft=Dt(t.Minutes,2);break;case"s":ft=Dt(t.Seconds,1);break;case"ss":ft=Dt(t.Seconds,2);break;case"S":ft=Dt(t.FractionalSeconds,1);break;case"SS":ft=Dt(t.FractionalSeconds,2);break;case"SSS":ft=Dt(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ft=je(n.Short);break;case"ZZZZZ":ft=je(n.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ft=je(n.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ft=je(n.Long);break;default:return null}return Ve[ke]=ft,ft}(Qn);Xn+=Hn?Hn(Ot,Ne,ii):"''"===Qn?"'":Qn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xn}function c(ke,ft,Ne){const gt=new Date(0);return gt.setFullYear(ke,ft,Ne),gt.setHours(0,0,0),gt}function p(ke,ft){const Ne=function Pe(ke){return(0,e.cg1)(ke)[e.wAp.LocaleId]}(ke);if(l[Ne]=l[Ne]||{},l[Ne][ft])return l[Ne][ft];let gt="";switch(ft){case"shortDate":gt=_e(ke,Ge.Short);break;case"mediumDate":gt=_e(ke,Ge.Medium);break;case"longDate":gt=_e(ke,Ge.Long);break;case"fullDate":gt=_e(ke,Ge.Full);break;case"shortTime":gt=Te(ke,Ge.Short);break;case"mediumTime":gt=Te(ke,Ge.Medium);break;case"longTime":gt=Te(ke,Ge.Long);break;case"fullTime":gt=Te(ke,Ge.Full);break;case"short":const Ot=p(ke,"shortTime"),zt=p(ke,"shortDate");gt=M(et(ke,Ge.Short),[Ot,zt]);break;case"medium":const jt=p(ke,"mediumTime"),mn=p(ke,"mediumDate");gt=M(et(ke,Ge.Medium),[jt,mn]);break;case"long":const ii=p(ke,"longTime"),Xn=p(ke,"longDate");gt=M(et(ke,Ge.Long),[ii,Xn]);break;case"full":const Qn=p(ke,"fullTime"),Hn=p(ke,"fullDate");gt=M(et(ke,Ge.Full),[Qn,Hn])}return gt&&(l[Ne][ft]=gt),gt}function M(ke,ft){return ft&&(ke=ke.replace(/\{([^}]+)}/g,function(Ne,gt){return null!=ft&> in ft?ft[gt]:Ne})),ke}function Me(ke,ft,Ne="-",gt,Ot){let zt="";(ke<0||Ot&&ke<=0)&&(Ot?ke=1-ke:(ke=-ke,zt=Ne));let jt=String(ke);for(;jt.length0||mn>-Ne)&&(mn+=Ne),ke===t.Hours)0===mn&&-12===Ne&&(mn=12);else if(ke===t.FractionalSeconds)return function it(ke,ft){return Me(ke,3).substring(0,ft)}(mn,ft);const ii=Xe(jt,Ce.MinusSign);return Me(mn,ft,ii,gt,Ot)}}function Et(ke,ft,Ne=De.Format,gt=!1){return function(Ot,zt){return function pt(ke,ft,Ne,gt,Ot,zt){switch(Ne){case i.Months:return function I(ke,ft,Ne){const gt=(0,e.cg1)(ke),zt=ze([gt[e.wAp.MonthsFormat],gt[e.wAp.MonthsStandalone]],ft);return ze(zt,Ne)}(ft,Ot,gt)[ke.getMonth()];case i.Days:return function j(ke,ft,Ne){const gt=(0,e.cg1)(ke),zt=ze([gt[e.wAp.DaysFormat],gt[e.wAp.DaysStandalone]],ft);return ze(zt,Ne)}(ft,Ot,gt)[ke.getDay()];case i.DayPeriods:const jt=ke.getHours(),mn=ke.getMinutes();if(zt){const Xn=function Ze(ke){const ft=(0,e.cg1)(ke);return ae(ft),(ft[e.wAp.ExtraData][2]||[]).map(gt=>"string"==typeof gt?oe(gt):[oe(gt[0]),oe(gt[1])])}(ft),Qn=function Je(ke,ft,Ne){const gt=(0,e.cg1)(ke);ae(gt);const zt=ze([gt[e.wAp.ExtraData][0],gt[e.wAp.ExtraData][1]],ft)||[];return ze(zt,Ne)||[]}(ft,Ot,gt),Hn=Xn.findIndex(gi=>{if(Array.isArray(gi)){const[Yn,li]=gi,Kt=jt>=Yn.hours&&mn>=Yn.minutes,Dn=jt0?Math.floor(Ot/60):Math.ceil(Ot/60);switch(ke){case n.Short:return(Ot>=0?"+":"")+Me(jt,2,zt)+Me(Math.abs(Ot%60),2,zt);case n.ShortGMT:return"GMT"+(Ot>=0?"+":"")+Me(jt,1,zt);case n.Long:return"GMT"+(Ot>=0?"+":"")+Me(jt,2,zt)+":"+Me(Math.abs(Ot%60),2,zt);case n.Extended:return 0===gt?"Z":(Ot>=0?"+":"")+Me(jt,2,zt)+":"+Me(Math.abs(Ot%60),2,zt);default:throw new Error(`Unknown zone width "${ke}"`)}}}function Ie(ke){return c(ke.getFullYear(),ke.getMonth(),ke.getDate()+(4-ke.getDay()))}function $(ke,ft=!1){return function(Ne,gt){let Ot;if(ft){const zt=new Date(Ne.getFullYear(),Ne.getMonth(),1).getDay()-1,jt=Ne.getDate();Ot=1+Math.floor((jt+zt)/7)}else{const zt=Ie(Ne),jt=function ye(ke){const ft=c(ke,0,1).getDay();return c(ke,0,1+(ft<=4?4:11)-ft)}(zt.getFullYear()),mn=zt.getTime()-jt.getTime();Ot=1+Math.round(mn/6048e5)}return Me(Ot,ke,Xe(gt,Ce.MinusSign))}}function de(ke,ft=!1){return function(Ne,gt){return Me(Ie(Ne).getFullYear(),ke,Xe(gt,Ce.MinusSign),ft)}}const Ve={};function nt(ke,ft){ke=ke.replace(/:/g,"");const Ne=Date.parse("Jan 01, 1970 00:00:00 "+ke)/6e4;return isNaN(Ne)?ft:Ne}function rn(ke){return ke instanceof Date&&!isNaN(ke.valueOf())}function An(ke,ft){ft=encodeURIComponent(ft);for(const Ne of ke.split(";")){const gt=Ne.indexOf("="),[Ot,zt]=-1==gt?[Ne,""]:[Ne.slice(0,gt),Ne.slice(gt+1)];if(Ot.trim()===ft)return decodeURIComponent(zt)}return null}let Vn=(()=>{class ke{constructor(Ne,gt,Ot,zt){this._iterableDiffers=Ne,this._keyValueDiffers=gt,this._ngEl=Ot,this._renderer=zt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ne){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ne?Ne.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ne){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ne?Ne.split(/\s+/):Ne,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 Ne=this._iterableDiffer.diff(this._rawClass);Ne&&this._applyIterableChanges(Ne)}else if(this._keyValueDiffer){const Ne=this._keyValueDiffer.diff(this._rawClass);Ne&&this._applyKeyValueChanges(Ne)}}_applyKeyValueChanges(Ne){Ne.forEachAddedItem(gt=>this._toggleClass(gt.key,gt.currentValue)),Ne.forEachChangedItem(gt=>this._toggleClass(gt.key,gt.currentValue)),Ne.forEachRemovedItem(gt=>{gt.previousValue&&this._toggleClass(gt.key,!1)})}_applyIterableChanges(Ne){Ne.forEachAddedItem(gt=>{if("string"!=typeof gt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(gt.item)}`);this._toggleClass(gt.item,!0)}),Ne.forEachRemovedItem(gt=>this._toggleClass(gt.item,!1))}_applyClasses(Ne){Ne&&(Array.isArray(Ne)||Ne instanceof Set?Ne.forEach(gt=>this._toggleClass(gt,!0)):Object.keys(Ne).forEach(gt=>this._toggleClass(gt,!!Ne[gt])))}_removeClasses(Ne){Ne&&(Array.isArray(Ne)||Ne instanceof Set?Ne.forEach(gt=>this._toggleClass(gt,!1)):Object.keys(Ne).forEach(gt=>this._toggleClass(gt,!1)))}_toggleClass(Ne,gt){(Ne=Ne.trim())&&Ne.split(/\s+/g).forEach(Ot=>{gt?this._renderer.addClass(this._ngEl.nativeElement,Ot):this._renderer.removeClass(this._ngEl.nativeElement,Ot)})}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ke})();class oi{constructor(ft,Ne,gt,Ot){this.$implicit=ft,this.ngForOf=Ne,this.index=gt,this.count=Ot}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 Gn=(()=>{class ke{constructor(Ne,gt,Ot){this._viewContainer=Ne,this._template=gt,this._differs=Ot,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ne){this._ngForOf=Ne,this._ngForOfDirty=!0}set ngForTrackBy(Ne){this._trackByFn=Ne}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ne){Ne&&(this._template=Ne)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ne=this._ngForOf;!this._differ&&Ne&&(this._differ=this._differs.find(Ne).create(this.ngForTrackBy))}if(this._differ){const Ne=this._differ.diff(this._ngForOf);Ne&&this._applyChanges(Ne)}}_applyChanges(Ne){const gt=this._viewContainer;Ne.forEachOperation((Ot,zt,jt)=>{if(null==Ot.previousIndex)gt.createEmbeddedView(this._template,new oi(Ot.item,this._ngForOf,-1,-1),null===jt?void 0:jt);else if(null==jt)gt.remove(null===zt?void 0:zt);else if(null!==zt){const mn=gt.get(zt);gt.move(mn,jt),In(mn,Ot)}});for(let Ot=0,zt=gt.length;Ot{In(gt.get(Ot.currentIndex),Ot)})}static ngTemplateContextGuard(Ne,gt){return!0}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ke})();function In(ke,ft){ke.context.$implicit=ft.item}let kn=(()=>{class ke{constructor(Ne,gt){this._viewContainer=Ne,this._context=new Zn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=gt}set ngIf(Ne){this._context.$implicit=this._context.ngIf=Ne,this._updateView()}set ngIfThen(Ne){Ni("ngIfThen",Ne),this._thenTemplateRef=Ne,this._thenViewRef=null,this._updateView()}set ngIfElse(Ne){Ni("ngIfElse",Ne),this._elseTemplateRef=Ne,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(Ne,gt){return!0}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.s_b),e.Y36(e.Rgc))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ke})();class Zn{constructor(){this.$implicit=null,this.ngIf=null}}function Ni(ke,ft){if(ft&&!ft.createEmbeddedView)throw new Error(`${ke} must be a TemplateRef, but received '${(0,e.AaK)(ft)}'.`)}class ki{constructor(ft,Ne){this._viewContainerRef=ft,this._templateRef=Ne,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ft){ft&&!this._created?this.create():!ft&&this._created&&this.destroy()}}let Ri=(()=>{class ke{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ne){this._ngSwitch=Ne,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ne){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ne)}_matchCase(Ne){const gt=Ne==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),gt}_updateDefaultCases(Ne){if(this._defaultViews&&Ne!==this._defaultUsed){this._defaultUsed=Ne;for(let gt=0;gt{class ke{constructor(Ne,gt,Ot){this.ngSwitch=Ot,Ot._addCase(),this._view=new ki(Ne,gt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ri,9))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ke})(),hi=(()=>{class ke{constructor(Ne,gt,Ot){Ot._addDefault(new ki(Ne,gt))}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ri,9))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ke})(),rr=(()=>{class ke{constructor(Ne,gt,Ot){this._ngEl=Ne,this._differs=gt,this._renderer=Ot,this._ngStyle=null,this._differ=null}set ngStyle(Ne){this._ngStyle=Ne,!this._differ&&Ne&&(this._differ=this._differs.find(Ne).create())}ngDoCheck(){if(this._differ){const Ne=this._differ.diff(this._ngStyle);Ne&&this._applyChanges(Ne)}}_setStyle(Ne,gt){const[Ot,zt]=Ne.split("."),jt=-1===Ot.indexOf("-")?void 0:e.JOm.DashCase;null!=gt?this._renderer.setStyle(this._ngEl.nativeElement,Ot,zt?`${gt}${zt}`:gt,jt):this._renderer.removeStyle(this._ngEl.nativeElement,Ot,jt)}_applyChanges(Ne){Ne.forEachRemovedItem(gt=>this._setStyle(gt.key,null)),Ne.forEachAddedItem(gt=>this._setStyle(gt.key,gt.currentValue)),Ne.forEachChangedItem(gt=>this._setStyle(gt.key,gt.currentValue))}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ke})(),ar=(()=>{class ke{constructor(Ne){this._viewContainerRef=Ne,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Ne){if(Ne.ngTemplateOutlet||Ne.ngTemplateOutletInjector){const gt=this._viewContainerRef;if(this._viewRef&>.remove(gt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ot,ngTemplateOutletContext:zt,ngTemplateOutletInjector:jt}=this;this._viewRef=gt.createEmbeddedView(Ot,zt,jt?{injector:jt}:void 0)}else this._viewRef=null}else this._viewRef&&Ne.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.s_b))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),ke})();function _i(ke,ft){return new e.vHH(2100,!1)}class Tt{createSubscription(ft,Ne){return ft.subscribe({next:Ne,error:gt=>{throw gt}})}dispose(ft){ft.unsubscribe()}}class Xt{createSubscription(ft,Ne){return ft.then(Ne,gt=>{throw gt})}dispose(ft){}}const te=new Xt,dt=new Tt;let xe=(()=>{class ke{constructor(Ne){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Ne}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Ne){return this._obj?Ne!==this._obj?(this._dispose(),this.transform(Ne)):this._latestValue:(Ne&&this._subscribe(Ne),this._latestValue)}_subscribe(Ne){this._obj=Ne,this._strategy=this._selectStrategy(Ne),this._subscription=this._strategy.createSubscription(Ne,gt=>this._updateLatestValue(Ne,gt))}_selectStrategy(Ne){if((0,e.QGY)(Ne))return te;if((0,e.F4k)(Ne))return dt;throw _i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ne,gt){Ne===this._obj&&(this._latestValue=gt,this._ref.markForCheck())}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.sBO,16))},ke.\u0275pipe=e.Yjl({name:"async",type:ke,pure:!1,standalone:!0}),ke})(),ot=(()=>{class ke{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw _i();return Ne.toLowerCase()}}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275pipe=e.Yjl({name:"lowercase",type:ke,pure:!0,standalone:!0}),ke})();const Nt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let en=(()=>{class ke{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw _i();return Ne.replace(Nt,gt=>gt[0].toUpperCase()+gt.slice(1).toLowerCase())}}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275pipe=e.Yjl({name:"titlecase",type:ke,pure:!0,standalone:!0}),ke})(),cn=(()=>{class ke{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw _i();return Ne.toUpperCase()}}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275pipe=e.Yjl({name:"uppercase",type:ke,pure:!0,standalone:!0}),ke})();const Fn=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let jn=(()=>{class ke{constructor(Ne,gt){this.locale=Ne,this.defaultTimezone=gt}transform(Ne,gt="mediumDate",Ot,zt){if(null==Ne||""===Ne||Ne!=Ne)return null;try{var jt;return o(Ne,gt,zt||this.locale,null!==(jt=Ot??this.defaultTimezone)&&void 0!==jt?jt:void 0)}catch(mn){throw _i()}}}return ke.\u0275fac=function(Ne){return new(Ne||ke)(e.Y36(e.soG,16),e.Y36(Fn,24))},ke.\u0275pipe=e.Yjl({name:"date",type:ke,pure:!0,standalone:!0}),ke})(),$r=(()=>{class ke{}return ke.\u0275fac=function(Ne){return new(Ne||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({}),ke})();const Ci="browser";function Di(ke){return ke===Ci}function Ki(ke){return"server"===ke}let wr=(()=>{class ke{}return ke.\u0275prov=(0,e.Yz7)({token:ke,providedIn:"root",factory:()=>new vi((0,e.LFG)(y),window)}),ke})();class vi{constructor(ft,Ne){this.document=ft,this.window=Ne,this.offset=()=>[0,0]}setOffset(ft){this.offset=Array.isArray(ft)?()=>ft:ft}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ft){this.supportsScrolling()&&this.window.scrollTo(ft[0],ft[1])}scrollToAnchor(ft){if(!this.supportsScrolling())return;const Ne=function ca(ke,ft){const Ne=ke.getElementById(ft)||ke.getElementsByName(ft)[0];if(Ne)return Ne;if("function"==typeof ke.createTreeWalker&&ke.body&&(ke.body.createShadowRoot||ke.body.attachShadow)){const gt=ke.createTreeWalker(ke.body,NodeFilter.SHOW_ELEMENT);let Ot=gt.currentNode;for(;Ot;){const zt=Ot.shadowRoot;if(zt){const jt=zt.getElementById(ft)||zt.querySelector(`[name="${ft}"]`);if(jt)return jt}Ot=gt.nextNode()}}return null}(this.document,ft);Ne&&(this.scrollToElement(Ne),Ne.focus())}setHistoryScrollRestoration(ft){if(this.supportScrollRestoration()){const Ne=this.window.history;Ne&&Ne.scrollRestoration&&(Ne.scrollRestoration=ft)}}scrollToElement(ft){const Ne=ft.getBoundingClientRect(),gt=Ne.left+this.window.pageXOffset,Ot=Ne.top+this.window.pageYOffset,zt=this.offset();this.window.scrollTo(gt-zt[0],Ot-zt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ft=jr(this.window.history)||jr(Object.getPrototypeOf(this.window.history));return!(!ft||!ft.writable&&!ft.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function jr(ke){return Object.getOwnPropertyDescriptor(ke,"scrollRestoration")}class mi{}},80529:(We,pe,h)=>{"use strict";h.d(pe,{JF:()=>s,LE:()=>fe,TP:()=>j,WM:()=>U,Zn:()=>Ge,eN:()=>Pe,qT:()=>ve});var e=h(36895),d=h(94650),_=h(39646),w=h(69751),g=h(24351),b=h(39300),y=h(54004);class E{}class S{}class U{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const o=t.slice(0,i),c=o.toLowerCase(),p=t.slice(i+1).trim();this.maybeSetNormalizedName(o,c),this.headers.has(c)?this.headers.get(c).push(p):this.headers.set(c,[p])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let i=n[t];const o=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new U;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...i),this.headers.set(t,o);break;case"d":const c=n.value;if(c){let p=this.headers.get(t);if(!p)return;p=p.filter(M=>-1===c.indexOf(M)),0===p.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,p)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class N{encodeKey(n){return he(n)}encodeValue(n){return he(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Q=/%(\d[a-f0-9])/gi,ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(a){return encodeURIComponent(a).replace(Q,(n,t)=>{var i;return null!==(i=ne[t])&&void 0!==i?i:n})}function ee(a){return`${a}`}class fe{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new N,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(a,n){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(o=>{const c=o.indexOf("="),[p,M]=-1==c?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,c)),n.decodeValue(o.slice(c+1))],Me=t.get(p)||[];Me.push(M),t.set(p,Me)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],o=Array.isArray(i)?i.map(ee):[ee(i)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(c=>{t.push({param:i,value:c,op:"a"})}):t.push({param:i,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new fe({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(ee(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(ee(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function O(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function H(a){return typeof Blob<"u"&&a instanceof Blob}function Y(a){return typeof FormData<"u"&&a instanceof FormData}class ue{constructor(n,t,i,o){let c;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function v(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,c=o):c=i,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new U),this.context||(this.context=new ve),this.params){const p=this.params.toString();if(0===p.length)this.urlWithParams=t;else{const M=t.indexOf("?");this.urlWithParams=t+(-1===M?"?":MEt.set(pt,n.setHeaders[pt]),it)),n.setParams&&(Dt=Object.keys(n.setParams).reduce((Et,pt)=>Et.set(pt,n.setParams[pt]),Dt)),new ue(i,o,p,{params:Dt,headers:it,context:Zt,reportProgress:Me,responseType:c,withCredentials:M})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class De{constructor(n,t=200,i="OK"){this.headers=n.headers||new U,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Se extends De{constructor(n={}){super(n),this.type=Ee.ResponseHeader}clone(n={}){return new Se({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ge extends De{constructor(n={}){super(n),this.type=Ee.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ge({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ce extends De{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function qe(a,n){return{body:n,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Pe=(()=>{class a{constructor(t){this.handler=t}request(t,i,o={}){let c;if(t instanceof ue)c=t;else{let Me,it;Me=o.headers instanceof U?o.headers:new U(o.headers),o.params&&(it=o.params instanceof fe?o.params:new fe({fromObject:o.params})),c=new ue(t,i,void 0!==o.body?o.body:null,{headers:Me,context:o.context,params:it,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const p=(0,_.of)(c).pipe((0,g.b)(Me=>this.handler.handle(Me)));if(t instanceof ue||"events"===o.observe)return p;const M=p.pipe((0,b.h)(Me=>Me instanceof Ge));switch(o.observe||"body"){case"body":switch(c.responseType){case"arraybuffer":return M.pipe((0,y.U)(Me=>{if(null!==Me.body&&!(Me.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Me.body}));case"blob":return M.pipe((0,y.U)(Me=>{if(null!==Me.body&&!(Me.body instanceof Blob))throw new Error("Response is not a Blob.");return Me.body}));case"text":return M.pipe((0,y.U)(Me=>{if(null!==Me.body&&"string"!=typeof Me.body)throw new Error("Response is not a string.");return Me.body}));default:return M.pipe((0,y.U)(Me=>Me.body))}case"response":return M;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new fe).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,o={}){return this.request("PATCH",t,qe(o,i))}post(t,i,o={}){return this.request("POST",t,qe(o,i))}put(t,i,o={}){return this.request("PUT",t,qe(o,i))}}return a.\u0275fac=function(t){return new(t||a)(d.LFG(E))},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})();class we{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const j=new d.OlP("HTTP_INTERCEPTORS");let I=(()=>{class a{intercept(t,i){return i.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})();const ht=/^\)\]\}',?\n/;let le=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(i=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((pt,je)=>o.setRequestHeader(pt,je.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const pt=t.detectContentTypeHeader();null!==pt&&o.setRequestHeader("Content-Type",pt)}if(t.responseType){const pt=t.responseType.toLowerCase();o.responseType="json"!==pt?pt:"text"}const c=t.serializeBody();let p=null;const M=()=>{if(null!==p)return p;const pt=o.statusText||"OK",je=new U(o.getAllResponseHeaders()),Oe=function W(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(o)||t.url;return p=new Se({headers:je,status:o.status,statusText:pt,url:Oe}),p},Me=()=>{let{headers:pt,status:je,statusText:Oe,url:Qe}=M(),ye=null;204!==je&&(ye=typeof o.response>"u"?o.responseText:o.response),0===je&&(je=ye?200:0);let Ie=je>=200&&je<300;if("json"===t.responseType&&"string"==typeof ye){const $=ye;ye=ye.replace(ht,"");try{ye=""!==ye?JSON.parse(ye):null}catch(de){ye=$,Ie&&(Ie=!1,ye={error:de,text:ye})}}Ie?(i.next(new Ge({body:ye,headers:pt,status:je,statusText:Oe,url:Qe||void 0})),i.complete()):i.error(new Ce({error:ye,headers:pt,status:je,statusText:Oe,url:Qe||void 0}))},it=pt=>{const{url:je}=M(),Oe=new Ce({error:pt,status:o.status||0,statusText:o.statusText||"Unknown Error",url:je||void 0});i.error(Oe)};let Dt=!1;const Zt=pt=>{Dt||(i.next(M()),Dt=!0);let je={type:Ee.DownloadProgress,loaded:pt.loaded};pt.lengthComputable&&(je.total=pt.total),"text"===t.responseType&&!!o.responseText&&(je.partialText=o.responseText),i.next(je)},Et=pt=>{let je={type:Ee.UploadProgress,loaded:pt.loaded};pt.lengthComputable&&(je.total=pt.total),i.next(je)};return o.addEventListener("load",Me),o.addEventListener("error",it),o.addEventListener("timeout",it),o.addEventListener("abort",it),t.reportProgress&&(o.addEventListener("progress",Zt),null!==c&&o.upload&&o.upload.addEventListener("progress",Et)),o.send(c),i.next({type:Ee.Sent}),()=>{o.removeEventListener("error",it),o.removeEventListener("abort",it),o.removeEventListener("load",Me),o.removeEventListener("timeout",it),t.reportProgress&&(o.removeEventListener("progress",Zt),null!==c&&o.upload&&o.upload.removeEventListener("progress",Et)),o.readyState!==o.DONE&&o.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(d.LFG(e.JF))},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})();const ie=new d.OlP("XSRF_COOKIE_NAME"),ae=new d.OlP("XSRF_HEADER_NAME");class Ze{}let Je=(()=>{class a{constructor(t,i,o){this.doc=t,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(d.LFG(e.K0),d.LFG(d.Lbi),d.LFG(ie))},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})(),ct=(()=>{class a{constructor(t,i){this.tokenService=t,this.headerName=i}intercept(t,i){const o=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(t);const c=this.tokenService.getToken();return null!==c&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,c)})),i.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(d.LFG(Ze),d.LFG(ae))},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})(),ze=(()=>{class a{constructor(t,i){this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=this.injector.get(j,[]);this.chain=i.reduceRight((o,c)=>new we(o,c),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(d.LFG(S),d.LFG(d.zs3))},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac}),a})(),r=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:ct,useClass:I}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:ie,useValue:t.cookieName}:[],t.headerName?{provide:ae,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=d.oAB({type:a}),a.\u0275inj=d.cJS({providers:[ct,{provide:j,useExisting:ct,multi:!0},{provide:Ze,useClass:Je},{provide:ie,useValue:"XSRF-TOKEN"},{provide:ae,useValue:"X-XSRF-TOKEN"}]}),a})(),s=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=d.oAB({type:a}),a.\u0275inj=d.cJS({providers:[Pe,{provide:E,useClass:ze},le,{provide:S,useExisting:le}],imports:[r.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(We,pe,h)=>{"use strict";h.d(pe,{$8M:()=>Ua,$Z:()=>Fp,AFp:()=>qg,ALo:()=>fg,AaK:()=>E,AsE:()=>Vu,B6R:()=>Qe,BQk:()=>Rc,CHM:()=>Vi,CRH:()=>Mg,CZH:()=>zc,CqO:()=>Of,D6c:()=>Gy,DdM:()=>ag,Dn7:()=>_g,EJc:()=>ry,EiD:()=>nr,EpF:()=>If,F$t:()=>kf,F4k:()=>Rf,FYo:()=>Gh,FiY:()=>ba,G48:()=>wy,Gf:()=>Tg,GfV:()=>Zh,GkF:()=>Su,Gpc:()=>A,Gre:()=>hm,HOy:()=>Uu,Hsn:()=>Vf,Ikx:()=>Gu,JOm:()=>Ea,JVY:()=>hd,Jf7:()=>tp,KtG:()=>Oi,L6k:()=>pd,LAX:()=>md,LFG:()=>Pi,LSH:()=>Ja,Lbi:()=>ey,Lck:()=>Xv,MAs:()=>Pf,MGl:()=>Oc,MMx:()=>Xu,NdJ:()=>Iu,O4$:()=>pa,OlP:()=>ei,Oqu:()=>ku,PXZ:()=>by,Q2q:()=>wu,Q6J:()=>Mu,QGY:()=>Pu,QP$:()=>Ys,QbO:()=>ty,Qsj:()=>j_,R0b:()=>kr,RDi:()=>id,Rgc:()=>Bl,SBq:()=>bl,Sil:()=>oy,Suo:()=>wg,TTD:()=>_r,TgZ:()=>Sc,Tol:()=>em,Udp:()=>Lu,VKq:()=>og,W1O:()=>Pg,WFA:()=>Ru,WLB:()=>sg,XFs:()=>ct,Xpm:()=>Oe,Xts:()=>Yr,Y36:()=>Ss,YKP:()=>Qm,YNc:()=>Sf,Yjl:()=>nt,Yz7:()=>Te,ZZ4:()=>yh,_Bn:()=>qm,_UZ:()=>Du,_Vd:()=>Al,_c5:()=>Uy,_uU:()=>sm,aQg:()=>Th,c2e:()=>ny,cJS:()=>Xe,cg1:()=>zu,d8E:()=>Zu,dDg:()=>my,dqk:()=>i,eBb:()=>fd,eFA:()=>c_,ekj:()=>Bu,eoX:()=>o_,evT:()=>np,f3M:()=>Jl,g9A:()=>Kg,h0i:()=>zs,hGG:()=>jy,hYB:()=>Hu,hij:()=>Lc,iGM:()=>yg,ifc:()=>t,ip1:()=>$g,kEZ:()=>lg,kL8:()=>Em,kcU:()=>ts,lG2:()=>$e,lcZ:()=>mg,lnq:()=>Fu,lqb:()=>Go,lri:()=>r_,mCW:()=>R,n5z:()=>Ho,n_E:()=>Fc,oAB:()=>$,oJD:()=>bo,oxw:()=>Nf,pB0:()=>gd,q3G:()=>Kn,qLn:()=>Cl,qOj:()=>vu,qZA:()=>Pc,qzn:()=>Ao,rWj:()=>a_,s9C:()=>Ou,sBO:()=>My,sIi:()=>xl,s_b:()=>jc,soG:()=>Wc,tb:()=>Xg,tp0:()=>ko,uIk:()=>Tu,vHH:()=>ne,vpe:()=>xa,wAp:()=>Mn,xDo:()=>ju,xi3:()=>gg,xp6:()=>xp,ynx:()=>Ic,z2F:()=>Yc,z3N:()=>Ir,zSh:()=>Ed,zs3:()=>zo});var e=h(77579),d=h(50727),_=h(69751),w=h(56451),g=h(13099);function b(u){for(let m in u)if(u[m]===b)return m;throw Error("Could not find renamed property on target object.")}function y(u,m){for(const C in m)m.hasOwnProperty(C)&&!u.hasOwnProperty(C)&&(u[C]=m[C])}function E(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(E).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const m=u.toString();if(null==m)return""+m;const C=m.indexOf("\n");return-1===C?m:m.substring(0,C)}function S(u,m){return null==u||""===u?null===m?"":m:null==m||""===m?u:u+" "+m}const U=b({__forward_ref__:b});function A(u){return u.__forward_ref__=A,u.toString=function(){return E(this())},u}function N(u){return z(u)?u():u}function z(u){return"function"==typeof u&&u.hasOwnProperty(U)&&u.__forward_ref__===A}class ne extends Error{constructor(m,C){super(function he(u,m){return`NG0${Math.abs(u)}${m?": "+m.trim():""}`}(m,C)),this.code=m}}function ee(u){return"string"==typeof u?u:null==u?"":String(u)}function O(u,m){throw new ne(-201,!1)}function I(u,m){null==u&&function F(u,m,C,T){throw new Error(`ASSERTION ERROR: ${u}`+(null==T?"":` [Expected=> ${C} ${T} ${m} <=Actual]`))}(m,u,null,"!=")}function Te(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Xe(u){return{providers:u.providers||[],imports:u.imports||[]}}function vt(u){return rt(u,ie)||rt(u,Ze)}function rt(u,m){return u.hasOwnProperty(m)?u[m]:null}function le(u){return u&&(u.hasOwnProperty(ae)||u.hasOwnProperty(Je))?u[ae]:null}const ie=b({\u0275prov:b}),ae=b({\u0275inj:b}),Ze=b({ngInjectableDef:b}),Je=b({ngInjectorDef:b});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let ze;function V(u){const m=ze;return ze=u,m}function r(u,m,C){const T=vt(u);return T&&"root"==T.providedIn?void 0===T.value?T.value=T.factory():T.value:C&ct.Optional?null:void 0!==m?m:void O(E(u))}function f(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 i=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),p={},M=[],Me=b({\u0275cmp:b}),it=b({\u0275dir:b}),Dt=b({\u0275pipe:b}),Zt=b({\u0275mod:b}),Et=b({\u0275fac:b}),pt=b({__NG_ELEMENT_ID__:b});let je=0;function Oe(u){return f(()=>{const C=!0===u.standalone,T={},x={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:T,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&u.dependencies||null,getStandaloneInjector:null,selectors:u.selectors||M,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c"+je++,styles:u.styles||M,_:null,setInput:null,schemas:u.schemas||null,tView:null},P=u.dependencies,L=u.features;return x.inputs=Ve(u.inputs,T),x.outputs=Ve(u.outputs),L&&L.forEach(se=>se(x)),x.directiveDefs=P?()=>("function"==typeof P?P():P).map(ye).filter(Ie):null,x.pipeDefs=P?()=>("function"==typeof P?P():P).map(Pt).filter(Ie):null,x})}function Qe(u,m,C){const T=u.\u0275cmp;T.directiveDefs=()=>("function"==typeof m?m():m).map(ye),T.pipeDefs=()=>("function"==typeof C?C():C).map(Pt)}function ye(u){return Le(u)||st(u)}function Ie(u){return null!==u}function $(u){return f(()=>({type:u.type,bootstrap:u.bootstrap||M,declarations:u.declarations||M,imports:u.imports||M,exports:u.exports||M,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function Ve(u,m){if(null==u)return p;const C={};for(const T in u)if(u.hasOwnProperty(T)){let x=u[T],P=x;Array.isArray(x)&&(P=x[1],x=x[0]),C[x]=T,m&&(m[x]=P)}return C}const $e=Oe;function nt(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Le(u){return u[Me]||null}function st(u){return u[it]||null}function Pt(u){return u[Dt]||null}function Vt(u,m){const C=u[Zt]||null;if(!C&&!0===m)throw new Error(`Type ${E(u)} does not have '\u0275mod' property.`);return C}const Z=18;function kn(u){return Array.isArray(u)&&"object"==typeof u[1]}function Zn(u){return Array.isArray(u)&&!0===u[1]}function Ni(u){return 0!=(8&u.flags)}function ki(u){return 2==(2&u.flags)}function Ri(u){return 1==(1&u.flags)}function fi(u){return null!==u.template}function hi(u){return 0!=(256&u[2])}function xi(u,m){return u.hasOwnProperty(Et)?u[Et]:null}class Tr{constructor(m,C,T){this.previousValue=m,this.currentValue=C,this.firstChange=T}isFirstChange(){return this.firstChange}}function _r(){return or}function or(u){return u.type.prototype.ngOnChanges&&(u.setInput=lr),sr}function sr(){const u=br(this),m=u?.current;if(m){const C=u.previous;if(C===p)u.previous=m;else for(let T in m)C[T]=m[T];u.current=null,this.ngOnChanges(m)}}function lr(u,m,C,T){const x=br(u)||function cr(u,m){return u[Ar]=m}(u,{previous:p,current:null}),P=x.current||(x.current={}),L=x.previous,se=this.declaredInputs[C],Ae=L[se];P[se]=new Tr(Ae&&Ae.currentValue,m,L===p),u[T]=m}_r.ngInherit=!0;const Ar="__ngSimpleChanges__";function br(u){return u[Ar]||null}function zn(u){for(;Array.isArray(u);)u=u[0];return u}function wr(u,m){return zn(m[u])}function vi(u,m){return zn(m[u.index])}function ca(u,m){return u.data[m]}function Xi(u,m){return u[m]}function mi(u,m){const C=m[u];return kn(C)?C:C[0]}function ke(u){return 4==(4&u[2])}function ft(u){return 64==(64&u[2])}function gt(u,m){return null==m?null:u[m]}function Ot(u){u[Z]=0}function zt(u,m){u[5]+=m;let C=u,T=u[3];for(;null!==T&&(1===m&&1===C[5]||-1===m&&0===C[5]);)T[5]+=m,C=T,T=T[3]}const jt={lFrame:no(null),bindingsEnabled:!0};function gi(){return jt.bindingsEnabled}function Kt(){return jt.lFrame.lView}function Dn(){return jt.lFrame.tView}function Vi(u){return jt.lFrame.contextLView=u,u[8]}function Oi(u){return jt.lFrame.contextLView=null,u}function di(){let u=Mr();for(;null!==u&&64===u.type;)u=u.parent;return u}function Mr(){return jt.lFrame.currentTNode}function Ue(u,m){const C=jt.lFrame;C.currentTNode=u,C.isParent=m}function Re(){return jt.lFrame.isParent}function be(){jt.lFrame.isParent=!1}function qn(){const u=jt.lFrame;let m=u.bindingRootIndex;return-1===m&&(m=u.bindingRootIndex=u.tView.bindingStartIndex),m}function Hi(){return jt.lFrame.bindingIndex}function da(){return jt.lFrame.bindingIndex++}function Hr(u){const m=jt.lFrame,C=m.bindingIndex;return m.bindingIndex=m.bindingIndex+u,C}function qs(u,m){const C=jt.lFrame;C.bindingIndex=C.bindingRootIndex=u,wo(m)}function wo(u){jt.lFrame.currentDirectiveIndex=u}function Qr(u){const m=jt.lFrame.currentDirectiveIndex;return-1===m?null:u[m]}function to(){return jt.lFrame.currentQueryIndex}function Gr(u){jt.lFrame.currentQueryIndex=u}function Ko(u){const m=u[1];return 2===m.type?m.declTNode:1===m.type?u[6]:null}function Da(u,m,C){if(C&ct.SkipSelf){let x=m,P=u;for(;!(x=x.parent,null!==x||C&ct.Host||(x=Ko(P),null===x||(P=P[15],10&x.type))););if(null===x)return!1;m=x,u=P}const T=jt.lFrame=Qs();return T.currentTNode=m,T.lView=u,!0}function ua(u){const m=Qs(),C=u[1];jt.lFrame=m,m.currentTNode=C.firstChild,m.lView=u,m.tView=C,m.contextLView=u,m.bindingIndex=C.bindingStartIndex,m.inI18n=!1}function Qs(){const u=jt.lFrame,m=null===u?null:u.child;return null===m?no(u):m}function no(u){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:u,child:null,inI18n:!1};return null!==u&&(u.child=m),m}function Ks(){const u=jt.lFrame;return jt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Xo=Ks;function ha(){const u=Ks();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 Ei(){return jt.lFrame.selectedIndex}function Dr(u){jt.lFrame.selectedIndex=u}function ui(){const u=jt.lFrame;return ca(u.tView,u.selectedIndex)}function pa(){jt.lFrame.currentNamespace="svg"}function ts(){!function Xs(){jt.lFrame.currentNamespace=null}()}function ro(u,m){for(let C=m.directiveStart,T=m.directiveEnd;C=T)break}else m[Ae]<0&&(u[Z]+=65536),(se>11>16&&(3&u[2])===m){u[2]+=2048;try{P.call(se)}finally{}}}else try{P.call(se)}finally{}}class Pa{constructor(m,C,T){this.factory=m,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=T}}function so(u,m,C){let T=0;for(;Tm){L=P-1;break}}}for(;P>16}(u),T=m;for(;C>0;)T=T[15],C--;return T}let Ui=!0;function Sr(u){const m=Ui;return Ui=u,m}let al=0;const er={};function ea(u,m){const C=La(u,m);if(-1!==C)return C;const T=m[1];T.firstCreatePass&&(u.injectorIndex=m.length,Ha(T.data,u),Ha(m,null),Ha(T.blueprint,null));const x=co(u,m),P=u.injectorIndex;if(rs(x)){const L=Xr(x),se=Lr(x,m),Ae=se[1].data;for(let Ye=0;Ye<8;Ye++)m[P+Ye]=se[L+Ye]|Ae[L+Ye]}return m[P+8]=x,P}function Ha(u,m){u.push(0,0,0,0,0,0,0,0,m)}function La(u,m){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===m[u.injectorIndex+8]?-1:u.injectorIndex}function co(u,m){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let C=0,T=null,x=m;for(;null!==x;){if(T=Fa(x),null===T)return-1;if(C++,x=x[15],-1!==T.injectorIndex)return T.injectorIndex|C<<16}return-1}function zr(u,m,C){!function Oa(u,m,C){let T;"string"==typeof C?T=C.charCodeAt(0)||0:C.hasOwnProperty(pt)&&(T=C[pt]),null==T&&(T=C[pt]=al++);const x=255&T;m.data[u+(x>>5)]|=1<=0?255&m:sl:m}(C);if("function"==typeof P){if(!Da(m,u,T))return T&ct.Host?os(x,0,T):ss(m,C,T,x);try{const L=P(T);if(null!=L||T&ct.Optional)return L;O()}finally{Xo()}}else if("number"==typeof P){let L=null,se=La(u,m),Ae=-1,Ye=T&ct.Host?m[16][6]:null;for((-1===se||T&ct.SkipSelf)&&(Ae=-1===se?co(u,m):m[se+8],-1!==Ae&&Va(T,!1)?(L=m[1],se=Xr(Ae),m=Lr(Ae,m)):se=-1);-1!==se;){const lt=m[1];if(ka(P,se,lt.data)){const yt=Ba(se,m,C,L,T,Ye);if(yt!==er)return yt}Ae=m[se+8],-1!==Ae&&Va(T,m[1].data[se+8]===Ye)&&ka(P,se,m)?(L=lt,se=Xr(Ae),m=Lr(Ae,m)):se=-1}}return x}function Ba(u,m,C,T,x,P){const L=m[1],se=L.data[u+8],lt=Ai(se,L,C,null==T?ki(se)&&Ui:T!=L&&0!=(3&se.type),x&ct.Host&&P===se);return null!==lt?Na(m,L,lt,se):er}function Ai(u,m,C,T,x){const P=u.providerIndexes,L=m.data,se=1048575&P,Ae=u.directiveStart,lt=P>>20,Lt=x?se+lt:u.directiveEnd;for(let Ut=T?se:se+lt;Ut=Ae&&Qt.type===C)return Ut}if(x){const Ut=L[Ae];if(Ut&&fi(Ut)&&Ut.type===C)return Ae}return null}function Na(u,m,C,T){let x=u[C];const P=m.data;if(function nl(u){return u instanceof Pa}(x)){const L=x;L.resolving&&function ce(u,m){const C=m?`. Dependency path: ${m.join(" > ")} > ${u}`:"";throw new ne(-200,`Circular dependency in DI detected for ${u}${C}`)}(function fe(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():ee(u)}(P[C]));const se=Sr(L.canSeeViewProviders);L.resolving=!0;const Ae=L.injectImpl?V(L.injectImpl):null;Da(u,T,ct.Default);try{x=u[C]=L.factory(void 0,P,u,T),m.firstCreatePass&&C>=T.directiveStart&&function ns(u,m,C){const{ngOnChanges:T,ngOnInit:x,ngDoCheck:P}=m.type.prototype;if(T){const L=or(m);(C.preOrderHooks||(C.preOrderHooks=[])).push(u,L),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(u,L)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-u,x),P&&((C.preOrderHooks||(C.preOrderHooks=[])).push(u,P),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(u,P))}(C,P[C],m)}finally{null!==Ae&&V(Ae),Sr(se),L.resolving=!1,Xo()}}return x}function ka(u,m,C){return!!(C[m+(u>>5)]&1<{const m=u.prototype.constructor,C=m[Et]||cs(m),T=Object.prototype;let x=Object.getPrototypeOf(u.prototype).constructor;for(;x&&x!==T;){const P=x[Et]||cs(x);if(P&&P!==C)return P;x=Object.getPrototypeOf(x)}return P=>new P})}function cs(u){return z(u)?()=>{const m=cs(N(u));return m&&m()}:xi(u)}function Fa(u){const m=u[1],C=m.type;return 2===C?m.declTNode:1===C?u[6]:null}function Ua(u){return function ol(u,m){if("class"===m)return u.classes;if("style"===m)return u.styles;const C=u.attrs;if(C){const T=C.length;let x=0;for(;x{const T=function ho(u){return function(...C){if(u){const T=u(...C);for(const x in T)this[x]=T[x]}}}(m);function x(...P){if(this instanceof x)return T.apply(this,P),this;const L=new x(...P);return se.annotation=L,se;function se(Ae,Ye,lt){const yt=Ae.hasOwnProperty(dr)?Ae[dr]:Object.defineProperty(Ae,dr,{value:[]})[dr];for(;yt.length<=lt;)yt.push(null);return(yt[lt]=yt[lt]||[]).push(L),Ae}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=u,x.annotationCls=x,x})}class ei{constructor(m,C){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Te({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ur(u,m){void 0===m&&(m=u);for(let C=0;CArray.isArray(C)?X(C,m):m(C))}function re(u,m,C){m>=u.length?u.push(C):u.splice(m,0,C)}function k(u,m){return m>=u.length-1?u.pop():u.splice(m,1)[0]}function me(u,m){const C=[];for(let T=0;T=0?u[1|T]=C:(T=~T,function wt(u,m,C,T){let x=u.length;if(x==m)u.push(C,T);else if(1===x)u.push(T,u[0]),u[0]=C;else{for(x--,u.push(u[x-1],u[x]);x>m;)u[x]=u[x-2],x--;u[m]=C,u[m+1]=T}}(u,T,m,C)),T}function dn(u,m){const C=wn(u,m);if(C>=0)return u[1|C]}function wn(u,m){return function Si(u,m,C){let T=0,x=u.length>>C;for(;x!==T;){const P=T+(x-T>>1),L=u[P<m?x=P:T=P+1}return~(x<u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Fo}())||void 0===m?void 0:m.createHTML(u))||u}function Es(u){var m;return(null===(m=function vs(){if(void 0===Cs&&(Cs=null,i.trustedTypes))try{Cs=i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Cs}())||void 0===m?void 0:m.createHTML(u))||u}class Ya{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class od extends Ya{getTypeName(){return"HTML"}}class sd extends Ya{getTypeName(){return"Style"}}class ld extends Ya{getTypeName(){return"Script"}}class cd extends Ya{getTypeName(){return"URL"}}class dd extends Ya{getTypeName(){return"ResourceURL"}}function Ir(u){return u instanceof Ya?u.changingThisBreaksApplicationSecurity:u}function Ao(u,m){const C=function ud(u){return u instanceof Ya&&u.getTypeName()||null}(u);if(null!=C&&C!==m){if("ResourceURL"===C&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===m}function hd(u){return new od(u)}function pd(u){return new sd(u)}function fd(u){return new ld(u)}function md(u){return new cd(u)}function gd(u){return new dd(u)}class _d{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const C=(new window.DOMParser).parseFromString(Wa(m),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(m):(C.removeChild(C.firstChild),C)}catch{return null}}}class Ad{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const T=this.inertDocument.createElement("body");C.appendChild(T)}}getInertBodyElement(m){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=Wa(m),C;const T=this.inertDocument.createElement("body");return T.innerHTML=Wa(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(T),T}stripCustomNsAttrs(m){const C=m.attributes;for(let x=C.length-1;0R(m.trim())).join(", ")),this.buf.push(" ",L,'="',Ca(Ae),'"')}var u;return this.buf.push(">"),!0}endElement(m){const C=m.nodeName.toLowerCase();gn.hasOwnProperty(C)&&!tt.hasOwnProperty(C)&&(this.buf.push(""))}chars(m){this.buf.push(Ca(m))}checkClobberedElement(m,C){if(C&&(m.compareDocumentPosition(C)&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 C}}const tr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bi=/([^\#-~ |!])/g;function Ca(u){return u.replace(/&/g,"&").replace(tr,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Bi,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Br;function nr(u,m){let C=null;try{Br=Br||function cc(u){const m=new Ad(u);return function bd(){try{return!!(new window.DOMParser).parseFromString(Wa(""),"text/html")}catch{return!1}}()?new _d(m):m}(u);let T=m?String(m):"";C=Br.getInertBodyElement(T);let x=5,P=T;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,T=P,P=C.innerHTML,C=Br.getInertBodyElement(T)}while(T!==P);return Wa((new ji).sanitizeChildren(pr(C)||C))}finally{if(C){const T=pr(C)||C;for(;T.firstChild;)T.removeChild(T.firstChild)}}}function pr(u){return"content"in u&&function ys(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var Kn=(()=>((Kn=Kn||{})[Kn.NONE=0]="NONE",Kn[Kn.HTML=1]="HTML",Kn[Kn.STYLE=2]="STYLE",Kn[Kn.SCRIPT=3]="SCRIPT",Kn[Kn.URL=4]="URL",Kn[Kn.RESOURCE_URL=5]="RESOURCE_URL",Kn))();function bo(u){const m=Gi();return m?Es(m.sanitize(Kn.HTML,u)||""):Ao(u,"HTML")?Es(Ir(u)):nr(function sc(){return void 0!==As?As:typeof document<"u"?document:void 0}(),ee(u))}function Ja(u){const m=Gi();return m?m.sanitize(Kn.URL,u)||"":Ao(u,"URL")?Ir(u):R(ee(u))}function Gi(){const u=Kt();return u&&u[12]}const Yr=new ei("ENVIRONMENT_INITIALIZER"),pi=new ei("INJECTOR",-1),_l=new ei("INJECTOR_DEF_TYPES");class uc{get(m,C=Lo){if(C===Lo){const T=new Error(`NullInjectorError: No provider for ${E(m)}!`);throw T.name="NullInjectorError",T}return C}}function $i(...u){return{\u0275providers:va(0,u)}}function va(u,...m){const C=[],T=new Set;let x;return X(m,P=>{const L=P;Co(L,C,[],T)&&(x||(x=[]),x.push(L))}),void 0!==x&&Cr(x,C),C}function Cr(u,m){for(let C=0;C{m.push(P)})}}function Co(u,m,C,T){if(!(u=N(u)))return!1;let x=null,P=le(u);const L=!P&&Le(u);if(P||L){if(L&&!L.standalone)return!1;x=u}else{const Ae=u.ngModule;if(P=le(Ae),!P)return!1;x=Ae}const se=T.has(x);if(L){if(se)return!1;if(T.add(x),L.dependencies){const Ae="function"==typeof L.dependencies?L.dependencies():L.dependencies;for(const Ye of Ae)Co(Ye,m,C,T)}}else{if(!P)return!1;{if(null!=P.imports&&!se){let Ye;T.add(x);try{X(P.imports,lt=>{Co(lt,m,C,T)&&(Ye||(Ye=[]),Ye.push(lt))})}finally{}void 0!==Ye&&Cr(Ye,m)}if(!se){const Ye=xi(x)||(()=>new x);m.push({provide:x,useFactory:Ye,deps:M},{provide:_l,useValue:x,multi:!0},{provide:Yr,useValue:()=>Pi(x),multi:!0})}const Ae=P.providers;null==Ae||se||X(Ae,lt=>{m.push(lt)})}}return x!==u&&void 0!==u.providers}const D_=b({provide:String,useValue:b});function vd(u){return null!==u&&"object"==typeof u&&D_ in u}function jo(u){return"function"==typeof u}const Ed=new ei("Set Injector scope."),pc={},P_={};let yd;function fc(){return void 0===yd&&(yd=new uc),yd}class Go{}class Vh extends Go{constructor(m,C,T,x){super(),this.parent=C,this.source=T,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(m,L=>this.processProvider(L)),this.records.set(pi,Ts(void 0,this)),x.has("environment")&&this.records.set(Go,Ts(void 0,this));const P=this.records.get(Ed);null!=P&&"string"==typeof P.value&&this.scopes.add(P.value),this.injectorDefTypes=new Set(this.get(_l.multi,M,ct.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const C=mo(this),T=V(void 0);try{return m()}finally{mo(C),V(T)}}get(m,C=Lo,T=ct.Default){this.assertNotDestroyed();const x=mo(this),P=V(void 0);try{if(!(T&ct.SkipSelf)){let se=this.records.get(m);if(void 0===se){const Ae=function L_(u){return"function"==typeof u||"object"==typeof u&&u instanceof ei}(m)&&vt(m);se=Ae&&this.injectableDefInScope(Ae)?Ts(Td(m),pc):null,this.records.set(m,se)}if(null!=se)return this.hydrate(m,se)}return(T&ct.Self?fc():this.parent).get(m,C=T&ct.Optional&&C===Lo?null:C)}catch(L){if("NullInjectorError"===L.name){if((L[hs]=L[hs]||[]).unshift(E(m)),x)throw L;return function ps(u,m,C,T){const x=u[hs];throw m[Wl]&&x.unshift(m[Wl]),u.message=function $l(u,m,C,T=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let x=E(m);if(Array.isArray(m))x=m.map(E).join(" -> ");else if("object"==typeof m){let P=[];for(let L in m)if(m.hasOwnProperty(L)){let se=m[L];P.push(L+":"+("string"==typeof se?JSON.stringify(se):E(se)))}x=`{${P.join(", ")}}`}return`${C}${T?"("+T+")":""}[${x}]: ${u.replace(ta,"\n ")}`}("\n"+u.message,x,C,T),u.ngTokenPath=x,u[hs]=null,u}(L,m,"R3InjectorError",this.source)}throw L}finally{V(P),mo(x)}}resolveInjectorInitializers(){const m=mo(this),C=V(void 0);try{const T=this.get(Yr.multi,M,ct.Self);for(const x of T)x()}finally{mo(m),V(C)}}toString(){const m=[],C=this.records;for(const T of C.keys())m.push(E(T));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processProvider(m){let C=jo(m=N(m))?m:N(m&&m.provide);const T=function R_(u){return vd(u)?Ts(void 0,u.useValue):Ts(Fh(u),pc)}(m);if(jo(m)||!0!==m.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Ts(void 0,pc,!0),x.factory=()=>fl(x.multi),this.records.set(C,x)),C=m,x.multi.push(m)}this.records.set(C,T)}hydrate(m,C){return C.value===pc&&(C.value=P_,C.value=C.factory()),"object"==typeof C.value&&C.value&&function H_(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(m){if(!m.providedIn)return!1;const C=N(m.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function Td(u){const m=vt(u),C=null!==m?m.factory:xi(u);if(null!==C)return C;if(u instanceof ei)throw new ne(204,!1);if(u instanceof Function)return function I_(u){const m=u.length;if(m>0)throw me(m,"?"),new ne(204,!1);const C=function ht(u){const m=u&&(u[ie]||u[Ze]);if(m){const C=function W(u){if(u.hasOwnProperty("name"))return u.name;const m=(""+u).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),m}return null}(u);return null!==C?()=>C.factory(u):()=>new u}(u);throw new ne(204,!1)}function Fh(u,m,C){let T;if(jo(u)){const x=N(u);return xi(x)||Td(x)}if(vd(u))T=()=>N(u.useValue);else if(function kh(u){return!(!u||!u.useFactory)}(u))T=()=>u.useFactory(...fl(u.deps||[]));else if(function Nh(u){return!(!u||!u.useExisting)}(u))T=()=>Pi(N(u.useExisting));else{const x=N(u&&(u.useClass||u.provide));if(!function O_(u){return!!u.deps}(u))return xi(x)||Td(x);T=()=>new x(...fl(u.deps))}return T}function Ts(u,m,C=!1){return{factory:u,value:m,multi:C?[]:void 0}}function B_(u){return!!u.\u0275providers}function wd(u,m){for(const C of u)Array.isArray(C)?wd(C,m):B_(C)?wd(C.\u0275providers,m):m(C)}class Uh{}class V_{resolveComponentFactory(m){throw function k_(u){const m=Error(`No component factory found for ${E(u)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=u,m}(m)}}let Al=(()=>{class u{}return u.NULL=new V_,u})();function F_(){return ws(di(),Kt())}function ws(u,m){return new bl(vi(u,m))}let bl=(()=>{class u{constructor(C){this.nativeElement=C}}return u.__NG_ELEMENT_ID__=F_,u})();function U_(u){return u instanceof bl?u.nativeElement:u}class Gh{}let j_=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function G_(){const u=Kt(),C=mi(di().index,u);return(kn(C)?C:u)[11]}(),u})(),Z_=(()=>{class u{}return u.\u0275prov=Te({token:u,providedIn:"root",factory:()=>null}),u})();class Zh{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const z_=new Zh("14.1.2"),Md={};function Id(u){return u.ngOriginalError}class Cl{constructor(){this._console=console}handleError(m){const C=this._findOriginalError(m);this._console.error("ERROR",m),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(m){let C=m&&Id(m);for(;C&&Id(C);)C=Id(C);return C||null}}const Rd=new Map;let iA=0;const Hd="__ngContext__";function fr(u,m){kn(m)?(u[Hd]=m[20],function aA(u){Rd.set(u[20],u)}(m)):u[Hd]=m}function vl(u){const m=u[Hd];return"number"==typeof m?function qh(u){return Rd.get(u)||null}(m):m||null}function Ld(u){const m=vl(u);return m?kn(m)?m:m.lView:null}const fA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(i))();function tp(u){return u.ownerDocument.defaultView}function np(u){return u.ownerDocument}function qa(u){return u instanceof Function?u():u}var Ea=(()=>((Ea=Ea||{})[Ea.Important=1]="Important",Ea[Ea.DashCase=2]="DashCase",Ea))();function Nd(u,m){return undefined(u,m)}function El(u){const m=u[3];return Zn(m)?m[3]:m}function kd(u){return op(u[13])}function Vd(u){return op(u[4])}function op(u){for(;null!==u&&!Zn(u);)u=u[4];return u}function xs(u,m,C,T,x){if(null!=T){let P,L=!1;Zn(T)?P=T:kn(T)&&(L=!0,T=T[0]);const se=zn(T);0===u&&null!==C?null==x?hp(m,C,se):Zo(m,C,se,x||null,!0):1===u&&null!==C?Zo(m,C,se,x||null,!0):2===u?function bp(u,m,C){const T=mc(u,m);T&&function PA(u,m,C,T){u.removeChild(m,C,T)}(u,T,m,C)}(m,se,L):3===u&&m.destroyNode(se),null!=P&&function OA(u,m,C,T,x){const P=C[7];P!==zn(C)&&xs(m,u,T,P,x);for(let se=10;se0&&(u[C-1][4]=T[4]);const P=k(u,10+m);!function EA(u,m){yl(u,m,m[11],2,null,null),m[0]=null,m[6]=null}(T[1],T);const L=P[19];null!==L&&L.detachView(P[1]),T[3]=null,T[4]=null,T[2]&=-65}return T}function cp(u,m){if(!(128&m[2])){const C=m[11];C.destroyNode&&yl(u,m,C,3,null,null),function wA(u){let m=u[13];if(!m)return Gd(u[1],u);for(;m;){let C=null;if(kn(m))C=m[13];else{const T=m[10];T&&(C=T)}if(!C){for(;m&&!m[4]&&m!==u;)kn(m)&&Gd(m[1],m),m=m[3];null===m&&(m=u),kn(m)&&Gd(m[1],m),C=m&&m[4]}m=C}}(m)}}function Gd(u,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function SA(u,m){let C;if(null!=u&&null!=(C=u.destroyHooks))for(let T=0;T=0?T[x=Ye]():T[x=-Ye].unsubscribe(),P+=2}else{const L=T[x=C[P+1]];C[P].call(L)}if(null!==T){for(let P=x+1;PP?"":x[yt+1].toLowerCase();const Ut=8&T?Lt:null;if(Ut&&-1!==Ep(Ut,Ye,0)||2&T&&Ye!==Lt){if(ia(T))return!1;L=!0}}}}else{if(!L&&!ia(T)&&!ia(Ae))return!1;if(L&&ia(Ae))continue;L=!1,T=Ae|1&T}}return ia(T)||L}function ia(u){return 0==(1&u)}function kA(u,m,C,T){if(null===m)return-1;let x=0;if(T||!C){let P=!1;for(;x-1)for(C++;C0?'="'+se+'"':"")+"]"}else 8&T?x+="."+L:4&T&&(x+=" "+L);else""!==x&&!ia(L)&&(m+=Mp(P,x),x=""),T=L,P=P||!ia(T);C++}return""!==x&&(m+=Mp(P,x)),m}const Bn={};function xp(u){Dp(Dn(),Kt(),Ei()+u,!1)}function Dp(u,m,C,T){if(!T)if(3==(3&m[2])){const P=u.preOrderCheckHooks;null!==P&&Kr(m,P,C)}else{const P=u.preOrderHooks;null!==P&&Sa(m,P,0,C)}Dr(C)}function Rp(u,m=null,C=null,T){const x=Op(u,m,C,T);return x.resolveInjectorInitializers(),x}function Op(u,m=null,C=null,T,x=new Set){const P=[C||M,$i(u)];return T=T||("object"==typeof u?void 0:E(u)),new Vh(P,m||fc(),T||null,x)}let zo=(()=>{class u{static create(C,T){if(Array.isArray(C))return Rp({name:""},T,C,"");{var x;const P=null!==(x=C.name)&&void 0!==x?x:"";return Rp({name:P},C.parent,C.providers,P)}}}return u.THROW_IF_NOT_FOUND=Lo,u.NULL=new uc,u.\u0275prov=Te({token:u,providedIn:"any",factory:()=>Pi(pi)}),u.__NG_ELEMENT_ID__=-1,u})();function Ss(u,m=ct.Default){const C=Kt();return null===C?Pi(u,m):ls(di(),C,N(u),m)}function Fp(){throw new Error("invalid")}function bc(u,m){return u<<17|m<<2}function ra(u){return u>>17&32767}function Kd(u){return 2|u}function Qa(u){return(131068&u)>>2}function Xd(u,m){return-131069&u|m<<2}function eu(u){return 1|u}function Qp(u,m){const C=u.contentQueries;if(null!==C)for(let T=0;T22&&Dp(u,m,22,!1),C(T,x)}finally{Dr(P)}}function Xp(u,m,C){if(Ni(m)){const x=m.directiveEnd;for(let P=m.directiveStart;P0;){const C=u[--m];if("number"==typeof C&&C<0)return C}return 0})(se)!=Ae&&se.push(Ae),se.push(T,x,L)}}function lf(u,m){null!==u.hostBindings&&u.hostBindings(1,m)}function cf(u,m){m.flags|=2,(u.components||(u.components=[])).push(m.index)}function Lb(u,m,C){if(C){if(m.exportAs)for(let T=0;T0&&mu(C)}}function mu(u){for(let T=kd(u);null!==T;T=Vd(T))for(let x=10;x0&&mu(P)}const C=u[1].components;if(null!==C)for(let T=0;T0&&mu(x)}}function jb(u,m){const C=mi(m,u),T=C[1];(function Gb(u,m){for(let C=m.length;CPromise.resolve(null))();function mf(u){return u[7]||(u[7]=[])}function gf(u){return u.cleanup||(u.cleanup=[])}function _f(u,m,C){return(null===u||fi(u))&&(C=function eo(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(C[m.index])),C[11]}function Af(u,m){const C=u[9],T=C?C.get(Cl,null):null;T&&T.handleError(m)}function bu(u,m,C,T,x){for(let P=0;P-1&&(jd(m,T),k(C,T))}this._attachedToViewContainer=!1}cp(this._lView[1],this._lView)}onDestroy(m){tf(this._lView[1],this._lView,null,m)}markForCheck(){gu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _u(u,m,C){const T=m[10];T.begin&&T.begin();try{Tl(u,m,u.template,C)}catch(x){throw Af(m,x),x}finally{T.end&&T.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ne(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function TA(u,m){yl(u,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,!1);this._appRef=m}}class Wb extends wl{constructor(m){super(m),this._view=m}detectChanges(){ff(this._view)}checkNoChanges(){}get context(){return null}}class Cu extends Al{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const C=Le(m);return new Ml(C,this.ngModule)}}function bf(u){const m=[];for(let C in u)u.hasOwnProperty(C)&&m.push({propName:u[C],templateName:C});return m}class Jb{constructor(m,C){this.injector=m,this.parentInjector=C}get(m,C,T){const x=this.injector.get(m,Md,T);return x!==Md||C===Md?x:this.parentInjector.get(m,C,T)}}class Ml extends Uh{constructor(m,C){super(),this.componentDef=m,this.ngModule=C,this.componentType=m.type,this.selector=function ZA(u){return u.map(GA).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return bf(this.componentDef.inputs)}get outputs(){return bf(this.componentDef.outputs)}create(m,C,T,x){var P;let L=(x=x||this.ngModule)instanceof Go?x:null===(P=x)||void 0===P?void 0:P.injector;L&&null!==this.componentDef.getStandaloneInjector&&(L=this.componentDef.getStandaloneInjector(L)||L);const se=L?new Jb(m,L):m,Ae=se.get(Gh,null);if(null===Ae)throw new ne(407,!1);const Ye=se.get(Z_,null),lt=Ae.createRenderer(null,this.componentDef),yt=this.componentDef.selectors[0][0]||"div",Lt=T?function wb(u,m,C){return u.selectRootElement(m,C===t.ShadowDom)}(lt,T,this.componentDef.encapsulation):Ud(Ae.createRenderer(null,this.componentDef),yt,function Yb(u){const m=u.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(yt)),Ut=this.componentDef.onPush?288:272,Qt=function Xb(u,m){return{components:[],scheduler:u||fA,clean:zb,playerHandler:m||null,flags:0}}(),an=hu(0,null,null,1,0,null,null,null,null,null),sn=Ec(null,an,Qt,Ut,null,null,Ae,lt,Ye,se,null);let bn,yn;ua(sn);try{const tn=function Qb(u,m,C,T,x,P){const L=C[1];C[22]=u;const Ae=Ps(L,22,2,"#host",null),Ye=Ae.mergedAttrs=m.hostAttrs;null!==Ye&&(wc(Ae,Ye,!0),null!==u&&(so(x,u,Ye),null!==Ae.classes&&Yd(x,u,Ae.classes),null!==Ae.styles&&vp(x,u,Ae.styles)));const lt=T.createRenderer(u,m),yt=Ec(C,ef(m),null,m.onPush?32:16,C[22],Ae,T,lt,P||null,null,null);return L.firstCreatePass&&(zr(ea(Ae,C),L,m.type),cf(L,Ae),df(Ae,C.length,1)),Tc(C,yt),C[22]=yt}(Lt,this.componentDef,sn,Ae,lt);if(Lt)if(T)so(lt,Lt,["ng-version",z_.full]);else{const{attrs:xn,classes:Nn}=function zA(u){const m=[],C=[];let T=1,x=2;for(;T0&&Yd(lt,Lt,Nn.join(" "))}if(yn=ca(an,22),void 0!==C){const xn=yn.projection=[];for(let Nn=0;Nn=0;T--){const x=u[T];x.hostVars=m+=x.hostVars,x.hostAttrs=lo(x.hostAttrs,C=lo(C,x.hostAttrs))}}(T)}function Eu(u){return u===p?{}:u===M?[]:u}function nC(u,m){const C=u.viewQuery;u.viewQuery=C?(T,x)=>{m(T,x),C(T,x)}:m}function iC(u,m){const C=u.contentQueries;u.contentQueries=C?(T,x,P)=>{m(T,x,P),C(T,x,P)}:m}function rC(u,m){const C=u.hostBindings;u.hostBindings=C?(T,x)=>{m(T,x),C(T,x)}:m}let xc=null;function Wo(){if(!xc){const u=i.Symbol;if(u&&u.iterator)xc=u.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let C=0;Cse(zn(Nn[T.index])):T.index;let xn=null;if(!se&&Ae&&(xn=function _C(u,m,C,T){const x=u.cleanup;if(null!=x)for(let P=0;PAe?se[Ae]:null}"string"==typeof L&&(P+=2)}return null}(u,m,x,T.index)),null!==xn)(xn.__ngLastListenerFn__||xn).__ngNextListenerFn__=P,xn.__ngLastListenerFn__=P,Ut=!1;else{P=Bf(T,m,yt,P,!1);const Nn=C.listen(bn,x,P);Lt.push(P,Nn),lt&<.push(x,tn,yn,yn+1)}}else P=Bf(T,m,yt,P,!1);const Qt=T.outputs;let an;if(Ut&&null!==Qt&&(an=Qt[x])){const sn=an.length;if(sn)for(let bn=0;bn0;)m=m[15],u--;return m}(u,jt.lFrame.contextLView))[8]}(u)}function AC(u,m){let C=null;const T=function VA(u){const m=u.attrs;if(null!=m){const C=m.indexOf(5);if(0==(1&C))return m[C+1]}return null}(u);for(let x=0;x=0}const Zi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jf(u){return u.substring(Zi.key,Zi.keyEnd)}function $f(u,m){const C=Zi.textEnd;return C===m?-1:(m=Zi.keyEnd=function wC(u,m,C){for(;m32;)m++;return m}(u,Zi.key=m,C),Us(u,m,C))}function Us(u,m,C){for(;m=0;C=$f(m,C))_n(u,Jf(m),!0)}function aa(u,m,C,T){const x=Kt(),P=Dn(),L=Hr(2);P.firstUpdatePass&&nm(P,u,L,T),m!==Bn&&mr(x,L,m)&&rm(P,P.data[Ei()],x,x[11],u,x[L+1]=function LC(u,m){return null==u||("string"==typeof m?u+=m:"object"==typeof u&&(u=E(Ir(u)))),u}(m,C),T,L)}function oa(u,m,C,T){const x=Dn(),P=Hr(2);x.firstUpdatePass&&nm(x,null,P,T);const L=Kt();if(C!==Bn&&mr(L,P,C)){const se=x.data[Ei()];if(om(se,T)&&!tm(x,P)){let Ae=T?se.classesWithoutHost:se.stylesWithoutHost;null!==Ae&&(C=S(Ae,C||"")),xu(x,se,L,C,T)}else!function HC(u,m,C,T,x,P,L,se){x===Bn&&(x=M);let Ae=0,Ye=0,lt=0=u.expandoStartIndex}function nm(u,m,C,T){const x=u.data;if(null===x[C+1]){const P=x[Ei()],L=tm(u,C);om(P,T)&&null===m&&!L&&(m=!1),m=function SC(u,m,C,T){const x=Qr(u);let P=T?m.residualClasses:m.residualStyles;if(null===x)0===(T?m.classBindings:m.styleBindings)&&(C=Sl(C=Nu(null,u,m,C,T),m.attrs,T),P=null);else{const L=m.directiveStylingLast;if(-1===L||u[L]!==x)if(C=Nu(x,u,m,C,T),null===P){let Ae=function PC(u,m,C){const T=C?m.classBindings:m.styleBindings;if(0!==Qa(T))return u[ra(T)]}(u,m,T);void 0!==Ae&&Array.isArray(Ae)&&(Ae=Nu(null,u,m,Ae[1],T),Ae=Sl(Ae,m.attrs,T),function IC(u,m,C,T){u[ra(C?m.classBindings:m.styleBindings)]=T}(u,m,T,Ae))}else P=function RC(u,m,C){let T;const x=m.directiveEnd;for(let P=1+m.directiveStylingLast;P0)&&(Ye=!0)}else lt=C;if(x)if(0!==Ae){const Lt=ra(u[se+1]);u[T+1]=bc(Lt,se),0!==Lt&&(u[Lt+1]=Xd(u[Lt+1],T)),u[se+1]=function db(u,m){return 131071&u|m<<17}(u[se+1],T)}else u[T+1]=bc(se,0),0!==se&&(u[se+1]=Xd(u[se+1],T)),se=T;else u[T+1]=bc(Ae,0),0===se?se=T:u[Ae+1]=Xd(u[Ae+1],T),Ae=T;Ye&&(u[T+1]=Kd(u[T+1])),Yf(u,lt,T,!0),Yf(u,lt,T,!1),function CC(u,m,C,T,x){const P=x?u.residualClasses:u.residualStyles;null!=P&&"string"==typeof m&&wn(P,m)>=0&&(C[T+1]=eu(C[T+1]))}(m,lt,u,T,P),L=bc(se,Ae),P?m.classBindings=L:m.styleBindings=L}(x,P,m,C,L,T)}}function Nu(u,m,C,T,x){let P=null;const L=C.directiveEnd;let se=C.directiveStylingLast;for(-1===se?se=C.directiveStart:se++;se0;){const Ae=u[x],Ye=Array.isArray(Ae),lt=Ye?Ae[1]:Ae,yt=null===lt;let Lt=C[x+1];Lt===Bn&&(Lt=yt?M:void 0);let Ut=yt?dn(Lt,T):lt===T?Lt:void 0;if(Ye&&!Hc(Ut)&&(Ut=dn(Ae,T)),Hc(Ut)&&(se=Ut,L))return se;const Qt=u[x+1];x=L?ra(Qt):Qa(Qt)}if(null!==m){let Ae=P?m.residualClasses:m.residualStyles;null!=Ae&&(se=dn(Ae,T))}return se}function Hc(u){return void 0!==u}function om(u,m){return 0!=(u.flags&(m?16:32))}function sm(u,m=""){const C=Kt(),T=Dn(),x=u+22,P=T.firstCreatePass?Ps(T,x,1,m,null):T.data[x],L=C[x]=function Fd(u,m){return u.createText(m)}(C[11],m);gc(T,C,L,P),Ue(P,!1)}function ku(u){return Lc("",u,""),ku}function Lc(u,m,C){const T=Kt(),x=Os(T,u,m,C);return x!==Bn&&Ka(T,Ei(),x),Lc}function Vu(u,m,C,T,x){const P=Kt(),L=Hs(P,u,m,C,T,x);return L!==Bn&&Ka(P,Ei(),L),Vu}function Fu(u,m,C,T,x,P,L){const se=Kt(),Ae=function Ls(u,m,C,T,x,P,L,se){const Ye=Dc(u,Hi(),C,x,L);return Hr(3),Ye?m+ee(C)+T+ee(x)+P+ee(L)+se:Bn}(se,u,m,C,T,x,P,L);return Ae!==Bn&&Ka(se,Ei(),Ae),Fu}function Uu(u,m,C,T,x,P,L,se,Ae){const Ye=Kt(),lt=function Bs(u,m,C,T,x,P,L,se,Ae,Ye){const yt=Jr(u,Hi(),C,x,L,Ae);return Hr(4),yt?m+ee(C)+T+ee(x)+P+ee(L)+se+ee(Ae)+Ye:Bn}(Ye,u,m,C,T,x,P,L,se,Ae);return lt!==Bn&&Ka(Ye,Ei(),lt),Uu}function ju(u,m,C,T,x,P,L,se,Ae,Ye,lt){const yt=Kt(),Lt=function Ns(u,m,C,T,x,P,L,se,Ae,Ye,lt,yt){const Lt=Hi();let Ut=Jr(u,Lt,C,x,L,Ae);return Ut=mr(u,Lt+4,lt)||Ut,Hr(5),Ut?m+ee(C)+T+ee(x)+P+ee(L)+se+ee(Ae)+Ye+ee(lt)+yt:Bn}(yt,u,m,C,T,x,P,L,se,Ae,Ye,lt);return Lt!==Bn&&Ka(yt,Ei(),Lt),ju}function hm(u,m,C){oa(_n,Ma,Os(Kt(),u,m,C),!0)}function Gu(u,m,C){const T=Kt();return mr(T,da(),m)&&Nr(Dn(),ui(),T,u,m,T[11],C,!0),Gu}function Zu(u,m,C){const T=Kt();if(mr(T,da(),m)){const P=Dn(),L=ui();Nr(P,L,T,u,m,_f(Qr(P.data),L,T),C,!0)}return Zu}const Jo=void 0;var ev=["en",[["a","p"],["AM","PM"],Jo],[["AM","PM"],Jo,Jo],[["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"]],Jo,[["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"]],Jo,[["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}",Jo,"{1} 'at' {0}",Jo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function XC(u){const C=Math.floor(Math.abs(u)),T=u.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===T?1:5}];let js={};function zu(u){const m=function tv(u){return u.toLowerCase().replace(/_/g,"-")}(u);let C=ym(m);if(C)return C;const T=m.split("-")[0];if(C=ym(T),C)return C;if("en"===T)return ev;throw new ne(701,!1)}function Em(u){return zu(u)[Mn.PluralCase]}function ym(u){return u in js||(js[u]=i.ng&&i.ng.common&&i.ng.common.locales&&i.ng.common.locales[u]),js[u]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const Gs="en-US";let Tm=Gs;function Ju(u,m,C,T,x){if(u=N(u),Array.isArray(u))for(let P=0;P>20;if(jo(u)||!u.multi){const Ut=new Pa(Ae,x,Ss),Qt=qu(se,m,x?lt:lt+Lt,yt);-1===Qt?(zr(ea(Ye,L),P,se),$u(P,u,m.length),m.push(se),Ye.directiveStart++,Ye.directiveEnd++,x&&(Ye.providerIndexes+=1048576),C.push(Ut),L.push(Ut)):(C[Qt]=Ut,L[Qt]=Ut)}else{const Ut=qu(se,m,lt+Lt,yt),Qt=qu(se,m,lt,lt+Lt),an=Ut>=0&&C[Ut],sn=Qt>=0&&C[Qt];if(x&&!sn||!x&&!an){zr(ea(Ye,L),P,se);const bn=function Kv(u,m,C,T,x){const P=new Pa(u,C,Ss);return P.multi=[],P.index=m,P.componentProviders=0,$m(P,x,T&&!C),P}(x?Qv:qv,C.length,x,T,Ae);!x&&sn&&(C[Qt].providerFactory=bn),$u(P,u,m.length,0),m.push(se),Ye.directiveStart++,Ye.directiveEnd++,x&&(Ye.providerIndexes+=1048576),C.push(bn),L.push(bn)}else $u(P,u,Ut>-1?Ut:Qt,$m(C[x?Qt:Ut],Ae,!x&&T));!x&&T&&sn&&C[Qt].componentProviders++}}}function $u(u,m,C,T){const x=jo(m),P=function S_(u){return!!u.useClass}(m);if(x||P){const Ae=(P?N(m.useClass):m).prototype.ngOnDestroy;if(Ae){const Ye=u.destroyHooks||(u.destroyHooks=[]);if(!x&&m.multi){const lt=Ye.indexOf(C);-1===lt?Ye.push(C,[T,Ae]):Ye[lt+1].push(T,Ae)}else Ye.push(C,Ae)}}}function $m(u,m,C){return C&&u.componentProviders++,u.multi.push(m)-1}function qu(u,m,C,T){for(let x=C;x{C.providersResolver=(T,x)=>function $v(u,m,C){const T=Dn();if(T.firstCreatePass){const x=fi(u);Ju(C,T.data,T.blueprint,x,!0),Ju(m,T.data,T.blueprint,x,!1)}}(T,x?x(u):u,m)}}class zs{}class Qm{}function Xv(u,m){return new Km(u,m??null)}class Km extends zs{constructor(m,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cu(this);const T=Vt(m);this._bootstrapComponents=qa(T.bootstrap),this._r3Injector=Op(m,C,[{provide:zs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],E(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Ku extends Qm{constructor(m){super(),this.moduleType=m}create(m){return new Km(this.moduleType,m)}}class eE extends zs{constructor(m,C,T){super(),this.componentFactoryResolver=new Cu(this),this.instance=null;const x=new Vh([...m,{provide:zs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],C||fc(),T,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function Xu(u,m,C=null){return new eE(u,m,C).injector}function ag(u,m,C){const T=qn()+u,x=Kt();return x[T]===Bn?Ta(x,T,C?m.call(C):m()):function Dl(u,m){return u[m]}(x,T)}function og(u,m,C,T){return cg(Kt(),qn(),u,m,C,T)}function sg(u,m,C,T,x){return dg(Kt(),qn(),u,m,C,T,x)}function lg(u,m,C,T,x,P){return ug(Kt(),qn(),u,m,C,T,x,P)}function Hl(u,m){const C=u[m];return C===Bn?void 0:C}function cg(u,m,C,T,x,P){const L=m+C;return mr(u,L,x)?Ta(u,L+1,P?T.call(P,x):T(x)):Hl(u,L+1)}function dg(u,m,C,T,x,P,L){const se=m+C;return Yo(u,se,x,P)?Ta(u,se+2,L?T.call(L,x,P):T(x,P)):Hl(u,se+2)}function ug(u,m,C,T,x,P,L,se){const Ae=m+C;return Dc(u,Ae,x,P,L)?Ta(u,Ae+3,se?T.call(se,x,P,L):T(x,P,L)):Hl(u,Ae+3)}function fg(u,m){const C=Dn();let T;const x=u+22;C.firstCreatePass?(T=function _E(u,m){if(m)for(let C=m.length-1;C>=0;C--){const T=m[C];if(u===T.name)return T}}(m,C.pipeRegistry),C.data[x]=T,T.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,T.onDestroy)):T=C.data[x];const P=T.factory||(T.factory=xi(T.type)),L=V(Ss);try{const se=Sr(!1),Ae=P();return Sr(se),function fC(u,m,C,T){C>=u.data.length&&(u.data[C]=null,u.blueprint[C]=null),m[C]=T}(C,Kt(),x,Ae),Ae}finally{V(L)}}function mg(u,m,C){const T=u+22,x=Kt(),P=Xi(x,T);return Ll(x,T)?cg(x,qn(),m,P.transform,C,P):P.transform(C)}function gg(u,m,C,T){const x=u+22,P=Kt(),L=Xi(P,x);return Ll(P,x)?dg(P,qn(),m,L.transform,C,T,L):L.transform(C,T)}function _g(u,m,C,T,x){const P=u+22,L=Kt(),se=Xi(L,P);return Ll(L,P)?ug(L,qn(),m,se.transform,C,T,x,se):se.transform(C,T,x)}function Ll(u,m){return u[1].data[m].pure}function th(u){return m=>{setTimeout(u,void 0,m)}}const xa=class CE extends e.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,C,T){let x=m,P=C||(()=>null),L=T;if(m&&"object"==typeof m){var se,Ae,Ye;const yt=m;x=null===(se=yt.next)||void 0===se?void 0:se.bind(yt),P=null===(Ae=yt.error)||void 0===Ae?void 0:Ae.bind(yt),L=null===(Ye=yt.complete)||void 0===Ye?void 0:Ye.bind(yt)}this.__isAsync&&(P=th(P),x&&(x=th(x)),L&&(L=th(L)));const lt=super.subscribe({next:x,error:P,complete:L});return m instanceof d.w0&&m.add(lt),lt}};function vE(){return this._results[Wo()]()}class Fc{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 C=Wo(),T=Fc.prototype;T[C]||(T[C]=vE)}get changes(){return this._changes||(this._changes=new xa)}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,C){return this._results.reduce(m,C)}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,C){const T=this;T.dirty=!1;const x=ur(m);(this._changesDetected=!function hl(u,m,C){if(u.length!==m.length)return!1;for(let T=0;T{class u{}return u.__NG_ELEMENT_ID__=TE,u})();const EE=Bl,yE=class extends EE{constructor(m,C,T){super(),this._declarationLView=m,this._declarationTContainer=C,this.elementRef=T}createEmbeddedView(m,C){const T=this._declarationTContainer.tViews,x=Ec(this._declarationLView,T,m,16,null,T.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const L=this._declarationLView[19];return null!==L&&(x[19]=L.createEmbeddedView(T)),yc(T,x,m),new wl(x)}};function TE(){return Uc(di(),Kt())}function Uc(u,m){return 4&u.type?new yE(m,u,ws(u,m)):null}let jc=(()=>{class u{}return u.__NG_ELEMENT_ID__=wE,u})();function wE(){return Cg(di(),Kt())}const ME=jc,Ag=class extends ME{constructor(m,C,T){super(),this._lContainer=m,this._hostTNode=C,this._hostLView=T}get element(){return ws(this._hostTNode,this._hostLView)}get injector(){return new ga(this._hostTNode,this._hostLView)}get parentInjector(){const m=co(this._hostTNode,this._hostLView);if(rs(m)){const C=Lr(m,this._hostLView),T=Xr(m);return new ga(C[1].data[T+8],C)}return new ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const C=bg(this._lContainer);return null!==C&&C[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,C,T){let x,P;"number"==typeof T?x=T:null!=T&&(x=T.index,P=T.injector);const L=m.createEmbeddedView(C||{},P);return this.insert(L,x),L}createComponent(m,C,T,x,P){const L=m&&!function Za(u){return"function"==typeof u}(m);let se;if(L)se=C;else{const yt=C||{};se=yt.index,T=yt.injector,x=yt.projectableNodes,P=yt.environmentInjector||yt.ngModuleRef}const Ae=L?m:new Ml(Le(m)),Ye=T||this.parentInjector;if(!P&&null==Ae.ngModule){const Lt=(L?Ye:this.parentInjector).get(Go,null);Lt&&(P=Lt)}const lt=Ae.create(Ye,x,void 0,P);return this.insert(lt.hostView,se),lt}insert(m,C){const T=m._lView,x=T[1];if(function Ne(u){return Zn(u[3])}(T)){const lt=this.indexOf(m);if(-1!==lt)this.detach(lt);else{const yt=T[3],Lt=new Ag(yt,yt[6],yt[3]);Lt.detach(Lt.indexOf(m))}}const P=this._adjustIndex(C),L=this._lContainer;!function MA(u,m,C,T){const x=10+T,P=C.length;T>0&&(C[x-1][4]=m),T0)T.push(L[se/2]);else{const Ye=P[se+1],lt=m[-Ae];for(let yt=10;yt{class u{constructor(C){this.appInits=C,this.resolve=Zc,this.reject=Zc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((T,x)=>{this.resolve=T,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],T=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{P.subscribe({complete:se,error:Ae})});C.push(L)}}Promise.all(C).then(()=>{T()}).catch(x=>{this.reject(x)}),0===C.length&&T(),this.initialized=!0}}return u.\u0275fac=function(C){return new(C||u)(Pi($g,8))},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const qg=new ei("AppId",{providedIn:"root",factory:function Qg(){return`${hh()}${hh()}${hh()}`}});function hh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kg=new ei("Platform Initializer"),ey=new ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ei("appBootstrapListener"),ty=new ei("AnimationModuleType");let ny=(()=>{class u{log(C){console.log(C)}warn(C){console.warn(C)}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();const Wc=new ei("LocaleId",{providedIn:"root",factory:()=>Jl(Wc,ct.Optional|ct.SkipSelf)||function iy(){return typeof $localize<"u"&&$localize.locale||Gs}()}),ry=new ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class ay{constructor(m,C){this.ngModuleFactory=m,this.componentFactories=C}}let oy=(()=>{class u{compileModuleSync(C){return new Ku(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const T=this.compileModuleSync(C),P=qa(Vt(C).declarations).reduce((L,se)=>{const Ae=Le(se);return Ae&&L.push(new Ml(Ae)),L},[]);return new ay(T,P)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const cy=(()=>Promise.resolve(0))();function ph(u){typeof Zone>"u"?cy.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class kr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:T=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xa(!1),this.onMicrotaskEmpty=new xa(!1),this.onStable=new xa(!1),this.onError=new xa(!1),typeof Zone>"u")throw new ne(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const P=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new P("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!T&&C,x.shouldCoalesceRunChangeDetection=T,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function dy(){let u=i.requestAnimationFrame,m=i.cancelAnimationFrame;if(typeof Zone<"u"&&u&&m){const C=u[Zone.__symbol__("OriginalDelegate")];C&&(u=C);const T=m[Zone.__symbol__("OriginalDelegate")];T&&(m=T)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function py(u){const m=()=>{!function hy(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(i,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,mh(u),u.isCheckStableRunning=!0,fh(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),mh(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,T,x,P,L,se)=>{try{return n_(u),C.invokeTask(x,P,L,se)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===P.type||u.shouldCoalesceRunChangeDetection)&&m(),i_(u)}},onInvoke:(C,T,x,P,L,se,Ae)=>{try{return n_(u),C.invoke(x,P,L,se,Ae)}finally{u.shouldCoalesceRunChangeDetection&&m(),i_(u)}},onHasTask:(C,T,x,P)=>{C.hasTask(x,P),T===x&&("microTask"==P.change?(u._hasPendingMicrotasks=P.microTask,mh(u),fh(u)):"macroTask"==P.change&&(u.hasPendingMacrotasks=P.macroTask))},onHandleError:(C,T,x,P)=>(C.handleError(x,P),u.runOutsideAngular(()=>u.onError.emit(P)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kr.isInAngularZone())throw new ne(909,!1)}static assertNotInAngularZone(){if(kr.isInAngularZone())throw new ne(909,!1)}run(m,C,T){return this._inner.run(m,C,T)}runTask(m,C,T,x){const P=this._inner,L=P.scheduleEventTask("NgZoneEvent: "+x,m,uy,Zc,Zc);try{return P.runTask(L,C,T)}finally{P.cancelTask(L)}}runGuarded(m,C,T){return this._inner.runGuarded(m,C,T)}runOutsideAngular(m){return this._outer.run(m)}}const uy={};function fh(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 mh(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function n_(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function i_(u){u._nesting--,fh(u)}class fy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xa,this.onMicrotaskEmpty=new xa,this.onStable=new xa,this.onError=new xa}run(m,C,T){return m.apply(C,T)}runGuarded(m,C,T){return m.apply(C,T)}runOutsideAngular(m){return m()}runTask(m,C,T,x){return m.apply(C,T)}}const r_=new ei(""),a_=new ei("");let gh,my=(()=>{class u{constructor(C,T,x){this._ngZone=C,this.registry=T,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gh||(function gy(u){gh=u}(x),x.addToWindow(T)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kr.assertNotInAngularZone(),ph(()=>{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())ph(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(T=>!T.updateCb||!T.updateCb(C)||(clearTimeout(T.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,T,x){let P=-1;T&&T>0&&(P=setTimeout(()=>{this._callbacks=this._callbacks.filter(L=>L.timeoutId!==P),C(this._didWork,this.getPendingTasks())},T)),this._callbacks.push({doneCb:C,timeoutId:P,updateCb:x})}whenStable(C,T,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,T,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,T,x){return[]}}return u.\u0275fac=function(C){return new(C||u)(Pi(kr),Pi(o_),Pi(a_))},u.\u0275prov=Te({token:u,factory:u.\u0275fac}),u})(),o_=(()=>{class u{constructor(){this._applications=new Map}registerApplication(C,T){this._applications.set(C,T)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,T=!0){var x,P;return null!==(x=null===(P=gh)||void 0===P?void 0:P.findTestabilityInTree(this,C,T))&&void 0!==x?x:null}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})(),yo=null;const s_=new ei("AllowMultipleToken"),_h=new ei("PlatformDestroyListeners");class by{constructor(m,C){this.name=m,this.token=C}}function c_(u,m,C=[]){const T=`Platform: ${m}`,x=new ei(T);return(P=[])=>{let L=Ah();if(!L||L.injector.get(s_,!1)){const se=[...C,...P,{provide:x,useValue:!0}];u?u(se):function Cy(u){if(yo&&!yo.get(s_,!1))throw new ne(400,!1);yo=u;const m=u.get(u_);(function l_(u){const m=u.get(Kg,null);m&&m.forEach(C=>C())})(u)}(function d_(u=[],m){return zo.create({name:m,providers:[{provide:Ed,useValue:"platform"},{provide:_h,useValue:new Set([()=>yo=null])},...u]})}(se,T))}return function Ey(u){const m=Ah();if(!m)throw new ne(401,!1);return m}()}}function Ah(){var u,m;return null!==(u=null===(m=yo)||void 0===m?void 0:m.get(u_))&&void 0!==u?u:null}let u_=(()=>{class u{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,T){const x=function yy(u,m){let C;return C="noop"===u?new fy:("zone.js"===u?void 0:u)||new kr(m),C}(T?.ngZone,function h_(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!u||!u.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!u||!u.ngZoneRunCoalescing)||!1}}(T)),P=[{provide:kr,useValue:x}];return x.run(()=>{const L=zo.create({providers:P,parent:this.injector,name:C.moduleType.name}),se=C.create(L),Ae=se.injector.get(Cl,null);if(!Ae)throw new ne(402,!1);return x.runOutsideAngular(()=>{const Ye=x.onError.subscribe({next:lt=>{Ae.handleError(lt)}});se.onDestroy(()=>{Jc(this._modules,se),Ye.unsubscribe()})}),function p_(u,m,C){try{const T=C();return Pu(T)?T.catch(x=>{throw m.runOutsideAngular(()=>u.handleError(x)),x}):T}catch(T){throw m.runOutsideAngular(()=>u.handleError(T)),T}}(Ae,x,()=>{const Ye=se.injector.get(zc);return Ye.runInitializers(),Ye.donePromise.then(()=>(function wm(u){I(u,"Expected localeId to be defined"),"string"==typeof u&&(Tm=u.toLowerCase().replace(/_/g,"-"))}(se.injector.get(Wc,Gs)||Gs),this._moduleDoBootstrap(se),se))})})}bootstrapModule(C,T=[]){const x=f_({},T);return function _y(u,m,C){const T=new Ku(C);return Promise.resolve(T)}(0,0,C).then(P=>this.bootstrapModuleFactory(P,x))}_moduleDoBootstrap(C){const T=C.injector.get(Yc);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>T.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ne(403,!1);C.instance.ngDoBootstrap(T)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,!1);this._modules.slice().forEach(T=>T.destroy()),this._destroyListeners.forEach(T=>T());const C=this._injector.get(_h,null);C&&(C.forEach(T=>T()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(C){return new(C||u)(Pi(zo))},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function f_(u,m){return Array.isArray(m)?m.reduce(f_,u):{...u,...m}}let Yc=(()=>{class u{constructor(C,T,x){this._zone=C,this._injector=T,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const P=new _.y(se=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{se.next(this._stable),se.complete()})}),L=new _.y(se=>{let Ae;this._zone.runOutsideAngular(()=>{Ae=this._zone.onStable.subscribe(()=>{kr.assertNotInAngularZone(),ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,se.next(!0))})})});const Ye=this._zone.onUnstable.subscribe(()=>{kr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{se.next(!1)}))});return()=>{Ae.unsubscribe(),Ye.unsubscribe()}});this.isStable=(0,w.T)(P,L.pipe((0,g.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,T){const x=C instanceof Uh;if(!this._injector.get(zc).done)throw!x&&Ys(C),new ne(405,false);let L;L=x?C:this._injector.get(Al).resolveComponentFactory(C),this.componentTypes.push(L.componentType);const se=function Ay(u){return u.isBoundToModule}(L)?void 0:this._injector.get(zs),Ye=L.create(zo.NULL,[],T||L.selector,se),lt=Ye.location.nativeElement,yt=Ye.injector.get(r_,null);return yt?.registerApplication(lt),Ye.onDestroy(()=>{this.detachView(Ye.hostView),Jc(this.components,Ye),yt?.unregisterApplication(lt)}),this._loadComponent(Ye),Ye}tick(){if(this._runningTick)throw new ne(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const T=C;this._views.push(T),T.attachToAppRef(this)}detachView(C){const T=C;Jc(this._views,T),T.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Jc(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ne(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return u.\u0275fac=function(C){return new(C||u)(Pi(kr),Pi(Go),Pi(Cl))},u.\u0275prov=Te({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Jc(u,m){const C=u.indexOf(m);C>-1&&u.splice(C,1)}let g_=!0;function wy(){g_=!1}let My=(()=>{class u{}return u.__NG_ELEMENT_ID__=xy,u})();function xy(u){return function Dy(u,m,C){if(ki(u)&&!C){const T=mi(u.index,m);return new wl(T,T)}return 47&u.type?new wl(m[16],m):null}(di(),Kt(),16==(16&u))}class v_{constructor(){}supports(m){return xl(m)}create(m){return new Hy(m)}}const Oy=(u,m)=>m;class Hy{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||Oy}forEachItem(m){let C;for(C=this._itHead;null!==C;C=C._next)m(C)}forEachOperation(m){let C=this._itHead,T=this._removalsHead,x=0,P=null;for(;C||T;){const L=!T||C&&C.currentIndex{L=this._trackByFn(x,se),null!==C&&Object.is(C.trackById,L)?(T&&(C=this._verifyReinsertion(C,se,L,x)),Object.is(C.item,se)||this._addIdentityChange(C,se)):(C=this._mismatch(C,se,L,x),T=!0),C=C._next,x++}),this.length=x;return this._truncate(C),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,C,T,x){let P;return null===m?P=this._itTail:(P=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null))?(Object.is(m.item,C)||this._addIdentityChange(m,C),this._reinsertAfter(m,P,x)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(T,x))?(Object.is(m.item,C)||this._addIdentityChange(m,C),this._moveAfter(m,P,x)):m=this._addAfter(new Ly(C,T),P,x),m}_verifyReinsertion(m,C,T,x){let P=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null);return null!==P?m=this._reinsertAfter(P,m._prev,x):m.currentIndex!=x&&(m.currentIndex=x,this._addToMoves(m,x)),m}_truncate(m){for(;null!==m;){const C=m._next;this._addToRemovals(this._unlink(m)),m=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,C,T){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const x=m._prevRemoved,P=m._nextRemoved;return null===x?this._removalsHead=P:x._nextRemoved=P,null===P?this._removalsTail=x:P._prevRemoved=x,this._insertAfter(m,C,T),this._addToMoves(m,T),m}_moveAfter(m,C,T){return this._unlink(m),this._insertAfter(m,C,T),this._addToMoves(m,T),m}_addAfter(m,C,T){return this._insertAfter(m,C,T),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,C,T){const x=null===C?this._itHead:C._next;return m._next=x,m._prev=C,null===x?this._itTail=m:x._prev=m,null===C?this._itHead=m:C._next=m,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(m),m.currentIndex=T,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const C=m._prev,T=m._next;return null===C?this._itHead=T:C._next=T,null===T?this._itTail=C:T._prev=C,m}_addToMoves(m,C){return m.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),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,C){return m.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Ly{constructor(m,C){this.item=m,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class By{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,C){let T;for(T=this._head;null!==T;T=T._nextDup)if((null===C||C<=T.currentIndex)&&Object.is(T.trackById,m))return T;return null}remove(m){const C=m._prevDup,T=m._nextDup;return null===C?this._head=T:C._nextDup=T,null===T?this._tail=C:T._prevDup=C,null===this._head}}class E_{constructor(){this.map=new Map}put(m){const C=m.trackById;let T=this.map.get(C);T||(T=new By,this.map.set(C,T)),T.add(m)}get(m,C){const x=this.map.get(m);return x?x.get(m,C):null}remove(m){const C=m.trackById;return this.map.get(C).remove(m)&&this.map.delete(C),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function y_(u,m,C){const T=u.previousIndex;if(null===T)return T;let x=0;return C&&T{if(C&&C.key===x)this._maybeAddToChanges(C,T),this._appendAfter=C,C=C._next;else{const P=this._getOrCreateRecordForKey(x,T);C=this._insertBeforeOrAppend(C,P)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let T=C;null!==T;T=T._nextRemoved)T===this._mapHead&&(this._mapHead=null),this._records.delete(T.key),T._nextRemoved=T._next,T.previousValue=T.currentValue,T.currentValue=null,T._prev=null,T._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,C){if(m){const T=m._prev;return C._next=m,C._prev=T,m._prev=C,T&&(T._next=C),m===this._mapHead&&(this._mapHead=C),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(m,C){if(this._records.has(m)){const x=this._records.get(m);this._maybeAddToChanges(x,C);const P=x._prev,L=x._next;return P&&(P._next=L),L&&(L._prev=P),x._next=null,x._prev=null,x}const T=new ky(m);return this._records.set(m,T),T.currentValue=C,this._addToAdditions(T),T}_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,C){Object.is(C,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=C,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,C){m instanceof Map?m.forEach(C):Object.keys(m).forEach(T=>C(m[T],T))}}class ky{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 w_(){return new yh([new v_])}let yh=(()=>{class u{constructor(C){this.factories=C}static create(C,T){if(null!=T){const x=T.factories.slice();C=C.concat(x)}return new u(C)}static extend(C){return{provide:u,useFactory:T=>u.create(C,T||w_()),deps:[[u,new ko,new ba]]}}find(C){const T=this.factories.find(x=>x.supports(C));if(null!=T)return T;throw new ne(901,!1)}}return u.\u0275prov=Te({token:u,providedIn:"root",factory:w_}),u})();function M_(){return new Th([new T_])}let Th=(()=>{class u{constructor(C){this.factories=C}static create(C,T){if(T){const x=T.factories.slice();C=C.concat(x)}return new u(C)}static extend(C){return{provide:u,useFactory:T=>u.create(C,T||M_()),deps:[[u,new ko,new ba]]}}find(C){const T=this.factories.find(x=>x.supports(C));if(T)return T;throw new ne(901,!1)}}return u.\u0275prov=Te({token:u,providedIn:"root",factory:M_}),u})();const Uy=c_(null,"core",[]);let jy=(()=>{class u{constructor(C){}}return u.\u0275fac=function(C){return new(C||u)(Pi(Yc))},u.\u0275mod=$({type:u}),u.\u0275inj=Xe({}),u})();function Gy(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}},24006:(We,pe,h)=>{"use strict";h.d(pe,{Cf:()=>fe,EJ:()=>br,F:()=>ai,Fj:()=>Q,JJ:()=>ze,JL:()=>oe,JU:()=>E,Kr:()=>Qi,NI:()=>In,On:()=>rr,Q7:()=>Xi,QS:()=>Mr,UX:()=>Yn,YN:()=>cr,Zs:()=>mi,_Y:()=>ar,a5:()=>ae,c5:()=>mn,kI:()=>v,oH:()=>Fn,p4:()=>zi,sg:()=>si,u:()=>or,u5:()=>gi,wV:()=>_i});var e=h(94650),d=h(36895),_=h(32076),w=h(4128),g=h(54004);let b=(()=>{class Ue{constructor(be,mt){this._renderer=be,this._elementRef=mt,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(be,mt){this._renderer.setProperty(this._elementRef.nativeElement,be,mt)}registerOnTouched(be){this.onTouched=be}registerOnChange(be){this.onChange=be}setDisabledState(be){this.setProperty("disabled",be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ue.\u0275dir=e.lG2({type:Ue}),Ue})(),y=(()=>{class Ue extends b{}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,features:[e.qOj]}),Ue})();const E=new e.OlP("NgValueAccessor"),A={provide:E,useExisting:(0,e.Gpc)(()=>Q),multi:!0},z=new e.OlP("CompositionEventMode");let Q=(()=>{class Ue extends b{constructor(be,mt,Wt){super(be,mt),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const Ue=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Ue.toLowerCase())}())}writeValue(be){this.setProperty("value",be??"")}_handleInput(be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(be)}_compositionStart(){this._composing=!0}_compositionEnd(be){this._composing=!1,this._compositionMode&&this.onChange(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(z,8))},Ue.\u0275dir=e.lG2({type:Ue,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(be,mt){1&be&&e.NdJ("input",function(hn){return mt._handleInput(hn.target.value)})("blur",function(){return mt.onTouched()})("compositionstart",function(){return mt._compositionStart()})("compositionend",function(hn){return mt._compositionEnd(hn.target.value)})},features:[e._Bn([A]),e.qOj]}),Ue})();function he(Ue){return null==Ue||("string"==typeof Ue||Array.isArray(Ue))&&0===Ue.length}function ee(Ue){return null!=Ue&&"number"==typeof Ue.length}const fe=new e.OlP("NgValidators"),ce=new e.OlP("NgAsyncValidators"),ve=/^(?=.{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 v{static min(Re){return function O(Ue){return Re=>{if(he(Re.value)||he(Ue))return null;const be=parseFloat(Re.value);return!isNaN(be)&&be{if(he(Re.value)||he(Ue))return null;const be=parseFloat(Re.value);return!isNaN(be)&&be>Ue?{max:{max:Ue,actual:Re.value}}:null}}(Re)}static required(Re){return Y(Re)}static requiredTrue(Re){return q(Re)}static email(Re){return function ue(Ue){return he(Ue.value)||ve.test(Ue.value)?null:{email:!0}}(Re)}static minLength(Re){return function Ee(Ue){return Re=>he(Re.value)||!ee(Re.value)?null:Re.value.lengthee(Re.value)&&Re.value.length>Ue?{maxlength:{requiredLength:Ue,actualLength:Re.value.length}}:null}(Re)}static pattern(Re){return Se(Re)}static nullValidator(Re){return null}static compose(Re){return F(Re)}static composeAsync(Re){return G(Re)}}function Y(Ue){return he(Ue.value)?{required:!0}:null}function q(Ue){return!0===Ue.value?null:{required:!0}}function Se(Ue){if(!Ue)return Ge;let Re,be;return"string"==typeof Ue?(be="","^"!==Ue.charAt(0)&&(be+="^"),be+=Ue,"$"!==Ue.charAt(Ue.length-1)&&(be+="$"),Re=new RegExp(be)):(be=Ue.toString(),Re=Ue),mt=>{if(he(mt.value))return null;const Wt=mt.value;return Re.test(Wt)?null:{pattern:{requiredPattern:be,actualValue:Wt}}}}function Ge(Ue){return null}function Ce(Ue){return null!=Ue}function qe(Ue){return(0,e.QGY)(Ue)?(0,_.D)(Ue):Ue}function Pe(Ue){let Re={};return Ue.forEach(be=>{Re=null!=be?{...Re,...be}:Re}),0===Object.keys(Re).length?null:Re}function we(Ue,Re){return Re.map(be=>be(Ue))}function I(Ue){return Ue.map(Re=>function j(Ue){return!Ue.validate}(Re)?Re:be=>Re.validate(be))}function F(Ue){if(!Ue)return null;const Re=Ue.filter(Ce);return 0==Re.length?null:function(be){return Pe(we(be,Re))}}function ge(Ue){return null!=Ue?F(I(Ue)):null}function G(Ue){if(!Ue)return null;const Re=Ue.filter(Ce);return 0==Re.length?null:function(be){const mt=we(be,Re).map(qe);return(0,w.D)(mt).pipe((0,g.U)(Pe))}}function _e(Ue){return null!=Ue?G(I(Ue)):null}function Te(Ue,Re){return null===Ue?[Re]:Array.isArray(Ue)?[...Ue,Re]:[Ue,Re]}function et(Ue){return Ue._rawValidators}function Xe(Ue){return Ue._rawAsyncValidators}function vt(Ue){return Ue?Array.isArray(Ue)?Ue:[Ue]:[]}function rt(Ue,Re){return Array.isArray(Ue)?Ue.includes(Re):Ue===Re}function ht(Ue,Re){const be=vt(Re);return vt(Ue).forEach(Wt=>{rt(be,Wt)||be.push(Wt)}),be}function W(Ue,Re){return vt(Re).filter(be=>!rt(Ue,be))}class le{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(Re){this._rawValidators=Re||[],this._composedValidatorFn=ge(this._rawValidators)}_setAsyncValidators(Re){this._rawAsyncValidators=Re||[],this._composedAsyncValidatorFn=_e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Re){this._onDestroyCallbacks.push(Re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Re=>Re()),this._onDestroyCallbacks=[]}reset(Re){this.control&&this.control.reset(Re)}hasError(Re,be){return!!this.control&&this.control.hasError(Re,be)}getError(Re,be){return this.control?this.control.getError(Re,be):null}}class ie extends le{get formDirective(){return null}get path(){return null}}class ae extends le{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ze{constructor(Re){this._cd=Re}get isTouched(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.touched)}get isUntouched(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.untouched)}get isPristine(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.pristine)}get isDirty(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.dirty)}get isValid(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.valid)}get isInvalid(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.invalid)}get isPending(){var Re,be;return!(null===(Re=this._cd)||void 0===Re||null===(be=Re.control)||void 0===be||!be.pending)}get isSubmitted(){var Re;return!(null===(Re=this._cd)||void 0===Re||!Re.submitted)}}let ze=(()=>{class Ue extends Ze{constructor(be){super(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(ae,2))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(be,mt){2&be&&e.ekj("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)},features:[e.qOj]}),Ue})(),oe=(()=>{class Ue extends Ze{constructor(be){super(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(ie,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(be,mt){2&be&&e.ekj("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)("ng-submitted",mt.isSubmitted)},features:[e.qOj]}),Ue})();const pt="VALID",je="INVALID",Oe="PENDING",Qe="DISABLED";function ye(Ue){return(Ve(Ue)?Ue.validators:Ue)||null}function Ie(Ue){return Array.isArray(Ue)?ge(Ue):Ue||null}function $(Ue,Re){return(Ve(Re)?Re.asyncValidators:Ue)||null}function de(Ue){return Array.isArray(Ue)?_e(Ue):Ue||null}function Ve(Ue){return null!=Ue&&!Array.isArray(Ue)&&"object"==typeof Ue}function $e(Ue,Re,be){const mt=Ue.controls;if(!(Re?Object.keys(mt):mt).length)throw new e.vHH(1e3,"");if(!mt[be])throw new e.vHH(1001,"")}function nt(Ue,Re,be){Ue._forEachChild((mt,Wt)=>{if(void 0===be[Wt])throw new e.vHH(1002,"")})}class Le{constructor(Re,be){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Re,this._rawAsyncValidators=be,this._composedValidatorFn=Ie(this._rawValidators),this._composedAsyncValidatorFn=de(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Re){this._rawValidators=this._composedValidatorFn=Re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Re){this._rawAsyncValidators=this._composedAsyncValidatorFn=Re}get parent(){return this._parent}get valid(){return this.status===pt}get invalid(){return this.status===je}get pending(){return this.status==Oe}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Re){this._rawValidators=Re,this._composedValidatorFn=Ie(Re)}setAsyncValidators(Re){this._rawAsyncValidators=Re,this._composedAsyncValidatorFn=de(Re)}addValidators(Re){this.setValidators(ht(Re,this._rawValidators))}addAsyncValidators(Re){this.setAsyncValidators(ht(Re,this._rawAsyncValidators))}removeValidators(Re){this.setValidators(W(Re,this._rawValidators))}removeAsyncValidators(Re){this.setAsyncValidators(W(Re,this._rawAsyncValidators))}hasValidator(Re){return rt(this._rawValidators,Re)}hasAsyncValidator(Re){return rt(this._rawAsyncValidators,Re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Re={}){this.touched=!0,this._parent&&!Re.onlySelf&&this._parent.markAsTouched(Re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Re=>Re.markAllAsTouched())}markAsUntouched(Re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(be=>{be.markAsUntouched({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}markAsDirty(Re={}){this.pristine=!1,this._parent&&!Re.onlySelf&&this._parent.markAsDirty(Re)}markAsPristine(Re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(be=>{be.markAsPristine({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}markAsPending(Re={}){this.status=Oe,!1!==Re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Re.onlySelf&&this._parent.markAsPending(Re)}disable(Re={}){const be=this._parentMarkedDirty(Re.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(mt=>{mt.disable({...Re,onlySelf:!0})}),this._updateValue(),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Re,skipPristineCheck:be}),this._onDisabledChange.forEach(mt=>mt(!0))}enable(Re={}){const be=this._parentMarkedDirty(Re.onlySelf);this.status=pt,this._forEachChild(mt=>{mt.enable({...Re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent}),this._updateAncestors({...Re,skipPristineCheck:be}),this._onDisabledChange.forEach(mt=>mt(!1))}_updateAncestors(Re){this._parent&&!Re.onlySelf&&(this._parent.updateValueAndValidity(Re),Re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Re){this._parent=Re}getRawValue(){return this.value}updateValueAndValidity(Re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pt||this.status===Oe)&&this._runAsyncValidator(Re.emitEvent)),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Re.onlySelf&&this._parent.updateValueAndValidity(Re)}_updateTreeValidity(Re={emitEvent:!0}){this._forEachChild(be=>be._updateTreeValidity(Re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:pt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Re){if(this.asyncValidator){this.status=Oe,this._hasOwnPendingAsyncValidator=!0;const be=qe(this.asyncValidator(this));this._asyncValidationSubscription=be.subscribe(mt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(mt,{emitEvent:Re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Re,be={}){this.errors=Re,this._updateControlsErrors(!1!==be.emitEvent)}get(Re){let be=Re;return null==be||(Array.isArray(be)||(be=be.split(".")),0===be.length)?null:be.reduce((mt,Wt)=>mt&&mt._find(Wt),this)}getError(Re,be){const mt=be?this.get(be):this;return mt&&mt.errors?mt.errors[Re]:null}hasError(Re,be){return!!this.getError(Re,be)}get root(){let Re=this;for(;Re._parent;)Re=Re._parent;return Re}_updateControlsErrors(Re){this.status=this._calculateStatus(),Re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Re)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?je:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Oe)?Oe:this._anyControlsHaveStatus(je)?je:pt}_anyControlsHaveStatus(Re){return this._anyControls(be=>be.status===Re)}_anyControlsDirty(){return this._anyControls(Re=>Re.dirty)}_anyControlsTouched(){return this._anyControls(Re=>Re.touched)}_updatePristine(Re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}_updateTouched(Re={}){this.touched=this._anyControlsTouched(),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}_registerOnCollectionChange(Re){this._onCollectionChange=Re}_setUpdateStrategy(Re){Ve(Re)&&null!=Re.updateOn&&(this._updateOn=Re.updateOn)}_parentMarkedDirty(Re){return!Re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Re){return null}}class st extends Le{constructor(Re,be,mt){super(ye(be),$(mt,be)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Re,be){return this.controls[Re]?this.controls[Re]:(this.controls[Re]=be,be.setParent(this),be._registerOnCollectionChange(this._onCollectionChange),be)}addControl(Re,be,mt={}){this.registerControl(Re,be),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}removeControl(Re,be={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}setControl(Re,be,mt={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],be&&this.registerControl(Re,be),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}contains(Re){return this.controls.hasOwnProperty(Re)&&this.controls[Re].enabled}setValue(Re,be={}){nt(this,0,Re),Object.keys(Re).forEach(mt=>{$e(this,!0,mt),this.controls[mt].setValue(Re[mt],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Re,be={}){null!=Re&&(Object.keys(Re).forEach(mt=>{const Wt=this.controls[mt];Wt&&Wt.patchValue(Re[mt],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Re={},be={}){this._forEachChild((mt,Wt)=>{mt.reset(Re[Wt],{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be),this._updateTouched(be),this.updateValueAndValidity(be)}getRawValue(){return this._reduceChildren({},(Re,be,mt)=>(Re[mt]=be.getRawValue(),Re))}_syncPendingControls(){let Re=this._reduceChildren(!1,(be,mt)=>!!mt._syncPendingControls()||be);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){Object.keys(this.controls).forEach(be=>{const mt=this.controls[be];mt&&Re(mt,be)})}_setUpControls(){this._forEachChild(Re=>{Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Re){for(const[be,mt]of Object.entries(this.controls))if(this.contains(be)&&Re(mt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(be,mt,Wt)=>((mt.enabled||this.disabled)&&(be[Wt]=mt.value),be))}_reduceChildren(Re,be){let mt=Re;return this._forEachChild((Wt,hn)=>{mt=be(mt,Wt,hn)}),mt}_allControlsDisabled(){for(const Re of Object.keys(this.controls))if(this.controls[Re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Re){return this.controls.hasOwnProperty(Re)?this.controls[Re]:null}}function nn(Ue,Re){return[...Re.path,Ue]}function un(Ue,Re){var be,mt;kt(Ue,Re),Re.valueAccessor.writeValue(Ue.value),Ue.disabled&&(null===(be=(mt=Re.valueAccessor).setDisabledState)||void 0===be||be.call(mt,!0)),function pn(Ue,Re){Re.valueAccessor.registerOnChange(be=>{Ue._pendingValue=be,Ue._pendingChange=!0,Ue._pendingDirty=!0,"change"===Ue.updateOn&&fn(Ue,Re)})}(Ue,Re),function Wn(Ue,Re){const be=(mt,Wt)=>{Re.valueAccessor.writeValue(mt),Wt&&Re.viewToModelUpdate(mt)};Ue.registerOnChange(be),Re._registerOnDestroy(()=>{Ue._unregisterOnChange(be)})}(Ue,Re),function vn(Ue,Re){Re.valueAccessor.registerOnTouched(()=>{Ue._pendingTouched=!0,"blur"===Ue.updateOn&&Ue._pendingChange&&fn(Ue,Re),"submit"!==Ue.updateOn&&Ue.markAsTouched()})}(Ue,Re),function Ct(Ue,Re){if(Re.valueAccessor.setDisabledState){const be=mt=>{Re.valueAccessor.setDisabledState(mt)};Ue.registerOnDisabledChange(be),Re._registerOnDestroy(()=>{Ue._unregisterOnDisabledChange(be)})}}(Ue,Re)}function Bt(Ue,Re,be=!0){const mt=()=>{};Re.valueAccessor&&(Re.valueAccessor.registerOnChange(mt),Re.valueAccessor.registerOnTouched(mt)),Yt(Ue,Re),Ue&&(Re._invokeOnDestroyCallbacks(),Ue._registerOnCollectionChange(()=>{}))}function It(Ue,Re){Ue.forEach(be=>{be.registerOnValidatorChange&&be.registerOnValidatorChange(Re)})}function kt(Ue,Re){const be=et(Ue);null!==Re.validator?Ue.setValidators(Te(be,Re.validator)):"function"==typeof be&&Ue.setValidators([be]);const mt=Xe(Ue);null!==Re.asyncValidator?Ue.setAsyncValidators(Te(mt,Re.asyncValidator)):"function"==typeof mt&&Ue.setAsyncValidators([mt]);const Wt=()=>Ue.updateValueAndValidity();It(Re._rawValidators,Wt),It(Re._rawAsyncValidators,Wt)}function Yt(Ue,Re){let be=!1;if(null!==Ue){if(null!==Re.validator){const Wt=et(Ue);if(Array.isArray(Wt)&&Wt.length>0){const hn=Wt.filter(Jn=>Jn!==Re.validator);hn.length!==Wt.length&&(be=!0,Ue.setValidators(hn))}}if(null!==Re.asyncValidator){const Wt=Xe(Ue);if(Array.isArray(Wt)&&Wt.length>0){const hn=Wt.filter(Jn=>Jn!==Re.asyncValidator);hn.length!==Wt.length&&(be=!0,Ue.setAsyncValidators(hn))}}}const mt=()=>{};return It(Re._rawValidators,mt),It(Re._rawAsyncValidators,mt),be}function fn(Ue,Re){Ue._pendingDirty&&Ue.markAsDirty(),Ue.setValue(Ue._pendingValue,{emitModelToViewChange:!1}),Re.viewToModelUpdate(Ue._pendingValue),Ue._pendingChange=!1}function _t(Ue,Re){kt(Ue,Re)}function Fe(Ue,Re){if(!Ue.hasOwnProperty("model"))return!1;const be=Ue.model;return!!be.isFirstChange()||!Object.is(Re,be.currentValue)}function Mt(Ue,Re){Ue._syncPendingControls(),Re.forEach(be=>{const mt=be.control;"submit"===mt.updateOn&&mt._pendingChange&&(be.viewToModelUpdate(mt._pendingValue),mt._pendingChange=!1)})}function $t(Ue,Re){if(!Re)return null;let be,mt,Wt;return Array.isArray(Re),Re.forEach(hn=>{hn.constructor===Q?be=hn:function At(Ue){return Object.getPrototypeOf(Ue.constructor)===y}(hn)?mt=hn:Wt=hn}),Wt||mt||be||null}const Pn={provide:ie,useExisting:(0,e.Gpc)(()=>ai)},$n=(()=>Promise.resolve(null))();let ai=(()=>{class Ue extends ie{constructor(be,mt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new st({},ge(be),_e(mt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(be){$n.then(()=>{const mt=this._findContainer(be.path);be.control=mt.registerControl(be.name,be.control),un(be.control,be),be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(be)})}getControl(be){return this.form.get(be.path)}removeControl(be){$n.then(()=>{const mt=this._findContainer(be.path);mt&&mt.removeControl(be.name),this._directives.delete(be)})}addFormGroup(be){$n.then(()=>{const mt=this._findContainer(be.path),Wt=new st({});_t(Wt,be),mt.registerControl(be.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(be){$n.then(()=>{const mt=this._findContainer(be.path);mt&&mt.removeControl(be.name)})}getFormGroup(be){return this.form.get(be.path)}updateModel(be,mt){$n.then(()=>{this.form.get(be.path).setValue(mt)})}setValue(be){this.control.setValue(be)}onSubmit(be){return this.submitted=!0,Mt(this.form,this._directives),this.ngSubmit.emit(be),!1}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(be){return be.pop(),be.length?this.form.get(be):this.form}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ce,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(be,mt){1&be&&e.NdJ("submit",function(hn){return mt.onSubmit(hn)})("reset",function(){return mt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Pn]),e.qOj]}),Ue})();function oi(Ue,Re){const be=Ue.indexOf(Re);be>-1&&Ue.splice(be,1)}function Gn(Ue){return"object"==typeof Ue&&null!==Ue&&2===Object.keys(Ue).length&&"value"in Ue&&"disabled"in Ue}const In=class extends Le{constructor(Re=null,be,mt){super(ye(be),$(mt,be)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Re),this._setUpdateStrategy(be),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ve(be)&&(be.nonNullable||be.initialValueIsDefault)&&(this.defaultValue=Gn(Re)?Re.value:Re)}setValue(Re,be={}){this.value=this._pendingValue=Re,this._onChange.length&&!1!==be.emitModelToViewChange&&this._onChange.forEach(mt=>mt(this.value,!1!==be.emitViewToModelChange)),this.updateValueAndValidity(be)}patchValue(Re,be={}){this.setValue(Re,be)}reset(Re=this.defaultValue,be={}){this._applyFormState(Re),this.markAsPristine(be),this.markAsUntouched(be),this.setValue(this.value,be),this._pendingChange=!1}_updateValue(){}_anyControls(Re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Re){this._onChange.push(Re)}_unregisterOnChange(Re){oi(this._onChange,Re)}registerOnDisabledChange(Re){this._onDisabledChange.push(Re)}_unregisterOnDisabledChange(Re){oi(this._onDisabledChange,Re)}_forEachChild(Re){}_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(Re){Gn(Re)?(this.value=this._pendingValue=Re.value,Re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Re}},zi=In,ir={provide:ae,useExisting:(0,e.Gpc)(()=>rr)},gr=(()=>Promise.resolve(null))();let rr=(()=>{class Ue extends ae{constructor(be,mt,Wt,hn,Jn){super(),this._changeDetectorRef=Jn,this.control=new In,this._registered=!1,this.update=new e.vpe,this._parent=be,this._setValidators(mt),this._setAsyncValidators(Wt),this.valueAccessor=$t(0,hn)}ngOnChanges(be){if(this._checkForErrors(),!this._registered||"name"in be){if(this._registered&&(this._checkName(),this.formDirective)){const mt=be.name.previousValue;this.formDirective.removeControl({name:mt,path:this._getPath(mt)})}this._setUpControl()}"isDisabled"in be&&this._updateDisabled(be),Fe(be,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(be){this.viewModel=be,this.update.emit(be)}_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(){un(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(be){gr.then(()=>{var mt;this.control.setValue(be,{emitViewToModelChange:!1}),null===(mt=this._changeDetectorRef)||void 0===mt||mt.markForCheck()})}_updateDisabled(be){const mt=be.isDisabled.currentValue,Wt=0!==mt&&(0,e.D6c)(mt);gr.then(()=>{var hn;Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable(),null===(hn=this._changeDetectorRef)||void 0===hn||hn.markForCheck()})}_getPath(be){return this._parent?nn(be,this._parent):[be]}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(ie,9),e.Y36(fe,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(e.sBO,8))},Ue.\u0275dir=e.lG2({type:Ue,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([ir]),e.qOj,e.TTD]}),Ue})(),ar=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ue})();const la={provide:E,useExisting:(0,e.Gpc)(()=>_i),multi:!0};let _i=(()=>{class Ue extends y{writeValue(be){this.setProperty("value",be??"")}registerOnChange(be){this.onChange=mt=>{be(""==mt?null:parseFloat(mt))}}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(be,mt){1&be&&e.NdJ("input",function(hn){return mt.onChange(hn.target.value)})("blur",function(){return mt.onTouched()})},features:[e._Bn([la]),e.qOj]}),Ue})(),te=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({}),Ue})();const en=new e.OlP("NgModelWithFormControlWarning"),cn={provide:ae,useExisting:(0,e.Gpc)(()=>Fn)};let Fn=(()=>{class Ue extends ae{constructor(be,mt,Wt,hn){super(),this._ngModelWarningConfig=hn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(be),this._setAsyncValidators(mt),this.valueAccessor=$t(0,Wt)}set isDisabled(be){}ngOnChanges(be){if(this._isControlChanged(be)){const mt=be.form.previousValue;mt&&Bt(mt,this,!1),un(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Fe(be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Bt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_isControlChanged(be){return be.hasOwnProperty("form")}}return Ue._ngModelWarningSentOnce=!1,Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(en,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([cn]),e.qOj,e.TTD]}),Ue})();const jn={provide:ie,useExisting:(0,e.Gpc)(()=>si)};let si=(()=>{class Ue extends ie{constructor(be,mt){super(),this.validators=be,this.asyncValidators=mt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(be),this._setAsyncValidators(mt)}ngOnChanges(be){this._checkFormPresent(),be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(be){const mt=this.form.get(be.path);return un(mt,be),mt.updateValueAndValidity({emitEvent:!1}),this.directives.push(be),mt}getControl(be){return this.form.get(be.path)}removeControl(be){Bt(be.control||null,be,!1),function An(Ue,Re){const be=Ue.indexOf(Re);be>-1&&Ue.splice(be,1)}(this.directives,be)}addFormGroup(be){this._setUpFormContainer(be)}removeFormGroup(be){this._cleanUpFormContainer(be)}getFormGroup(be){return this.form.get(be.path)}addFormArray(be){this._setUpFormContainer(be)}removeFormArray(be){this._cleanUpFormContainer(be)}getFormArray(be){return this.form.get(be.path)}updateModel(be,mt){this.form.get(be.path).setValue(mt)}onSubmit(be){return this.submitted=!0,Mt(this.form,this.directives),this.ngSubmit.emit(be),!1}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_updateDomValue(){this.directives.forEach(be=>{const mt=be.control,Wt=this.form.get(be.path);mt!==Wt&&(Bt(mt||null,be),(Ue=>Ue instanceof In)(Wt)&&(un(Wt,be),be.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(be){const mt=this.form.get(be.path);_t(mt,be),mt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(be){if(this.form){const mt=this.form.get(be.path);mt&&function Ht(Ue,Re){return Yt(Ue,Re)}(mt,be)&&mt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kt(this.form,this),this._oldForm&&Yt(this._oldForm,this)}_checkFormPresent(){}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ce,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formGroup",""]],hostBindings:function(be,mt){1&be&&e.NdJ("submit",function(hn){return mt.onSubmit(hn)})("reset",function(){return mt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([jn]),e.qOj,e.TTD]}),Ue})();const _r={provide:ae,useExisting:(0,e.Gpc)(()=>or)};let or=(()=>{class Ue extends ae{constructor(be,mt,Wt,hn,Jn){super(),this._ngModelWarningConfig=Jn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=be,this._setValidators(mt),this._setAsyncValidators(Wt),this.valueAccessor=$t(0,hn)}set isDisabled(be){}ngOnChanges(be){this._added||this._setUpControl(),Fe(be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}get path(){return nn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ue._ngModelWarningSentOnce=!1,Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(ie,13),e.Y36(fe,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(en,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([_r]),e.qOj,e.TTD]}),Ue})();const sr={provide:E,useExisting:(0,e.Gpc)(()=>br),multi:!0};function lr(Ue,Re){return null==Ue?`${Re}`:(Re&&"object"==typeof Re&&(Re="Object"),`${Ue}: ${Re}`.slice(0,50))}let br=(()=>{class Ue extends y{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){this.value=be;const Wt=lr(this._getOptionId(be),be);this.setProperty("value",Wt)}registerOnChange(be){this.onChange=mt=>{this.value=this._getOptionValue(mt),be(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(be){for(const mt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(mt),be))return mt;return null}_getOptionValue(be){const mt=function Ar(Ue){return Ue.split(":")[0]}(be);return this._optionMap.has(mt)?this._optionMap.get(mt):be}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(be,mt){1&be&&e.NdJ("change",function(hn){return mt.onChange(hn.target.value)})("blur",function(){return mt.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([sr]),e.qOj]}),Ue})(),cr=(()=>{class Ue{constructor(be,mt,Wt){this._element=be,this._renderer=mt,this._select=Wt,this._select&&(this.id=this._select._registerOption())}set ngValue(be){null!=this._select&&(this._select._optionMap.set(this.id,be),this._setElementValue(lr(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._setElementValue(be),this._select&&this._select.writeValue(this._select.value)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(br,9))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ue})();const Fr={provide:E,useExisting:(0,e.Gpc)(()=>Ur),multi:!0};function $r(Ue,Re){return null==Ue?`${Re}`:("string"==typeof Re&&(Re=`'${Re}'`),Re&&"object"==typeof Re&&(Re="Object"),`${Ue}: ${Re}`.slice(0,50))}let Ur=(()=>{class Ue extends y{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){let mt;if(this.value=be,Array.isArray(be)){const Wt=be.map(hn=>this._getOptionId(hn));mt=(hn,Jn)=>{hn._setSelected(Wt.indexOf(Jn.toString())>-1)}}else mt=(Wt,hn)=>{Wt._setSelected(!1)};this._optionMap.forEach(mt)}registerOnChange(be){this.onChange=mt=>{const Wt=[],hn=mt.selectedOptions;if(void 0!==hn){const Jn=hn;for(let qn=0;qn{class Ue{constructor(be,mt,Wt){this._element=be,this._renderer=mt,this._select=Wt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(be){null!=this._select&&(this._value=be,this._setElementValue($r(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._select?(this._value=be,this._setElementValue($r(this.id,be)),this._select.writeValue(this._select.value)):this._setElementValue(be)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}_setSelected(be){this._renderer.setProperty(this._element.nativeElement,"selected",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ur,9))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ue})(),zn=(()=>{class Ue{constructor(){this._validator=Ge}ngOnChanges(be){if(this.inputName in be){const mt=this.normalizeInput(be[this.inputName].currentValue);this._enabled=this.enabled(mt),this._validator=this._enabled?this.createValidator(mt):Ge,this._onChange&&this._onChange()}}validate(be){return this._validator(be)}registerOnValidatorChange(be){this._onChange=be}enabled(be){return null!=be}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275dir=e.lG2({type:Ue,features:[e.TTD]}),Ue})();const jr={provide:fe,useExisting:(0,e.Gpc)(()=>Xi),multi:!0},ca={provide:fe,useExisting:(0,e.Gpc)(()=>mi),multi:!0};let Xi=(()=>{class Ue extends zn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=be=>Y}enabled(be){return be}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(be,mt){2&be&&e.uIk("required",mt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([jr]),e.qOj]}),Ue})(),mi=(()=>{class Ue extends Xi{constructor(){super(...arguments),this.createValidator=be=>q}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(be,mt){2&be&&e.uIk("required",mt._enabled?"":null)},features:[e._Bn([ca]),e.qOj]}),Ue})();const jt={provide:fe,useExisting:(0,e.Gpc)(()=>mn),multi:!0};let mn=(()=>{class Ue extends zn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=be=>be,this.createValidator=be=>Se(be)}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(be,mt){2&be&&e.uIk("pattern",mt._enabled?mt.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([jt]),e.qOj]}),Ue})(),Hn=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[te]}),Ue})(),gi=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[Hn]}),Ue})(),Yn=(()=>{class Ue{static withConfig(be){return{ngModule:Ue,providers:[{provide:en,useValue:be.warnOnNgModelWithFormControl}]}}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[Hn]}),Ue})();class li extends Le{constructor(Re,be,mt){super(ye(be),$(mt,be)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Re){return this.controls[this._adjustIndex(Re)]}push(Re,be={}){this.controls.push(Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}insert(Re,be,mt={}){this.controls.splice(Re,0,be),this._registerControl(be),this.updateValueAndValidity({emitEvent:mt.emitEvent})}removeAt(Re,be={}){let mt=this._adjustIndex(Re);mt<0&&(mt=0),this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),this.updateValueAndValidity({emitEvent:be.emitEvent})}setControl(Re,be,mt={}){let Wt=this._adjustIndex(Re);Wt<0&&(Wt=0),this.controls[Wt]&&this.controls[Wt]._registerOnCollectionChange(()=>{}),this.controls.splice(Wt,1),be&&(this.controls.splice(Wt,0,be),this._registerControl(be)),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Re,be={}){nt(this,0,Re),Re.forEach((mt,Wt)=>{$e(this,!1,Wt),this.at(Wt).setValue(mt,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Re,be={}){null!=Re&&(Re.forEach((mt,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(mt,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Re=[],be={}){this._forEachChild((mt,Wt)=>{mt.reset(Re[Wt],{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be),this._updateTouched(be),this.updateValueAndValidity(be)}getRawValue(){return this.controls.map(Re=>Re.getRawValue())}clear(Re={}){this.controls.length<1||(this._forEachChild(be=>be._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Re.emitEvent}))}_adjustIndex(Re){return Re<0?Re+this.length:Re}_syncPendingControls(){let Re=this.controls.reduce((be,mt)=>!!mt._syncPendingControls()||be,!1);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){this.controls.forEach((be,mt)=>{Re(be,mt)})}_updateValue(){this.value=this.controls.filter(Re=>Re.enabled||this.disabled).map(Re=>Re.value)}_anyControls(Re){return this.controls.some(be=>be.enabled&&Re(be))}_setUpControls(){this._forEachChild(Re=>this._registerControl(Re))}_allControlsDisabled(){for(const Re of this.controls)if(Re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Re){Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)}_find(Re){var be;return null!==(be=this.at(Re))&&void 0!==be?be:null}}function Vi(Ue){return!!Ue&&(void 0!==Ue.asyncValidators||void 0!==Ue.validators||void 0!==Ue.updateOn)}let Oi=(()=>{class Ue{constructor(){this.useNonNullable=!1}get nonNullable(){const be=new Ue;return be.useNonNullable=!0,be}group(be,mt=null){const Wt=this._reduceControls(be);let hn={};return Vi(mt)?hn=mt:null!==mt&&(hn.validators=mt.validator,hn.asyncValidators=mt.asyncValidator),new st(Wt,hn)}control(be,mt,Wt){let hn={};return this.useNonNullable?(Vi(mt)?hn=mt:(hn.validators=mt,hn.asyncValidators=Wt),new In(be,{...hn,nonNullable:!0})):new In(be,mt,Wt)}array(be,mt,Wt){const hn=be.map(Jn=>this._createControl(Jn));return new li(hn,mt,Wt)}_reduceControls(be){const mt={};return Object.keys(be).forEach(Wt=>{mt[Wt]=this._createControl(be[Wt])}),mt}_createControl(be){return be instanceof In||be instanceof Le?be:Array.isArray(be)?this.control(be[0],be.length>1?be[1]:null,be.length>2?be[2]:null):this.control(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:Yn}),Ue})(),Mr=(()=>{class Ue extends Oi{group(be,mt=null){return super.group(be,mt)}control(be,mt,Wt){return super.control(be,mt,Wt)}array(be,mt,Wt){return super.array(be,mt,Wt)}}return Ue.\u0275fac=function(){let Re;return function(mt){return(Re||(Re=e.n5z(Ue)))(mt||Ue)}}(),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:Yn}),Ue})()},47957:(We,pe,h)=>{"use strict";h.d(pe,{Bb:()=>ht,XC:()=>I,ZL:()=>rt});var e=h(12687),d=h(21281),_=h(83353),w=h(94650),g=h(3238),b=h(50727),y=h(77579),E=h(49770),S=h(56451),U=h(39646),A=h(54968),N=h(36895),z=h(98184),Q=h(67376),ne=h(40445),he=h(29521),ee=h(84080),fe=h(24006),ce=h(59549),ve=h(68675),v=h(63900),O=h(95698),H=h(39300),Y=h(54004),q=h(18505),ue=h(91005);const Ee=["panel"];function De(W,le){if(1&W&&(w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA()),2&W){const ie=le.id,ae=w.oxw();w.Q6J("id",ae.id)("ngClass",ae._classList),w.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae._getPanelAriaLabelledby(ie))}}const Se=["*"];let Ge=0;class Ce{constructor(le,ie){this.source=le,this.option=ie}}const qe=(0,g.Kr)(class{}),Pe=new w.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function we(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let j=(()=>{class W extends qe{constructor(ie,ae,Ze,Je){super(),this._changeDetectorRef=ie,this._elementRef=ae,this._activeOptionChanges=b.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new w.vpe,this.opened=new w.vpe,this.closed=new w.vpe,this.optionActivated=new w.vpe,this._classList={},this.id="mat-autocomplete-"+Ge++,this.inertGroups=Je?.SAFARI||!1,this._autoActiveFirstOption=!!Ze.autoActiveFirstOption,this._autoSelectActiveOption=!!Ze.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ie){this._autoActiveFirstOption=(0,d.Ig)(ie)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ie){this._autoSelectActiveOption=(0,d.Ig)(ie)}set classList(ie){this._classList=ie&&ie.length?(0,d.du)(ie).reduce((ae,Ze)=>(ae[Ze]=!0,ae),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ie=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ie]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ie){this.panel&&(this.panel.nativeElement.scrollTop=ie)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ie){const ae=new Ce(this,ie);this.optionSelected.emit(ae)}_getPanelAriaLabelledby(ie){return this.ariaLabel?null:this.ariaLabelledby?(ie?ie+" ":"")+this.ariaLabelledby:ie}_setVisibilityClasses(ie){ie[this._visibleClass]=this.showPanel,ie[this._hiddenClass]=!this.showPanel}}return W.\u0275fac=function(ie){return new(ie||W)(w.Y36(w.sBO),w.Y36(w.SBq),w.Y36(Pe),w.Y36(_.t4))},W.\u0275dir=w.lG2({type:W,viewQuery:function(ie,ae){if(1&ie&&(w.Gf(w.Rgc,7),w.Gf(Ee,5)),2&ie){let Ze;w.iGM(Ze=w.CRH())&&(ae.template=Ze.first),w.iGM(Ze=w.CRH())&&(ae.panel=Ze.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[w.qOj]}),W})(),I=(()=>{class W extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return W.\u0275fac=function(){let le;return function(ae){return(le||(le=w.n5z(W)))(ae||W)}}(),W.\u0275cmp=w.Xpm({type:W,selectors:[["mat-autocomplete"]],contentQueries:function(ie,ae,Ze){if(1&ie&&(w.Suo(Ze,g.K7,5),w.Suo(Ze,g.ey,5)),2&ie){let Je;w.iGM(Je=w.CRH())&&(ae.optionGroups=Je),w.iGM(Je=w.CRH())&&(ae.options=Je)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[w._Bn([{provide:g.HF,useExisting:W}]),w.qOj],ngContentSelectors:Se,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ie,ae){1&ie&&(w.F$t(),w.YNc(0,De,3,4,"ng-template"))},dependencies:[N.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),W})();const G=new w.OlP("mat-autocomplete-scroll-strategy"),Te={provide:G,deps:[z.aV],useFactory:function _e(W){return()=>W.scrollStrategies.reposition()}},et={provide:fe.JU,useExisting:(0,w.Gpc)(()=>rt),multi:!0};let vt=(()=>{class W{constructor(ie,ae,Ze,Je,ct,ze,oe,V,r,s,f){this._element=ie,this._overlay=ae,this._viewContainerRef=Ze,this._zone=Je,this._changeDetectorRef=ct,this._dir=oe,this._formField=V,this._document=r,this._viewportRuler=s,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=b.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new y.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,ve.O)(l),(0,v.w)(()=>(0,S.T)(...l.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,O.q)(1),(0,v.w)(()=>this.optionSelections))}),this._scrollStrategy=ze}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ie){this._autocompleteDisabled=(0,d.Ig)(ie)}ngAfterViewInit(){const ie=this._getWindow();typeof ie<"u"&&this._zone.runOutsideAngular(()=>ie.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ie){ie.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ie=this._getWindow();typeof ie<"u"&&ie.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,S.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,H.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,H.h)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,Y.U)(ie=>ie instanceof g.rN?ie:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,S.T)((0,A.R)(this._document,"click"),(0,A.R)(this._document,"auxclick"),(0,A.R)(this._document,"touchend")).pipe((0,H.h)(ie=>{const ae=(0,_.sA)(ie),Ze=this._formField?this._formField._elementRef.nativeElement:null,Je=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ae!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ze||!Ze.contains(ae))&&(!Je||!Je.contains(ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ae)}))}writeValue(ie){Promise.resolve(null).then(()=>this._assignOptionValue(ie))}registerOnChange(ie){this._onChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this._element.nativeElement.disabled=ie}_handleKeydown(ie){const ae=ie.keyCode,Ze=(0,he.Vb)(ie);if(ae===he.hY&&!Ze&&ie.preventDefault(),this.activeOption&&ae===he.K5&&this.panelOpen&&!Ze)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ie.preventDefault();else if(this.autocomplete){const Je=this.autocomplete._keyManager.activeItem,ct=ae===he.LH||ae===he.JH;ae===he.Mf||ct&&!Ze&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ie):ct&&this._canOpen()&&this.openPanel(),(ct||this.autocomplete._keyManager.activeItem!==Je)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(ie){let ae=ie.target,Ze=ae.value;"number"===ae.type&&(Ze=""==Ze?null:parseFloat(Ze)),this._previousValue!==Ze&&(this._previousValue=Ze,this._pendingAutoselectedOption=null,this._onChange(Ze),this._canOpen()&&this._document.activeElement===ie.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(ie=!1){this._formField&&"auto"===this._formField.floatLabel&&(ie?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ie=this._zone.onStable.pipe((0,O.q)(1)),ae=this.autocomplete.options.changes.pipe((0,q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ue.g)(0));return(0,S.T)(ie,ae).pipe((0,v.w)(()=>(this._zone.run(()=>{const Ze=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ze!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,O.q)(1)).subscribe(Ze=>this._setValueAndClose(Ze))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ie){const ae=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ie):ie;this._updateNativeInputValue(ae??"")}_updateNativeInputValue(ie){this._formField?this._formField._control.value=ie:this._element.nativeElement.value=ie,this._previousValue=ie}_setValueAndClose(ie){const ae=ie?ie.source:this._pendingAutoselectedOption;ae&&(this._clearPreviousSelectedOption(ae),this._assignOptionValue(ae.value),this._onChange(ae.value),this.autocomplete._emitSelectEvent(ae),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ie){this.autocomplete.options.forEach(ae=>{ae!==ie&&ae.selected&&ae.deselect()})}_attachOverlay(){let ie=this._overlayRef;var ae;ie?(this._positionStrategy.setOrigin(this._getConnectedElement()),ie.updateSize({width:this._getPanelWidth()})):(this._portal=new ee.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ae=this._formField)||void 0===ae?void 0:ae.getLabelId()}),ie=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ie,this._handleOverlayEvents(ie),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ie&&ie.updateSize({width:this._getPanelWidth()})})),ie&&!ie.hasAttached()&&(ie.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ze=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ze!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ie;return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ie=this._defaults)||void 0===ie?void 0:ie.overlayPanelClass})}_getOverlayPosition(){const ie=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ie),this._positionStrategy=ie,ie}_setStrategyPositions(ie){const ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ze=this._aboveClass,Je=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ze},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ze}];let ct;ct="above"===this.position?Je:"below"===this.position?ae:[...ae,...Je],ie.withPositions(ct)}_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 ie=this.autocomplete;ie.autoActiveFirstOption?ie._keyManager.setFirstItemActive():ie._keyManager.setActiveItem(-1)}_canOpen(){const ie=this._element.nativeElement;return!ie.readOnly&&!ie.disabled&&!this._autocompleteDisabled}_getWindow(){var ie;return(null===(ie=this._document)||void 0===ie?void 0:ie.defaultView)||window}_scrollToOption(ie){const ae=this.autocomplete,Ze=(0,g.CB)(ie,ae.options,ae.optionGroups);if(0===ie&&1===Ze)ae._setScrollTop(0);else if(ae.panel){const Je=ae.options.toArray()[ie];if(Je){const ct=Je._getHostElement(),ze=(0,g.jH)(ct.offsetTop,ct.offsetHeight,ae._getScrollTop(),ae.panel.nativeElement.offsetHeight);ae._setScrollTop(ze)}}}_handleOverlayEvents(ie){ie.keydownEvents().subscribe(ae=>{var Ze;(ae.keyCode===he.hY&&!(0,he.Vb)(ae)||ae.keyCode===he.LH&&(0,he.Vb)(ae,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(Ze=this._valueBeforeAutoSelection)&&void 0!==Ze?Ze:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ae.stopPropagation(),ae.preventDefault())}),ie.outsidePointerEvents().subscribe()}}return W.\u0275fac=function(ie){return new(ie||W)(w.Y36(w.SBq),w.Y36(z.aV),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(G),w.Y36(ne.Is,8),w.Y36(ce.G_,9),w.Y36(N.K0,8),w.Y36(Q.rL),w.Y36(Pe,8))},W.\u0275dir=w.lG2({type:W,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[w.TTD]}),W})(),rt=(()=>{class W extends vt{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return W.\u0275fac=function(){let le;return function(ae){return(le||(le=w.n5z(W)))(ae||W)}}(),W.\u0275dir=w.lG2({type:W,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ie,ae){1&ie&&w.NdJ("focusin",function(){return ae._handleFocus()})("blur",function(){return ae._onTouched()})("input",function(Je){return ae._handleInput(Je)})("keydown",function(Je){return ae._handleKeydown(Je)})("click",function(){return ae._handleClick()}),2&ie&&w.uIk("autocomplete",ae.autocompleteAttribute)("role",ae.autocompleteDisabled?null:"combobox")("aria-autocomplete",ae.autocompleteDisabled?null:"list")("aria-activedescendant",ae.panelOpen&&ae.activeOption?ae.activeOption.id:null)("aria-expanded",ae.autocompleteDisabled?null:ae.panelOpen.toString())("aria-owns",ae.autocompleteDisabled||!ae.panelOpen||null==ae.autocomplete?null:ae.autocomplete.id)("aria-haspopup",ae.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[w._Bn([et]),w.qOj]}),W})(),ht=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=w.oAB({type:W}),W.\u0275inj=w.cJS({providers:[Te],imports:[z.U8,g.Ng,g.BQ,N.ez,Q.ZD,g.Ng,g.BQ]}),W})()},42673:(We,pe,h)=>{"use strict";h.d(pe,{g:()=>S,k:()=>E});var e=h(94650),d=h(3238),_=h(12687),w=h(21281);let g=0;const b=(0,d.Id)(class{}),y="mat-badge-content";let E=(()=>{class U extends b{constructor(N,z,Q,ne,he){super(),this._ngZone=N,this._elementRef=z,this._ariaDescriber=Q,this._renderer=ne,this._animationMode=he,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=g++,this._isInitialized=!1}get color(){return this._color}set color(N){this._setColor(N),this._color=N}get overlap(){return this._overlap}set overlap(N){this._overlap=(0,w.Ig)(N)}get content(){return this._content}set content(N){this._updateRenderedContent(N)}get description(){return this._description}set description(N){this._updateHostAriaDescription(N)}get hidden(){return this._hidden}set hidden(N){this._hidden=(0,w.Ig)(N)}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 N=this._renderer.createElement("span"),z="mat-badge-active";return N.setAttribute("id",`mat-badge-content-${this._id}`),N.setAttribute("aria-hidden","true"),N.classList.add(y),"NoopAnimations"===this._animationMode&&N.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(N),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{N.classList.add(z)})}):N.classList.add(z),N}_updateRenderedContent(N){const z=`${N??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),N&&this._ariaDescriber.describe(this._elementRef.nativeElement,N),this._description=N}_setColor(N){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),N&&z.add(`mat-badge-${N}`)}_clearExistingBadges(){const N=this._elementRef.nativeElement.querySelectorAll(`:scope > .${y}`);for(const z of Array.from(N))z!==this._badgeElement&&z.remove()}}return U.\u0275fac=function(N){return new(N||U)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(N,z){2&N&&e.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.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]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[_.rt,d.BQ,d.BQ]}),U})()},4859:(We,pe,h)=>{"use strict";h.d(pe,{lW:()=>U,ot:()=>N});var e=h(94650),d=h(3238),_=h(12687);const w=["mat-button",""],g=["*"],E=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(z){this._elementRef=z}})));let U=(()=>{class z extends S{constructor(ne,he,ee){super(ne),this._focusMonitor=he,this._animationMode=ee,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const fe of E)this._hasHostAttributes(fe)&&this._getHostElement().classList.add(fe);ne.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ne,he){ne?this._focusMonitor.focusVia(this._getHostElement(),ne,he):this._getHostElement().focus(he)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ne){return ne.some(he=>this._getHostElement().hasAttribute(he))}}return z.\u0275fac=function(ne){return new(ne||z)(e.Y36(e.SBq),e.Y36(_.tE),e.Y36(e.QbO,8))},z.\u0275cmp=e.Xpm({type:z,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ne,he){if(1&ne&&e.Gf(d.wG,5),2&ne){let ee;e.iGM(ee=e.CRH())&&(he.ripple=ee.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ne,he){2&ne&&(e.uIk("disabled",he.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===he._animationMode)("mat-button-disabled",he.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:g,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ne,he){1&ne&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&ne&&(e.xp6(2),e.ekj("mat-button-ripple-round",he.isRoundButton||he.isIconButton),e.Q6J("matRippleDisabled",he._isRippleDisabled())("matRippleCentered",he.isIconButton)("matRippleTrigger",he._getHostElement()))},dependencies:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),N=(()=>{class z{}return z.\u0275fac=function(ne){return new(ne||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[d.si,d.BQ,d.BQ]}),z})()},73546:(We,pe,h)=>{"use strict";h.d(pe,{$j:()=>A,QW:()=>H,a8:()=>ve,dk:()=>v,dn:()=>S,kc:()=>ce,n5:()=>U});var e=h(94650),d=h(3238);const _=["*",[["mat-card-footer"]]],w=["*","mat-card-footer"],g=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],b=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let S=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Y})(),U=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Y})(),A=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Y})(),ce=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Y})(),ve=(()=>{class Y{constructor(ue){this._animationMode=ue}}return Y.\u0275fac=function(ue){return new(ue||Y)(e.Y36(e.QbO,8))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ue,Ee){2&ue&&e.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)},exportAs:["matCard"],ngContentSelectors:w,decls:2,vars:0,template:function(ue,Ee){1&ue&&(e.F$t(_),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Y})(),v=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:b,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ue,Ee){1&ue&&(e.F$t(g),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),Y})(),H=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[d.BQ,d.BQ]}),Y})()},56709:(We,pe,h)=>{"use strict";h.d(pe,{oG:()=>ce,p9:()=>H});var e=h(12687),d=h(21281),_=h(94650),w=h(24006),g=h(3238),b=h(49643);const y=["input"],E=["label"],S=function(Y){return{enterDuration:Y}},U=["*"],A=new _.OlP("mat-checkbox-default-options",{providedIn:"root",factory:N});function N(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const Q=N(),ne={provide:w.JU,useExisting:(0,_.Gpc)(()=>ce),multi:!0};class he{}const ee=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(Y){this._elementRef=Y}}))));let fe=(()=>{class Y extends ee{constructor(ue,Ee,De,Se,Ge,Ce,qe){super(Ee),this._changeDetectorRef=De,this._ngZone=Se,this._animationMode=Ce,this._options=qe,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new _.vpe,this.indeterminateChange=new _.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Q,this.color=this.defaultColor=this._options.color||Q.color,this.tabIndex=parseInt(Ge)||0,this.id=this._uniqueId=`${ue}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ue){this._required=(0,d.Ig)(ue)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ue){const Ee=(0,d.Ig)(ue);Ee!=this.checked&&(this._checked=Ee,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ue){const Ee=(0,d.Ig)(ue);Ee!==this.disabled&&(this._disabled=Ee,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ue){const Ee=ue!=this._indeterminate;this._indeterminate=(0,d.Ig)(ue),Ee&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ue){this.checked=!!ue}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ue){let Ee=this._currentCheckState,De=this._getAnimationTargetElement();if(Ee!==ue&&De&&(this._currentAnimationClass&&De.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Ee,ue),this._currentCheckState=ue,this._currentAnimationClass.length>0)){De.classList.add(this._currentAnimationClass);const Se=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{De.classList.remove(Se)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var ue;const Ee=null===(ue=this._options)||void 0===ue?void 0:ue.clickAction;this.disabled||"noop"===Ee?!this.disabled&&"noop"===Ee&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==Ee&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ue){ue.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ue,Ee){if("NoopAnimations"===this._animationMode)return"";switch(ue){case 0:if(1===Ee)return this._animationClasses.uncheckedToChecked;if(3==Ee)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Ee?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Ee?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Ee?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ue){const Ee=this._inputElement;Ee&&(Ee.nativeElement.indeterminate=ue)}}return Y.\u0275fac=function(ue){_.$Z()},Y.\u0275dir=_.lG2({type:Y,viewQuery:function(ue,Ee){if(1&ue&&(_.Gf(y,5),_.Gf(E,5),_.Gf(g.wG,5)),2&ue){let De;_.iGM(De=_.CRH())&&(Ee._inputElement=De.first),_.iGM(De=_.CRH())&&(Ee._labelElement=De.first),_.iGM(De=_.CRH())&&(Ee.ripple=De.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[_.qOj]}),Y})(),ce=(()=>{class Y extends fe{constructor(ue,Ee,De,Se,Ge,Ce,qe){super("mat-checkbox-",ue,Ee,Se,Ge,Ce,qe),this._focusMonitor=De,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ue){const Ee=new he;return Ee.source=this,Ee.checked=ue,Ee}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{ue||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ue){ue.stopPropagation(),super._handleInputClick()}focus(ue,Ee){ue?this._focusMonitor.focusVia(this._inputElement,ue,Ee):this._inputElement.nativeElement.focus(Ee)}}return Y.\u0275fac=function(ue){return new(ue||Y)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(e.tE),_.Y36(_.R0b),_.$8M("tabindex"),_.Y36(_.QbO,8),_.Y36(A,8))},Y.\u0275cmp=_.Xpm({type:Y,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ue,Ee){2&ue&&(_.Ikx("id",Ee.id),_.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),_.ekj("mat-checkbox-indeterminate",Ee.indeterminate)("mat-checkbox-checked",Ee.checked)("mat-checkbox-disabled",Ee.disabled)("mat-checkbox-label-before","before"==Ee.labelPosition)("_mat-animation-noopable","NoopAnimations"===Ee._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[_._Bn([ne]),_.qOj],ngContentSelectors:U,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ue,Ee){if(1&ue&&(_.F$t(),_.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),_.NdJ("change",function(Se){return Ee._onInteractionEvent(Se)})("click",function(Se){return Ee._onInputClick(Se)}),_.qZA(),_.TgZ(5,"span",5),_._UZ(6,"span",6),_.qZA(),_._UZ(7,"span",7),_.TgZ(8,"span",8),_.O4$(),_.TgZ(9,"svg",9),_._UZ(10,"path",10),_.qZA(),_.kcU(),_._UZ(11,"span",11),_.qZA()(),_.TgZ(12,"span",12,13),_.NdJ("cdkObserveContent",function(){return Ee._onLabelTextChange()}),_.TgZ(14,"span",14),_._uU(15,"\xa0"),_.qZA(),_.Hsn(16),_.qZA()()),2&ue){const De=_.MAs(1),Se=_.MAs(13);_.uIk("for",Ee.inputId),_.xp6(2),_.ekj("mat-checkbox-inner-container-no-side-margin",!Se.textContent||!Se.textContent.trim()),_.xp6(1),_.Q6J("id",Ee.inputId)("required",Ee.required)("checked",Ee.checked)("disabled",Ee.disabled)("tabIndex",Ee.tabIndex),_.uIk("value",Ee.value)("name",Ee.name)("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-checked",Ee._getAriaChecked())("aria-describedby",Ee.ariaDescribedby),_.xp6(2),_.Q6J("matRippleTrigger",De)("matRippleDisabled",Ee._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",_.VKq(19,S,"NoopAnimations"===Ee._animationMode?0:150))}},dependencies:[g.wG,b.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Y})(),O=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275mod=_.oAB({type:Y}),Y.\u0275inj=_.cJS({}),Y})(),H=(()=>{class Y{}return Y.\u0275fac=function(ue){return new(ue||Y)},Y.\u0275mod=_.oAB({type:Y}),Y.\u0275inj=_.cJS({imports:[g.si,g.BQ,b.Q8,O,g.BQ,O]}),Y})()},77331:(We,pe,h)=>{"use strict";h.d(pe,{HS:()=>ue,Hi:()=>I,oH:()=>we,qn:()=>qe});var e=h(29521),d=h(94650),_=h(3238),w=h(21281),g=h(83353),b=h(36895),y=h(77579),E=h(56451),S=h(95698),U=h(82722),A=h(68675),N=h(12687),z=h(40445),Q=h(95017),ne=h(24006),he=h(59549);const ee=["*"],ce=new d.OlP("MatChipRemove"),ve=new d.OlP("MatChipAvatar"),v=new d.OlP("MatChipTrailingIcon");class O{constructor(ge){this._elementRef=ge}}const H=(0,_.sb)((0,_.pj)((0,_.Kr)(O),"primary"),-1);let ue=(()=>{class F extends H{constructor(G,_e,Te,et,Xe,vt,rt,ht){super(G),this._ngZone=_e,this._changeDetectorRef=Xe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new y.x,this._onBlur=new y.x,this.selectionChange=new d.vpe,this.destroyed=new d.vpe,this.removed=new d.vpe,this._addHostClassName(),this._chipRippleTarget=vt.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,_e,this._chipRippleTarget,Te),this._chipRipple.setupTriggerEvents(G),this.rippleConfig=et||{},this._animationsDisabled="NoopAnimations"===rt,this.tabIndex=null!=ht&&parseInt(ht)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(G){const _e=(0,w.Ig)(G);_e!==this._selected&&(this._selected=_e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(G){this._value=G}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(G){this._selectable=(0,w.Ig)(G)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(G){this._disabled=(0,w.Ig)(G)}get removable(){return this._removable}set removable(G){this._removable=(0,w.Ig)(G)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const G="mat-basic-chip",_e=this._elementRef.nativeElement;_e.hasAttribute(G)||_e.tagName.toLowerCase()===G?_e.classList.add(G):_e.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(G=!1){return this._selected=!this.selected,this._dispatchSelectionChange(G),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(G){this.disabled&&G.preventDefault()}_handleKeydown(G){if(!this.disabled)switch(G.keyCode){case e.yY:case e.ZH:this.remove(),G.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),G.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(G=!1){this.selectionChange.emit({source:this,isUserInput:G,selected:this._selected})}}return F.\u0275fac=function(G){return new(G||F)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(g.t4),d.Y36(_.Y2,8),d.Y36(d.sBO),d.Y36(b.K0),d.Y36(d.QbO,8),d.$8M("tabindex"))},F.\u0275dir=d.lG2({type:F,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(G,_e,Te){if(1&G&&(d.Suo(Te,ve,5),d.Suo(Te,v,5),d.Suo(Te,ce,5)),2&G){let et;d.iGM(et=d.CRH())&&(_e.avatar=et.first),d.iGM(et=d.CRH())&&(_e.trailingIcon=et.first),d.iGM(et=d.CRH())&&(_e.removeIcon=et.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(G,_e){1&G&&d.NdJ("click",function(et){return _e._handleClick(et)})("keydown",function(et){return _e._handleKeydown(et)})("focus",function(){return _e.focus()})("blur",function(){return _e._blur()}),2&G&&(d.uIk("tabindex",_e.disabled?null:_e.tabIndex)("role",_e.role)("disabled",_e.disabled||null)("aria-disabled",_e.disabled.toString())("aria-selected",_e.ariaSelected),d.ekj("mat-chip-selected",_e.selected)("mat-chip-with-avatar",_e.avatar)("mat-chip-with-trailing-icon",_e.trailingIcon||_e.removeIcon)("mat-chip-disabled",_e.disabled)("_mat-animation-noopable",_e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[d.qOj]}),F})();const De=new d.OlP("mat-chips-default-options"),Se=(0,_.FD)(class{constructor(F,ge,G,_e){this._defaultErrorStateMatcher=F,this._parentForm=ge,this._parentFormGroup=G,this.ngControl=_e,this.stateChanges=new y.x}});let Ge=0;class Ce{constructor(ge,G){this.source=ge,this.value=G}}let qe=(()=>{class F extends Se{constructor(G,_e,Te,et,Xe,vt,rt){super(vt,et,Xe,rt),this._elementRef=G,this._changeDetectorRef=_e,this._dir=Te,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new y.x,this._uid="mat-chip-list-"+Ge++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ht,W)=>ht===W,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.vpe,this.valueChange=new d.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var G,_e;return this.multiple?(null===(G=this._selectionModel)||void 0===G?void 0:G.selected)||[]:null===(_e=this._selectionModel)||void 0===_e?void 0:_e.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(G){this._explicitRole=G}get multiple(){return this._multiple}set multiple(G){this._multiple=(0,w.Ig)(G),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(G){this._compareWith=G,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(G){this.writeValue(G),this._value=G}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var G,_e,Te,et;return null!==(G=null!==(_e=this._required)&&void 0!==_e?_e:null===(Te=this.ngControl)||void 0===Te||null===(et=Te.control)||void 0===et?void 0:et.hasValidator(ne.kI.required))&&void 0!==G&&G}set required(G){this._required=(0,w.Ig)(G),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(G){this._placeholder=G,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(G){this._disabled=(0,w.Ig)(G),this._syncChipsState()}get selectable(){return this._selectable}set selectable(G){this._selectable=(0,w.Ig)(G),this.chips&&this.chips.forEach(_e=>_e.chipListSelectable=this._selectable)}set tabIndex(G){this._userTabIndex=G,this._tabIndex=G}get chipSelectionChanges(){return(0,E.T)(...this.chips.map(G=>G.selectionChange))}get chipFocusChanges(){return(0,E.T)(...this.chips.map(G=>G._onFocus))}get chipBlurChanges(){return(0,E.T)(...this.chips.map(G=>G._onBlur))}get chipRemoveChanges(){return(0,E.T)(...this.chips.map(G=>G.destroyed))}ngAfterContentInit(){this._keyManager=new N.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,U.R)(this._destroyed)).subscribe(G=>this._keyManager.withHorizontalOrientation(G)),this._keyManager.tabOut.pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,U.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Q.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(G){this._chipInput=G,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",G.id)}setDescribedByIds(G){G.length?this._elementRef.nativeElement.setAttribute("aria-describedby",G.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(G){this.chips&&this._setSelectionByValue(G,!1)}registerOnChange(G){this._onChange=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G,this.stateChanges.next()}onContainerClick(G){this._originatesFromChip(G)||this.focus()}focus(G){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(G),this.stateChanges.next()))}_focusInput(G){this._chipInput&&this._chipInput.focus(G)}_keydown(G){const _e=G.target;_e&&_e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(G),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const G=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(G)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(G){return G>=0&&GTe.deselect()),Array.isArray(G))G.forEach(Te=>this._selectValue(Te,_e)),this._sortValues();else{const Te=this._selectValue(G,_e);Te&&_e&&this._keyManager.setActiveItem(Te)}}_selectValue(G,_e=!0){const Te=this.chips.find(et=>null!=et.value&&this._compareWith(et.value,G));return Te&&(_e?Te.selectViaInteraction():Te.select(),this._selectionModel.select(Te)),Te}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(G){this._selectionModel.clear(),this.chips.forEach(_e=>{_e!==G&&_e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(G=>{G.selected&&this._selectionModel.select(G)}),this.stateChanges.next())}_propagateChanges(G){let _e=null;_e=Array.isArray(this.selected)?this.selected.map(Te=>Te.value):this.selected?this.selected.value:G,this._value=_e,this.change.emit(new Ce(this,_e)),this.valueChange.emit(_e),this._onChange(_e),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(G=>{G.source.selected?this._selectionModel.select(G.source):this._selectionModel.deselect(G.source),this.multiple||this.chips.forEach(_e=>{!this._selectionModel.isSelected(_e)&&_e.selected&&_e.deselect()}),G.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(G=>{let _e=this.chips.toArray().indexOf(G.chip);this._isValidIndex(_e)&&this._keyManager.updateActiveItem(_e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(G=>{const _e=G.chip,Te=this.chips.toArray().indexOf(G.chip);this._isValidIndex(Te)&&_e._hasFocus&&(this._lastDestroyedChipIndex=Te)})}_originatesFromChip(G){let _e=G.target;for(;_e&&_e!==this._elementRef.nativeElement;){if(_e.classList.contains("mat-chip"))return!0;_e=_e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(G=>G._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(G=>{G._chipListDisabled=this._disabled,G._chipListMultiple=this.multiple})}}return F.\u0275fac=function(G){return new(G||F)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(z.Is,8),d.Y36(ne.F,8),d.Y36(ne.sg,8),d.Y36(_.rD),d.Y36(ne.a5,10))},F.\u0275cmp=d.Xpm({type:F,selectors:[["mat-chip-list"]],contentQueries:function(G,_e,Te){if(1&G&&d.Suo(Te,ue,5),2&G){let et;d.iGM(et=d.CRH())&&(_e.chips=et)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(G,_e){1&G&&d.NdJ("focus",function(){return _e.focus()})("blur",function(){return _e._blur()})("keydown",function(et){return _e._keydown(et)}),2&G&&(d.Ikx("id",_e._uid),d.uIk("tabindex",_e.disabled?null:_e._tabIndex)("aria-required",_e.role?_e.required:null)("aria-disabled",_e.disabled.toString())("aria-invalid",_e.errorState)("aria-multiselectable",_e.multiple)("role",_e.role)("aria-orientation",_e.ariaOrientation),d.ekj("mat-chip-list-disabled",_e.disabled)("mat-chip-list-invalid",_e.errorState)("mat-chip-list-required",_e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[d._Bn([{provide:he.Eo,useExisting:F}]),d.qOj],ngContentSelectors:ee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(G,_e){1&G&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),F})(),Pe=0,we=(()=>{class F{constructor(G,_e){this._elementRef=G,this._defaultOptions=_e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Pe++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(G){G&&(this._chipList=G,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(G){this._addOnBlur=(0,w.Ig)(G)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(G){this._disabled=(0,w.Ig)(G)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(G){if(G){if(G.keyCode===e.Mf&&!(0,e.Vb)(G,"shiftKey")&&this._chipList._allowFocusEscape(),G.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void G.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(G)}_keyup(G){!this._focusLastChipOnBackspace&&G.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,G.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(G){!this.inputElement.value&&!!G&&this._chipList._keydown(G),(!G||this._isSeparatorKey(G))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),G?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(G){this.inputElement.focus(G)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(G){return!(0,e.Vb)(G)&&new Set(this.separatorKeyCodes).has(G.keyCode)}}return F.\u0275fac=function(G){return new(G||F)(d.Y36(d.SBq),d.Y36(De))},F.\u0275dir=d.lG2({type:F,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(G,_e){1&G&&d.NdJ("keydown",function(et){return _e._keydown(et)})("keyup",function(et){return _e._keyup(et)})("blur",function(){return _e._blur()})("focus",function(){return _e._focus()})("input",function(){return _e._onInput()}),2&G&&(d.Ikx("id",_e.id),d.uIk("disabled",_e.disabled||null)("placeholder",_e.placeholder||null)("aria-invalid",_e._chipList&&_e._chipList.ngControl?_e._chipList.ngControl.invalid:null)("aria-required",_e._chipList&&_e._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:[d.TTD]}),F})(),I=(()=>{class F{}return F.\u0275fac=function(G){return new(G||F)},F.\u0275mod=d.oAB({type:F}),F.\u0275inj=d.cJS({providers:[_.rD,{provide:De,useValue:{separatorKeyCodes:[e.K5]}}],imports:[_.BQ]}),F})()},3238:(We,pe,h)=>{"use strict";h.d(pe,{yN:()=>fe,mZ:()=>ce,_A:()=>we,rD:()=>Xe,sG:()=>j,K7:()=>o,HF:()=>a,Y2:()=>V,BQ:()=>O,X2:()=>vt,uc:()=>W,XK:()=>Te,ey:()=>it,Ng:()=>Et,rN:()=>M,nP:()=>f,us:()=>l,wG:()=>r,si:()=>s,LF:()=>ge,IR:()=>ze,CB:()=>Dt,jH:()=>Zt,pj:()=>Ee,Kr:()=>De,Id:()=>ue,FD:()=>Ge,dB:()=>Ce,sb:()=>Se,E0:()=>rt});var e=h(94650),d=h(12687),_=h(40445),g=h(36895),b=h(83353),y=h(21281),E=h(69751),S=h(77579),U=h(68675),A=h(29521);function Q(pt,je){if(1&pt&&e._UZ(0,"mat-pseudo-checkbox",4),2&pt){const Oe=e.oxw();e.Q6J("state",Oe.selected?"checked":"unchecked")("disabled",Oe.disabled)}}function ne(pt,je){if(1&pt&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&pt){const Oe=e.oxw();e.xp6(1),e.hij("(",Oe.group.label,")")}}const he=["*"];let fe=(()=>{class pt{}return pt.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",pt.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",pt.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",pt.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",pt})(),ce=(()=>{class pt{}return pt.COMPLEX="375ms",pt.ENTERING="225ms",pt.EXITING="195ms",pt})();const v=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function ve(){return!0}});let O=(()=>{class pt{constructor(Oe,Qe,ye){this._sanityChecks=Qe,this._document=ye,this._hasDoneGlobalChecks=!1,Oe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Oe){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Oe])}}return pt.\u0275fac=function(Oe){return new(Oe||pt)(e.LFG(d.qm),e.LFG(v,8),e.LFG(g.K0))},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({imports:[_.vT,_.vT]}),pt})();function ue(pt){return class extends pt{constructor(...je){super(...je),this._disabled=!1}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,y.Ig)(je)}}}function Ee(pt,je){return class extends pt{constructor(...Oe){super(...Oe),this.defaultColor=je,this.color=je}get color(){return this._color}set color(Oe){const Qe=Oe||this.defaultColor;Qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Qe&&this._elementRef.nativeElement.classList.add(`mat-${Qe}`),this._color=Qe)}}}function De(pt){return class extends pt{constructor(...je){super(...je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(je){this._disableRipple=(0,y.Ig)(je)}}}function Se(pt,je=0){return class extends pt{constructor(...Oe){super(...Oe),this._tabIndex=je,this.defaultTabIndex=je}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Oe){this._tabIndex=null!=Oe?(0,y.su)(Oe):this.defaultTabIndex}}}function Ge(pt){return class extends pt{constructor(...je){super(...je),this.errorState=!1}updateErrorState(){const je=this.errorState,Ie=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ie!==je&&(this.errorState=Ie,this.stateChanges.next())}}}function Ce(pt){return class extends pt{constructor(...je){super(...je),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new E.y(Oe=>{this._isInitialized?this._notifySubscriber(Oe):this._pendingSubscribers.push(Oe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(je){je.next(),je.complete()}}}const qe=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Pe(){return(0,e.f3M)(e.soG)}});class we{constructor(){this._localeChanges=new S.x,this.localeChanges=this._localeChanges}getValidDateOrNull(je){return this.isDateInstance(je)&&this.isValid(je)?je:null}deserialize(je){return null==je||this.isDateInstance(je)&&this.isValid(je)?je:this.invalid()}setLocale(je){this.locale=je,this._localeChanges.next()}compareDate(je,Oe){return this.getYear(je)-this.getYear(Oe)||this.getMonth(je)-this.getMonth(Oe)||this.getDate(je)-this.getDate(Oe)}sameDate(je,Oe){if(je&&Oe){let Qe=this.isValid(je),ye=this.isValid(Oe);return Qe&&ye?!this.compareDate(je,Oe):Qe==ye}return je==Oe}clampDate(je,Oe,Qe){return Oe&&this.compareDate(je,Oe)<0?Oe:Qe&&this.compareDate(je,Qe)>0?Qe:je}}const j=new e.OlP("mat-date-formats"),I=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(pt,je){const Oe=Array(pt);for(let Qe=0;Qe{class pt extends we{constructor(Oe,Qe){super(),this.useUtcForDisplay=!1,super.setLocale(Oe)}getYear(Oe){return Oe.getFullYear()}getMonth(Oe){return Oe.getMonth()}getDate(Oe){return Oe.getDate()}getDayOfWeek(Oe){return Oe.getDay()}getMonthNames(Oe){const Qe=new Intl.DateTimeFormat(this.locale,{month:Oe,timeZone:"utc"});return F(12,ye=>this._format(Qe,new Date(2017,ye,1)))}getDateNames(){const Oe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,Qe=>this._format(Oe,new Date(2017,0,Qe+1)))}getDayOfWeekNames(Oe){const Qe=new Intl.DateTimeFormat(this.locale,{weekday:Oe,timeZone:"utc"});return F(7,ye=>this._format(Qe,new Date(2017,0,ye+1)))}getYearName(Oe){const Qe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Qe,Oe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Oe){return this.getDate(this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe)+1,0))}clone(Oe){return new Date(Oe.getTime())}createDate(Oe,Qe,ye){let Ie=this._createDateWithOverflow(Oe,Qe,ye);return Ie.getMonth(),Ie}today(){return new Date}parse(Oe,Qe){return"number"==typeof Oe?new Date(Oe):Oe?new Date(Date.parse(Oe)):null}format(Oe,Qe){if(!this.isValid(Oe))throw Error("NativeDateAdapter: Cannot format invalid date.");const ye=new Intl.DateTimeFormat(this.locale,{...Qe,timeZone:"utc"});return this._format(ye,Oe)}addCalendarYears(Oe,Qe){return this.addCalendarMonths(Oe,12*Qe)}addCalendarMonths(Oe,Qe){let ye=this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe)+Qe,this.getDate(Oe));return this.getMonth(ye)!=((this.getMonth(Oe)+Qe)%12+12)%12&&(ye=this._createDateWithOverflow(this.getYear(ye),this.getMonth(ye),0)),ye}addCalendarDays(Oe,Qe){return this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe),this.getDate(Oe)+Qe)}toIso8601(Oe){return[Oe.getUTCFullYear(),this._2digit(Oe.getUTCMonth()+1),this._2digit(Oe.getUTCDate())].join("-")}deserialize(Oe){if("string"==typeof Oe){if(!Oe)return null;if(I.test(Oe)){let Qe=new Date(Oe);if(this.isValid(Qe))return Qe}}return super.deserialize(Oe)}isDateInstance(Oe){return Oe instanceof Date}isValid(Oe){return!isNaN(Oe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Oe,Qe,ye){const Ie=new Date;return Ie.setFullYear(Oe,Qe,ye),Ie.setHours(0,0,0,0),Ie}_2digit(Oe){return("00"+Oe).slice(-2)}_format(Oe,Qe){const ye=new Date;return ye.setUTCFullYear(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),ye.setUTCHours(Qe.getHours(),Qe.getMinutes(),Qe.getSeconds(),Qe.getMilliseconds()),Oe.format(ye)}}return pt.\u0275fac=function(Oe){return new(Oe||pt)(e.LFG(qe,8),e.LFG(b.t4))},pt.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac}),pt})();const G={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 _e=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({providers:[{provide:we,useClass:ge}]}),pt})(),Te=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({providers:[{provide:j,useValue:G}],imports:[_e]}),pt})(),Xe=(()=>{class pt{isErrorState(Oe,Qe){return!!(Oe&&Oe.invalid&&(Oe.touched||Qe&&Qe.submitted))}}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})(),vt=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275dir=e.lG2({type:pt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),pt})();function rt(pt,je,Oe="mat"){pt.changes.pipe((0,U.O)(pt)).subscribe(({length:Qe})=>{ht(je,`${Oe}-2-line`,!1),ht(je,`${Oe}-3-line`,!1),ht(je,`${Oe}-multi-line`,!1),2===Qe||3===Qe?ht(je,`${Oe}-${Qe}-line`,!0):Qe>3&&ht(je,`${Oe}-multi-line`,!0)})}function ht(pt,je,Oe){pt.nativeElement.classList.toggle(je,Oe)}let W=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({imports:[O,O]}),pt})();class le{constructor(je,Oe,Qe,ye=!1){this._renderer=je,this.element=Oe,this.config=Qe,this._animationForciblyDisabledThroughCss=ye,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ie={enterDuration:225,exitDuration:150},Ze=(0,b.i$)({passive:!0}),Je=["mousedown","touchstart"],ct=["mouseup","mouseleave","touchend","touchcancel"];class ze{constructor(je,Oe,Qe,ye){this._target=je,this._ngZone=Oe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ye.isBrowser&&(this._containerElement=(0,y.fI)(Qe))}fadeInRipple(je,Oe,Qe={}){const ye=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ie={...ie,...Qe.animation};Qe.centered&&(je=ye.left+ye.width/2,Oe=ye.top+ye.height/2);const $=Qe.radius||function oe(pt,je,Oe){const Qe=Math.max(Math.abs(pt-Oe.left),Math.abs(pt-Oe.right)),ye=Math.max(Math.abs(je-Oe.top),Math.abs(je-Oe.bottom));return Math.sqrt(Qe*Qe+ye*ye)}(je,Oe,ye),de=je-ye.left,Ve=Oe-ye.top,$e=Ie.enterDuration,nt=document.createElement("div");nt.classList.add("mat-ripple-element"),nt.style.left=de-$+"px",nt.style.top=Ve-$+"px",nt.style.height=2*$+"px",nt.style.width=2*$+"px",null!=Qe.color&&(nt.style.backgroundColor=Qe.color),nt.style.transitionDuration=`${$e}ms`,this._containerElement.appendChild(nt);const Le=window.getComputedStyle(nt),Pt=Le.transitionDuration,Vt="none"===Le.transitionProperty||"0s"===Pt||"0s, 0s"===Pt,rn=new le(this,nt,Qe,Vt);nt.style.transform="scale3d(1, 1, 1)",rn.state=0,Qe.persistent||(this._mostRecentTransientRipple=rn);let Jt=null;return!Vt&&($e||Ie.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const nn=()=>this._finishRippleTransition(rn),un=()=>this._destroyRipple(rn);nt.addEventListener("transitionend",nn),nt.addEventListener("transitioncancel",un),Jt={onTransitionEnd:nn,onTransitionCancel:un}}),this._activeRipples.set(rn,Jt),(Vt||!$e)&&this._finishRippleTransition(rn),rn}fadeOutRipple(je){if(2===je.state||3===je.state)return;const Oe=je.element,Qe={...ie,...je.config.animation};Oe.style.transitionDuration=`${Qe.exitDuration}ms`,Oe.style.opacity="0",je.state=2,(je._animationForciblyDisabledThroughCss||!Qe.exitDuration)&&this._finishRippleTransition(je)}fadeOutAll(){this._getActiveRipples().forEach(je=>je.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(je=>{je.config.persistent||je.fadeOut()})}setupTriggerEvents(je){const Oe=(0,y.fI)(je);!Oe||Oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Oe,this._registerEvents(Je))}handleEvent(je){"mousedown"===je.type?this._onMousedown(je):"touchstart"===je.type?this._onTouchStart(je):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ct),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(je){0===je.state?this._startFadeOutTransition(je):2===je.state&&this._destroyRipple(je)}_startFadeOutTransition(je){const Oe=je===this._mostRecentTransientRipple,{persistent:Qe}=je.config;je.state=1,!Qe&&(!Oe||!this._isPointerDown)&&je.fadeOut()}_destroyRipple(je){var Oe;const Qe=null!==(Oe=this._activeRipples.get(je))&&void 0!==Oe?Oe:null;this._activeRipples.delete(je),this._activeRipples.size||(this._containerRect=null),je===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),je.state=3,null!==Qe&&(je.element.removeEventListener("transitionend",Qe.onTransitionEnd),je.element.removeEventListener("transitioncancel",Qe.onTransitionCancel)),je.element.remove()}_onMousedown(je){const Oe=(0,d.X6)(je),Qe=this._lastTouchStartEvent&&Date.now(){!je.config.persistent&&(1===je.state||je.config.terminateOnPointerUp&&0===je.state)&&je.fadeOut()}))}_registerEvents(je){this._ngZone.runOutsideAngular(()=>{je.forEach(Oe=>{this._triggerElement.addEventListener(Oe,this,Ze)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Je.forEach(je=>{this._triggerElement.removeEventListener(je,this,Ze)}),this._pointerUpEventsRegistered&&ct.forEach(je=>{this._triggerElement.removeEventListener(je,this,Ze)}))}}const V=new e.OlP("mat-ripple-global-options");let r=(()=>{class pt{constructor(Oe,Qe,ye,Ie,$){this._elementRef=Oe,this._animationMode=$,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ie||{},this._rippleRenderer=new ze(this,Qe,Oe,ye)}get disabled(){return this._disabled}set disabled(Oe){Oe&&this.fadeOutAllNonPersistent(),this._disabled=Oe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Oe){this._trigger=Oe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Oe,Qe=0,ye){return"number"==typeof Oe?this._rippleRenderer.fadeInRipple(Oe,Qe,{...this.rippleConfig,...ye}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Oe})}}return pt.\u0275fac=function(Oe){return new(Oe||pt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(b.t4),e.Y36(V,8),e.Y36(e.QbO,8))},pt.\u0275dir=e.lG2({type:pt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Oe,Qe){2&Oe&&e.ekj("mat-ripple-unbounded",Qe.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"]}),pt})(),s=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({imports:[O,O]}),pt})(),f=(()=>{class pt{constructor(Oe){this._animationMode=Oe,this.state="unchecked",this.disabled=!1}}return pt.\u0275fac=function(Oe){return new(Oe||pt)(e.Y36(e.QbO,8))},pt.\u0275cmp=e.Xpm({type:pt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Oe,Qe){2&Oe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Qe.state)("mat-pseudo-checkbox-checked","checked"===Qe.state)("mat-pseudo-checkbox-disabled",Qe.disabled)("_mat-animation-noopable","NoopAnimations"===Qe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Oe,Qe){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),pt})(),l=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({imports:[O]}),pt})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),o=new e.OlP("MatOptgroup");let p=0;class M{constructor(je,Oe=!1){this.source=je,this.isUserInput=Oe}}let Me=(()=>{class pt{constructor(Oe,Qe,ye,Ie){this._element=Oe,this._changeDetectorRef=Qe,this._parent=ye,this.group=Ie,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+p++,this.onSelectionChange=new e.vpe,this._stateChanges=new S.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Oe){this._disabled=(0,y.Ig)(Oe)}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(Oe,Qe){const ye=this._getHostElement();"function"==typeof ye.focus&&ye.focus(Qe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Oe){(Oe.keyCode===A.K5||Oe.keyCode===A.L_)&&!(0,A.Vb)(Oe)&&(this._selectViaInteraction(),Oe.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 Oe=this.viewValue;Oe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Oe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Oe=!1){this.onSelectionChange.emit(new M(this,Oe))}}return pt.\u0275fac=function(Oe){e.$Z()},pt.\u0275dir=e.lG2({type:pt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),pt})(),it=(()=>{class pt extends Me{constructor(Oe,Qe,ye,Ie){super(Oe,Qe,ye,Ie)}}return pt.\u0275fac=function(Oe){return new(Oe||pt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(o,8))},pt.\u0275cmp=e.Xpm({type:pt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Oe,Qe){1&Oe&&e.NdJ("click",function(){return Qe._selectViaInteraction()})("keydown",function(Ie){return Qe._handleKeydown(Ie)}),2&Oe&&(e.Ikx("id",Qe.id),e.uIk("tabindex",Qe._getTabIndex())("aria-selected",Qe._getAriaSelected())("aria-disabled",Qe.disabled.toString()),e.ekj("mat-selected",Qe.selected)("mat-option-multiple",Qe.multiple)("mat-active",Qe.active)("mat-option-disabled",Qe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:he,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(Oe,Qe){1&Oe&&(e.F$t(),e.YNc(0,Q,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ne,2,1,"span",2),e._UZ(4,"div",3)),2&Oe&&(e.Q6J("ngIf",Qe.multiple),e.xp6(3),e.Q6J("ngIf",Qe.group&&Qe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Qe._getHostElement())("matRippleDisabled",Qe.disabled||Qe.disableRipple))},dependencies:[r,g.O5,f],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),pt})();function Dt(pt,je,Oe){if(Oe.length){let Qe=je.toArray(),ye=Oe.toArray(),Ie=0;for(let $=0;$Oe+Qe?Math.max(0,pt-Qe+je):Oe}let Et=(()=>{class pt{}return pt.\u0275fac=function(Oe){return new(Oe||pt)},pt.\u0275mod=e.oAB({type:pt}),pt.\u0275inj=e.cJS({imports:[s,g.ez,O,l]}),pt})()},99602:(We,pe,h)=>{"use strict";h.d(pe,{FA:()=>at,Mq:()=>nt,hl:()=>Jt,nW:()=>un});var e=h(12687),d=h(98184),_=h(84080),w=h(36895),g=h(94650),b=h(4859),y=h(67376),E=h(3238),S=h(77579),U=h(50727),A=h(56451),N=h(39646),z=h(29521),Q=h(40445),ne=h(95698),he=h(68675),ee=h(39300),fe=h(21281),ce=h(83353),ve=h(37340),v=h(24006),O=h(59549),H=h(284);const Y=["mat-calendar-body",""];function q(Ke,bt){if(1&Ke&&(g.TgZ(0,"tr",2)(1,"td",3),g._uU(2),g.qZA()()),2&Ke){const Z=g.oxw();g.xp6(1),g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z.numCols),g.xp6(1),g.hij(" ",Z.label," ")}}function ue(Ke,bt){if(1&Ke&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&Ke){const Z=g.oxw(2);g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z._firstRowOffset),g.xp6(1),g.hij(" ",Z._firstRowOffset>=Z.labelMinRequiredCells?Z.label:""," ")}}function Ee(Ke,bt){if(1&Ke){const Z=g.EpF();g.TgZ(0,"td",7)(1,"button",8),g.NdJ("click",function(At){const $t=g.CHM(Z).$implicit,An=g.oxw(2);return g.KtG(An._cellClicked($t,At))})("focus",function(At){const $t=g.CHM(Z).$implicit,An=g.oxw(2);return g.KtG(An._emitActiveDateChange($t,At))}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA()()}if(2&Ke){const Z=bt.$implicit,Fe=bt.index,At=g.oxw().index,Mt=g.oxw();g.Udp("width",Mt._cellWidth)("padding-top",Mt._cellPadding)("padding-bottom",Mt._cellPadding),g.uIk("data-mat-row",At)("data-mat-col",Fe),g.xp6(1),g.ekj("mat-calendar-body-disabled",!Z.enabled)("mat-calendar-body-active",Mt._isActiveCell(At,Fe))("mat-calendar-body-range-start",Mt._isRangeStart(Z.compareValue))("mat-calendar-body-range-end",Mt._isRangeEnd(Z.compareValue))("mat-calendar-body-in-range",Mt._isInRange(Z.compareValue))("mat-calendar-body-comparison-bridge-start",Mt._isComparisonBridgeStart(Z.compareValue,At,Fe))("mat-calendar-body-comparison-bridge-end",Mt._isComparisonBridgeEnd(Z.compareValue,At,Fe))("mat-calendar-body-comparison-start",Mt._isComparisonStart(Z.compareValue))("mat-calendar-body-comparison-end",Mt._isComparisonEnd(Z.compareValue))("mat-calendar-body-in-comparison-range",Mt._isInComparisonRange(Z.compareValue))("mat-calendar-body-preview-start",Mt._isPreviewStart(Z.compareValue))("mat-calendar-body-preview-end",Mt._isPreviewEnd(Z.compareValue))("mat-calendar-body-in-preview",Mt._isInPreview(Z.compareValue)),g.Q6J("ngClass",Z.cssClasses)("tabindex",Mt._isActiveCell(At,Fe)?0:-1),g.uIk("aria-label",Z.ariaLabel)("aria-disabled",!Z.enabled||null)("aria-pressed",Mt._isSelected(Z.compareValue))("aria-current",Mt.todayValue===Z.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",Mt._isSelected(Z.compareValue))("mat-calendar-body-comparison-identical",Mt._isComparisonIdentical(Z.compareValue))("mat-calendar-body-today",Mt.todayValue===Z.compareValue),g.xp6(1),g.hij(" ",Z.displayValue," ")}}function De(Ke,bt){if(1&Ke&&(g.TgZ(0,"tr",4),g.YNc(1,ue,2,6,"td",5),g.YNc(2,Ee,5,47,"td",6),g.qZA()),2&Ke){const Z=bt.$implicit,Fe=bt.index,At=g.oxw();g.xp6(1),g.Q6J("ngIf",0===Fe&&At._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",Z)}}function Se(Ke,bt){if(1&Ke&&(g.TgZ(0,"th",5)(1,"span",6),g._uU(2),g.qZA(),g.TgZ(3,"span",7),g._uU(4),g.qZA()()),2&Ke){const Z=bt.$implicit;g.xp6(2),g.Oqu(Z.long),g.xp6(2),g.Oqu(Z.narrow)}}const Ge=["*"];function Ce(Ke,bt){}function qe(Ke,bt){if(1&Ke){const Z=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt.activeDate=At)})("_userSelection",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt._dateSelected(At))}),g.qZA()}if(2&Ke){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)("comparisonStart",Z.comparisonStart)("comparisonEnd",Z.comparisonEnd)}}function Pe(Ke,bt){if(1&Ke){const Z=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt.activeDate=At)})("monthSelected",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt._monthSelectedInYearView(At))})("selectedChange",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt._goToDateInView(At,"month"))}),g.qZA()}if(2&Ke){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function we(Ke,bt){if(1&Ke){const Z=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt.activeDate=At)})("yearSelected",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt._yearSelectedInMultiYearView(At))})("selectedChange",function(At){g.CHM(Z);const Mt=g.oxw();return g.KtG(Mt._goToDateInView(At,"year"))}),g.qZA()}if(2&Ke){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function j(Ke,bt){}const I=["button"];function F(Ke,bt){1&Ke&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const ge=[[["","matDatepickerToggleIcon",""]]],G=["[matDatepickerToggleIcon]"];let vt=(()=>{class Ke{constructor(){this.changes=new S.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(Z,Fe){return`${Z} \u2013 ${Fe}`}formatYearRangeLabel(Z,Fe){return`${Z} to ${Fe}`}}return Ke.\u0275fac=function(Z){return new(Z||Ke)},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();class rt{constructor(bt,Z,Fe,At,Mt={},$t=bt,An){this.value=bt,this.displayValue=Z,this.ariaLabel=Fe,this.enabled=At,this.cssClasses=Mt,this.compareValue=$t,this.rawValue=An}}let ht=(()=>{class Ke{constructor(Z,Fe){this._elementRef=Z,this._ngZone=Fe,this._focusActiveCellAfterViewChecked=!1,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.activeDateChange=new g.vpe,this._enterHandler=At=>{if(this._skipNextFocus&&"focus"===At.type)this._skipNextFocus=!1;else if(At.target&&this.isRange){const Mt=this._getCellFromElement(At.target);Mt&&this._ngZone.run(()=>this.previewChange.emit({value:Mt.enabled?Mt:null,event:At}))}},this._leaveHandler=At=>{null!==this.previewEnd&&this.isRange&&At.target&&this._getCellFromElement(At.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:At}))},Fe.runOutsideAngular(()=>{const At=Z.nativeElement;At.addEventListener("mouseenter",this._enterHandler,!0),At.addEventListener("focus",this._enterHandler,!0),At.addEventListener("mouseleave",this._leaveHandler,!0),At.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(Z,Fe){Z.enabled&&this.selectedValueChange.emit({value:Z.value,event:Fe})}_emitActiveDateChange(Z,Fe){Z.enabled&&this.activeDateChange.emit({value:Z.value,event:Fe})}_isSelected(Z){return this.startValue===Z||this.endValue===Z}ngOnChanges(Z){const Fe=Z.numCols,{rows:At,numCols:Mt}=this;(Z.rows||Fe)&&(this._firstRowOffset=At&&At.length&&At[0].length?Mt-At[0].length:0),(Z.cellAspectRatio||Fe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Mt+"%"),(Fe||!this._cellWidth)&&(this._cellWidth=100/Mt+"%")}ngOnDestroy(){const Z=this._elementRef.nativeElement;Z.removeEventListener("mouseenter",this._enterHandler,!0),Z.removeEventListener("focus",this._enterHandler,!0),Z.removeEventListener("mouseleave",this._leaveHandler,!0),Z.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Z,Fe){let At=Z*this.numCols+Fe;return Z&&(At-=this._firstRowOffset),At==this.activeCell}_focusActiveCell(Z=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{setTimeout(()=>{const Fe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Fe&&(Z||(this._skipNextFocus=!0),Fe.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Z){return le(Z,this.startValue,this.endValue)}_isRangeEnd(Z){return ie(Z,this.startValue,this.endValue)}_isInRange(Z){return ae(Z,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Z){return le(Z,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Z,Fe,At){if(!this._isComparisonStart(Z)||this._isRangeStart(Z)||!this._isInRange(Z))return!1;let Mt=this.rows[Fe][At-1];if(!Mt){const $t=this.rows[Fe-1];Mt=$t&&$t[$t.length-1]}return Mt&&!this._isRangeEnd(Mt.compareValue)}_isComparisonBridgeEnd(Z,Fe,At){if(!this._isComparisonEnd(Z)||this._isRangeEnd(Z)||!this._isInRange(Z))return!1;let Mt=this.rows[Fe][At+1];if(!Mt){const $t=this.rows[Fe+1];Mt=$t&&$t[0]}return Mt&&!this._isRangeStart(Mt.compareValue)}_isComparisonEnd(Z){return ie(Z,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Z){return ae(Z,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Z){return this.comparisonStart===this.comparisonEnd&&Z===this.comparisonStart}_isPreviewStart(Z){return le(Z,this.previewStart,this.previewEnd)}_isPreviewEnd(Z){return ie(Z,this.previewStart,this.previewEnd)}_isInPreview(Z){return ae(Z,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Z){let Fe;if(W(Z)?Fe=Z:W(Z.parentNode)&&(Fe=Z.parentNode),Fe){const At=Fe.getAttribute("data-mat-row"),Mt=Fe.getAttribute("data-mat-col");if(At&&Mt)return this.rows[parseInt(At)][parseInt(Mt)]}return null}}return Ke.\u0275fac=function(Z){return new(Z||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",activeDateChange:"activeDateChange"},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","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(Z,Fe){1&Z&&(g.YNc(0,q,3,6,"tr",0),g.YNc(1,De,3,2,"tr",1)),2&Z&&(g.Q6J("ngIf",Fe._firstRowOffset=bt&&Ke===Z}function ae(Ke,bt,Z,Fe){return Fe&&null!==bt&&null!==Z&&bt!==Z&&Ke>=bt&&Ke<=Z}class Ze{constructor(bt,Z){this.start=bt,this.end=Z}}let Je=(()=>{class Ke{constructor(Z,Fe){this.selection=Z,this._adapter=Fe,this._selectionChanged=new S.x,this.selectionChanged=this._selectionChanged,this.selection=Z}updateSelection(Z,Fe){const At=this.selection;this.selection=Z,this._selectionChanged.next({selection:Z,source:Fe,oldValue:At})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Z){return this._adapter.isDateInstance(Z)&&this._adapter.isValid(Z)}}return Ke.\u0275fac=function(Z){g.$Z()},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),ct=(()=>{class Ke extends Je{constructor(Z){super(null,Z)}add(Z){super.updateSelection(Z,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Z=new Ke(this._adapter);return Z.updateSelection(this.selection,this),Z}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.LFG(E._A))},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const V={provide:Je,deps:[[new g.FiY,new g.tp0,Je],E._A],useFactory:function oe(Ke,bt){return Ke||new ct(bt)}},f=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let i=(()=>{class Ke{constructor(Z,Fe,At,Mt,$t){this._changeDetectorRef=Z,this._dateFormats=Fe,this._dateAdapter=At,this._dir=Mt,this._rangeStrategy=$t,this._rerenderSubscription=U.w0.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(Z){const Fe=this._activeDate,At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._hasSameMonthAndYear(Fe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Ze?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,he.O)(null)).subscribe(()=>this._init())}ngOnChanges(Z){const Fe=Z.comparisonStart||Z.comparisonEnd;Fe&&!Fe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Z){const Fe=Z.value,At=this._getDateFromDayOfMonth(Fe);let Mt,$t;this._selected instanceof Ze?(Mt=this._getDateInCurrentMonth(this._selected.start),$t=this._getDateInCurrentMonth(this._selected.end)):Mt=$t=this._getDateInCurrentMonth(this._selected),(Mt!==Fe||$t!==Fe)&&this.selectedChange.emit(At),this._userSelection.emit({value:At,event:Z.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Z){const At=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Z.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Z){const Fe=this._activeDate,At=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Z.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(Z)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Z}),Z.preventDefault(),Z.stopPropagation()));default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Z}),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 Z=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Z)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Z){this._matCalendarBody._focusActiveCell(Z)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Z,value:Fe}){if(this._rangeStrategy){const Mt=this._rangeStrategy.createPreview(Fe?Fe.rawValue:null,this.selected,Z);this._previewStart=this._getCellCompareValue(Mt.start),this._previewEnd=this._getCellCompareValue(Mt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Z){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Z)}_initWeekdays(){const Z=this._dateAdapter.getFirstDayOfWeek(),Fe=this._dateAdapter.getDayOfWeekNames("narrow");let Mt=this._dateAdapter.getDayOfWeekNames("long").map(($t,An)=>({long:$t,narrow:Fe[An]}));this._weekdays=Mt.slice(Z).concat(Mt.slice(0,Z))}_createWeekCells(){const Z=this._dateAdapter.getNumDaysInMonth(this.activeDate),Fe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let At=0,Mt=this._firstWeekOffset;At=0)&&(!this.maxDate||this._dateAdapter.compareDate(Z,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Z))}_getDateInCurrentMonth(Z){return Z&&this._hasSameMonthAndYear(Z,this.activeDate)?this._dateAdapter.getDate(Z):null}_hasSameMonthAndYear(Z,Fe){return!(!Z||!Fe||this._dateAdapter.getMonth(Z)!=this._dateAdapter.getMonth(Fe)||this._dateAdapter.getYear(Z)!=this._dateAdapter.getYear(Fe))}_getCellCompareValue(Z){if(Z){const Fe=this._dateAdapter.getYear(Z),At=this._dateAdapter.getMonth(Z),Mt=this._dateAdapter.getDate(Z);return new Date(Fe,At,Mt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Z){Z instanceof Ze?(this._rangeStart=this._getCellCompareValue(Z.start),this._rangeEnd=this._getCellCompareValue(Z.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Z),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Z){return!this.dateFilter||this.dateFilter(Z)}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(g.sBO),g.Y36(E.sG,8),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(f,8))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-month-view"]],viewQuery:function(Z,Fe){if(1&Z&&g.Gf(ht,5),2&Z){let At;g.iGM(At=g.CRH())&&(Fe._matCalendarBody=At.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[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","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Z,Fe){1&Z&&(g.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),g.YNc(3,Se,5,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA()(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(Mt){return Fe._dateSelected(Mt)})("activeDateChange",function(Mt){return Fe._updateActiveDate(Mt)})("previewChange",function(Mt){return Fe._previewChanged(Mt)})("keyup",function(Mt){return Fe._handleCalendarBodyKeyup(Mt)})("keydown",function(Mt){return Fe._handleCalendarBodyKeydown(Mt)}),g.qZA()()),2&Z&&(g.xp6(3),g.Q6J("ngForOf",Fe._weekdays),g.xp6(3),g.Q6J("label",Fe._monthLabel)("rows",Fe._weeks)("todayValue",Fe._todayDate)("startValue",Fe._rangeStart)("endValue",Fe._rangeEnd)("comparisonStart",Fe._comparisonRangeStart)("comparisonEnd",Fe._comparisonRangeEnd)("previewStart",Fe._previewStart)("previewEnd",Fe._previewEnd)("isRange",Fe._isRange)("labelMinRequiredCells",3)("activeCell",Fe._dateAdapter.getDate(Fe.activeDate)-1))},dependencies:[w.sg,ht],encapsulation:2,changeDetection:0}),Ke})();const o=24;let p=(()=>{class Ke{constructor(Z,Fe,At){this._changeDetectorRef=Z,this._dateAdapter=Fe,this._dir=At,this._rerenderSubscription=U.w0.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(Z){let Fe=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),M(this._dateAdapter,Fe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Ze?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedYear(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,he.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Fe=this._dateAdapter.getYear(this._activeDate)-Me(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let At=0,Mt=[];Atthis._createCellForYear($t))),Mt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Z){const Fe=Z.value,At=this._dateAdapter.createDate(Fe,0,1),Mt=this._getDateFromYear(Fe);this.yearSelected.emit(At),this.selectedChange.emit(Mt)}_updateActiveDate(Z){const At=this._activeDate;this.activeDate=this._getDateFromYear(Z.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const Fe=this._activeDate,At=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Me(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o-Me(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-240:-o);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?240:o);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_getActiveCell(){return Me(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Z){const Fe=this._dateAdapter.getMonth(this.activeDate),At=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Z,Fe,1));return this._dateAdapter.createDate(Z,Fe,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForYear(Z){const Fe=this._dateAdapter.createDate(Z,0,1),At=this._dateAdapter.getYearName(Fe),Mt=this.dateClass?this.dateClass(Fe,"multi-year"):void 0;return new rt(Z,At,At,this._shouldEnableYear(Z),Mt)}_shouldEnableYear(Z){if(null==Z||this.maxDate&&Z>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Z{class Ke{constructor(Z,Fe,At,Mt){this._changeDetectorRef=Z,this._dateFormats=Fe,this._dateAdapter=At,this._dir=Mt,this._rerenderSubscription=U.w0.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(Z){let Fe=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._dateAdapter.getYear(Fe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Ze?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedMonth(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,he.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Z){const Fe=Z.value,At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Fe,1);this.monthSelected.emit(At);const Mt=this._getDateFromMonth(Fe);this.selectedChange.emit(Mt)}_updateActiveDate(Z){const At=this._activeDate;this.activeDate=this._getDateFromMonth(Z.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const Fe=this._activeDate,At=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Z=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Fe=>Fe.map(At=>this._createCellForMonth(At,Z[At]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Z){return Z&&this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Z):null}_getDateFromMonth(Z){const Fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),At=this._dateAdapter.getNumDaysInMonth(Fe);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForMonth(Z,Fe){const At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),Mt=this._dateAdapter.format(At,this._dateFormats.display.monthYearA11yLabel),$t=this.dateClass?this.dateClass(At,"year"):void 0;return new rt(Z,Fe.toLocaleUpperCase(),Mt,this._shouldEnableMonth(Z),$t)}_shouldEnableMonth(Z){const Fe=this._dateAdapter.getYear(this.activeDate);if(null==Z||this._isYearAndMonthAfterMaxDate(Fe,Z)||this._isYearAndMonthBeforeMinDate(Fe,Z))return!1;if(!this.dateFilter)return!0;for(let Mt=this._dateAdapter.createDate(Fe,Z,1);this._dateAdapter.getMonth(Mt)==Z;Mt=this._dateAdapter.addCalendarDays(Mt,1))if(this.dateFilter(Mt))return!0;return!1}_isYearAndMonthAfterMaxDate(Z,Fe){if(this.maxDate){const At=this._dateAdapter.getYear(this.maxDate),Mt=this._dateAdapter.getMonth(this.maxDate);return Z>At||Z===At&&Fe>Mt}return!1}_isYearAndMonthBeforeMinDate(Z,Fe){if(this.minDate){const At=this._dateAdapter.getYear(this.minDate),Mt=this._dateAdapter.getMonth(this.minDate);return Z{class Ke{constructor(Z,Fe,At,Mt,$t){this._intl=Z,this.calendar=Fe,this._dateAdapter=At,this._dateFormats=Mt,this._buttonDescriptionId="mat-calendar-button-"+Et++,this.calendar.stateChanges.subscribe(()=>$t.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 Fe=this._dateAdapter.getYear(this.calendar.activeDate)-Me(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),At=Fe+o-1,Mt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Fe,0,1)),$t=this._dateAdapter.getYearName(this._dateAdapter.createDate(At,0,1));return this._intl.formatYearRange(Mt,$t)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-o)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:o)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Z,Fe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(Fe)&&this._dateAdapter.getMonth(Z)==this._dateAdapter.getMonth(Fe):"year"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(Fe):M(this._dateAdapter,Z,Fe,this.calendar.minDate,this.calendar.maxDate)}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(vt),g.Y36((0,g.Gpc)(()=>je)),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ge,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Z,Fe){1&Z&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"button",2),g.NdJ("click",function(){return Fe.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.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return Fe.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return Fe.nextClicked()}),g.qZA()()()),2&Z&&(g.xp6(2),g.uIk("aria-label",Fe.periodButtonLabel)("aria-describedby",Fe._buttonDescriptionId),g.xp6(1),g.uIk("id",Fe._buttonDescriptionId),g.xp6(1),g.Oqu(Fe.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==Fe.calendar.currentView),g.xp6(4),g.Q6J("disabled",!Fe.previousEnabled()),g.uIk("aria-label",Fe.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!Fe.nextEnabled()),g.uIk("aria-label",Fe.nextButtonLabel))},dependencies:[b.lW],encapsulation:2,changeDetection:0}),Ke})(),je=(()=>{class Ke{constructor(Z,Fe,At,Mt){this._dateAdapter=Fe,this._dateFormats=At,this._changeDetectorRef=Mt,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 S.x,this._intlChanges=Z.changes.subscribe(()=>{Mt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Ze?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get activeDate(){return this._clampedActiveDate}set activeDate(Z){this._clampedActiveDate=this._dateAdapter.clampDate(Z,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Z){const Fe=this._currentView!==Z?Z:null;this._currentView=Z,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Fe&&this.viewChanged.emit(Fe)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||pt),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(Z){const Fe=Z.minDate&&!this._dateAdapter.sameDate(Z.minDate.previousValue,Z.minDate.currentValue)?Z.minDate:void 0,At=Z.maxDate&&!this._dateAdapter.sameDate(Z.maxDate.previousValue,Z.maxDate.currentValue)?Z.maxDate:void 0,Mt=Fe||At||Z.dateFilter;if(Mt&&!Mt.firstChange){const $t=this._getCurrentViewComponent();$t&&(this._changeDetectorRef.detectChanges(),$t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Z){const Fe=Z.value;(this.selected instanceof Ze||Fe&&!this._dateAdapter.sameDate(Fe,this.selected))&&this.selectedChange.emit(Fe),this._userSelection.emit(Z)}_yearSelectedInMultiYearView(Z){this.yearSelected.emit(Z)}_monthSelectedInYearView(Z){this.monthSelected.emit(Z)}_goToDateInView(Z,Fe){this.activeDate=Z,this.currentView=Fe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(vt),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar"]],viewQuery:function(Z,Fe){if(1&Z&&(g.Gf(i,5),g.Gf(Zt,5),g.Gf(p,5)),2&Z){let At;g.iGM(At=g.CRH())&&(Fe.monthView=At.first),g.iGM(At=g.CRH())&&(Fe.yearView=At.first),g.iGM(At=g.CRH())&&(Fe.multiYearView=At.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([V]),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(Z,Fe){1&Z&&(g.YNc(0,Ce,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,qe,1,8,"mat-month-view",2),g.YNc(3,Pe,1,6,"mat-year-view",3),g.YNc(4,we,1,6,"mat-multi-year-view",4),g.qZA()),2&Z&&(g.Q6J("cdkPortalOutlet",Fe._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",Fe.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,e.kH,_.Pl,i,Zt,p],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ke})();const Oe={transformPanel:(0,ve.X$)("transformPanel",[(0,ve.eR)("void => enter-dropdown",(0,ve.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ve.F4)([(0,ve.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ve.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ve.eR)("void => enter-dialog",(0,ve.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ve.F4)([(0,ve.oB)({opacity:0,transform:"scale(0.7)"}),(0,ve.oB)({transform:"none",opacity:1})]))),(0,ve.eR)("* => void",(0,ve.jt)("100ms linear",(0,ve.oB)({opacity:0})))]),fadeInCalendar:(0,ve.X$)("fadeInCalendar",[(0,ve.SB)("void",(0,ve.oB)({opacity:0})),(0,ve.SB)("enter",(0,ve.oB)({opacity:1})),(0,ve.eR)("void => *",(0,ve.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Qe=0;const ye=new g.OlP("mat-datepicker-scroll-strategy"),$={provide:ye,deps:[d.aV],useFactory:function Ie(Ke){return()=>Ke.scrollStrategies.reposition()}},de=(0,E.pj)(class{constructor(Ke){this._elementRef=Ke}});let Ve=(()=>{class Ke extends de{constructor(Z,Fe,At,Mt,$t,An){super(Z),this._changeDetectorRef=Fe,this._globalModel=At,this._dateAdapter=Mt,this._rangeSelectionStrategy=$t,this._subscriptions=new U.w0,this._animationDone=new S.x,this._actionsPortal=null,this._closeButtonText=An.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Z){const Fe=this._model.selection,At=Z.value,Mt=Fe instanceof Ze;if(Mt&&this._rangeSelectionStrategy){const $t=this._rangeSelectionStrategy.selectionFinished(At,Fe,Z.event);this._model.updateSelection($t,this)}else At&&(Mt||!this._dateAdapter.sameDate(At,Fe))&&this._model.add(At);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Z,Fe){this._model=Z?this._globalModel.clone():this._globalModel,this._actionsPortal=Z,Fe&&this._changeDetectorRef.detectChanges()}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Je),g.Y36(E._A),g.Y36(f,8),g.Y36(vt))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-content"]],viewQuery:function(Z,Fe){if(1&Z&&g.Gf(je,5),2&Z){let At;g.iGM(At=g.CRH())&&(Fe._calendar=At.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Z,Fe){1&Z&&g.WFA("@transformPanel.done",function(){return Fe._animationDone.next()}),2&Z&&(g.d8E("@transformPanel",Fe._animationState),g.ekj("mat-datepicker-content-touch",Fe.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(Z,Fe){if(1&Z&&(g.TgZ(0,"div",0)(1,"mat-calendar",1),g.NdJ("yearSelected",function(Mt){return Fe.datepicker._selectYear(Mt)})("monthSelected",function(Mt){return Fe.datepicker._selectMonth(Mt)})("viewChanged",function(Mt){return Fe.datepicker._viewChanged(Mt)})("_userSelection",function(Mt){return Fe._handleUserSelection(Mt)}),g.qZA(),g.YNc(2,j,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return Fe._closeButtonFocused=!0})("blur",function(){return Fe._closeButtonFocused=!1})("click",function(){return Fe.datepicker.close()}),g._uU(4),g.qZA()()),2&Z){let At;g.ekj("mat-datepicker-content-container-with-custom-header",Fe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Fe._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(At=Fe._dialogLabelId)&&void 0!==At?At:void 0),g.xp6(1),g.Q6J("id",Fe.datepicker.id)("ngClass",Fe.datepicker.panelClass)("startAt",Fe.datepicker.startAt)("startView",Fe.datepicker.startView)("minDate",Fe.datepicker._getMinDate())("maxDate",Fe.datepicker._getMaxDate())("dateFilter",Fe.datepicker._getDateFilter())("headerComponent",Fe.datepicker.calendarHeaderComponent)("selected",Fe._getSelected())("dateClass",Fe.datepicker.dateClass)("comparisonStart",Fe.comparisonStart)("comparisonEnd",Fe.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",Fe._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!Fe._closeButtonFocused),g.Q6J("color",Fe.color||"primary"),g.xp6(1),g.Oqu(Fe._closeButtonText)}},dependencies:[w.mk,b.lW,e.mK,_.Pl,je],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Oe.transformPanel,Oe.fadeInCalendar]},changeDetection:0}),Ke})(),$e=(()=>{class Ke{constructor(Z,Fe,At,Mt,$t,An,Vn){this._overlay=Z,this._ngZone=Fe,this._viewContainerRef=At,this._dateAdapter=$t,this._dir=An,this._model=Vn,this._inputStateChanges=U.w0.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-"+Qe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new S.x,this._scrollStrategy=Mt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Z){this._color=Z}get touchUi(){return this._touchUi}set touchUi(Z){this._touchUi=(0,fe.Ig)(Z)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Z){const Fe=(0,fe.Ig)(Z);Fe!==this._disabled&&(this._disabled=Fe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Z){this._restoreFocus=(0,fe.Ig)(Z)}get panelClass(){return this._panelClass}set panelClass(Z){this._panelClass=(0,fe.du)(Z)}get opened(){return this._opened}set opened(Z){(0,fe.Ig)(Z)?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(Z){const Fe=Z.xPosition||Z.yPosition;if(Fe&&!Fe.firstChange&&this._overlayRef){const At=this._overlayRef.getConfig().positionStrategy;At instanceof d._G&&(this._setConnectedPositions(At),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Z){this._model.add(Z)}_selectYear(Z){this.yearSelected.emit(Z)}_selectMonth(Z){this.monthSelected.emit(Z)}_viewChanged(Z){this.viewChanged.emit(Z)}registerInput(Z){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Z,this._inputStateChanges=Z.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Z){var Fe;this._actionsPortal=Z,null===(Fe=this._componentRef)||void 0===Fe||Fe.instance._assignActions(Z,!0)}removeActions(Z){var Fe;Z===this._actionsPortal&&(this._actionsPortal=null,null===(Fe=this._componentRef)||void 0===Fe||Fe.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ce.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Fe=this._componentRef.instance;Fe._startExitAnimation(),Fe._animationDone.pipe((0,ne.q)(1)).subscribe(()=>this._destroyOverlay())}const Z=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Z)):Z()}_applyPendingSelection(){var Z,Fe;null===(Z=this._componentRef)||void 0===Z||null===(Fe=Z.instance)||void 0===Fe||Fe._applyPendingSelection()}_forwardContentValues(Z){Z.datepicker=this,Z.color=this.color,Z._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Z._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Z=this.touchUi,Fe=new _.C5(Ve,this._viewContainerRef),At=this._overlayRef=this._overlay.create(new d.X_({positionStrategy:Z?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Z?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Z?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Z?"dialog":"popup")}));this._getCloseStream(At).subscribe(Mt=>{Mt&&Mt.preventDefault(),this.close()}),At.keydownEvents().subscribe(Mt=>{const $t=Mt.keyCode;($t===z.LH||$t===z.JH||$t===z.oh||$t===z.SV||$t===z.Ku||$t===z.VM)&&Mt.preventDefault()}),this._componentRef=At.attach(Fe),this._forwardContentValues(this._componentRef.instance),Z||this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>At.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const Z=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Z)}_setConnectedPositions(Z){const Fe="end"===this.xPosition?"end":"start",At="start"===Fe?"end":"start",Mt="above"===this.yPosition?"bottom":"top",$t="top"===Mt?"bottom":"top";return Z.withPositions([{originX:Fe,originY:$t,overlayX:Fe,overlayY:Mt},{originX:Fe,originY:Mt,overlayX:Fe,overlayY:$t},{originX:At,originY:$t,overlayX:At,overlayY:Mt},{originX:At,originY:Mt,overlayX:At,overlayY:$t}])}_getCloseStream(Z){return(0,A.T)(Z.backdropClick(),Z.detachments(),Z.keydownEvents().pipe((0,ee.h)(Fe=>Fe.keyCode===z.hY&&!(0,z.Vb)(Fe)||this.datepickerInput&&(0,z.Vb)(Fe,"altKey")&&Fe.keyCode===z.LH)))}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(d.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(ye),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(Je))},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})(),nt=(()=>{class Ke extends $e{}return Ke.\u0275fac=function(){let bt;return function(Fe){return(bt||(bt=g.n5z(Ke)))(Fe||Ke)}}(),Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([V,{provide:$e,useExisting:Ke}]),g.qOj],decls:0,vars:0,template:function(Z,Fe){},encapsulation:2,changeDetection:0}),Ke})();class Le{constructor(bt,Z){this.target=bt,this.targetElement=Z,this.value=this.target.value}}let st=(()=>{class Ke{constructor(Z,Fe,At){this._elementRef=Z,this._dateAdapter=Fe,this._dateFormats=At,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new S.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=U.w0.EMPTY,this._localeSubscription=U.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Mt=>{const $t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Mt.value));return!$t||this._matchesFilter($t)?null:{matDatepickerFilter:!0}},this._minValidator=Mt=>{const $t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Mt.value)),An=this._getMinDate();return!An||!$t||this._dateAdapter.compareDate(An,$t)<=0?null:{matDatepickerMin:{min:An,actual:$t}}},this._maxValidator=Mt=>{const $t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Mt.value)),An=this._getMaxDate();return!An||!$t||this._dateAdapter.compareDate(An,$t)>=0?null:{matDatepickerMax:{max:An,actual:$t}}},this._lastValueValid=!1,this._localeSubscription=Fe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Z){this._assignValueProgrammatically(Z)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Z){const Fe=(0,fe.Ig)(Z),At=this._elementRef.nativeElement;this._disabled!==Fe&&(this._disabled=Fe,this.stateChanges.next(void 0)),Fe&&this._isInitialized&&At.blur&&At.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Z){this._model=Z,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Fe=>{if(this._shouldHandleChangeEvent(Fe)){const At=this._getValueFromModel(Fe.selection);this._lastValueValid=this._isValidValue(At),this._cvaOnChange(At),this._onTouched(),this._formatValue(At),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)),this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Z){(function Pt(Ke,bt){const Z=Object.keys(Ke);for(let Fe of Z){const{previousValue:At,currentValue:Mt}=Ke[Fe];if(!bt.isDateInstance(At)||!bt.isDateInstance(Mt))return!0;if(!bt.sameDate(At,Mt))return!0}return!1})(Z,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Z){this._validatorOnChange=Z}validate(Z){return this._validator?this._validator(Z):null}writeValue(Z){this._assignValueProgrammatically(Z)}registerOnChange(Z){this._cvaOnChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this.disabled=Z}_onKeydown(Z){Z.altKey&&Z.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Z.preventDefault())}_onInput(Z){const Fe=this._lastValueValid;let At=this._dateAdapter.parse(Z,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(At),At=this._dateAdapter.getValidDateOrNull(At);const Mt=!this._dateAdapter.sameDate(At,this.value);!At||Mt?this._cvaOnChange(At):(Z&&!this.value&&this._cvaOnChange(At),Fe!==this._lastValueValid&&this._validatorOnChange()),Mt&&(this._assignValue(At),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Z){this._elementRef.nativeElement.value=null!=Z?this._dateAdapter.format(Z,this._dateFormats.display.dateInput):""}_assignValue(Z){this._model?(this._assignValueToModel(Z),this._pendingValue=null):this._pendingValue=Z}_isValidValue(Z){return!Z||this._dateAdapter.isValid(Z)}_parentDisabled(){return!1}_assignValueProgrammatically(Z){Z=this._dateAdapter.deserialize(Z),this._lastValueValid=this._isValidValue(Z),Z=this._dateAdapter.getValidDateOrNull(Z),this._assignValue(Z),this._formatValue(Z)}_matchesFilter(Z){const Fe=this._getDateFilter();return!Fe||Fe(Z)}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8))},Ke.\u0275dir=g.lG2({type:Ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),Ke})();const Vt={provide:v.JU,useExisting:(0,g.Gpc)(()=>Jt),multi:!0},rn={provide:v.Cf,useExisting:(0,g.Gpc)(()=>Jt),multi:!0};let Jt=(()=>{class Ke extends st{constructor(Z,Fe,At,Mt){super(Z,Fe,At),this._formField=Mt,this._closedSubscription=U.w0.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(Z){Z&&(this._datepicker=Z,this._closedSubscription=Z.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Z.registerInput(this)))}get min(){return this._min}set min(Z){const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(Fe,this._min)||(this._min=Fe,this._validatorOnChange())}get max(){return this._max}set max(Z){const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(Fe,this._max)||(this._max=Fe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Z){const Fe=this._matchesFilter(this.value);this._dateFilter=Z,this._matchesFilter(this.value)!==Fe&&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(Z){return Z}_assignValueToModel(Z){this._model&&this._model.updateSelection(Z,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Z){return Z.source!==this}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(O.G_,8))},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Z,Fe){1&Z&&g.NdJ("input",function(Mt){return Fe._onInput(Mt.target.value)})("change",function(){return Fe._onChange()})("blur",function(){return Fe._onBlur()})("keydown",function(Mt){return Fe._onKeydown(Mt)}),2&Z&&(g.Ikx("disabled",Fe.disabled),g.uIk("aria-haspopup",Fe._datepicker?"dialog":null)("aria-owns",(null==Fe._datepicker?null:Fe._datepicker.opened)&&Fe._datepicker.id||null)("min",Fe.min?Fe._dateAdapter.toIso8601(Fe.min):null)("max",Fe.max?Fe._dateAdapter.toIso8601(Fe.max):null)("data-mat-calendar",Fe._datepicker?Fe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([Vt,rn,{provide:H.Jk,useExisting:Ke}]),g.qOj]}),Ke})(),nn=(()=>{class Ke{}return Ke.\u0275fac=function(Z){return new(Z||Ke)},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["","matDatepickerToggleIcon",""]]}),Ke})(),un=(()=>{class Ke{constructor(Z,Fe,At){this._intl=Z,this._changeDetectorRef=Fe,this._stateChanges=U.w0.EMPTY;const Mt=Number(At);this.tabIndex=Mt||0===Mt?Mt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Z){this._disabled=(0,fe.Ig)(Z)}ngOnChanges(Z){Z.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Z){this.datepicker&&!this.disabled&&(this.datepicker.open(),Z.stopPropagation())}_watchStateChanges(){const Z=this.datepicker?this.datepicker.stateChanges:(0,N.of)(),Fe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,N.of)(),At=this.datepicker?(0,A.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,N.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,A.T)(this._intl.changes,Z,Fe,At).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ke.\u0275fac=function(Z){return new(Z||Ke)(g.Y36(vt),g.Y36(g.sBO),g.$8M("tabindex"))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Z,Fe,At){if(1&Z&&g.Suo(At,nn,5),2&Z){let Mt;g.iGM(Mt=g.CRH())&&(Fe._customIcon=Mt.first)}},viewQuery:function(Z,Fe){if(1&Z&&g.Gf(I,5),2&Z){let At;g.iGM(At=g.CRH())&&(Fe._button=At.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Z,Fe){1&Z&&g.NdJ("click",function(Mt){return Fe._open(Mt)}),2&Z&&(g.uIk("tabindex",null)("data-mat-calendar",Fe.datepicker?Fe.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",Fe.datepicker&&Fe.datepicker.opened)("mat-accent",Fe.datepicker&&"accent"===Fe.datepicker.color)("mat-warn",Fe.datepicker&&"warn"===Fe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:G,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(Z,Fe){1&Z&&(g.F$t(ge),g.TgZ(0,"button",0,1),g.YNc(2,F,2,0,"svg",2),g.Hsn(3),g.qZA()),2&Z&&(g.Q6J("disabled",Fe.disabled)("disableRipple",Fe.disableRipple),g.uIk("aria-haspopup",Fe.datepicker?"dialog":null)("aria-label",Fe.ariaLabel||Fe._intl.openCalendarLabel)("tabindex",Fe.disabled?-1:Fe.tabIndex),g.xp6(2),g.Q6J("ngIf",!Fe._customIcon))},dependencies:[w.O5,b.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Ke})(),at=(()=>{class Ke{}return Ke.\u0275fac=function(Z){return new(Z||Ke)},Ke.\u0275mod=g.oAB({type:Ke}),Ke.\u0275inj=g.cJS({providers:[vt,$],imports:[w.ez,b.ot,d.U8,e.rt,_.eL,E.BQ,y.ZD]}),Ke})()},65412:(We,pe,h)=>{"use strict";h.d(pe,{WI:()=>_e,uw:()=>le,H8:()=>ct,vA:()=>j,xY:()=>Je,Is:()=>oe,so:()=>ge,uh:()=>Ze});var e=h(12687),d=h(98184),_=h(83353),w=h(84080),g=h(36895),b=h(94650),y=h(29521),E=h(77579),S=h(49770),U=h(39646),A=h(40445),N=h(68675);function z(V,r){}class Q{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let he=(()=>{class V extends w.en{constructor(s,f,l,a,n,t,i,o){super(),this._elementRef=s,this._focusTrapFactory=f,this._config=a,this._interactivityChecker=n,this._ngZone=t,this._overlayRef=i,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=c=>{this._portalOutlet.hasAttached();const p=this._portalOutlet.attachDomPortal(c);return this._contentAttached(),p},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(s){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachComponentPortal(s);return this._contentAttached(),f}attachTemplatePortal(s){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachTemplatePortal(s);return this._contentAttached(),f}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(s,f){this._interactivityChecker.isFocusable(s)||(s.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const l=()=>{s.removeEventListener("blur",l),s.removeEventListener("mousedown",l),s.removeAttribute("tabindex")};s.addEventListener("blur",l),s.addEventListener("mousedown",l)})),s.focus(f)}_focusByCssSelector(s,f){let l=this._elementRef.nativeElement.querySelector(s);l&&this._forceFocus(l,f)}_trapFocus(){const s=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||s.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(f=>{f||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 s=this._config.restoreFocus;let f=null;if("string"==typeof s?f=this._document.querySelector(s):"boolean"==typeof s?f=s?this._elementFocusedBeforeDialogWasOpened:null:s&&(f=s),this._config.restoreFocus&&f&&"function"==typeof f.focus){const l=(0,_.ht)(),a=this._elementRef.nativeElement;(!l||l===this._document.body||l===a||a.contains(l))&&(this._focusMonitor?(this._focusMonitor.focusVia(f,this._closeInteractionType),this._closeInteractionType=null):f.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const s=this._elementRef.nativeElement,f=(0,_.ht)();return s===f||s.contains(f)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,_.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return V.\u0275fac=function(s){return new(s||V)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(g.K0,8),b.Y36(Q),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(d.Iu),b.Y36(e.tE))},V.\u0275cmp=b.Xpm({type:V,selectors:[["cdk-dialog-container"]],viewQuery:function(s,f){if(1&s&&b.Gf(w.Pl,7),2&s){let l;b.iGM(l=b.CRH())&&(f._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(s,f){2&s&&b.uIk("id",f._config.id||null)("role",f._config.role)("aria-modal",f._config.ariaModal)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null)},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,f){1&s&&b.YNc(0,z,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),V})();class ee{constructor(r,s){this.overlayRef=r,this.config=s,this.closed=new E.x,this.disableClose=s.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(f=>{f.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(f)&&(f.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,s){if(this.containerInstance){const f=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this.overlayRef.dispose(),f.next(r),f.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",s=""){return this.overlayRef.updateSize({width:r,height:s}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const fe=new b.OlP("DialogScrollStrategy"),ce=new b.OlP("DialogData"),ve=new b.OlP("DefaultDialogConfig"),O={provide:fe,deps:[d.aV],useFactory:function v(V){return()=>V.scrollStrategies.block()}};let H=0,Y=(()=>{class V{constructor(s,f,l,a,n,t){this._overlay=s,this._injector=f,this._defaultOptions=l,this._parentDialog=a,this._overlayContainer=n,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(s,f){(f={...this._defaultOptions||new Q,...f}).id=f.id||"cdk-dialog-"+H++,f.id&&this.getDialogById(f.id);const a=this._getOverlayConfig(f),n=this._overlay.create(a),t=new ee(n,f),i=this._attachContainer(n,t,f);return t.containerInstance=i,this._attachDialogContent(s,t,i,f),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){q(this.openDialogs,s=>s.close())}getDialogById(s){return this.openDialogs.find(f=>f.id===s)}ngOnDestroy(){q(this._openDialogsAtThisLevel,s=>{!1===s.config.closeOnDestroy&&this._removeOpenDialog(s,!1)}),q(this._openDialogsAtThisLevel,s=>s.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(s){const f=new d.X_({positionStrategy:s.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:s.scrollStrategy||this._scrollStrategy(),panelClass:s.panelClass,hasBackdrop:s.hasBackdrop,direction:s.direction,minWidth:s.minWidth,minHeight:s.minHeight,maxWidth:s.maxWidth,maxHeight:s.maxHeight,width:s.width,height:s.height,disposeOnNavigation:s.closeOnNavigation});return s.backdropClass&&(f.backdropClass=s.backdropClass),f}_attachContainer(s,f,l){var a,n;const t=null!==(a=l.injector)&&void 0!==a?a:null===(n=l.viewContainerRef)||void 0===n?void 0:n.injector,i=[{provide:Q,useValue:l},{provide:ee,useValue:f},{provide:d.Iu,useValue:s}];let o;l.container?"function"==typeof l.container?o=l.container:(o=l.container.type,i.push(...l.container.providers(l))):o=he;const c=new w.C5(o,l.viewContainerRef,b.zs3.create({parent:t||this._injector,providers:i}),l.componentFactoryResolver);return s.attach(c).instance}_attachDialogContent(s,f,l,a){const n=this._createInjector(a,f,l);if(s instanceof b.Rgc){let t={$implicit:a.data,dialogRef:f};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),l.attachTemplatePortal(new w.UE(s,null,t,n))}else{const t=l.attachComponentPortal(new w.C5(s,a.viewContainerRef,n,a.componentFactoryResolver));f.componentInstance=t.instance}}_createInjector(s,f,l){const a=s&&s.viewContainerRef&&s.viewContainerRef.injector,n=[{provide:ce,useValue:s.data},{provide:ee,useValue:f}];return s.providers&&("function"==typeof s.providers?n.push(...s.providers(f,s,l)):n.push(...s.providers)),s.direction&&(!a||!a.get(A.Is,null,b.XFs.Optional))&&n.push({provide:A.Is,useValue:{value:s.direction,change:(0,U.of)()}}),b.zs3.create({parent:s.injector||a||this._injector,providers:n})}_removeOpenDialog(s,f){const l=this.openDialogs.indexOf(s);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,n)=>{a?n.setAttribute("aria-hidden",a):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),f&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const s=this._overlayContainer.getContainerElement();if(s.parentElement){const f=s.parentElement.children;for(let l=f.length-1;l>-1;l--){const a=f[l];a!==s&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return V.\u0275fac=function(s){return new(s||V)(b.LFG(d.aV),b.LFG(b.zs3),b.LFG(ve,8),b.LFG(V,12),b.LFG(d.Xj),b.LFG(fe))},V.\u0275prov=b.Yz7({token:V,factory:V.\u0275fac}),V})();function q(V,r){let s=V.length;for(;s--;)r(V[s])}let ue=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275mod=b.oAB({type:V}),V.\u0275inj=b.cJS({providers:[Y,O],imports:[d.U8,w.eL,e.rt,w.eL]}),V})();var Ee=h(3238),De=h(56451),Se=h(39300),Ge=h(95698),Ce=h(37340);function qe(V,r){}const Pe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},we={dialogContainer:(0,Ce.X$)("dialogContainer",[(0,Ce.SB)("void, exit",(0,Ce.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ce.SB)("enter",(0,Ce.oB)({transform:"none"})),(0,Ce.eR)("* => enter",(0,Ce.ru)([(0,Ce.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Ce.oB)({transform:"none",opacity:1})),(0,Ce.IO)("@*",(0,Ce.pV)(),{optional:!0})]),Pe),(0,Ce.eR)("* => void, * => exit",(0,Ce.ru)([(0,Ce.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ce.oB)({opacity:0})),(0,Ce.IO)("@*",(0,Ce.pV)(),{optional:!0})]),Pe)])};class j{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Pe.params.enterAnimationDuration,this.exitAnimationDuration=Pe.params.exitAnimationDuration}}let I=(()=>{class V extends he{constructor(s,f,l,a,n,t,i,o){super(s,f,l,a,n,t,i,o),this._animationStateChanged=new b.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(s){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})}}return V.\u0275fac=function(s){return new(s||V)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(g.K0,8),b.Y36(j),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(d.Iu),b.Y36(e.tE))},V.\u0275cmp=b.Xpm({type:V,selectors:[["ng-component"]],features:[b.qOj],decls:0,vars:0,template:function(s,f){},encapsulation:2}),V})(),F=(()=>{class V extends I{constructor(s,f,l,a,n,t,i,o,c){super(s,f,l,a,n,t,i,c),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:s,totalTime:f}){"enter"===s?this._openAnimationDone(f):"exit"===s&&this._animationStateChanged.next({state:"closed",totalTime:f})}_onAnimationStart({toState:s,totalTime:f}){"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:f}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:f})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Pe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Pe.params.exitAnimationDuration}}}}return V.\u0275fac=function(s){return new(s||V)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(g.K0,8),b.Y36(j),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(d.Iu),b.Y36(b.sBO),b.Y36(e.tE))},V.\u0275cmp=b.Xpm({type:V,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(s,f){1&s&&b.WFA("@dialogContainer.start",function(a){return f._onAnimationStart(a)})("@dialogContainer.done",function(a){return f._onAnimationDone(a)}),2&s&&(b.Ikx("id",f._config.id),b.uIk("aria-modal",f._config.ariaModal)("role",f._config.role)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null),b.d8E("@dialogContainer",f._getAnimationState()))},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,f){1&s&&b.YNc(0,qe,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[we.dialogContainer]}}),V})();class ge{constructor(r,s,f){this._ref=r,this._containerInstance=f,this._afterOpened=new E.x,this._beforeClosed=new E.x,this._state=0,this.disableClose=s.disableClose,this.id=r.id,f._animationStateChanged.pipe((0,Se.h)(l=>"opened"===l.state),(0,Ge.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),f._animationStateChanged.pipe((0,Se.h)(l=>"closed"===l.state),(0,Ge.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,De.T)(this.backdropClick(),this.keydownEvents().pipe((0,Se.h)(l=>l.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function G(V,r,s){V._closeInteractionType=r,V.close(s)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Se.h)(s=>"closing"===s.state),(0,Ge.q)(1)).subscribe(s=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let s=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?s.left(r.left):s.right(r.right):s.centerHorizontally(),r&&(r.top||r.bottom)?r.top?s.top(r.top):s.bottom(r.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",s=""){return this._ref.updateSize(r,s),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const _e=new b.OlP("MatDialogData"),Te=new b.OlP("mat-dialog-default-options"),et=new b.OlP("mat-dialog-scroll-strategy"),rt={provide:et,deps:[d.aV],useFactory:function vt(V){return()=>V.scrollStrategies.block()}};let ht=0,W=(()=>{class V{constructor(s,f,l,a,n,t,i,o,c,p){this._overlay=s,this._defaultOptions=l,this._parentDialog=a,this._dialogRefConstructor=i,this._dialogContainerType=o,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=t,this._dialog=f.get(Y)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(s,f){let l;(f={...this._defaultOptions||new j,...f}).id=f.id||`${this._idPrefix}${ht++}`,f.scrollStrategy=f.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(s,{...f,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:j,useValue:f},{provide:Q,useValue:f}]},templateContext:()=>({dialogRef:l}),providers:(n,t,i)=>{var o;return l=new this._dialogRefConstructor(n,f,i),l.updatePosition(null===(o=f)||void 0===o?void 0:o.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:l}]}});return l.componentInstance=a.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const n=this.openDialogs.indexOf(l);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(s){return this.openDialogs.find(f=>f.id===s)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(s){let f=s.length;for(;f--;)s[f].close()}}return V.\u0275fac=function(s){b.$Z()},V.\u0275prov=b.Yz7({token:V,factory:V.\u0275fac}),V})(),le=(()=>{class V extends W{constructor(s,f,l,a,n,t,i,o){super(s,f,a,t,i,n,ge,F,_e,o)}}return V.\u0275fac=function(s){return new(s||V)(b.LFG(d.aV),b.LFG(b.zs3),b.LFG(g.Ye,8),b.LFG(Te,8),b.LFG(et),b.LFG(V,12),b.LFG(d.Xj),b.LFG(b.QbO,8))},V.\u0275prov=b.Yz7({token:V,factory:V.\u0275fac}),V})(),ie=0,Ze=(()=>{class V{constructor(s,f,l){this._dialogRef=s,this._elementRef=f,this._dialog=l,this.id="mat-dialog-title-"+ie++}ngOnInit(){this._dialogRef||(this._dialogRef=function ze(V,r){let s=V.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-dialog-container");)s=s.parentElement;return s?r.find(f=>f.id===s.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const s=this._dialogRef._containerInstance;s&&!s._ariaLabelledBy&&(s._ariaLabelledBy=this.id)})}}return V.\u0275fac=function(s){return new(s||V)(b.Y36(ge,8),b.Y36(b.SBq),b.Y36(le))},V.\u0275dir=b.lG2({type:V,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(s,f){2&s&&b.Ikx("id",f.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),V})(),Je=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=b.lG2({type:V,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),V})(),ct=(()=>{class V{constructor(){this.align="start"}}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=b.lG2({type:V,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(s,f){2&s&&b.ekj("mat-dialog-actions-align-center","center"===f.align)("mat-dialog-actions-align-end","end"===f.align)},inputs:{align:"align"}}),V})(),oe=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275mod=b.oAB({type:V}),V.\u0275inj=b.cJS({providers:[le,rt],imports:[ue,d.U8,w.eL,Ee.BQ,Ee.BQ]}),V})()},44850:(We,pe,h)=>{"use strict";h.d(pe,{d:()=>w,t:()=>g});var e=h(94650),d=h(21281),_=h(3238);let w=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,d.Ig)(E)}get inset(){return this._inset}set inset(E){this._inset=(0,d.Ig)(E)}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(E,S){2&E&&(e.uIk("aria-orientation",S.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",S.vertical)("mat-divider-horizontal",!S.vertical)("mat-divider-inset",S.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(E,S){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),b})(),g=(()=>{class b{}return b.\u0275fac=function(E){return new(E||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[_.BQ,_.BQ]}),b})()},37084:(We,pe,h)=>{"use strict";h.d(pe,{pp:()=>rt,To:()=>ht,ib:()=>ge,HS:()=>j,u4:()=>Xe,yz:()=>et,yK:()=>vt});var e=h(94650),d=h(95017),_=h(21281),w=h(77579),g=h(50727);let b=0;const y=new e.OlP("CdkAccordion");let E=(()=>{class W{constructor(){this._stateChanges=new w.x,this._openCloseAllActions=new w.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(ie){this._multi=(0,_.Ig)(ie)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ie){this._stateChanges.next(ie)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275dir=e.lG2({type:W,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:y,useExisting:W}]),e.TTD]}),W})(),S=0,U=(()=>{class W{constructor(ie,ae,Ze){this.accordion=ie,this._changeDetectorRef=ae,this._expansionDispatcher=Ze,this._openCloseAllSubscription=g.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+S++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Ze.listen((Je,ct)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===ct&&this.id!==Je&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ie){ie=(0,_.Ig)(ie),this._expanded!==ie&&(this._expanded=ie,this.expandedChange.emit(ie),ie?(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(ie){this._disabled=(0,_.Ig)(ie)}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(ie=>{this.disabled||(this.expanded=ie)})}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(y,12),e.Y36(e.sBO),e.Y36(d.A8))},W.\u0275dir=e.lG2({type:W,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:y,useValue:void 0}])]}),W})(),A=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({}),W})();var N=h(84080),z=h(36895),Q=h(3238),ne=h(12687),he=h(71884),ee=h(68675),fe=h(39300),ce=h(95698),ve=h(29521),v=h(60515),O=h(56451),H=h(37340);const Y=["body"];function q(W,le){}const ue=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ee=["mat-expansion-panel-header","*","mat-action-row"];function De(W,le){if(1&W&&e._UZ(0,"span",2),2&W){const ie=e.oxw();e.Q6J("@indicatorRotate",ie._getExpandedState())}}const Se=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ge=["mat-panel-title","mat-panel-description","*"],Ce=new e.OlP("MAT_ACCORDION"),qe="225ms cubic-bezier(0.4,0.0,0.2,1)",Pe={indicatorRotate:(0,H.X$)("indicatorRotate",[(0,H.SB)("collapsed, void",(0,H.oB)({transform:"rotate(0deg)"})),(0,H.SB)("expanded",(0,H.oB)({transform:"rotate(180deg)"})),(0,H.eR)("expanded <=> collapsed, void => collapsed",(0,H.jt)(qe))]),bodyExpansion:(0,H.X$)("bodyExpansion",[(0,H.SB)("collapsed, void",(0,H.oB)({height:"0px",visibility:"hidden"})),(0,H.SB)("expanded",(0,H.oB)({height:"*",visibility:"visible"})),(0,H.eR)("expanded <=> collapsed, void => collapsed",(0,H.jt)(qe))])},we=new e.OlP("MAT_EXPANSION_PANEL");let j=(()=>{class W{constructor(ie,ae){this._template=ie,this._expansionPanel=ae}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(e.Rgc),e.Y36(we,8))},W.\u0275dir=e.lG2({type:W,selectors:[["ng-template","matExpansionPanelContent",""]]}),W})(),I=0;const F=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ge=(()=>{class W extends U{constructor(ie,ae,Ze,Je,ct,ze,oe){super(ie,ae,Ze),this._viewContainerRef=Je,this._animationMode=ze,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new w.x,this._headerId="mat-expansion-panel-header-"+I++,this._bodyAnimationDone=new w.x,this.accordion=ie,this._document=ct,this._bodyAnimationDone.pipe((0,he.x)((V,r)=>V.fromState===r.fromState&&V.toState===r.toState)).subscribe(V=>{"void"!==V.fromState&&("expanded"===V.toState?this.afterExpand.emit():"collapsed"===V.toState&&this.afterCollapse.emit())}),oe&&(this.hideToggle=oe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ie){this._hideToggle=(0,_.Ig)(ie)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ie){this._togglePosition=ie}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ee.O)(null),(0,fe.h)(()=>this.expanded&&!this._portal),(0,ce.q)(1)).subscribe(()=>{this._portal=new N.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ie){this._inputChanges.next(ie)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ie=this._document.activeElement,ae=this._body.nativeElement;return ie===ae||ae.contains(ie)}return!1}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(Ce,12),e.Y36(e.sBO),e.Y36(d.A8),e.Y36(e.s_b),e.Y36(z.K0),e.Y36(e.QbO,8),e.Y36(F,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-expansion-panel"]],contentQueries:function(ie,ae,Ze){if(1&ie&&e.Suo(Ze,j,5),2&ie){let Je;e.iGM(Je=e.CRH())&&(ae._lazyContent=Je.first)}},viewQuery:function(ie,ae){if(1&ie&&e.Gf(Y,5),2&ie){let Ze;e.iGM(Ze=e.CRH())&&(ae._body=Ze.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ie,ae){2&ie&&e.ekj("mat-expanded",ae.expanded)("_mat-animation-noopable","NoopAnimations"===ae._animationMode)("mat-expansion-panel-spacing",ae._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:Ce,useValue:void 0},{provide:we,useExisting:W}]),e.qOj,e.TTD],ngContentSelectors:Ee,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ie,ae){1&ie&&(e.F$t(ue),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Je){return ae._bodyAnimationDone.next(Je)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,q,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&ie&&(e.xp6(1),e.Q6J("@bodyExpansion",ae._getExpandedState())("id",ae.id),e.uIk("aria-labelledby",ae._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ae._portal))},dependencies:[N.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Pe.bodyExpansion]},changeDetection:0}),W})();class _e{}const Te=(0,Q.sb)(_e);let et=(()=>{class W extends Te{constructor(ie,ae,Ze,Je,ct,ze,oe){super(),this.panel=ie,this._element=ae,this._focusMonitor=Ze,this._changeDetectorRef=Je,this._animationMode=ze,this._parentChangeSubscription=g.w0.EMPTY;const V=ie.accordion?ie.accordion._stateChanges.pipe((0,fe.h)(r=>!(!r.hideToggle&&!r.togglePosition))):v.E;this.tabIndex=parseInt(oe||"")||0,this._parentChangeSubscription=(0,O.T)(ie.opened,ie.closed,V,ie._inputChanges.pipe((0,fe.h)(r=>!!(r.hideToggle||r.disabled||r.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ie.closed.pipe((0,fe.h)(()=>ie._containsFocus())).subscribe(()=>Ze.focusVia(ae,"program")),ct&&(this.expandedHeight=ct.expandedHeight,this.collapsedHeight=ct.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 ie=this._isExpanded();return ie&&this.expandedHeight?this.expandedHeight:!ie&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ie){switch(ie.keyCode){case ve.L_:case ve.K5:(0,ve.Vb)(ie)||(ie.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ie))}}focus(ie,ae){ie?this._focusMonitor.focusVia(this._element,ie,ae):this._element.nativeElement.focus(ae)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ie=>{ie&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(ge,1),e.Y36(e.SBq),e.Y36(ne.tE),e.Y36(e.sBO),e.Y36(F,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ie,ae){1&ie&&e.NdJ("click",function(){return ae._toggle()})("keydown",function(Je){return ae._keydown(Je)}),2&ie&&(e.uIk("id",ae.panel._headerId)("tabindex",ae.tabIndex)("aria-controls",ae._getPanelId())("aria-expanded",ae._isExpanded())("aria-disabled",ae.panel.disabled),e.Udp("height",ae._getHeaderHeight()),e.ekj("mat-expanded",ae._isExpanded())("mat-expansion-toggle-indicator-after","after"===ae._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ae._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ae._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Ge,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ie,ae){1&ie&&(e.F$t(Se),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,De,1,1,"span",1)),2&ie&&(e.xp6(4),e.Q6J("ngIf",ae._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Pe.indicatorRotate]},changeDetection:0}),W})(),Xe=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),W})(),vt=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),W})(),rt=(()=>{class W extends E{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(ie){this._hideToggle=(0,_.Ig)(ie)}ngAfterContentInit(){this._headers.changes.pipe((0,ee.O)(this._headers)).subscribe(ie=>{this._ownHeaders.reset(ie.filter(ae=>ae.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ne.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ie){this._keyManager.onKeydown(ie)}_handleHeaderFocus(ie){this._keyManager.updateActiveItem(ie)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return W.\u0275fac=function(){let le;return function(ae){return(le||(le=e.n5z(W)))(ae||W)}}(),W.\u0275dir=e.lG2({type:W,selectors:[["mat-accordion"]],contentQueries:function(ie,ae,Ze){if(1&ie&&e.Suo(Ze,et,5),2&ie){let Je;e.iGM(Je=e.CRH())&&(ae._headers=Je)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ie,ae){2&ie&&e.ekj("mat-accordion-multi",ae.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:Ce,useExisting:W}]),e.qOj]}),W})(),ht=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[z.ez,Q.BQ,A,N.eL]}),W})()},59549:(We,pe,h)=>{"use strict";h.d(pe,{Eo:()=>j,G_:()=>ct,KE:()=>ze,R9:()=>W,TO:()=>Pe,UY:()=>Xe,bx:()=>Te,hX:()=>et,lN:()=>oe});var e=h(49643),d=h(36895),_=h(94650),w=h(3238),g=h(40445),b=h(21281),y=h(77579),E=h(56451),S=h(54968),U=h(68675),A=h(82722),N=h(95698),z=h(37340),Q=h(83353);const ne=["connectionContainer"],he=["inputContainer"],ee=["label"];function fe(V,r){1&V&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15)(3,"div",16)(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15)(7,"div",16)(8,"div",17),_.qZA(),_.BQk())}function ce(V,r){if(1&V){const s=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){_.CHM(s);const l=_.oxw();return _.KtG(l.updateOutlineGap())}),_.Hsn(1,1),_.qZA()}if(2&V){const s=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)}}function ve(V,r){if(1&V&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&V){const s=_.oxw(2);_.xp6(3),_.Oqu(s._control.placeholder)}}function v(V,r){1&V&&_.Hsn(0,3,["*ngSwitchCase","true"])}function O(V,r){1&V&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function H(V,r){if(1&V){const s=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){_.CHM(s);const l=_.oxw();return _.KtG(l.updateOutlineGap())}),_.YNc(2,ve,4,1,"ng-container",12),_.YNc(3,v,1,0,"ng-content",12),_.YNc(4,O,2,0,"span",22),_.qZA()}if(2&V){const s=_.oxw();_.ekj("mat-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-form-field-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-accent","accent"==s.color)("mat-warn","warn"==s.color),_.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)("id",s._labelId)("ngSwitch",s._hasLabel()),_.uIk("for",s._control.id)("aria-owns",s._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!s.hideRequiredMarker&&s._control.required&&!s._control.disabled)}}function Y(V,r){1&V&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function q(V,r){if(1&V&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&V){const s=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==s.color)("mat-warn","warn"==s.color)}}function ue(V,r){if(1&V&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&V){const s=_.oxw();_.Q6J("@transitionMessages",s._subscriptAnimationState)}}function Ee(V,r){if(1&V&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&V){const s=_.oxw(2);_.Q6J("id",s._hintLabelId),_.xp6(1),_.Oqu(s.hintLabel)}}function De(V,r){if(1&V&&(_.TgZ(0,"div",27),_.YNc(1,Ee,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&V){const s=_.oxw();_.Q6J("@transitionMessages",s._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",s.hintLabel)}}const Se=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ge=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ce=0;const qe=new _.OlP("MatError");let Pe=(()=>{class V{constructor(s,f){this.id="mat-error-"+Ce++,s||f.nativeElement.setAttribute("aria-live","polite")}}return V.\u0275fac=function(s){return new(s||V)(_.$8M("aria-live"),_.Y36(_.SBq))},V.\u0275dir=_.lG2({type:V,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(s,f){2&s&&_.uIk("id",f.id)},inputs:{id:"id"},features:[_._Bn([{provide:qe,useExisting:V}])]}),V})();const we={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=_.lG2({type:V}),V})(),G=0;const _e=new _.OlP("MatHint");let Te=(()=>{class V{constructor(){this.align="start",this.id="mat-hint-"+G++}}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=_.lG2({type:V,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(s,f){2&s&&(_.uIk("id",f.id)("align",null),_.ekj("mat-form-field-hint-end","end"===f.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:_e,useExisting:V}])]}),V})(),et=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=_.lG2({type:V,selectors:[["mat-label"]]}),V})(),Xe=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=_.lG2({type:V,selectors:[["mat-placeholder"]]}),V})();const vt=new _.OlP("MatPrefix"),ht=new _.OlP("MatSuffix");let W=(()=>{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275dir=_.lG2({type:V,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:ht,useExisting:V}])]}),V})(),le=0;const Ze=(0,w.pj)(class{constructor(V){this._elementRef=V}},"primary"),Je=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ct=new _.OlP("MatFormField");let ze=(()=>{class V extends Ze{constructor(s,f,l,a,n,t,i){super(s),this._changeDetectorRef=f,this._dir=l,this._defaults=a,this._platform=n,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new y.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+le++,this._labelId="mat-form-field-label-"+le++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(s){var f;const l=this._appearance;this._appearance=s||(null===(f=this._defaults)||void 0===f?void 0:f.appearance)||"legacy","outline"===this._appearance&&l!==s&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(s){this._hideRequiredMarker=(0,b.Ig)(s)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(s){this._hintLabel=s,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(s){s!==this._floatLabel&&(this._floatLabel=s||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(s){this._explicitFormFieldControl=s}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const s=this._control;s.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${s.controlType}`),s.stateChanges.pipe((0,U.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),s.ngControl&&s.ngControl.valueChanges&&s.ngControl.valueChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,A.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,U.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,U.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,A.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(s){const f=this._control?this._control.ngControl:null;return f&&f[s]}_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,S.R)(this._label.nativeElement,"transitionend").pipe((0,N.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 s=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&s.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const f=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,l=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;f?s.push(f.id):this._hintLabel&&s.push(this._hintLabelId),l&&s.push(l.id)}else this._errorChildren&&s.push(...this._errorChildren.map(f=>f.id));this._control.setDescribedByIds(s)}}_validateControlChild(){}updateOutlineGap(){const s=this._label?this._label.nativeElement:null,f=this._connectionContainerRef.nativeElement,l=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!s||!s.children.length||!s.textContent.trim()){const c=f.querySelectorAll(`${l}, ${a}`);for(let p=0;p0?.75*it+10:0}for(let c=0;c{class V{}return V.\u0275fac=function(s){return new(s||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({imports:[d.ez,w.BQ,e.Q8,w.BQ]}),V})()},97392:(We,pe,h)=>{"use strict";h.d(pe,{Hw:()=>G,Ps:()=>_e,jv:()=>ue});var e=h(94650),d=h(3238),_=h(21281),w=h(36895),g=h(39646),b=h(62843),y=h(4128),E=h(50727),S=h(18505),U=h(54004),A=h(70262),N=h(28746),z=h(13099),Q=h(95698),ne=h(80529),he=h(11481);const ee=["*"];let fe;function ve(Te){var et;return(null===(et=function ce(){if(void 0===fe&&(fe=null,typeof window<"u")){const Te=window;void 0!==Te.trustedTypes&&(fe=Te.trustedTypes.createPolicy("angular#components",{createHTML:et=>et}))}return fe}())||void 0===et?void 0:et.createHTML(Te))||Te}function v(Te){return Error(`Unable to find icon with the name "${Te}"`)}function H(Te){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Te}".`)}function Y(Te){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Te}".`)}class q{constructor(et,Xe,vt){this.url=et,this.svgText=Xe,this.options=vt}}let ue=(()=>{class Te{constructor(Xe,vt,rt,ht){this._httpClient=Xe,this._sanitizer=vt,this._errorHandler=ht,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=rt}addSvgIcon(Xe,vt,rt){return this.addSvgIconInNamespace("",Xe,vt,rt)}addSvgIconLiteral(Xe,vt,rt){return this.addSvgIconLiteralInNamespace("",Xe,vt,rt)}addSvgIconInNamespace(Xe,vt,rt,ht){return this._addSvgIconConfig(Xe,vt,new q(rt,null,ht))}addSvgIconResolver(Xe){return this._resolvers.push(Xe),this}addSvgIconLiteralInNamespace(Xe,vt,rt,ht){const W=this._sanitizer.sanitize(e.q3G.HTML,rt);if(!W)throw Y(rt);const le=ve(W);return this._addSvgIconConfig(Xe,vt,new q("",le,ht))}addSvgIconSet(Xe,vt){return this.addSvgIconSetInNamespace("",Xe,vt)}addSvgIconSetLiteral(Xe,vt){return this.addSvgIconSetLiteralInNamespace("",Xe,vt)}addSvgIconSetInNamespace(Xe,vt,rt){return this._addSvgIconSetConfig(Xe,new q(vt,null,rt))}addSvgIconSetLiteralInNamespace(Xe,vt,rt){const ht=this._sanitizer.sanitize(e.q3G.HTML,vt);if(!ht)throw Y(vt);const W=ve(ht);return this._addSvgIconSetConfig(Xe,new q("",W,rt))}registerFontClassAlias(Xe,vt=Xe){return this._fontCssClassesByAlias.set(Xe,vt),this}classNameForFontAlias(Xe){return this._fontCssClassesByAlias.get(Xe)||Xe}setDefaultFontSetClass(...Xe){return this._defaultFontSetClass=Xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Xe){const vt=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Xe);if(!vt)throw H(Xe);const rt=this._cachedIconsByUrl.get(vt);return rt?(0,g.of)(Se(rt)):this._loadSvgIconFromConfig(new q(Xe,null)).pipe((0,S.b)(ht=>this._cachedIconsByUrl.set(vt,ht)),(0,U.U)(ht=>Se(ht)))}getNamedSvgIcon(Xe,vt=""){const rt=Ge(vt,Xe);let ht=this._svgIconConfigs.get(rt);if(ht)return this._getSvgFromConfig(ht);if(ht=this._getIconConfigFromResolvers(vt,Xe),ht)return this._svgIconConfigs.set(rt,ht),this._getSvgFromConfig(ht);const W=this._iconSetConfigs.get(vt);return W?this._getSvgFromIconSetConfigs(Xe,W):(0,b._)(v(rt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Xe){return Xe.svgText?(0,g.of)(Se(this._svgElementFromConfig(Xe))):this._loadSvgIconFromConfig(Xe).pipe((0,U.U)(vt=>Se(vt)))}_getSvgFromIconSetConfigs(Xe,vt){const rt=this._extractIconWithNameFromAnySet(Xe,vt);if(rt)return(0,g.of)(rt);const ht=vt.filter(W=>!W.svgText).map(W=>this._loadSvgIconSetFromConfig(W).pipe((0,A.K)(le=>{const ae=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,W.url)} failed: ${le.message}`;return this._errorHandler.handleError(new Error(ae)),(0,g.of)(null)})));return(0,y.D)(ht).pipe((0,U.U)(()=>{const W=this._extractIconWithNameFromAnySet(Xe,vt);if(!W)throw v(Xe);return W}))}_extractIconWithNameFromAnySet(Xe,vt){for(let rt=vt.length-1;rt>=0;rt--){const ht=vt[rt];if(ht.svgText&&ht.svgText.toString().indexOf(Xe)>-1){const W=this._svgElementFromConfig(ht),le=this._extractSvgIconFromSet(W,Xe,ht.options);if(le)return le}}return null}_loadSvgIconFromConfig(Xe){return this._fetchIcon(Xe).pipe((0,S.b)(vt=>Xe.svgText=vt),(0,U.U)(()=>this._svgElementFromConfig(Xe)))}_loadSvgIconSetFromConfig(Xe){return Xe.svgText?(0,g.of)(null):this._fetchIcon(Xe).pipe((0,S.b)(vt=>Xe.svgText=vt))}_extractSvgIconFromSet(Xe,vt,rt){const ht=Xe.querySelector(`[id="${vt}"]`);if(!ht)return null;const W=ht.cloneNode(!0);if(W.removeAttribute("id"),"svg"===W.nodeName.toLowerCase())return this._setSvgAttributes(W,rt);if("symbol"===W.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(W),rt);const le=this._svgElementFromString(ve(""));return le.appendChild(W),this._setSvgAttributes(le,rt)}_svgElementFromString(Xe){const vt=this._document.createElement("DIV");vt.innerHTML=Xe;const rt=vt.querySelector("svg");if(!rt)throw Error(" tag not found");return rt}_toSvgElement(Xe){const vt=this._svgElementFromString(ve("")),rt=Xe.attributes;for(let ht=0;htve(Ze)),(0,N.x)(()=>this._inProgressUrlFetches.delete(le)),(0,z.B)());return this._inProgressUrlFetches.set(le,ae),ae}_addSvgIconConfig(Xe,vt,rt){return this._svgIconConfigs.set(Ge(Xe,vt),rt),this}_addSvgIconSetConfig(Xe,vt){const rt=this._iconSetConfigs.get(Xe);return rt?rt.push(vt):this._iconSetConfigs.set(Xe,[vt]),this}_svgElementFromConfig(Xe){if(!Xe.svgElement){const vt=this._svgElementFromString(Xe.svgText);this._setSvgAttributes(vt,Xe.options),Xe.svgElement=vt}return Xe.svgElement}_getIconConfigFromResolvers(Xe,vt){for(let rt=0;rtet?et.pathname+et.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],F=I.map(Te=>`[${Te}]`).join(", "),ge=/^url\(['"]?#(.*?)['"]?\)$/;let G=(()=>{class Te extends qe{constructor(Xe,vt,rt,ht,W,le){super(Xe),this._iconRegistry=vt,this._location=ht,this._errorHandler=W,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.w0.EMPTY,le&&(le.color&&(this.color=this.defaultColor=le.color),le.fontSet&&(this.fontSet=le.fontSet)),rt||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 vt=this._cleanupFontValue(Xe);vt!==this._fontSet&&(this._fontSet=vt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Xe){const vt=this._cleanupFontValue(Xe);vt!==this._fontIcon&&(this._fontIcon=vt,this._updateFontIconClasses())}_splitIconName(Xe){if(!Xe)return["",""];const vt=Xe.split(":");switch(vt.length){case 1:return["",vt[0]];case 2:return vt;default:throw Error(`Invalid icon name: "${Xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Xe=this._elementsWithExternalReferences;if(Xe&&Xe.size){const vt=this._location.getPathname();vt!==this._previousPath&&(this._previousPath=vt,this._prependPathToReferences(vt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Xe){this._clearSvgElement();const vt=this._location.getPathname();this._previousPath=vt,this._cacheChildrenWithExternalReferences(Xe),this._prependPathToReferences(vt),this._elementRef.nativeElement.appendChild(Xe)}_clearSvgElement(){const Xe=this._elementRef.nativeElement;let vt=Xe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();vt--;){const rt=Xe.childNodes[vt];(1!==rt.nodeType||"svg"===rt.nodeName.toLowerCase())&&rt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Xe=this._elementRef.nativeElement,vt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(rt=>rt.length>0);this._previousFontSetClass.forEach(rt=>Xe.classList.remove(rt)),vt.forEach(rt=>Xe.classList.add(rt)),this._previousFontSetClass=vt,this.fontIcon!==this._previousFontIconClass&&!vt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Xe.classList.remove(this._previousFontIconClass),this.fontIcon&&Xe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Xe){return"string"==typeof Xe?Xe.trim().split(" ")[0]:Xe}_prependPathToReferences(Xe){const vt=this._elementsWithExternalReferences;vt&&vt.forEach((rt,ht)=>{rt.forEach(W=>{ht.setAttribute(W.name,`url('${Xe}#${W.value}')`)})})}_cacheChildrenWithExternalReferences(Xe){const vt=Xe.querySelectorAll(F),rt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ht=0;ht{const le=vt[ht],ie=le.getAttribute(W),ae=ie?ie.match(ge):null;if(ae){let Ze=rt.get(le);Ze||(Ze=[],rt.set(le,Ze)),Ze.push({name:W,value:ae[1]})}})}_updateSvgIcon(Xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Xe){const[vt,rt]=this._splitIconName(Xe);vt&&(this._svgNamespace=vt),rt&&(this._svgName=rt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(rt,vt).pipe((0,Q.q)(1)).subscribe(ht=>this._setSvgElement(ht),ht=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${vt}:${rt}! ${ht.message}`))})}}}return Te.\u0275fac=function(Xe){return new(Xe||Te)(e.Y36(e.SBq),e.Y36(ue),e.$8M("aria-hidden"),e.Y36(we),e.Y36(e.qLn),e.Y36(Pe,8))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Xe,vt){2&Xe&&(e.uIk("data-mat-icon-type",vt._usingFontIcon()?"font":"svg")("data-mat-icon-name",vt._svgName||vt.fontIcon)("data-mat-icon-namespace",vt._svgNamespace||vt.fontSet),e.ekj("mat-icon-inline",vt.inline)("mat-icon-no-color","primary"!==vt.color&&"accent"!==vt.color&&"warn"!==vt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:ee,decls:1,vars:0,template:function(Xe,vt){1&Xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Te})(),_e=(()=>{class Te{}return Te.\u0275fac=function(Xe){return new(Xe||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[d.BQ,d.BQ]}),Te})()},284:(We,pe,h)=>{"use strict";h.d(pe,{Jk:()=>U,Nt:()=>Q,c:()=>ne});var e=h(21281),d=h(83353),_=h(39349),w=h(94650),g=h(24006),b=h(3238),y=h(59549),E=h(77579);const U=new w.OlP("MAT_INPUT_VALUE_ACCESSOR"),A=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N=0;const z=(0,b.FD)(class{constructor(he,ee,fe,ce){this._defaultErrorStateMatcher=he,this._parentForm=ee,this._parentFormGroup=fe,this.ngControl=ce,this.stateChanges=new E.x}});let Q=(()=>{class he extends z{constructor(fe,ce,ve,v,O,H,Y,q,ue,Ee){super(H,v,O,ve),this._elementRef=fe,this._platform=ce,this._autofillMonitor=q,this._formField=Ee,this._uid="mat-input-"+N++,this.focused=!1,this.stateChanges=new E.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Ge=>(0,d.qK)().has(Ge)),this._iOSKeyupListener=Ge=>{const Ce=Ge.target;!Ce.value&&0===Ce.selectionStart&&0===Ce.selectionEnd&&(Ce.setSelectionRange(1,1),Ce.setSelectionRange(0,0))};const De=this._elementRef.nativeElement,Se=De.nodeName.toLowerCase();this._inputValueAccessor=Y||De,this._previousNativeValue=this.value,this.id=this.id,ce.IOS&&ue.runOutsideAngular(()=>{fe.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Se,this._isTextarea="textarea"===Se,this._isInFormField=!!Ee,this._isNativeSelect&&(this.controlType=De.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(fe){this._disabled=(0,e.Ig)(fe),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(fe){this._id=fe||this._uid}get required(){var fe,ce,ve,v;return null!==(fe=null!==(ce=this._required)&&void 0!==ce?ce:null===(ve=this.ngControl)||void 0===ve||null===(v=ve.control)||void 0===v?void 0:v.hasValidator(g.kI.required))&&void 0!==fe&&fe}set required(fe){this._required=(0,e.Ig)(fe)}get type(){return this._type}set type(fe){this._type=fe||"text",this._validateType(),!this._isTextarea&&(0,d.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(fe){fe!==this.value&&(this._inputValueAccessor.value=fe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(fe){this._readonly=(0,e.Ig)(fe)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(fe=>{this.autofilled=fe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(fe){this._elementRef.nativeElement.focus(fe)}_focusChanged(fe){fe!==this.focused&&(this.focused=fe,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var fe;const ce=this._formField,ve=!ce||"legacy"!==ce.appearance||null!==(fe=ce._hasLabel)&&void 0!==fe&&fe.call(ce)?this.placeholder:null;if(ve!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=ve,ve?v.setAttribute("placeholder",ve):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const fe=this._elementRef.nativeElement.value;this._previousNativeValue!==fe&&(this._previousNativeValue=fe,this.stateChanges.next())}_validateType(){A.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let fe=this._elementRef.nativeElement.validity;return fe&&fe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const fe=this._elementRef.nativeElement,ce=fe.options[0];return this.focused||fe.multiple||!this.empty||!!(fe.selectedIndex>-1&&ce&&ce.label)}return this.focused||!this.empty}setDescribedByIds(fe){fe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",fe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const fe=this._elementRef.nativeElement;return this._isNativeSelect&&(fe.multiple||fe.size>1)}}return he.\u0275fac=function(fe){return new(fe||he)(w.Y36(w.SBq),w.Y36(d.t4),w.Y36(g.a5,10),w.Y36(g.F,8),w.Y36(g.sg,8),w.Y36(b.rD),w.Y36(U,10),w.Y36(_.Lq),w.Y36(w.R0b),w.Y36(y.G_,8))},he.\u0275dir=w.lG2({type:he,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(fe,ce){1&fe&&w.NdJ("focus",function(){return ce._focusChanged(!0)})("blur",function(){return ce._focusChanged(!1)})("input",function(){return ce._onInput()}),2&fe&&(w.Ikx("disabled",ce.disabled)("required",ce.required),w.uIk("id",ce.id)("data-placeholder",ce.placeholder)("name",ce.name||null)("readonly",ce.readonly&&!ce._isNativeSelect||null)("aria-invalid",ce.empty&&ce.required?null:ce.errorState)("aria-required",ce.required),w.ekj("mat-input-server",ce._isServer)("mat-native-select-inline",ce._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:[w._Bn([{provide:y.Eo,useExisting:he}]),w.qOj,w.TTD]}),he})(),ne=(()=>{class he{}return he.\u0275fac=function(fe){return new(fe||he)},he.\u0275mod=w.oAB({type:he}),he.\u0275inj=w.cJS({providers:[b.rD],imports:[_.Ky,y.lN,b.BQ,_.Ky,y.lN]}),he})()},96338:(We,pe,h)=>{"use strict";h.d(pe,{Tg:()=>Ge,i$:()=>ue,ie:()=>F});var e=h(36895),d=h(94650),_=h(3238),w=h(21281),g=h(77579),b=h(82722),N=(h(68675),h(12687),h(95017),h(29521),h(24006),h(44850));const z=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],he=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],v=(0,_.Id)((0,_.Kr)(class{})),O=(0,_.Kr)(class{}),H=new d.OlP("MatList"),Y=new d.OlP("MatNavList");let ue=(()=>{class ge extends v{constructor(_e){super(),this._elementRef=_e,this._stateChanges=new g.x,"action-list"===this._getListType()&&_e.nativeElement.classList.add("mat-action-list")}_getListType(){const _e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===_e?"list":"mat-action-list"===_e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ge.\u0275fac=function(_e){return new(_e||ge)(d.Y36(d.SBq))},ge.\u0275cmp=d.Xpm({type:ge,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[d._Bn([{provide:H,useExisting:ge}]),d.qOj,d.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(_e,Te){1&_e&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),ge})(),Ee=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275dir=d.lG2({type:ge,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),ge})(),De=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275dir=d.lG2({type:ge,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),ge})(),Ge=(()=>{class ge extends O{constructor(_e,Te,et,Xe){super(),this._element=_e,this._isInteractiveList=!1,this._destroyed=new g.x,this._disabled=!1,this._isInteractiveList=!!(et||Xe&&"action-list"===Xe._getListType()),this._list=et||Xe;const vt=this._getHostElement();"button"===vt.nodeName.toLowerCase()&&!vt.hasAttribute("type")&&vt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{Te.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(_e){this._disabled=(0,w.Ig)(_e)}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 ge.\u0275fac=function(_e){return new(_e||ge)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Y,8),d.Y36(H,8))},ge.\u0275cmp=d.Xpm({type:ge,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(_e,Te,et){if(1&_e&&(d.Suo(et,Ee,5),d.Suo(et,De,5),d.Suo(et,_.X2,5)),2&_e){let Xe;d.iGM(Xe=d.CRH())&&(Te._avatar=Xe.first),d.iGM(Xe=d.CRH())&&(Te._icon=Xe.first),d.iGM(Xe=d.CRH())&&(Te._lines=Xe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(_e,Te){2&_e&&d.ekj("mat-list-item-disabled",Te.disabled)("mat-list-item-with-avatar",Te._avatar||Te._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:he,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,Te){1&_e&&(d.F$t(ne),d.TgZ(0,"span",0),d._UZ(1,"span",1),d.Hsn(2),d.TgZ(3,"span",2),d.Hsn(4,1),d.qZA(),d.Hsn(5,2),d.qZA()),2&_e&&(d.xp6(1),d.Q6J("matRippleTrigger",Te._getHostElement())("matRippleDisabled",Te._isRippleDisabled()))},dependencies:[_.wG],encapsulation:2,changeDetection:0}),ge})(),F=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275mod=d.oAB({type:ge}),ge.\u0275inj=d.cJS({imports:[_.uc,_.si,_.BQ,_.us,e.ez,_.uc,_.BQ,_.us,N.t]}),ge})()},28255:(We,pe,h)=>{"use strict";h.d(pe,{OP:()=>G,Tx:()=>Je,VK:()=>vt,p6:()=>Ze});var e=h(12687),d=h(21281),_=h(29521),w=h(94650),g=h(77579),b=h(50727),y=h(56451),E=h(39646),S=h(53101),U=h(68675),A=h(63900),N=h(95698),z=h(82722),Q=h(39300),ne=h(91005),he=h(37340),ee=h(84080),fe=h(36895),ce=h(3238),ve=h(40445),v=h(98184),O=h(83353),H=h(67376);const Y=["mat-menu-item",""];function q(ct,ze){1&ct&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ue=["*"];function Ee(ct,ze){if(1&ct){const oe=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._handleKeydown(r))})("click",function(){w.CHM(oe);const r=w.oxw();return w.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._onAnimationStart(r))})("@transformMenu.done",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._onAnimationDone(r))}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA()()}if(2&ct){const oe=w.oxw();w.Q6J("id",oe.panelId)("ngClass",oe._classList)("@transformMenu",oe._panelAnimationState),w.uIk("aria-label",oe.ariaLabel||null)("aria-labelledby",oe.ariaLabelledby||null)("aria-describedby",oe.ariaDescribedby||null)}}const De={transformMenu:(0,he.X$)("transformMenu",[(0,he.SB)("void",(0,he.oB)({opacity:0,transform:"scale(0.8)"})),(0,he.eR)("void => enter",(0,he.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,he.oB)({opacity:1,transform:"scale(1)"}))),(0,he.eR)("* => void",(0,he.jt)("100ms 25ms linear",(0,he.oB)({opacity:0})))]),fadeInItems:(0,he.X$)("fadeInItems",[(0,he.SB)("showing",(0,he.oB)({opacity:1})),(0,he.eR)("void => *",[(0,he.oB)({opacity:0}),(0,he.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ce=new w.OlP("MatMenuContent"),F=new w.OlP("MAT_MENU_PANEL"),ge=(0,ce.Kr)((0,ce.Id)(class{}));let G=(()=>{class ct extends ge{constructor(oe,V,r,s,f){var l;super(),this._elementRef=oe,this._document=V,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=f,this.role="menuitem",this._hovered=new g.x,this._focused=new g.x,this._highlighted=!1,this._triggersSubmenu=!1,null==s||null===(l=s.addItem)||void 0===l||l.call(s,this)}focus(oe,V){this._focusMonitor&&oe?this._focusMonitor.focusVia(this._getHostElement(),oe,V):this._getHostElement().focus(V),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(oe){this.disabled&&(oe.preventDefault(),oe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var oe;const V=this._elementRef.nativeElement.cloneNode(!0),r=V.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class ct{constructor(oe,V,r,s){this._elementRef=oe,this._ngZone=V,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.x,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-"+et++}get xPosition(){return this._xPosition}set xPosition(oe){this._xPosition=oe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(oe){this._yPosition=oe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(oe){this._overlapTrigger=(0,d.Ig)(oe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(oe){this._hasBackdrop=(0,d.Ig)(oe)}set panelClass(oe){const V=this._previousPanelClass;V&&V.length&&V.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=oe,oe&&oe.length&&(oe.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(oe){this.panelClass=oe}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,U.O)(this._directDescendantItems),(0,A.w)(oe=>(0,y.T)(...oe.map(V=>V._focused)))).subscribe(oe=>this._keyManager.updateActiveItem(oe)),this._directDescendantItems.changes.subscribe(oe=>{var V;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(V=r.activeItem)&&void 0!==V&&V._hasFocus()){const s=oe.toArray(),f=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[f]&&!s[f].disabled?r.setActiveItem(f):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,A.w)(V=>(0,y.T)(...V.map(r=>r._hovered))))}addItem(oe){}removeItem(oe){}_handleKeydown(oe){const V=oe.keyCode,r=this._keyManager;switch(V){case _.hY:(0,_.Vb)(oe)||(oe.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(V===_.LH||V===_.JH)&&r.setFocusOrigin("keyboard"),void r.onKeydown(oe)}oe.stopPropagation()}focusFirstItem(oe="program"){this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{let V=null;if(this._directDescendantItems.length&&(V=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!V||!V.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(oe).setFirstItemActive(),!r.activeItem&&V&&V.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(oe){const V=Math.min(this._baseElevation+oe,24),r=`${this._elevationPrefix}${V}`,s=Object.keys(this._classList).find(f=>f.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(oe=this.xPosition,V=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===oe,s["mat-menu-after"]="after"===oe,s["mat-menu-above"]="above"===V,s["mat-menu-below"]="below"===V,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(oe){this._animationDone.next(oe),this._isAnimating=!1}_onAnimationStart(oe){this._isAnimating=!0,"enter"===oe.toState&&0===this._keyManager.activeItemIndex&&(oe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,U.O)(this._allItems)).subscribe(oe=>{this._directDescendantItems.reset(oe.filter(V=>V._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ct.\u0275fac=function(oe){return new(oe||ct)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(_e),w.Y36(w.sBO))},ct.\u0275dir=w.lG2({type:ct,contentQueries:function(oe,V,r){if(1&oe&&(w.Suo(r,Ce,5),w.Suo(r,G,5),w.Suo(r,G,4)),2&oe){let s;w.iGM(s=w.CRH())&&(V.lazyContent=s.first),w.iGM(s=w.CRH())&&(V._allItems=s),w.iGM(s=w.CRH())&&(V.items=s)}},viewQuery:function(oe,V){if(1&oe&&w.Gf(w.Rgc,5),2&oe){let r;w.iGM(r=w.CRH())&&(V.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"}}),ct})(),vt=(()=>{class ct extends Xe{constructor(oe,V,r,s){super(oe,V,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ct.\u0275fac=function(oe){return new(oe||ct)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(_e),w.Y36(w.sBO))},ct.\u0275cmp=w.Xpm({type:ct,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(oe,V){2&oe&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:F,useExisting:ct}]),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(oe,V){1&oe&&(w.F$t(),w.YNc(0,Ee,3,6,"ng-template"))},dependencies:[fe.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[De.transformMenu,De.fadeInItems]},changeDetection:0}),ct})();const rt=new w.OlP("mat-menu-scroll-strategy"),W={provide:rt,deps:[v.aV],useFactory:function ht(ct){return()=>ct.scrollStrategies.reposition()}},ie=(0,O.i$)({passive:!0});let ae=(()=>{class ct{constructor(oe,V,r,s,f,l,a,n,t){this._overlay=oe,this._element=V,this._viewContainerRef=r,this._menuItemInstance=l,this._dir=a,this._focusMonitor=n,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=i=>{(0,e.yG)(i)||(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=s,this._parentMaterialMenu=f instanceof Xe?f:void 0,V.nativeElement.addEventListener("touchstart",this._handleTouchStart,ie),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(oe){this.menu=oe}get menu(){return this._menu}set menu(oe){oe!==this._menu&&(this._menu=oe,this._menuCloseSubscription.unsubscribe(),oe&&(this._menuCloseSubscription=oe.close.subscribe(V=>{this._destroyMenu(V),("click"===V||"tab"===V)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(V)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ie),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const oe=this.menu;if(this._menuOpen||!oe)return;const V=this._createOverlay(oe),r=V.getConfig(),s=r.positionStrategy;this._setPosition(oe,s),r.hasBackdrop=oe.hasBackdrop??!this.triggersSubmenu(),V.attach(this._getPortal(oe)),oe.lazyContent&&oe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(oe),oe instanceof Xe&&(oe._startAnimation(),oe._directDescendantItems.changes.pipe((0,z.R)(oe.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){var oe;null===(oe=this.menu)||void 0===oe||oe.close.emit()}focus(oe,V){this._focusMonitor&&oe?this._focusMonitor.focusVia(this._element,oe,V):this._element.nativeElement.focus(V)}updatePosition(){var oe;null===(oe=this._overlayRef)||void 0===oe||oe.updatePosition()}_destroyMenu(oe){if(!this._overlayRef||!this.menuOpen)return;const V=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===oe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,V instanceof Xe?(V._resetAnimation(),V.lazyContent?V._animationDone.pipe((0,Q.h)(s=>"void"===s.toState),(0,N.q)(1),(0,z.R)(V.lazyContent._attached)).subscribe({next:()=>V.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==V||null===(r=V.lazyContent)||void 0===r||r.detach())}_initMenu(oe){oe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,oe.direction=this.dir,this._setMenuElevation(oe),oe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(oe){if(oe.setElevation){let V=0,r=oe.parentMenu;for(;r;)V++,r=r.parentMenu;oe.setElevation(V)}}_setIsMenuOpen(oe){this._menuOpen=oe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(oe)}_createOverlay(oe){if(!this._overlayRef){const V=this._getOverlayConfig(oe);this._subscribeToPositions(oe,V.positionStrategy),this._overlayRef=this._overlay.create(V),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(oe){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:oe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:oe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(oe,V){oe.setPositionClasses&&V.positionChanges.subscribe(r=>{const s="start"===r.connectionPair.overlayX?"after":"before",f="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>oe.setPositionClasses(s,f)):oe.setPositionClasses(s,f)})}_setPosition(oe,V){let[r,s]="before"===oe.xPosition?["end","start"]:["start","end"],[f,l]="above"===oe.yPosition?["bottom","top"]:["top","bottom"],[a,n]=[f,l],[t,i]=[r,s],o=0;if(this.triggersSubmenu()){if(i=r="before"===oe.xPosition?"start":"end",s=t="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const c=this._parentMaterialMenu.items.first;this._parentInnerPadding=c?c._getHostElement().offsetTop:0}o="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding}}else oe.overlapTrigger||(a="top"===f?"bottom":"top",n="top"===l?"bottom":"top");V.withPositions([{originX:r,originY:a,overlayX:t,overlayY:f,offsetY:o},{originX:s,originY:a,overlayX:i,overlayY:f,offsetY:o},{originX:r,originY:n,overlayX:t,overlayY:l,offsetY:-o},{originX:s,originY:n,overlayX:i,overlayY:l,offsetY:-o}])}_menuClosingActions(){const oe=this._overlayRef.backdropClick(),V=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,E.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Q.h)(f=>f!==this._menuItemInstance),(0,Q.h)(()=>this._menuOpen)):(0,E.of)();return(0,y.T)(oe,r,s,V)}_handleMousedown(oe){(0,e.X6)(oe)||(this._openedBy=0===oe.button?"mouse":void 0,this.triggersSubmenu()&&oe.preventDefault())}_handleKeydown(oe){const V=oe.keyCode;(V===_.K5||V===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(V===_.SV&&"ltr"===this.dir||V===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(oe){this.triggersSubmenu()?(oe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Q.h)(oe=>oe===this._menuItemInstance&&!oe.disabled),(0,ne.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,N.q)(1),(0,ne.g)(0,S.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(oe){return(!this._portal||this._portal.templateRef!==oe.templateRef)&&(this._portal=new ee.UE(oe.templateRef,this._viewContainerRef)),this._portal}}return ct.\u0275fac=function(oe){return new(oe||ct)(w.Y36(v.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(rt),w.Y36(F,8),w.Y36(G,10),w.Y36(ve.Is,8),w.Y36(e.tE),w.Y36(w.R0b))},ct.\u0275dir=w.lG2({type:ct,hostVars:3,hostBindings:function(oe,V){1&oe&&w.NdJ("click",function(s){return V._handleClick(s)})("mousedown",function(s){return V._handleMousedown(s)})("keydown",function(s){return V._handleKeydown(s)}),2&oe&&w.uIk("aria-haspopup",V.menu?"menu":null)("aria-expanded",V.menuOpen||null)("aria-controls",V.menuOpen?V.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"}}),ct})(),Ze=(()=>{class ct extends ae{}return ct.\u0275fac=function(){let ze;return function(V){return(ze||(ze=w.n5z(ct)))(V||ct)}}(),ct.\u0275dir=w.lG2({type:ct,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),ct})(),Je=(()=>{class ct{}return ct.\u0275fac=function(oe){return new(oe||ct)},ct.\u0275mod=w.oAB({type:ct}),ct.\u0275inj=w.cJS({providers:[W],imports:[fe.ez,ce.BQ,ce.si,v.U8,H.ZD,ce.BQ]}),ct})()},98739:(We,pe,h)=>{"use strict";h.d(pe,{NW:()=>Y,TU:()=>q,ye:()=>he});var e=h(36895),d=h(94650),_=h(3238),w=h(4859),g=h(84385),b=h(10266),y=h(21281),E=h(77579),S=h(59549);function U(ue,Ee){if(1&ue&&(d.TgZ(0,"mat-option",19),d._uU(1),d.qZA()),2&ue){const De=Ee.$implicit;d.Q6J("value",De),d.xp6(1),d.hij(" ",De," ")}}function A(ue,Ee){if(1&ue){const De=d.EpF();d.TgZ(0,"mat-form-field",16)(1,"mat-select",17),d.NdJ("selectionChange",function(Ge){d.CHM(De);const Ce=d.oxw(2);return d.KtG(Ce._changePageSize(Ge.value))}),d.YNc(2,U,2,2,"mat-option",18),d.qZA()()}if(2&ue){const De=d.oxw(2);d.Q6J("appearance",De._formFieldAppearance)("color",De.color),d.xp6(1),d.Q6J("value",De.pageSize)("disabled",De.disabled)("panelClass",De.selectConfig.panelClass||"")("disableOptionCentering",De.selectConfig.disableOptionCentering)("aria-label",De._intl.itemsPerPageLabel),d.xp6(1),d.Q6J("ngForOf",De._displayedPageSizeOptions)}}function N(ue,Ee){if(1&ue&&(d.TgZ(0,"div",20),d._uU(1),d.qZA()),2&ue){const De=d.oxw(2);d.xp6(1),d.Oqu(De.pageSize)}}function z(ue,Ee){if(1&ue&&(d.TgZ(0,"div",12)(1,"div",13),d._uU(2),d.qZA(),d.YNc(3,A,3,8,"mat-form-field",14),d.YNc(4,N,2,1,"div",15),d.qZA()),2&ue){const De=d.oxw();d.xp6(2),d.hij(" ",De._intl.itemsPerPageLabel," "),d.xp6(1),d.Q6J("ngIf",De._displayedPageSizeOptions.length>1),d.xp6(1),d.Q6J("ngIf",De._displayedPageSizeOptions.length<=1)}}function Q(ue,Ee){if(1&ue){const De=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){d.CHM(De);const Ge=d.oxw();return d.KtG(Ge.firstPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",22),d.qZA()()}if(2&ue){const De=d.oxw();d.Q6J("matTooltip",De._intl.firstPageLabel)("matTooltipDisabled",De._previousButtonsDisabled())("matTooltipPosition","above")("disabled",De._previousButtonsDisabled()),d.uIk("aria-label",De._intl.firstPageLabel)}}function ne(ue,Ee){if(1&ue){const De=d.EpF();d.O4$(),d.kcU(),d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(De);const Ge=d.oxw();return d.KtG(Ge.lastPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",24),d.qZA()()}if(2&ue){const De=d.oxw();d.Q6J("matTooltip",De._intl.lastPageLabel)("matTooltipDisabled",De._nextButtonsDisabled())("matTooltipPosition","above")("disabled",De._nextButtonsDisabled()),d.uIk("aria-label",De._intl.lastPageLabel)}}let he=(()=>{class ue{constructor(){this.changes=new E.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(De,Se,Ge)=>{if(0==Ge||0==Se)return`0 of ${Ge}`;const Ce=De*Se;return`${Ce+1} \u2013 ${Ce<(Ge=Math.max(Ge,0))?Math.min(Ce+Se,Ge):Ce+Se} of ${Ge}`}}}return ue.\u0275fac=function(De){return new(De||ue)},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const fe={provide:he,deps:[[new d.FiY,new d.tp0,he]],useFactory:function ee(ue){return ue||new he}},v=new d.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),O=(0,_.Id)((0,_.dB)(class{}));let H=(()=>{class ue extends O{constructor(De,Se,Ge){if(super(),this._intl=De,this._changeDetectorRef=Se,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new d.vpe,this._intlChanges=De.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Ge){const{pageSize:Ce,pageSizeOptions:qe,hidePageSize:Pe,showFirstLastButtons:we}=Ge;null!=Ce&&(this._pageSize=Ce),null!=qe&&(this._pageSizeOptions=qe),null!=Pe&&(this._hidePageSize=Pe),null!=we&&(this._showFirstLastButtons=we)}}get pageIndex(){return this._pageIndex}set pageIndex(De){this._pageIndex=Math.max((0,y.su)(De),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(De){this._length=(0,y.su)(De),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(De){this._pageSize=Math.max((0,y.su)(De),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(De){this._pageSizeOptions=(De||[]).map(Se=>(0,y.su)(Se)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(De){this._hidePageSize=(0,y.Ig)(De)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(De){this._showFirstLastButtons=(0,y.Ig)(De)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const De=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(De)}previousPage(){if(!this.hasPreviousPage())return;const De=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(De)}firstPage(){if(!this.hasPreviousPage())return;const De=this.pageIndex;this.pageIndex=0,this._emitPageEvent(De)}lastPage(){if(!this.hasNextPage())return;const De=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(De)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const De=this.getNumberOfPages()-1;return this.pageIndexDe-Se),this._changeDetectorRef.markForCheck())}_emitPageEvent(De){this.page.emit({previousPageIndex:De,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ue.\u0275fac=function(De){d.$Z()},ue.\u0275dir=d.lG2({type:ue,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[d.qOj]}),ue})(),Y=(()=>{class ue extends H{constructor(De,Se,Ge){super(De,Se,Ge),Ge&&null!=Ge.formFieldAppearance&&(this._formFieldAppearance=Ge.formFieldAppearance)}}return ue.\u0275fac=function(De){return new(De||ue)(d.Y36(he),d.Y36(d.sBO),d.Y36(v,8))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[d.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(De,Se){1&De&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,z,5,3,"div",2),d.TgZ(3,"div",3)(4,"div",4),d._uU(5),d.qZA(),d.YNc(6,Q,3,5,"button",5),d.TgZ(7,"button",6),d.NdJ("click",function(){return Se.previousPage()}),d.O4$(),d.TgZ(8,"svg",7),d._UZ(9,"path",8),d.qZA()(),d.kcU(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Se.nextPage()}),d.O4$(),d.TgZ(11,"svg",7),d._UZ(12,"path",10),d.qZA()(),d.YNc(13,ne,3,5,"button",11),d.qZA()()()),2&De&&(d.xp6(2),d.Q6J("ngIf",!Se.hidePageSize),d.xp6(3),d.hij(" ",Se._intl.getRangeLabel(Se.pageIndex,Se.pageSize,Se.length)," "),d.xp6(1),d.Q6J("ngIf",Se.showFirstLastButtons),d.xp6(1),d.Q6J("matTooltip",Se._intl.previousPageLabel)("matTooltipDisabled",Se._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Se._previousButtonsDisabled()),d.uIk("aria-label",Se._intl.previousPageLabel),d.xp6(3),d.Q6J("matTooltip",Se._intl.nextPageLabel)("matTooltipDisabled",Se._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Se._nextButtonsDisabled()),d.uIk("aria-label",Se._intl.nextPageLabel),d.xp6(3),d.Q6J("ngIf",Se.showFirstLastButtons))},dependencies:[e.sg,e.O5,w.lW,S.KE,g.gD,_.ey,b.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ue})(),q=(()=>{class ue{}return ue.\u0275fac=function(De){return new(De||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({providers:[fe],imports:[e.ez,w.ot,g.LD,b.AV,_.BQ]}),ue})()},73162:(We,pe,h)=>{"use strict";h.d(pe,{Cv:()=>N});var e=h(94650),d=h(36895),_=h(3238);let N=(()=>{class z{}return z.\u0275fac=function(ne){return new(ne||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[d.ez,_.BQ,_.BQ]}),z})()},51572:(We,pe,h)=>{"use strict";h.d(pe,{Cq:()=>ee,Ou:()=>he});var e=h(21281),d=h(83353),_=h(67376),w=h(36895),g=h(94650),b=h(3238),y=h(50727);function E(ce,ve){if(1&ce&&(g.O4$(),g._UZ(0,"circle",4)),2&ce){const v=g.oxw(),O=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+v._spinnerAnimationLabel)("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(O)),g.uIk("r",v._getCircleRadius())}}function S(ce,ve){if(1&ce&&(g.O4$(),g._UZ(0,"circle",4)),2&ce){const v=g.oxw(),O=g.MAs(1);g.Udp("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(O)),g.uIk("r",v._getCircleRadius())}}const N=(0,b.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),z=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Q(){return{diameter:100}}});class he extends N{constructor(ve,v,O,H,Y,q,ue,Ee){super(ve),this._document=O,this._diameter=100,this._value=0,this._resizeSubscription=y.w0.EMPTY,this.mode="determinate";const De=he._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),De.has(O.head)||De.set(O.head,new Set([100])),this._noopAnimations="NoopAnimations"===H&&!!Y&&!Y._forceAnimations,"mat-spinner"===ve.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Y&&(Y.color&&(this.color=this.defaultColor=Y.color),Y.diameter&&(this.diameter=Y.diameter),Y.strokeWidth&&(this.strokeWidth=Y.strokeWidth)),v.isBrowser&&v.SAFARI&&ue&&q&&Ee&&(this._resizeSubscription=ue.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ee.run(()=>q.markForCheck())}))}get diameter(){return this._diameter}set diameter(ve){this._diameter=(0,e.su)(ve),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ve){this._strokeWidth=(0,e.su)(ve)}get value(){return"determinate"===this.mode?this._value:0}set value(ve){this._value=Math.max(0,Math.min(100,(0,e.su)(ve)))}ngOnInit(){const ve=this._elementRef.nativeElement;this._styleRoot=(0,d.kV)(ve)||this._document.head,this._attachStyleNode(),ve.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ve=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ve} ${ve}`}_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(ve){var v;const O=50*(null!==(v=ve.currentScale)&&void 0!==v?v:1);return`${O}% ${O}%`}_attachStyleNode(){const ve=this._styleRoot,v=this._diameter,O=he._diameters;let H=O.get(ve);if(!H||!H.has(v)){const Y=this._document.createElement("style");Y.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Y.textContent=this._getAnimationText(),ve.appendChild(Y),H||(H=new Set,O.set(ve,H)),H.add(v)}}_getAnimationText(){const ve=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*ve).replace(/END_VALUE/g,""+.2*ve).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}he._diameters=new WeakMap,he.\u0275fac=function(ve){return new(ve||he)(g.Y36(g.SBq),g.Y36(d.t4),g.Y36(w.K0,8),g.Y36(g.QbO,8),g.Y36(z),g.Y36(g.sBO),g.Y36(_.rL),g.Y36(g.R0b))},he.\u0275cmp=g.Xpm({type:he,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ve,v){2&ve&&(g.uIk("aria-valuemin","determinate"===v.mode?0:null)("aria-valuemax","determinate"===v.mode?100:null)("aria-valuenow","determinate"===v.mode?v.value:null)("mode",v.mode),g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.ekj("_mat-animation-noopable",v._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(ve,v){1&ve&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,E,1,11,"circle",2),g.YNc(3,S,1,9,"circle",3),g.qZA()),2&ve&&(g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===v.mode),g.uIk("viewBox",v._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ee=(()=>{class ce{}return ce.\u0275fac=function(v){return new(v||ce)},ce.\u0275mod=g.oAB({type:ce}),ce.\u0275inj=g.cJS({imports:[b.BQ,w.ez,b.BQ]}),ce})()},71948:(We,pe,h)=>{"use strict";h.d(pe,{Fk:()=>O,U0:()=>v,VQ:()=>ee});var e=h(94650),d=h(3238),_=h(12687),w=h(21281),g=h(95017),b=h(24006);const y=["input"],E=function(H){return{enterDuration:H}},S=["*"],U=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let N=0;const z={provide:b.JU,useExisting:(0,e.Gpc)(()=>ee),multi:!0};class Q{constructor(Y,q){this.source=Y,this.value=q}}const ne=new e.OlP("MatRadioGroup");let he=(()=>{class H{constructor(q){this._changeDetector=q,this._value=null,this._name="mat-radio-group-"+N++,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(q){this._name=q,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(q){this._labelPosition="before"===q?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(q){this._selected=q,this.value=q?q.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q),this._markRadiosForCheck()}get required(){return this._required}set required(q){this._required=(0,w.Ig)(q),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(q=>{q.name=this.name,q._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ue=>{ue.checked=this.value===ue.value,ue.checked&&(this._selected=ue)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Q(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(q=>q._markForCheck())}writeValue(q){this.value=q,this._changeDetector.markForCheck()}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this.onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetector.markForCheck()}}return H.\u0275fac=function(q){return new(q||H)(e.Y36(e.sBO))},H.\u0275dir=e.lG2({type:H,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),H})(),ee=(()=>{class H extends he{}return H.\u0275fac=function(){let Y;return function(ue){return(Y||(Y=e.n5z(H)))(ue||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["mat-radio-group"]],contentQueries:function(q,ue,Ee){if(1&q&&e.Suo(Ee,v,5),2&q){let De;e.iGM(De=e.CRH())&&(ue._radios=De)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([z,{provide:ne,useExisting:H}]),e.qOj]}),H})();class fe{constructor(Y){this._elementRef=Y}}const ce=(0,d.Kr)((0,d.sb)(fe));let ve=(()=>{class H extends ce{constructor(q,ue,Ee,De,Se,Ge,Ce,qe){super(ue),this._changeDetector=Ee,this._focusMonitor=De,this._radioDispatcher=Se,this._providerOverride=Ce,this._uniqueId="mat-radio-"+ ++N,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=q,this._noopAnimations="NoopAnimations"===Ge,qe&&(this.tabIndex=(0,w.su)(qe,0)),this._removeUniqueSelectionListener=Se.listen((Pe,we)=>{Pe!==this.id&&we===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(q){const ue=(0,w.Ig)(q);this._checked!==ue&&(this._checked=ue,ue&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ue&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ue&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===q),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(q){this._labelPosition=q}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(q){this._setDisabled((0,w.Ig)(q))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(q){this._required=(0,w.Ig)(q)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(q){this._color=q}get inputId(){return`${this.id||this._uniqueId}-input`}focus(q,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,q):this._inputElement.nativeElement.focus(q)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{!q&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Q(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(q){q.stopPropagation()}_onInputInteraction(q){if(q.stopPropagation(),!this.checked&&!this.disabled){const ue=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ue&&this.radioGroup._emitChangeEvent())}}_setDisabled(q){this._disabled!==q&&(this._disabled=q,this._changeDetector.markForCheck())}_updateTabIndex(){const q=this.radioGroup;let ue;if(ue=q&&q.selected&&!this.disabled?q.selected===this?this.tabIndex:-1:this.tabIndex,ue!==this._previousTabIndex){var Ee;const De=null===(Ee=this._inputElement)||void 0===Ee?void 0:Ee.nativeElement;De&&(De.setAttribute("tabindex",ue+""),this._previousTabIndex=ue)}}}return H.\u0275fac=function(q){e.$Z()},H.\u0275dir=e.lG2({type:H,viewQuery:function(q,ue){if(1&q&&e.Gf(y,5),2&q){let Ee;e.iGM(Ee=e.CRH())&&(ue._inputElement=Ee.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),H})(),v=(()=>{class H extends ve{constructor(q,ue,Ee,De,Se,Ge,Ce,qe){super(q,ue,Ee,De,Se,Ge,Ce,qe)}}return H.\u0275fac=function(q){return new(q||H)(e.Y36(ne,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(_.tE),e.Y36(g.A8),e.Y36(e.QbO,8),e.Y36(U,8),e.$8M("tabindex"))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(q,ue){1&q&&e.NdJ("focus",function(){return ue._inputElement.nativeElement.focus()}),2&q&&(e.uIk("tabindex",null)("id",ue.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",ue.checked)("mat-radio-disabled",ue.disabled)("_mat-animation-noopable",ue._noopAnimations)("mat-primary","primary"===ue.color)("mat-accent","accent"===ue.color)("mat-warn","warn"===ue.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:S,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(q,ue){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(De){return ue._onInputInteraction(De)})("click",function(De){return ue._onInputClick(De)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&q){const Ee=e.MAs(1);e.uIk("for",ue.inputId),e.xp6(5),e.Q6J("id",ue.inputId)("checked",ue.checked)("disabled",ue.disabled)("required",ue.required),e.uIk("name",ue.name)("value",ue.value)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Ee)("matRippleDisabled",ue._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,E,ue._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==ue.labelPosition)}},dependencies:[d.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),H})(),O=(()=>{class H{}return H.\u0275fac=function(q){return new(q||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[d.si,d.BQ,d.BQ]}),H})()},84385:(We,pe,h)=>{"use strict";h.d(pe,{$L:()=>Ze,LD:()=>ze,gD:()=>ct});var e=h(98184),d=h(36895),_=h(94650),w=h(3238),g=h(59549),b=h(67376),y=h(12687),E=h(40445),S=h(21281),U=h(95017),A=h(29521),N=h(24006),z=h(77579),Q=h(49770),ne=h(56451),he=h(68675),ee=h(63900),fe=h(95698),ce=h(39300),ve=h(54004),v=h(71884),O=h(82722),H=h(37340);const Y=["trigger"],q=["panel"];function ue(oe,V){if(1&oe&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&oe){const r=_.oxw();_.xp6(1),_.Oqu(r.placeholder)}}function Ee(oe,V){if(1&oe&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&oe){const r=_.oxw(2);_.xp6(1),_.Oqu(r.triggerValue)}}function De(oe,V){1&oe&&_.Hsn(0,0,["*ngSwitchCase","true"])}function Se(oe,V){if(1&oe&&(_.TgZ(0,"span",9),_.YNc(1,Ee,2,1,"span",10),_.YNc(2,De,1,0,"ng-content",11),_.qZA()),2&oe){const r=_.oxw();_.Q6J("ngSwitch",!!r.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function Ge(oe,V){if(1&oe){const r=_.EpF();_.TgZ(0,"div",13)(1,"div",14,15),_.NdJ("@transformPanel.done",function(f){_.CHM(r);const l=_.oxw();return _.KtG(l._panelDoneAnimatingStream.next(f.toState))})("keydown",function(f){_.CHM(r);const l=_.oxw();return _.KtG(l._handleKeydown(f))}),_.Hsn(3,1),_.qZA()()}if(2&oe){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 Ce=[[["mat-select-trigger"]],"*"],qe=["mat-select-trigger","*"],Pe={transformPanelWrap:(0,H.X$)("transformPanelWrap",[(0,H.eR)("* => void",(0,H.IO)("@transformPanel",[(0,H.pV)()],{optional:!0}))]),transformPanel:(0,H.X$)("transformPanel",[(0,H.SB)("void",(0,H.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,H.SB)("showing",(0,H.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,H.SB)("showing-multiple",(0,H.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,H.eR)("void => *",(0,H.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,H.eR)("* => void",(0,H.jt)("100ms 25ms linear",(0,H.oB)({opacity:0})))])};let F=0;const vt=new _.OlP("mat-select-scroll-strategy"),ht=new _.OlP("MAT_SELECT_CONFIG"),W={provide:vt,deps:[e.aV],useFactory:function rt(oe){return()=>oe.scrollStrategies.reposition()}};class le{constructor(V,r){this.source=V,this.value=r}}const ie=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(oe,V,r,s,f){this._elementRef=oe,this._defaultErrorStateMatcher=V,this._parentForm=r,this._parentFormGroup=s,this.ngControl=f,this.stateChanges=new z.x}})))),ae=new _.OlP("MatSelectTrigger");let Ze=(()=>{class oe{}return oe.\u0275fac=function(r){return new(r||oe)},oe.\u0275dir=_.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:ae,useExisting:oe}])]}),oe})(),Je=(()=>{class oe extends ie{constructor(r,s,f,l,a,n,t,i,o,c,p,M,Me,it){var Dt,Zt,Et;super(a,l,t,i,c),this._viewportRuler=r,this._changeDetectorRef=s,this._ngZone=f,this._dir=n,this._parentFormField=o,this._liveAnnouncer=Me,this._defaultOptions=it,this._panelOpen=!1,this._compareWith=(pt,je)=>pt===je,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new z.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new z.x,this._overlayPanelClass=(null===(Dt=this._defaultOptions)||void 0===Dt?void 0:Dt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Zt=null===(Et=this._defaultOptions)||void 0===Et?void 0:Et.disableOptionCentering)&&void 0!==Zt&&Zt,this.ariaLabel="",this.optionSelectionChanges=(0,Q.P)(()=>{const pt=this.options;return pt?pt.changes.pipe((0,he.O)(pt),(0,ee.w)(()=>(0,ne.T)(...pt.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,fe.q)(1),(0,ee.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,ce.h)(pt=>pt),(0,ve.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ce.h)(pt=>!pt),(0,ve.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=it?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=it.typeaheadDebounceInterval),this._scrollStrategyFactory=M,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(r){this._placeholder=r,this.stateChanges.next()}get required(){var r,s,f,l;return null!==(r=null!==(s=this._required)&&void 0!==s?s:null===(f=this.ngControl)||void 0===f||null===(l=f.control)||void 0===l?void 0:l.hasValidator(N.kI.required))&&void 0!==r&&r}set required(r){this._required=(0,S.Ig)(r),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(r){this._multiple=(0,S.Ig)(r)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(r){this._disableOptionCentering=(0,S.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){this._assignValue(r)&&this._onChange(r)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(r){this._typeaheadDebounceInterval=(0,S.su)(r)}get id(){return this._id}set id(r){this._id=r||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new U.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,v.x)(),(0,O.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,O.R)(this._destroy)).subscribe(r=>{r.added.forEach(s=>s.select()),r.removed.forEach(s=>s.deselect())}),this.options.changes.pipe((0,he.O)(null),(0,O.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const r=this._getTriggerAriaLabelledby(),s=this.ngControl;if(r!==this._triggerAriaLabelledBy){const f=this._elementRef.nativeElement;this._triggerAriaLabelledBy=r,r?f.setAttribute("aria-labelledby",r):f.removeAttribute("aria-labelledby")}s&&(this._previousControl!==s.control&&(void 0!==this._previousControl&&null!==s.disabled&&s.disabled!==this.disabled&&(this.disabled=s.disabled),this._previousControl=s.control),this.updateErrorState())}ngOnChanges(r){(r.disabled||r.userAriaDescribedBy)&&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._assignValue(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,s;return this.multiple?(null===(r=this._selectionModel)||void 0===r?void 0:r.selected)||[]:null===(s=this._selectionModel)||void 0===s?void 0:s.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const r=this._selectionModel.selected.map(s=>s.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 s=r.keyCode,f=s===A.JH||s===A.LH||s===A.oh||s===A.SV,l=s===A.K5||s===A.L_,a=this._keyManager;if(!a.isTyping()&&l&&!(0,A.Vb)(r)||(this.multiple||r.altKey)&&f)r.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;a.onKeydown(r);const t=this.selected;t&&n!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(r){const s=this._keyManager,f=r.keyCode,l=f===A.JH||f===A.LH,a=s.isTyping();if(l&&r.altKey)r.preventDefault(),this.close();else if(a||f!==A.K5&&f!==A.L_||!s.activeItem||(0,A.Vb)(r))if(!a&&this._multiple&&f===A.A&&r.ctrlKey){r.preventDefault();const n=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(n?t.select():t.deselect())})}else{const n=s.activeItemIndex;s.onKeydown(r),this._multiple&&l&&r.shiftKey&&s.activeItem&&s.activeItemIndex!==n&&s.activeItem._selectViaInteraction()}else r.preventDefault(),s.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,fe.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(s=>s.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&r)Array.isArray(r),r.forEach(s=>this._selectOptionByValue(s)),this._sortValues();else{const s=this._selectOptionByValue(r);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(r){const s=this.options.find(f=>{if(this._selectionModel.isSelected(f))return!1;try{return null!=f.value&&this._compareWith(f.value,r)}catch{return!1}});return s&&this._selectionModel.select(s),s}_assignValue(r){return!!(r!==this._value||this._multiple&&Array.isArray(r))&&(this.options&&this._setSelectionByValue(r),this._value=r,!0)}_initKeyManager(){this._keyManager=new y.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,O.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,O.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,ne.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,O.R)(r)).subscribe(s=>{this._onSelect(s.source,s.isUserInput),s.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ne.T)(...this.options.map(s=>s._stateChanges)).pipe((0,O.R)(r)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(r,s){const f=this._selectionModel.isSelected(r);null!=r.value||this._multiple?(f!==r.selected&&(r.selected?this._selectionModel.select(r):this._selectionModel.deselect(r)),s&&this._keyManager.setActiveItem(r),this.multiple&&(this._sortValues(),s&&this.focus())):(r.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(r.value)),f!==this._selectionModel.isSelected(r)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const r=this.options.toArray();this._selectionModel.sort((s,f)=>this.sortComparator?this.sortComparator(s,f,r):r.indexOf(s)-r.indexOf(f)),this.stateChanges.next()}}_propagateChanges(r){let s=null;s=this.multiple?this.selected.map(f=>f.value):this.selected?this.selected.value:r,this._value=s,this.valueChange.emit(s),this._onChange(s),this.selectionChange.emit(this._getChangeEvent(s)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var 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 s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();return this.ariaLabelledby?(s?s+" ":"")+this.ariaLabelledby:s}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var r;if(this.ariaLabel)return null;const s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();let f=(s?s+" ":"")+this._valueId;return this.ariaLabelledby&&(f+=" "+this.ariaLabelledby),f}_panelDoneAnimating(r){this.openedChange.emit(r)}setDescribedByIds(r){r.length?this._elementRef.nativeElement.setAttribute("aria-describedby",r.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(r){return new(r||oe)(_.Y36(b.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(w.rD),_.Y36(_.SBq),_.Y36(E.Is,8),_.Y36(N.F,8),_.Y36(N.sg,8),_.Y36(g.G_,8),_.Y36(N.a5,10),_.$8M("tabindex"),_.Y36(vt),_.Y36(y.Kd),_.Y36(ht,8))},oe.\u0275dir=_.lG2({type:oe,viewQuery:function(r,s){if(1&r&&(_.Gf(Y,5),_.Gf(q,5),_.Gf(e.pI,5)),2&r){let f;_.iGM(f=_.CRH())&&(s.trigger=f.first),_.iGM(f=_.CRH())&&(s.panel=f.first),_.iGM(f=_.CRH())&&(s._overlayDir=f.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.qOj,_.TTD]}),oe})(),ct=(()=>{class oe extends Je{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,s,f){const l=this._getItemHeight();return Math.min(Math.max(0,l*r-s+l/2),f)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,O.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,fe.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(r){const s=(0,w.CB)(r,this.options,this.optionGroups),f=this._getItemHeight();this.panel.nativeElement.scrollTop=0===r&&1===s?0:(0,w.jH)((r+s)*f,f,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 le(this,r)}_calculateOverlayOffsetX(){const r=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),s=this._viewportRuler.getViewportSize(),f=this._isRtl(),l=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let i=this._selectionModel.selected[0]||this.options.first;a=i&&i.group?32:16}f||(a*=-1);const n=0-(r.left+a-(f?l:0)),t=r.right+a-s.width+(f?0:l);n>0?a+=n+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(r,s,f){const l=this._getItemHeight(),a=(l-this._triggerRect.height)/2,n=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?r*l:this._scrollTop===f?(r-(this._getItemCount()-n))*l+(l-(this._getItemCount()*l-256)%l):s-l/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(r){const s=this._getItemHeight(),f=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,a=f.height-this._triggerRect.bottom-8,n=Math.abs(this._offsetY),i=Math.min(this._getItemCount()*s,256)-n-this._triggerRect.height;i>a?this._adjustPanelUp(i,a):n>l?this._adjustPanelDown(n,l,r):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(r,s){const f=Math.round(r-s);this._scrollTop-=f,this._offsetY-=f,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(r,s,f){const l=Math.round(r-s);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=f)return this._scrollTop=f,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const r=this._getItemHeight(),s=this._getItemCount(),f=Math.min(s*r,256),a=s*r-f;let n;n=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),n+=(0,w.CB)(n,this.options,this.optionGroups);const t=f/2;this._scrollTop=this._calculateOverlayScroll(n,t,a),this._offsetY=this._calculateOverlayOffsetY(n,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-s+r/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return oe.\u0275fac=function(){let V;return function(s){return(V||(V=_.n5z(oe)))(s||oe)}}(),oe.\u0275cmp=_.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(r,s,f){if(1&r&&(_.Suo(f,ae,5),_.Suo(f,w.ey,5),_.Suo(f,w.K7,5)),2&r){let l;_.iGM(l=_.CRH())&&(s.customTrigger=l.first),_.iGM(l=_.CRH())&&(s.options=l),_.iGM(l=_.CRH())&&(s.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(r,s){1&r&&_.NdJ("keydown",function(l){return s._handleKeydown(l)})("focus",function(){return s._onFocus()})("blur",function(){return s._onBlur()}),2&r&&(_.uIk("id",s.id)("tabindex",s.tabIndex)("aria-controls",s.panelOpen?s.id+"-panel":null)("aria-expanded",s.panelOpen)("aria-label",s.ariaLabel||null)("aria-required",s.required.toString())("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState)("aria-activedescendant",s._getAriaActiveDescendant()),_.ekj("mat-select-disabled",s.disabled)("mat-select-invalid",s.errorState)("mat-select-required",s.required)("mat-select-empty",s.empty)("mat-select-multiple",s.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:g.Eo,useExisting:oe},{provide:w.HF,useExisting:oe}]),_.qOj],ngContentSelectors:qe,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,s){if(1&r&&(_.F$t(Ce),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return s.toggle()}),_.TgZ(3,"div",2),_.YNc(4,ue,2,1,"span",3),_.YNc(5,Se,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA()(),_.YNc(8,Ge,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return s.close()})("attach",function(){return s._onAttached()})("detach",function(){return s.close()})),2&r){const f=_.MAs(1);_.uIk("aria-owns",s.panelOpen?s.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",s.empty),_.uIk("id",s._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",s._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",s._scrollStrategy)("cdkConnectedOverlayOrigin",f)("cdkConnectedOverlayOpen",s.panelOpen)("cdkConnectedOverlayPositions",s._positions)("cdkConnectedOverlayMinWidth",null==s._triggerRect?null:s._triggerRect.width)("cdkConnectedOverlayOffsetY",s._offsetY)}},dependencies:[d.mk,d.RF,d.n9,d.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Pe.transformPanelWrap,Pe.transformPanel]},changeDetection:0}),oe})(),ze=(()=>{class oe{}return oe.\u0275fac=function(r){return new(r||oe)},oe.\u0275mod=_.oAB({type:oe}),oe.\u0275inj=_.cJS({providers:[W],imports:[d.ez,e.U8,w.Ng,w.BQ,b.ZD,g.lN,w.Ng,w.BQ]}),oe})()},23267:(We,pe,h)=>{"use strict";h.d(pe,{JX:()=>et,Rh:()=>Te,SJ:()=>vt,TM:()=>Xe});var e=h(67376),d=h(36895),_=h(94650),w=h(3238),g=h(12687),b=h(40445),y=h(21281),E=h(29521),S=h(83353),U=h(77579),A=h(54968),N=h(56451),z=h(39300),Q=h(54004),ne=h(69718),he=h(82722),ee=h(71884),fe=h(95698),ce=h(68675),ve=h(78372),v=h(37340);const O=["*"],H=["content"];function Y(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(W);const ie=_.oxw();return _.KtG(ie._onBackdropClicked())}),_.qZA()}if(2&rt){const W=_.oxw();_.ekj("mat-drawer-shown",W._isShowingBackdrop())}}function q(rt,ht){1&rt&&(_.TgZ(0,"mat-drawer-content"),_.Hsn(1,2),_.qZA())}const ue=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ee=["mat-drawer","mat-drawer-content","*"];function De(rt,ht){if(1&rt){const W=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(W);const ie=_.oxw();return _.KtG(ie._onBackdropClicked())}),_.qZA()}if(2&rt){const W=_.oxw();_.ekj("mat-drawer-shown",W._isShowingBackdrop())}}function Se(rt,ht){1&rt&&(_.TgZ(0,"mat-sidenav-content"),_.Hsn(1,2),_.qZA())}const Ge=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ce=["mat-sidenav","mat-sidenav-content","*"],Pe={transformDrawer:(0,v.X$)("transform",[(0,v.SB)("open, open-instant",(0,v.oB)({transform:"none",visibility:"visible"})),(0,v.SB)("void",(0,v.oB)({"box-shadow":"none",visibility:"hidden"})),(0,v.eR)("void => open-instant",(0,v.jt)("0ms")),(0,v.eR)("void <=> open, open-instant => void",(0,v.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new _.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function F(){return!1}}),I=new _.OlP("MAT_DRAWER_CONTAINER");let ge=(()=>{class rt extends e.PQ{constructor(W,le,ie,ae,Ze){super(ie,ae,Ze),this._changeDetectorRef=W,this._container=le}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return rt.\u0275fac=function(W){return new(W||rt)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>_e)),_.Y36(_.SBq),_.Y36(e.mF),_.Y36(_.R0b))},rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(W,le){2&W&&_.Udp("margin-left",le._container._contentMargins.left,"px")("margin-right",le._container._contentMargins.right,"px")},features:[_._Bn([{provide:e.PQ,useExisting:rt}]),_.qOj],ngContentSelectors:O,decls:1,vars:0,template:function(W,le){1&W&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),rt})(),G=(()=>{class rt{constructor(W,le,ie,ae,Ze,Je,ct,ze){this._elementRef=W,this._focusTrapFactory=le,this._focusMonitor=ie,this._platform=ae,this._ngZone=Ze,this._interactivityChecker=Je,this._doc=ct,this._container=ze,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.x,this._animationEnd=new U.x,this._animationState="void",this.openedChange=new _.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(oe=>oe),(0,Q.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(oe=>oe.fromState!==oe.toState&&0===oe.toState.indexOf("open")),(0,ne.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(oe=>!oe),(0,Q.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(oe=>oe.fromState!==oe.toState&&"void"===oe.toState),(0,ne.h)(void 0)),this._destroyed=new U.x,this.onPositionChanged=new _.vpe,this._modeChanged=new U.x,this.openedChange.subscribe(oe=>{oe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,A.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(oe=>oe.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(oe)),(0,he.R)(this._destroyed)).subscribe(oe=>this._ngZone.run(()=>{this.close(),oe.stopPropagation(),oe.preventDefault()}))}),this._animationEnd.pipe((0,ee.x)((oe,V)=>oe.fromState===V.fromState&&oe.toState===V.toState)).subscribe(oe=>{const{fromState:V,toState:r}=oe;(0===r.indexOf("open")&&"void"===V||"void"===r&&0===V.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(W){(W="end"===W?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(W),this._position=W,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(W){this._mode=W,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(W){this._disableClose=(0,y.Ig)(W)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(W){("true"===W||"false"===W||null==W)&&(W=(0,y.Ig)(W)),this._autoFocus=W}get opened(){return this._opened}set opened(W){this.toggle((0,y.Ig)(W))}_forceFocus(W,le){this._interactivityChecker.isFocusable(W)||(W.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ie=()=>{W.removeEventListener("blur",ie),W.removeEventListener("mousedown",ie),W.removeAttribute("tabindex")};W.addEventListener("blur",ie),W.addEventListener("mousedown",ie)})),W.focus(le)}_focusByCssSelector(W,le){let ie=this._elementRef.nativeElement.querySelector(W);ie&&this._forceFocus(ie,le)}_takeFocus(){if(!this._focusTrap)return;const W=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(le=>{!le&&"function"==typeof this._elementRef.nativeElement.focus&&W.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(W){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,W):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const W=this._doc.activeElement;return!!W&&this._elementRef.nativeElement.contains(W)}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 W;this._focusTrap&&this._focusTrap.destroy(),null===(W=this._anchor)||void 0===W||W.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(W){return this.toggle(!0,W)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(W=!this.opened,le){W&&le&&(this._openedVia=le);const ie=this._setOpen(W,!W&&this._isFocusWithinDrawer(),this._openedVia||"program");return W||(this._openedVia=null),ie}_setOpen(W,le,ie){return this._opened=W,W?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",le&&this._restoreFocus(ie)),this._updateFocusTrapState(),new Promise(ae=>{this.openedChange.pipe((0,fe.q)(1)).subscribe(Ze=>ae(Ze?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(W){const le=this._elementRef.nativeElement,ie=le.parentNode;"end"===W?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ie.insertBefore(this._anchor,le)),ie.appendChild(le)):this._anchor&&this._anchor.parentNode.insertBefore(le,this._anchor)}}return rt.\u0275fac=function(W){return new(W||rt)(_.Y36(_.SBq),_.Y36(g.qV),_.Y36(g.tE),_.Y36(S.t4),_.Y36(_.R0b),_.Y36(g.ic),_.Y36(d.K0,8),_.Y36(I,8))},rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-drawer"]],viewQuery:function(W,le){if(1&W&&_.Gf(H,5),2&W){let ie;_.iGM(ie=_.CRH())&&(le._content=ie.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(W,le){1&W&&_.WFA("@transform.start",function(ae){return le._animationStarted.next(ae)})("@transform.done",function(ae){return le._animationEnd.next(ae)}),2&W&&(_.uIk("align",null),_.d8E("@transform",le._animationState),_.ekj("mat-drawer-end","end"===le.position)("mat-drawer-over","over"===le.mode)("mat-drawer-push","push"===le.mode)("mat-drawer-side","side"===le.mode)("mat-drawer-opened",le.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:O,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(W,le){1&W&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Pe.transformDrawer]},changeDetection:0}),rt})(),_e=(()=>{class rt{constructor(W,le,ie,ae,Ze,Je=!1,ct){this._dir=W,this._element=le,this._ngZone=ie,this._changeDetectorRef=ae,this._animationMode=ct,this._drawers=new _.n_E,this.backdropClick=new _.vpe,this._destroyed=new U.x,this._doCheckSubject=new U.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.x,W&&W.change.pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ze.change().pipe((0,he.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(W){this._autosize=(0,y.Ig)(W)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(W){this._backdropOverride=null==W?null:(0,y.Ig)(W)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ce.O)(this._allDrawers),(0,he.R)(this._destroyed)).subscribe(W=>{this._drawers.reset(W.filter(le=>!le._container||le._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ce.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(W=>{this._watchDrawerToggle(W),this._watchDrawerPosition(W),this._watchDrawerMode(W)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ve.b)(10),(0,he.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(W=>W.open())}close(){this._drawers.forEach(W=>W.close())}updateContentMargins(){let W=0,le=0;if(this._left&&this._left.opened)if("side"==this._left.mode)W+=this._left._getWidth();else if("push"==this._left.mode){const ie=this._left._getWidth();W+=ie,le-=ie}if(this._right&&this._right.opened)if("side"==this._right.mode)le+=this._right._getWidth();else if("push"==this._right.mode){const ie=this._right._getWidth();le+=ie,W-=ie}W=W||null,le=le||null,(W!==this._contentMargins.left||le!==this._contentMargins.right)&&(this._contentMargins={left:W,right:le},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(W){W._animationStarted.pipe((0,z.h)(le=>le.fromState!==le.toState),(0,he.R)(this._drawers.changes)).subscribe(le=>{"open-instant"!==le.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==W.mode&&W.openedChange.pipe((0,he.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(W.opened))}_watchDrawerPosition(W){!W||W.onPositionChanged.pipe((0,he.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,fe.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(W){W&&W._modeChanged.pipe((0,he.R)((0,N.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(W){const le=this._element.nativeElement.classList,ie="mat-drawer-container-has-open";W?le.add(ie):le.remove(ie)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(W=>{"end"==W.position?this._end=W:this._start=W}),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(W=>W&&!W.disableClose&&this._canHaveBackdrop(W)).forEach(W=>W._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(W){return"side"!==W.mode||!!this._backdropOverride}_isDrawerOpen(W){return null!=W&&W.opened}}return rt.\u0275fac=function(W){return new(W||rt)(_.Y36(b.Is,8),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(e.rL),_.Y36(j),_.Y36(_.QbO,8))},rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-drawer-container"]],contentQueries:function(W,le,ie){if(1&W&&(_.Suo(ie,ge,5),_.Suo(ie,G,5)),2&W){let ae;_.iGM(ae=_.CRH())&&(le._content=ae.first),_.iGM(ae=_.CRH())&&(le._allDrawers=ae)}},viewQuery:function(W,le){if(1&W&&_.Gf(ge,5),2&W){let ie;_.iGM(ie=_.CRH())&&(le._userContent=ie.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(W,le){2&W&&_.ekj("mat-drawer-container-explicit-backdrop",le._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[_._Bn([{provide:I,useExisting:rt}])],ngContentSelectors:Ee,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(W,le){1&W&&(_.F$t(ue),_.YNc(0,Y,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,q,2,0,"mat-drawer-content",1)),2&W&&(_.Q6J("ngIf",le.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!le._content))},dependencies:[d.O5,ge],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),rt})(),Te=(()=>{class rt extends ge{constructor(W,le,ie,ae,Ze){super(W,le,ie,ae,Ze)}}return rt.\u0275fac=function(W){return new(W||rt)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>Xe)),_.Y36(_.SBq),_.Y36(e.mF),_.Y36(_.R0b))},rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(W,le){2&W&&_.Udp("margin-left",le._container._contentMargins.left,"px")("margin-right",le._container._contentMargins.right,"px")},features:[_._Bn([{provide:e.PQ,useExisting:rt}]),_.qOj],ngContentSelectors:O,decls:1,vars:0,template:function(W,le){1&W&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),rt})(),et=(()=>{class rt extends G{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(W){this._fixedInViewport=(0,y.Ig)(W)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(W){this._fixedTopGap=(0,y.su)(W)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(W){this._fixedBottomGap=(0,y.su)(W)}}return rt.\u0275fac=function(){let ht;return function(le){return(ht||(ht=_.n5z(rt)))(le||rt)}}(),rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(W,le){2&W&&(_.uIk("align",null),_.Udp("top",le.fixedInViewport?le.fixedTopGap:null,"px")("bottom",le.fixedInViewport?le.fixedBottomGap:null,"px"),_.ekj("mat-drawer-end","end"===le.position)("mat-drawer-over","over"===le.mode)("mat-drawer-push","push"===le.mode)("mat-drawer-side","side"===le.mode)("mat-drawer-opened",le.opened)("mat-sidenav-fixed",le.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[_.qOj],ngContentSelectors:O,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(W,le){1&W&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Pe.transformDrawer]},changeDetection:0}),rt})(),Xe=(()=>{class rt extends _e{}return rt.\u0275fac=function(){let ht;return function(le){return(ht||(ht=_.n5z(rt)))(le||rt)}}(),rt.\u0275cmp=_.Xpm({type:rt,selectors:[["mat-sidenav-container"]],contentQueries:function(W,le,ie){if(1&W&&(_.Suo(ie,Te,5),_.Suo(ie,et,5)),2&W){let ae;_.iGM(ae=_.CRH())&&(le._content=ae.first),_.iGM(ae=_.CRH())&&(le._allDrawers=ae)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(W,le){2&W&&_.ekj("mat-drawer-container-explicit-backdrop",le._backdropOverride)},exportAs:["matSidenavContainer"],features:[_._Bn([{provide:I,useExisting:rt}]),_.qOj],ngContentSelectors:Ce,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(W,le){1&W&&(_.F$t(Ge),_.YNc(0,De,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,Se,2,0,"mat-sidenav-content",1)),2&W&&(_.Q6J("ngIf",le.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!le._content))},dependencies:[d.O5,Te],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),rt})(),vt=(()=>{class rt{}return rt.\u0275fac=function(W){return new(W||rt)},rt.\u0275mod=_.oAB({type:rt}),rt.\u0275inj=_.cJS({imports:[d.ez,w.BQ,e.ZD,e.ZD,w.BQ]}),rt})()},90455:(We,pe,h)=>{"use strict";h.d(pe,{Rr:()=>he,rP:()=>ve});var e=h(49643),d=h(94650),_=h(3238),w=h(12687),g=h(21281),b=h(24006);const y=["input"],E=function(v){return{enterDuration:v}},S=["*"],U=new d.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let A=0;const N={provide:b.JU,useExisting:(0,d.Gpc)(()=>he),multi:!0};class z{constructor(O,H){this.source=O,this.checked=H}}const Q=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(v){this._elementRef=v}}))));let ne=(()=>{class v extends Q{constructor(H,Y,q,ue,Ee,De,Se){super(H),this._focusMonitor=Y,this._changeDetectorRef=q,this.defaults=Ee,this._onChange=Ge=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new d.vpe,this.toggleChange=new d.vpe,this.tabIndex=parseInt(ue)||0,this.color=this.defaultColor=Ee.color||"accent",this._noopAnimations="NoopAnimations"===De,this.id=this._uniqueId=`${Se}${++A}`}get required(){return this._required}set required(H){this._required=(0,g.Ig)(H)}get checked(){return this._checked}set checked(H){this._checked=(0,g.Ig)(H),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(H=>{"keyboard"===H||"program"===H?this._focused=!0:H||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(H){this.checked=!!H}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return v.\u0275fac=function(H){d.$Z()},v.\u0275dir=d.lG2({type:v,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[d.qOj]}),v})(),he=(()=>{class v extends ne{constructor(H,Y,q,ue,Ee,De){super(H,Y,q,ue,Ee,De,"mat-slide-toggle-")}_createChangeEvent(H){return new z(this,H)}_onChangeEvent(H){H.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(H){H.stopPropagation()}focus(H,Y){Y?this._focusMonitor.focusVia(this._inputElement,Y,H):this._inputElement.nativeElement.focus(H)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return v.\u0275fac=function(H){return new(H||v)(d.Y36(d.SBq),d.Y36(w.tE),d.Y36(d.sBO),d.$8M("tabindex"),d.Y36(U),d.Y36(d.QbO,8))},v.\u0275cmp=d.Xpm({type:v,selectors:[["mat-slide-toggle"]],viewQuery:function(H,Y){if(1&H&&d.Gf(y,5),2&H){let q;d.iGM(q=d.CRH())&&(Y._inputElement=q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(H,Y){2&H&&(d.Ikx("id",Y.id),d.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),d.ekj("mat-checked",Y.checked)("mat-disabled",Y.disabled)("mat-slide-toggle-label-before","before"==Y.labelPosition)("_mat-animation-noopable",Y._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[d._Bn([N]),d.qOj],ngContentSelectors:S,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(H,Y){if(1&H&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),d.NdJ("change",function(ue){return Y._onChangeEvent(ue)})("click",function(ue){return Y._onInputClick(ue)}),d.qZA(),d.TgZ(5,"span",5),d._UZ(6,"span",6),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()()(),d.TgZ(9,"span",9,10),d.NdJ("cdkObserveContent",function(){return Y._onLabelTextChange()}),d.TgZ(11,"span",11),d._uU(12,"\xa0"),d.qZA(),d.Hsn(13),d.qZA()()),2&H){const q=d.MAs(1),ue=d.MAs(10);d.uIk("for",Y.inputId),d.xp6(2),d.ekj("mat-slide-toggle-bar-no-side-margin",!ue.textContent||!ue.textContent.trim()),d.xp6(1),d.Q6J("id",Y.inputId)("required",Y.required)("tabIndex",Y.tabIndex)("checked",Y.checked)("disabled",Y.disabled),d.uIk("name",Y.name)("aria-checked",Y.checked)("aria-label",Y.ariaLabel)("aria-labelledby",Y.ariaLabelledby)("aria-describedby",Y.ariaDescribedby),d.xp6(4),d.Q6J("matRippleTrigger",q)("matRippleDisabled",Y.disableRipple||Y.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(18,E,Y._noopAnimations?0:150))}},dependencies:[_.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),v})(),ce=(()=>{class v{}return v.\u0275fac=function(H){return new(H||v)},v.\u0275mod=d.oAB({type:v}),v.\u0275inj=d.cJS({}),v})(),ve=(()=>{class v{}return v.\u0275fac=function(H){return new(H||v)},v.\u0275mod=d.oAB({type:v}),v.\u0275inj=d.cJS({imports:[ce,_.si,_.BQ,e.Q8,ce,_.BQ]}),v})()},17009:(We,pe,h)=>{"use strict";h.d(pe,{ZX:()=>fe});var e=h(98184),d=h(84080),_=h(36895),w=h(94650),g=h(3238),b=h(4859);h(37340);let fe=(()=>{class H{}return H.\u0275fac=function(q){return new(q||H)},H.\u0275mod=w.oAB({type:H}),H.\u0275inj=w.cJS({imports:[e.U8,d.eL,_.ez,b.ot,g.BQ,g.BQ]}),H})()},96308:(We,pe,h)=>{"use strict";h.d(pe,{JX:()=>De,YE:()=>ce,nU:()=>Ee});var e=h(94650),d=h(12687),_=h(21281),w=h(29521),g=h(3238),b=h(77579),y=h(56451),E=h(37340),S=h(36895);const U=["mat-sort-header",""];function A(Se,Ge){if(1&Se){const Ce=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(Ce);const Pe=e.oxw();return e.KtG(Pe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(Ce);const Pe=e.oxw();return e.KtG(Pe._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&Se){const Ce=e.oxw();e.Q6J("@arrowOpacity",Ce._getArrowViewState())("@arrowPosition",Ce._getArrowViewState())("@allowChildren",Ce._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",Ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",Ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",Ce._getArrowDirectionState())}}const N=["*"],ee=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),fe=(0,g.dB)((0,g.Id)(class{}));let ce=(()=>{class Se extends fe{constructor(Ce){super(),this._defaultOptions=Ce,this.sortables=new Map,this._stateChanges=new b.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(Ce){this._direction=Ce}get disableClear(){return this._disableClear}set disableClear(Ce){this._disableClear=(0,_.Ig)(Ce)}register(Ce){this.sortables.set(Ce.id,Ce)}deregister(Ce){this.sortables.delete(Ce.id)}sort(Ce){this.active!=Ce.id?(this.active=Ce.id,this.direction=Ce.start?Ce.start:this.start):this.direction=this.getNextSortDirection(Ce),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Ce){var qe,Pe,we;if(!Ce)return"";const j=null!==(qe=null!==(Pe=Ce?.disableClear)&&void 0!==Pe?Pe:this.disableClear)&&void 0!==qe?qe:!(null===(we=this._defaultOptions)||void 0===we||!we.disableClear);let I=function ve(Se,Ge){let Ce=["asc","desc"];return"desc"==Se&&Ce.reverse(),Ge||Ce.push(""),Ce}(Ce.start||this.start,j),F=I.indexOf(this.direction)+1;return F>=I.length&&(F=0),I[F]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(e.Y36(ee,8))},Se.\u0275dir=e.lG2({type:Se,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]}),Se})();const v=g.mZ.ENTERING+" "+g.yN.STANDARD_CURVE,O={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)(v))]),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)(v))]),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)(v))]),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)(v))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(v,(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)(v,(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)(v,(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)(v,(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 H=(()=>{class Se{constructor(){this.changes=new b.x}}return Se.\u0275fac=function(Ce){return new(Ce||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const q={provide:H,deps:[[new e.FiY,new e.tp0,H]],useFactory:function Y(Se){return Se||new H}},ue=(0,g.Id)(class{});let Ee=(()=>{class Se extends ue{constructor(Ce,qe,Pe,we,j,I,F,ge){super(),this._intl=Ce,this._changeDetectorRef=qe,this._sort=Pe,this._columnDef=we,this._focusMonitor=j,this._elementRef=I,this._ariaDescriber=F,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=ge&&ge.arrowPosition&&(this.arrowPosition=ge?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Ce){this._updateSortActionDescription(Ce)}get disableClear(){return this._disableClear}set disableClear(Ce){this._disableClear=(0,_.Ig)(Ce)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ce=>{const qe=!!Ce;qe!==this._showIndicatorHint&&(this._setIndicatorHintVisible(qe),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Ce){this._isDisabled()&&Ce||(this._showIndicatorHint=Ce,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Ce){this._viewState=Ce||{},this._disableViewStateAnimation&&(this._viewState={toState:Ce.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(Ce){!this._isDisabled()&&(Ce.keyCode===w.L_||Ce.keyCode===w.K5)&&(Ce.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 Ce=this._viewState.fromState;return(Ce?`${Ce}-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(Ce){var qe,Pe;this._sortButton&&(null===(qe=this._ariaDescriber)||void 0===qe||qe.removeDescription(this._sortButton,this._sortActionDescription),null===(Pe=this._ariaDescriber)||void 0===Pe||Pe.describe(this._sortButton,Ce)),this._sortActionDescription=Ce}_handleStateChanges(){this._rerenderSubscription=(0,y.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 Se.\u0275fac=function(Ce){return new(Ce||Se)(e.Y36(H),e.Y36(e.sBO),e.Y36(ce,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(d.tE),e.Y36(e.SBq),e.Y36(d.$s,8),e.Y36(ee,8))},Se.\u0275cmp=e.Xpm({type:Se,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Ce,qe){1&Ce&&e.NdJ("click",function(){return qe._handleClick()})("keydown",function(we){return qe._handleKeydown(we)})("mouseenter",function(){return qe._setIndicatorHintVisible(!0)})("mouseleave",function(){return qe._setIndicatorHintVisible(!1)}),2&Ce&&(e.uIk("aria-sort",qe._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",qe._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:U,ngContentSelectors:N,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Ce,qe){1&Ce&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,A,6,6,"div",2),e.qZA()),2&Ce&&(e.ekj("mat-sort-header-sorted",qe._isSorted())("mat-sort-header-position-before","before"===qe.arrowPosition),e.uIk("tabindex",qe._isDisabled()?null:0)("role",qe._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",qe._renderArrow()))},dependencies:[S.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[O.indicator,O.leftPointer,O.rightPointer,O.arrowOpacity,O.arrowPosition,O.allowChildren]},changeDetection:0}),Se})(),De=(()=>{class Se{}return Se.\u0275fac=function(Ce){return new(Ce||Se)},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:[q],imports:[S.ez,g.BQ]}),Se})()},86257:(We,pe,h)=>{"use strict";h.d(pe,{C0:()=>M,BY:()=>p,VY:()=>r,Vq:()=>Me,T5:()=>Zt,fd:()=>Dt});var e=h(84080),d=h(12687),_=h(40445),w=h(21281),g=h(29521),b=h(94650),y=h(83353),E=h(77579),S=h(39646),U=h(68675),A=h(82722);function N(Et,pt){1&Et&&b.Hsn(0)}const z=["*"];let Q=(()=>{class Et{constructor(je){this._elementRef=je}focus(){this._elementRef.nativeElement.focus()}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(b.SBq))},Et.\u0275dir=b.lG2({type:Et,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Et})(),ne=(()=>{class Et{constructor(je){this.template=je}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(b.Rgc))},Et.\u0275dir=b.lG2({type:Et,selectors:[["","cdkStepLabel",""]]}),Et})(),he=0;const ce=new b.OlP("STEPPER_GLOBAL_OPTIONS");let ve=(()=>{class Et{constructor(je,Oe){this._stepper=je,this.interacted=!1,this.interactedStream=new b.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Oe||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(je){this._editable=(0,w.Ig)(je)}get optional(){return this._optional}set optional(je){this._optional=(0,w.Ig)(je)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(je){this._completedOverride=(0,w.Ig)(je)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(je){this._customError=(0,w.Ig)(je)}_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 je;return null!==(je=this._stepperOptions.showError)&&void 0!==je?je:null!=this._customError}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36((0,b.Gpc)(()=>v)),b.Y36(ce,8))},Et.\u0275cmp=b.Xpm({type:Et,selectors:[["cdk-step"]],contentQueries:function(je,Oe,Qe){if(1&je&&b.Suo(Qe,ne,5),2&je){let ye;b.iGM(ye=b.CRH())&&(Oe.stepLabel=ye.first)}},viewQuery:function(je,Oe){if(1&je&&b.Gf(b.Rgc,7),2&je){let Qe;b.iGM(Qe=b.CRH())&&(Oe.content=Qe.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[b.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(je,Oe){1&je&&(b.F$t(),b.YNc(0,N,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Et})(),v=(()=>{class Et{constructor(je,Oe,Qe){this._dir=je,this._changeDetectorRef=Oe,this._elementRef=Qe,this._destroyed=new E.x,this.steps=new b.n_E,this._sortedHeaders=new b.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new b.vpe,this._orientation="horizontal",this._groupId=he++}get linear(){return this._linear}set linear(je){this._linear=(0,w.Ig)(je)}get selectedIndex(){return this._selectedIndex}set selectedIndex(je){const Oe=(0,w.su)(je);var Qe;this.steps&&this._steps?(this._isValidIndex(Oe),null===(Qe=this.selected)||void 0===Qe||Qe._markAsInteracted(),this._selectedIndex!==Oe&&!this._anyControlsInvalidOrPending(Oe)&&(Oe>=this._selectedIndex||this.steps.toArray()[Oe].editable)&&this._updateSelectedItemIndex(Oe)):this._selectedIndex=Oe}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(je){this.selectedIndex=je&&this.steps?this.steps.toArray().indexOf(je):-1}get orientation(){return this._orientation}set orientation(je){this._orientation=je,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===je)}ngAfterContentInit(){this._steps.changes.pipe((0,U.O)(this._steps),(0,A.R)(this._destroyed)).subscribe(je=>{this.steps.reset(je.filter(Oe=>Oe._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,U.O)(this._stepHeader),(0,A.R)(this._destroyed)).subscribe(je=>{this._sortedHeaders.reset(je.toArray().sort((Oe,Qe)=>Oe._elementRef.nativeElement.compareDocumentPosition(Qe._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,S.of)()).pipe((0,U.O)(this._layoutDirection()),(0,A.R)(this._destroyed)).subscribe(je=>this._keyManager.withHorizontalOrientation(je)),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(je=>je.reset()),this._stateChanged()}_getStepLabelId(je){return`cdk-step-label-${this._groupId}-${je}`}_getStepContentId(je){return`cdk-step-content-${this._groupId}-${je}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(je){const Oe=je-this._selectedIndex;return Oe<0?"rtl"===this._layoutDirection()?"next":"previous":Oe>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(je,Oe="number"){const Qe=this.steps.toArray()[je],ye=this._isCurrentStep(je);return Qe._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qe,ye):this._getGuidelineLogic(Qe,ye,Oe)}_getDefaultIndicatorLogic(je,Oe){return je._showError()&&je.hasError&&!Oe?"error":!je.completed||Oe?"number":je.editable?"edit":"done"}_getGuidelineLogic(je,Oe,Qe="number"){return je._showError()&&je.hasError&&!Oe?"error":je.completed&&!Oe?"done":je.completed&&Oe?Qe:je.editable&&Oe?"edit":Qe}_isCurrentStep(je){return this._selectedIndex===je}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(je){const Oe=this.steps.toArray();this.selectionChange.emit({selectedIndex:je,previouslySelectedIndex:this._selectedIndex,selectedStep:Oe[je],previouslySelectedStep:Oe[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(je):this._keyManager.updateActiveItem(je),this._selectedIndex=je,this._stateChanged()}_onKeydown(je){const Oe=(0,g.Vb)(je),Qe=je.keyCode,ye=this._keyManager;null==ye.activeItemIndex||Oe||Qe!==g.L_&&Qe!==g.K5?ye.onKeydown(je):(this.selectedIndex=ye.activeItemIndex,je.preventDefault())}_anyControlsInvalidOrPending(je){return!!(this._linear&&je>=0)&&this.steps.toArray().slice(0,je).some(Oe=>{const Qe=Oe.stepControl;return(Qe?Qe.invalid||Qe.pending||!Oe.interacted:!Oe.completed)&&!Oe.optional&&!Oe._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const je=this._elementRef.nativeElement,Oe=(0,y.ht)();return je===Oe||je.contains(Oe)}_isValidIndex(je){return je>-1&&(!this.steps||je{class Et{constructor(je){this._stepper=je,this.type="button"}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(v))},Et.\u0275dir=b.lG2({type:Et,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(je,Oe){1&je&&b.NdJ("click",function(){return Oe._stepper.previous()}),2&je&&b.Ikx("type",Oe.type)},inputs:{type:"type"}}),Et})(),Y=(()=>{class Et{}return Et.\u0275fac=function(je){return new(je||Et)},Et.\u0275mod=b.oAB({type:Et}),Et.\u0275inj=b.cJS({imports:[_.vT]}),Et})();var q=h(36895),ue=h(4859),Ee=h(3238),De=h(97392),Se=h(50727),Ge=h(63900),Ce=h(54004),qe=h(71884),Pe=h(37340);function we(Et,pt){if(1&Et&&b.GkF(0,8),2&Et){const je=b.oxw();b.Q6J("ngTemplateOutlet",je.iconOverrides[je.state])("ngTemplateOutletContext",je._getIconContext())}}function j(Et,pt){if(1&Et&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&Et){const je=b.oxw(2);b.xp6(1),b.Oqu(je._getDefaultTextForState(je.state))}}function I(Et,pt){if(1&Et&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&Et){const je=b.oxw(2);b.xp6(1),b.Oqu(je._intl.completedLabel)}}function F(Et,pt){if(1&Et&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&Et){const je=b.oxw(2);b.xp6(1),b.Oqu(je._intl.editableLabel)}}function ge(Et,pt){if(1&Et&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&Et){const je=b.oxw(2);b.xp6(1),b.Oqu(je._getDefaultTextForState(je.state))}}function G(Et,pt){if(1&Et&&(b.ynx(0,9),b.YNc(1,j,2,1,"span",10),b.YNc(2,I,2,1,"span",11),b.YNc(3,F,2,1,"span",11),b.YNc(4,ge,2,1,"mat-icon",12),b.BQk()),2&Et){const je=b.oxw();b.Q6J("ngSwitch",je.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===je.state),b.xp6(1),b.Q6J("ngIf","edit"===je.state)}}function _e(Et,pt){if(1&Et&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&Et){const je=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",je._templateLabel().template)}}function Te(Et,pt){if(1&Et&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&Et){const je=b.oxw();b.xp6(1),b.Oqu(je.label)}}function et(Et,pt){if(1&Et&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&Et){const je=b.oxw();b.xp6(1),b.Oqu(je._intl.optionalLabel)}}function Xe(Et,pt){if(1&Et&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&Et){const je=b.oxw();b.xp6(1),b.Oqu(je.errorMessage)}}function vt(Et,pt){}function rt(Et,pt){if(1&Et&&(b.Hsn(0),b.YNc(1,vt,0,0,"ng-template",0)),2&Et){const je=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",je._portal)}}const ht=["*"];function W(Et,pt){1&Et&&b._UZ(0,"div",11)}const le=function(Et,pt){return{step:Et,i:pt}};function ie(Et,pt){if(1&Et&&(b.ynx(0),b.GkF(1,9),b.YNc(2,W,1,0,"div",10),b.BQk()),2&Et){const je=pt.$implicit,Oe=pt.index,Qe=pt.last;b.oxw(2);const ye=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",ye)("ngTemplateOutletContext",b.WLB(3,le,je,Oe)),b.xp6(1),b.Q6J("ngIf",!Qe)}}const ae=function(Et){return{animationDuration:Et}},Ze=function(Et,pt){return{value:Et,params:pt}};function Je(Et,pt){if(1&Et){const je=b.EpF();b.TgZ(0,"div",12),b.NdJ("@horizontalStepTransition.done",function(Qe){b.CHM(je);const ye=b.oxw(2);return b.KtG(ye._animationDone.next(Qe))}),b.GkF(1,13),b.qZA()}if(2&Et){const je=pt.$implicit,Oe=pt.index,Qe=b.oxw(2);b.Q6J("@horizontalStepTransition",b.WLB(7,Ze,Qe._getAnimationDirection(Oe),b.VKq(5,ae,Qe._getAnimationDuration())))("id",Qe._getStepContentId(Oe)),b.uIk("aria-labelledby",Qe._getStepLabelId(Oe))("aria-expanded",Qe.selectedIndex===Oe),b.xp6(1),b.Q6J("ngTemplateOutlet",je.content)}}function ct(Et,pt){if(1&Et&&(b.TgZ(0,"div",4)(1,"div",5),b.YNc(2,ie,3,6,"ng-container",6),b.qZA(),b.TgZ(3,"div",7),b.YNc(4,Je,2,10,"div",8),b.qZA()()),2&Et){const je=b.oxw();b.xp6(2),b.Q6J("ngForOf",je.steps),b.xp6(2),b.Q6J("ngForOf",je.steps)}}function ze(Et,pt){if(1&Et){const je=b.EpF();b.TgZ(0,"div",15),b.GkF(1,9),b.TgZ(2,"div",16)(3,"div",17),b.NdJ("@verticalStepTransition.done",function(Qe){b.CHM(je);const ye=b.oxw(2);return b.KtG(ye._animationDone.next(Qe))}),b.TgZ(4,"div",18),b.GkF(5,13),b.qZA()()()()}if(2&Et){const je=pt.$implicit,Oe=pt.index,Qe=pt.last,ye=b.oxw(2),Ie=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Ie)("ngTemplateOutletContext",b.WLB(9,le,je,Oe)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!Qe),b.xp6(1),b.Q6J("@verticalStepTransition",b.WLB(14,Ze,ye._getAnimationDirection(Oe),b.VKq(12,ae,ye._getAnimationDuration())))("id",ye._getStepContentId(Oe)),b.uIk("aria-labelledby",ye._getStepLabelId(Oe))("aria-expanded",ye.selectedIndex===Oe),b.xp6(2),b.Q6J("ngTemplateOutlet",je.content)}}function oe(Et,pt){if(1&Et&&(b.ynx(0),b.YNc(1,ze,6,17,"div",14),b.BQk()),2&Et){const je=b.oxw();b.xp6(1),b.Q6J("ngForOf",je.steps)}}function V(Et,pt){if(1&Et){const je=b.EpF();b.TgZ(0,"mat-step-header",19),b.NdJ("click",function(){const ye=b.CHM(je).step;return b.KtG(ye.select())})("keydown",function(Qe){b.CHM(je);const ye=b.oxw();return b.KtG(ye._onKeydown(Qe))}),b.qZA()}if(2&Et){const je=pt.step,Oe=pt.i,Qe=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===Qe.orientation)("mat-vertical-stepper-header","vertical"===Qe.orientation),b.Q6J("tabIndex",Qe._getFocusIndex()===Oe?0:-1)("id",Qe._getStepLabelId(Oe))("index",Oe)("state",Qe._getIndicatorType(Oe,je.state))("label",je.stepLabel||je.label)("selected",Qe.selectedIndex===Oe)("active",Qe._stepIsNavigable(Oe,je))("optional",je.optional)("errorMessage",je.errorMessage)("iconOverrides",Qe._iconOverrides)("disableRipple",Qe.disableRipple||!Qe._stepIsNavigable(Oe,je))("color",je.color||Qe.color),b.uIk("aria-posinset",Oe+1)("aria-setsize",Qe.steps.length)("aria-controls",Qe._getStepContentId(Oe))("aria-selected",Qe.selectedIndex==Oe)("aria-label",je.ariaLabel||null)("aria-labelledby",!je.ariaLabel&&je.ariaLabelledby?je.ariaLabelledby:null)("aria-disabled",!Qe._stepIsNavigable(Oe,je)||null)}}let r=(()=>{class Et extends ne{}return Et.\u0275fac=function(){let pt;return function(Oe){return(pt||(pt=b.n5z(Et)))(Oe||Et)}}(),Et.\u0275dir=b.lG2({type:Et,selectors:[["","matStepLabel",""]],features:[b.qOj]}),Et})(),s=(()=>{class Et{constructor(){this.changes=new E.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Et.\u0275fac=function(je){return new(je||Et)},Et.\u0275prov=b.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const l={provide:s,deps:[[new b.FiY,new b.tp0,s]],useFactory:function f(Et){return Et||new s}},a=(0,Ee.pj)(class extends Q{constructor(pt){super(pt)}},"primary");let n=(()=>{class Et extends a{constructor(je,Oe,Qe,ye){super(Qe),this._intl=je,this._focusMonitor=Oe,this._intlSubscription=je.changes.subscribe(()=>ye.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(je,Oe){je?this._focusMonitor.focusVia(this._elementRef,je,Oe):this._elementRef.nativeElement.focus(Oe)}_stringLabel(){return this.label instanceof r?null:this.label}_templateLabel(){return this.label instanceof r?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(je){return"number"==je?`${this.index+1}`:"edit"==je?"create":"error"==je?"warning":je}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(s),b.Y36(d.tE),b.Y36(b.SBq),b.Y36(b.sBO))},Et.\u0275cmp=b.Xpm({type:Et,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(je,Oe){1&je&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,we,1,2,"ng-container",2),b.YNc(4,G,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,_e,2,1,"div",5),b.YNc(7,Te,2,1,"div",5),b.YNc(8,et,2,1,"div",6),b.YNc(9,Xe,2,1,"div",7),b.qZA()),2&je&&(b.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",Oe.state," mat-step-icon"),b.ekj("mat-step-icon-selected",Oe.selected),b.xp6(1),b.Q6J("ngSwitch",!(!Oe.iconOverrides||!Oe.iconOverrides[Oe.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",Oe.active)("mat-step-label-selected",Oe.selected)("mat-step-label-error","error"==Oe.state),b.xp6(1),b.Q6J("ngIf",Oe._templateLabel()),b.xp6(1),b.Q6J("ngIf",Oe._stringLabel()),b.xp6(1),b.Q6J("ngIf",Oe.optional&&"error"!=Oe.state),b.xp6(1),b.Q6J("ngIf","error"==Oe.state))},dependencies:[q.O5,q.tP,q.RF,q.n9,q.ED,De.Hw,Ee.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Et})();const t="500ms",i="225ms",o={horizontalStepTransition:(0,Pe.X$)("horizontalStepTransition",[(0,Pe.SB)("previous",(0,Pe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Pe.SB)("current",(0,Pe.oB)({transform:"none",visibility:"inherit"})),(0,Pe.SB)("next",(0,Pe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Pe.eR)("* => *",(0,Pe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,Pe.X$)("verticalStepTransition",[(0,Pe.SB)("previous",(0,Pe.oB)({height:"0px",visibility:"hidden"})),(0,Pe.SB)("next",(0,Pe.oB)({height:"0px",visibility:"hidden"})),(0,Pe.SB)("current",(0,Pe.oB)({height:"*",visibility:"inherit"})),(0,Pe.eR)("* <=> current",(0,Pe.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:i}})])};let c=(()=>{class Et{constructor(je){this.templateRef=je}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(b.Rgc))},Et.\u0275dir=b.lG2({type:Et,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Et})(),p=(()=>{class Et{constructor(je){this._template=je}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(b.Rgc))},Et.\u0275dir=b.lG2({type:Et,selectors:[["ng-template","matStepContent",""]]}),Et})(),M=(()=>{class Et extends ve{constructor(je,Oe,Qe,ye){super(je,ye),this._errorStateMatcher=Oe,this._viewContainerRef=Qe,this._isSelected=Se.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ge.w)(()=>this._stepper.selectionChange.pipe((0,Ce.U)(je=>je.selectedStep===this),(0,U.O)(this._stepper.selected===this)))).subscribe(je=>{je&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(je,Oe){return this._errorStateMatcher.isErrorState(je,Oe)||!!(je&&je.invalid&&this.interacted)}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36((0,b.Gpc)(()=>Me)),b.Y36(Ee.rD,4),b.Y36(b.s_b),b.Y36(ce,8))},Et.\u0275cmp=b.Xpm({type:Et,selectors:[["mat-step"]],contentQueries:function(je,Oe,Qe){if(1&je&&(b.Suo(Qe,r,5),b.Suo(Qe,p,5)),2&je){let ye;b.iGM(ye=b.CRH())&&(Oe.stepLabel=ye.first),b.iGM(ye=b.CRH())&&(Oe._lazyContent=ye.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:Ee.rD,useExisting:Et},{provide:ve,useExisting:Et}]),b.qOj],ngContentSelectors:ht,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(je,Oe){1&je&&(b.F$t(),b.YNc(0,rt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),Et})(),Me=(()=>{class Et extends v{constructor(je,Oe,Qe){super(je,Oe,Qe),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new E.x,this._animationDuration="";const ye=Qe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ye?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(je){this._animationDuration=/^\d+$/.test(je)?je+"ms":je}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:je,templateRef:Oe})=>this._iconOverrides[je]=Oe),this.steps.changes.pipe((0,A.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,qe.x)((je,Oe)=>je.fromState===Oe.fromState&&je.toState===Oe.toState),(0,A.R)(this._destroyed)).subscribe(je=>{"current"===je.toState&&this.animationDone.emit()})}_stepIsNavigable(je,Oe){return Oe.completed||this.selectedIndex===je||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:i}}return Et.\u0275fac=function(je){return new(je||Et)(b.Y36(_.Is,8),b.Y36(b.sBO),b.Y36(b.SBq))},Et.\u0275cmp=b.Xpm({type:Et,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(je,Oe,Qe){if(1&je&&(b.Suo(Qe,M,5),b.Suo(Qe,c,5)),2&je){let ye;b.iGM(ye=b.CRH())&&(Oe._steps=ye),b.iGM(ye=b.CRH())&&(Oe._icons=ye)}},viewQuery:function(je,Oe){if(1&je&&b.Gf(n,5),2&je){let Qe;b.iGM(Qe=b.CRH())&&(Oe._stepHeader=Qe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(je,Oe){2&je&&(b.uIk("aria-orientation",Oe.orientation),b.ekj("mat-stepper-horizontal","horizontal"===Oe.orientation)("mat-stepper-vertical","vertical"===Oe.orientation)("mat-stepper-label-position-end","horizontal"===Oe.orientation&&"end"==Oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Oe.orientation&&"bottom"==Oe.labelPosition)("mat-stepper-header-position-bottom","bottom"===Oe.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:v,useExisting:Et}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(je,Oe){1&je&&(b.ynx(0,0),b.YNc(1,ct,5,2,"div",1),b.YNc(2,oe,2,1,"ng-container",2),b.BQk(),b.YNc(3,V,1,23,"ng-template",null,3,b.W1O)),2&je&&(b.Q6J("ngSwitch",Oe.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},dependencies:[q.sg,q.O5,q.tP,q.RF,q.n9,n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[o.horizontalStepTransition,o.verticalStepTransition]},changeDetection:0}),Et})(),Dt=(()=>{class Et extends H{}return Et.\u0275fac=function(){let pt;return function(Oe){return(pt||(pt=b.n5z(Et)))(Oe||Et)}}(),Et.\u0275dir=b.lG2({type:Et,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(je,Oe){2&je&&b.Ikx("type",Oe.type)},inputs:{type:"type"},features:[b.qOj]}),Et})(),Zt=(()=>{class Et{}return Et.\u0275fac=function(je){return new(je||Et)},Et.\u0275mod=b.oAB({type:Et}),Et.\u0275inj=b.cJS({providers:[l,Ee.rD],imports:[Ee.BQ,q.ez,e.eL,ue.ot,Y,De.Ps,Ee.si,Ee.BQ]}),Et})()},30671:(We,pe,h)=>{"use strict";h.d(pe,{ev:()=>Vt,Dz:()=>Ve,w1:()=>Le,ge:()=>st,fO:()=>$e,XQ:()=>un,as:()=>rn,Gk:()=>It,nj:()=>nn,BZ:()=>de,by:()=>Wn,p0:()=>pn});var e=h(94650),d=h(40445),_=h(21281),w=h(95017),g=h(83353),b=h(67376),y=h(36895),E=h(77579),S=h(32076),U=h(61135),A=h(45191),N=h(39646),z=h(82722),Q=h(95698);const ne=[[["caption"]],[["colgroup"],["col"]]],he=["caption","colgroup, col"];function ce(_t){return class extends _t{constructor(...Ht){super(...Ht),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ht){const at=this._sticky;this._sticky=(0,_.Ig)(Ht),this._hasStickyChanged=at!==this._sticky}hasStickyChanged(){const Ht=this._hasStickyChanged;return this._hasStickyChanged=!1,Ht}resetStickyChanged(){this._hasStickyChanged=!1}}}const ve=new e.OlP("CDK_TABLE");let O=(()=>{class _t{constructor(at){this.template=at}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkCellDef",""]]}),_t})(),H=(()=>{class _t{constructor(at){this.template=at}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkHeaderCellDef",""]]}),_t})(),Y=(()=>{class _t{constructor(at){this.template=at}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkFooterCellDef",""]]}),_t})();class q{}const ue=ce(q);let Ee=(()=>{class _t extends ue{constructor(at){super(),this._table=at,this._stickyEnd=!1}get name(){return this._name}set name(at){this._setNameInput(at)}get stickyEnd(){return this._stickyEnd}set stickyEnd(at){const Ke=this._stickyEnd;this._stickyEnd=(0,_.Ig)(at),this._hasStickyChanged=Ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(at){at&&(this._name=at,this.cssClassFriendlyName=at.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkColumnDef",""]],contentQueries:function(at,Ke,bt){if(1&at&&(e.Suo(bt,O,5),e.Suo(bt,H,5),e.Suo(bt,Y,5)),2&at){let Z;e.iGM(Z=e.CRH())&&(Ke.cell=Z.first),e.iGM(Z=e.CRH())&&(Ke.headerCell=Z.first),e.iGM(Z=e.CRH())&&(Ke.footerCell=Z.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:_t}]),e.qOj]}),_t})();class De{constructor(Ht,at){at.nativeElement.classList.add(...Ht._columnCssClassName)}}let Se=(()=>{class _t extends De{constructor(at,Ke){super(at,Ke)}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(Ee),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),_t})(),Ce=(()=>{class _t extends De{constructor(at,Ke){var bt;if(super(at,Ke),1===(null===(bt=at._table)||void 0===bt?void 0:bt._elementRef.nativeElement.nodeType)){const Z=at._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===Z||"treegrid"===Z?"gridcell":"cell")}}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(Ee),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),_t})();class qe{constructor(){this.tasks=[],this.endTasks=[]}}const Pe=new e.OlP("_COALESCED_STYLE_SCHEDULER");let we=(()=>{class _t{constructor(at){this._ngZone=at,this._currentSchedule=null,this._destroyed=new E.x}schedule(at){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(at)}scheduleEnd(at){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(at)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new qe,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const at=this._currentSchedule;this._currentSchedule=new qe;for(const Ke of at.tasks)Ke();for(const Ke of at.endTasks)Ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,S.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Q.q)(1))}}return _t.\u0275fac=function(at){return new(at||_t)(e.LFG(e.R0b))},_t.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),I=(()=>{class _t{constructor(at,Ke){this.template=at,this._differs=Ke}ngOnChanges(at){if(!this._columnsDiffer){const Ke=at.columns&&at.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ke).create(),this._columnsDiffer.diff(Ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(at){return this instanceof G?at.headerCell.template:this instanceof et?at.footerCell.template:at.cell.template}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},_t.\u0275dir=e.lG2({type:_t,features:[e.TTD]}),_t})();class F extends I{}const ge=ce(F);let G=(()=>{class _t extends ge{constructor(at,Ke,bt){super(at,Ke),this._table=bt}ngOnChanges(at){super.ngOnChanges(at)}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),_t})();class _e extends I{}const Te=ce(_e);let et=(()=>{class _t extends Te{constructor(at,Ke,bt){super(at,Ke),this._table=bt}ngOnChanges(at){super.ngOnChanges(at)}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),_t})(),Xe=(()=>{class _t extends I{constructor(at,Ke,bt){super(at,Ke),this._table=bt}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),_t})(),vt=(()=>{class _t{constructor(at){this._viewContainer=at,_t.mostRecentCellOutlet=this}ngOnDestroy(){_t.mostRecentCellOutlet===this&&(_t.mostRecentCellOutlet=null)}}return _t.mostRecentCellOutlet=null,_t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.s_b))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","cdkCellOutlet",""]]}),_t})(),rt=(()=>{class _t{}return _t.\u0275fac=function(at){return new(at||_t)},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,Ke){1&at&&e.GkF(0,0)},dependencies:[vt],encapsulation:2}),_t})(),W=(()=>{class _t{}return _t.\u0275fac=function(at){return new(at||_t)},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,Ke){1&at&&e.GkF(0,0)},dependencies:[vt],encapsulation:2}),_t})(),le=(()=>{class _t{constructor(at){this.templateRef=at,this._contentClassName="cdk-no-data-row"}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["ng-template","cdkNoDataRow",""]]}),_t})();const ie=["top","bottom","left","right"];class ae{constructor(Ht,at,Ke,bt,Z=!0,Fe=!0,At){this._isNativeHtmlTable=Ht,this._stickCellCss=at,this.direction=Ke,this._coalescedStyleScheduler=bt,this._isBrowser=Z,this._needsPositionStickyOnElement=Fe,this._positionListener=At,this._cachedCellWidths=[],this._borderCellCss={top:`${at}-border-elem-top`,bottom:`${at}-border-elem-bottom`,left:`${at}-border-elem-left`,right:`${at}-border-elem-right`}}clearStickyPositioning(Ht,at){const Ke=[];for(const bt of Ht)if(bt.nodeType===bt.ELEMENT_NODE){Ke.push(bt);for(let Z=0;Z{for(const bt of Ke)this._removeStickyStyle(bt,at)})}updateStickyColumns(Ht,at,Ke,bt=!0){if(!Ht.length||!this._isBrowser||!at.some(Pn=>Pn)&&!Ke.some(Pn=>Pn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Z=Ht[0],Fe=Z.children.length,At=this._getCellWidths(Z,bt),Mt=this._getStickyStartColumnPositions(At,at),$t=this._getStickyEndColumnPositions(At,Ke),An=at.lastIndexOf(!0),Vn=Ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Pn="rtl"===this.direction,$n=Pn?"right":"left",ai=Pn?"left":"right";for(const oi of Ht)for(let Gn=0;Gnat[Gn]?oi:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Vn?[]:At.slice(Vn).map((oi,Gn)=>Ke[Gn+Vn]?oi:null).reverse()}))})}stickRows(Ht,at,Ke){if(!this._isBrowser)return;const bt="bottom"===Ke?Ht.slice().reverse():Ht,Z="bottom"===Ke?at.slice().reverse():at,Fe=[],At=[],Mt=[];for(let An=0,Vn=0;An{for(let Pn=0;Pn{at.some(bt=>!bt)?this._removeStickyStyle(Ke,["bottom"]):this._addStickyStyle(Ke,"bottom",0,!1)})}_removeStickyStyle(Ht,at){for(const bt of at)Ht.style[bt]="",Ht.classList.remove(this._borderCellCss[bt]);ie.some(bt=>-1===at.indexOf(bt)&&Ht.style[bt])?Ht.style.zIndex=this._getCalculatedZIndex(Ht):(Ht.style.zIndex="",this._needsPositionStickyOnElement&&(Ht.style.position=""),Ht.classList.remove(this._stickCellCss))}_addStickyStyle(Ht,at,Ke,bt){Ht.classList.add(this._stickCellCss),bt&&Ht.classList.add(this._borderCellCss[at]),Ht.style[at]=`${Ke}px`,Ht.style.zIndex=this._getCalculatedZIndex(Ht),this._needsPositionStickyOnElement&&(Ht.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ht){const at={top:100,bottom:10,left:1,right:1};let Ke=0;for(const bt of ie)Ht.style[bt]&&(Ke+=at[bt]);return Ke?`${Ke}`:""}_getCellWidths(Ht,at=!0){if(!at&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ke=[],bt=Ht.children;for(let Z=0;Z0;Z--)at[Z]&&(Ke[Z]=bt,bt+=Ht[Z]);return Ke}}const f=new e.OlP("CDK_SPL");let a=(()=>{class _t{constructor(at,Ke){this.viewContainer=at,this.elementRef=Ke}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.s_b),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","rowOutlet",""]]}),_t})(),n=(()=>{class _t{constructor(at,Ke){this.viewContainer=at,this.elementRef=Ke}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.s_b),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","headerRowOutlet",""]]}),_t})(),t=(()=>{class _t{constructor(at,Ke){this.viewContainer=at,this.elementRef=Ke}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.s_b),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","footerRowOutlet",""]]}),_t})(),i=(()=>{class _t{constructor(at,Ke){this.viewContainer=at,this.elementRef=Ke}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.s_b),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","noDataRowOutlet",""]]}),_t})(),p=(()=>{class _t{constructor(at,Ke,bt,Z,Fe,At,Mt,$t,An,Vn,Pn,$n){this._differs=at,this._changeDetectorRef=Ke,this._elementRef=bt,this._dir=Fe,this._platform=Mt,this._viewRepeater=$t,this._coalescedStyleScheduler=An,this._viewportRuler=Vn,this._stickyPositioningListener=Pn,this._ngZone=$n,this._onDestroy=new E.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new U.X({start:0,end:Number.MAX_VALUE}),Z||this._elementRef.nativeElement.setAttribute("role","table"),this._document=At,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(at){this._trackByFn=at}get dataSource(){return this._dataSource}set dataSource(at){this._dataSource!==at&&this._switchDataSource(at)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(at){this._multiTemplateDataRows=(0,_.Ig)(at),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(at){this._fixedLayout=(0,_.Ig)(at),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((at,Ke)=>this.trackBy?this.trackBy(Ke.dataIndex,Ke.data):Ke),this._viewportRuler.change().pipe((0,z.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(at=>{at.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const at=this._dataDiffer.diff(this._renderRows);if(!at)return this._updateNoDataRow(),void this.contentChanged.next();const Ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(at,Ke,(bt,Z,Fe)=>this._getEmbeddedViewArgs(bt.item,Fe),bt=>bt.item.data,bt=>{1===bt.operation&&bt.context&&this._renderCellTemplateForItem(bt.record.item.rowDef,bt.context)}),this._updateRowIndexContext(),at.forEachIdentityChange(bt=>{Ke.get(bt.currentIndex).context.$implicit=bt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Q.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(at){this._customColumnDefs.add(at)}removeColumnDef(at){this._customColumnDefs.delete(at)}addRowDef(at){this._customRowDefs.add(at)}removeRowDef(at){this._customRowDefs.delete(at)}addHeaderRowDef(at){this._customHeaderRowDefs.add(at),this._headerRowDefChanged=!0}removeHeaderRowDef(at){this._customHeaderRowDefs.delete(at),this._headerRowDefChanged=!0}addFooterRowDef(at){this._customFooterRowDefs.add(at),this._footerRowDefChanged=!0}removeFooterRowDef(at){this._customFooterRowDefs.delete(at),this._footerRowDefChanged=!0}setNoDataRow(at){this._customNoDataRow=at}updateStickyHeaderRowStyles(){const at=this._getRenderedRows(this._headerRowOutlet),bt=this._elementRef.nativeElement.querySelector("thead");bt&&(bt.style.display=at.length?"":"none");const Z=this._headerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(at,["top"]),this._stickyStyler.stickRows(at,Z,"top"),this._headerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyFooterRowStyles(){const at=this._getRenderedRows(this._footerRowOutlet),bt=this._elementRef.nativeElement.querySelector("tfoot");bt&&(bt.style.display=at.length?"":"none");const Z=this._footerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(at,["bottom"]),this._stickyStyler.stickRows(at,Z,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Z),this._footerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyColumnStyles(){const at=this._getRenderedRows(this._headerRowOutlet),Ke=this._getRenderedRows(this._rowOutlet),bt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...at,...Ke,...bt],["left","right"]),this._stickyColumnStylesNeedReset=!1),at.forEach((Z,Fe)=>{this._addStickyColumnStyles([Z],this._headerRowDefs[Fe])}),this._rowDefs.forEach(Z=>{const Fe=[];for(let At=0;At{this._addStickyColumnStyles([Z],this._footerRowDefs[Fe])}),Array.from(this._columnDefsByName.values()).forEach(Z=>Z.resetStickyChanged())}_getAllRenderRows(){const at=[],Ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let bt=0;bt{const At=bt&&bt.has(Fe)?bt.get(Fe):[];if(At.length){const Mt=At.shift();return Mt.dataIndex=Ke,Mt}return{data:at,rowDef:Fe,dataIndex:Ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),M(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ke=>{this._columnDefsByName.has(Ke.name),this._columnDefsByName.set(Ke.name,Ke)})}_cacheRowDefs(){this._headerRowDefs=M(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=M(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=M(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const at=this._rowDefs.filter(Ke=>!Ke.when);this._defaultRowDef=at[0]}_renderUpdatedColumns(){const at=(Fe,At)=>Fe||!!At.getColumnsDiff(),Ke=this._rowDefs.reduce(at,!1);Ke&&this._forceRenderDataRows();const bt=this._headerRowDefs.reduce(at,!1);bt&&this._forceRenderHeaderRows();const Z=this._footerRowDefs.reduce(at,!1);return Z&&this._forceRenderFooterRows(),Ke||bt||Z}_switchDataSource(at){this._data=[],(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),at||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=at}_observeRenderChanges(){if(!this.dataSource)return;let at;(0,w.Z9)(this.dataSource)?at=this.dataSource.connect(this):(0,A.b)(this.dataSource)?at=this.dataSource:Array.isArray(this.dataSource)&&(at=(0,N.of)(this.dataSource)),this._renderChangeSubscription=at.pipe((0,z.R)(this._onDestroy)).subscribe(Ke=>{this._data=Ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((at,Ke)=>this._renderRow(this._headerRowOutlet,at,Ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((at,Ke)=>this._renderRow(this._footerRowOutlet,at,Ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(at,Ke){const bt=Array.from(Ke.columns||[]).map(At=>this._columnDefsByName.get(At)),Z=bt.map(At=>At.sticky),Fe=bt.map(At=>At.stickyEnd);this._stickyStyler.updateStickyColumns(at,Z,Fe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(at){const Ke=[];for(let bt=0;bt!Z.when||Z.when(Ke,at));else{let Z=this._rowDefs.find(Fe=>Fe.when&&Fe.when(Ke,at))||this._defaultRowDef;Z&&bt.push(Z)}return bt}_getEmbeddedViewArgs(at,Ke){return{templateRef:at.rowDef.template,context:{$implicit:at.data},index:Ke}}_renderRow(at,Ke,bt,Z={}){const Fe=at.viewContainer.createEmbeddedView(Ke.template,Z,bt);return this._renderCellTemplateForItem(Ke,Z),Fe}_renderCellTemplateForItem(at,Ke){for(let bt of this._getCellTemplates(at))vt.mostRecentCellOutlet&&vt.mostRecentCellOutlet._viewContainer.createEmbeddedView(bt,Ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const at=this._rowOutlet.viewContainer;for(let Ke=0,bt=at.length;Ke{const bt=this._columnDefsByName.get(Ke);return at.extractCellTemplate(bt)}):[]}_applyNativeTableSections(){const at=this._document.createDocumentFragment(),Ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const bt of Ke){const Z=this._document.createElement(bt.tag);Z.setAttribute("role","rowgroup");for(const Fe of bt.outlets)Z.appendChild(Fe.elementRef.nativeElement);at.appendChild(Z)}this._elementRef.nativeElement.appendChild(at)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const at=(Ke,bt)=>Ke||bt.hasStickyChanged();this._headerRowDefs.reduce(at,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(at,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(at,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ae(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,N.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Ke=>{this._stickyStyler.direction=Ke,this.updateStickyColumnStyles()})}_getOwnDefs(at){return at.filter(Ke=>!Ke._table||Ke._table===this)}_updateNoDataRow(){const at=this._customNoDataRow||this._noDataRow;if(!at)return;const Ke=0===this._rowOutlet.viewContainer.length;if(Ke===this._isShowingNoDataRow)return;const bt=this._noDataRowOutlet.viewContainer;if(Ke){const Z=bt.createEmbeddedView(at.templateRef),Fe=Z.rootNodes[0];1===Z.rootNodes.length&&Fe?.nodeType===this._document.ELEMENT_NODE&&(Fe.setAttribute("role","row"),Fe.classList.add(at._contentClassName))}else bt.clear();this._isShowingNoDataRow=Ke}}return _t.\u0275fac=function(at){return new(at||_t)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(d.Is,8),e.Y36(y.K0),e.Y36(g.t4),e.Y36(w.k),e.Y36(Pe),e.Y36(b.rL),e.Y36(f,12),e.Y36(e.R0b,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(at,Ke,bt){if(1&at&&(e.Suo(bt,le,5),e.Suo(bt,Ee,5),e.Suo(bt,Xe,5),e.Suo(bt,G,5),e.Suo(bt,et,5)),2&at){let Z;e.iGM(Z=e.CRH())&&(Ke._noDataRow=Z.first),e.iGM(Z=e.CRH())&&(Ke._contentColumnDefs=Z),e.iGM(Z=e.CRH())&&(Ke._contentRowDefs=Z),e.iGM(Z=e.CRH())&&(Ke._contentHeaderRowDefs=Z),e.iGM(Z=e.CRH())&&(Ke._contentFooterRowDefs=Z)}},viewQuery:function(at,Ke){if(1&at&&(e.Gf(a,7),e.Gf(n,7),e.Gf(t,7),e.Gf(i,7)),2&at){let bt;e.iGM(bt=e.CRH())&&(Ke._rowOutlet=bt.first),e.iGM(bt=e.CRH())&&(Ke._headerRowOutlet=bt.first),e.iGM(bt=e.CRH())&&(Ke._footerRowOutlet=bt.first),e.iGM(bt=e.CRH())&&(Ke._noDataRowOutlet=bt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(at,Ke){2&at&&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:ve,useExisting:_t},{provide:w.k,useClass:w.yy},{provide:Pe,useClass:we},{provide:f,useValue:null}])],ngContentSelectors:he,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(at,Ke){1&at&&(e.F$t(ne),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,i],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),_t})();function M(_t,Ht){return _t.concat(Array.from(Ht))}let Dt=(()=>{class _t{}return _t.\u0275fac=function(at){return new(at||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[b.Cl]}),_t})();var Zt=h(3238),Et=h(56451),pt=h(39841),je=h(54004);const Oe=[[["caption"]],[["colgroup"],["col"]]],Qe=["caption","colgroup, col"];let de=(()=>{class _t extends p{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(at,Ke){2&at&&e.ekj("mat-table-fixed-layout",Ke.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:w.k,useClass:w.yy},{provide:p,useExisting:_t},{provide:ve,useExisting:_t},{provide:Pe,useClass:we},{provide:f,useValue:null}]),e.qOj],ngContentSelectors:Qe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(at,Ke){1&at&&(e.F$t(Oe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,i],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),_t})(),Ve=(()=>{class _t extends O{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:O,useExisting:_t}]),e.qOj]}),_t})(),$e=(()=>{class _t extends H{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:H,useExisting:_t}]),e.qOj]}),_t})(),Le=(()=>{class _t extends Ee{get name(){return this._name}set name(at){this._setNameInput(at)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Ee,useExisting:_t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:_t}]),e.qOj]}),_t})(),st=(()=>{class _t extends Se{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),_t})(),Vt=(()=>{class _t extends Ce{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),_t})(),rn=(()=>{class _t extends G{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:G,useExisting:_t}]),e.qOj]}),_t})(),nn=(()=>{class _t extends Xe{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Xe,useExisting:_t}]),e.qOj]}),_t})(),un=(()=>{class _t extends rt{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:rt,useExisting:_t}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,Ke){1&at&&e.GkF(0,0)},dependencies:[vt],encapsulation:2}),_t})(),It=(()=>{class _t extends W{}return _t.\u0275fac=function(){let Ht;return function(Ke){return(Ht||(Ht=e.n5z(_t)))(Ke||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:W,useExisting:_t}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,Ke){1&at&&e.GkF(0,0)},dependencies:[vt],encapsulation:2}),_t})(),pn=(()=>{class _t{}return _t.\u0275fac=function(at){return new(at||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[Dt,Zt.BQ,Zt.BQ]}),_t})();class fn extends w.o2{constructor(Ht=[]){super(),this._renderData=new U.X([]),this._filter=new U.X(""),this._internalPageChanges=new E.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(at,Ke)=>{const bt=at[Ke];if((0,_.t6)(bt)){const Z=Number(bt);return Z<9007199254740991?Z:bt}return bt},this.sortData=(at,Ke)=>{const bt=Ke.active,Z=Ke.direction;return bt&&""!=Z?at.sort((Fe,At)=>{let Mt=this.sortingDataAccessor(Fe,bt),$t=this.sortingDataAccessor(At,bt);const An=typeof Mt,Vn=typeof $t;An!==Vn&&("number"===An&&(Mt+=""),"number"===Vn&&($t+=""));let Pn=0;return null!=Mt&&null!=$t?Mt>$t?Pn=1:Mt<$t&&(Pn=-1):null!=Mt?Pn=1:null!=$t&&(Pn=-1),Pn*("asc"==Z?1:-1)}):at},this.filterPredicate=(at,Ke)=>{const bt=Object.keys(at).reduce((Fe,At)=>Fe+at[At]+"\u25ec","").toLowerCase(),Z=Ke.trim().toLowerCase();return-1!=bt.indexOf(Z)},this._data=new U.X(Ht),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ht){Ht=Array.isArray(Ht)?Ht:[],this._data.next(Ht),this._renderChangesSubscription||this._filterData(Ht)}get filter(){return this._filter.value}set filter(Ht){this._filter.next(Ht),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ht){this._sort=Ht,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ht){this._paginator=Ht,this._updateChangeSubscription()}_updateChangeSubscription(){var Ht;const at=this._sort?(0,Et.T)(this._sort.sortChange,this._sort.initialized):(0,N.of)(null),Ke=this._paginator?(0,Et.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,N.of)(null),Z=(0,pt.a)([this._data,this._filter]).pipe((0,je.U)(([Mt])=>this._filterData(Mt))),Fe=(0,pt.a)([Z,at]).pipe((0,je.U)(([Mt])=>this._orderData(Mt))),At=(0,pt.a)([Fe,Ke]).pipe((0,je.U)(([Mt])=>this._pageData(Mt)));null===(Ht=this._renderChangesSubscription)||void 0===Ht||Ht.unsubscribe(),this._renderChangesSubscription=At.subscribe(Mt=>this._renderData.next(Mt))}_filterData(Ht){return this.filteredData=null==this.filter||""===this.filter?Ht:Ht.filter(at=>this.filterPredicate(at,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ht){return this.sort?this.sortData(Ht.slice(),this.sort):Ht}_pageData(Ht){if(!this.paginator)return Ht;const at=this.paginator.pageIndex*this.paginator.pageSize;return Ht.slice(at,at+this.paginator.pageSize)}_updatePaginator(Ht){Promise.resolve().then(()=>{const at=this.paginator;if(at&&(at.length=Ht,at.pageIndex>0)){const Ke=Math.ceil(at.length/at.pageSize)-1||0,bt=Math.min(at.pageIndex,Ke);bt!==at.pageIndex&&(at.pageIndex=bt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ht;null===(Ht=this._renderChangesSubscription)||void 0===Ht||Ht.unsubscribe(),this._renderChangesSubscription=null}}class Wn extends fn{}},3848:(We,pe,h)=>{"use strict";h.d(pe,{Nh:()=>Ve,SP:()=>pt,Vc:()=>ie,uD:()=>Je,uX:()=>oe});var e=h(12687),d=h(49643),_=h(84080),w=h(36895),g=h(94650),b=h(3238),y=h(95698),E=h(68675),S=h(71884),U=h(82722),A=h(63900),N=h(35684),z=h(77579),Q=h(50727),ne=h(54968),he=h(39646),ee=h(56451),fe=h(60515),ce=h(69751),ve=h(82805),v=h(40445),O=h(37340),H=h(21281),Y=h(67376),q=h(83353),ue=h(29521);function Ee($e,nt){1&$e&&g.Hsn(0)}const De=["*"];function Se($e,nt){}const Ge=function($e){return{animationDuration:$e}},Ce=function($e,nt){return{value:$e,params:nt}},qe=["tabListContainer"],Pe=["tabList"],we=["tabListInner"],j=["nextPaginator"],I=["previousPaginator"],F=["tabBodyWrapper"],ge=["tabHeader"];function G($e,nt){}function _e($e,nt){if(1&$e&&g.YNc(0,G,0,0,"ng-template",10),2&$e){const Le=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",Le.templateLabel)}}function Te($e,nt){if(1&$e&&g._uU(0),2&$e){const Le=g.oxw().$implicit;g.Oqu(Le.textLabel)}}function et($e,nt){if(1&$e){const Le=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const Pt=g.CHM(Le),Vt=Pt.$implicit,rn=Pt.index,Jt=g.oxw(),nn=g.MAs(1);return g.KtG(Jt._handleClick(Vt,nn,rn))})("cdkFocusChange",function(Pt){const rn=g.CHM(Le).index,Jt=g.oxw();return g.KtG(Jt._tabFocusChanged(Pt,rn))}),g.TgZ(1,"div",7),g.YNc(2,_e,1,1,"ng-template",8),g.YNc(3,Te,1,1,"ng-template",null,9,g.W1O),g.qZA()()}if(2&$e){const Le=nt.$implicit,st=nt.index,Pt=g.MAs(4),Vt=g.oxw();g.ekj("mat-tab-label-active",Vt.selectedIndex===st),g.Q6J("id",Vt._getTabLabelId(st))("ngClass",Le.labelClass)("disabled",Le.disabled)("matRippleDisabled",Le.disabled||Vt.disableRipple),g.uIk("tabIndex",Vt._getTabIndex(Le,st))("aria-posinset",st+1)("aria-setsize",Vt._tabs.length)("aria-controls",Vt._getTabContentId(st))("aria-selected",Vt.selectedIndex===st)("aria-label",Le.ariaLabel||null)("aria-labelledby",!Le.ariaLabel&&Le.ariaLabelledby?Le.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",Le.templateLabel)("ngIfElse",Pt)}}function Xe($e,nt){if(1&$e){const Le=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){g.CHM(Le);const Pt=g.oxw();return g.KtG(Pt._removeTabBodyWrapperHeight())})("_onCentering",function(Pt){g.CHM(Le);const Vt=g.oxw();return g.KtG(Vt._setTabBodyWrapperHeight(Pt))}),g.qZA()}if(2&$e){const Le=nt.$implicit,st=nt.index,Pt=g.oxw();g.ekj("mat-tab-body-active",Pt.selectedIndex===st),g.Q6J("id",Pt._getTabContentId(st))("ngClass",Le.bodyClass)("content",Le.content)("position",Le.position)("origin",Le.origin)("animationDuration",Pt.animationDuration)("preserveContent",Pt.preserveContent),g.uIk("tabindex",null!=Pt.contentTabIndex&&Pt.selectedIndex===st?Pt.contentTabIndex:null)("aria-labelledby",Pt._getTabLabelId(st))}}const rt=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ht(){return nt=>({left:nt?(nt.offsetLeft||0)+"px":"0",width:nt?(nt.offsetWidth||0)+"px":"0"})}});let W=(()=>{class $e{constructor(Le,st,Pt,Vt){this._elementRef=Le,this._ngZone=st,this._inkBarPositioner=Pt,this._animationMode=Vt}alignToElement(Le){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{const st=this._inkBarPositioner(Le),Pt=this._elementRef.nativeElement;Pt.style.left=st.left,Pt.style.width=st.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(rt),g.Y36(g.QbO,8))},$e.\u0275dir=g.lG2({type:$e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Le,st){2&Le&&g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode)}}),$e})();const le=new g.OlP("MatTabContent");let ie=(()=>{class $e{constructor(Le){this.template=Le}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.Rgc))},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:le,useExisting:$e}])]}),$e})();const ae=new g.OlP("MatTabLabel"),Ze=new g.OlP("MAT_TAB");let Je=(()=>{class $e extends _.ig{constructor(Le,st,Pt){super(Le,st),this._closestTab=Pt}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ze,8))},$e.\u0275dir=g.lG2({type:$e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:ae,useExisting:$e}]),g.qOj]}),$e})();const ct=(0,b.Id)(class{}),ze=new g.OlP("MAT_TAB_GROUP");let oe=(()=>{class $e extends ct{constructor(Le,st){super(),this._viewContainerRef=Le,this._closestTabGroup=st,this.textLabel="",this._contentPortal=null,this._stateChanges=new z.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Le){this._setTemplateLabelInput(Le)}get content(){return this._contentPortal}ngOnChanges(Le){(Le.hasOwnProperty("textLabel")||Le.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Le){Le&&Le._closestTab===this&&(this._templateLabel=Le)}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.s_b),g.Y36(ze,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-tab"]],contentQueries:function(Le,st,Pt){if(1&Le&&(g.Suo(Pt,ae,5),g.Suo(Pt,le,7,g.Rgc)),2&Le){let Vt;g.iGM(Vt=g.CRH())&&(st.templateLabel=Vt.first),g.iGM(Vt=g.CRH())&&(st._explicitContent=Vt.first)}},viewQuery:function(Le,st){if(1&Le&&g.Gf(g.Rgc,7),2&Le){let Pt;g.iGM(Pt=g.CRH())&&(st._implicitContent=Pt.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:Ze,useExisting:$e}]),g.qOj,g.TTD],ngContentSelectors:De,decls:1,vars:0,template:function(Le,st){1&Le&&(g.F$t(),g.YNc(0,Ee,1,0,"ng-template"))},encapsulation:2}),$e})();const V={translateTab:(0,O.X$)("translateTab",[(0,O.SB)("center, void, left-origin-center, right-origin-center",(0,O.oB)({transform:"none"})),(0,O.SB)("left",(0,O.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,O.SB)("right",(0,O.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,O.eR)("* => left, * => right, left => center, right => center",(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,O.eR)("void => left-origin-center",[(0,O.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,O.eR)("void => right-origin-center",[(0,O.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let r=(()=>{class $e extends _.Pl{constructor(Le,st,Pt,Vt){super(Le,st,Vt),this._host=Pt,this._centeringSub=Q.w0.EMPTY,this._leavingSub=Q.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,E.O)(this._host._isCenterPosition(this._host._position))).subscribe(Le=>{Le&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>f)),g.Y36(w.K0))},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),$e})(),s=(()=>{class $e{constructor(Le,st,Pt){this._elementRef=Le,this._dir=st,this._dirChangeSubscription=Q.w0.EMPTY,this._translateTabComplete=new z.x,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,st&&(this._dirChangeSubscription=st.change.subscribe(Vt=>{this._computePositionAnimationState(Vt),Pt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)((Vt,rn)=>Vt.fromState===rn.fromState&&Vt.toState===rn.toState)).subscribe(Vt=>{this._isCenterPosition(Vt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Vt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Le){this._positionIndex=Le,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Le){const st=this._isCenterPosition(Le.toState);this._beforeCentering.emit(st),st&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Le){return"center"==Le||"left-origin-center"==Le||"right-origin-center"==Le}_computePositionAnimationState(Le=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Le?"left":"right":this._positionIndex>0?"ltr"==Le?"right":"left":"center"}_computePositionFromOrigin(Le){const st=this._getLayoutDirection();return"ltr"==st&&Le<=0||"rtl"==st&&Le>0?"left-origin-center":"right-origin-center"}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},$e.\u0275dir=g.lG2({type:$e,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),$e})(),f=(()=>{class $e extends s{constructor(Le,st,Pt){super(Le,st,Pt)}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-tab-body"]],viewQuery:function(Le,st){if(1&Le&&g.Gf(_.Pl,5),2&Le){let Pt;g.iGM(Pt=g.CRH())&&(st._portalHost=Pt.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Le,st){1&Le&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(Vt){return st._onTranslateTabStarted(Vt)})("@translateTab.done",function(Vt){return st._translateTabComplete.next(Vt)}),g.YNc(2,Se,0,0,"ng-template",2),g.qZA()),2&Le&&g.Q6J("@translateTab",g.WLB(3,Ce,st._position,g.VKq(1,Ge,st.animationDuration)))},dependencies:[r],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[V.translateTab]}}),$e})();const l=new g.OlP("MAT_TABS_CONFIG"),a=(0,b.Id)(class{});let n=(()=>{class $e extends a{constructor(Le){super(),this.elementRef=Le}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq))},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Le,st){2&Le&&(g.uIk("aria-disabled",!!st.disabled),g.ekj("mat-tab-disabled",st.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),$e})();const t=(0,q.i$)({passive:!0});let p=(()=>{class $e{constructor(Le,st,Pt,Vt,rn,Jt,nn){this._elementRef=Le,this._changeDetectorRef=st,this._viewportRuler=Pt,this._dir=Vt,this._ngZone=rn,this._platform=Jt,this._animationMode=nn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new z.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new z.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,rn.runOutsideAngular(()=>{(0,ne.R)(Le.nativeElement,"mouseleave").pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Le){this._disablePagination=(0,H.Ig)(Le)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Le){Le=(0,H.su)(Le),this._selectedIndex!=Le&&(this._selectedIndexChanged=!0,this._selectedIndex=Le,this._keyManager&&this._keyManager.updateActiveItem(Le))}ngAfterViewInit(){(0,ne.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ne.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Le=this._dir?this._dir.change:(0,he.of)("ltr"),st=this._viewportRuler.change(150),Pt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(Pt),(0,ee.T)(Le,st,this._items.changes,this._itemsResized()).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Pt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,U.R)(this._destroyed)).subscribe(Vt=>{this.indexFocused.emit(Vt),this._setTabFocus(Vt)})}_itemsResized(){return"function"!=typeof ResizeObserver?fe.E:this._items.changes.pipe((0,E.O)(this._items),(0,A.w)(Le=>new ce.y(st=>this._ngZone.runOutsideAngular(()=>{const Pt=new ResizeObserver(()=>{st.next()});return Le.forEach(Vt=>{Pt.observe(Vt.elementRef.nativeElement)}),()=>{Pt.disconnect()}}))),(0,N.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Le){if(!(0,ue.Vb)(Le))switch(Le.keyCode){case ue.K5:case ue.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Le));break;default:this._keyManager.onKeydown(Le)}}_onContentChanges(){const Le=this._elementRef.nativeElement.textContent;Le!==this._currentTextContent&&(this._currentTextContent=Le||"",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(Le){!this._isValidIndex(Le)||this.focusIndex===Le||!this._keyManager||this._keyManager.setActiveItem(Le)}_isValidIndex(Le){if(!this._items)return!0;const st=this._items?this._items.toArray()[Le]:null;return!!st&&!st.disabled}_setTabFocus(Le){if(this._showPaginationControls&&this._scrollToLabel(Le),this._items&&this._items.length){this._items.toArray()[Le].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Le=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Le:Le;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Le){this._scrollTo(Le)}_scrollHeader(Le){return this._scrollTo(this._scrollDistance+("before"==Le?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Le){this._stopInterval(),this._scrollHeader(Le)}_scrollToLabel(Le){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Le]:null;if(!st)return;const Pt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Vt,offsetWidth:rn}=st.elementRef.nativeElement;let Jt,nn;"ltr"==this._getLayoutDirection()?(Jt=Vt,nn=Jt+rn):(nn=this._tabListInner.nativeElement.offsetWidth-Vt,Jt=nn-rn);const un=this.scrollDistance,Bt=this.scrollDistance+Pt;JtBt&&(this.scrollDistance+=nn-Bt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Le=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Le||(this.scrollDistance=0),Le!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Le}}_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 Le=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Le?Le.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Le,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,ve.H)(650,100).pipe((0,U.R)((0,ee.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Pt,distance:Vt}=this._scrollHeader(Le);(0===Vt||Vt>=Pt)&&this._stopInterval()}))}_scrollTo(Le){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Le)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Y.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{disablePagination:"disablePagination"}}),$e})(),M=(()=>{class $e extends p{constructor(Le,st,Pt,Vt,rn,Jt,nn){super(Le,st,Pt,Vt,rn,Jt,nn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Le){this._disableRipple=(0,H.Ig)(Le)}_itemSelected(Le){Le.preventDefault()}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Y.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),$e})(),Me=(()=>{class $e extends M{constructor(Le,st,Pt,Vt,rn,Jt,nn){super(Le,st,Pt,Vt,rn,Jt,nn)}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Y.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-tab-header"]],contentQueries:function(Le,st,Pt){if(1&Le&&g.Suo(Pt,n,4),2&Le){let Vt;g.iGM(Vt=g.CRH())&&(st._items=Vt)}},viewQuery:function(Le,st){if(1&Le&&(g.Gf(W,7),g.Gf(qe,7),g.Gf(Pe,7),g.Gf(we,7),g.Gf(j,5),g.Gf(I,5)),2&Le){let Pt;g.iGM(Pt=g.CRH())&&(st._inkBar=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListContainer=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabList=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListInner=Pt.first),g.iGM(Pt=g.CRH())&&(st._nextPaginator=Pt.first),g.iGM(Pt=g.CRH())&&(st._previousPaginator=Pt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Le,st){2&Le&&g.ekj("mat-tab-header-pagination-controls-enabled",st._showPaginationControls)("mat-tab-header-rtl","rtl"==st._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:De,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Le,st){1&Le&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return st._handlePaginatorClick("before")})("mousedown",function(Vt){return st._handlePaginatorPress("before",Vt)})("touchend",function(){return st._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(Vt){return st._handleKeydown(Vt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return st._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA()(),g.TgZ(11,"button",9,10),g.NdJ("mousedown",function(Vt){return st._handlePaginatorPress("after",Vt)})("click",function(){return st._handlePaginatorClick("after")})("touchend",function(){return st._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&Le&&(g.ekj("mat-tab-header-pagination-disabled",st._disableScrollBefore),g.Q6J("matRippleDisabled",st._disableScrollBefore||st.disableRipple)("disabled",st._disableScrollBefore||null),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",st._disableScrollAfter),g.Q6J("matRippleDisabled",st._disableScrollAfter||st.disableRipple)("disabled",st._disableScrollAfter||null))},dependencies:[b.wG,d.wD,W],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),$e})(),it=0;class Dt{}const Zt=(0,b.pj)((0,b.Kr)(class{constructor($e){this._elementRef=$e}}),"primary");let Et=(()=>{class $e extends Zt{constructor(Le,st,Pt,Vt){var rn;super(Le),this._changeDetectorRef=st,this._animationMode=Vt,this._tabs=new g.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Q.w0.EMPTY,this._tabLabelSubscription=Q.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=it++,this.animationDuration=Pt&&Pt.animationDuration?Pt.animationDuration:"500ms",this.disablePagination=!(!Pt||null==Pt.disablePagination)&&Pt.disablePagination,this.dynamicHeight=!(!Pt||null==Pt.dynamicHeight)&&Pt.dynamicHeight,this.contentTabIndex=null!==(rn=Pt?.contentTabIndex)&&void 0!==rn?rn:null,this.preserveContent=!(null==Pt||!Pt.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Le){this._dynamicHeight=(0,H.Ig)(Le)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Le){this._indexToSelect=(0,H.su)(Le,null)}get animationDuration(){return this._animationDuration}set animationDuration(Le){this._animationDuration=/^\d+$/.test(Le+"")?Le+"ms":Le}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Le){this._contentTabIndex=(0,H.su)(Le,null)}get disablePagination(){return this._disablePagination}set disablePagination(Le){this._disablePagination=(0,H.Ig)(Le)}get preserveContent(){return this._preserveContent}set preserveContent(Le){this._preserveContent=(0,H.Ig)(Le)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Le){const st=this._elementRef.nativeElement;st.classList.remove(`mat-background-${this.backgroundColor}`),Le&&st.classList.add(`mat-background-${Le}`),this._backgroundColor=Le}ngAfterContentChecked(){const Le=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Le){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Le));const Pt=this._tabBodyWrapper.nativeElement;Pt.style.minHeight=Pt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Pt,Vt)=>Pt.isActive=Vt===Le),st||(this.selectedIndexChange.emit(Le),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,Pt)=>{st.position=Pt-Le,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Le-this._selectedIndex)}),this._selectedIndex!==Le&&(this._selectedIndex=Le,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Le=this._clampTabIndex(this._indexToSelect);if(Le===this._selectedIndex){const st=this._tabs.toArray();let Pt;for(let Vt=0;Vt{st[Le].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Le))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,E.O)(this._allTabs)).subscribe(Le=>{this._tabs.reset(Le.filter(st=>st._closestTabGroup===this||!st._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(Le){const st=this._tabHeader;st&&(st.focusIndex=Le)}_focusChanged(Le){this._lastFocusedTabIndex=Le,this.focusChange.emit(this._createChangeEvent(Le))}_createChangeEvent(Le){const st=new Dt;return st.index=Le,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Le]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ee.T)(...this._tabs.map(Le=>Le._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Le){return Math.min(this._tabs.length-1,Math.max(Le||0,0))}_getTabLabelId(Le){return`mat-tab-label-${this._groupId}-${Le}`}_getTabContentId(Le){return`mat-tab-content-${this._groupId}-${Le}`}_setTabBodyWrapperHeight(Le){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Le+"px")}_removeTabBodyWrapperHeight(){const Le=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Le.clientHeight,Le.style.height="",this.animationDone.emit()}_handleClick(Le,st,Pt){Le.disabled||(this.selectedIndex=st.focusIndex=Pt)}_getTabIndex(Le,st){var Pt;return Le.disabled?null:st===(null!==(Pt=this._lastFocusedTabIndex)&&void 0!==Pt?Pt:this.selectedIndex)?0:-1}_tabFocusChanged(Le,st){Le&&"mouse"!==Le&&"touch"!==Le&&(this._tabHeader.focusIndex=st)}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),$e})(),pt=(()=>{class $e extends Et{constructor(Le,st,Pt,Vt){super(Le,st,Pt,Vt)}}return $e.\u0275fac=function(Le){return new(Le||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-tab-group"]],contentQueries:function(Le,st,Pt){if(1&Le&&g.Suo(Pt,oe,5),2&Le){let Vt;g.iGM(Vt=g.CRH())&&(st._allTabs=Vt)}},viewQuery:function(Le,st){if(1&Le&&(g.Gf(F,5),g.Gf(ge,5)),2&Le){let Pt;g.iGM(Pt=g.CRH())&&(st._tabBodyWrapper=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabHeader=Pt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Le,st){2&Le&&g.ekj("mat-tab-group-dynamic-height",st.dynamicHeight)("mat-tab-group-inverted-header","below"===st.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:ze,useExisting:$e}]),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","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Le,st){1&Le&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(Vt){return st._focusChanged(Vt)})("selectFocusedIndex",function(Vt){return st.selectedIndex=Vt}),g.YNc(2,et,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Xe,1,11,"mat-tab-body",5),g.qZA()),2&Le&&(g.Q6J("selectedIndex",st.selectedIndex||0)("disableRipple",st.disableRipple)("disablePagination",st.disablePagination),g.xp6(2),g.Q6J("ngForOf",st._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(2),g.Q6J("ngForOf",st._tabs))},dependencies:[w.mk,w.sg,w.O5,_.Pl,b.wG,e.kH,n,f,Me],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),$e})(),Ve=(()=>{class $e{}return $e.\u0275fac=function(Le){return new(Le||$e)},$e.\u0275mod=g.oAB({type:$e}),$e.\u0275inj=g.cJS({imports:[w.ez,b.BQ,_.eL,b.si,d.Q8,e.rt,b.BQ]}),$e})()},10266:(We,pe,h)=>{"use strict";h.d(pe,{AV:()=>Pe,gM:()=>Ge});var e=h(98184),d=h(12687),_=h(36895),w=h(94650),g=h(3238),b=h(67376),y=h(40445),E=h(21281),S=h(29521),U=h(62289),A=h(83353),N=h(84080),z=h(77579),Q=h(82722),ne=h(95698);h(37340);const ee=["tooltip"],ve="tooltip-panel",v=(0,A.i$)({passive:!0}),Y=new w.OlP("mat-tooltip-scroll-strategy"),ue={provide:Y,deps:[e.aV],useFactory:function q(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},Ee=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function De(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Se=(()=>{class j{constructor(F,ge,G,_e,Te,et,Xe,vt,rt,ht,W,le){this._overlay=F,this._elementRef=ge,this._scrollDispatcher=G,this._viewContainerRef=_e,this._ngZone=Te,this._platform=et,this._ariaDescriber=Xe,this._focusMonitor=vt,this._dir=ht,this._defaultOptions=W,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 z.x,this._scrollStrategy=rt,this._document=le,W&&(W.position&&(this.position=W.position),W.touchGestures&&(this.touchGestures=W.touchGestures)),ht.change.pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(F){var ge;F!==this._position&&(this._position=F,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(ge=this._tooltipInstance)||void 0===ge||ge.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,E.Ig)(F),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(F){this._showDelay=(0,E.su)(F)}get hideDelay(){return this._hideDelay}set hideDelay(F){this._hideDelay=(0,E.su)(F),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=F?String(F).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(F){this._tooltipClass=F,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Q.R)(this._destroyed)).subscribe(F=>{F?"keyboard"===F&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const F=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ge,G])=>{F.removeEventListener(ge,G,v)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(F,this.message,"tooltip"),this._focusMonitor.stopMonitoring(F)}show(F=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ge=this._createOverlay();this._detach(),this._portal=this._portal||new N.C5(this._tooltipComponent,this._viewContainerRef);const G=this._tooltipInstance=ge.attach(this._portal).instance;G._triggerElement=this._elementRef.nativeElement,G._mouseLeaveHideDelay=this._hideDelay,G.afterHidden().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),G.show(F)}hide(F=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(F)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var F;if(this._overlayRef)return this._overlayRef;const ge=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),G=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ge);return G.positionChanges.pipe((0,Q.R)(this._destroyed)).subscribe(_e=>{this._updateCurrentPositionClass(_e.connectionPair),this._tooltipInstance&&_e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:G,panelClass:`${this._cssClassPrefix}-${ve}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Q.R)(this._destroyed)).subscribe(()=>{var _e;return null===(_e=this._tooltipInstance)||void 0===_e?void 0:_e._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Q.R)(this._destroyed)).subscribe(_e=>{this._isTooltipVisible()&&_e.keyCode===S.hY&&!(0,S.Vb)(_e)&&(_e.preventDefault(),_e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(F=this._defaultOptions)&&void 0!==F&&F.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(F){const ge=F.getConfig().positionStrategy,G=this._getOrigin(),_e=this._getOverlayPosition();ge.withPositions([this._addOffset({...G.main,..._e.main}),this._addOffset({...G.fallback,..._e.fallback})])}_addOffset(F){return F}_getOrigin(){const F=!this._dir||"ltr"==this._dir.value,ge=this.position;let G;"above"==ge||"below"==ge?G={originX:"center",originY:"above"==ge?"top":"bottom"}:"before"==ge||"left"==ge&&F||"right"==ge&&!F?G={originX:"start",originY:"center"}:("after"==ge||"right"==ge&&F||"left"==ge&&!F)&&(G={originX:"end",originY:"center"});const{x:_e,y:Te}=this._invertPosition(G.originX,G.originY);return{main:G,fallback:{originX:_e,originY:Te}}}_getOverlayPosition(){const F=!this._dir||"ltr"==this._dir.value,ge=this.position;let G;"above"==ge?G={overlayX:"center",overlayY:"bottom"}:"below"==ge?G={overlayX:"center",overlayY:"top"}:"before"==ge||"left"==ge&&F||"right"==ge&&!F?G={overlayX:"end",overlayY:"center"}:("after"==ge||"right"==ge&&F||"left"==ge&&!F)&&(G={overlayX:"start",overlayY:"center"});const{x:_e,y:Te}=this._invertPosition(G.overlayX,G.overlayY);return{main:G,fallback:{overlayX:_e,overlayY:Te}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ne.q)(1),(0,Q.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(F){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=F,this._tooltipInstance._markForCheck())}_invertPosition(F,ge){return"above"===this.position||"below"===this.position?"top"===ge?ge="bottom":"bottom"===ge&&(ge="top"):"end"===F?F="start":"start"===F&&(F="end"),{x:F,y:ge}}_updateCurrentPositionClass(F){const{overlayY:ge,originX:G,originY:_e}=F;let Te;if(Te="center"===ge?this._dir&&"rtl"===this._dir.value?"end"===G?"left":"right":"start"===G?"left":"right":"bottom"===ge&&"top"===_e?"above":"below",Te!==this._currentPosition){const et=this._overlayRef;if(et){const Xe=`${this._cssClassPrefix}-${ve}-`;et.removePanelClass(Xe+this._currentPosition),et.addPanelClass(Xe+Te)}this._currentPosition=Te}}_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 F=[];if(this._platformSupportsMouseEvents())F.push(["mouseleave",ge=>{var G;const _e=ge.relatedTarget;(!_e||null===(G=this._overlayRef)||void 0===G||!G.overlayElement.contains(_e))&&this.hide()}],["wheel",ge=>this._wheelListener(ge)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ge=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};F.push(["touchend",ge],["touchcancel",ge])}this._addListeners(F),this._passiveListeners.push(...F)}_addListeners(F){F.forEach(([ge,G])=>{this._elementRef.nativeElement.addEventListener(ge,G,v)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(F){if(this._isTooltipVisible()){const ge=this._document.elementFromPoint(F.clientX,F.clientY),G=this._elementRef.nativeElement;ge!==G&&!G.contains(ge)&&this.hide()}}_disableNativeGesturesIfNecessary(){const F=this.touchGestures;if("off"!==F){const ge=this._elementRef.nativeElement,G=ge.style;("on"===F||"INPUT"!==ge.nodeName&&"TEXTAREA"!==ge.nodeName)&&(G.userSelect=G.msUserSelect=G.webkitUserSelect=G.MozUserSelect="none"),("on"===F||!ge.draggable)&&(G.webkitUserDrag="none"),G.touchAction="none",G.webkitTapHighlightColor="transparent"}}}return j.\u0275fac=function(F){w.$Z()},j.\u0275dir=w.lG2({type:j,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),j})(),Ge=(()=>{class j extends Se{constructor(F,ge,G,_e,Te,et,Xe,vt,rt,ht,W,le){super(F,ge,G,_e,Te,et,Xe,vt,rt,ht,W,le),this._tooltipComponent=qe}}return j.\u0275fac=function(F){return new(F||j)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(A.t4),w.Y36(d.$s),w.Y36(d.tE),w.Y36(Y),w.Y36(y.Is,8),w.Y36(Ee,8),w.Y36(_.K0))},j.\u0275dir=w.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),j})(),Ce=(()=>{class j{constructor(F,ge){this._changeDetectorRef=F,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.x,this._animationsDisabled="NoopAnimations"===ge}show(F){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},F)}hide(F){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},F)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:F}){(!F||!this._triggerElement.contains(F))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:F}){(F===this._showAnimation||F===this._hideAnimation)&&this._finalizeAnimation(F===this._showAnimation)}_finalizeAnimation(F){F?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(F){const ge=this._tooltip.nativeElement,G=this._showAnimation,_e=this._hideAnimation;if(ge.classList.remove(F?_e:G),ge.classList.add(F?G:_e),this._isVisible=F,F&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Te=getComputedStyle(ge);("0s"===Te.getPropertyValue("animation-duration")||"none"===Te.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}F&&this._onShow(),this._animationsDisabled&&(ge.classList.add("_mat-animation-noopable"),this._finalizeAnimation(F))}}return j.\u0275fac=function(F){return new(F||j)(w.Y36(w.sBO),w.Y36(w.QbO,8))},j.\u0275dir=w.lG2({type:j}),j})(),qe=(()=>{class j extends Ce{constructor(F,ge,G){super(F,G),this._breakpointObserver=ge,this._isHandset=this._breakpointObserver.observe(U.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return j.\u0275fac=function(F){return new(F||j)(w.Y36(w.sBO),w.Y36(U.Yg),w.Y36(w.QbO,8))},j.\u0275cmp=w.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(F,ge){if(1&F&&w.Gf(ee,7),2&F){let G;w.iGM(G=w.CRH())&&(ge._tooltip=G.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(F,ge){1&F&&w.NdJ("mouseleave",function(_e){return ge._handleMouseLeave(_e)}),2&F&&w.Udp("zoom",ge.isVisible()?1:null)},features:[w.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(F,ge){if(1&F&&(w.TgZ(0,"div",0,1),w.NdJ("animationend",function(_e){return ge._handleAnimationEnd(_e)}),w.ALo(2,"async"),w._uU(3),w.qZA()),2&F){let G;w.ekj("mat-tooltip-handset",null==(G=w.lcZ(2,4,ge._isHandset))?null:G.matches),w.Q6J("ngClass",ge.tooltipClass),w.xp6(3),w.Oqu(ge.message)}},dependencies:[_.mk,_.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),j})(),Pe=(()=>{class j{}return j.\u0275fac=function(F){return new(F||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({providers:[ue],imports:[d.rt,_.ez,e.U8,g.BQ,g.BQ,b.ZD]}),j})()},35423:(We,pe,h)=>{"use strict";h.d(pe,{Ar:()=>ne,GZ:()=>z,JZ:()=>ve,WX:()=>O,dp:()=>ce,eu:()=>ee,fQ:()=>N,gi:()=>he,kc:()=>v,uo:()=>A});var e=h(57851),d=h(94650),_=h(3238),w=h(21281),g=h(95017),b=h(61135),y=h(56451),E=h(95698),S=h(54004);const U=(0,_.sb)((0,_.Id)(e.Hs));let A=(()=>{class H extends U{constructor(q,ue,Ee){super(q,ue),this.tabIndex=Number(Ee)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return H.\u0275fac=function(q){return new(q||H)(d.Y36(d.SBq),d.Y36(e._0),d.$8M("tabindex"))},H.\u0275dir=d.lG2({type:H,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[d._Bn([{provide:e.Hs,useExisting:H}]),d.qOj]}),H})(),N=(()=>{class H extends e.rO{}return H.\u0275fac=function(){let Y;return function(ue){return(Y||(Y=d.n5z(H)))(ue||H)}}(),H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[d._Bn([{provide:e.rO,useExisting:H}]),d.qOj]}),H})(),z=(()=>{class H extends e.Xx{constructor(q,ue,Ee,De){super(q,ue,Ee),this._disabled=!1,this.tabIndex=Number(De)||0}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=q??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return H.\u0275fac=function(q){return new(q||H)(d.Y36(d.SBq),d.Y36(e._0),d.Y36(d.ZZ4),d.$8M("tabindex"))},H.\u0275dir=d.lG2({type:H,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[d._Bn([{provide:e.Xx,useExisting:H},{provide:e.Hs,useExisting:H},{provide:e.HI,useExisting:H}]),d.qOj]}),H})(),ne=(()=>{class H{constructor(q,ue){this.viewContainer=q,this._node=ue}}return H.\u0275fac=function(q){return new(q||H)(d.Y36(d.s_b),d.Y36(e.HI,8))},H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeOutlet",""]],features:[d._Bn([{provide:e.cu,useExisting:H}])]}),H})(),he=(()=>{class H extends e._0{}return H.\u0275fac=function(){let Y;return function(ue){return(Y||(Y=d.n5z(H)))(ue||H)}}(),H.\u0275cmp=d.Xpm({type:H,selectors:[["mat-tree"]],viewQuery:function(q,ue){if(1&q&&d.Gf(ne,7),2&q){let Ee;d.iGM(Ee=d.CRH())&&(ue._nodeOutlet=Ee.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[d._Bn([{provide:e._0,useExisting:H}]),d.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(q,ue){1&q&&d.GkF(0,0)},dependencies:[ne],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),H})(),ee=(()=>{class H extends e.Ud{}return H.\u0275fac=function(){let Y;return function(ue){return(Y||(Y=d.n5z(H)))(ue||H)}}(),H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[d._Bn([{provide:e.Ud,useExisting:H}]),d.qOj]}),H})(),ce=(()=>{class H{}return H.\u0275fac=function(q){return new(q||H)},H.\u0275mod=d.oAB({type:H}),H.\u0275inj=d.cJS({imports:[e.nZ,_.BQ,_.BQ]}),H})();class ve{constructor(Y,q,ue,Ee){this.transformFunction=Y,this.getLevel=q,this.isExpandable=ue,this.getChildren=Ee}_flattenNode(Y,q,ue,Ee){const De=this.transformFunction(Y,q);if(ue.push(De),this.isExpandable(De)){const Se=this.getChildren(Y);Se&&(Array.isArray(Se)?this._flattenChildren(Se,q,ue,Ee):Se.pipe((0,E.q)(1)).subscribe(Ge=>{this._flattenChildren(Ge,q,ue,Ee)}))}return ue}_flattenChildren(Y,q,ue,Ee){Y.forEach((De,Se)=>{let Ge=Ee.slice();Ge.push(Se!=Y.length-1),this._flattenNode(De,q+1,ue,Ge)})}flattenNodes(Y){let q=[];return Y.forEach(ue=>this._flattenNode(ue,0,q,[])),q}expandFlattenedNodes(Y,q){let ue=[],Ee=[];return Ee[0]=!0,Y.forEach(De=>{let Se=!0;for(let Ge=0;Ge<=this.getLevel(De);Ge++)Se=Se&&Ee[Ge];Se&&ue.push(De),this.isExpandable(De)&&(Ee[this.getLevel(De)+1]=q.isExpanded(De))}),ue}}class v extends g.o2{constructor(Y,q,ue){super(),this._treeControl=Y,this._treeFlattener=q,this._flattenedData=new b.X([]),this._expandedData=new b.X([]),this._data=new b.X([]),ue&&(this.data=ue)}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,y.T)(Y.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,S.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class O extends g.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(Y){this._data.next(Y)}connect(Y){return(0,y.T)(Y.viewChange,this._data).pipe((0,S.U)(()=>this.data))}disconnect(){}}},11481:(We,pe,h)=>{"use strict";h.d(pe,{Dx:()=>n,H7:()=>rn,b2:()=>r,q6:()=>ct,se:()=>Ce});var e=h(36895),d=h(94650);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends _{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(It,Ct,kt){return It.addEventListener(Ct,kt,!1),()=>{It.removeEventListener(Ct,kt,!1)}}dispatchEvent(It,Ct){It.dispatchEvent(Ct)}remove(It){It.parentNode&&It.parentNode.removeChild(It)}createElement(It,Ct){return(Ct=Ct||this.getDefaultDocument()).createElement(It)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(It){return It.nodeType===Node.ELEMENT_NODE}isShadowRoot(It){return It instanceof DocumentFragment}getGlobalEventTarget(It,Ct){return"window"===Ct?window:"document"===Ct?It:"body"===Ct?It.body:null}getBaseHref(It){const Ct=function b(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Ct?null:function E(Bt){y=y||document.createElement("a"),y.setAttribute("href",Bt);const It=y.pathname;return"/"===It.charAt(0)?It:`/${It}`}(Ct)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(It){return(0,e.Mx)(document.cookie,It)}}let y,g=null;const S=new d.OlP("TRANSITION_ID"),A=[{provide:d.ip1,useFactory:function U(Bt,It,Ct){return()=>{Ct.get(d.CZH).donePromise.then(()=>{const kt=(0,e.q)(),Yt=It.querySelectorAll(`style[ng-transition="${Bt}"]`);for(let pn=0;pn{class Bt{build(){return new XMLHttpRequest}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();const Q=new d.OlP("EventManagerPlugins");let ne=(()=>{class Bt{constructor(Ct,kt){this._zone=kt,this._eventNameToPlugin=new Map,Ct.forEach(Yt=>Yt.manager=this),this._plugins=Ct.slice().reverse()}addEventListener(Ct,kt,Yt){return this._findPluginFor(kt).addEventListener(Ct,kt,Yt)}addGlobalEventListener(Ct,kt,Yt){return this._findPluginFor(kt).addGlobalEventListener(Ct,kt,Yt)}getZone(){return this._zone}_findPluginFor(Ct){const kt=this._eventNameToPlugin.get(Ct);if(kt)return kt;const Yt=this._plugins;for(let pn=0;pn{class Bt{constructor(){this._stylesSet=new Set}addStyles(Ct){const kt=new Set;Ct.forEach(Yt=>{this._stylesSet.has(Yt)||(this._stylesSet.add(Yt),kt.add(Yt))}),this.onStylesAdded(kt)}onStylesAdded(Ct){}getAllStyles(){return Array.from(this._stylesSet)}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})(),fe=(()=>{class Bt extends ee{constructor(Ct){super(),this._doc=Ct,this._hostNodes=new Map,this._hostNodes.set(Ct.head,[])}_addStylesToHost(Ct,kt,Yt){Ct.forEach(pn=>{const vn=this._doc.createElement("style");vn.textContent=pn,Yt.push(kt.appendChild(vn))})}addHost(Ct){const kt=[];this._addStylesToHost(this._stylesSet,Ct,kt),this._hostNodes.set(Ct,kt)}removeHost(Ct){const kt=this._hostNodes.get(Ct);kt&&kt.forEach(ce),this._hostNodes.delete(Ct)}onStylesAdded(Ct){this._hostNodes.forEach((kt,Yt)=>{this._addStylesToHost(Ct,Yt,kt)})}ngOnDestroy(){this._hostNodes.forEach(Ct=>Ct.forEach(ce))}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(e.K0))},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();function ce(Bt){(0,e.q)().remove(Bt)}const ve={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/"},v=/%COMP%/g,H="%COMP%",Y=`_nghost-${H}`,q=`_ngcontent-${H}`;function De(Bt,It,Ct){for(let kt=0;kt{if("__ngUnwrap__"===It)return Bt;!1===Bt(It)&&(It.preventDefault(),It.returnValue=!1)}}let Ce=(()=>{class Bt{constructor(Ct,kt,Yt){this.eventManager=Ct,this.sharedStylesHost=kt,this.appId=Yt,this.rendererByCompId=new Map,this.defaultRenderer=new qe(Ct)}createRenderer(Ct,kt){if(!Ct||!kt)return this.defaultRenderer;switch(kt.encapsulation){case d.ifc.Emulated:{let Yt=this.rendererByCompId.get(kt.id);return Yt||(Yt=new I(this.eventManager,this.sharedStylesHost,kt,this.appId),this.rendererByCompId.set(kt.id,Yt)),Yt.applyToHost(Ct),Yt}case 1:case d.ifc.ShadowDom:return new F(this.eventManager,this.sharedStylesHost,Ct,kt);default:if(!this.rendererByCompId.has(kt.id)){const Yt=De(kt.id,kt.styles,[]);this.sharedStylesHost.addStyles(Yt),this.rendererByCompId.set(kt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(ne),d.LFG(fe),d.LFG(d.AFp))},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();class qe{constructor(It){this.eventManager=It,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(It,Ct){return Ct?document.createElementNS(ve[Ct]||Ct,It):document.createElement(It)}createComment(It){return document.createComment(It)}createText(It){return document.createTextNode(It)}appendChild(It,Ct){(j(It)?It.content:It).appendChild(Ct)}insertBefore(It,Ct,kt){It&&(j(It)?It.content:It).insertBefore(Ct,kt)}removeChild(It,Ct){It&&It.removeChild(Ct)}selectRootElement(It,Ct){let kt="string"==typeof It?document.querySelector(It):It;if(!kt)throw new Error(`The selector "${It}" did not match any elements`);return Ct||(kt.textContent=""),kt}parentNode(It){return It.parentNode}nextSibling(It){return It.nextSibling}setAttribute(It,Ct,kt,Yt){if(Yt){Ct=Yt+":"+Ct;const pn=ve[Yt];pn?It.setAttributeNS(pn,Ct,kt):It.setAttribute(Ct,kt)}else It.setAttribute(Ct,kt)}removeAttribute(It,Ct,kt){if(kt){const Yt=ve[kt];Yt?It.removeAttributeNS(Yt,Ct):It.removeAttribute(`${kt}:${Ct}`)}else It.removeAttribute(Ct)}addClass(It,Ct){It.classList.add(Ct)}removeClass(It,Ct){It.classList.remove(Ct)}setStyle(It,Ct,kt,Yt){Yt&(d.JOm.DashCase|d.JOm.Important)?It.style.setProperty(Ct,kt,Yt&d.JOm.Important?"important":""):It.style[Ct]=kt}removeStyle(It,Ct,kt){kt&d.JOm.DashCase?It.style.removeProperty(Ct):It.style[Ct]=""}setProperty(It,Ct,kt){It[Ct]=kt}setValue(It,Ct){It.nodeValue=Ct}listen(It,Ct,kt){return"string"==typeof It?this.eventManager.addGlobalEventListener(It,Ct,Se(kt)):this.eventManager.addEventListener(It,Ct,Se(kt))}}function j(Bt){return"TEMPLATE"===Bt.tagName&&void 0!==Bt.content}class I extends qe{constructor(It,Ct,kt,Yt){super(It),this.component=kt;const pn=De(Yt+"-"+kt.id,kt.styles,[]);Ct.addStyles(pn),this.contentAttr=function ue(Bt){return q.replace(v,Bt)}(Yt+"-"+kt.id),this.hostAttr=function Ee(Bt){return Y.replace(v,Bt)}(Yt+"-"+kt.id)}applyToHost(It){super.setAttribute(It,this.hostAttr,"")}createElement(It,Ct){const kt=super.createElement(It,Ct);return super.setAttribute(kt,this.contentAttr,""),kt}}class F extends qe{constructor(It,Ct,kt,Yt){super(It),this.sharedStylesHost=Ct,this.hostEl=kt,this.shadowRoot=kt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const pn=De(Yt.id,Yt.styles,[]);for(let vn=0;vn{class Bt extends he{constructor(Ct){super(Ct)}supports(Ct){return!0}addEventListener(Ct,kt,Yt){return Ct.addEventListener(kt,Yt,!1),()=>this.removeEventListener(Ct,kt,Yt)}removeEventListener(Ct,kt,Yt){return Ct.removeEventListener(kt,Yt)}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(e.K0))},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();const G=["alt","control","meta","shift"],Te={"\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"},et={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:Bt=>Bt.altKey,control:Bt=>Bt.ctrlKey,meta:Bt=>Bt.metaKey,shift:Bt=>Bt.shiftKey};let vt=(()=>{class Bt extends he{constructor(Ct){super(Ct)}supports(Ct){return null!=Bt.parseEventName(Ct)}addEventListener(Ct,kt,Yt){const pn=Bt.parseEventName(kt),vn=Bt.eventCallback(pn.fullKey,Yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ct,pn.domEventName,vn))}static parseEventName(Ct){const kt=Ct.toLowerCase().split("."),Yt=kt.shift();if(0===kt.length||"keydown"!==Yt&&"keyup"!==Yt)return null;const pn=Bt._normalizeKey(kt.pop());let vn="";if(G.forEach(Wn=>{const _t=kt.indexOf(Wn);_t>-1&&(kt.splice(_t,1),vn+=Wn+".")}),vn+=pn,0!=kt.length||0===pn.length)return null;const fn={};return fn.domEventName=Yt,fn.fullKey=vn,fn}static getEventFullKey(Ct){let kt="",Yt=function rt(Bt){let It=Bt.key;if(null==It){if(It=Bt.keyIdentifier,null==It)return"Unidentified";It.startsWith("U+")&&(It=String.fromCharCode(parseInt(It.substring(2),16)),3===Bt.location&&et.hasOwnProperty(It)&&(It=et[It]))}return Te[It]||It}(Ct);return Yt=Yt.toLowerCase()," "===Yt?Yt="space":"."===Yt&&(Yt="dot"),G.forEach(pn=>{pn!=Yt&&(0,Xe[pn])(Ct)&&(kt+=pn+".")}),kt+=Yt,kt}static eventCallback(Ct,kt,Yt){return pn=>{Bt.getEventFullKey(pn)===Ct&&Yt.runGuarded(()=>kt(pn))}}static _normalizeKey(Ct){return"esc"===Ct?"escape":Ct}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(e.K0))},Bt.\u0275prov=d.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();const ct=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:e.bD},{provide:d.g9A,useValue:function ie(){w.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function Ze(){return(0,d.RDi)(document),document},deps:[]}]),ze=new d.OlP(""),oe=[{provide:d.rWj,useClass:class N{addToWindow(It){d.dqk.getAngularTestability=(kt,Yt=!0)=>{const pn=It.findTestabilityInTree(kt,Yt);if(null==pn)throw new Error("Could not find testability for element.");return pn},d.dqk.getAllAngularTestabilities=()=>It.getAllTestabilities(),d.dqk.getAllAngularRootElements=()=>It.getAllRootElements(),d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push(kt=>{const Yt=d.dqk.getAllAngularTestabilities();let pn=Yt.length,vn=!1;const fn=function(Wn){vn=vn||Wn,pn--,0==pn&&kt(vn)};Yt.forEach(function(Wn){Wn.whenStable(fn)})})}findTestabilityInTree(It,Ct,kt){return null==Ct?null:It.getTestability(Ct)??(kt?(0,e.q)().isShadowRoot(Ct)?this.findTestabilityInTree(It,Ct.host,!0):this.findTestabilityInTree(It,Ct.parentElement,!0):null)}},deps:[]},{provide:d.lri,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]}],V=[{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function ae(){return new d.qLn},deps:[]},{provide:Q,useClass:ge,multi:!0,deps:[e.K0,d.R0b,d.Lbi]},{provide:Q,useClass:vt,multi:!0,deps:[e.K0]},{provide:Ce,useClass:Ce,deps:[ne,fe,d.AFp]},{provide:d.FYo,useExisting:Ce},{provide:ee,useExisting:fe},{provide:fe,useClass:fe,deps:[e.K0]},{provide:ne,useClass:ne,deps:[Q,d.R0b]},{provide:e.JF,useClass:z,deps:[]},[]];let r=(()=>{class Bt{constructor(Ct){}static withServerTransition(Ct){return{ngModule:Bt,providers:[{provide:d.AFp,useValue:Ct.appId},{provide:S,useExisting:d.AFp},A]}}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(ze,12))},Bt.\u0275mod=d.oAB({type:Bt}),Bt.\u0275inj=d.cJS({providers:[...V,...oe],imports:[e.ez,d.hGG]}),Bt})(),n=(()=>{class Bt{constructor(Ct){this._doc=Ct}getTitle(){return this._doc.title}setTitle(Ct){this._doc.title=Ct||""}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(e.K0))},Bt.\u0275prov=d.Yz7({token:Bt,factory:function(Ct){let kt=null;return kt=Ct?new Ct:function a(){return new n((0,d.LFG)(e.K0))}(),kt},providedIn:"root"}),Bt})();typeof window<"u"&&window;let rn=(()=>{class Bt{}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)},Bt.\u0275prov=d.Yz7({token:Bt,factory:function(Ct){let kt=null;return kt=Ct?new(Ct||Bt):d.LFG(nn),kt},providedIn:"root"}),Bt})(),nn=(()=>{class Bt extends rn{constructor(Ct){super(),this._doc=Ct}sanitize(Ct,kt){if(null==kt)return null;switch(Ct){case d.q3G.NONE:return kt;case d.q3G.HTML:return(0,d.qzn)(kt,"HTML")?(0,d.z3N)(kt):(0,d.EiD)(this._doc,String(kt)).toString();case d.q3G.STYLE:return(0,d.qzn)(kt,"Style")?(0,d.z3N)(kt):kt;case d.q3G.SCRIPT:if((0,d.qzn)(kt,"Script"))return(0,d.z3N)(kt);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.qzn)(kt,"URL")?(0,d.z3N)(kt):(0,d.mCW)(String(kt));case d.q3G.RESOURCE_URL:if((0,d.qzn)(kt,"ResourceURL"))return(0,d.z3N)(kt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ct){return(0,d.JVY)(Ct)}bypassSecurityTrustStyle(Ct){return(0,d.L6k)(Ct)}bypassSecurityTrustScript(Ct){return(0,d.eBb)(Ct)}bypassSecurityTrustUrl(Ct){return(0,d.LAX)(Ct)}bypassSecurityTrustResourceUrl(Ct){return(0,d.pB0)(Ct)}}return Bt.\u0275fac=function(Ct){return new(Ct||Bt)(d.LFG(e.K0))},Bt.\u0275prov=d.Yz7({token:Bt,factory:function(Ct){let kt=null;return kt=Ct?new Ct:function Jt(Bt){return new nn(Bt.get(e.K0))}(d.LFG(d.zs3)),kt},providedIn:"root"}),Bt})()},94364:(We,pe,h)=>{"use strict";h.d(pe,{gz:()=>jn,m2:()=>kn,OD:()=>zi,GZ:()=>ds,wN:()=>rl,F0:()=>Ai,rH:()=>ka,yS:()=>Va,Bz:()=>ei,lC:()=>Ki});var e=h(94650),d=h(69751),_=h(50727),w=h(54482),g=h(25403);function b(){return(0,w.e)((X,re)=>{let k=null;X._refCount++;const me=(0,g.x)(re,void 0,void 0,void 0,()=>{if(!X||X._refCount<=0||0<--X._refCount)return void(k=null);const Be=X._connection,ut=k;k=null,Be&&(!ut||Be===ut)&&Be.unsubscribe(),re.unsubscribe()});X.subscribe(me),me.closed||(k=X.connect())})}class y extends d.y{constructor(re,k){super(),this.source=re,this.subjectFactory=k,this._subject=null,this._refCount=0,this._connection=null,(0,w.A)(re)&&(this.lift=re.lift)}_subscribe(re){return this.getSubject().subscribe(re)}getSubject(){const re=this._subject;return(!re||re.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:re}=this;this._subject=this._connection=null,re?.unsubscribe()}connect(){let re=this._connection;if(!re){re=this._connection=new _.w0;const k=this.getSubject();re.add(this.source.subscribe((0,g.x)(k,void 0,()=>{this._teardown(),k.complete()},me=>{this._teardown(),k.error(me)},()=>this._teardown()))),re.closed&&(this._connection=null,re=_.w0.EMPTY)}return re}refCount(){return b()(this)}}var E=h(32076),S=h(39646),U=h(61135),A=h(86805),N=h(39841),z=h(97272),Q=h(49770),ne=h(89635),he=h(62843),ee=h(60515),fe=h(77579),ce=h(36895),ve=h(57359);function v(X,re){return(0,w.e)((0,ve.U)(X,re,arguments.length>=2,!0))}var O=h(39300);function H(X){return X<=0?()=>ee.E:(0,w.e)((re,k)=>{let me=[];re.subscribe((0,g.x)(k,Be=>{me.push(Be),X{for(const Be of me)k.next(Be);k.complete()},void 0,()=>{me=null}))})}var Y=h(18068),q=h(46590),ue=h(44671);function Ee(X,re){const k=arguments.length>=2;return me=>me.pipe(X?(0,O.h)((Be,ut)=>X(Be,ut,me)):ue.y,H(1),k?(0,q.d)(re):(0,Y.T)(()=>new A.K))}var De=h(54004),Se=h(63900),Ge=h(95698),Ce=h(68675),qe=h(86099),Pe=h(50590),we=h(24351),j=h(18505),I=h(70262),F=h(22529),ge=h(69718),G=h(28746),_e=h(8189),Te=h(11481);const et="primary";class Xe{constructor(re){this.params=re||{}}has(re){return Object.prototype.hasOwnProperty.call(this.params,re)}get(re){if(this.has(re)){const k=this.params[re];return Array.isArray(k)?k[0]:k}return null}getAll(re){if(this.has(re)){const k=this.params[re];return Array.isArray(k)?k:[k]}return[]}get keys(){return Object.keys(this.params)}}function vt(X){return new Xe(X)}function rt(X,re,k){const me=k.path.split("/");if(me.length>X.length||"full"===k.pathMatch&&(re.hasChildren()||me.lengthme[ut]===Be)}return X===re}function ie(X){return Array.prototype.concat.apply([],X)}function ae(X){return X.length>0?X[X.length-1]:null}function Je(X,re){for(const k in X)X.hasOwnProperty(k)&&re(X[k],k)}function ct(X){return(0,e.CqO)(X)?X:(0,e.QGY)(X)?(0,E.D)(Promise.resolve(X)):(0,S.of)(X)}const V={exact:function l(X,re,k){if(!Me(X.segments,re.segments)||!i(X.segments,re.segments,k)||X.numberOfChildren!==re.numberOfChildren)return!1;for(const me in re.children)if(!X.children[me]||!l(X.children[me],re.children[me],k))return!1;return!0},subset:n},r={exact:function f(X,re){return W(X,re)},subset:function a(X,re){return Object.keys(re).length<=Object.keys(X).length&&Object.keys(re).every(k=>le(X[k],re[k]))},ignored:()=>!0};function s(X,re,k){return V[k.paths](X.root,re.root,k.matrixParams)&&r[k.queryParams](X.queryParams,re.queryParams)&&!("exact"===k.fragment&&X.fragment!==re.fragment)}function n(X,re,k){return t(X,re,re.segments,k)}function t(X,re,k,me){if(X.segments.length>k.length){const Be=X.segments.slice(0,k.length);return!(!Me(Be,k)||re.hasChildren()||!i(Be,k,me))}if(X.segments.length===k.length){if(!Me(X.segments,k)||!i(X.segments,k,me))return!1;for(const Be in re.children)if(!X.children[Be]||!n(X.children[Be],re.children[Be],me))return!1;return!0}{const Be=k.slice(0,X.segments.length),ut=k.slice(X.segments.length);return!!(Me(X.segments,Be)&&i(X.segments,Be,me)&&X.children[et])&&t(X.children[et],re,ut,me)}}function i(X,re,k){return re.every((me,Be)=>r[k](X[Be].parameters,me.parameters))}class o{constructor(re,k,me){this.root=re,this.queryParams=k,this.fragment=me}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vt(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class c{constructor(re,k){this.segments=re,this.children=k,this.parent=null,Je(k,(me,Be)=>me.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pt(this)}}class p{constructor(re,k){this.path=re,this.parameters=k}get parameterMap(){return this._parameterMap||(this._parameterMap=vt(this.parameters)),this._parameterMap}toString(){return Ve(this)}}function Me(X,re){return X.length===re.length&&X.every((k,me)=>k.path===re[me].path)}let Dt=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return new Zt},providedIn:"root"}),X})();class Zt{parse(re){const k=new nn(re);return new o(k.parseRootSegment(),k.parseQueryParams(),k.parseFragment())}serialize(re){const k=`/${je(re.root,!0)}`,me=function nt(X){const re=Object.keys(X).map(k=>{const me=X[k];return Array.isArray(me)?me.map(Be=>`${Qe(k)}=${Qe(Be)}`).join("&"):`${Qe(k)}=${Qe(me)}`}).filter(k=>!!k);return re.length?`?${re.join("&")}`:""}(re.queryParams);return`${k}${me}${"string"==typeof re.fragment?`#${function ye(X){return encodeURI(X)}(re.fragment)}`:""}`}}const Et=new Zt;function pt(X){return X.segments.map(re=>Ve(re)).join("/")}function je(X,re){if(!X.hasChildren())return pt(X);if(re){const k=X.children[et]?je(X.children[et],!1):"",me=[];return Je(X.children,(Be,ut)=>{ut!==et&&me.push(`${ut}:${je(Be,!1)}`)}),me.length>0?`${k}(${me.join("//")})`:k}{const k=function it(X,re){let k=[];return Je(X.children,(me,Be)=>{Be===et&&(k=k.concat(re(me,Be)))}),Je(X.children,(me,Be)=>{Be!==et&&(k=k.concat(re(me,Be)))}),k}(X,(me,Be)=>Be===et?[je(X.children[et],!1)]:[`${Be}:${je(me,!1)}`]);return 1===Object.keys(X.children).length&&null!=X.children[et]?`${pt(X)}/${k[0]}`:`${pt(X)}/(${k.join("//")})`}}function Oe(X){return encodeURIComponent(X).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qe(X){return Oe(X).replace(/%3B/gi,";")}function Ie(X){return Oe(X).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $(X){return decodeURIComponent(X)}function de(X){return $(X.replace(/\+/g,"%20"))}function Ve(X){return`${Ie(X.path)}${function $e(X){return Object.keys(X).map(re=>`;${Ie(re)}=${Ie(X[re])}`).join("")}(X.parameters)}`}const Le=/^[^\/()?;=#]+/;function st(X){const re=X.match(Le);return re?re[0]:""}const Pt=/^[^=?&#]+/,rn=/^[^&#]+/;class nn{constructor(re){this.url=re,this.remaining=re}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new c([],{}):new c([],this.parseChildren())}parseQueryParams(){const re={};if(this.consumeOptional("?"))do{this.parseQueryParam(re)}while(this.consumeOptional("&"));return re}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const re=[];for(this.peekStartsWith("(")||re.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),re.push(this.parseSegment());let k={};this.peekStartsWith("/(")&&(this.capture("/"),k=this.parseParens(!0));let me={};return this.peekStartsWith("(")&&(me=this.parseParens(!1)),(re.length>0||Object.keys(k).length>0)&&(me[et]=new c(re,k)),me}parseSegment(){const re=st(this.remaining);if(""===re&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(re),new p($(re),this.parseMatrixParams())}parseMatrixParams(){const re={};for(;this.consumeOptional(";");)this.parseParam(re);return re}parseParam(re){const k=st(this.remaining);if(!k)return;this.capture(k);let me="";if(this.consumeOptional("=")){const Be=st(this.remaining);Be&&(me=Be,this.capture(me))}re[$(k)]=$(me)}parseQueryParam(re){const k=function Vt(X){const re=X.match(Pt);return re?re[0]:""}(this.remaining);if(!k)return;this.capture(k);let me="";if(this.consumeOptional("=")){const wt=function Jt(X){const re=X.match(rn);return re?re[0]:""}(this.remaining);wt&&(me=wt,this.capture(me))}const Be=de(k),ut=de(me);if(re.hasOwnProperty(Be)){let wt=re[Be];Array.isArray(wt)||(wt=[wt],re[Be]=wt),wt.push(ut)}else re[Be]=ut}parseParens(re){const k={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const me=st(this.remaining),Be=this.remaining[me.length];if("/"!==Be&&")"!==Be&&";"!==Be)throw new e.vHH(4010,!1);let ut;me.indexOf(":")>-1?(ut=me.slice(0,me.indexOf(":")),this.capture(ut),this.capture(":")):re&&(ut=et);const wt=this.parseChildren();k[ut]=1===Object.keys(wt).length?wt[et]:new c([],wt),this.consumeOptional("//")}return k}peekStartsWith(re){return this.remaining.startsWith(re)}consumeOptional(re){return!!this.peekStartsWith(re)&&(this.remaining=this.remaining.substring(re.length),!0)}capture(re){if(!this.consumeOptional(re))throw new e.vHH(4011,!1)}}function un(X){return X.segments.length>0?new c([],{[et]:X}):X}function Bt(X){const re={};for(const me of Object.keys(X.children)){const ut=Bt(X.children[me]);(ut.segments.length>0||ut.hasChildren())&&(re[me]=ut)}return function It(X){if(1===X.numberOfChildren&&X.children[et]){const re=X.children[et];return new c(X.segments.concat(re.segments),re.children)}return X}(new c(X.segments,re))}function Ct(X){return X instanceof o}function fn(X,re,k,me,Be){var ut;if(0===k.length)return Ht(re.root,re.root,re.root,me,Be);const wt=function bt(X){if("string"==typeof X[0]&&1===X.length&&"/"===X[0])return new Ke(!0,0,X);let re=0,k=!1;const me=X.reduce((Be,ut,wt)=>{if("object"==typeof ut&&null!=ut){if(ut.outlets){const Rt={};return Je(ut.outlets,(Gt,on)=>{Rt[on]="string"==typeof Gt?Gt.split("/"):Gt}),[...Be,{outlets:Rt}]}if(ut.segmentPath)return[...Be,ut.segmentPath]}return"string"!=typeof ut?[...Be,ut]:0===wt?(ut.split("/").forEach((Rt,Gt)=>{0==Gt&&"."===Rt||(0==Gt&&""===Rt?k=!0:".."===Rt?re++:""!=Rt&&Be.push(Rt))}),Be):[...Be,ut]},[]);return new Ke(k,re,me)}(k);if(wt.toRoot())return Ht(re.root,re.root,new c([],{}),me,Be);const Gt=function Rt(_n){var dn;const wn=function At(X,re,k,me){if(X.isAbsolute)return new Z(re.root,!0,0);if(-1===me)return new Z(k,k===re.root,0);return function Mt(X,re,k){let me=X,Be=re,ut=k;for(;ut>Be;){if(ut-=Be,me=me.parent,!me)throw new e.vHH(4005,!1);Be=me.segments.length}return new Z(me,!1,Be-ut)}(k,me+(Wn(X.commands[0])?0:1),X.numberOfDoubleDots)}(wt,re,null===(dn=X.snapshot)||void 0===dn?void 0:dn._urlSegment,_n),ti=wn.processChildren?Vn(wn.segmentGroup,wn.index,wt.commands):An(wn.segmentGroup,wn.index,wt.commands);return Ht(re.root,wn.segmentGroup,ti,me,Be)}(null===(ut=X.snapshot)||void 0===ut?void 0:ut._lastPathIndex);return Gt}function Wn(X){return"object"==typeof X&&null!=X&&!X.outlets&&!X.segmentPath}function _t(X){return"object"==typeof X&&null!=X&&X.outlets}function Ht(X,re,k,me,Be){let wt,ut={};me&&Je(me,(Gt,on)=>{ut[on]=Array.isArray(Gt)?Gt.map(_n=>`${_n}`):`${Gt}`}),wt=X===re?k:at(X,re,k);const Rt=un(Bt(wt));return new o(Rt,ut,Be)}function at(X,re,k){const me={};return Je(X.children,(Be,ut)=>{me[ut]=Be===re?k:at(Be,re,k)}),new c(X.segments,me)}class Ke{constructor(re,k,me){if(this.isAbsolute=re,this.numberOfDoubleDots=k,this.commands=me,re&&me.length>0&&Wn(me[0]))throw new e.vHH(4003,!1);const Be=me.find(_t);if(Be&&Be!==ae(me))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Z{constructor(re,k,me){this.segmentGroup=re,this.processChildren=k,this.index=me}}function An(X,re,k){if(X||(X=new c([],{})),0===X.segments.length&&X.hasChildren())return Vn(X,re,k);const me=function Pn(X,re,k){let me=0,Be=re;const ut={match:!1,pathIndex:0,commandIndex:0};for(;Be=k.length)return ut;const wt=X.segments[Be],Rt=k[me];if(_t(Rt))break;const Gt=`${Rt}`,on=me0&&void 0===Gt)break;if(Gt&&on&&"object"==typeof on&&void 0===on.outlets){if(!Gn(Gt,on,wt))return ut;me+=2}else{if(!Gn(Gt,{},wt))return ut;me++}Be++}return{match:!0,pathIndex:Be,commandIndex:me}}(X,re,k),Be=k.slice(me.commandIndex);if(me.match&&me.pathIndex{"string"==typeof ut&&(ut=[ut]),null!==ut&&(Be[wt]=An(X.children[wt],re,ut))}),Je(X.children,(ut,wt)=>{void 0===me[wt]&&(Be[wt]=ut)}),new c(X.segments,Be)}}function $n(X,re,k){const me=X.segments.slice(0,re);let Be=0;for(;Be{"string"==typeof k&&(k=[k]),null!==k&&(re[me]=$n(new c([],{}),0,k))}),re}function oi(X){const re={};return Je(X,(k,me)=>re[me]=`${k}`),re}function Gn(X,re,k){return X==k.path&&W(re,k.parameters)}class In{constructor(re,k){this.id=re,this.url=k}}class zi extends In{constructor(re,k,me="imperative",Be=null){super(re,k),this.type=0,this.navigationTrigger=me,this.restoredState=Be}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kn extends In{constructor(re,k,me){super(re,k),this.urlAfterRedirects=me,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zn extends In{constructor(re,k,me,Be){super(re,k),this.reason=me,this.code=Be,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ni extends In{constructor(re,k,me,Be){super(re,k),this.error=me,this.target=Be,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ki extends In{constructor(re,k,me,Be){super(re,k),this.urlAfterRedirects=me,this.state=Be,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ri extends In{constructor(re,k,me,Be){super(re,k),this.urlAfterRedirects=me,this.state=Be,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fi extends In{constructor(re,k,me,Be,ut){super(re,k),this.urlAfterRedirects=me,this.state=Be,this.shouldActivate=ut,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hi extends In{constructor(re,k,me,Be){super(re,k),this.urlAfterRedirects=me,this.state=Be,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rr extends In{constructor(re,k,me,Be){super(re,k),this.urlAfterRedirects=me,this.state=Be,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir{constructor(re){this.route=re,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gr{constructor(re){this.route=re,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rr{constructor(re){this.snapshot=re,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ar{constructor(re){this.snapshot=re,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class la{constructor(re){this.snapshot=re,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(re){this.snapshot=re,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tt{constructor(re,k,me){this.routerEvent=re,this.position=k,this.anchor=me,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class te{constructor(re){this._root=re}get root(){return this._root.value}parent(re){const k=this.pathFromRoot(re);return k.length>1?k[k.length-2]:null}children(re){const k=dt(re,this._root);return k?k.children.map(me=>me.value):[]}firstChild(re){const k=dt(re,this._root);return k&&k.children.length>0?k.children[0].value:null}siblings(re){const k=xe(re,this._root);return k.length<2?[]:k[k.length-2].children.map(Be=>Be.value).filter(Be=>Be!==re)}pathFromRoot(re){return xe(re,this._root).map(k=>k.value)}}function dt(X,re){if(X===re.value)return re;for(const k of re.children){const me=dt(X,k);if(me)return me}return null}function xe(X,re){if(X===re.value)return[re];for(const k of re.children){const me=xe(X,k);if(me.length)return me.unshift(re),me}return[]}class ot{constructor(re,k){this.value=re,this.children=k}toString(){return`TreeNode(${this.value})`}}function Nt(X){const re={};return X&&X.children.forEach(k=>re[k.value.outlet]=k),re}class en extends te{constructor(re,k){super(re),this.snapshot=k,xi(this,re)}toString(){return this.snapshot.toString()}}function cn(X,re){const k=function Fn(X,re){const wt=new qi([],{},{},"",{},et,re,null,X.root,-1,{});return new Vr("",new ot(wt,[]))}(X,re),me=new U.X([new p("",{})]),Be=new U.X({}),ut=new U.X({}),wt=new U.X({}),Rt=new U.X(""),Gt=new jn(me,Be,wt,Rt,ut,et,re,k.root);return Gt.snapshot=k.root,new en(new ot(Gt,[]),k)}class jn{constructor(re,k,me,Be,ut,wt,Rt,Gt){this.url=re,this.params=k,this.queryParams=me,this.fragment=Be,this.data=ut,this.outlet=wt,this.component=Rt,this._futureSnapshot=Gt}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,De.U)(re=>vt(re)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,De.U)(re=>vt(re)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function si(X,re="emptyOnly"){const k=X.pathFromRoot;let me=0;if("always"!==re)for(me=k.length-1;me>=1;){const Be=k[me],ut=k[me-1];if(Be.routeConfig&&""===Be.routeConfig.path)me--;else{if(ut.component)break;me--}}return function yr(X){return X.reduce((re,k)=>{var me;return{params:{...re.params,...k.params},data:{...re.data,...k.data},resolve:{...k.data,...re.resolve,...null===(me=k.routeConfig)||void 0===me?void 0:me.data,...k._resolvedData}}},{params:{},data:{},resolve:{}})}(k.slice(me))}class qi{constructor(re,k,me,Be,ut,wt,Rt,Gt,on,_n,dn,wn){this.url=re,this.params=k,this.queryParams=me,this.fragment=Be,this.data=ut,this.outlet=wt,this.component=Rt,this.routeConfig=Gt,this._urlSegment=on,this._lastPathIndex=_n,this._correctedLastPathIndex=wn??_n,this._resolve=dn}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=vt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(me=>me.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Vr extends te{constructor(re,k){super(k),this.url=re,xi(this,k)}toString(){return Tr(this._root)}}function xi(X,re){re.value._routerState=X,re.children.forEach(k=>xi(X,k))}function Tr(X){const re=X.children.length>0?` { ${X.children.map(Tr).join(", ")} } `:"";return`${X.value}${re}`}function _r(X){if(X.snapshot){const re=X.snapshot,k=X._futureSnapshot;X.snapshot=k,W(re.queryParams,k.queryParams)||X.queryParams.next(k.queryParams),re.fragment!==k.fragment&&X.fragment.next(k.fragment),W(re.params,k.params)||X.params.next(k.params),function ht(X,re){if(X.length!==re.length)return!1;for(let k=0;kW(k.parameters,re[me].parameters))}(X.url,re.url);return k&&!(!X.parent!=!re.parent)&&(!X.parent||or(X.parent,re.parent))}function lr(X,re,k){if(k&&X.shouldReuseRoute(re.value,k.value.snapshot)){const me=k.value;me._futureSnapshot=re.value;const Be=function Ar(X,re,k){return re.children.map(me=>{for(const Be of k.children)if(X.shouldReuseRoute(me.value,Be.value.snapshot))return lr(X,me,Be);return lr(X,me)})}(X,re,k);return new ot(me,Be)}{if(X.shouldAttach(re.value)){const ut=X.retrieve(re.value);if(null!==ut){const wt=ut.route;return wt.value._futureSnapshot=re.value,wt.children=re.children.map(Rt=>lr(X,Rt)),wt}}const me=function br(X){return new jn(new U.X(X.url),new U.X(X.params),new U.X(X.queryParams),new U.X(X.fragment),new U.X(X.data),X.outlet,X.component,X)}(re.value),Be=re.children.map(ut=>lr(X,ut));return new ot(me,Be)}}const cr="ngNavigationCancelingError";function Fr(X,re){const{redirectTo:k,navigationBehaviorOptions:me}=Ct(re)?{redirectTo:re,navigationBehaviorOptions:void 0}:re,Be=$r(!1,0,re);return Be.url=k,Be.navigationBehaviorOptions=me,Be}function $r(X,re,k){const me=new Error("NavigationCancelingError: "+(X||""));return me[cr]=!0,me.cancellationCode=re,k&&(me.url=k),me}function Ci(X){return Wi(X)&&Ct(X.url)}function Wi(X){return X&&X[cr]}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Qi,this.attachRef=null}}let Qi=(()=>{class X{constructor(){this.contexts=new Map}onChildOutletCreated(k,me){const Be=this.getOrCreateContext(k);Be.outlet=me,this.contexts.set(k,Be)}onChildOutletDestroyed(k){const me=this.getContext(k);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const k=this.contexts;return this.contexts=new Map,k}onOutletReAttached(k){this.contexts=k}getOrCreateContext(k){let me=this.getContext(k);return me||(me=new Ur,this.contexts.set(k,me)),me}getContext(k){return this.contexts.get(k)||null}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const Di=!1;let Ki=(()=>{class X{constructor(k,me,Be,ut,wt){this.parentContexts=k,this.location=me,this.changeDetector=ut,this.environmentInjector=wt,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=Be||et,k.onChildOutletCreated(this.name,this)}ngOnDestroy(){var k;(null===(k=this.parentContexts.getContext(this.name))||void 0===k?void 0:k.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const k=this.parentContexts.getContext(this.name);k&&k.route&&(k.attachRef?this.attach(k.attachRef,k.route):this.activateWith(k.route,k.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Di);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Di);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Di);this.location.detach();const k=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(k.instance),k}attach(k,me){this.activated=k,this._activatedRoute=me,this.location.insert(k.hostView),this.attachEvents.emit(k.instance)}deactivate(){if(this.activated){const k=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(k)}}activateWith(k,me){if(this.isActivated)throw new e.vHH(4013,Di);this._activatedRoute=k;const Be=this.location,wt=k._futureSnapshot.component,Rt=this.parentContexts.getOrCreateContext(this.name).children,Gt=new zn(k,Rt,Be.injector);if(me&&function eo(X){return!!X.resolveComponentFactory}(me)){const on=me.resolveComponentFactory(wt);this.activated=Be.createComponent(on,Be.length,Gt)}else this.activated=Be.createComponent(wt,{index:Be.length,injector:Gt,environmentInjector:me??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return X.\u0275fac=function(k){return new(k||X)(e.Y36(Qi),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},X.\u0275dir=e.lG2({type:X,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),X})();class zn{constructor(re,k,me){this.route=re,this.childContexts=k,this.parent=me}get(re,k){return re===jn?this.route:re===Qi?this.childContexts:this.parent.get(re,k)}}let qr=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275cmp=e.Xpm({type:X,selectors:[["ng-component"]],decls:1,vars:0,template:function(k,me){1&k&&e._UZ(0,"router-outlet")},dependencies:[Ki],encapsulation:2}),X})();function wr(X,re){var k;return X.providers&&!X._injector&&(X._injector=(0,e.MMx)(X.providers,re,`Route: ${X.path}`)),null!==(k=X._injector)&&void 0!==k?k:re}function gt(X){const re=X.children&&X.children.map(gt),k=re?{...X,children:re}:{...X};return!k.component&&!k.loadComponent&&(re||k.loadChildren)&&k.outlet&&k.outlet!==et&&(k.component=qr),k}function Ot(X){return X.outlet||et}function zt(X,re){const k=X.filter(me=>Ot(me)===re);return k.push(...X.filter(me=>Ot(me)!==re)),k}function jt(X){var re;if(!X)return null;if(null!==(re=X.routeConfig)&&void 0!==re&&re._injector)return X.routeConfig._injector;for(let k=X.parent;k;k=k.parent){const me=k.routeConfig;if(null!=me&&me._loadedInjector)return me._loadedInjector;if(null!=me&&me._injector)return me._injector}return null}class ii{constructor(re,k,me,Be){this.routeReuseStrategy=re,this.futureState=k,this.currState=me,this.forwardEvent=Be}activate(re){const k=this.futureState._root,me=this.currState?this.currState._root:null;this.deactivateChildRoutes(k,me,re),_r(this.futureState.root),this.activateChildRoutes(k,me,re)}deactivateChildRoutes(re,k,me){const Be=Nt(k);re.children.forEach(ut=>{const wt=ut.value.outlet;this.deactivateRoutes(ut,Be[wt],me),delete Be[wt]}),Je(Be,(ut,wt)=>{this.deactivateRouteAndItsChildren(ut,me)})}deactivateRoutes(re,k,me){const Be=re.value,ut=k?k.value:null;if(Be===ut)if(Be.component){const wt=me.getContext(Be.outlet);wt&&this.deactivateChildRoutes(re,k,wt.children)}else this.deactivateChildRoutes(re,k,me);else ut&&this.deactivateRouteAndItsChildren(k,me)}deactivateRouteAndItsChildren(re,k){re.value.component&&this.routeReuseStrategy.shouldDetach(re.value.snapshot)?this.detachAndStoreRouteSubtree(re,k):this.deactivateRouteAndOutlet(re,k)}detachAndStoreRouteSubtree(re,k){const me=k.getContext(re.value.outlet),Be=me&&re.value.component?me.children:k,ut=Nt(re);for(const wt of Object.keys(ut))this.deactivateRouteAndItsChildren(ut[wt],Be);if(me&&me.outlet){const wt=me.outlet.detach(),Rt=me.children.onOutletDeactivated();this.routeReuseStrategy.store(re.value.snapshot,{componentRef:wt,route:re,contexts:Rt})}}deactivateRouteAndOutlet(re,k){const me=k.getContext(re.value.outlet),Be=me&&re.value.component?me.children:k,ut=Nt(re);for(const wt of Object.keys(ut))this.deactivateRouteAndItsChildren(ut[wt],Be);me&&me.outlet&&(me.outlet.deactivate(),me.children.onOutletDeactivated(),me.attachRef=null,me.resolver=null,me.route=null)}activateChildRoutes(re,k,me){const Be=Nt(k);re.children.forEach(ut=>{this.activateRoutes(ut,Be[ut.value.outlet],me),this.forwardEvent(new _i(ut.value.snapshot))}),re.children.length&&this.forwardEvent(new ar(re.value.snapshot))}activateRoutes(re,k,me){const Be=re.value,ut=k?k.value:null;if(_r(Be),Be===ut)if(Be.component){const Rt=me.getOrCreateContext(Be.outlet);this.activateChildRoutes(re,k,Rt.children)}else this.activateChildRoutes(re,k,me);else if(Be.component){const Rt=me.getOrCreateContext(Be.outlet);if(this.routeReuseStrategy.shouldAttach(Be.snapshot)){const Gt=this.routeReuseStrategy.retrieve(Be.snapshot);this.routeReuseStrategy.store(Be.snapshot,null),Rt.children.onOutletReAttached(Gt.contexts),Rt.attachRef=Gt.componentRef,Rt.route=Gt.route.value,Rt.outlet&&Rt.outlet.attach(Gt.componentRef,Gt.route.value),_r(Gt.route.value),this.activateChildRoutes(re,null,Rt.children)}else{var wt;const Gt=jt(Be.snapshot),on=null!==(wt=Gt?.get(e._Vd))&&void 0!==wt?wt:null;Rt.attachRef=null,Rt.route=Be,Rt.resolver=on,Rt.injector=Gt,Rt.outlet&&Rt.outlet.activateWith(Be,Rt.injector),this.activateChildRoutes(re,null,Rt.children)}}else this.activateChildRoutes(re,null,me)}}class Xn{constructor(re){this.path=re,this.route=this.path[this.path.length-1]}}class Qn{constructor(re,k){this.component=re,this.route=k}}function Hn(X,re,k){const me=X._root;return li(me,re?re._root:null,k,[me.value])}function Yn(X,re,k){return(jt(re)??k).get(X)}function li(X,re,k,me,Be={canDeactivateChecks:[],canActivateChecks:[]}){const ut=Nt(re);return X.children.forEach(wt=>{(function Kt(X,re,k,me,Be={canDeactivateChecks:[],canActivateChecks:[]}){const ut=X.value,wt=re?re.value:null,Rt=k?k.getContext(X.value.outlet):null;if(wt&&ut.routeConfig===wt.routeConfig){const Gt=function Dn(X,re,k){if("function"==typeof k)return k(X,re);switch(k){case"pathParamsChange":return!Me(X.url,re.url);case"pathParamsOrQueryParamsChange":return!Me(X.url,re.url)||!W(X.queryParams,re.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!or(X,re)||!W(X.queryParams,re.queryParams);default:return!or(X,re)}}(wt,ut,ut.routeConfig.runGuardsAndResolvers);Gt?Be.canActivateChecks.push(new Xn(me)):(ut.data=wt.data,ut._resolvedData=wt._resolvedData),li(X,re,ut.component?Rt?Rt.children:null:k,me,Be),Gt&&Rt&&Rt.outlet&&Rt.outlet.isActivated&&Be.canDeactivateChecks.push(new Qn(Rt.outlet.component,wt))}else wt&&Vi(re,Rt,Be),Be.canActivateChecks.push(new Xn(me)),li(X,null,ut.component?Rt?Rt.children:null:k,me,Be)})(wt,ut[wt.value.outlet],k,me.concat([wt.value]),Be),delete ut[wt.value.outlet]}),Je(ut,(wt,Rt)=>Vi(wt,k.getContext(Rt),Be)),Be}function Vi(X,re,k){const me=Nt(X),Be=X.value;Je(me,(ut,wt)=>{Vi(ut,Be.component?re?re.children.getContext(wt):null:re,k)}),k.canDeactivateChecks.push(new Qn(Be.component&&re&&re.outlet&&re.outlet.isActivated?re.outlet.component:null,Be))}function Oi(X){return"function"==typeof X}function hn(X){return X instanceof A.K||"EmptyError"===X?.name}const Jn=Symbol("INITIAL_VALUE");function qn(){return(0,Se.w)(X=>(0,N.a)(X.map(re=>re.pipe((0,Ge.q)(1),(0,Ce.O)(Jn)))).pipe((0,De.U)(re=>{for(const k of re)if(!0!==k){if(k===Jn)return Jn;if(!1===k||k instanceof o)return k}return!0}),(0,O.h)(re=>re!==Jn),(0,Ge.q)(1)))}function Qr(X){return(0,ne.z)((0,j.b)(re=>{if(Ct(re))throw Fr(0,re)}),(0,De.U)(re=>!0===re))}const Gr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ko(X,re,k,me,Be){const ut=Da(X,re,k);return ut.matched?function to(X,re,k,me){const Be=re.canMatch;if(!Be||0===Be.length)return(0,S.of)(!0);const ut=Be.map(wt=>{const Rt=X.get(wt),Gt=function be(X){return X&&Oi(X.canMatch)}(Rt)?Rt.canMatch(re,k):Rt(re,k);return ct(Gt)});return(0,S.of)(ut).pipe(qn(),Qr())}(me=wr(re,me),re,k).pipe((0,De.U)(wt=>!0===wt?ut:{...Gr})):(0,S.of)(ut)}function Da(X,re,k){var me;if(""===re.path)return"full"===re.pathMatch&&(X.hasChildren()||k.length>0)?{...Gr}:{matched:!0,consumedSegments:[],remainingSegments:k,parameters:{},positionalParamSegments:{}};const ut=(re.matcher||rt)(k,X,re);if(!ut)return{...Gr};const wt={};Je(ut.posParams,(Gt,on)=>{wt[on]=Gt.path});const Rt=ut.consumed.length>0?{...wt,...ut.consumed[ut.consumed.length-1].parameters}:wt;return{matched:!0,consumedSegments:ut.consumed,remainingSegments:k.slice(ut.consumed.length),parameters:Rt,positionalParamSegments:null!==(me=ut.posParams)&&void 0!==me?me:{}}}function ua(X,re,k,me,Be="corrected"){if(k.length>0&&function Ks(X,re,k){return k.some(me=>ha(X,re,me)&&Ot(me)!==et)}(X,k,me)){const wt=new c(re,function no(X,re,k,me){const Be={};Be[et]=me,me._sourceSegment=X,me._segmentIndexShift=re.length;for(const ut of k)if(""===ut.path&&Ot(ut)!==et){const wt=new c([],{});wt._sourceSegment=X,wt._segmentIndexShift=re.length,Be[Ot(ut)]=wt}return Be}(X,re,me,new c(k,X.children)));return wt._sourceSegment=X,wt._segmentIndexShift=re.length,{segmentGroup:wt,slicedSegments:[]}}if(0===k.length&&function Xo(X,re,k){return k.some(me=>ha(X,re,me))}(X,k,me)){const wt=new c(X.segments,function Qs(X,re,k,me,Be,ut){const wt={};for(const Rt of me)if(ha(X,k,Rt)&&!Be[Ot(Rt)]){const Gt=new c([],{});Gt._sourceSegment=X,Gt._segmentIndexShift="legacy"===ut?X.segments.length:re.length,wt[Ot(Rt)]=Gt}return{...Be,...wt}}(X,re,k,me,X.children,Be));return wt._sourceSegment=X,wt._segmentIndexShift=re.length,{segmentGroup:wt,slicedSegments:k}}const ut=new c(X.segments,X.children);return ut._sourceSegment=X,ut._segmentIndexShift=re.length,{segmentGroup:ut,slicedSegments:k}}function ha(X,re,k){return(!(X.hasChildren()||re.length>0)||"full"!==k.pathMatch)&&""===k.path}function Mo(X,re,k,me){return!!(Ot(X)===me||me!==et&&ha(re,k,X))&&("**"===X.path||Da(re,X,k).matched)}function io(X,re,k){return 0===re.length&&!X.children[k]}const Ei=!1;class Dr{constructor(re){this.segmentGroup=re||null}}class ui{constructor(re){this.urlTree=re}}function pa(X){return(0,he._)(new Dr(X))}function es(X){return(0,he._)(new ui(X))}class ns{constructor(re,k,me,Be,ut){this.injector=re,this.configLoader=k,this.urlSerializer=me,this.urlTree=Be,this.config=ut,this.allowRedirects=!0}apply(){const re=ua(this.urlTree.root,[],[],this.config).segmentGroup,k=new c(re.segments,re.children);return this.expandSegmentGroup(this.injector,this.config,k,et).pipe((0,De.U)(ut=>this.createUrlTree(Bt(ut),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,I.K)(ut=>{if(ut instanceof ui)return this.allowRedirects=!1,this.match(ut.urlTree);throw ut instanceof Dr?this.noMatchError(ut):ut}))}match(re){return this.expandSegmentGroup(this.injector,this.config,re.root,et).pipe((0,De.U)(Be=>this.createUrlTree(Bt(Be),re.queryParams,re.fragment))).pipe((0,I.K)(Be=>{throw Be instanceof Dr?this.noMatchError(Be):Be}))}noMatchError(re){return new e.vHH(4002,Ei)}createUrlTree(re,k,me){const Be=un(re);return new o(Be,k,me)}expandSegmentGroup(re,k,me,Be){return 0===me.segments.length&&me.hasChildren()?this.expandChildren(re,k,me).pipe((0,De.U)(ut=>new c([],ut))):this.expandSegment(re,me,k,me.segments,Be,!0)}expandChildren(re,k,me){const Be=[];for(const ut of Object.keys(me.children))"primary"===ut?Be.unshift(ut):Be.push(ut);return(0,E.D)(Be).pipe((0,we.b)(ut=>{const wt=me.children[ut],Rt=zt(k,ut);return this.expandSegmentGroup(re,Rt,wt,ut).pipe((0,De.U)(Gt=>({segment:Gt,outlet:ut})))}),v((ut,wt)=>(ut[wt.outlet]=wt.segment,ut),{}),Ee())}expandSegment(re,k,me,Be,ut,wt){return(0,E.D)(me).pipe((0,we.b)(Rt=>this.expandSegmentAgainstRoute(re,k,me,Rt,Be,ut,wt).pipe((0,I.K)(on=>{if(on instanceof Dr)return(0,S.of)(null);throw on}))),(0,Pe.P)(Rt=>!!Rt),(0,I.K)((Rt,Gt)=>{if(hn(Rt))return io(k,Be,ut)?(0,S.of)(new c([],{})):pa(k);throw Rt}))}expandSegmentAgainstRoute(re,k,me,Be,ut,wt,Rt){return Mo(Be,k,ut,wt)?void 0===Be.redirectTo?this.matchSegmentAgainstRoute(re,k,Be,ut,wt):Rt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(re,k,me,Be,ut,wt):pa(k):pa(k)}expandSegmentAgainstRouteUsingRedirect(re,k,me,Be,ut,wt){return"**"===Be.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(re,me,Be,wt):this.expandRegularSegmentAgainstRouteUsingRedirect(re,k,me,Be,ut,wt)}expandWildCardWithParamsAgainstRouteUsingRedirect(re,k,me,Be){const ut=this.applyRedirectCommands([],me.redirectTo,{});return me.redirectTo.startsWith("/")?es(ut):this.lineralizeSegments(me,ut).pipe((0,qe.z)(wt=>{const Rt=new c(wt,{});return this.expandSegment(re,Rt,k,wt,Be,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(re,k,me,Be,ut,wt){const{matched:Rt,consumedSegments:Gt,remainingSegments:on,positionalParamSegments:_n}=Da(k,Be,ut);if(!Rt)return pa(k);const dn=this.applyRedirectCommands(Gt,Be.redirectTo,_n);return Be.redirectTo.startsWith("/")?es(dn):this.lineralizeSegments(Be,dn).pipe((0,qe.z)(wn=>this.expandSegment(re,k,me,wn.concat(on),wt,!1)))}matchSegmentAgainstRoute(re,k,me,Be,ut){return"**"===me.path?(re=wr(me,re),me.loadChildren?(me._loadedRoutes?(0,S.of)({routes:me._loadedRoutes,injector:me._loadedInjector}):this.configLoader.loadChildren(re,me)).pipe((0,De.U)(Rt=>(me._loadedRoutes=Rt.routes,me._loadedInjector=Rt.injector,new c(Be,{})))):(0,S.of)(new c(Be,{}))):Ko(k,me,Be,re).pipe((0,Se.w)(({matched:wt,consumedSegments:Rt,remainingSegments:Gt})=>{var on;return wt?(re=null!==(on=me._injector)&&void 0!==on?on:re,this.getChildConfig(re,me,Be).pipe((0,qe.z)(dn=>{var wn;const ti=null!==(wn=dn.injector)&&void 0!==wn?wn:re,Si=dn.routes,{segmentGroup:Ti,slicedSegments:bi}=ua(k,Rt,Gt,Si),Yi=new c(Ti.segments,Ti.children);if(0===bi.length&&Yi.hasChildren())return this.expandChildren(ti,Si,Yi).pipe((0,De.U)(po=>new c(Rt,po)));if(0===Si.length&&0===bi.length)return(0,S.of)(new c(Rt,{}));const hr=Ot(me)===ut;return this.expandSegment(ti,Yi,Si,bi,hr?et:ut,!0).pipe((0,De.U)(Ji=>new c(Rt.concat(Ji.segments),Ji.children)))}))):pa(k)}))}getChildConfig(re,k,me){return k.children?(0,S.of)({routes:k.children,injector:re}):k.loadChildren?void 0!==k._loadedRoutes?(0,S.of)({routes:k._loadedRoutes,injector:k._loadedInjector}):function wo(X,re,k,me){const Be=re.canLoad;if(void 0===Be||0===Be.length)return(0,S.of)(!0);const ut=Be.map(wt=>{const Rt=X.get(wt),Gt=function Mr(X){return X&&Oi(X.canLoad)}(Rt)?Rt.canLoad(re,k):Rt(re,k);return ct(Gt)});return(0,S.of)(ut).pipe(qn(),Qr())}(re,k,me).pipe((0,qe.z)(Be=>Be?this.configLoader.loadChildren(re,k).pipe((0,j.b)(ut=>{k._loadedRoutes=ut.routes,k._loadedInjector=ut.injector})):function Xs(X){return(0,he._)($r(Ei,3))}())):(0,S.of)({routes:[],injector:re})}lineralizeSegments(re,k){let me=[],Be=k.root;for(;;){if(me=me.concat(Be.segments),0===Be.numberOfChildren)return(0,S.of)(me);if(Be.numberOfChildren>1||!Be.children[et])return(0,he._)(new e.vHH(4e3,Ei));Be=Be.children[et]}}applyRedirectCommands(re,k,me){return this.applyRedirectCreateUrlTree(k,this.urlSerializer.parse(k),re,me)}applyRedirectCreateUrlTree(re,k,me,Be){const ut=this.createSegmentGroup(re,k.root,me,Be);return new o(ut,this.createQueryParams(k.queryParams,this.urlTree.queryParams),k.fragment)}createQueryParams(re,k){const me={};return Je(re,(Be,ut)=>{if("string"==typeof Be&&Be.startsWith(":")){const Rt=Be.substring(1);me[ut]=k[Rt]}else me[ut]=Be}),me}createSegmentGroup(re,k,me,Be){const ut=this.createSegments(re,k.segments,me,Be);let wt={};return Je(k.children,(Rt,Gt)=>{wt[Gt]=this.createSegmentGroup(re,Rt,me,Be)}),new c(ut,wt)}createSegments(re,k,me,Be){return k.map(ut=>ut.path.startsWith(":")?this.findPosParam(re,ut,Be):this.findOrReturn(ut,me))}findPosParam(re,k,me){const Be=me[k.path.substring(1)];if(!Be)throw new e.vHH(4001,Ei);return Be}findOrReturn(re,k){let me=0;for(const Be of k){if(Be.path===re.path)return k.splice(me),Be;me++}return re}}class Sa{}class tl{constructor(re,k,me,Be,ut,wt,Rt,Gt){this.injector=re,this.rootComponentType=k,this.config=me,this.urlTree=Be,this.url=ut,this.paramsInheritanceStrategy=wt,this.relativeLinkResolution=Rt,this.urlSerializer=Gt}recognize(){const re=ua(this.urlTree.root,[],[],this.config.filter(k=>void 0===k.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,re,et).pipe((0,De.U)(k=>{if(null===k)return null;const me=new qi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),Be=new ot(me,k),ut=new Vr(this.url,Be);return this.inheritParamsAndData(ut._root),ut}))}inheritParamsAndData(re){const k=re.value,me=si(k,this.paramsInheritanceStrategy);k.params=Object.freeze(me.params),k.data=Object.freeze(me.data),re.children.forEach(Be=>this.inheritParamsAndData(Be))}processSegmentGroup(re,k,me,Be){return 0===me.segments.length&&me.hasChildren()?this.processChildren(re,k,me):this.processSegment(re,k,me,me.segments,Be)}processChildren(re,k,me){return(0,E.D)(Object.keys(me.children)).pipe((0,we.b)(Be=>{const ut=me.children[Be],wt=zt(k,Be);return this.processSegmentGroup(re,wt,ut,Be)}),v((Be,ut)=>Be&&ut?(Be.push(...ut),Be):null),(0,F.o)(Be=>null!==Be),(0,q.d)(null),Ee(),(0,De.U)(Be=>{if(null===Be)return null;const ut=Do(Be);return function Zr(X){X.sort((re,k)=>re.value.outlet===et?-1:k.value.outlet===et?1:re.value.outlet.localeCompare(k.value.outlet))}(ut),ut}))}processSegment(re,k,me,Be,ut){return(0,E.D)(k).pipe((0,we.b)(wt=>{var Rt;return this.processSegmentAgainstRoute(null!==(Rt=wt._injector)&&void 0!==Rt?Rt:re,wt,me,Be,ut)}),(0,Pe.P)(wt=>!!wt),(0,I.K)(wt=>{if(hn(wt))return io(me,Be,ut)?(0,S.of)([]):(0,S.of)(null);throw wt}))}processSegmentAgainstRoute(re,k,me,Be,ut){if(k.redirectTo||!Mo(k,me,Be,ut))return(0,S.of)(null);let wt;if("**"===k.path){var Rt,Gt;const on=Be.length>0?ae(Be).parameters:{},_n=oo(me)+Be.length,dn=new qi(Be,on,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,So(k),Ot(k),null!==(Rt=null!==(Gt=k.component)&&void 0!==Gt?Gt:k._loadedComponent)&&void 0!==Rt?Rt:null,k,Fi(me),_n,il(k),_n);wt=(0,S.of)({snapshot:dn,consumedSegments:[],remainingSegments:[]})}else wt=Ko(me,k,Be,re).pipe((0,De.U)(({matched:on,consumedSegments:_n,remainingSegments:dn,parameters:wn})=>{var ti,Si;if(!on)return null;const Ti=oo(me)+_n.length;return{snapshot:new qi(_n,wn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,So(k),Ot(k),null!==(ti=null!==(Si=k.component)&&void 0!==Si?Si:k._loadedComponent)&&void 0!==ti?ti:null,k,Fi(me),Ti,il(k),Ti),consumedSegments:_n,remainingSegments:dn}}));return wt.pipe((0,Se.w)(on=>{var _n,dn;if(null===on)return(0,S.of)(null);const{snapshot:wn,consumedSegments:ti,remainingSegments:Si}=on;re=null!==(_n=k._injector)&&void 0!==_n?_n:re;const Ti=null!==(dn=k._loadedInjector)&&void 0!==dn?dn:re,bi=function Pa(X){return X.children?X.children:X.loadChildren?X._loadedRoutes:[]}(k),{segmentGroup:Yi,slicedSegments:hr}=ua(me,ti,Si,bi.filter(Ji=>void 0===Ji.redirectTo),this.relativeLinkResolution);if(0===hr.length&&Yi.hasChildren())return this.processChildren(Ti,bi,Yi).pipe((0,De.U)(Ji=>null===Ji?null:[new ot(wn,Ji)]));if(0===bi.length&&0===hr.length)return(0,S.of)([new ot(wn,[])]);const Li=Ot(k)===ut;return this.processSegment(Ti,bi,Yi,hr,Li?et:ut).pipe((0,De.U)(Ji=>null===Ji?null:[new ot(wn,Ji)]))}))}}function nl(X){const re=X.value.routeConfig;return re&&""===re.path&&void 0===re.redirectTo}function Do(X){const re=[],k=new Set;for(const me of X){if(!nl(me)){re.push(me);continue}const Be=re.find(ut=>me.value.routeConfig===ut.value.routeConfig);void 0!==Be?(Be.children.push(...me.children),k.add(Be)):re.push(me)}for(const me of k){const Be=Do(me.children);re.push(new ot(me.value,Be))}return re.filter(me=>!k.has(me))}function Fi(X){let re=X;for(;re._sourceSegment;)re=re._sourceSegment;return re}function oo(X){var re;let k=X,me=null!==(re=k._segmentIndexShift)&&void 0!==re?re:0;for(;k._sourceSegment;){var Be;k=k._sourceSegment,me+=null!==(Be=k._segmentIndexShift)&&void 0!==Be?Be:0}return me-1}function So(X){return X.data||{}}function il(X){return X.resolve||{}}const ma=Symbol("RouteTitle");function Po(X){return"string"==typeof X.title||null===X.title}function Lr(X){return(0,Se.w)(re=>{const k=X(re);return k?(0,E.D)(k).pipe((0,De.U)(()=>re)):(0,S.of)(re)})}let Ui=(()=>{class X{buildTitle(k){let me,Be=k.root;for(;void 0!==Be;){var ut;me=null!==(ut=this.getResolvedTitleForRoute(Be))&&void 0!==ut?ut:me,Be=Be.children.find(wt=>wt.outlet===et)}return me}getResolvedTitleForRoute(k){return k.data[ma]}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return(0,e.f3M)(Sr)},providedIn:"root"}),X})(),Sr=(()=>{class X extends Ui{constructor(k){super(),this.title=k}updateTitle(k){const me=this.buildTitle(k);void 0!==me&&this.title.setTitle(me)}}return X.\u0275fac=function(k){return new(k||X)(e.LFG(Te.Dx))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class rl{}class Io extends class as{shouldDetach(re){return!1}store(re,k){}shouldAttach(re){return!1}retrieve(re){return null}shouldReuseRoute(re,k){return re.routeConfig===k.routeConfig}}{}const er=new e.OlP("",{providedIn:"root",factory:()=>({})}),ea=new e.OlP("ROUTES");let Ha=(()=>{class X{constructor(k,me){this.injector=k,this.compiler=me,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(k){if(this.componentLoaders.get(k))return this.componentLoaders.get(k);if(k._loadedComponent)return(0,S.of)(k._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(k);const me=ct(k.loadComponent()).pipe((0,j.b)(ut=>{this.onLoadEndListener&&this.onLoadEndListener(k),k._loadedComponent=ut}),(0,G.x)(()=>{this.componentLoaders.delete(k)})),Be=new y(me,()=>new fe.x).pipe(b());return this.componentLoaders.set(k,Be),Be}loadChildren(k,me){if(this.childrenLoaders.get(me))return this.childrenLoaders.get(me);if(me._loadedRoutes)return(0,S.of)({routes:me._loadedRoutes,injector:me._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(me);const ut=this.loadModuleFactoryOrRoutes(me.loadChildren).pipe((0,De.U)(Rt=>{this.onLoadEndListener&&this.onLoadEndListener(me);let Gt,on,_n=!1;Array.isArray(Rt)?on=Rt:(Gt=Rt.create(k).injector,on=ie(Gt.get(ea,[],e.XFs.Self|e.XFs.Optional)));return{routes:on.map(gt),injector:Gt}}),(0,G.x)(()=>{this.childrenLoaders.delete(me)})),wt=new y(ut,()=>new fe.x).pipe(b());return this.childrenLoaders.set(me,wt),wt}loadModuleFactoryOrRoutes(k){return ct(k()).pipe((0,qe.z)(me=>me instanceof e.YKP||Array.isArray(me)?(0,S.of)(me):(0,E.D)(this.compiler.compileModuleAsync(me))))}}return X.\u0275fac=function(k){return new(k||X)(e.LFG(e.zs3),e.LFG(e.Sil))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class La{}class co{shouldProcessUrl(re){return!0}extract(re){return re}merge(re,k){return re}}function ol(X){throw X}function os(X,re,k){return re.parse("/")}const ss={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ls={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ba(){var X,re;const k=(0,e.f3M)(Dt),me=(0,e.f3M)(Qi),Be=(0,e.f3M)(ce.Ye),ut=(0,e.f3M)(e.zs3),wt=(0,e.f3M)(e.Sil),Rt=null!==(X=(0,e.f3M)(ea,{optional:!0}))&&void 0!==X?X:[],Gt=null!==(re=(0,e.f3M)(er,{optional:!0}))&&void 0!==re?re:{},on=(0,e.f3M)(Sr),_n=(0,e.f3M)(Ui,{optional:!0}),dn=(0,e.f3M)(La,{optional:!0}),wn=(0,e.f3M)(rl,{optional:!0}),ti=new Ai(null,k,me,Be,ut,wt,ie(Rt));return dn&&(ti.urlHandlingStrategy=dn),wn&&(ti.routeReuseStrategy=wn),ti.titleStrategy=_n??on,function Ro(X,re){X.errorHandler&&(re.errorHandler=X.errorHandler),X.malformedUriErrorHandler&&(re.malformedUriErrorHandler=X.malformedUriErrorHandler),X.onSameUrlNavigation&&(re.onSameUrlNavigation=X.onSameUrlNavigation),X.paramsInheritanceStrategy&&(re.paramsInheritanceStrategy=X.paramsInheritanceStrategy),X.relativeLinkResolution&&(re.relativeLinkResolution=X.relativeLinkResolution),X.urlUpdateStrategy&&(re.urlUpdateStrategy=X.urlUpdateStrategy),X.canceledNavigationResolution&&(re.canceledNavigationResolution=X.canceledNavigationResolution)}(Gt,ti),ti}let Ai=(()=>{class X{constructor(k,me,Be,ut,wt,Rt,Gt){this.rootComponentType=k,this.urlSerializer=me,this.rootContexts=Be,this.location=ut,this.config=Gt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new fe.x,this.errorHandler=ol,this.malformedUriErrorHandler=os,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,S.of)(void 0),this.urlHandlingStrategy=new co,this.routeReuseStrategy=new Io,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=wt.get(Ha),this.configLoader.onLoadEndListener=wn=>this.triggerEvent(new gr(wn)),this.configLoader.onLoadStartListener=wn=>this.triggerEvent(new ir(wn)),this.ngModule=wt.get(e.h0i),this.console=wt.get(e.c2e);const dn=wt.get(e.R0b);this.isNgZoneEnabled=dn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Gt),this.currentUrlTree=function oe(){return new o(new c([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cn(this.currentUrlTree,this.rootComponentType),this.transitions=new U.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 k;return null===(k=this.location.getState())||void 0===k?void 0:k.\u0275routerPageId}setupNavigations(k){const me=this.events;return k.pipe((0,O.h)(Be=>0!==Be.id),(0,De.U)(Be=>({...Be,extractedUrl:this.urlHandlingStrategy.extract(Be.rawUrl)})),(0,Se.w)(Be=>{let ut=!1,wt=!1;return(0,S.of)(Be).pipe((0,j.b)(Rt=>{this.currentNavigation={id:Rt.id,initialUrl:Rt.rawUrl,extractedUrl:Rt.extractedUrl,trigger:Rt.source,extras:Rt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Se.w)(Rt=>{const Gt=this.browserUrlTree.toString(),on=!this.navigated||Rt.extractedUrl.toString()!==Gt||Gt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||on)&&this.urlHandlingStrategy.shouldProcessUrl(Rt.rawUrl))return Oo(Rt.source)&&(this.browserUrlTree=Rt.extractedUrl),(0,S.of)(Rt).pipe((0,Se.w)(dn=>{const wn=this.transitions.getValue();return me.next(new zi(dn.id,this.serializeUrl(dn.extractedUrl),dn.source,dn.restoredState)),wn!==this.transitions.getValue()?ee.E:Promise.resolve(dn)}),function ro(X,re,k,me){return(0,Se.w)(Be=>function el(X,re,k,me,Be){return new ns(X,re,k,me,Be).apply()}(X,re,k,Be.extractedUrl,me).pipe((0,De.U)(ut=>({...Be,urlAfterRedirects:ut}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,j.b)(dn=>{this.currentNavigation={...this.currentNavigation,finalUrl:dn.urlAfterRedirects},Be.urlAfterRedirects=dn.urlAfterRedirects}),function so(X,re,k,me,Be,ut){return(0,qe.z)(wt=>function ao(X,re,k,me,Be,ut,wt="emptyOnly",Rt="legacy"){return new tl(X,re,k,me,Be,wt,Rt,ut).recognize().pipe((0,Se.w)(Gt=>null===Gt?function xo(X){return new d.y(re=>re.error(X))}(new Sa):(0,S.of)(Gt)))}(X,re,k,wt.urlAfterRedirects,me.serialize(wt.urlAfterRedirects),me,Be,ut).pipe((0,De.U)(Rt=>({...wt,targetSnapshot:Rt}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,j.b)(dn=>{if(Be.targetSnapshot=dn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!dn.extras.skipLocationChange){const ti=this.urlHandlingStrategy.merge(dn.urlAfterRedirects,dn.rawUrl);this.setBrowserUrl(ti,dn)}this.browserUrlTree=dn.urlAfterRedirects}const wn=new ki(dn.id,this.serializeUrl(dn.extractedUrl),this.serializeUrl(dn.urlAfterRedirects),dn.targetSnapshot);me.next(wn)}));if(on&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:wn,extractedUrl:ti,source:Si,restoredState:Ti,extras:bi}=Rt,Yi=new zi(wn,this.serializeUrl(ti),Si,Ti);me.next(Yi);const hr=cn(ti,this.rootComponentType).snapshot;return Be={...Rt,targetSnapshot:hr,urlAfterRedirects:ti,extras:{...bi,skipLocationChange:!1,replaceUrl:!1}},(0,S.of)(Be)}return this.rawUrlTree=Rt.rawUrl,Rt.resolve(null),ee.E}),(0,j.b)(Rt=>{const Gt=new Ri(Rt.id,this.serializeUrl(Rt.extractedUrl),this.serializeUrl(Rt.urlAfterRedirects),Rt.targetSnapshot);this.triggerEvent(Gt)}),(0,De.U)(Rt=>Be={...Rt,guards:Hn(Rt.targetSnapshot,Rt.currentSnapshot,this.rootContexts)}),function Hi(X,re){return(0,qe.z)(k=>{const{targetSnapshot:me,currentSnapshot:Be,guards:{canActivateChecks:ut,canDeactivateChecks:wt}}=k;return 0===wt.length&&0===ut.length?(0,S.of)({...k,guardsResult:!0}):function Or(X,re,k,me){return(0,E.D)(X).pipe((0,qe.z)(Be=>function To(X,re,k,me,Be){const ut=re&&re.routeConfig?re.routeConfig.canDeactivate:null;if(!ut||0===ut.length)return(0,S.of)(!0);const wt=ut.map(Rt=>{const Gt=Yn(Rt,re,Be);return ct(function Re(X){return X&&Oi(X.canDeactivate)}(Gt)?Gt.canDeactivate(X,re,k,me):Gt(X,re,k,me)).pipe((0,Pe.P)())});return(0,S.of)(wt).pipe(qn())}(Be.component,Be.route,k,re,me)),(0,Pe.P)(Be=>!0!==Be,!0))}(wt,me,Be,X).pipe((0,qe.z)(Rt=>Rt&&function di(X){return"boolean"==typeof X}(Rt)?function da(X,re,k,me){return(0,E.D)(re).pipe((0,we.b)(Be=>(0,z.z)(function $s(X,re){return null!==X&&re&&re(new rr(X)),(0,S.of)(!0)}(Be.route.parent,me),function Hr(X,re){return null!==X&&re&&re(new la(X)),(0,S.of)(!0)}(Be.route,me),function qs(X,re,k){const me=re[re.length-1],ut=re.slice(0,re.length-1).reverse().map(wt=>function gi(X){const re=X.routeConfig?X.routeConfig.canActivateChild:null;return re&&0!==re.length?{node:X,guards:re}:null}(wt)).filter(wt=>null!==wt).map(wt=>(0,Q.P)(()=>{const Rt=wt.guards.map(Gt=>{const on=Yn(Gt,wt.node,k);return ct(function Ue(X){return X&&Oi(X.canActivateChild)}(on)?on.canActivateChild(me,X):on(me,X)).pipe((0,Pe.P)())});return(0,S.of)(Rt).pipe(qn())}));return(0,S.of)(ut).pipe(qn())}(X,Be.path,k),function Qo(X,re,k){const me=re.routeConfig?re.routeConfig.canActivate:null;if(!me||0===me.length)return(0,S.of)(!0);const Be=me.map(ut=>(0,Q.P)(()=>{const wt=Yn(ut,re,k);return ct(function xr(X){return X&&Oi(X.canActivate)}(wt)?wt.canActivate(re,X):wt(re,X)).pipe((0,Pe.P)())}));return(0,S.of)(Be).pipe(qn())}(X,Be.route,k))),(0,Pe.P)(Be=>!0!==Be,!0))}(me,ut,X,re):(0,S.of)(Rt)),(0,De.U)(Rt=>({...k,guardsResult:Rt})))})}(this.ngModule.injector,Rt=>this.triggerEvent(Rt)),(0,j.b)(Rt=>{if(Be.guardsResult=Rt.guardsResult,Ct(Rt.guardsResult))throw Fr(0,Rt.guardsResult);const Gt=new fi(Rt.id,this.serializeUrl(Rt.extractedUrl),this.serializeUrl(Rt.urlAfterRedirects),Rt.targetSnapshot,!!Rt.guardsResult);this.triggerEvent(Gt)}),(0,O.h)(Rt=>!!Rt.guardsResult||(this.restoreHistory(Rt),this.cancelNavigationTransition(Rt,"",3),!1)),Lr(Rt=>{if(Rt.guards.canActivateChecks.length)return(0,S.of)(Rt).pipe((0,j.b)(Gt=>{const on=new hi(Gt.id,this.serializeUrl(Gt.extractedUrl),this.serializeUrl(Gt.urlAfterRedirects),Gt.targetSnapshot);this.triggerEvent(on)}),(0,Se.w)(Gt=>{let on=!1;return(0,S.of)(Gt).pipe(function is(X,re){return(0,qe.z)(k=>{const{targetSnapshot:me,guards:{canActivateChecks:Be}}=k;if(!Be.length)return(0,S.of)(k);let ut=0;return(0,E.D)(Be).pipe((0,we.b)(wt=>function lo(X,re,k,me){const Be=X.routeConfig,ut=X._resolve;return void 0!==Be?.title&&!Po(Be)&&(ut[ma]=Be.title),function Ra(X,re,k,me){const Be=function rs(X){return[...Object.keys(X),...Object.getOwnPropertySymbols(X)]}(X);if(0===Be.length)return(0,S.of)({});const ut={};return(0,E.D)(Be).pipe((0,qe.z)(wt=>function Xr(X,re,k,me){const Be=Yn(X,re,me);return ct(Be.resolve?Be.resolve(re,k):Be(re,k))}(X[wt],re,k,me).pipe((0,Pe.P)(),(0,j.b)(Rt=>{ut[wt]=Rt}))),H(1),(0,ge.h)(ut),(0,I.K)(wt=>hn(wt)?ee.E:(0,he._)(wt)))}(ut,X,re,me).pipe((0,De.U)(wt=>(X._resolvedData=wt,X.data=si(X,k).resolve,Be&&Po(Be)&&(X.data[ma]=Be.title),null)))}(wt.route,me,X,re)),(0,j.b)(()=>ut++),H(1),(0,qe.z)(wt=>ut===Be.length?(0,S.of)(k):ee.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,j.b)({next:()=>on=!0,complete:()=>{on||(this.restoreHistory(Gt),this.cancelNavigationTransition(Gt,"",2))}}))}),(0,j.b)(Gt=>{const on=new Rr(Gt.id,this.serializeUrl(Gt.extractedUrl),this.serializeUrl(Gt.urlAfterRedirects),Gt.targetSnapshot);this.triggerEvent(on)}))}),Lr(Rt=>{const Gt=on=>{var _n;const dn=[];null!==(_n=on.routeConfig)&&void 0!==_n&&_n.loadComponent&&!on.routeConfig._loadedComponent&&dn.push(this.configLoader.loadComponent(on.routeConfig).pipe((0,j.b)(wn=>{on.component=wn}),(0,De.U)(()=>{})));for(const wn of on.children)dn.push(...Gt(wn));return dn};return(0,N.a)(Gt(Rt.targetSnapshot.root)).pipe((0,q.d)(),(0,Ge.q)(1))}),Lr(()=>this.afterPreactivation()),(0,De.U)(Rt=>{const Gt=function sr(X,re,k){const me=lr(X,re._root,k?k._root:void 0);return new en(me,re)}(this.routeReuseStrategy,Rt.targetSnapshot,Rt.currentRouterState);return Be={...Rt,targetRouterState:Gt}}),(0,j.b)(Rt=>{this.currentUrlTree=Rt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Rt.urlAfterRedirects,Rt.rawUrl),this.routerState=Rt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Rt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Rt),this.browserUrlTree=Rt.urlAfterRedirects)}),((X,re,k)=>(0,De.U)(me=>(new ii(re,me.targetRouterState,me.currentRouterState,k).activate(X),me)))(this.rootContexts,this.routeReuseStrategy,Rt=>this.triggerEvent(Rt)),(0,j.b)({next(){ut=!0},complete(){ut=!0}}),(0,G.x)(()=>{var Rt;ut||wt||this.cancelNavigationTransition(Be,"",1),(null===(Rt=this.currentNavigation)||void 0===Rt?void 0:Rt.id)===Be.id&&(this.currentNavigation=null)}),(0,I.K)(Rt=>{if(wt=!0,Wi(Rt)){Ci(Rt)||(this.navigated=!0,this.restoreHistory(Be,!0));const on=new Zn(Be.id,this.serializeUrl(Be.extractedUrl),Rt.message,Rt.cancellationCode);if(me.next(on),Ci(Rt)){const _n=this.urlHandlingStrategy.merge(Rt.url,this.rawUrlTree),dn={skipLocationChange:Be.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Oo(Be.source)};this.scheduleNavigation(_n,"imperative",null,dn,{resolve:Be.resolve,reject:Be.reject,promise:Be.promise})}else Be.resolve(!1)}else{var Gt;this.restoreHistory(Be,!0);const on=new Ni(Be.id,this.serializeUrl(Be.extractedUrl),Rt,null!==(Gt=Be.targetSnapshot)&&void 0!==Gt?Gt:void 0);me.next(on);try{Be.resolve(this.errorHandler(Rt))}catch(_n){Be.reject(_n)}}return ee.E}))}))}resetRootComponentType(k){this.rootComponentType=k,this.routerState.root.component=this.rootComponentType}setTransition(k){this.transitions.next({...this.transitions.value,...k})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(k=>{const me="popstate"===k.type?"popstate":"hashchange";"popstate"===me&&setTimeout(()=>{var Be;const ut={replaceUrl:!0},wt=null!==(Be=k.state)&&void 0!==Be&&Be.navigationId?k.state:null;if(wt){const Gt={...wt};delete Gt.navigationId,delete Gt.\u0275routerPageId,0!==Object.keys(Gt).length&&(ut.state=Gt)}const Rt=this.parseUrl(k.url);this.scheduleNavigation(Rt,me,wt,ut)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(k){this.events.next(k)}resetConfig(k){this.config=k.map(gt),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(k,me={}){const{relativeTo:Be,queryParams:ut,fragment:wt,queryParamsHandling:Rt,preserveFragment:Gt}=me,on=Be||this.routerState.root,_n=Gt?this.currentUrlTree.fragment:wt;let dn=null;switch(Rt){case"merge":dn={...this.currentUrlTree.queryParams,...ut};break;case"preserve":dn=this.currentUrlTree.queryParams;break;default:dn=ut||null}return null!==dn&&(dn=this.removeEmptyProps(dn)),fn(on,this.currentUrlTree,k,dn,_n??null)}navigateByUrl(k,me={skipLocationChange:!1}){const Be=Ct(k)?k:this.parseUrl(k),ut=this.urlHandlingStrategy.merge(Be,this.rawUrlTree);return this.scheduleNavigation(ut,"imperative",null,me)}navigate(k,me={skipLocationChange:!1}){return function Na(X){for(let re=0;re{const ut=k[Be];return null!=ut&&(me[Be]=ut),me},{})}processNavigations(){this.navigations.subscribe(k=>{var me;this.navigated=!0,this.lastSuccessfulId=k.id,this.currentPageId=k.targetPageId,this.events.next(new kn(k.id,this.serializeUrl(k.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(me=this.titleStrategy)||void 0===me||me.updateTitle(this.routerState.snapshot),k.resolve(!0)},k=>{this.console.warn(`Unhandled Navigation Error: ${k}`)})}scheduleNavigation(k,me,Be,ut,wt){if(this.disposed)return Promise.resolve(!1);let Rt,Gt,on;wt?(Rt=wt.resolve,Gt=wt.reject,on=wt.promise):on=new Promise((Si,Ti)=>{Rt=Si,Gt=Ti});const _n=++this.navigationId;let dn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(Be=this.location.getState()),Be&&Be.\u0275routerPageId)dn=Be.\u0275routerPageId;else if(ut.replaceUrl||ut.skipLocationChange){var wn;dn=null!==(wn=this.browserPageId)&&void 0!==wn?wn:0}else{var ti;dn=(null!==(ti=this.browserPageId)&&void 0!==ti?ti:0)+1}else dn=0;return this.setTransition({id:_n,targetPageId:dn,source:me,restoredState:Be,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:k,extras:ut,resolve:Rt,reject:Gt,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(Si=>Promise.reject(Si))}setBrowserUrl(k,me){const Be=this.urlSerializer.serialize(k),ut={...me.extras.state,...this.generateNgRouterState(me.id,me.targetPageId)};this.location.isCurrentPathEqualTo(Be)||me.extras.replaceUrl?this.location.replaceState(Be,"",ut):this.location.go(Be,"",ut)}restoreHistory(k,me=!1){if("computed"===this.canceledNavigationResolution){var Be,ut;const wt=this.currentPageId-k.targetPageId;"popstate"!==k.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Be=this.currentNavigation)||void 0===Be?void 0:Be.finalUrl)||0===wt?this.currentUrlTree===(null===(ut=this.currentNavigation)||void 0===ut?void 0:ut.finalUrl)&&0===wt&&(this.resetState(k),this.browserUrlTree=k.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(wt)}else"replace"===this.canceledNavigationResolution&&(me&&this.resetState(k),this.resetUrlToCurrentUrlTree())}resetState(k){this.routerState=k.currentRouterState,this.currentUrlTree=k.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,k.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(k,me,Be){const ut=new Zn(k.id,this.serializeUrl(k.extractedUrl),me,Be);this.triggerEvent(ut),k.resolve(!1)}generateNgRouterState(k,me){return"computed"===this.canceledNavigationResolution?{navigationId:k,\u0275routerPageId:me}:{navigationId:k}}}return X.\u0275fac=function(k){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:function(){return Ba()},providedIn:"root"}),X})();function Oo(X){return"imperative"!==X}let ka=(()=>{class X{constructor(k,me,Be,ut,wt){this.router=k,this.route=me,this.tabIndexAttribute=Be,this.renderer=ut,this.el=wt,this.commands=null,this.onChanges=new fe.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(k){if(null!=this.tabIndexAttribute)return;const me=this.renderer,Be=this.el.nativeElement;null!==k?me.setAttribute(Be,"tabindex",k):me.removeAttribute(Be,"tabindex")}ngOnChanges(k){this.onChanges.next(this)}set routerLink(k){null!=k?(this.commands=Array.isArray(k)?k:[k],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const k={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,k),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(k){return new(k||X)(e.Y36(Ai),e.Y36(jn),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},X.\u0275dir=e.lG2({type:X,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(k,me){1&k&&e.NdJ("click",function(){return me.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),X})(),Va=(()=>{class X{constructor(k,me,Be){this.router=k,this.route=me,this.locationStrategy=Be,this.commands=null,this.href=null,this.onChanges=new fe.x,this.subscription=k.events.subscribe(ut=>{ut instanceof kn&&this.updateTargetUrlAndHref()})}set routerLink(k){this.commands=null!=k?Array.isArray(k)?k:[k]:null}ngOnChanges(k){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(k,me,Be,ut,wt){if(0!==k||me||Be||ut||wt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Rt={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Rt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(k){return new(k||X)(e.Y36(Ai),e.Y36(jn),e.Y36(ce.S$))},X.\u0275dir=e.lG2({type:X,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(k,me){1&k&&e.NdJ("click",function(ut){return me.onClick(ut.button,ut.ctrlKey,ut.shiftKey,ut.altKey,ut.metaKey)}),2&k&&e.uIk("target",me.target)("href",me.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),X})();class Ho{}let ds=(()=>{class X{preload(k,me){return(0,S.of)(null)}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Fa=(()=>{class X{constructor(k,me,Be,ut,wt){this.router=k,this.injector=Be,this.preloadingStrategy=ut,this.loader=wt}setUpPreloading(){this.subscription=this.router.events.pipe((0,O.h)(k=>k instanceof kn),(0,we.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(k,me){const Be=[];for(const Gt of me){var ut,wt;Gt.providers&&!Gt._injector&&(Gt._injector=(0,e.MMx)(Gt.providers,k,`Route: ${Gt.path}`));const on=null!==(ut=Gt._injector)&&void 0!==ut?ut:k,_n=null!==(wt=Gt._loadedInjector)&&void 0!==wt?wt:on;if(Gt.loadChildren&&!Gt._loadedRoutes&&void 0===Gt.canLoad||Gt.loadComponent&&!Gt._loadedComponent)Be.push(this.preloadConfig(on,Gt));else if(Gt.children||Gt._loadedRoutes){var Rt;Be.push(this.processRoutes(_n,null!==(Rt=Gt.children)&&void 0!==Rt?Rt:Gt._loadedRoutes))}}return(0,E.D)(Be).pipe((0,_e.J)())}preloadConfig(k,me){return this.preloadingStrategy.preload(me,()=>{let Be;Be=me.loadChildren&&void 0===me.canLoad?this.loader.loadChildren(k,me):(0,S.of)(null);const ut=Be.pipe((0,qe.z)(wt=>{var Rt;return null===wt?(0,S.of)(void 0):(me._loadedRoutes=wt.routes,me._loadedInjector=wt.injector,this.processRoutes(null!==(Rt=wt.injector)&&void 0!==Rt?Rt:k,wt.routes))}));if(me.loadComponent&&!me._loadedComponent){const wt=this.loader.loadComponent(me);return(0,E.D)([ut,wt]).pipe((0,_e.J)())}return ut})}}return X.\u0275fac=function(k){return new(k||X)(e.LFG(Ai),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Ho),e.LFG(Ha))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const Ua=new e.OlP("");let _a=(()=>{class X{constructor(k,me,Be={}){this.router=k,this.viewportScroller=me,this.options=Be,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Be.scrollPositionRestoration=Be.scrollPositionRestoration||"disabled",Be.anchorScrolling=Be.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(k=>{k instanceof zi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=k.navigationTrigger,this.restoredId=k.restoredState?k.restoredState.navigationId:0):k instanceof kn&&(this.lastId=k.id,this.scheduleScrollEvent(k,this.router.parseUrl(k.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(k=>{k instanceof Tt&&(k.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(k.position):k.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(k.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(k,me){this.router.triggerEvent(new Tt(k,"popstate"===this.lastSource?this.store[this.restoredId]:null,me))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return X.\u0275fac=function(k){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const us=new e.OlP("ROUTER_FORROOT_GUARD"),ho=new e.OlP(""),Aa=[ce.Ye,{provide:Dt,useClass:Zt},{provide:Ai,useFactory:Ba},Qi,{provide:jn,useFactory:function kl(X){return X.routerState.root},deps:[Ai]},Ha];function ll(){return new e.PXZ("Router",Ai)}let ei=(()=>{class X{constructor(k){}static forRoot(k,me){return{ngModule:X,providers:[Aa,[],cl(k),{provide:us,useFactory:jl,deps:[[Ai,new e.FiY,new e.tp0]]},{provide:er,useValue:me||{}},null!=me&&me.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:Ua,useFactory:()=>{const X=(0,e.f3M)(Ai),re=(0,e.f3M)(ce.EM),k=(0,e.f3M)(er);return k.scrollOffset&&re.setOffset(k.scrollOffset),new _a(X,re,k)}},null!=me&&me.preloadingStrategy?hl(me.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:ll},null!=me&&me.initialNavigation?ja(me):[],[{provide:dl,useFactory:Gl},{provide:e.tb,multi:!0,useExisting:dl}]]}}static forChild(k){return{ngModule:X,providers:[cl(k)]}}}return X.\u0275fac=function(k){return new(k||X)(e.LFG(us,8))},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({}),X})();function jl(X){return"guarded"}function cl(X){return[{provide:ea,multi:!0,useValue:X}]}function Gl(){const X=(0,e.f3M)(e.zs3);return re=>{var k,me;const Be=X.get(e.z2F);if(re!==Be.components[0])return;const ut=X.get(Ai),wt=X.get(ul);1===X.get(Ga)&&ut.initialNavigation(),null===(k=X.get(ho,null,e.XFs.Optional))||void 0===k||k.setUpPreloading(),null===(me=X.get(Ua,null,e.XFs.Optional))||void 0===me||me.init(),ut.resetRootComponentType(Be.componentTypes[0]),wt.next(),wt.complete()}}const dl=new e.OlP("");function ja(X){return["disabled"===X.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const X=(0,e.f3M)(Ai);return()=>{X.setUpLocationChangeListener()}}},{provide:Ga,useValue:2}]:[],"enabledBlocking"===X.initialNavigation?[{provide:Ga,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:X=>{const re=X.get(ce.V_,Promise.resolve(null));let k=!1;return()=>re.then(()=>new Promise(Be=>{const ut=X.get(Ai),wt=X.get(ul);(function me(Be){X.get(Ai).events.pipe((0,O.h)(wt=>wt instanceof kn||wt instanceof Zn||wt instanceof Ni),(0,De.U)(wt=>wt instanceof kn||wt instanceof Zn&&(0===wt.code||1===wt.code)&&null),(0,O.h)(wt=>null!==wt),(0,Ge.q)(1)).subscribe(()=>{Be()})})(()=>{Be(!0),k=!0}),ut.afterPreactivation=()=>(Be(!0),k||wt.closed?(0,S.of)(void 0):wt),ut.initialNavigation()}))}}]:[]]}const ul=new e.OlP("",{factory:()=>new fe.x}),Ga=new e.OlP("",{providedIn:"root",factory:()=>1});function hl(X){return[Fa,{provide:ho,useExisting:Fa},{provide:Ho,useExisting:X}]}},89383:(We,pe,h)=>{"use strict";h.d(pe,{X$:()=>Ce,Zw:()=>N,aw:()=>qe,sK:()=>Se});var e=h(94650),d=h(39646),_=h(45191),w=h(4128),g=h(97272),b=h(49770),y=h(95698),E=h(34782),S=h(54004),U=h(24351),A=h(63900);class N{}let z=(()=>{class Pe extends N{getTranslation(j){return(0,d.of)({})}}return Pe.\u0275fac=function(){let we;return function(I){return(we||(we=e.n5z(Pe)))(I||Pe)}}(),Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Q{}let ne=(()=>{class Pe{handle(j){return j.key}}return Pe.\u0275fac=function(j){return new(j||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function he(Pe,we){if(Pe===we)return!0;if(null===Pe||null===we)return!1;if(Pe!=Pe&&we!=we)return!0;let F,ge,G,j=typeof Pe;if(j==typeof we&&"object"==j){if(!Array.isArray(Pe)){if(Array.isArray(we))return!1;for(ge in G=Object.create(null),Pe){if(!he(Pe[ge],we[ge]))return!1;G[ge]=!0}for(ge in we)if(!(ge in G)&&typeof we[ge]<"u")return!1;return!0}if(!Array.isArray(we))return!1;if((F=Pe.length)==we.length){for(ge=0;ge{fe(we[I])?I in Pe?j[I]=ce(Pe[I],we[I]):Object.assign(j,{[I]:we[I]}):Object.assign(j,{[I]:we[I]})}),j}class ve{}let v=(()=>{class Pe extends ve{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(j,I){let F;return F="string"==typeof j?this.interpolateString(j,I):"function"==typeof j?this.interpolateFunction(j,I):j,F}getValue(j,I){let F="string"==typeof I?I.split("."):[I];I="";do{I+=F.shift(),!ee(j)||!ee(j[I])||"object"!=typeof j[I]&&F.length?F.length?I+=".":j=void 0:(j=j[I],I="")}while(F.length);return j}interpolateFunction(j,I){return j(I)}interpolateString(j,I){return I?j.replace(this.templateMatcher,(F,ge)=>{let G=this.getValue(I,ge);return ee(G)?G:F}):j}}return Pe.\u0275fac=function(){let we;return function(I){return(we||(we=e.n5z(Pe)))(I||Pe)}}(),Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class O{}let H=(()=>{class Pe extends O{compile(j,I){return j}compileTranslations(j,I){return j}}return Pe.\u0275fac=function(){let we;return function(I){return(we||(we=e.n5z(Pe)))(I||Pe)}}(),Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();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 q=new e.OlP("USE_STORE"),ue=new e.OlP("USE_DEFAULT_LANG"),Ee=new e.OlP("DEFAULT_LANGUAGE"),De=new e.OlP("USE_EXTEND");let Se=(()=>{class Pe{constructor(j,I,F,ge,G,_e=!0,Te=!1,et=!1,Xe){this.store=j,this.currentLoader=I,this.compiler=F,this.parser=ge,this.missingTranslationHandler=G,this.useDefaultLang=_e,this.isolate=Te,this.extend=et,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Xe&&this.setDefaultLang(Xe)}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(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}setDefaultLang(j){if(j===this.defaultLang)return;let I=this.retrieveTranslations(j);typeof I<"u"?(null==this.defaultLang&&(this.defaultLang=j),I.pipe((0,y.q)(1)).subscribe(F=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,d.of)(this.translations[j]);let I=this.retrieveTranslations(j);return typeof I<"u"?(this.currentLang||(this.currentLang=j),I.pipe((0,y.q)(1)).subscribe(F=>{this.changeLang(j)}),I):(this.changeLang(j),(0,d.of)(this.translations[j]))}retrieveTranslations(j){let I;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),I=this._translationRequests[j]),I}getTranslation(j){this.pending=!0;const I=this.currentLoader.getTranslation(j).pipe((0,E.d)(1),(0,y.q)(1));return this.loadingTranslations=I.pipe((0,S.U)(F=>this.compiler.compileTranslations(F,j)),(0,E.d)(1),(0,y.q)(1)),this.loadingTranslations.subscribe({next:F=>{this.translations[j]=this.extend&&this.translations[j]?{...F,...this.translations[j]}:F,this.updateLangs(),this.pending=!1},error:F=>{this.pending=!1}}),I}setTranslation(j,I,F=!1){I=this.compiler.compileTranslations(I,j),this.translations[j]=(F||this.extend)&&this.translations[j]?ce(this.translations[j],I):I,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(I=>{-1===this.langs.indexOf(I)&&this.langs.push(I)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,I,F){let ge;if(I instanceof Array){let G={},_e=!1;for(let Te of I)G[Te]=this.getParsedResult(j,Te,F),(0,_.b)(G[Te])&&(_e=!0);if(_e){const Te=I.map(et=>(0,_.b)(G[et])?G[et]:(0,d.of)(G[et]));return(0,w.D)(Te).pipe((0,S.U)(et=>{let Xe={};return et.forEach((vt,rt)=>{Xe[I[rt]]=vt}),Xe}))}return G}if(j&&(ge=this.parser.interpolate(this.parser.getValue(j,I),F)),typeof ge>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ge=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],I),F)),typeof ge>"u"){let G={key:I,translateService:this};typeof F<"u"&&(G.interpolateParams=F),ge=this.missingTranslationHandler.handle(G)}return typeof ge<"u"?ge:I}get(j,I){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,U.b)(F=>(F=this.getParsedResult(F,j,I),(0,_.b)(F)?F:(0,d.of)(F))));{let F=this.getParsedResult(this.translations[this.currentLang],j,I);return(0,_.b)(F)?F:(0,d.of)(F)}}getStreamOnTranslationChange(j,I){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,b.P)(()=>this.get(j,I)),this.onTranslationChange.pipe((0,A.w)(F=>{const ge=this.getParsedResult(F.translations,j,I);return"function"==typeof ge.subscribe?ge:(0,d.of)(ge)})))}stream(j,I){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,b.P)(()=>this.get(j,I)),this.onLangChange.pipe((0,A.w)(F=>{const ge=this.getParsedResult(F.translations,j,I);return(0,_.b)(ge)?ge:(0,d.of)(ge)})))}instant(j,I){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');let F=this.getParsedResult(this.translations[this.currentLang],j,I);if((0,_.b)(F)){if(j instanceof Array){let ge={};return j.forEach((G,_e)=>{ge[j[_e]]=j[_e]}),ge}return j}return F}set(j,I,F=this.currentLang){this.translations[F][j]=this.compiler.compile(I,F),this.updateLangs(),this.onTranslationChange.emit({lang:F,translations:this.translations[F]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}}return Pe.\u0275fac=function(j){return new(j||Pe)(e.LFG(Y),e.LFG(N),e.LFG(O),e.LFG(ve),e.LFG(Q),e.LFG(ue),e.LFG(q),e.LFG(De),e.LFG(Ee))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ce=(()=>{class Pe{constructor(j,I){this.translate=j,this._ref=I,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(j,I,F){let ge=G=>{this.value=void 0!==G?G:j,this.lastKey=j,this._ref.markForCheck()};if(F){let G=this.translate.getParsedResult(F,j,I);(0,_.b)(G.subscribe)?G.subscribe(ge):ge(G)}this.translate.get(j,I).subscribe(ge)}transform(j,...I){if(!j||!j.length)return j;if(he(j,this.lastKey)&&he(I,this.lastParams))return this.value;let F;if(ee(I[0])&&I.length)if("string"==typeof I[0]&&I[0].length){let ge=I[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{F=JSON.parse(ge)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${I[0]}`)}}else"object"==typeof I[0]&&!Array.isArray(I[0])&&(F=I[0]);return this.lastKey=j,this.lastParams=I,this.updateValue(j,F),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ge=>{this.lastKey&&ge.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,F,ge.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ge=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,F,ge.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,F))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Pe.\u0275fac=function(j){return new(j||Pe)(e.Y36(Se,16),e.Y36(e.sBO,16))},Pe.\u0275pipe=e.Yjl({name:"translate",type:Pe,pure:!1}),Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),qe=(()=>{class Pe{static forRoot(j={}){return{ngModule:Pe,providers:[j.loader||{provide:N,useClass:z},j.compiler||{provide:O,useClass:H},j.parser||{provide:ve,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:ne},Y,{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:De,useValue:j.extend},{provide:Ee,useValue:j.defaultLanguage},Se]}}static forChild(j={}){return{ngModule:Pe,providers:[j.loader||{provide:N,useClass:z},j.compiler||{provide:O,useClass:H},j.parser||{provide:ve,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:ne},{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:De,useValue:j.extend},{provide:Ee,useValue:j.defaultLanguage},Se]}}}return Pe.\u0275fac=function(j){return new(j||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({}),Pe})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class We extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return We.\u0275fac=function(){let pe;return function(e){return(pe||(pe=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(We)))(e||We)}}(),We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:We,factory:We.\u0275fac}),We})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class We{constructor(){this.data=new Map}getItem(h){return this.data.get(h)}removeItem(h){this.data.delete(h)}setItem(h,e){this.data.set(h,e)}}return We.\u0275fac=function(h){return new(h||We)},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:We,factory:We.\u0275fac}),We})();class ReceivedTokens{}class OAuthEvent{constructor(pe){this.type=pe}}class OAuthSuccessEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthInfoEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthErrorEvent extends OAuthEvent{constructor(pe,h,e=null){super(pe),this.reason=h,this.params=e}}function b64DecodeUnicode(We){const pe=We.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(pe).split("").map(function(h){return"%"+("00"+h.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(We){return btoa(We).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(pe){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=h=>{location.href=h},pe&&Object.assign(this,pe)}}class WebHttpUrlEncodingCodec{encodeKey(pe){return encodeURIComponent(pe)}encodeValue(pe){return encodeURIComponent(pe)}decodeKey(pe){return decodeURIComponent(pe)}decodeValue(pe){return decodeURIComponent(pe)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(pe){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=h.inferHashAlgorithm(pe.idTokenHeader),d=yield h.calcHash(pe.accessToken,e),w=base64UrlEncode(d.substr(0,d.length/2)),g=pe.idTokenClaims.at_hash.replace(/=/g,"");return w!==g&&(console.error("exptected at_hash: "+w),console.error("actual at_hash: "+g)),w===g})()}inferHashAlgorithm(pe){let h=pe.alg;if(!h.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+h);return"sha-"+h.substr(2)}}let UrlHelperService=(()=>{class We{getHashFragmentParams(h){let e=h||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const d=e.indexOf("?");return e=e.substr(d>-1?d+1:1),this.parseQueryString(e)}parseQueryString(h){const e={};let d,_,w,g,b,y,E;if(null===h)return e;d=h.split("&");for(let S=0;S>6,_[g++]=128|63&b):b<55296||b>=57344?(_[g++]=224|b>>12,_[g++]=128|b>>6&63,_[g++]=128|63&b):(b=65536+((1023&b)<<10|1023&We.charCodeAt(++e)),_[g++]=240|b>>18,_[g++]=128|b>>12&63,_[g++]=128|b>>6&63,_[g++]=128|63&b);We=_}else{if("object"!==d)throw new Error(ERROR);if(null===We)throw new Error(ERROR);if(ARRAY_BUFFER&&We.constructor===ArrayBuffer)We=new Uint8Array(We);else if(!(Array.isArray(We)||ARRAY_BUFFER&&ArrayBuffer.isView(We)))throw new Error(ERROR)}We.length>64&&(We=new Sha256(pe,!0).update(We).array());var y=[],E=[];for(e=0;e<64;++e){var S=We[e]||0;y[e]=92^S,E[e]=54^S}Sha256.call(this,pe,h),this.update(E),this.oKeyPad=y,this.inner=!0,this.sharedMemory=h}Sha256.prototype.update=function(We){if(!this.finalized){var pe,h=typeof We;if("string"!==h){if("object"!==h)throw new Error(ERROR);if(null===We)throw new Error(ERROR);if(ARRAY_BUFFER&&We.constructor===ArrayBuffer)We=new Uint8Array(We);else if(!(Array.isArray(We)||ARRAY_BUFFER&&ArrayBuffer.isView(We)))throw new Error(ERROR);pe=!0}for(var e,_,d=0,w=We.length,g=this.blocks;d>2]|=We[d]<>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 We=this.blocks,pe=this.lastByteIndex;We[16]=this.block,We[pe>>2]|=EXTRA[3&pe],this.block=We[16],pe>=56&&(this.hashed||this.hash(),We[0]=this.block,We[16]=We[1]=We[2]=We[3]=We[4]=We[5]=We[6]=We[7]=We[8]=We[9]=We[10]=We[11]=We[12]=We[13]=We[14]=We[15]=0),We[14]=this.hBytes<<3|this.bytes>>>29,We[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var y,A,Q,ne,he,ee,We=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,_=this.h5,w=this.h6,g=this.h7,b=this.blocks;for(y=16;y<64;++y)b[y]=b[y-16]+(((A=b[y-15])>>>7|A<<25)^(A>>>18|A<<14)^A>>>3)+b[y-7]+(((A=b[y-2])>>>17|A<<15)^(A>>>19|A<<13)^A>>>10)<<0;for(ee=pe&h,y=0;y<64;y+=4)this.first?(this.is224?(Q=300032,g=(A=b[0]-1413257819)-150054599<<0,e=A+24177077<<0):(Q=704751109,g=(A=b[0]-210244248)-1521486534<<0,e=A+143694565<<0),this.first=!1):(g=e+(A=g+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&_^~d&w)+K[y]+b[y])<<0,e=A+(((We>>>2|We<<30)^(We>>>13|We<<19)^(We>>>22|We<<10))+((Q=We&pe)^We&h^ee))<<0),w=h+(A=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&d^~g&_)+K[y+1]+b[y+1])<<0,h=A+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ne=e&We)^e&pe^Q))<<0,_=pe+(A=_+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&d)+K[y+2]+b[y+2])<<0,pe=A+(((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((he=h&e)^h&We^ne))<<0,d=We+(A=d+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&w^~_&g)+K[y+3]+b[y+3])<<0,We=A+(((pe>>>2|pe<<30)^(pe>>>13|pe<<19)^(pe>>>22|pe<<10))+((ee=pe&h)^pe&e^he))<<0;this.h0=this.h0+We<<0,this.h1=this.h1+pe<<0,this.h2=this.h2+h<<0,this.h3=this.h3+e<<0,this.h4=this.h4+d<<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 We=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,_=this.h5,w=this.h6,g=this.h7,b=HEX_CHARS[We>>28&15]+HEX_CHARS[We>>24&15]+HEX_CHARS[We>>20&15]+HEX_CHARS[We>>16&15]+HEX_CHARS[We>>12&15]+HEX_CHARS[We>>8&15]+HEX_CHARS[We>>4&15]+HEX_CHARS[15&We]+HEX_CHARS[pe>>28&15]+HEX_CHARS[pe>>24&15]+HEX_CHARS[pe>>20&15]+HEX_CHARS[pe>>16&15]+HEX_CHARS[pe>>12&15]+HEX_CHARS[pe>>8&15]+HEX_CHARS[pe>>4&15]+HEX_CHARS[15&pe]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[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[d>>28&15]+HEX_CHARS[d>>24&15]+HEX_CHARS[d>>20&15]+HEX_CHARS[d>>16&15]+HEX_CHARS[d>>12&15]+HEX_CHARS[d>>8&15]+HEX_CHARS[d>>4&15]+HEX_CHARS[15&d]+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||(b+=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]),b},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var We=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,_=this.h5,w=this.h6,g=this.h7,b=[We>>24&255,We>>16&255,We>>8&255,255&We,pe>>24&255,pe>>16&255,pe>>8&255,255&pe,h>>24&255,h>>16&255,h>>8&255,255&h,e>>24&255,e>>16&255,e>>8&255,255&e,d>>24&255,d>>16&255,d>>8&255,255&d,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||b.push(g>>24&255,g>>16&255,g>>8&255,255&g),b},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var We=new ArrayBuffer(this.is224?28:32),pe=new DataView(We);return pe.setUint32(0,this.h0),pe.setUint32(4,this.h1),pe.setUint32(8,this.h2),pe.setUint32(12,this.h3),pe.setUint32(16,this.h4),pe.setUint32(20,this.h5),pe.setUint32(24,this.h6),this.is224||pe.setUint32(28,this.h7),We},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var We=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(We),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(We){if("string"!=typeof We)throw new TypeError("expected string");var pe,h=We,e=new Uint8Array(h.length);for(pe=0;pe{class We{calcHash(h,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(h)))})()}toHashString2(h){let e="";for(let d of h)e+=String.fromCharCode(d);return e}toHashString(h){const e=new Uint8Array(h);let d="";for(let _ of e)d+=String.fromCharCode(_);return d}}return We.\u0275fac=function(h){return new(h||We)},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:We,factory:We.\u0275fac}),We})(),OAuthService=(()=>{class We extends AuthConfig{constructor(h,e,d,_,w,g,b,y,E,S){super(),this.ngZone=h,this.http=e,this.config=w,this.urlHelper=g,this.logger=b,this.crypto=y,this.dateTimeService=S,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=E,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),w&&this.configure(w);try{d?this.setStorage(d):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(N){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",N)}if(this.checkLocalStorageAccessable()){var U,A;const N=null===(U=window)||void 0===U||null===(A=U.navigator)||void 0===A?void 0:A.userAgent;(N?.includes("MSIE ")||N?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const h="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(h,h),localStorage.removeItem(h),0))}catch{return!1}}configure(h){Object.assign(this,new AuthConfig,h),this.config=Object.assign({},new AuthConfig,h),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)(h=>"token_received"===h.type)).subscribe(h=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(h={},e,d=!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(h,d).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(h,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(h,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(h=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(h))}loadDiscoveryDocumentAndLogin(h=null){return this.loadDiscoveryDocumentAndTryLogin(h=h||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof h.state?h.state:""),!1))}debug(...h){this.showDebugInformation&&this.logger.debug.apply(this.logger,h)}validateUrlFromDiscoveryDocument(h){const e=[],d=this.validateUrlForHttps(h),_=this.validateUrlAgainstIssuer(h);return d||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(h){if(!h)return!0;const e=h.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(h,e){if(!h)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(h))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(h){return!this.strictDiscoveryDocumentValidation||!h||h.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const h=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),d=this.calcTimeout(e,h);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)(d)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const h=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),d=this.calcTimeout(e,h);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)(d)).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(h,e){const d=this.dateTimeService.now();return Math.max(0,(e-h)*this.timeoutFactor-(d-h))}setStorage(h){this._storage=h,this.configChanged()}loadDiscoveryDocument(h=null){return new Promise((e,d)=>{h||((h=this.issuer||"").endsWith("/")||(h+="/"),h+=".well-known/openid-configuration"),this.validateUrlForHttps(h)?this.http.get(h).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void d("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 b=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:w});this.eventsSubject.next(b),e(b)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),d(w)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),d(_)}):d("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((h,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(d=>{this.jwks=d,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),h(d)},d=>{this.logger.error("error loading jwks",d),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",d)),e(d)}):h(null)})}validateDiscoveryDocument(h){let e;return this.skipIssuerCheck||h.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(h.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!h.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: "+h.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(h,e,d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(h,e,d).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((h,e)=>{const d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:d,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")),h({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),e(_)})})}fetchTokenUsingPasswordFlow(h,e,d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:h,password:e},d)}fetchTokenUsingGrant(h,e,d=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",h).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.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 d=d.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,_,{headers:d}).subscribe(b=>{this.debug("tokenResponse",b),this.storeAccessTokenResponse(b.access_token,b.refresh_token,b.expires_in||this.fallbackAccessTokenExpirationTimeInSec,b.scope,this.extractRecognizedCustomParameters(b)),this.oidc&&b.id_token&&this.processIdToken(b.id_token,b.access_token).then(y=>{this.storeIdToken(y),w(b)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(b)},b=>{this.logger.error("Error performing ${grantType} flow",b),this.eventsSubject.next(new OAuthErrorEvent("token_error",b)),g(b)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((h,e)=>{let d=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||(d=d.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(d=d.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))d=d.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,d,{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")),h(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=h=>{const e=this.processMessageEventMessage(h);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(d=>this.debug("tryLogin during silent refresh failed",d))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(h={},e=!0){const d=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(h.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=d.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,h).then(S=>{w.setAttribute("src",S),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const b=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>S instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_received"===S.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([b,y,E]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>{if(S instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===S.type||(S=new OAuthErrorEvent("silent_refresh_error",S)),this.eventsSubject.next(S),S;return"token_received"===S.type&&(S=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(S)),S})).toPromise()}initImplicitFlowInPopup(h){return this.initLoginFlowInPopup(h)}initLoginFlowInPopup(h){return h=h||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((d,_)=>{let b,g=null;h.windowRef?h.windowRef&&!h.windowRef.closed&&(g=h.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(h));const y=N=>{this.tryLogin({customHashFragment:N,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{S(),d(!0)},z=>{S(),_(z)})};g?b=window.setInterval(()=>{(!g||g.closed)&&(S(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const S=()=>{window.clearInterval(b),window.removeEventListener("storage",A),window.removeEventListener("message",U),null!==g&&g.close(),g=null},U=N=>{const z=this.processMessageEventMessage(N);z&&null!==z?(window.removeEventListener("storage",A),y(z)):console.log("false event firing")},A=N=>{"auth_hash"===N.key&&(window.removeEventListener("message",U),y(N.newValue))};window.addEventListener("message",U),window.addEventListener("storage",A)}))}calculatePopupFeatures(h){const e=h.height||470,d=h.width||500,_=window.screenLeft+(window.outerWidth-d)/2;return`location=no,toolbar=no,width=${d},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${_}`}processMessageEventMessage(h){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!h||!h.data||"string"!=typeof h.data)return;const d=h.data;return d.startsWith(e)?"#"+d.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=h=>{const e=h.origin.toLowerCase(),d=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),d.startsWith(e)){switch(h.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",h)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",d,"event",h)},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(h=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(h=>{this.debug("token refresh after session change worked")}).catch(h=>{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)(h=>"silently_refreshed"===h.type||"silent_refresh_timeout"===h.type||"silent_refresh_error"===h.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(h=>{"silently_refreshed"!==h.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 h=this.document.getElementById(this.sessionCheckIFrameName);h&&this.document.body.removeChild(h);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 h=this.document.getElementById(this.sessionCheckIFrameName);h||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),h.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(h="",e="",d="",_=!1,w={}){var g=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const b=g;let y;y=d||g.redirectUri;const E=yield g.createAndSaveNonce();if(h=h?E+g.config.nonceStateSeparator+encodeURIComponent(h):E,!g.requestAccessToken&&!g.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");g.responseType=g.config.responseType?g.config.responseType:g.oidc&&g.requestAccessToken?"id_token token":g.oidc&&!g.requestAccessToken?"id_token":"token";const S=b.loginUrl.indexOf("?")>-1?"&":"?";let U=b.scope;g.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let A=b.loginUrl+S+"response_type="+encodeURIComponent(b.responseType)+"&client_id="+encodeURIComponent(b.clientId)+"&state="+encodeURIComponent(h)+"&redirect_uri="+encodeURIComponent(y)+"&scope="+encodeURIComponent(U);if(g.responseType.includes("code")&&!g.disablePKCE){const[N,z]=yield g.createChallangeVerifierPairForPKCE();g.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",z):g._storage.setItem("PKCE_verifier",z),A+="&code_challenge="+N,A+="&code_challenge_method=S256"}e&&(A+="&login_hint="+encodeURIComponent(e)),b.resource&&(A+="&resource="+encodeURIComponent(b.resource)),b.oidc&&(A+="&nonce="+encodeURIComponent(E)),_&&(A+="&prompt=none");for(const N of Object.keys(w))A+="&"+encodeURIComponent(N)+"="+encodeURIComponent(w[N]);if(g.customQueryParams)for(const N of Object.getOwnPropertyNames(g.customQueryParams))A+="&"+N+"="+encodeURIComponent(g.customQueryParams[N]);return A})()}initImplicitFlowInternal(h="",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 d={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(d=e),this.createLoginUrl(h,_,null,!1,d).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(h="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(h,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(d=>"discovery_document_loaded"===d.type)).subscribe(d=>this.initImplicitFlowInternal(h,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(h){const e=this;if(h.onTokenReceived){const d={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};h.onTokenReceived(d)}}storeAccessTokenResponse(h,e,d,_,w){if(this._storage.setItem("access_token",h),_&&!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()),d){const g=1e3*d,y=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+y)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,b)=>{this._storage.setItem(b,g)})}tryLogin(h=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(h).then(e=>!0):this.tryLoginImplicitFlow(h)}parseQueryString(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):{}}tryLoginCodeFlow(h=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const d=(h=h||{}).customHashFragment?h.customHashFragment.substring(1):window.location.search,_=e.getCodePartsFromUrl(d),w=_.code,g=_.state,b=_.session_state;if(!h.preventClearHashAfterLogin){const S=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,S)}let[y,E]=e.parseState(g);if(e.state=E,_.error){e.debug("error trying to login"),e.handleLoginError(h,_);const S=new OAuthErrorEvent("code_error",{},_);return e.eventsSubject.next(S),Promise.reject(S)}if(!h.disableNonceCheck){if(!y)return e.saveRequestedRoute(),Promise.resolve();if(!h.disableOAuth2StateCheck&&!e.validateNonce(y)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(U),Promise.reject(U)}return e.storeSessionState(b),w&&(yield e.getTokenFromCode(w,h),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const h=this._storage.getItem("requested_route");h&&history.replaceState(null,"",window.location.origin+h)}getCodePartsFromUrl(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(h,e){let d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",h).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let _;_=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?d=d.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(d,e)}fetchAndProcessToken(h,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let d=(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}`);d=d.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),new Promise((_,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,h,{headers:d}).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(b=>{this.storeIdToken(b),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g)}).catch(b=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",b)),console.error("Error validating tokens"),console.error(b),w(b)}):(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(h=null){let e;e=(h=h||{}).customHashFragment?this.urlHelper.getHashFragmentParams(h.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const d=e.state;let[_,w]=this.parseState(d);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(h,e);const S=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(S),Promise.reject(S)}const g=e.access_token,b=e.id_token,y=e.session_state,E=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&&!h.disableOAuth2StateCheck&&!d||this.oidc&&!b)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&&!h.disableNonceCheck&&!this.validateNonce(_)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,E),this.oidc?this.processIdToken(b,g,h.disableNonceCheck).then(S=>h.validationHandler?h.validationHandler({accessToken:g,idClaims:S.idTokenClaims,idToken:S.idToken,state:d}).then(U=>S):S).then(S=>(this.storeIdToken(S),this.storeSessionState(y),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(h),this.inImplicitFlow=!1,!0)).catch(S=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",S)),this.logger.error("Error validating tokens"),this.logger.error(S),Promise.reject(S))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(h),Promise.resolve(!0))}parseState(h){let e=h,d="";if(h){const _=h.indexOf(this.config.nonceStateSeparator);_>-1&&(e=h.substr(0,_),d=h.substr(_+this.config.nonceStateSeparator.length))}return[e,d]}validateNonce(h){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===h||(console.error("Validating access_token failed, wrong state/nonce.",e,h),!1)}storeIdToken(h){this._storage.setItem("id_token",h.idToken),this._storage.setItem("id_token_claims_obj",h.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+h.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(h){this._storage.setItem("session_state",h)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(h,e){h.onLoginError&&h.onLoginError(e),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(h=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:h}processIdToken(h,e,d=!1){const _=h.split("."),g=b64DecodeUnicode(this.padBase64(_[0])),b=JSON.parse(g),E=b64DecodeUnicode(this.padBase64(_[1])),S=JSON.parse(E);let U;if(U=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(S.aud)){if(S.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+S.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(S.aud!==this.clientId){const he="Wrong audience: "+S.aud;return this.logger.warn(he),Promise.reject(he)}if(!S.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==S.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${S.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!S.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&S.iss!==this.issuer){const he="Wrong issuer: "+S.iss;return this.logger.warn(he),Promise.reject(he)}if(!d&&S.nonce!==U){const he="Wrong nonce: "+S.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!S.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const A=this.dateTimeService.now(),N=1e3*S.iat,z=1e3*S.exp,Q=this.getClockSkewInMsec();if(N-Q>=A||z+Q<=A){const he="Token has expired";return console.error(he),console.error({now:A,issuedAtMSec:N,expiresAtMSec:z}),Promise.reject(he)}const ne={accessToken:e,idToken:h,jwks:this.jwks,idTokenClaims:S,idTokenHeader:b,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(he=>({idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:b,idTokenHeaderJson:g,idTokenExpiresAt:z})):this.checkAtHash(ne).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const ee="Wrong at_hash";return this.logger.warn(ee),Promise.reject(ee)}return this.checkSignature(ne).then(ee=>{const ce={idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:b,idTokenHeaderJson:g,idTokenExpiresAt:z};return this.disableAtHashCheck?ce:this.checkAtHash(ne).then(ve=>{if(this.requestAccessToken&&!ve){const v="Wrong at_hash";return this.logger.warn(v),Promise.reject(v)}return ce})})})}getIdentityClaims(){const h=this._storage.getItem("id_token_claims_obj");return h?JSON.parse(h):null}getGrantedScopes(){const h=this._storage.getItem("granted_scopes");return h?JSON.parse(h):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(h){for(;h.length%4!=0;)h+="=";return h}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 h=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(h&&parseInt(h,10)=0&&null!==this._storage.getItem(h)?JSON.parse(this._storage.getItem(h)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(h={},e=""){let d=!1;"boolean"==typeof h&&(d=h,h={});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||d||!_&&!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 b=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";b&&(g=g.set("post_logout_redirect_uri",b),e&&(g=g.set("state",e)));for(let y in h)g=g.set(y,h[y]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const h=this;return this.createNonce().then(function(e){return h.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):h._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const h=this.document.getElementById(this.silentRefreshIFrameName);h&&h.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(h=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let d=45,_="";const w=typeof self>"u"?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(d);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(b=>e.charCodeAt(b%e.length)),_=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===d.type)).subscribe(d=>this.initCodeFlowInternal(h,e))}initCodeFlowInternal(h="",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 d={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(d=e),this.createLoginUrl(h,_,null,!1,d).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!h.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield h.createNonce();return[base64UrlEncode(yield h.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(h){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(d=>{h[d]&&e.set(d,JSON.stringify(h[d]))}),e}revokeTokenAndLogout(h={},e=!1){let d=this.revocationEndpoint,_=this.getAccessToken(),w=this.getRefreshToken();if(!_)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const y=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+y)}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 y of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(y,this.customQueryParams[y]);return new Promise((y,E)=>{let S,U;if(_){let A=g.set("token",_).set("token_type_hint","access_token");S=this.http.post(d,A,{headers:b})}else S=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let A=g.set("token",w).set("token_type_hint","refresh_token");U=this.http.post(d,A,{headers:b})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(S=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(A=>0===A.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(A))),U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(A=>0===A.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(A)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([S,U]).subscribe(A=>{this.logOut(h),y(A),this.logger.info("Token successfully revoked")},A=>{this.logger.error("Error revoking token",A),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",A)),E(A)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return We.\u0275fac=function(h){return new(h||We)(_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))},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:We,factory:We.\u0275fac}),We})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(pe){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(pe)}}let DefaultOAuthInterceptor=(()=>{class We{constructor(h,e,d){this.oAuthService=h,this.errorHandler=e,this.moduleConfig=d}checkUrl(h){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(h):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>h.toLowerCase().startsWith(e.toLowerCase()))}intercept(h,e){const d=h.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(d)?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__.z)(w=>{if(w){const b=h.headers.set("Authorization","Bearer "+w);h=h.clone({headers:b})}return e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(h)}}return We.\u0275fac=function(h){return new(h||We)(_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))},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:We,factory:We.\u0275fac}),We})();class NullValidationHandler{validateSignature(pe){return Promise.resolve(null)}validateAtHash(pe){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class We{static forRoot(h=null,e=NullValidationHandler){return{ngModule:We,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:h},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return We.\u0275fac=function(h){return new(h||We)},We.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:We}),We.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),We})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(We,pe,h)=>{"use strict";h.d(pe,{Co:()=>ie,nu:()=>W});var e=h(29521),d=h(94650),_=h(24006),w=h(3238),g=h(59549),b=h(84385),y=h(61135),E=h(39646),S=h(39841),U=h(77579),A=h(63900),N=h(54004),z=h(68675),Q=h(91005),ne=h(82722),he=h(95698),ee=h(39300),fe=h(18505),ce=h(67376),ve=h(12687),v=h(56709),O=h(51572),H=h(4859),Y=h(97392),q=h(36895),ue=h(10266);const Ee=["searchSelectInput"],De=["innerSelectSearch"];function Se(ae,Ze){if(1&ae){const Je=d.EpF();d.TgZ(0,"mat-checkbox",9),d.NdJ("change",function(ze){d.CHM(Je);const oe=d.oxw();return d.KtG(oe._emitSelectAllBooleanToParent(ze.checked))}),d.qZA()}if(2&ae){const Je=d.oxw();d.Q6J("color",null==Je.matFormField?null:Je.matFormField.color)("checked",Je.toggleAllCheckboxChecked)("indeterminate",Je.toggleAllCheckboxIndeterminate)("matTooltip",Je.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Je.toogleAllCheckboxTooltipPosition)}}function Ge(ae,Ze){1&ae&&d._UZ(0,"mat-spinner",10)}function Ce(ae,Ze){1&ae&&d.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function qe(ae,Ze){if(1&ae&&(d.TgZ(0,"mat-icon",14),d._uU(1),d.qZA()),2&ae){const Je=d.oxw(2);d.Q6J("svgIcon",Je.closeSvgIcon),d.xp6(1),d.hij(" ",Je.closeSvgIcon?null:Je.closeIcon," ")}}function Pe(ae,Ze){if(1&ae){const Je=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){d.CHM(Je);const ze=d.oxw();return d.KtG(ze._reset(!0))}),d.YNc(1,Ce,1,0,"ng-content",12),d.YNc(2,qe,2,2,"ng-template",null,13,d.W1O),d.qZA()}if(2&ae){const Je=d.MAs(3),ct=d.oxw();d.xp6(1),d.Q6J("ngIf",ct.clearIcon)("ngIfElse",Je)}}function we(ae,Ze){1&ae&&d.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function j(ae,Ze){if(1&ae&&d._uU(0),2&ae){const Je=d.oxw(2);d.Oqu(Je.noEntriesFoundLabel)}}function I(ae,Ze){if(1&ae&&(d.TgZ(0,"div",15),d.YNc(1,we,1,0,"ng-content",12),d.YNc(2,j,1,1,"ng-template",null,16,d.W1O),d.qZA()),2&ae){const Je=d.MAs(3),ct=d.oxw();d.xp6(1),d.Q6J("ngIf",ct.noEntriesFound)("ngIfElse",Je)}}const F=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ge=function(ae,Ze){return{"mat-select-search-inner-multiple":ae,"mat-select-search-inner-toggle-all":Ze}},G=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let _e=(()=>{class ae{}return ae.\u0275fac=function(Je){return new(Je||ae)},ae.\u0275dir=d.lG2({type:ae,selectors:[["","ngxMatSelectSearchClear",""]]}),ae})();const Te=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],et=new d.OlP("mat-selectsearch-default-options");let rt=(()=>{class ae{}return ae.\u0275fac=function(Je){return new(Je||ae)},ae.\u0275dir=d.lG2({type:ae,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ae})(),W=(()=>{class ae{constructor(Je,ct,ze,oe=null,V,r=null,s){this.matSelect=Je,this.changeDetectorRef=ct,this._viewportRuler=ze,this.matOption=oe,this.liveAnnouncer=V,this.matFormField=r,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new d.vpe,this.onTouched=f=>{},this._options$=new y.X(null),this.optionsList$=this._options$.pipe((0,A.w)(f=>f?f.changes.pipe((0,N.U)(l=>l.toArray()),(0,z.O)(f.toArray())):(0,E.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,N.U)(f=>f?f.length:0)),this._formControl=new _.NI(""),this._showNoEntriesFound$=(0,S.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,N.U)(([f,l])=>this.noEntriesFoundLabel&&f&&l===this.getOptionsLengthOffset())),this._onDestroy=new U.x,this.applyDefaultOptions(s)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Je){this._options$.next(Je)}get _options(){return this._options$.getValue()}applyDefaultOptions(Je){if(Je)for(const ct of Te)Je.hasOwnProperty(ct)&&(this[ct]=Je[ct])}ngOnInit(){const Je="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Je):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Je]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Je]=!0):this.matSelect.panelClass=Je,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,Q.g)(1),(0,ne.R)(this._onDestroy)).subscribe(ct=>{ct?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,he.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 ct=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const ze=this._options.toArray(),oe=ze[this.getOptionsLengthOffset()],V=this.matSelect._keyManager;V&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ct,oe)||!V.activeItem||!ze.find(s=>this.matSelect.compareWith(s,V.activeItem)))&&V.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ct=oe})})}),this._showNoEntriesFound$.pipe((0,ne.R)(this._onDestroy)).subscribe(ct=>{this.matOption&&(ct?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(Je){this.toggleAll.emit(Je)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Je){(Je.key&&1===Je.key.length||Je.keyCode>=e.A&&Je.keyCode<=e.Z||Je.keyCode>=e.xE&&Je.keyCode<=e.aO||Je.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Je.keyCode===e.Sd||Je.keyCode===e.uR))&&Je.stopPropagation(),this.matSelect.multiple&&Je.key&&Je.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Je.keyCode===e.hY&&this.value&&(this._reset(!0),Je.stopPropagation())}_handleKeyup(Je){if(Je.keyCode===e.LH||Je.keyCode===e.JH){const ct=this.matSelect._getAriaActiveDescendant(),ze=this._options.toArray().findIndex(oe=>oe.id===ct);if(-1!==ze){const oe=this._options.toArray()[ze];this.liveAnnouncer.announce(oe.viewValue+" "+this.getAriaIndex(ze)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Je){return 0===this.getOptionsLengthOffset()?Je+1:Je}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Je){this._lastExternalInputValue=Je,this._formControl.setValue(Je),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Je){this._formControl.valueChanges.pipe((0,ee.h)(ct=>ct!==this._lastExternalInputValue),(0,fe.b)(()=>this._lastExternalInputValue=void 0),(0,ne.R)(this._onDestroy)).subscribe(Je)}registerOnTouched(Je){this.onTouched=Je}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Je=this.matSelect.panel.nativeElement,ct=Je.scrollTop;this.searchSelectInput.nativeElement.focus(),Je.scrollTop=ct}_reset(Je){this._formControl.setValue(""),Je&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ne.R)(this._onDestroy)).subscribe(Je=>{let ct=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Je||!Array.isArray(Je))&&(Je=[]);const ze=this.matSelect.options.map(oe=>oe.value);this.previousSelectedValues.forEach(oe=>{!Je.some(V=>this.matSelect.compareWith(V,oe))&&!ze.some(V=>this.matSelect.compareWith(V,oe))&&(Je.push(oe),ct=!0)})}this.previousSelectedValues=Je,ct&&this.matSelect._onChange(Je)})):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 Je=this.getMatOptionHeight(),ct=this.matSelect._keyManager.activeItemIndex||0,ze=(0,w.CB)(ct,this.matSelect.options,this.matSelect.optionGroups),oe=(this.matOption?-1:0)+ze+ct,V=this.matSelect.panel.nativeElement.scrollTop,r=this.innerSelectSearch.nativeElement.offsetHeight,s=Math.floor((256-r)/Je),f=Math.round((V+r)/Je)-1;f>=oe?this.matSelect.panel.nativeElement.scrollTop=oe*Je:f+s<=oe&&(this.matSelect.panel.nativeElement.scrollTop=(oe+1)*Je-(256-r))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ct,Je=this.innerSelectSearch.nativeElement;for(;Je=Je.parentElement;)if(Je.classList.contains("mat-select-panel")){ct=Je;break}ct&&(this.innerSelectSearch.nativeElement.style.width=ct.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ae.\u0275fac=function(Je){return new(Je||ae)(d.Y36(b.gD),d.Y36(d.sBO),d.Y36(ce.rL),d.Y36(w.ey,8),d.Y36(ve.Kd),d.Y36(g.KE,8),d.Y36(et,8))},ae.\u0275cmp=d.Xpm({type:ae,selectors:[["ngx-mat-select-search"]],contentQueries:function(Je,ct,ze){if(1&Je&&(d.Suo(ze,_e,5),d.Suo(ze,rt,5)),2&Je){let oe;d.iGM(oe=d.CRH())&&(ct.clearIcon=oe.first),d.iGM(oe=d.CRH())&&(ct.noEntriesFound=oe.first)}},viewQuery:function(Je,ct){if(1&Je&&(d.Gf(Ee,7,d.SBq),d.Gf(De,7,d.SBq)),2&Je){let ze;d.iGM(ze=d.CRH())&&(ct.searchSelectInput=ze.first),d.iGM(ze=d.CRH())&&(ct.innerSelectSearch=ze.first)}},hostVars:2,hostBindings:function(Je,ct){2&Je&&d.ekj("mat-select-search-inside-mat-option",ct.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[d._Bn([{provide:_.JU,useExisting:(0,d.Gpc)(()=>ae),multi:!0}])],ngContentSelectors:G,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Je,ct){1&Je&&(d.F$t(F),d._UZ(0,"input",0),d.TgZ(1,"div",1,2),d.YNc(3,Se,1,5,"mat-checkbox",3),d.TgZ(4,"input",4,5),d.NdJ("keydown",function(oe){return ct._handleKeydown(oe)})("keyup",function(oe){return ct._handleKeyup(oe)})("blur",function(){return ct.onBlur()}),d.qZA(),d.YNc(6,Ge,1,0,"mat-spinner",6),d.YNc(7,Pe,4,2,"button",7),d.Hsn(8),d.qZA(),d.YNc(9,I,4,2,"div",8),d.ALo(10,"async")),2&Je&&(d.xp6(1),d.Q6J("ngClass",d.WLB(11,ge,ct.matSelect.multiple,ct._isToggleAllCheckboxVisible())),d.xp6(2),d.Q6J("ngIf",ct._isToggleAllCheckboxVisible()),d.xp6(1),d.Q6J("type",ct.type)("formControl",ct._formControl)("placeholder",ct.placeholderLabel),d.uIk("aria-label",ct.ariaLabel),d.xp6(2),d.Q6J("ngIf",ct.searching),d.xp6(1),d.Q6J("ngIf",!ct.hideClearSearchButton&&ct.value&&!ct.searching),d.xp6(2),d.Q6J("ngIf",d.lcZ(10,9,ct._showNoEntriesFound$)))},dependencies:[v.oG,O.Ou,H.lW,Y.Hw,q.mk,q.O5,ue.gM,_.Fj,_.JJ,_.oH,q.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}),ae})(),ie=(()=>{class ae{}return ae.\u0275fac=function(Je){return new(Je||ae)},ae.\u0275mod=d.oAB({type:ae}),ae.\u0275inj=d.cJS({imports:[[q.ez,_.UX,H.ot,v.p9,Y.Ps,O.Cq,ue.AV]]}),ae})()},15861:(We,pe,h)=>{"use strict";function e(_,w,g,b,y,E,S){try{var U=_[E](S),A=U.value}catch(N){return void g(N)}U.done?w(A):Promise.resolve(A).then(b,y)}function d(_){return function(){var w=this,g=arguments;return new Promise(function(b,y){var E=_.apply(w,g);function S(A){e(E,b,y,S,U,"next",A)}function U(A){e(E,b,y,S,U,"throw",A)}S(void 0)})}}h.d(pe,{Z:()=>d})},4147:We=>{"use strict";We.exports={i8:"9.4.0"}}},We=>{We(We.s=33246)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.fb1f66366479cd6f.js b/dist/apps/admin-gui/main.fb1f66366479cd6f.js deleted file mode 100644 index e35af687a..000000000 --- a/dist/apps/admin-gui/main.fb1f66366479cd6f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>_t});var e=h(32105),c=h(10036),A=h(94650),w=h(36895),g=h(3848),C=h(51572),T=h(64877),E=h(62109),S=h(62707),U=h(38383),_=h(74010),V=h(9244),z=h(97392),Q=h(4859),te=h(10266),oe=h(42377),ee=h(64901),le=h(89383);function de(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),A.NdJ("entitySelected",function(ae){const Se=A.CHM(Y).$implicit;return A.KtG(Se[0]=ae.namespace+":"+ae.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),A.NdJ("filter",function(ae){const Se=A.CHM(Y).$implicit;return A.KtG(Se[1]=ae)}),A.qZA()(),A.TgZ(8,"div",11)(9,"button",12),A.NdJ("click",function(){const re=A.CHM(Y).$implicit,Se=A.oxw(2);return A.KtG(Se.removeOption(re))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Je){const Y=A.oxw(2);A.xp6(2),A.Q6J("entities",Y.availableAttrDefs)("searchFunction",Y.nameFunction)("mainTextFunction",Y.nameFunction)("secondaryTextFunction",Y.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===Y.options.length)}}function Te(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",1),A.YNc(1,de,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae.searchEntities())}),A.TgZ(8,"mat-icon"),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Je){const Y=A.oxw();A.xp6(1),A.Q6J("ngForOf",Y.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!Y.emptySearchString()),A.xp6(2),A.Q6J("disabled",Y.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let v=(()=>{class Je{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=Y=>Y.displayName,this.secondaryTextFunction=Y=>"#"+String(Y.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(Y=>Y.entity===this.attributesForEntity).sort(V.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(Y){this.options=this.options.filter(Ce=>Ce!==Y)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(Y=>0===Y[1].length)}searchEntities(){const Y={};this.options.forEach(Ce=>{Y[Ce[0]]=Ce[1]}),this.search.emit(Y)}}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(Y,Ce){1&Y&&A.YNc(0,Te,12,12,"div",0),2&Y&&A.Q6J("ngIf",void 0!==Ce.options)},dependencies:[w.sg,w.O5,z.Hw,Q.lW,te.gM,oe.i,ee.P,le.X$]}),Je})();function L(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function B(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"user"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","user")}}const W=function(){return["user","id","name"]};function q(Je,gt){if(1&Je&&A._UZ(0,"app-users-list",9),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,W))("users",Y.entities)}}function ue(Je,gt){if(1&Je&&(A.YNc(0,B,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,q,1,4,"app-users-list",7)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function ye(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Me(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.voSelected(ae))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("vos",Y.vos)}}function we(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"member"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","user")}}const Ge=function(){return["id","voId","userId","status"]};function ce(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(Y);const ae=A.oxw(2);return A.KtG(ae.searchEntities(ae.searchInput,"member"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(4,Ge))("disableExpirationChange",!0)("members",Y.entities)}}function Ze(Je,gt){if(1&Je&&(A.TgZ(0,"div",10),A.YNc(1,Me,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,we,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,ce,1,5,"perun-web-apps-members-list",12)),2&Je){const Y=A.oxw();A.xp6(1),A.Q6J("ngIf",Y.vos.length>0),A.xp6(1),A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function he(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function xe(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"facility"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","facility")}}const j=function(){return["id","name","description"]};function R(Je,gt){if(1&Je&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,j))("facilities",Y.entities)}}function G(Je,gt){if(1&Je&&(A.YNc(0,xe,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,R,1,4,"perun-web-apps-facilities-list",15)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function se(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function $(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"resource"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","resource")}}const Ee=function(){return["id","name","description","voId","facilityId"]};function Oe(Je,gt){if(1&Je&&A._UZ(0,"perun-web-apps-resources-list",18),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,Ee))("resources",Y.entities)}}function ct(Je,gt){if(1&Je&&(A.YNc(0,$,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,Oe,1,4,"perun-web-apps-resources-list",17)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function Xe(Je,gt){1&Je&&A._UZ(0,"mat-spinner",19)}let _t=(()=>{class Je{constructor(Y,Ce,ae){this.attributesManager=Y,this.searcher=Ce,this.voService=ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=c.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Y=>{this.allAttrDefinitions=Y,this.loading=!1})}tabChanged(Y){switch(this.entities=[],Y){case 0:this.tableId=c.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=c.FF;break;case 2:this.tableId=c.$I;break;case 3:this.tableId=c.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(Y=>{this.vos=Y,this.selectedVo=Y[0],this.loadingEntityData=!1})}voSelected(Y){void 0!==Y&&(this.selectedVo=Y)}searchEntities(Y,Ce){switch(this.searchInput=Y,this.loadingEntityData=!0,Ce){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(Y=>{this.entities=Y,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y.map(Ce=>({facility:Ce})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y,this.loadingEntityData=!1})}}return Je.id="AdminSearcherComponent",Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("router-component",Ce.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(Y,Ce){1&Y&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(re){return Ce.tabChanged(re)}),A.TgZ(4,"mat-tab",2),A.YNc(5,L,2,3,"ng-template",3),A.YNc(6,ue,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,ye,2,3,"ng-template",3),A.YNc(9,Ze,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,he,2,3,"ng-template",3),A.YNc(12,G,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,se,2,3,"ng-template",3),A.YNc(15,ct,2,2,"ng-template",4),A.qZA()(),A.YNc(16,Xe,1,0,"mat-spinner",5)),2&Y&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",Ce.loading||Ce.loadingEntityData))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.Ou,T.C,E.C,S.M,U.O,_.X,v,le.X$]}),Je})()},80774:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>v});var e=h(95017),c=h(32105),A=h(10036),w=h(9244),g=h(40009),C=h(90719),T=h(32080),E=h(94650),S=h(65412),U=h(36895),_=h(4859),V=h(51572),z=h(60205),Q=h(96214),te=h(7434),oe=h(89383);function ee(L,B){if(1&L){const W=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){E.CHM(W);const ue=E.oxw();return E.KtG(ue.createService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&L&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function le(L,B){if(1&L){const W=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(W);const ue=E.oxw();return E.KtG(ue.deleteService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&L){const W=E.oxw();E.Q6J("disabled",0===W.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function de(L,B){1&L&&E._UZ(0,"mat-spinner",9)}function Te(L,B){if(1&L&&E._UZ(0,"app-services-list",10),2&L){const W=E.oxw();E.Q6J("filterValue",W.filterValue)("selection",W.selection)("services",W.services)("tableId",W.tableId)}}let v=(()=>{class L{constructor(W,q,ue){this.serviceManager=W,this.dialog=q,this.authResolver=ue,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(W=>{this.services=W,this.refreshTable()})}createService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme"},this.dialog.open(g.R,W).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}deleteService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(C.m,W).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(W=>{this.services=W,this.selection.clear(),this.loading=!1})}applyFilter(W){this.filterValue=W}}return L.id="AdminServicesComponent",L.\u0275fac=function(W){return new(W||L)(E.Y36(c.KK),E.Y36(S.uw),E.Y36(T.x4))},L.\u0275cmp=E.Xpm({type:L,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(W,q){1&W&&(E.TgZ(0,"div")(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,ee,3,3,"button",2),E.YNc(6,le,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(ye){return q.applyFilter(ye)}),E.qZA(),E.YNc(8,de,1,0,"mat-spinner",5),E.YNc(9,Te,1,4,"app-services-list",6),E.qZA()),2&W&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"ADMIN.SERVICES.TITLE")),E.xp6(3),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("placeholder","ADMIN.SERVICES.FILTER"),E.xp6(1),E.Q6J("ngIf",q.loading),E.xp6(1),E.Q6J("ngIf",!q.loading))},dependencies:[U.O5,_.lW,V.Ou,z.Q,Q.t,te.L,oe.X$]}),L})()},25828:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>U});var e=h(10036),c=h(64080),A=h(32080),w=h(94650),g=h(56709),C=h(64901),T=h(88561),E=h(89383);const S=function(){return["user","id","name","email","logins","organization"]};let U=(()=>{class _{constructor(z){this.storeService=z,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(z){this.searchString=z}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return _.id="AdminUsersComponent",_.\u0275fac=function(z){return new(z||_)(w.Y36(A.d6))},_.\u0275cmp=w.Xpm({type:_,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(z,Q){2&z&&w.ekj("router-component",Q.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(z,Q){1&z&&(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(oe){return Q.onSearchByString(oe)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return Q.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&z&&(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",Q.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",Q.searchString)("attrNames",Q.attributes)("displayedColumns",w.DdM(15,S))("tableId",Q.tableId)("withoutVo",Q.usersWithoutVo))},dependencies:[g.oG,C.P,T.M,E.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),_})()},72077:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>L});var e=h(32080),c=h(17445),A=h(80529),w=h(9244),g=h(94650),C=h(65412),T=h(4859),E=h(89383);let S=(()=>{class B{constructor(q){this.dialogRef=q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return B.\u0275fac=function(q){return new(q||B)(g.Y36(C.so))},B.\u0275cmp=g.Xpm({type:B,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(q,ue){1&q&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"div",2)(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",3)(9,"button",4),g.NdJ("click",function(){return ue.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return ue.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA()()()),2&q&&(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")," "))},dependencies:[T.lW,C.uh,C.xY,C.H8,E.X$]}),B})();var U=h(94364),_=h(39300);let V=(()=>{class B{constructor(q,ue){this.router=q,this.routeReuseStrategy=ue;const ye=ue;q.events.subscribe(Me=>{Me instanceof U.OD&&ye.setLastNavigationType("popstate"===Me.navigationTrigger?"back":"direct")})}init(){}}return B.\u0275fac=function(q){return new(q||B)(g.LFG(U.F0),g.LFG(U.wN))},B.\u0275prov=g.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const z=["footer"];function Q(B,W){if(1&B&&(g.TgZ(0,"div",3)(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&B){const q=g.oxw();g.xp6(3),g.hij(" ",q.warningMessage,"\n")}}const te=function(B,W){return{top:B,background:W}},oe=function(B,W){return{"margin-top":B,"min-height":W}},ee=function(B,W){return{"border-color":B,background:W}},le=function(B){return{"background-color":B}},de=function(B){return{"min-height":B}};function Te(B,W){if(1&B&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),g._UZ(5,"app-side-menu",8),g.qZA()(),g.TgZ(6,"mat-sidenav-content",9)(7,"div",10),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,11),g._UZ(11,"perun-web-apps-footer"),g.qZA()()()),2&B){const q=g.MAs(3),ue=g.oxw();g.Q6J("principal",ue.principal)("ngStyle",g.WLB(12,te,ue.getNavMenuTop(),ue.navBackgroundColor))("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.WLB(15,oe,ue.getSideNavMarginTop(),ue.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",ue.sidebarMode)("fixedTopGap",ue.getTopGap())("ngStyle",g.WLB(18,ee,ue.sideBarBorderColor,ue.sideMenubackgroundColor))("opened",!ue.isMobile()),g.xp6(3),g.Q6J("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.VKq(21,le,ue.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(23,de,ue.contentInnerMinHeight))}}function v(B,W){1&B&&g._UZ(0,"perun-web-apps-login-screen-base",12),2&B&&g.Q6J("application","admin-gui")}let L=(()=>{class B{constructor(q,ue,ye,Me,we,Ge,ce){this.cache=q,this.store=ue,this.http=ye,this.dialog=Me,this.router=we,this.initAuth=Ge,this.cd=ce,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=h(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<=B.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,c.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,_.h)(q=>q instanceof U.OD)).subscribe(q=>{this.updateInitAccessedPage(q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+q+"px - 112px)":"calc(100vh - "+q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(q){q.url===sessionStorage.getItem("initPage")?("imperative"===q.navigationTrigger&&q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===q.navigationTrigger&&(q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const q=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:q}).subscribe(ue=>{const ye=ue.version;if(ye)if(this.version&&"SNAPSHOT"!==ye&&this.version!==ye){const Me=(0,w.kZ)();this.dialog.open(S,Me)}else this.version=ye})}}return B.minWidth=992,B.\u0275fac=function(q){return new(q||B)(g.Y36(V),g.Y36(e.d6),g.Y36(A.eN),g.Y36(C.uw),g.Y36(U.F0),g.Y36(e.v0),g.Y36(g.sBO))},B.\u0275cmp=g.Xpm({type:B,selectors:[["app-root"]],viewQuery:function(q,ue){if(1&q&&g.Gf(z,5),2&q){let ye;g.iGM(ye=g.CRH())&&(ue.footer=ye.first)}},hostBindings:function(q,ue){1&q&&g.NdJ("resize",function(Me){return ue.getScreenSize(Me)},!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,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(q,ue){1&q&&(g.YNc(0,Q,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,Te,12,25,"ng-template",2),g.YNc(3,v,1,1,"ng-template",2)),2&q&&(g.Q6J("ngIf",ue.displayWarning),g.xp6(1),g.Q6J("displayWarning",ue.displayWarning),g.xp6(1),g.Q6J("ngIf",!ue.isLoginScreenShow&&!ue.isServiceAccess&&!ue.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",ue.isLoginScreenShow||ue.isServiceAccess||ue.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}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),B})()},77968:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>c});var e=h(94650);let c=(()=>{class A{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 A.\u0275fac=function(g){return new(g||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>le});var e=h(32105),c=h(10036),A=h(32080),w=h(94650),g=h(36895),C=h(3238),T=h(59549),E=h(84385),S=h(51572),U=h(24179),_=h(96214),V=h(7434),z=h(89383);function Q(de,Te){if(1&de&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&de){const v=Te.$implicit;w.Q6J("value",v.id),w.xp6(1),w.hij(" ",v.name," ")}}function te(de,Te){1&de&&w._UZ(0,"mat-spinner",10)}const oe=function(){return["id","vo","name","description"]};function ee(de,Te){if(1&de&&w._UZ(0,"perun-web-apps-groups-list",11),2&de){const v=w.oxw();w.Q6J("displayedColumns",w.DdM(6,oe))("groups",v.groupsToShow)("disableMembers",!1)("filter",v.filterValue)("groupsToDisableRouting",v.groupsWithoutRouteAuth)("tableId",v.tableId)}}let le=(()=>{class de{constructor(v,L,B){this.facilityManager=v,this.authResolver=L,this.entityStorageService=B,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=c.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(v=>{this.vos=v,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(v=>v.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(v=>{this.facilityManager.getAllowedGroups(this.facility.id,v.id).subscribe(L=>{this.groups=this.groups.concat(L),this.groupsToShow=this.groups,this.setAuthRights(v,L),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(v,L){L.forEach(B=>{this.authResolver.isAuthorized("getGroupById_int_policy",[v,B])||this.groupsWithoutRouteAuth.add(B.id)})}applyFilter(v){this.filterValue=v}}return de.id="FacilityAllowedGroupsComponent",de.\u0275fac=function(v){return new(v||de)(w.Y36(e.IQ),w.Y36(A.x4),w.Y36(A.fb))},de.\u0275cmp=w.Xpm({type:de,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(v,L){2&v&&w.ekj("router-component",L.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(v,L){1&v&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return L.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2)(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return L.showGroup()})("valueChange",function(W){return L.selected=W}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,Q,2,2,"mat-option",5),w.qZA()(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(W){return L.applyFilter(W)}),w.qZA(),w.YNc(15,te,1,0,"mat-spinner",7),w.YNc(16,ee,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&v&&(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",L.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",L.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",L.loading),w.xp6(1),w.Q6J("ngIf",!L.loading))},dependencies:[g.sg,g.O5,C.ey,T.KE,T.hX,E.gD,S.Ou,U.W,_.t,V.L,z.X$]}),de})()},25610:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>W});var e=h(10036),c=h(32105),A=h(32080),w=h(64080),g=h(94650),C=h(36895),T=h(24006),E=h(51572),S=h(90455),U=h(96214),_=h(62707),V=h(45703),z=h(64901),Q=h(88561),te=h(30540),oe=h(97392),ee=h(4859),le=h(89383);let de=(()=>{class q{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 q.\u0275fac=function(ye){return new(ye||q)},q.\u0275cmp=g.Xpm({type:q,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(ye,Me){1&ye&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Me.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.TgZ(7,"button",0),g.NdJ("click",function(){return Me.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&ye&&(g.Gre("mr-2 ",Me.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Me.filtersCount?"("+Me.filtersCount+")":null," "),g.xp6(3),g.Oqu(Me.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"))},dependencies:[oe.Hw,ee.lW,le.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),q})();function Te(q,ue){if(1&q){const ye=g.EpF();g.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.allowed=we)})("change",function(){g.CHM(ye);const we=g.oxw();return g.KtG(we.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.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.voSelected(we))}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.resourceSelected(we))}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.serviceSelected(we))}),g.qZA()()()}if(2&q){const ye=g.oxw();g.xp6(2),g.Q6J("ngModel",ye.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,ye.toggle_messages[ye.allowed?1:0])),g.xp6(3),g.Q6J("vos",ye.vos)("vo",ye.selectedVo),g.xp6(1),g.Q6J("resources",ye.filteredResources)("displayStatus",!1)("resource",ye.selectedResource),g.xp6(1),g.Q6J("services",ye.filteredServices)("service",ye.selectedService)}}function v(q,ue){1&q&&g._UZ(0,"mat-spinner",15)}const L=function(){return["id","name","email","logins","organization"]};function B(q,ue){if(1&q&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&q){const ye=g.oxw();g.Q6J("attrNames",ye.attributes)("disableRouting",!ye.routeAuth)("displayedColumns",g.DdM(10,L))("onlyAllowed",ye.allowed)("facilityId",ye.facility.id)("searchString",ye.filterValue)("resourceId",-1===ye.selectedResource.id?null:ye.selectedResource.id)("serviceId",-1===ye.selectedService.id?null:ye.selectedService.id)("tableId",ye.tableId)("voId",-1===ye.selectedVo.id?null:ye.selectedVo.id)}}let W=(()=>{class q{constructor(ye,Me,we,Ge,ce,Ze){this.facilityService=ye,this.serviceService=Me,this.resourceService=we,this.authResolver=Ge,this.storeService=ce,this.entityStorageService=Ze,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(ye=>{this.resources=[this.emptyResource].concat(ye),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Me=>{this.vos=[this.emptyVo].concat(Me),this.serviceService.getAssignedServices(this.facility.id).subscribe(we=>{this.services=[this.emptyService].concat(we),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ye){this.filterValue=ye}voSelected(ye){this.selectedVo.id!==ye.id&&(this.selectedVo=ye,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===ye.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Me=>Me.voId===ye.id),this.serviceService.getAssignedServicesVo(this.facility.id,ye.id).subscribe(Me=>{this.filteredServices=[this.emptyService].concat(Me),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(ye){this.selectedResource.id!==ye.id&&(this.selectedResource=ye,this.selectedService=this.emptyService,-1===ye.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(ye.id).subscribe(Me=>{this.filteredServices=[this.emptyService].concat(Me),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(ye){this.selectedService=ye,this.changeFilter()}}return q.id="FacilityAllowedUsersComponent",q.\u0275fac=function(ye){return new(ye||q)(g.Y36(c.IQ),g.Y36(c.KK),g.Y36(c.xk),g.Y36(A.x4),g.Y36(A.d6),g.Y36(A.fb))},q.\u0275cmp=g.Xpm({type:q,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(ye,Me){1&ye&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Me.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(Ge){return Me.applyFilter(Ge)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(Ge){return Me.advancedFilter=Ge})("clearFilters",function(){return Me.clearFilters()}),g.qZA()(),g.YNc(8,Te,12,14,"div",5),g.YNc(9,v,1,0,"mat-spinner",6),g.YNc(10,B,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&ye&&(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",Me.advancedFilter)("filtersCount",Me.filtersCount),g.xp6(1),g.Q6J("ngIf",Me.advancedFilter),g.xp6(1),g.Q6J("ngIf",Me.loading),g.xp6(1),g.Q6J("ngIf",!Me.loading))},dependencies:[C.O5,T.JJ,T.On,E.Ou,S.Rr,U.t,_.M,V.L,z.P,Q.M,te.J,de,le.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}"]}),q})()},34904:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>Me});var e=h(95017),c=h(533),A=h(32105),w=h(24006),g=h(65412),C=h(32080),T=h(94650),E=h(89383),S=h(36895),U=h(59549),_=h(284),V=h(4859),z=h(51572),Q=h(62707);function te(we,Ge){1&we&&T._UZ(0,"mat-spinner",5)}function oe(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),T.NdJ("voSelected",function(he){T.CHM(ce);const xe=T.oxw();return T.KtG(xe.selectedVo=he)}),T.qZA(),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",8),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.TgZ(11,"mat-error"),T._uU(12),T.ALo(13,"translate"),T.qZA()()()}if(2&we){const ce=T.oxw();T.xp6(1),T.Q6J("vos",ce.vos),T.xp6(2),T.s9C("placeholder",T.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),T.Q6J("formControl",ce.nameCtrl),T.xp6(3),T.hij(" ",T.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),T.xp6(3),T.s9C("placeholder",T.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),T.Q6J("formControl",ce.descriptionCtrl),T.xp6(3),T.hij(" ",T.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let ee=(()=>{class we{constructor(ce,Ze,he,xe,j,R){this.dialogRef=ce,this.data=Ze,this.notificator=he,this.voService=xe,this.translate=j,this.resourcesManager=R,this.vos=[],this.selectedVo=null,j.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(G=>this.successMessage=G)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ce=>{this.vos=ce,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return we.\u0275fac=function(ce){return new(ce||we)(T.Y36(g.so),T.Y36(g.WI),T.Y36(C.V6),T.Y36(A.YF),T.Y36(E.sK),T.Y36(A.xk))},we.\u0275cmp=T.Xpm({type:we,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(ce,Ze){1&ce&&(T.TgZ(0,"div"),T.YNc(1,te,1,0,"mat-spinner",0),T.YNc(2,oe,14,15,"div",1),T.TgZ(3,"div",2)(4,"button",3),T.NdJ("click",function(){return Ze.onCancel()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"button",4),T.NdJ("click",function(){return Ze.onSubmit()}),T._uU(8),T.ALo(9,"translate"),T.qZA()()()),2&ce&&(T.Tol(Ze.theme),T.xp6(1),T.Q6J("ngIf",Ze.loading),T.xp6(1),T.Q6J("ngIf",!Ze.loading),T.xp6(3),T.hij(" ",T.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Ze.nameCtrl.invalid||Ze.descriptionCtrl.invalid||null===Ze.selectedVo||Ze.loading),T.xp6(1),T.hij(" ",T.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[S.O5,U.TO,U.KE,_.Nt,w.Fj,w.JJ,w.Q7,w.oH,V.lW,g.xY,g.H8,z.Ou,Q.M,E.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),we})();var le=h(10036),de=h(9244),Te=h(96214),v=h(7434),L=h(62109),B=h(30540);function W(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"button",9),T.NdJ("click",function(){T.CHM(ce);const he=T.oxw();return T.KtG(he.createResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&we&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function q(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(ce);const he=T.oxw();return T.KtG(he.removeResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&we){const ce=T.oxw();T.Q6J("disabled",0===ce.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ue(we,Ge){1&we&&T._UZ(0,"mat-spinner",11)}function ye(we,Ge){if(1&we&&T._UZ(0,"perun-web-apps-resources-list",12),2&we){const ce=T.oxw();T.Q6J("tableId",ce.tableId)("filterValue",ce.filterValue)("resources",ce.resources)("selection",ce.selected)("disableRouting",!ce.routeAuth)("displayedColumns",ce.displayedColumns)}}let Me=(()=>{class we{constructor(ce,Ze,he,xe,j){this.dialog=ce,this.facilitiesManager=Ze,this.servicesManager=he,this.authResolver=xe,this.entityStorageService=j,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=le.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(ce=>{this.services=[this.emptyService].concat(ce)}),this.refreshTable()}removeResource(){const ce=(0,de.kZ)();ce.width="450px",ce.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(c.f,ce).afterClosed().subscribe(he=>{he&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ce=>{this.resources=ce,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(ce=>{this.resources=ce,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(ce){this.filterValue=ce}createResource(){const ce=(0,de.kZ)();ce.width="1350px",ce.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ee,ce).afterClosed().subscribe(he=>{he&&this.refreshTable()})}serviceSelected(ce){this.selectedService=ce,this.refreshTable()}}return we.id="FacilityResourcesComponent",we.\u0275fac=function(ce){return new(ce||we)(T.Y36(g.uw),T.Y36(A.IQ),T.Y36(A.KK),T.Y36(C.x4),T.Y36(C.fb))},we.\u0275cmp=T.Xpm({type:we,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ce,Ze){2&ce&&T.ekj("router-component",Ze.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(ce,Ze){1&ce&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),T.NdJ("refresh",function(){return Ze.refreshTable()}),T.qZA(),T.YNc(6,W,3,3,"button",3),T.YNc(7,q,3,4,"button",4),T.TgZ(8,"perun-web-apps-service-search-select",5),T.NdJ("serviceSelected",function(xe){return Ze.serviceSelected(xe)}),T.qZA(),T.TgZ(9,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(xe){return Ze.applyFilter(xe)}),T.qZA()(),T.YNc(10,ue,1,0,"mat-spinner",7),T.YNc(11,ye,1,6,"perun-web-apps-resources-list",8),T.qZA()),2&ce&&(T.xp6(2),T.Oqu(T.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),T.xp6(4),T.Q6J("ngIf",Ze.addAuth),T.xp6(1),T.Q6J("ngIf",Ze.removeAuth),T.xp6(1),T.Q6J("services",Ze.services)("service",Ze.selectedService),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",Ze.loading),T.xp6(1),T.Q6J("ngIf",!Ze.loading))},dependencies:[S.O5,V.lW,z.Ou,Te.t,v.L,L.C,B.J,E.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),we})()},86353:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>he});var e=h(32105),c=h(9244),A=h(10036),w=h(95017),g=h(65412),C=h(32080),T=h(24006),E=h(94650),S=h(89383),U=h(94364),_=h(36895),V=h(3238),z=h(59549),Q=h(284),te=h(4859),oe=h(84385),ee=h(51572),le=h(98380);function de(xe,j){1&xe&&E._UZ(0,"mat-spinner",7)}function Te(xe,j){if(1&xe){const R=E.EpF();E.TgZ(0,"mat-option",16),E.NdJ("click",function(){const $=E.CHM(R).$implicit,Ee=E.oxw(2);return E.KtG(Ee.srcFacility=$)}),E._uU(1),E.qZA()}if(2&xe){const R=j.$implicit;E.Q6J("value",R),E.xp6(1),E.hij(" ",R.name," ")}}function v(xe,j){if(1&xe){const R=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field"),E._UZ(2,"input",9),E.ALo(3,"translate"),E.TgZ(4,"mat-error"),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"mat-form-field"),E._UZ(8,"input",10),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"mat-form-field")(11,"mat-select",11),E.ALo(12,"translate"),E.TgZ(13,"mat-option",12),E.NdJ("click",function(){E.CHM(R);const se=E.oxw();return E.KtG(se.srcFacility=null)}),E._uU(14),E.ALo(15,"translate"),E.qZA(),E.YNc(16,Te,2,2,"mat-option",13),E.qZA()(),E.TgZ(17,"perun-web-apps-alert",14),E._UZ(18,"i",15),E.ALo(19,"translate"),E.qZA()()}if(2&xe){const R=E.oxw();E.xp6(2),E.s9C("placeholder",E.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),E.Q6J("formControl",R.nameControl),E.xp6(3),E.Oqu(E.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),E.xp6(3),E.s9C("placeholder",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),E.Q6J("formControl",R.descControl),E.xp6(3),E.s9C("placeholder",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),E.xp6(3),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),E.xp6(2),E.Q6J("ngForOf",R.facilities),E.xp6(2),E.Q6J("innerHTML",E.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),E.oJD)}}let L=(()=>{class xe{constructor(R,G,se,$,Ee,Oe,ct){this.dialogRef=R,this.data=G,this.facilitiesManager=se,this.notificator=$,this.translate=Ee,this.router=Oe,this.entityStorageService=ct,this.nameControl=new T.p4("",[T.kI.required]),this.descControl=new T.p4(""),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(G=>{this.entityStorageService.setEntity({id:G.id,beanName:G.beanName}),sessionStorage.setItem("newFacilityId",String(G.id)),null!==this.srcFacility?this.copyFacilitySettings(G.id):this.handleSuccess(G.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 xe.\u0275fac=function(R){return new(R||xe)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.IQ),E.Y36(C.V6),E.Y36(S.sK),E.Y36(U.F0),E.Y36(C.fb))},xe.\u0275cmp=E.Xpm({type:xe,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,G){1&R&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,de,1,0,"mat-spinner",1),E.YNc(5,v,20,21,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return G.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return G.onCreate(!1)}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",6),E.NdJ("click",function(){return G.onCreate(!0)}),E._uU(14),E.ALo(15,"translate"),E.qZA()()()),2&R&&(E.Tol(G.theme),E.xp6(2),E.Oqu(E.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),E.xp6(2),E.Q6J("ngIf",G.loading),E.xp6(1),E.Q6J("ngIf",!G.loading),E.xp6(3),E.hij(" ",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===G.nameControl.value.trim().length||G.loading),E.xp6(1),E.hij(" ",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===G.nameControl.value.trim().length||!!G.srcFacility||G.loading),E.xp6(1),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[_.sg,_.O5,V.ey,z.TO,z.KE,Q.Nt,T.Fj,T.JJ,T.Q7,T.oH,te.lW,g.xY,g.H8,oe.gD,ee.Ou,le.w,S.X$]}),xe})();var B=h(54037),W=h(77968),q=h(97392),ue=h(96214),ye=h(4235),Me=h(7434),we=h(74010);function Ge(xe,j){1&xe&&E._UZ(0,"mat-spinner",9)}function ce(xe,j){if(1&xe&&E._UZ(0,"perun-web-apps-facilities-list",10),2&xe){const R=E.oxw();E.Q6J("tableId",R.tableId)("selection",R.selection)("filterValue",R.filterValue)("facilities",R.facilities)("recentIds",R.recentIds)}}const Ze=function(){return{color:"black"}};let he=(()=>{class xe{constructor(R,G,se){this.facilityManager=R,this.sideMenuService=G,this.dialog=se,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.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,c.vL)("facilities"),this.loading=!1})}onCreate(){const R=(0,c.kZ)();R.width="800px",R.data={theme:"facility-theme"},this.dialog.open(L,R).afterClosed().subscribe(se=>{se&&(this.loading=!0,this.refreshTable())})}onDelete(){const R=(0,c.kZ)();R.width="500px",R.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(B.Y,R).afterClosed().subscribe(se=>{se&&this.refreshTable()})}applyFilter(R){this.filterValue=R}}return xe.id="FacilitySelectPageComponent",xe.\u0275fac=function(R){return new(R||xe)(E.Y36(e.IQ),E.Y36(W.D),E.Y36(g.uw))},xe.\u0275cmp=E.Xpm({type:xe,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(R,G){2&R&&E.ekj("router-component",G.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,G){1&R&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return G.refreshTable()}),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return G.onCreate()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return G.onDelete()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function($){return G.applyFilter($)}),E.qZA(),E.YNc(14,Ge,1,0,"mat-spinner",7),E.YNc(15,ce,1,5,"perun-web-apps-facilities-list",8),E.qZA()),2&R&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(15,Ze)),E.xp6(1),E.hij(" ",E.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),E.xp6(4),E.hij(" ",E.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===G.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),E.xp6(2),E.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",G.loading),E.xp6(1),E.Q6J("ngIf",!G.loading))},dependencies:[_.O5,_.PC,q.Hw,te.lW,ee.Ou,ue.t,ye.W,Me.L,we.X,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),xe})()},51076:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>le});var e=h(65412),c=h(32080),A=h(32105),w=h(9244),g=h(24006),C=h(94650),T=h(89383),E=h(36895),S=h(3238),U=h(59549),_=h(284),V=h(4859),z=h(84385),Q=h(57706);let te=(()=>{class de{constructor(v){this.translateService=v,this.returnData=""}transform(v){switch(v){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(L=>{this.returnData=L});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(L=>{this.returnData=L});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(L=>{this.returnData=L});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(L=>{this.returnData=L});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(L=>{this.returnData=L});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(L=>{this.returnData=L});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(L=>{this.returnData=L});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(L=>{this.returnData=L});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(L=>{this.returnData=L});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(L=>{this.returnData=L});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(L=>{this.returnData=L});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(L=>{this.returnData=L});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(L=>{this.returnData=L});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(L=>{this.returnData=L});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(L=>{this.returnData=L});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(L=>{this.returnData=L});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(L=>{this.returnData=L});break;default:return v}return this.returnData}}return de.\u0275fac=function(v){return new(v||de)(C.Y36(T.sK,16))},de.\u0275pipe=C.Yjl({name:"applicationFormWidgetDescription",type:de,pure:!0}),de})();function oe(de,Te){if(1&de&&(C.TgZ(0,"mat-option",9),C._uU(1),C.ALo(2,"applicationFormItemType"),C.qZA()),2&de){const v=Te.$implicit;C.Q6J("value",v),C.xp6(1),C.hij(" ",C.lcZ(2,2,v)," ")}}function ee(de,Te){if(1&de&&(C.TgZ(0,"mat-option",9),C._uU(1),C.qZA()),2&de){const v=Te.$implicit;C.Q6J("value",v),C.xp6(1),C.hij(" ",v," ")}}let le=(()=>{class de{constructor(v,L,B,W){this.dialogRef=v,this.data=L,this.translateService=B,this.store=W,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(v=>{this.nameCtrl=new g.p4("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(v);for(const L of this.data.applicationFormItems)this.items.push(L.shortname),L.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(B=>B!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=v})}cancel(){this.dialogRef.close(void 0)}submit(){const v=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,v])}createApplicationItem(){const v=(0,w.dv)(this.languages);v.id=this.data.fakeId,v.shortname=this.nameCtrl.value,v.type=this.selectedWidget;for(let L=0;L{"use strict";h.d(pe,{W:()=>V});var e=h(65412),c=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(4859),E=h(51572),S=h(62707),U=h(82322);function _(z,Q){1&z&&w._UZ(0,"mat-spinner",9)}let V=(()=>{class z{constructor(te,oe,ee,le,de,Te,v,L,B){this.dialogRef=te,this.voService=oe,this.groupService=ee,this.translateService=le,this.registrarManager=de,this.notificatorService=Te,this.apiRequest=v,this.cd=L,this.data=B,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=W=>W.name,le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(W=>this.successMessage=W),le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(W=>this.privilegeMessage=W),le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(W=>this.noFormMessage=W)}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(te=>{this.vos=te,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)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.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)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.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)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.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)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(te){this.selectedVo=te,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(te=>{this.groups=te}):this.groups=[],this.selectedGroup=null}}return z.\u0275fac=function(te){return new(te||z)(w.Y36(e.so),w.Y36(c.YF),w.Y36(c.ff),w.Y36(g.sK),w.Y36(c.tk),w.Y36(A.V6),w.Y36(A.F5),w.Y36(w.sBO),w.Y36(e.WI))},z.\u0275cmp=w.Xpm({type:z,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(te,oe){1&te&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,_,1,0,"mat-spinner",1),w.TgZ(5,"div",2)(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(le){return oe.voSelected(le)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(le){return oe.selectedGroup=le}),w.qZA()(),w.TgZ(15,"div",6)(16,"button",7),w.NdJ("click",function(){return oe.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return oe.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA()()()),2&te&&(w.Tol(oe.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",oe.loading),w.xp6(1),w.Q6J("hidden",oe.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",oe.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",oe.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",!oe.selectedVo&&!oe.selectedGroup||oe.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[C.O5,T.lW,e.uh,e.xY,e.H8,E.Ou,S.M,U.h,g.X$]}),z})()},40009:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>oe});var e=h(65412),c=h(32080),A=h(24006),w=h(32105),g=h(94650),C=h(89383),T=h(36895),E=h(59549),S=h(284),U=h(4859),_=h(56709),V=h(51572);function z(ee,le){1&ee&&g._UZ(0,"mat-spinner",4)}function Q(ee,le){if(1&ee){const de=g.EpF();g.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),g.NdJ("change",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.makePath())}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"mat-form-field")(8,"input",7),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.description=v)}),g.ALo(9,"translate"),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.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.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.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.status=v)}),g._uU(32),g.ALo(33,"translate"),g.qZA()(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.propagateExpiredMembers=v)}),g._uU(38),g.ALo(39,"translate"),g.qZA()()()}if(2&ee){const de=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",de.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",de.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",de.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",de.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",de.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",de.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",de.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function te(ee,le){if(1&ee){const de=g.EpF();g.TgZ(0,"div",12)(1,"button",13),g.NdJ("click",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.asEdit?v.onEdit():v.onCreate())}),g._uU(5),g.qZA()()}if(2&ee){const de=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",de.nameControl.invalid||de.delayControl.invalid||de.recurrenceControl.invalid||de.pathControl.invalid),g.xp6(1),g.hij(" ",de.buttonText," ")}}let oe=(()=>{class ee{constructor(de,Te,v,L,B){this.dialogRef=de,this.data=Te,this.serviceManager=v,this.notificator=L,this.translate=B,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.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 de="./".concat(this.nameControl.value);this.pathControl.setValue(de)}}return ee.\u0275fac=function(de){return new(de||ee)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(c.V6),g.Y36(C.sK))},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(de,Te){1&de&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,z,1,0,"mat-spinner",1),g.YNc(4,Q,40,46,"div",2),g.YNc(5,te,6,5,"div",3),g.qZA()),2&de&&(g.Tol(Te.theme),g.xp6(2),g.Oqu(Te.title),g.xp6(1),g.Q6J("ngIf",Te.loading),g.xp6(1),g.Q6J("ngIf",!Te.loading),g.xp6(1),g.Q6J("ngIf",!Te.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,C.X$]}),ee})()},81889:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>le});var e=h(65412),c=h(32080),A=h(32105),w=h(24006),g=h(94650),C=h(89383),T=h(36895),E=h(59549),S=h(284),U=h(4859),_=h(56709),V=h(51572),z=h(82322);function Q(de,Te){1&de&&g._UZ(0,"mat-spinner",3)}function te(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(B){g.CHM(v);const W=g.oxw(2);return g.KtG(W.asSubgroup=B)})("click",function(){g.CHM(v);const B=g.oxw(2);return g.KtG(B.loadVoGroups())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&de){const v=g.oxw(2);g.Q6J("ngModel",v.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function oe(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(B){g.CHM(v);const W=g.oxw(2);return g.KtG(W.selectedParent=B)}),g.qZA()}if(2&de){const v=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",v.voGroups)}}function ee(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(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.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA()()(),g.YNc(14,te,3,5,"mat-checkbox",9),g.YNc(15,oe,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11)(17,"button",12),g.NdJ("click",function(){g.CHM(v);const B=g.oxw();return g.KtG(B.onCancel())}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){g.CHM(v);const B=g.oxw();return g.KtG(B.onSubmit())}),g._uU(21),g.ALo(22,"translate"),g.qZA()()()}if(2&de){const v=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",v.nameControl),g.xp6(3),g.hij(" ",v.invalidNameMessage.length?v.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",v.descriptionControl),g.xp6(3),g.Q6J("ngIf",v.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",v.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",v.nameControl.invalid||v.descriptionControl.invalid||v.asSubgroup&&null===v.selectedParent||v.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let le=(()=>{class de{constructor(v,L,B,W,q,ue){this.dialogRef=v,this.data=L,this.groupService=B,this.translate=W,this.notificator=q,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=ye=>ye.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?W.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(ye=>this.title=ye):W.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(ye=>{this.title=ye+this.data.parentGroup.name}),W.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(ye=>this.successMessage=ye),W.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(ye=>this.successSubGroupMessage=ye)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.p4("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(v=>{this.voGroups=v.filter(L=>"members"!==L.name)})}}return de.\u0275fac=function(v){return new(v||de)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.ff),g.Y36(C.sK),g.Y36(c.V6),g.Y36(c.d6))},de.\u0275cmp=g.Xpm({type:de,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(v,L){1&v&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,Q,1,0,"mat-spinner",1),g.YNc(4,ee,23,20,"div",2),g.qZA()),2&v&&(g.xp6(1),g.Oqu(L.title),g.xp6(1),g.Tol(L.theme),g.xp6(1),g.Q6J("ngIf",L.loading),g.xp6(1),g.Q6J("ngIf",!L.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,w.Fj,w.JJ,w.Q7,w.oH,w.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,z.h,C.X$]}),de})()},54037:(Ye,pe,h)=>{"use strict";h.d(pe,{Y:()=>E});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.facilitiesManager=z,this.notificator=Q,this.translate=te,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(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(c.so),g.Y36(c.WI),g.Y36(e.IQ),g.Y36(A.V6),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","facilities")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},41656:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.translate=Q,this.groupService=te,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.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 _=this.data.groups.map(V=>V.id);this.groupService.deleteGroups({groups:_,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.ff))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","groups")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},90719:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>E});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.serviceManager=z,this.notificator=Q,this.translate=te,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(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(c.so),g.Y36(c.WI),g.Y36(e.KK),g.Y36(A.V6),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","services")("anotherMessage",V.anotherMessage)("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},83491:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>Se});var e=h(65412),c=h(32105),A=h(9244),w=h(33604),g=h(32080),C=h(94650),T=h(89383),E=h(36895),S=h(3238),U=h(39349),_=h(59549),V=h(284),z=h(24006),Q=h(97392),te=h(4859),oe=h(3848),ee=h(56709),le=h(84385),de=h(51572),Te=h(10266),v=h(63312),L=h(52170);const B=["*"];let W=(()=>{class Fe{}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)},Fe.\u0275cmp=C.Xpm({type:Fe,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:B,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(Ue,P){1&Ue&&(C.F$t(),C.TgZ(0,"div",0)(1,"span",1),C._uU(2),C.qZA(),C.TgZ(3,"div",2),C.Hsn(4),C.qZA()(),C.TgZ(5,"div",3),C._UZ(6,"span",4),C.TgZ(7,"div",5),C._uU(8),C.qZA()()),2&Ue&&(C.xp6(2),C.hij("",P.label,":"),C.xp6(6),C.hij(" ",P.description," "))}}),Fe})();var q=h(57706);let ue=(()=>{class Fe{constructor(Ue){this.translateService=Ue}transform(Ue){switch(Ue){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ue);default:return Ue}}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(T.sK,16))},Fe.\u0275pipe=C.Yjl({name:"applicationFormItemDisabled",type:Fe,pure:!0}),Fe})(),ye=(()=>{class Fe{constructor(Ue){this.translateService=Ue}transform(Ue){switch(Ue){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ue);default:return Ue}}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(T.sK,16))},Fe.\u0275pipe=C.Yjl({name:"applicationFormItemHidden",type:Fe,pure:!0}),Fe})();function Me(Fe,be){1&Fe&&C._UZ(0,"mat-spinner",8)}function we(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.applicationFormItem.updatable=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw(3);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.updatable)}}function Ge(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.applicationFormItem.federationAttribute=H)}),C.qZA()()()}if(2&Fe){const Ue=C.oxw(3);C.xp6(2),C.Q6J("ngModel",Ue.applicationFormItem.federationAttribute)}}function ce(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.required=H)}),C.qZA()()(),C.YNc(6,we,6,7,"div",17),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.perunSourceAttribute=H.value)}),C.qZA()()(),C.TgZ(12,"app-edit-application-form-item-line",12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.perunDestinationAttribute=H.value)}),C.qZA()()(),C.TgZ(17,"app-edit-application-form-item-line",12),C.ALo(18,"translate"),C.ALo(19,"translate"),C.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.changeFederationAttribute(H))}),C.qZA()(),C.YNc(22,Ge,3,1,"div",25),C.qZA()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.required),C.xp6(1),C.Q6J("ngIf",Ue.typesWithUpdatable.indexOf(Ue.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",Ue.sourceAttributes)("selectedAttribute",Ue.applicationFormItem.perunSourceAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.SOURCE),C.xp6(1),C.Q6J("description",C.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",Ue.destinationAttributes)("selectedAttribute",Ue.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.DESTINATION),C.xp6(1),C.Q6J("description",C.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),C.xp6(4),C.Q6J("selectedAttribute",Ue.applicationFormItem.federationAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.FEDERATION),C.xp6(1),C.Q6J("ngIf"," -- custom value -- "===Ue.federationAttributeDN)}}function Ze(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.regex=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.regex)}}function he(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemDisabled"),C.qZA()),2&Fe){const Ue=be.$implicit;C.Q6J("value",Ue),C.xp6(1),C.hij(" ",C.lcZ(2,2,Ue)," ")}}function xe(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.disabledDependencyItem=H)}),C.qZA()}if(2&Fe){const Ue=C.oxw(3);C.Q6J("item",Ue.disabledDependencyItem)("items",Ue.possibleDependencyItems)}}function j(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"mat-select",18),C.NdJ("valueChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.disabled=H)}),C.YNc(6,he,3,4,"mat-option",19),C.qZA()()(),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13),C.YNc(11,xe,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",C.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),C.xp6(4),C.Q6J("value",Ue.applicationFormItem.disabled),C.xp6(1),C.Q6J("ngForOf",Ue.disabledValues),C.xp6(1),C.Q6J("description",C.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==Ue.disabledDependencyItem)}}function R(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemHidden"),C.qZA()),2&Fe){const Ue=be.$implicit;C.Q6J("value",Ue),C.xp6(1),C.hij(" ",C.lcZ(2,2,Ue)," ")}}function G(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.hiddenDependencyItem=H)}),C.qZA()}if(2&Fe){const Ue=C.oxw(2);C.Q6J("item",Ue.hiddenDependencyItem)("items",Ue.possibleDependencyItems)}}function se(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",28),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),C.xp6(4),C.Q6J("cdkTextareaAutosize",!0)("ngModel",P.applicationFormItem.i18n[Ue].label)}}function $(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()(),C.TgZ(6,"app-edit-application-form-item-line",12),C.ALo(7,"translate"),C.ALo(8,"translate"),C.TgZ(9,"mat-form-field",13)(10,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].help=H)}),C.qZA()()(),C.TgZ(11,"app-edit-application-form-item-line",12),C.ALo(12,"translate"),C.ALo(13,"translate"),C.TgZ(14,"mat-form-field",13)(15,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].errorMessage=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",C.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].label),C.xp6(1),C.Q6J("description",C.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",C.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].help),C.xp6(1),C.Q6J("description",C.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",C.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].errorMessage)}}function Ee(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].label)}}function Oe(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.TgZ(3,"mat-form-field")(4,"input",14),C.NdJ("ngModelChange",function(H){const o=C.CHM(Ue).$implicit;return C.KtG(o[0]=H)}),C.qZA()(),C._uU(5),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field")(8,"input",14),C.NdJ("ngModelChange",function(H){const o=C.CHM(Ue).$implicit;return C.KtG(o[1]=H)}),C.qZA()(),C.TgZ(9,"button",37),C.NdJ("click",function(){const i=C.CHM(Ue).$implicit,o=C.oxw(2).$implicit,f=C.oxw(2);return C.KtG(f.removeOption(i,o))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()}if(2&Fe){const Ue=be.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),C.xp6(3),C.Q6J("ngModel",Ue[0]),C.xp6(1),C.hij(" ",C.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),C.xp6(3),C.Q6J("ngModel",Ue[1]),C.xp6(1),C.s9C("matTooltip",C.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ct(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"div",29),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",30),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"div",31)(8,"button",32),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.sortOptionsAZ(H))}),C.TgZ(9,"i",33),C._uU(10,"arrow_downward"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",34),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.sortOptionsZA(H))}),C.TgZ(14,"i",33),C._uU(15,"arrow_upward"),C.qZA(),C._uU(16),C.ALo(17,"translate"),C.qZA()(),C.YNc(18,Oe,13,11,"div",35),C.TgZ(19,"button",36),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.addOption(H))}),C._uU(20),C.ALo(21,"translate"),C.qZA()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(2),C.hij(" ",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),C.xp6(3),C.hij(" ",C.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),C.xp6(6),C.hij(" ",C.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),C.xp6(5),C.hij(" ",C.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),C.xp6(2),C.Q6J("ngForOf",P.options[Ue]),C.xp6(2),C.hij(" ",C.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Xe=function(){return["HEADING","HTML_COMMENT"]},_t=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Je=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},gt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Y(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-tab",11),C.ALo(1,"translate"),C.ALo(2,"uppercase"),C.YNc(3,se,6,8,"div",17),C.YNc(4,$,16,21,"div",17),C.YNc(5,Ee,6,7,"div",17),C.YNc(6,ct,22,16,"div",17),C.qZA()),2&Fe){const Ue=be.$implicit,P=C.oxw(2);C.s9C("label",C.lcZ(1,5,C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ue))),C.xp6(3),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(9,Xe))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(10,_t))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(11,Je))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(12,gt)))}}const Ce=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},ae=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function re(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),C.ALo(3,"translate"),C.TgZ(4,"app-edit-application-form-item-line",12),C.ALo(5,"translate"),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field",13)(8,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw();return C.KtG(i.applicationFormItem.shortname=H)}),C.qZA()()(),C.TgZ(9,"app-edit-application-form-item-line",12),C.ALo(10,"translate"),C.ALo(11,"translate"),C._uU(12),C.ALo(13,"applicationFormItemType"),C.qZA(),C.TgZ(14,"app-edit-application-form-item-line",12),C.ALo(15,"translate"),C.ALo(16,"translate"),C.TgZ(17,"section")(18,"mat-checkbox",15),C.NdJ("change",function(){C.CHM(Ue);const H=C.oxw();return C.KtG(H.onChangingType("INITIAL"))}),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-checkbox",16),C.NdJ("change",function(){C.CHM(Ue);const H=C.oxw();return C.KtG(H.onChangingType("EXTENSION"))}),C._uU(22),C.ALo(23,"translate"),C.qZA()()(),C.YNc(24,ce,23,38,"div",17),C.YNc(25,Ze,6,7,"div",17),C.YNc(26,j,12,15,"div",17),C.TgZ(27,"app-edit-application-form-item-line",12),C.ALo(28,"translate"),C.ALo(29,"translate"),C.TgZ(30,"mat-form-field",13)(31,"mat-select",18),C.NdJ("valueChange",function(H){C.CHM(Ue);const i=C.oxw();return C.KtG(i.applicationFormItem.hidden=H)}),C.YNc(32,R,3,4,"mat-option",19),C.qZA()()(),C.TgZ(33,"app-edit-application-form-item-line",12),C.ALo(34,"translate"),C.ALo(35,"translate"),C.TgZ(36,"div",13),C.YNc(37,G,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()(),C.YNc(38,Y,7,13,"mat-tab",21),C.qZA()()}if(2&Fe){const Ue=C.oxw();C.xp6(2),C.s9C("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),C.xp6(2),C.Q6J("description",C.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",C.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.shortname),C.xp6(1),C.Q6J("description",C.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",C.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),C.xp6(3),C.hij(" ",C.lcZ(13,34,Ue.applicationFormItem.type)," "),C.xp6(2),C.Q6J("description",C.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",C.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.applicationTypes.includes("INITIAL")),C.xp6(1),C.hij(" ",C.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),C.xp6(2),C.Q6J("ngModel",Ue.applicationFormItem.applicationTypes.includes("EXTENSION")),C.xp6(1),C.hij(" ",C.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),C.xp6(2),C.Q6J("ngIf",Ue.isApplicationFormItemOfType(C.DdM(52,Ce))),C.xp6(1),C.Q6J("ngIf",Ue.isApplicationFormItemOfType(C.DdM(53,ae))),C.xp6(1),C.Q6J("ngIf",Ue.typesWithDisabled.indexOf(Ue.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",C.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),C.xp6(4),C.Q6J("value",Ue.applicationFormItem.hidden),C.xp6(1),C.Q6J("ngForOf",Ue.hiddenValues),C.xp6(1),C.Q6J("description",C.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==Ue.hiddenDependencyItem),C.xp6(1),C.Q6J("ngForOf",Ue.languages)}}let Se=(()=>{class Fe{constructor(Ue,P,H,i,o,f){this.dialogRef=Ue,this.data=P,this.attributesManager=H,this.translateService=i,this.store=o,this.cd=f,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(Ue=>Ue.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(Ue=>Ue.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ue=>{const P=this.filterAttributesForWidget(Ue);this.sourceAttributes=P.concat(this.findAttribute(Ue,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=P.concat(this.findAttribute(Ue,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(Ue){if(this.applicationFormItem.applicationTypes.includes(Ue)){const P=this.applicationFormItem.applicationTypes.indexOf(Ue);this.applicationFormItem.applicationTypes.splice(P,1)}else this.applicationFormItem.applicationTypes.push(Ue)}addOption(Ue){this.options[Ue].push(["",""])}removeOption(Ue,P){this.options[P]=this.options[P].filter(H=>!(H[0]===Ue[0]&&H[1]===Ue[1]))}sortOptionsAZ(Ue){this.options[Ue]=this.options[Ue].sort((P,H)=>P[1]>H[1]?1:P[1]P[1]>H[1]?-1:P[1]this.dependencyTypes.includes(Ue.type)).filter(Ue=>Ue.id!==this.data.applicationFormItem.id))}updateOption(Ue){let P="";if(this.options[Ue])for(const H of this.options[Ue])""!==H[0]&&""!==H[1]&&(P=""===P?H[0]+"#"+H[1]:P+"|"+H[0]+"#"+H[1]);this.applicationFormItem.i18n[Ue].options=P}updateOptions(){for(const Ue of this.languages)this.updateOption(Ue)}findAttribute(Ue,P){return Ue.find(H=>P.includes(H.friendlyName))}filterAttributesForWidget(Ue){return Ue.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?P=>P.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?P=>P.type.includes("ArrayList"):P=>!P.type.includes("ArrayList")&&!P.type.includes("LinkedHashMap"))}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(e.so),C.Y36(e.WI),C.Y36(c.H8),C.Y36(T.sK),C.Y36(g.d6),C.Y36(C.sBO))},Fe.\u0275cmp=C.Xpm({type:Fe,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(Ue,P){1&Ue&&(C.TgZ(0,"div")(1,"div",0)(2,"h1",1),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.YNc(5,Me,1,0,"mat-spinner",2),C.YNc(6,re,39,54,"div",3),C.TgZ(7,"div",4)(8,"button",5),C.NdJ("click",function(){return P.cancel()}),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"div",6),C.ALo(12,"translate"),C.TgZ(13,"button",7),C.NdJ("click",function(){return P.submit()}),C._uU(14),C.ALo(15,"translate"),C.qZA()()()()()),2&Ue&&(C.Gre("",P.theme," h-100"),C.xp6(3),C.AsE(" ",C.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",P.applicationFormItem.shortname," "),C.xp6(2),C.Q6J("ngIf",P.loading),C.xp6(1),C.Q6J("ngIf",!P.loading),C.xp6(3),C.hij(" ",C.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),C.Q6J("matTooltipDisabled",!P.applicationFormItem.required||""!==P.applicationFormItem.perunSourceAttribute||""!==P.applicationFormItem.federationAttribute||"ALWAYS"!==P.applicationFormItem.disabled&&"ALWAYS"!==P.applicationFormItem.hidden),C.xp6(2),C.Q6J("disabled",P.loading||P.applicationFormItem.required&&""===P.applicationFormItem.perunSourceAttribute&&""===P.applicationFormItem.federationAttribute&&("ALWAYS"===P.applicationFormItem.disabled||"ALWAYS"===P.applicationFormItem.hidden)),C.xp6(1),C.hij(" ",C.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[E.sg,E.O5,S.ey,U.IC,_.KE,V.Nt,z.Fj,z.JJ,z.On,Q.Hw,te.lW,oe.SP,oe.uX,ee.oG,e.uh,e.xY,e.H8,le.gD,de.Ou,Te.gM,v.Y,L.$x,W,E.gd,T.X$,q.c,ue,ye]}),Fe})()},19352:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>Ge});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(9244),C=h(74281),T=h(36895),E=h(94650),S=h(89383),U=h(97392),_=h(4859),V=h(51572),z=h(10266),Q=h(31359);function te(ce,Ze){1&ce&&E._UZ(0,"mat-spinner",6)}function oe(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function ee(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18),E._uU(1),E.qZA()),2&ce){const he=Ze.$implicit;E.xp6(1),E.Oqu(he.user.id)}}function le(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function de(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&ce){const he=Ze.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,he.user))}}function Te(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function v(ce,Ze){if(1&ce){const he=E.EpF();E.TgZ(0,"button",20),E.NdJ("click",function(){E.CHM(he);const j=E.oxw().$implicit,R=E.oxw(2);return E.KtG(R.changeExpiration(j))}),E.TgZ(1,"mat-icon"),E._uU(2," today "),E.qZA()()}}function L(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18)(1,"span"),E._uU(2),E.qZA(),E.YNc(3,v,3,0,"button",19),E.qZA()),2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.xp6(2),E.Oqu(xe.parseDate(he.validityTo)),E.xp6(1),E.Q6J("ngIf",xe.isExpirationAuthorized(he))}}function B(ce,Ze){1&ce&&E._UZ(0,"th",17)}function W(ce,Ze){1&ce&&(E.TgZ(0,"mat-icon",25),E._uU(1,"clear"),E.qZA())}function q(ce,Ze){1&ce&&(E.TgZ(0,"mat-icon"),E._uU(1,"settings_backup_restore"),E.qZA())}function ue(ce,Ze){if(1&ce){const he=E.EpF();E.TgZ(0,"td",18)(1,"div",21),E.ALo(2,"translate"),E.TgZ(3,"button",22),E.NdJ("click",function(){const R=E.CHM(he).$implicit,G=E.oxw(2);return E.KtG(G.markSponsor(R))}),E.YNc(4,W,2,0,"mat-icon",23),E.YNc(5,q,2,0,"mat-icon",24),E.qZA()()()}if(2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.xp6(1),E.s9C("matTooltip",E.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),E.Q6J("matTooltipDisabled",xe.isRemoveAuthorized(he))("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",!xe.isRemoveAuthorized(he)),E.xp6(1),E.Q6J("ngIf",!xe.sponsorsToRemove.has(he.user.id)),E.xp6(1),E.Q6J("ngIf",xe.sponsorsToRemove.has(he.user.id))}}function ye(ce,Ze){1&ce&&E._UZ(0,"tr",26)}function Me(ce,Ze){if(1&ce&&E._UZ(0,"tr",27),2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.ekj("make-red",xe.sponsorsToRemove.has(he.user.id))}}function we(ce,Ze){if(1&ce&&(E.TgZ(0,"div",7)(1,"table",8),E.ynx(2,9),E.YNc(3,oe,3,3,"th",10),E.YNc(4,ee,2,1,"td",11),E.BQk(),E.ynx(5,12),E.YNc(6,le,3,3,"th",10),E.YNc(7,de,3,3,"td",11),E.BQk(),E.ynx(8,13),E.YNc(9,Te,3,3,"th",10),E.YNc(10,L,4,2,"td",11),E.BQk(),E.ynx(11,14),E.YNc(12,B,1,0,"th",10),E.YNc(13,ue,6,8,"td",11),E.BQk(),E.YNc(14,ye,1,0,"tr",15),E.YNc(15,Me,1,2,"tr",16),E.qZA()()),2&ce){const he=E.oxw();E.xp6(1),E.Q6J("dataSource",he.dataSource),E.xp6(13),E.Q6J("matHeaderRowDef",he.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",he.displayedColumns)}}let Ge=(()=>{class ce{constructor(he,xe,j,R,G,se,$,Ee){this.dialogRef=he,this.data=xe,this.memberService=j,this.userService=R,this.notificator=G,this.authResolver=se,this.translate=$,this.dialog=Ee,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(he){this.sponsorsToRemove.has(he.user.id)?this.sponsorsToRemove.delete(he.user.id):this.sponsorsToRemove.add(he.user.id)}onSubmit(){this.loading=!0;const he=Array.from(this.sponsorsToRemove);this.removeSponsors(he)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(he){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[he.user])}isExpirationAuthorized(he){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[he.user,this.vo])}parseDate(he){return null===he?"Never expire":(0,T.p6)(he,"d.M.y","en")}changeExpiration(he){const xe=(0,g.kZ)();xe.width="400px",xe.data={memberId:this.data.member.id,sponsor:he},this.dialog.open(C.hd,xe).afterClosed().subscribe(R=>{R&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(G=>{this.sponsors=G,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(he){if(0===he.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const xe=he.pop();this.memberService.removeSponsor(this.data.member.id,xe).subscribe(()=>{this.removeSponsors(he)},()=>this.loading=!1)}}return ce.\u0275fac=function(he){return new(he||ce)(E.Y36(c.so),E.Y36(c.WI),E.Y36(e.uq),E.Y36(e.Fv),E.Y36(A.V6),E.Y36(A.x4),E.Y36(S.sK),E.Y36(c.uw))},ce.\u0275cmp=E.Xpm({type:ce,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(he,xe){1&he&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div"),E.YNc(4,te,1,0,"mat-spinner",1),E.YNc(5,we,16,3,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return xe.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return xe.onSubmit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&he&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),E.xp6(2),E.Tol(xe.theme),E.xp6(1),E.Q6J("ngIf",xe.loading),E.xp6(1),E.Q6J("ngIf",!xe.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),E.xp6(2),E.Q6J("disabled",xe.loading||0===xe.sponsorsToRemove.size),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[T.O5,U.Hw,_.lW,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,c.uh,c.xY,c.H8,V.Ou,z.gM,S.X$,Q.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),ce})()},74414:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>v});var e=h(65412),c=h(24006),A=h(32105),w=h(32080),g=h(94650),C=h(89383),T=h(36895),E=h(3238),S=h(59549),U=h(284),_=h(4859),V=h(84385),z=h(51572);function Q(L,B){1&L&&g._UZ(0,"mat-spinner",6)}function te(L,B){1&L&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function oe(L,B){1&L&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function ee(L,B){1&L&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function le(L,B){1&L&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function de(L,B){if(1&L&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&L){const W=B.$implicit;g.s9C("value",W),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+W)))}}function Te(L,B){if(1&L){const W=g.EpF();g.TgZ(0,"div",7),g.YNc(1,te,3,3,"div",8),g.YNc(2,oe,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,ee,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,le,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9)(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ue){g.CHM(W);const ye=g.oxw();return g.KtG(ye.currentLanguage=ue)}),g.YNc(16,de,4,6,"mat-option",13),g.qZA()()()}if(2&L){const W=g.oxw();g.xp6(1),g.Q6J("ngIf",!W.data.groupId),g.xp6(1),g.Q6J("ngIf",W.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",W.name),g.xp6(2),g.Q6J("ngIf",W.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",W.emailForm),g.xp6(2),g.Q6J("ngIf",W.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",W.currentLanguage),g.xp6(1),g.Q6J("ngForOf",W.languages)}}let v=(()=>{class L{constructor(W,q,ue,ye,Me,we){this.dialogRef=W,this.data=q,this.registrarManager=ue,this.notificator=ye,this.translate=Me,this.store=we,this.emailForm=new c.p4("",[c.kI.required,c.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new c.p4("",c.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(W=>{this.notificator.showSuccess(W),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(W=>{this.notificator.showSuccess(W),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return L.\u0275fac=function(W){return new(W||L)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.tk),g.Y36(w.V6),g.Y36(C.sK),g.Y36(w.d6))},L.\u0275cmp=g.Xpm({type:L,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(W,q){1&W&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,Q,1,0,"mat-spinner",1),g.YNc(5,Te,17,17,"div",2),g.TgZ(6,"div",3)(7,"button",4),g.NdJ("click",function(){return q.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return q.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA()()()),2&W&&(g.Tol(q.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",q.loading),g.xp6(1),g.Q6J("ngIf",!q.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",q.emailForm.invalid||q.name.invalid||q.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[T.sg,T.O5,E.ey,S.TO,S.KE,S.hX,U.Nt,c.Fj,c.JJ,c.Q7,c.oH,_.lW,e.uh,e.xY,e.H8,V.gD,z.Ou,T.gd,C.X$]}),L})()},87842:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>ue});var e=h(65412),c=h(24006),A=h(68675),w=h(54004),g=h(36769),C=h(32080),T=h(32105),E=h(94650),S=h(89383),U=h(36895),_=h(47957),V=h(3238),z=h(59549),Q=h(284),te=h(4859),oe=h(51572),ee=h(10266),le=h(71948),de=h(98380);function Te(ye,Me){1&ye&&(E.TgZ(0,"mat-radio-button",12),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function v(ye,Me){1&ye&&(E.TgZ(0,"mat-radio-button",13),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function L(ye,Me){1&ye&&(E.TgZ(0,"perun-web-apps-alert",14),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function B(ye,Me){if(1&ye){const we=E.EpF();E.TgZ(0,"mat-option",20),E.NdJ("click",function(){const Ze=E.CHM(we).$implicit,he=E.oxw(2);return E.KtG(he.selectedGroup=Ze)}),E.TgZ(1,"span"),E._uU(2),E.qZA()()}if(2&ye){const we=Me.$implicit;E.Q6J("value",we),E.xp6(2),E.Oqu(we.name)}}function W(ye,Me){if(1&ye){const we=E.EpF();E.TgZ(0,"mat-form-field",15)(1,"input",16),E.NdJ("change",function(){E.CHM(we);const ce=E.oxw();return E.KtG(ce.selectedGroup=null)}),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"mat-autocomplete",17,18),E.YNc(5,B,3,2,"mat-option",19),E.ALo(6,"async"),E.qZA()()}if(2&ye){const we=E.MAs(4),Ge=E.oxw();E.Q6J("@openClose","toGroup"===Ge.moveOption?"open":"closed"),E.xp6(1),E.s9C("placeholder",E.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),E.Q6J("formControl",Ge.otherGroupsCtrl)("matAutocomplete",we),E.xp6(2),E.Q6J("displayWith",Ge.displayFn),E.xp6(2),E.Q6J("ngForOf",E.lcZ(6,8,Ge.filteredGroups))}}function q(ye,Me){1&ye&&E._UZ(0,"mat-spinner",21)}let ue=(()=>{class ye{constructor(we,Ge,ce,Ze,he,xe,j){this.dialogRef=we,this.data=Ge,this.groupService=ce,this.notificator=Ze,this.translate=he,this.apiRequest=xe,this.authResolver=j,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new c.p4(null,[c.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(we=>{this.otherGroups=we.filter(Ge=>Ge.id!==this.data.group.id&&"members"!==Ge.name&&this.canMove(Ge)),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,A.O)(""),(0,w.U)(Ge=>Ge?this._filterGroups(Ge):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(we){return we&&we.name}canMove(we){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[we,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,we])}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)},we=>{this.notificator.showRPCError(we,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(we){if("object"==typeof we)return[];const Ge=we.toLowerCase();return we?this.otherGroups.filter(ce=>ce.name.toLowerCase().includes(Ge)):this.otherGroups}}return ye.\u0275fac=function(we){return new(we||ye)(E.Y36(e.so),E.Y36(e.WI),E.Y36(T.ff),E.Y36(C.V6),E.Y36(S.sK),E.Y36(C.F5),E.Y36(C.x4))},ye.\u0275cmp=E.Xpm({type:ye,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(we,Ge){1&we&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",1)(5,"p"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.TgZ(8,"mat-radio-group",2),E.NdJ("ngModelChange",function(Ze){return Ge.moveOption=Ze}),E.YNc(9,Te,3,3,"mat-radio-button",3),E.YNc(10,v,3,3,"mat-radio-button",4),E.qZA(),E.YNc(11,L,3,3,"perun-web-apps-alert",5),E.YNc(12,W,7,10,"mat-form-field",6),E.qZA(),E.YNc(13,q,1,0,"mat-spinner",7),E.TgZ(14,"div",8)(15,"button",9),E.NdJ("click",function(){return Ge.close()}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"span",10),E.ALo(19,"translate"),E.TgZ(20,"button",11),E.NdJ("click",function(){return Ge.confirm()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()),2&we&&(E.Tol(Ge.data.theme),E.xp6(2),E.AsE("",E.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Ge.data.group.name,""),E.xp6(4),E.hij(" ",E.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),E.xp6(2),E.Q6J("ngModel",Ge.moveOption),E.xp6(1),E.Q6J("ngIf",!Ge.toRootOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.toRootOptionDisabled&&Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.loading),E.xp6(3),E.hij(" ",E.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),E.Q6J("matTooltipDisabled",null!==Ge.selectedGroup||"toRoot"===Ge.moveOption)("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",(Ge.otherGroupsCtrl.invalid||null===Ge.selectedGroup)&&"toRoot"!==Ge.moveOption||Ge.loading),E.xp6(1),E.hij(" ",E.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[U.sg,U.O5,_.XC,_.ZL,V.ey,z.KE,Q.Nt,c.Fj,c.JJ,c.Q7,c.oH,c.On,te.lW,e.uh,e.xY,e.H8,oe.Ou,ee.gM,le.VQ,le.U0,de.w,U.Ov,S.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),ye})()},58964:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>ee});var e=h(65412),c=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(3238),E=h(59549),S=h(4859),U=h(84385),_=h(51572);function V(le,de){1&le&&w._UZ(0,"mat-spinner",7)}function z(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te.friendlyNameParameter," ")}}function Q(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Te))," ")}}function te(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te," ")}}function oe(le,de){if(1&le){const Te=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedLogin=L)}),w.YNc(6,z,2,2,"mat-option",10),w.qZA()(),w.TgZ(7,"mat-form-field")(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedLang=L)}),w.YNc(12,Q,4,6,"mat-option",10),w.qZA()(),w.TgZ(13,"mat-form-field")(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedMail=L)}),w.YNc(18,te,2,2,"mat-option",10),w.qZA()(),w.TgZ(19,"div",11)(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA()()()}if(2&le){const Te=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Te.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Te.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Te.selectedLang),w.xp6(1),w.Q6J("ngForOf",Te.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Te.selectedMail),w.xp6(1),w.Q6J("ngForOf",Te.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Te.selectedLogin.value)}}let ee=(()=>{class le{constructor(Te,v,L,B,W,q,ue){this.dialogRef=Te,this.data=v,this.membersManagerService=L,this.attributesManagerService=B,this.store=W,this.translate=q,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=[],q.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(ye=>this.successMessage=ye)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Te=this.selectedLogin.friendlyNameParameter,L=window.location.href.split("/"),B=L[0]+"//"+L[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Te,this.pwdMails.get(this.selectedMail),this.selectedLang,B).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 le.\u0275fac=function(Te){return new(Te||le)(w.Y36(e.so),w.Y36(e.WI),w.Y36(c.uq),w.Y36(c.H8),w.Y36(A.d6),w.Y36(g.sK),w.Y36(A.V6))},le.\u0275cmp=w.Xpm({type:le,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(Te,v){1&Te&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,V,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,oe,25,19,"div",3),w.TgZ(6,"div",4)(7,"button",5),w.NdJ("click",function(){return v.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return v.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA()()),2&Te&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",v.loading),w.xp6(1),w.Q6J("ngIf",!v.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",v.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[C.sg,C.O5,T.ey,E.KE,E.hX,S.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,C.gd,g.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),le})()},53455:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>Te});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(36895),E=h(4859),S=h(51572),U=h(31359);function _(v,L){1&v&&g._UZ(0,"th",13)}function V(v,L){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&v){const B=L.$implicit;g.xp6(1),g.Oqu(B.id)}}function z(v,L){1&v&&g._UZ(0,"th",13)}function Q(v,L){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&v){const B=L.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,B.user))}}function te(v,L){1&v&&g._UZ(0,"tr",15)}function oe(v,L){1&v&&g._UZ(0,"tr",16)}function ee(v,L){if(1&v&&(g.TgZ(0,"div",4)(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,_,1,0,"th",8),g.YNc(10,V,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,z,1,0,"th",8),g.YNc(13,Q,3,3,"td",9),g.BQk(),g.YNc(14,te,1,0,"tr",11),g.YNc(15,oe,1,0,"tr",12),g.qZA()()),2&v){const B=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,B.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",B.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",B.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",B.displayedColumns)}}function le(v,L){1&v&&g._UZ(0,"mat-spinner",17)}function de(v,L){if(1&v){const B=g.EpF();g.TgZ(0,"div",18)(1,"button",19),g.NdJ("click",function(){g.CHM(B);const q=g.oxw();return g.KtG(q.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){g.CHM(B);const q=g.oxw();return g.KtG(q.onSubmit())}),g._uU(5),g.ALo(6,"translate"),g.qZA()()}if(2&v){const B=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,B.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Te=(()=>{class v{constructor(B,W,q,ue,ye,Me){this.dialogRef=B,this.data=W,this.membersService=q,this.groupService=ue,this.notificator=ye,this.translate=Me,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.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(B=>B.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(B=>B.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const B=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(B),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return v.\u0275fac=function(B){return new(B||v)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(A.V6),g.Y36(C.sK))},v.\u0275cmp=g.Xpm({type:v,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(B,W){1&B&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,ee,16,9,"div",1),g.YNc(5,le,1,0,"mat-spinner",2),g.YNc(6,de,7,6,"div",3),g.qZA()),2&B&&(g.Tol(W.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!W.loading),g.xp6(1),g.Q6J("ngIf",W.loading),g.xp6(1),g.Q6J("ngIf",!W.loading))},dependencies:[T.O5,E.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.uh,e.xY,e.H8,S.Ou,C.X$,U.d]}),v})()},533:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.translate=Q,this.resourcesManager=te,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.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(_=>{this.loading=!1,this.notificator.showSuccess(_),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(_){_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.xk))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","resources")("disableForce",!0)("loading",V.loading))},dependencies:[T.e]}),S})()},11717:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.voService=Q,this.translate=te,this.force=!1,this.displayedColumns=["name"],this.relations=[],te.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(oe=>this.successMessage=oe)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.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(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(w.YF),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","organizations")("loading",V.loading)("relations",V.relations))},dependencies:[T.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),S})()},1186:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>oe});var e=h(65412),c=h(32105),A=h(94650),w=h(36895),g=h(3238),C=h(59549),T=h(284),E=h(24006),S=h(4859),U=h(84385),_=h(51572),V=h(89383);function z(ee,le){1&ee&&A._UZ(0,"mat-spinner",6)}function Q(ee,le){if(1&ee){const de=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw(2);return A.KtG(L.embeddedState=v)}),A.ALo(3,"translate"),A.TgZ(4,"mat-option",11),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"mat-option",12),A._uU(8),A.ALo(9,"translate"),A.qZA()()()()}if(2&ee){const de=A.oxw(2);A.xp6(2),A.MGl("placeholder","",A.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.Q6J("value",de.embeddedState),A.xp6(3),A.Oqu(A.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function te(ee,le){if(1&ee){const de=A.EpF();A.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),A.NdJ("ngModelChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.moduleName=v)}),A.ALo(3,"translate"),A.qZA()(),A.TgZ(4,"mat-form-field",9)(5,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.initialState=v)}),A.ALo(6,"translate"),A.TgZ(7,"mat-option",11),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"mat-option",12),A._uU(11),A.ALo(12,"translate"),A.qZA()()(),A.TgZ(13,"mat-form-field",9)(14,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.extensionState=v)}),A.ALo(15,"translate"),A.TgZ(16,"mat-option",11),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"mat-option",12),A._uU(20),A.ALo(21,"translate"),A.qZA()()(),A.YNc(22,Q,10,10,"div",13),A.qZA()}if(2&ee){const de=A.oxw();A.xp6(2),A.s9C("placeholder",A.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.Q6J("ngModel",de.moduleName),A.xp6(3),A.MGl("placeholder","",A.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.Q6J("value",de.initialState),A.xp6(3),A.Oqu(A.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(3),A.MGl("placeholder","",A.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.Q6J("value",de.extensionState),A.xp6(3),A.Oqu(A.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===de.entity&&de.autoRegistrationEnabled)}}let oe=(()=>{class ee{constructor(de,Te,v){this.dialogRef=de,this.data=Te,this.registrarManager=v,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(de=>{this.dialogRef.close(de)},()=>this.loading=!1)}}return ee.\u0275fac=function(de){return new(de||ee)(A.Y36(e.so),A.Y36(e.WI),A.Y36(c.tk))},ee.\u0275cmp=A.Xpm({type:ee,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(de,Te){1&de&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,z,1,0,"mat-spinner",1),A.YNc(5,te,23,25,"div",2),A.TgZ(6,"div",3)(7,"button",4),A.NdJ("click",function(){return Te.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return Te.submit()}),A._uU(11),A.ALo(12,"translate"),A.qZA()()()),2&de&&(A.Tol(Te.theme),A.xp6(2),A.Oqu(A.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(2),A.Q6J("ngIf",Te.loading),A.xp6(1),A.Q6J("ngIf",!Te.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",Te.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[w.O5,g.ey,C.KE,T.Nt,E.Fj,E.JJ,E.On,S.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,V.X$]}),ee})()},34775:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>An});var e=h(32105),c=h(94650),A=h(36895),w=h(97392),g=h(37084),C=h(51572),T=h(73546),E=h(98380),S=h(87831),U=h(24179),_=h(62109),V=h(38383),z=h(74010),Q=h(64877),te=h(89383);function oe(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function ee(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function le(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SELF_IDENTITIES_"+xt.entityType)," ")}}const de=function(){return["user","id","name"]};function Te(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,le,3,3,"div",2),c._UZ(2,"app-users-list",10),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,de))("disableRouting",!0)("users",xt.users)}}function v(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Te,3,5,"div",2),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.users.length)}}function L(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getSelfData(vt.roles.get("SELF").get("User")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,ee,1,0,"mat-spinner",1),c.YNc(8,v,2,1,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SELF")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function B(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function W(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_VOS_"+xt.entityType)," ")}}const q=function(){return["id","name","shortName"]};function ue(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,W,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",12),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,q))("vos",xt.vos)("disableRouting",!0)}}function ye(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_GROUPS_"+xt.entityType)," ")}}const Me=function(){return["id","vo","name","description"]};function we(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,ye,3,3,"div",2),c._UZ(2,"perun-web-apps-groups-list",14),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,Me))("groups",xt.groups)("disableRouting",!0)}}function Ge(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_RESOURCES_"+xt.entityType)," ")}}const ce=function(){return["id","name","vo","facility","description"]};function Ze(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,Ge,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",15),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("disableRouting",!0)}}function he(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_FACILITIES_"+xt.entityType)," ")}}const xe=function(){return["id","name","description"]};function j(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,he,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",16),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,xe))("facilities",xt.facilities)("disableRouting",!0)}}function R(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,ue,3,5,"div",2),c.YNc(2,we,3,5,"div",11),c.YNc(3,Ze,3,5,"div",11),c.YNc(4,j,3,5,"div",11),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.vos.length),c.xp6(1),c.Q6J("ngIf",xt.groups.length),c.xp6(1),c.Q6J("ngIf",xt.resources.length),c.xp6(1),c.Q6J("ngIf",xt.facilities.length)}}function G(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getMembershipData(vt.roles.get("MEMBERSHIP").get("Group"),vt.roles.get("MEMBERSHIP").get("Vo"),vt.roles.get("MEMBERSHIP").get("Resource"),vt.roles.get("MEMBERSHIP").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,B,1,0,"mat-spinner",1),c.YNc(8,R,5,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.MEMBERSHIP")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function se(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function $(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",20),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.Q6J("ngSwitch",xt.entityType),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ROLES.GROUPADMIN_GROUPS_"+xt.entityType)," ")}}function Ee(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,$,3,4,"div",18),c._UZ(2,"perun-web-apps-groups-list",19),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,Me))("groups",xt.groups)}}function Oe(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getGroups(vt.roles.get("GROUPADMIN").get("Group")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",17),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,se,1,0,"mat-spinner",1),c.YNc(8,Ee,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.GROUPADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function ct(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Xe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS_"+xt.entityType)," ")}}const _t=function(){return["id","recent","vo","name","description"]};function Je(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Xe,3,3,"div",2),c._UZ(2,"perun-web-apps-groups-list",19),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,_t))("groups",xt.groups)}}function gt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getGroups(vt.roles.get("GROUPOBSERVER").get("Group")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",17),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,ct,1,0,"mat-spinner",1),c.YNc(8,Je,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.GROUPOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Y(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Ce(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.VOADMIN_VOS_"+xt.entityType)," ")}}function ae(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Ce,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function re(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("VOADMIN").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Y,1,0,"mat-spinner",1),c.YNc(8,ae,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.VOADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Se(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Fe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.VOOBSERVER_VOS_"+xt.entityType)," ")}}function be(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Fe,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function Ue(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("VOOBSERVER").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Se,1,0,"mat-spinner",1),c.YNc(8,be,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.VOOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function P(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function H(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS_"+xt.entityType)," ")}}function i(Dt,$t){if(1&Dt&&(c.TgZ(0,"div")(1,"div"),c.YNc(2,H,3,3,"div",2),c._UZ(3,"perun-web-apps-vos-list",22),c.qZA()()),2&Dt){const xt=c.oxw(3);c.xp6(2),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function o(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("TRUSTEDFACILITYADMIN").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,P,1,0,"mat-spinner",1),c.YNc(8,i,4,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function f(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function l(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS_"+xt.entityType)," ")}}function a(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,l,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function n(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("TOPGROUPCREATOR").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,f,1,0,"mat-spinner",1),c.YNc(8,a,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function t(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function r(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES_"+xt.entityType)," ")}}function s(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,r,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function d(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCEADMIN").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,t,1,0,"mat-spinner",1),c.YNc(8,s,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCEADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function p(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function M(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES_"+xt.entityType)," ")}}function _e(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,M,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function bt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCEOBSERVER").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,p,1,0,"mat-spinner",1),c.YNc(8,_e,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Vt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function on(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES_"+xt.entityType)," ")}}function Mt(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,on,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function ft(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCESELFSERVICE").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Vt,1,0,"mat-spinner",1),c.YNc(8,Mt,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function je(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Pe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES_"+xt.entityType)," ")}}function Qe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Pe,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",26),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,xe))("facilities",xt.facilities)}}function qe(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getFacilities(vt.roles.get("FACILITYADMIN").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",25),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,je,1,0,"mat-spinner",1),c.YNc(8,Qe,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.FACILITYADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Be(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function me(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES_"+xt.entityType)," ")}}function ve(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,me,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",26),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,xe))("facilities",xt.facilities)}}function ze(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getFacilities(vt.roles.get("FACILITYOBSERVER").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",25),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Be,1,0,"mat-spinner",1),c.YNc(8,ve,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.FACILITYOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function tt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function at(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS_"+xt.entityType)," ")}}const Re=function(){return["id","fullName","sponsored"]};function st(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,at,3,3,"div",2),c._UZ(2,"perun-web-apps-members-list",27),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,Re))("members",xt.members)}}function Pt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getMembers(vt.roles.get("SPONSORSHIP").get("Member")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,tt,1,0,"mat-spinner",1),c.YNc(8,st,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SPONSORSHIP")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function jt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function cn(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SPONSOR_VOS_"+xt.entityType)," ")}}function Xt(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,cn,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function sn(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("SPONSOR").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,jt,1,0,"mat-spinner",1),c.YNc(8,Xt,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SPONSOR")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function mn(Dt,$t){1&Dt&&(c.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()()()),2&Dt&&(c.xp6(5),c.Oqu(c.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Nt(Dt,$t){1&Dt&&(c.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()()()),2&Dt&&(c.xp6(5),c.Oqu(c.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Rt(Dt,$t){if(1&Dt&&(c.TgZ(0,"p",29),c._uU(1),c.qZA()),2&Dt){const xt=$t.$implicit;c.xp6(1),c.AsE("",xt[0]," ids: ",xt[1],"")}}function Ct(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){const ot=c.CHM(xt).$implicit,$e=c.oxw(2);return c.KtG($e.getInnerKeys(ot))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.qZA()()(),c.YNc(6,Rt,2,2,"p",28),c.qZA()}if(2&Dt){const xt=$t.$implicit,rt=c.oxw(2);c.xp6(5),c.Oqu(xt),c.xp6(1),c.Q6J("ngForOf",rt.currentIds)}}function Ut(Dt,$t){if(1&Dt&&(c.TgZ(0,"mat-accordion"),c.YNc(1,L,9,5,"mat-expansion-panel",5),c.YNc(2,G,9,5,"mat-expansion-panel",5),c.YNc(3,Oe,9,5,"mat-expansion-panel",5),c.YNc(4,gt,9,5,"mat-expansion-panel",5),c.YNc(5,re,9,5,"mat-expansion-panel",5),c.YNc(6,Ue,9,5,"mat-expansion-panel",5),c.YNc(7,o,9,5,"mat-expansion-panel",5),c.YNc(8,n,9,5,"mat-expansion-panel",5),c.YNc(9,d,9,5,"mat-expansion-panel",5),c.YNc(10,bt,9,5,"mat-expansion-panel",5),c.YNc(11,ft,9,5,"mat-expansion-panel",5),c.YNc(12,qe,9,5,"mat-expansion-panel",5),c.YNc(13,ze,9,5,"mat-expansion-panel",5),c.YNc(14,Pt,9,5,"mat-expansion-panel",5),c.YNc(15,sn,9,5,"mat-expansion-panel",5),c.YNc(16,mn,7,3,"mat-expansion-panel",2),c.YNc(17,Nt,7,3,"mat-expansion-panel",2),c.YNc(18,Ct,7,2,"mat-expansion-panel",6),c.qZA()),2&Dt){const xt=c.oxw();c.xp6(1),c.Q6J("ngIf",xt.roles.get("SELF")),c.xp6(1),c.Q6J("ngIf",xt.roles.get("MEMBERSHIP")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("GROUPADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("GROUPOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("VOADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("VOOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("TRUSTEDFACILITYADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("TOPGROUPCREATOR")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCEADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCEOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCESELFSERVICE")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("FACILITYADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("FACILITYOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("SPONSORSHIP")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("SPONSOR")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("PERUNADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("PERUNOBSERVER")),c.xp6(1),c.Q6J("ngForOf",xt.roleNames)}}function Qt(Dt,$t){1&Dt&&(c.TgZ(0,"perun-web-apps-alert",30),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}let An=(()=>{class Dt{constructor(xt,rt,vt,ot,$e,At,Z){this.authzResolverService=xt,this.usersManagerService=rt,this.vosManagerService=vt,this.facilitiesManagerService=ot,this.resourcesManagerService=$e,this.groupsManagerService=At,this.membersManagerService=Z,this.roles=new Map,this.groups=[],this.vos=[],this.facilities=[],this.resources=[],this.members=[],this.users=[],this.currentIds=[]}getGroups(xt){this.loading=!0,this.groups=[],this.groupsManagerService.getGroupsByIds(xt).subscribe(rt=>{this.groups=rt,this.loading=!1})}getVos(xt){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(xt).subscribe(rt=>{this.vos=rt,this.loading=!1})}getFacilities(xt){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesByIds(xt).subscribe(rt=>{this.facilities=rt.map(vt=>({facility:vt})),this.loading=!1})}getResources(xt){this.loading=!0,this.resources=[],this.resourcesManagerService.getRichResourcesByIds(xt).subscribe(rt=>{this.resources=rt,this.loading=!1})}getMembers(xt){this.loading=!0,this.members=[],this.membersManagerService.getRichMembersByIds(xt).subscribe(rt=>{this.members=rt,this.loading=!1})}getSelfData(xt){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.entityId).subscribe(rt=>{this.vos=rt;const vt=[this.entityId].concat(xt);this.usersManagerService.getRichUsersByIds(vt).subscribe(ot=>{this.users=ot,this.loading=!1})})}getMembershipData(xt,rt,vt,ot){this.loading=!0,this.vos=[],this.resources=[],this.groups=[],this.facilities=[],this.getResourcesIfArrayNotEmpty(vt).then(()=>this.getFacilitiesIfArrayNotEmpty(ot).then(()=>this.getVosIfArrayNotEmpty(rt).then(()=>this.getGroupsIfArrayNotEmpty(xt).then(()=>this.loading=!1).catch($e=>console.error($e))).catch($e=>console.error($e))).catch($e=>console.error($e))).catch($e=>console.error($e))}getResourcesIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.resourcesManagerService.getRichResourcesByIds(xt).subscribe(vt=>{this.resources=vt,rt()}):rt()})}getFacilitiesIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.facilitiesManagerService.getFacilitiesByIds(xt).subscribe(vt=>{this.facilities=vt.map(ot=>({facility:ot})),rt()}):rt()})}getVosIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.vosManagerService.getVosByIds(xt).subscribe(vt=>{this.vos=vt,rt()}):rt()})}getGroupsIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.groupsManagerService.getGroupsByIds(xt).subscribe(vt=>{this.groups=vt,rt()}):rt()})}getInnerKeys(xt){if(this.roles.get(xt)){const rt=this.roles.get(xt).entries(),vt=[];let ot=rt.next().value;for(;ot;)vt.push(ot),ot=rt.next().value;this.currentIds=vt}else this.currentIds=[]}}return Dt.\u0275fac=function(xt){return new(xt||Dt)(c.Y36(e.Ct),c.Y36(e.Fv),c.Y36(e.YF),c.Y36(e.IQ),c.Y36(e.xk),c.Y36(e.ff),c.Y36(e.uq))},Dt.\u0275cmp=c.Xpm({type:Dt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{roles:"roles",outerLoading:"outerLoading",showDescription:"showDescription",roleNames:"roleNames",entityId:"entityId",entityType:"entityType"},decls:6,vars:6,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","disableRouting","users"],["class","mt-5",4,"ngIf"],[3,"displayedColumns","vos","disableRouting"],[1,"mt-5"],[3,"displayedColumns","groups","disableRouting"],[3,"resources","displayedColumns","disableRouting"],[3,"displayedColumns","facilities","disableRouting"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"ngSwitch",4,"ngIf"],[3,"displayedColumns","groups"],[3,"ngSwitch"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],[3,"displayedColumns","vos"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"],["alert_type","warn"]],template:function(xt,rt){1&xt&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.YNc(3,oe,1,0,"mat-spinner",1),c.YNc(4,Ut,19,18,"mat-accordion",2),c.YNc(5,Qt,3,3,"perun-web-apps-alert",3)),2&xt&&(c.xp6(1),c.Oqu(c.lcZ(2,4,"ROLES.TITLE")),c.xp6(2),c.Q6J("ngIf",rt.outerLoading),c.xp6(1),c.Q6J("ngIf",!rt.outerLoading&&rt.roles.size>0),c.xp6(1),c.Q6J("ngIf",!rt.outerLoading&&0===rt.roles.size))},dependencies:[A.sg,A.O5,A.RF,w.Hw,g.pp,g.ib,g.yz,g.yK,C.Ou,T.kc,E.w,S.Z,U.W,_.C,V.O,z.X,Q.C,te.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),Dt})()},60205:(Ye,pe,h)=>{"use strict";h.d(pe,{Q:()=>j});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),E=h(94364),S=h(97392),U=h(56709),_=h(10266),V=h(98380),z=h(50301),Q=h(18750),te=h(89383);function oe(R,G){if(1&R){const se=e.EpF();e.TgZ(0,"th",18)(1,"mat-checkbox",19),e.NdJ("change",function(Ee){e.CHM(se);const Oe=e.oxw();return e.KtG(Ee?Oe.masterToggle():null)}),e.qZA()()}if(2&R){const se=e.oxw();e.xp6(1),e.Q6J("aria-label",se.checkboxLabel())("checked",se.selection.hasValue()&&se.isAllSelected())("indeterminate",se.selection.hasValue()&&!se.isAllSelected())}}function ee(R,G){if(1&R){const se=e.EpF();e.TgZ(0,"td",20)(1,"mat-checkbox",21),e.NdJ("change",function(Ee){const ct=e.CHM(se).$implicit,Xe=e.oxw();return e.KtG(Ee?Xe.selection.toggle(ct):null)})("click",function(Ee){return Ee.stopPropagation()}),e.ALo(2,"lowercase"),e.qZA()()}if(2&R){const se=G.$implicit,$=e.oxw();e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,se.name),"-checkbox"),e.Q6J("aria-label",$.checkboxLabel(se))("checked",$.selection.isSelected(se))}}function le(R,G){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 de(R,G){if(1&R&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.id)}}function Te(R,G){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 v(R,G){if(1&R&&(e.TgZ(0,"td",24),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&R){const se=G.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,se.name),"-name-td"),e.xp6(2),e.hij(" ",se.name," ")}}function L(R,G){1&R&&e._UZ(0,"th",25)}function B(R,G){1&R&&(e.TgZ(0,"mat-icon",28),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 W(R,G){1&R&&(e.TgZ(0,"mat-icon",29),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 q(R,G){if(1&R&&(e.TgZ(0,"td",24),e.YNc(1,B,3,3,"mat-icon",26),e.YNc(2,W,3,3,"mat-icon",27),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Q6J("ngIf",se.enabled),e.xp6(1),e.Q6J("ngIf",!se.enabled)}}function ue(R,G){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 ye(R,G){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.script)}}function Me(R,G){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 we(R,G){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.description)}}function Ge(R,G){1&R&&e._UZ(0,"tr",30)}const ce=function(R){return["/admin/services",R]};function Ze(R,G){if(1&R&&e._UZ(0,"tr",31),2&R){const se=G.$implicit,$=e.oxw();e.ekj("cursor-pointer",!$.disableRouting)("disable-outline",$.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",$.disableRouting?null:e.VKq(6,ce,se.id))("routerLink",$.disableRouting?null:e.VKq(8,ce,se.id))}}function he(R,G){1&R&&(e.TgZ(0,"perun-web-apps-alert",32),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 xe(R,G){1&R&&(e.TgZ(0,"perun-web-apps-alert",32),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 j=(()=>{class R{constructor(se,$){this.authResolver=se,this.tableCheckbox=$,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(se){this.sort=se,this.setDataSource()}static getDataForColumn(se,$){switch($){case"id":return se.id.toString();case"name":return se.name;case"enabled":return se.enabled?"true":"false";case"script":return se.script;case"description":return se.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(se=>"id"!==se)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(se){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,R.getDataForColumn),se)}exportDisplayedData(se){const $=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ee=$+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice($,Ee),this.displayedColumns,R.getDataForColumn),se)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(se,$)=>(0,g.Sd)(se,$,this.displayedColumns,R.getDataForColumn),this.dataSource.sortData=(se,$)=>(0,g.pR)(se,$,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(se){return se?`${this.selection.isSelected(se)?"deselect":"select"} row ${se.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return R.\u0275fac=function(se){return new(se||R)(e.Y36(C.x4),e.Y36(C.UA))},R.\u0275cmp=e.Xpm({type:R,selectors:[["app-services-list"]],viewQuery:function(se,$){if(1&se&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&se){let Ee;e.iGM(Ee=e.CRH())&&($.child=Ee.first),e.iGM(Ee=e.CRH())&&($.matSort=Ee.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","exportDisplayedData","exportAllData"],["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 green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(se,$){1&se&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(Oe){return $.exportDisplayedData(Oe)})("exportAllData",function(Oe){return $.exportAllData(Oe)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,oe,2,3,"th",4),e.YNc(5,ee,3,5,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,le,3,3,"th",7),e.YNc(8,de,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Te,3,3,"th",7),e.YNc(11,v,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,L,1,0,"th",12),e.YNc(14,q,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,ue,3,3,"th",12),e.YNc(17,ye,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Me,3,3,"th",7),e.YNc(20,we,2,1,"td",10),e.BQk(),e.YNc(21,Ge,1,0,"tr",15),e.YNc(22,Ze,1,10,"tr",16),e.qZA()()(),e.YNc(23,he,3,3,"perun-web-apps-alert",17),e.YNc(24,xe,3,3,"perun-web-apps-alert",17)),2&se&&(e.Q6J("hidden",void 0===$.services||0===$.services.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(19),e.Q6J("matHeaderRowDef",$.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",$.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===$.dataSource.filteredData.length&&void 0!==$.services&&0!==$.services.length),e.xp6(1),e.Q6J("ngIf",void 0===$.services||0===$.services.length))},dependencies:[T.O5,E.rH,S.Hw,c.YE,c.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,U.oG,_.gM,V.w,z.YH,Q.l,T.i8,te.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),R})()},64877:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>ct});var e=h(96308),c=h(30671),A=h(95017),w=h(9244),g=h(32080),C=h(94650),T=h(36895),E=h(97392),S=h(56709),U=h(10266),_=h(98380),V=h(50301),z=h(18750),Q=h(89383),te=h(31359),oe=h(16119),ee=h(7598),le=h(9954);function de(Xe,_t){if(1&Xe){const Je=C.EpF();C.TgZ(0,"mat-checkbox",21),C.NdJ("change",function(Y){C.CHM(Je);const Ce=C.oxw(2);return C.KtG(Y?Ce.masterToggle():null)}),C.qZA()}if(2&Xe){const Je=C.oxw(2);C.Q6J("aria-label",Je.checkboxLabel())("checked",Je.selection.hasValue()&&Je.isAllSelected())("indeterminate",Je.selection.hasValue()&&!Je.isAllSelected())}}function Te(Xe,_t){if(1&Xe&&(C.TgZ(0,"th",19),C.YNc(1,de,1,3,"mat-checkbox",20),C.qZA()),2&Xe){const Je=C.oxw();C.xp6(1),C.Q6J("ngIf",Je.selection.isMultipleSelection())}}function v(Xe,_t){if(1&Xe){const Je=C.EpF();C.TgZ(0,"td",22)(1,"mat-checkbox",23),C.NdJ("change",function(Y){const ae=C.CHM(Je).$implicit,re=C.oxw();return C.KtG(Y?re.selection.toggle(ae):null)})("click",function(Y){return Y.stopPropagation()}),C.ALo(2,"lowercase"),C.qZA()()}if(2&Xe){const Je=_t.$implicit,gt=C.oxw();C.xp6(1),C.Q2q("data-cy","",C.lcZ(2,4,Je.firstName),"-checkbox"),C.Q6J("aria-label",gt.checkboxLabel(Je))("checked",gt.selection.isSelected(Je))("disabled",gt.disableSelf&&Je.id===gt.principalId&&!gt.authResolver.isPerunAdmin())}}function L(Xe,_t){1&Xe&&C._UZ(0,"th",24)}function B(Xe,_t){1&Xe&&(C.TgZ(0,"mat-icon",28),C.ALo(1,"translate"),C._uU(2," account_circle "),C.qZA()),2&Xe&&C.s9C("matTooltip",C.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function W(Xe,_t){if(1&Xe&&(C._UZ(0,"mat-icon",29),C.ALo(1,"translate")),2&Xe){const Je=C.oxw(2);C.s9C("matTooltip",C.lcZ(1,2,"MANAGERS_LIST.SERVICE")),C.Q6J("svgIcon",Je.svgIcon)}}function q(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",25),C.YNc(1,B,3,3,"mat-icon",26),C.YNc(2,W,2,4,"mat-icon",27),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Q6J("ngIf",!Je.serviceUser),C.xp6(1),C.Q6J("ngIf",Je.serviceUser)}}function ue(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function ye(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",25),C._uU(1),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.hij(" ",Je.id," ")}}function Me(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function we(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C.ALo(1,"lowercase"),C._uU(2),C.ALo(3,"userFullName"),C.qZA()),2&Xe){const Je=_t.$implicit;C.Q2q("data-cy","",C.lcZ(1,2,Je.firstName),"-firstName-td"),C.xp6(2),C.hij(" ",C.lcZ(3,4,Je)," ")}}function Ge(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function ce(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userVo"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function Ze(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function he(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userEmail"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function xe(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function j(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userLogins"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function R(Xe,_t){1&Xe&&C._UZ(0,"tr",32)}const G=function(Xe){return["/admin/users",Xe]},se=function(Xe){return["/myProfile/service-identities",Xe]};function $(Xe,_t){if(1&Xe&&C._UZ(0,"tr",33),2&Xe){const Je=_t.$implicit,gt=C.oxw();C.ekj("cursor-pointer",!gt.disableRouting),C.Q6J("perunWebAppsForceRouterLink",gt.disableRouting?null:gt.routeToAdmin?C.VKq(4,G,Je.id):C.VKq(6,se,Je.id))("perunWebAppsMiddleClickRouterLink",gt.disableRouting?null:gt.routeToAdmin?C.VKq(8,G,Je.id):C.VKq(10,se,Je.id))}}function Ee(Xe,_t){if(1&Xe&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe){const Je=C.oxw();C.xp6(1),C.hij(" ",Je.noUsersFoundLabel?Je.noUsersFoundLabel:C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Oe(Xe,_t){1&Xe&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ct=(()=>{class Xe{constructor(Je,gt,Y){this.authResolver=Je,this.tableCheckbox=gt,this.storeService=Y,this.selection=new A.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(Je){this.sort=Je}static getDataForColumn(Je,gt){switch(gt){case"id":return Je.id.toString();case"user":return Je.serviceUser?"true":"false";case"name":return Je?Je.lastName?Je.lastName:Je.firstName??"":"";case"organization":return(0,w.OV)(Je);case"email":return(0,w.kN)(Je);case"logins":return(0,w.lt)(Je);default:return""}}static getExportDataForColumn(Je,gt){switch(gt){case"id":return Je.id.toString();case"user":return Je.serviceUser?"service-user":"user";case"name":return Je?(0,w.bD)(Je):"";case"organization":return(0,w.OV)(Je);case"email":return(0,w.kN)(Je);case"logins":return(0,w.lt)(Je);default:return""}}exportAllData(Je){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Xe.getExportDataForColumn),Je)}exportDisplayedData(Je){const gt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Y=gt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(gt,Y),this.displayedColumns,Xe.getExportDataForColumn),Je)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Je,gt)=>(0,w.Sd)(Je,gt,this.displayedColumns,Xe.getDataForColumn),this.dataSource.sortData=(Je,gt)=>(0,w.pR)(Je,gt,Xe.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(Je=>"id"!==Je)),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(Je){return Je?`${this.selection.isSelected(Je)?"deselect":"select"} row ${Je.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Xe.\u0275fac=function(Je){return new(Je||Xe)(C.Y36(g.x4),C.Y36(g.UA),C.Y36(g.d6))},Xe.\u0275cmp=C.Xpm({type:Xe,selectors:[["app-users-list"]],viewQuery:function(Je,gt){if(1&Je&&(C.Gf(w.l9,7),C.Gf(e.YE,7)),2&Je){let Y;C.iGM(Y=C.CRH())&&(gt.child=Y.first),C.iGM(Y=C.CRH())&&(gt.matSort=Y.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[C.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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(Je,gt){1&Je&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportDisplayedData",function(Ce){return gt.exportDisplayedData(Ce)})("exportAllData",function(Ce){return gt.exportAllData(Ce)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,Te,2,1,"th",4),C.YNc(5,v,3,6,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,L,1,0,"th",7),C.YNc(8,q,3,2,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,ue,3,3,"th",10),C.YNc(11,ye,2,1,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,Me,3,3,"th",10),C.YNc(14,we,4,6,"td",12),C.BQk(),C.ynx(15,13),C.YNc(16,Ge,3,3,"th",10),C.YNc(17,ce,3,3,"td",12),C.BQk(),C.ynx(18,14),C.YNc(19,Ze,3,3,"th",10),C.YNc(20,he,3,3,"td",12),C.BQk(),C.ynx(21,15),C.YNc(22,xe,3,3,"th",10),C.YNc(23,j,3,3,"td",12),C.BQk(),C.YNc(24,R,1,0,"tr",16),C.YNc(25,$,1,12,"tr",17),C.qZA()()(),C.YNc(26,Ee,3,3,"perun-web-apps-alert",18),C.YNc(27,Oe,3,3,"perun-web-apps-alert",18)),2&Je&&(C.Q6J("hidden",0===gt.users.length||!gt.dataSource||0===gt.dataSource.filteredData.length),C.xp6(1),C.Q6J("dataLength",gt.dataSource.filteredData.length)("pageSizeOptions",gt.pageSizeOptions)("tableId",gt.tableId),C.xp6(1),C.Q6J("dataSource",gt.dataSource),C.xp6(22),C.Q6J("matHeaderRowDef",gt.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",gt.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===gt.users.length),C.xp6(1),C.Q6J("ngIf",0===gt.dataSource.filteredData.length&&0!==gt.users.length))},dependencies:[T.O5,E.Hw,e.YE,e.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,S.oG,U.gM,_.w,V.Kd,V.YH,z.l,T.i8,Q.X$,te.d,oe.S,ee.g,le.Z],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Xe})()},57706:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(94650),c=h(89383);let A=(()=>{class w{constructor(C){this.translateService=C,this.returnData=""}transform(C){switch(C){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(T=>{this.returnData=T});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(T=>{this.returnData=T});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(T=>{this.returnData=T});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(T=>{this.returnData=T});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(T=>{this.returnData=T});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(T=>{this.returnData=T});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(T=>{this.returnData=T});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(T=>{this.returnData=T});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(T=>{this.returnData=T});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(T=>{this.returnData=T});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(T=>{this.returnData=T});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(T=>{this.returnData=T});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(T=>{this.returnData=T});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(T=>{this.returnData=T});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(T=>{this.returnData=T});break;default:return C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(c.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(94650),c=h(89383);let A=(()=>{class w{constructor(C){this.translate=C,this.returnData=""}transform(C){switch(C){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(T=>{this.returnData=`done${T}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(T=>{this.returnData=`clear${T}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(T=>{this.returnData=`contact_mail ${T}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(T=>{this.returnData=`gavel${T}`});break;default:this.returnData=C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(c.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(32080),c=h(94650);let A=(()=>{class w{constructor(C){this.storeService=C,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(C,T,E){return!!(this.storeService.get("enforce_consents")&&E&&T)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((U,_)=>U||C.startsWith(_),!1)}}return w.\u0275fac=function(C){return new(C||w)(c.Y36(e.d6,16))},w.\u0275pipe=c.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.substring(40)}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},14264:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>ve});var e=h(36895),c=h(94364),A=h(47957),w=h(4859),g=h(56709),C=h(3238),T=h(99602),E=h(65412),S=h(44850),U=h(37084),_=h(59549),V=h(97392),z=h(284),Q=h(98739),te=h(73162),oe=h(51572),ee=h(71948),le=h(84385),de=h(23267),Te=h(90455),v=h(17009),L=h(96308),B=h(30671),W=h(3848),q=h(10266),ue=h(35423),ye=h(73546),Me=h(42673),we=h(77331),Ge=h(28255),ce=h(86257),Ze=h(24006),he=h(73228),xe=h(36769),j=h(32080),R=h(94650),G=h(50301),se=h(89383);const $=["collapse"],Ee=function(){return{color:"linkTextColor"}};function Oe(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,Ee))}function ct(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,Ee))}function Xe(ze,tt){if(1&ze&&(R.TgZ(0,"span",12),R.YNc(1,Oe,2,2,"mat-icon",13),R.YNc(2,ct,2,2,"mat-icon",13),R.qZA()),2&ze){const at=R.oxw().$implicit,Re=R.oxw(2);R.xp6(1),R.Q6J("ngIf",!Re.isActive(Re.currentUrl,at.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const _t=function(ze,tt){return{color:ze,"border-color":tt}};function Je(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"a",17),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(4);return R.KtG(jt.navigate(Pt.url))}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(4);R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(9,_t,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(2,7,at.label)," ")}}function gt(ze,tt){if(1&ze&&(R.TgZ(0,"div",15),R.YNc(1,Je,3,12,"a",16),R.qZA()),2&ze){const at=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==at?null:at.children)}}function Y(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"div")(1,"a",9),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(2);return R.KtG(jt.navigate(Pt.url))}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,Xe,3,2,"span",10),R.qZA(),R.YNc(5,gt,2,2,"div",11),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(2);R.xp6(1),R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(11,_t,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,at.label)," "),R.xp6(2),R.Q6J("ngIf",at.children),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}function Ce(ze,tt){if(1&ze&&(R.TgZ(0,"div"),R.YNc(1,Y,6,14,"div",8),R.qZA()),2&ze){const at=R.oxw();R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",at.item.links)}}const ae=function(ze,tt){return{background:ze,"border-top":tt}},re=function(ze){return{color:ze}},Se=function(){return{color:"currentColor"}},Fe=function(ze){return{background:ze}};let be=(()=>{class ze{constructor(at,Re){this.router=at,this.store=Re,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=at.url,at.events.subscribe(st=>{st instanceof c.m2&&(this.currentUrl=st.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(at,Re){return new RegExp(Re).test(at)}navigate(at){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(at)):this.router.navigate(at)}}return ze.\u0275fac=function(at){return new(at||ze)(R.Y36(c.F0),R.Y36(j.d6))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-side-menu-item"]],viewQuery:function(at,Re){if(1&at&&R.Gf($,5),2&at){let st;R.iGM(st=R.CRH())&&(Re.collapseDiv=st.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(at,Re){1&at&&(R.TgZ(0,"div",0)(1,"div",1),R.NdJ("click",function(){return Re.toggle()}),R.TgZ(2,"div",2)(3,"a",3)(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.TgZ(9,"div")(10,"div",6),R.YNc(11,Ce,2,2,"div",7),R.qZA()()()),2&at&&(R.xp6(1),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(18,ae,Re.item.backgroundColorCss,Re.index?Re.dividerStyle:"none")),R.xp6(1),R.Gre("entity-menu-item-link ",Re.item.labelClass,""),R.Q6J("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),R.xp6(1),R.Q6J("ngStyle",R.VKq(21,re,Re.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(23,Se))("svgIcon",Re.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,16,Re.item.label)),R.xp6(2),R.Q6J("@openClose",Re.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",Re.item.linksClass,""),R.Q6J("ngStyle",R.VKq(24,Fe,Re.linkBgColor)),R.xp6(1),R.Q6J("ngIf",Re.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,se.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:[xe.BQ,xe.Ly]}}),ze})(),Ue=(()=>{class ze{transform(at){if(void 0===at.value)return"";switch(at.type){case"java.lang.String":return at.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(at.value);case"java.util.ArrayList":return this.whenValueIsArray(at.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(at.value)}}whenValueIsArray(at){let Re="";return at.forEach(function(st){Re=Re.concat(st+", ")}),Re}whenValueIsMap(at){let Re="";return at.forEach((st,Pt)=>{Re=Re.concat(Pt+": "+st+", ")}),Re}}return ze.\u0275fac=function(at){return new(at||ze)},ze.\u0275pipe=R.Yjl({name:"anyToString",type:ze,pure:!0}),ze})();const P=["collapse"],H=function(){return{color:"linkTextColor"}};function i(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,H))}function o(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,H))}function f(ze,tt){if(1&ze&&(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&ze){const at=R.oxw().$implicit,Re=R.oxw();R.xp6(1),R.Q6J("ngIf",!Re.isActive(Re.currentUrl,at.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const l=function(ze,tt){return{color:ze,"border-color":tt}};function a(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"a",14),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(3);return R.KtG(jt.navigate(Pt.url))}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(3);R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(9,l,Re.linkTextColor,Re.linkTextColor))("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",at.url),R.xp6(1),R.hij(" ",R.lcZ(2,7,at.label)," ")}}function n(ze,tt){if(1&ze&&(R.TgZ(0,"div"),R.YNc(1,a,3,12,"a",13),R.qZA()),2&ze){const at=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==at?null:at.children)}}function t(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"div")(1,"a",7),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw();return R.KtG(jt.navigate(Pt.url))}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,f,3,2,"span",8),R.qZA(),R.YNc(5,n,2,2,"div",9),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw();R.xp6(1),R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(11,l,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,at.label)," "),R.xp6(2),R.Q6J("ngIf",at.children),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const r=function(ze){return{background:ze}},s=function(ze){return{color:ze}},d=function(){return{color:"currentColor"}};let p=(()=>{class ze{constructor(at,Re){this.router=at,this.store=Re,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=at.url,at.events.subscribe(st=>{st instanceof c.m2&&(this.currentUrl=st.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(at,Re){return new RegExp(Re).test(at)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(at){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(at)):this.router.navigate(at)}}return ze.\u0275fac=function(at){return new(at||ze)(R.Y36(c.F0),R.Y36(j.d6))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-side-menu-root-item"]],viewQuery:function(at,Re){if(1&at&&R.Gf(P,5),2&at){let st;R.iGM(st=R.CRH())&&(Re.collapseDiv=st.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(at,Re){1&at&&(R.TgZ(0,"div",0)(1,"div",1),R.NdJ("click",function(){return Re.toggle()}),R.TgZ(2,"div")(3,"a",2)(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.TgZ(9,"div")(10,"div",5),R.YNc(11,t,6,14,"div",6),R.qZA()()()),2&at&&(R.s9C("id",Re.id),R.xp6(1),R.ekj("root-header-activated",Re.isActive(Re.currentUrl,Re.item.baseColorClassRegex)),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.VKq(21,r,Re.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),R.xp6(1),R.Gre("entity-menu-item-link ",Re.item.labelClass,""),R.xp6(1),R.Q6J("ngStyle",R.VKq(23,s,Re.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(25,d))("svgIcon",Re.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,19,Re.item.label)),R.xp6(2),R.Q6J("@openClose",Re.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",Re.item.linksClass,""),R.Q6J("ngStyle",R.VKq(26,r,Re.linkBgColor)),R.xp6(1),R.Q6J("ngForOf",Re.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,se.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:[xe.BQ,xe.Ly]}}),ze})();var M=h(73555),_e=h(67376),bt=h(63189),Vt=h(37677),on=h(33604),Mt=h(11243),ft=h(19516),je=h(33231),Pe=h(96338),Qe=h(9244),qe=h(28499),Be=h(70844),me=h(74281);let ve=(()=>{class ze{constructor(at){this.translate=at,at.addLangs(["en","cs"])}}return ze.\u0275fac=function(at){return new(at||ze)(R.LFG(se.sK))},ze.\u0275mod=R.oAB({type:ze}),ze.\u0275inj=R.cJS({providers:[Ue,Vt.A,Be.u],imports:[e.ez,c.Bz,A.Bb,z.c,_.lN,Ze.UX,Ze.u5,V.Ps,de.SJ,U.To,se.aw.forChild({}),w.ot,L.JX,B.p0,W.Nh,ue.dp,w.ot,g.p9,E.Is,le.LD,v.ZX,oe.Cq,te.Cv,q.AV,Te.rP,T.FA,C.XK,ee.Fk,S.t,C.si,Q.TU,ye.QW,ce.T5,M._t,ye.QW,we.Hi,Ge.Tx,_e.Cl,bt.r,Me.g,on.ez,Mt.r,ft.d4,je.Co,Pe.ie,Qe.Je,qe.E3,me.jD,je.Co,A.Bb,z.c,c.Bz,Ze.UX,Ze.u5,V.Ps,de.SJ,se.aw,L.JX,B.p0,W.Nh,ue.dp,w.ot,g.p9,E.Is,le.LD,v.ZX,oe.Cq,te.Cv,q.AV,Te.rP,T.FA,C.XK,ee.Fk,S.t,ye.QW,ce.T5,C.si,Q.TU,M._t,we.Hi,we.Hi,U.To,Ge.Tx,_e.Cl,_e.Cl,_e.Cl,Mt.r]}),ze})();R.B6R(he.V,function(){return[e.sg,e.O5,be,p]},[])},69024:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>E});var e=h(32080),c=h(32105),A=h(9244),w=h(19516),g=h(64080),C=h(94650),T=h(89383);let E=(()=>{class S{constructor(_,V,z,Q,te,oe,ee,le){this.translate=_,this.authResolver=V,this.store=z,this.apiRequest=Q,this.attributesManager=te,this.notificator=oe,this.guiAuthResolver=ee,this.routePolicyService=le,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(_){return{label:_.name,baseLink:[`/facilities/${_.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(_),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(_,V){const z=(new w.r5).transform(_,V);return{label:_.name,baseLink:[z],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(z,V?"/organizations":"/facilities",_),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(_){return{label:_.name,baseLink:[`/organizations/${_.voId}/groups/${_.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(_),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(_,V=!1,z=!1){return{label:_.name,baseLink:[`/organizations/${_.id}`],links:this.getVoLinks(_,z),colorClass:"vo-item",icon:V?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(_){return{label:(0,A.bD)(_.user),baseLink:[`/organizations/${_.voId}/members/${_.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(_),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(_,V,z){return{label:(0,A.bD)(_),baseLink:[V],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(_,V,z),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(_){return{label:(0,A.bD)(_),baseLink:[`/myProfile/service-identities/${_.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${_.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${_.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${_.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(_){return{label:_.name,baseLink:[`/admin/services/${_.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${_.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${_.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${_.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(_,V){const z=[];if(z.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${_.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",_)&&z.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${_.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",_)&&z.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${_.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",_)){const Q=[];this.routePolicyService.canNavigate("organizations-resources-preview",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${_.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${_.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${_.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),z.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${_.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:Q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",_)&&z.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${_.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",_)&&z.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${_.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",_)&&z.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${_.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",_)&&z.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",_)&&z.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",_)){const Q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",_)&&Q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",_)&&Q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",_)&&Q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",_)&&Q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",_)&&Q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",_)&&Q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${_.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",_)&&V&&Q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${_.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),z.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${_.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:Q,showChildrenRegex:"/organizations/\\d+/settings"})}return z}getUserLinks(_,V,z){const Q=[];return Q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[V],activatedRegex:`${z}$`}),Q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${V}/organizations`],activatedRegex:`${z}/organizations`}),Q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${V}/groups`],activatedRegex:`${z}/groups`}),Q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${V}/accounts`],activatedRegex:`${z}/accounts`}),Q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${V}/identities`],activatedRegex:`${z}/identities`}),Q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${V}/facilities`],activatedRegex:`${z}/facilities`}),Q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${V}/resources`],activatedRegex:`${z}/resources`}),Q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${V}/attributes`],activatedRegex:`${z}/attributes`}),Q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${V}/roles`],activatedRegex:`^${V}/roles`}),Q.push(_.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${V}/associated-users`],activatedRegex:`^${V}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${V}/service-identities`],activatedRegex:`^${V}/service-identities`}),Q}getMemberLinks(_){const V=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${_.voId}/members/${_.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",_)&&V.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${_.voId}/members/${_.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",_)&&V.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${_.voId}/members/${_.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",_)&&V.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${_.voId}/members/${_.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",_)&&V.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${_.voId}/members/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),V}getFacilityLinks(_){const V=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${_.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",_)&&V.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${_.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${_.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${_.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${_.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${_.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",_)&&V.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${_.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",_)&&V.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",_.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",_)){const z=[];this.routePolicyService.canNavigate("facilities-settings-owners",_)&&z.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",_.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",_)&&z.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",_.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",_)&&z.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${_.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",_)&&z.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",_.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),V.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",_.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:z,showChildrenRegex:"/facilities/\\d+/settings"})}return V}getGroupLinks(_){const V=[],z=[];return V.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${_.voId}/groups/${_.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",_)&&V.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${_.voId}/groups/${_.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",_)&&"members"!==_.name&&V.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${_.voId}/groups/${_.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",_)&&V.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",_)&&V.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",_)&&V.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${_.voId}/groups/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",_)&&V.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${_.voId}/groups/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",_)&&V.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${_.voId}/groups/${_.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(_.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{z.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${_.voId}/groups/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},Q=>{"HttpErrorResponse"!==Q.name&&this.notificator.showRPCError(Q)}),this.routePolicyService.canNavigate("groups-settings-managers",_)&&z.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",_)&&z.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${_.voId}/groups/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",_)&&z.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",_)&&z.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",_)&&z.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==z.length&&V.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${_.voId}/groups/${_.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:z,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),V}getResourceLinks(_,V,z){const Q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[_],activatedRegex:`${V}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[_,"groups"],activatedRegex:`${V}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[_,"services"],activatedRegex:`${V}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[_,"members"],activatedRegex:`${V}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[_,"tags"],activatedRegex:`${V}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[_,"attributes"],activatedRegex:`${V}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[_,"settings"],activatedRegex:`${V}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[_,"settings","managers"],activatedRegex:`${V}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${V}/\\d+/resources/\\d+/settings`}),Q}}return S.\u0275fac=function(_){return new(_||S)(C.LFG(T.sK),C.LFG(e.x4),C.LFG(e.d6),C.LFG(e.F5),C.LFG(c.H8),C.LFG(e.V6),C.LFG(e.x4),C.LFG(e.Ip))},S.\u0275prov=C.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},73228:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>oe});var e=h(72077),c=h(69024),A=h(32080),w=h(36769),g=h(94650),C=h(77968);function T(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("sideNav",v.sideNav)}}function E(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.accessItems.length-1)("sideNav",v.sideNav)}}function S(ee,le){if(1&ee&&g._UZ(0,"app-side-menu-root-item",2),2&ee){const de=g.oxw();g.Q6J("id","facilities-item-btn")("item",de.facilityItem)("sideNav",de.sideNav)}}function U(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.facilityItems.length-1)("sideNav",v.sideNav)}}function _(ee,le){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,U,2,5,"div",3),g.qZA()),2&ee){const de=g.oxw();g.xp6(1),g.Q6J("ngForOf",de.facilityItems)}}function V(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.userItems.length-1)("sideNav",v.sideNav)}}function z(ee,le){if(1&ee&&g._UZ(0,"app-side-menu-root-item",7),2&ee){const de=g.oxw();g.Q6J("id","admin-item-btn")("item",de.adminItem)("showOpen",de.adminItemOpened)("sideNav",de.sideNav)}}function Q(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",!0)("sideNav",v.sideNav)}}function te(ee,le){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,Q,2,5,"div",3),g.qZA()),2&ee){const de=g.oxw();g.xp6(1),g.Q6J("ngForOf",de.adminItems)}}let oe=(()=>{class ee{constructor(de,Te,v){this.sideMenuService=de,this.sideMenuItemService=Te,this.authResolver=v,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(de,Te){return de.label===Te.label&&de.labelClass===Te.labelClass}static areSameLinks(de,Te){if(de.links.length!==Te.links.length)return!1;for(let v=0;vTe.length?de.length:Te.length;for(let L=0;Lde.length-1)de.push(Te[L]);else{if(L>Te.length-1){const B=de.length;for(let W=0;W{this.setFacilityItems(de)}),this.sideMenuService.accessItemsChange.subscribe(de=>{this.setAccessItems(de)}),this.sideMenuService.adminItemsChange.subscribe(de=>{this.setAdminItems(de)}),this.sideMenuService.userItemsChange.subscribe(de=>{this.setUserItems(de)}),this.sideMenuService.homeItemsChange.subscribe(de=>{this.setHomeItems(de)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.adminItems,[])}setHomeItems(de){this.resetExceptHome(),ee.setNewItems(this.homeItems,de)}setFacilityItems(de){this.resetExceptFacility(),ee.setNewItems(this.facilityItems,de)}setAccessItems(de){this.resetExceptAccess(),ee.setNewItems(this.accessItems,de)}setUserItems(de){this.userItemOpened=0===de.length,this.resetExceptUser(),ee.setNewItems(this.userItems,de)}setAdminItems(de){this.adminItemOpened=0===de.length,this.resetExceptAdmin(),ee.setNewItems(this.adminItems,de)}}return ee.\u0275fac=function(de){return new(de||ee)(g.Y36(C.D),g.Y36(c.V),g.Y36(A.x4))},ee.\u0275cmp=g.Xpm({type:ee,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(de,Te){1&de&&(g.TgZ(0,"div",0)(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,T,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,E,2,5,"div",3),g.qZA(),g.YNc(7,S,1,3,"app-side-menu-root-item",5),g.YNc(8,_,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,V,2,5,"div",3),g.YNc(11,z,1,4,"app-side-menu-root-item",8),g.YNc(12,te,2,1,"div",6),g.qZA()()),2&de&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",Te.homeItem)("sideNav",Te.sideNav),g.xp6(1),g.Q6J("ngForOf",Te.homeItems),g.xp6(1),g.Q6J("item",Te.accessItem)("id","access-item-btn")("sideNav",Te.sideNav),g.xp6(2),g.Q6J("ngForOf",Te.accessItems),g.xp6(1),g.Q6J("ngIf",Te.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",Te.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",Te.userItem)("showOpen",Te.userItemOpened)("sideNav",Te.sideNav),g.xp6(1),g.Q6J("ngForOf",Te.userItems),g.xp6(1),g.Q6J("ngIf",Te.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",Te.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]}}),ee})()},86511:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(32080),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,E){this.notificator=T,this.translate=E}setDialogRef(T){this.dialogRef=T}setType(T){this.entityType=T}getType(){return this.entityType}createCandidate(T){return{userExtSource:T.userExtSource,additionalUserExtSources:T.additionalUserExtSources,attributes:T.attributes,firstName:T.firstName,lastName:T.lastName,middleName:T.middleName,titleBefore:T.titleBefore,titleAfter:T.titleAfter,id:T.id}}getFormattedGroup(T){return{id:T.id,beanName:T.beanName,name:T.name,voId:T.voId}}success(T){this.notificator.showSuccess(this.translate.instant(T)),this.dialogRef.close(!0)}getCandidateWithError(T,E){const S=E.error,U=S.message.split(":").splice(1).join();return{candidate:T,errorName:S.name,errorMsg:U}}}return g.\u0275fac=function(T){return new(T||g)(c.LFG(e.V6),c.LFG(A.sK))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>je});var e=h(94650),c=h(73555),A=h(65412),w=h(4859),g=h(89383);let C=(()=>{class Pe{constructor(qe){this.dialogRef=qe}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Pe.\u0275fac=function(qe){return new(qe||Pe)(e.Y36(A.so))},Pe.\u0275cmp=e.Xpm({type:Pe,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(qe,Be){1&qe&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Be.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Be.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&qe&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[w.lW,A.uh,A.xY,A.H8,g.X$]}),Pe})();var T=h(32080),E=h(83491),S=h(9244),U=h(94364),_=h(36895),V=h(24006),z=h(97392),Q=h(30671),te=h(51572),oe=h(10266),ee=h(98380),le=h(21963),de=h(28820),Te=h(57706),v=h(64597);const L=["table"];function B(Pe,Qe){1&Pe&&e._UZ(0,"mat-spinner",3)}function W(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function q(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(qe);const me=e.oxw(2);return e.KtG(me.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function ue(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ye(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.AsE(" ",qe.shortname,"",qe.required?"*":""," ")}}function Me(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function we(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,qe.type)," ")}}function Ge(Pe,Qe){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function ce(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Be.disabledTooltip(qe)),e.xp6(3),e.hij(" ",Be.disabledHiddenDependency(qe,qe.disabled,qe.disabledDependencyItemId)," ")}}function Ze(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,ce,5,2,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==qe.disabled)}}function he(Pe,Qe){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function xe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Be.hiddenTooltip(qe)),e.xp6(3),e.hij(" ",Be.disabledHiddenDependency(qe,qe.hidden,qe.hiddenDependencyItemId)," ")}}function j(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,xe,5,2,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==qe.hidden)}}function R(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function G(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function se(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function $(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(2),e.hij(" ",qe,"")}}function Ee(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,$,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Oe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Be.getLocalizedLabel(qe),e.oJD)}}function ct(Pe,Qe){if(1&Pe&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",qe," ")}}function Xe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,ct,2,1,"option",33),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe))}}function _t(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Je(Pe,Qe){if(1&Pe&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",qe," ")}}function gt(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Y(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(me){e.CHM(qe);const ve=e.oxw().$implicit,ze=e.oxw(2);return e.KtG(ze.mapForCombobox[ve.id]=me)}),e.YNc(2,Je,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,gt,3,0,"div",29),e.qZA()}if(2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Be.mapForCombobox[qe.id]),e.xp6(1),e.Q6J("ngForOf",Be.getLocalizedOptions(qe)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Be.mapForCombobox[qe.id])}}function Ce(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(2),e.hij(" ",qe," ")}}function ae(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,Ce,3,1,"div",33),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe))}}function re(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.hij(" ",Be.getLocalizedLabel(qe)," ")}}function Se(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Pe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Fe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.hij(" ",Be.getLocalizedLabel(qe)," ")}}function be(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const Ue=function(){return["Example 1","Example 2"]},P=function(Pe){return{id:0,beanName:"Attribute",namespace:"",value:Pe}};function H(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,P,e.DdM(1,Ue))))}const i=function(){return{key1:"value 1",key2:"value 2"}};function o(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,P,e.DdM(1,i))))}function f(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,G,3,0,"div",29),e.YNc(2,se,5,0,"div",29),e.YNc(3,Ee,5,4,"div",29),e.YNc(4,Oe,2,1,"div",29),e.YNc(5,Xe,3,1,"div",29),e.YNc(6,_t,2,0,"div",29),e.YNc(7,Y,7,6,"div",29),e.YNc(8,ae,3,1,"div",29),e.YNc(9,re,3,1,"div",29),e.YNc(10,Se,85,3,"div",29),e.YNc(11,Fe,3,1,"div",29),e.YNc(12,be,10,0,"div",29),e.YNc(13,H,2,4,"div",29),e.YNc(14,o,2,4,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===qe.type||"VALIDATED_EMAIL"===qe.type||"USERNAME"===qe.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===qe.type),e.xp6(1),e.Q6J("ngIf","RADIO"===qe.type),e.xp6(1),e.Q6J("ngIf","HEADING"===qe.type||"HTML_COMMENT"===qe.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===qe.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===qe.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===qe.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===qe.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===qe.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===qe.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===qe.type)}}function l(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function a(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw(3);return e.KtG(me.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,a,4,3,"button",86),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===qe.type&&!qe.forDelete)}}function t(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function r(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.edit(me))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function s(Pe,Qe){1&Pe&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function d(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,r,4,3,"button",88),e.YNc(2,s,3,3,"div",89),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!qe.forDelete),e.xp6(1),e.Q6J("ngIf",qe.forDelete)}}function p(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function M(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.delete(me))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Pe){const qe=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,qe.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function _e(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.restore(me))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function bt(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,M,5,6,"button",92),e.YNc(2,_e,4,3,"button",86),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!qe.forDelete),e.xp6(1),e.Q6J("ngIf",qe.forDelete)}}function Vt(Pe,Qe){1&Pe&&e._UZ(0,"tr",94)}function on(Pe,Qe){if(1&Pe&&e._UZ(0,"tr",95),2&Pe){const qe=Qe.$implicit,Be=e.oxw(2);e.ekj("make-green",qe.id<=0)("make-red",qe.forDelete)("make-yellow",-1!==Be.itemsChanged.indexOf(qe.id)&&!qe.forDelete&&qe.id>0),e.Q6J("cdkDragData",qe)}}function Mt(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(me){e.CHM(qe);const ve=e.oxw();return e.KtG(ve.drop(me))}),e.ynx(5,9),e.YNc(6,W,1,0,"th",10),e.YNc(7,q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ue,3,3,"th",10),e.YNc(10,ye,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Me,3,3,"th",10),e.YNc(13,we,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,Ge,3,3,"th",15),e.YNc(16,Ze,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,he,3,3,"th",15),e.YNc(19,j,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,R,3,3,"th",10),e.YNc(22,f,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,d,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,p,1,0,"th",10),e.YNc(31,bt,3,2,"td",11),e.BQk(),e.YNc(32,Vt,1,0,"tr",22),e.YNc(33,on,1,7,"tr",23),e.qZA()()()()}if(2&Pe){const qe=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",qe.dragDisabled)("dataSource",qe.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",qe.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",qe.displayedColumns)}}function ft(Pe,Qe){1&Pe&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let je=(()=>{class Pe{constructor(qe,Be,me,ve){this.dialog=qe,this.notificator=Be,this.router=me,this.translate=ve,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(qe,Be,me){let ve="";if("IF_EMPTY"===Be||"IF_PREFILLED"===Be){const ze=null===me?"":this.applicationFormItems.find(tt=>tt.id===me).shortname;ve="IF_EMPTY"===Be?`(${this.ifEmpty} ${ze})`:`(${this.ifPrefilled} ${ze})`}return ve}disabledTooltip(qe){let Be;switch(qe.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Be=null===qe.disabledDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Be} ${this.isEmpty}`;case"IF_PREFILLED":return Be=null===qe.disabledDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Be} ${this.isPrefilled}`}}hiddenTooltip(qe){let Be;switch(qe.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Be=null===qe.hiddenDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Be} ${this.isEmpty}`;case"IF_PREFILLED":return Be=null===qe.hiddenDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Be} ${this.isPrefilled}`}}edit(qe){const Be=(0,S.kZ)();Be.width="600px",Be.height="600px",Be.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:qe,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(E._,Be).afterClosed().subscribe(ve=>{ve&&(this.itemsChanged.push(qe.id),this.applicationFormItemsChange.emit())})}delete(qe){const Be=(0,S.kZ)();Be.width="500px",this.dialog.open(C,Be).afterClosed().subscribe(ve=>{ve&&(qe.forDelete=!0,0===qe.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(qe),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(qe){this.dragDisabled=!0;const Be=this.applicationFormItems.indexOf(qe.item.data);(0,c.bA)(this.applicationFormItems,Be,qe.currentIndex),this.itemsChanged.push(this.applicationFormItems[qe.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(qe){if(qe.i18n[this.translate.getDefaultLang()]){const Be=qe.i18n[this.translate.getDefaultLang()].options;if(null!==Be&&""!==Be){const me=[];for(const ve of Be.split("|"))me.push(ve.split("#")[1]);return me}}return[]}getLocalizedLabel(qe){return qe.i18n[this.translate.getDefaultLang()]?qe.i18n[this.translate.getDefaultLang()].label:qe.shortname}restore(qe){qe.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Pe.\u0275fac=function(qe){return new(qe||Pe)(e.Y36(A.uw),e.Y36(T.V6),e.Y36(U.F0),e.Y36(g.sK))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["app-application-form-list"]],viewQuery:function(qe,Be){if(1&qe&&e.Gf(L,5),2&qe){let me;e.iGM(me=e.CRH())&&(Be.table=me.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(qe,Be){1&qe&&(e.YNc(0,B,1,0,"mat-spinner",0),e.YNc(1,Mt,34,4,"div",1),e.YNc(2,ft,3,3,"perun-web-apps-alert",2)),2&qe&&(e.Q6J("ngIf",Be.loading),e.xp6(1),e.Q6J("ngIf",0!==Be.applicationFormItems.length&&!Be.loading),e.xp6(1),e.Q6J("ngIf",0===Be.applicationFormItems.length&&!Be.loading))},dependencies:[_.sg,_.O5,V._Y,V.YN,V.Kr,V.EJ,V.JJ,V.JL,V.On,V.F,z.Hw,Q.BZ,Q.fO,Q.as,Q.w1,Q.Dz,Q.nj,Q.ge,Q.ev,Q.XQ,Q.Gk,w.lW,te.Ou,oe.gM,c.Wj,c.Zt,ee.w,le.H,de.$,g.X$,Te.c,v.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}"]}),Pe})()},9146:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>d});var e=h(32105),c=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(36895),E=h(74281),S=h(94650),U=h(10036),_=h(65412),V=h(94364),z=h(30671),Q=h(51572),te=h(98380),oe=h(50301),ee=h(18750),le=h(97392),de=h(10266);function Te(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",1),S._uU(2,"arrow_right_alt"),S.qZA()())}function v(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",2),S._uU(2,"restore"),S.qZA()())}function L(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",3),S._uU(2,"nat"),S.qZA()())}let B=(()=>{class p{}return p.\u0275fac=function(_e){return new(_e||p)},p.\u0275cmp=S.Xpm({type:p,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(_e,bt){1&_e&&(S.TgZ(0,"div"),S.YNc(1,Te,3,0,"div",0),S.YNc(2,v,3,0,"div",0),S.YNc(3,L,3,0,"div",0),S.qZA()),2&_e&&(S.xp6(1),S.Q6J("ngIf","INITIAL"===bt.applicationType),S.xp6(1),S.Q6J("ngIf","EXTENSION"===bt.applicationType),S.xp6(1),S.Q6J("ngIf","EMBEDDED"===bt.applicationType))},dependencies:[T.O5,le.Hw,de.gM]}),p})();var W=h(89383),q=h(43157),ue=h(31359);function ye(p,M){1&p&&(S.TgZ(0,"div",26),S._UZ(1,"mat-spinner",27),S.qZA())}function Me(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function we(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.id)}}function Ge(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function ce(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,_e.createdAt,"d.M.y"))}}function Ze(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function he(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.vo.id)}}function xe(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function j(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.vo.name)}}function R(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function G(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.group?_e.group.id:""," ")}}function se(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function $(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.group?_e.group.name:""," ")}}function Ee(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Oe(p,M){if(1&p&&(S.TgZ(0,"td",29),S._UZ(1,"app-application-type-icon",31),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Q6J("applicationType",_e.type)}}function ct(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Xe(p,M){if(1&p&&(S.TgZ(0,"td",29),S._UZ(1,"span",32),S.ALo(2,"applicationState"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Q6J("outerHTML",S.lcZ(2,1,_e.state),S.oJD)}}function _t(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.extSourceName)}}function gt(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Y(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.extSourceType)}}function Ce(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function ae(p,M){if(1&p&&(S.TgZ(0,"div"),S._uU(1),S.qZA()),2&p){const _e=S.oxw().$implicit;S.xp6(1),S.hij(" ",_e.createdBy.slice(_e.createdBy.lastIndexOf("=")+1,_e.createdBy.length)," ")}}function re(p,M){if(1&p&&(S._uU(0),S.ALo(1,"userFullName")),2&p){const _e=S.oxw().$implicit;S.hij(" ",S.lcZ(1,1,_e.user)," ")}}function Se(p,M){if(1&p&&(S.TgZ(0,"td",29),S.YNc(1,ae,2,1,"div",33),S.YNc(2,re,2,3,"ng-template",null,34,S.W1O),S.qZA()),2&p){const _e=M.$implicit,bt=S.MAs(3);S.xp6(1),S.Q6J("ngIf",null===_e.user)("ngIfElse",bt)}}function Fe(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function be(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.createdBy.slice(_e.createdBy.lastIndexOf("=")+1,_e.createdBy.length)," ")}}function Ue(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function P(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit,bt=S.oxw();S.xp6(1),S.Oqu(bt.getFriendlyName(_e.modifiedBy))}}function H(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function i(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,_e.modifiedAt,"d.M.y"))}}function o(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function f(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.fedInfo)}}function l(p,M){if(1&p&&(S.TgZ(0,"th",30),S._uU(1),S.qZA()),2&p){const _e=S.oxw().$implicit;S.xp6(1),S.Oqu(_e)}}function a(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit,bt=S.oxw().$implicit,Vt=S.oxw();S.xp6(1),S.hij(" ",Vt.getValue(_e.formData,bt)," ")}}function n(p,M){1&p&&(S.ynx(0,35),S.YNc(1,l,2,1,"th",9),S.YNc(2,a,2,1,"td",6),S.BQk()),2&p&&S.s9C("matColumnDef",M.$implicit)}function t(p,M){1&p&&S._UZ(0,"tr",36)}function r(p,M){if(1&p&&S._UZ(0,"tr",37),2&p){const _e=M.$implicit,bt=S.oxw();S.ekj("cursor-pointer",!bt.disableRouting),S.Q6J("perunWebAppsMiddleClickRouterLink",bt.selectApplication(_e))("routerLink",bt.selectApplication(_e))}}function s(p,M){1&p&&(S.TgZ(0,"perun-web-apps-alert",38),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.Q6J("alert_type","warn"),S.xp6(1),S.hij(" ",S.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let d=(()=>{class p{constructor(_e,bt,Vt,on){this.authResolver=_e,this.tableConfigService=bt,this.dynamicPaginatingService=Vt,this.dialog=on,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=c.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(_e=>"id"!==_e)),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),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(_e=>{if(_e||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Vt=>!this.parsedColumns.includes(Vt)),this.parsedColumns=[];const bt=this.dataSource.getData()[0];bt&&this.parseColumns(bt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(_e){(0,c.O6)((0,c.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),_e)}exportAllData(_e){const bt="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Vt=(0,c.kZ)();Vt.width="300px";const on=this.dialog.open(E.QQ,Vt);this.dataSource.getAllApplications(this.child.paginator.length,bt,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(Mt=>{on.close(),(0,c.O6)((0,c.Xn)(Mt,this.displayedColumns,this.getExportDataForColumn.bind(this)),_e)})}selectApplication(_e){return this.disableRouting?null:this.group?["/organizations",_e.vo.id,"groups",this.group.id,"applications",_e.id]:this.member?["/organizations",_e.vo.id,"members",this.member.id,"applications",_e.id]:["/organizations",_e.vo.id,"applications",_e.id]}getExportDataForColumn(_e,bt){switch(bt){case"id":return _e.id.toString();case"voId":return _e.vo.id.toString();case"voName":return _e.vo.name;case"groupId":return _e.group?.id.toString()??"";case"groupName":return _e.group?.name??"";case"type":return _e.type;case"fedInfo":return _e.fedInfo;case"formData":return this.stringify(_e.formData);case"state":return _e.state;case"extSourceName":return _e.extSourceName;case"extSourceType":return _e.extSourceType;case"user":return _e.user?(0,c.bD)(_e.user):"";case"createdBy":return _e.createdBy;case"createdAt":return _e.createdAt;case"modifiedBy":return _e.modifiedBy;case"modifiedAt":return _e.modifiedAt;default:return _e[bt]}}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(_e){const bt=_e.lastIndexOf("/CN=");if(-1!==bt){const Vt=_e.slice(bt+4,_e.length).replace("/unstructuredName="," ");return-1!==Vt.lastIndexOf("\\")?_e.slice(_e.lastIndexOf("=")+1,_e.length):Vt}return _e}yearAgo(){const _e=new Date;return _e.setDate(_e.getDate()-365),_e}dateToString(_e){return(0,T.p6)(_e,"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(_e){const bt=on=>Object.entries(on).reduce((Mt,[ft,je])=>Mt[ft]instanceof Object?Mt[ft]=bt(Mt[ft]):(null==je||"null"===je||0===je.length||(Mt[ft]=je),Mt),{});let Vt=JSON.stringify(bt(_e));return Vt=Vt.replace("{","["),Vt=Vt.replace("}","]"),Vt}getFormDataString(_e){return this.stringify(_e.formItem)}parseColumns(_e){_e.forEach(bt=>{this.displayedColumns.includes(bt.shortname)||this.displayedColumns.push(bt.shortname),this.parsedColumns.includes(bt.shortname)||this.parsedColumns.push(bt.shortname)})}getValue(_e,bt){const Vt=_e.filter(on=>on.shortname===bt);return 0===Vt.length?"":Vt[0].value??Vt[0].prefilledValue}}return p.\u0275fac=function(_e){return new(_e||p)(S.Y36(w.x4),S.Y36(U.dB),S.Y36(w.ly),S.Y36(_.uw))},p.\u0275cmp=S.Xpm({type:p,selectors:[["app-applications-dynamic-list"]],viewQuery:function(_e,bt){if(1&_e&&(S.Gf(c.l9,7),S.Gf(A.YE,5)),2&_e){let Vt;S.iGM(Vt=S.CRH())&&(bt.child=Vt.first),S.iGM(Vt=S.CRH())&&(bt.sort=Vt.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:[S.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(_e,bt){1&_e&&(S.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),S.NdJ("exportDisplayedData",function(on){return bt.exportDisplayedData(on)})("exportAllData",function(on){return bt.exportAllData(on)}),S.YNc(2,ye,2,0,"div",2),S.ALo(3,"async"),S.TgZ(4,"table",3),S.ynx(5,4),S.YNc(6,Me,3,3,"th",5),S.YNc(7,we,2,1,"td",6),S.BQk(),S.ynx(8,7),S.YNc(9,Ge,3,3,"th",5),S.YNc(10,ce,3,4,"td",6),S.BQk(),S.ynx(11,8),S.YNc(12,Ze,3,3,"th",9),S.YNc(13,he,2,1,"td",6),S.BQk(),S.ynx(14,10),S.YNc(15,xe,3,3,"th",9),S.YNc(16,j,2,1,"td",6),S.BQk(),S.ynx(17,11),S.YNc(18,R,3,3,"th",9),S.YNc(19,G,2,1,"td",6),S.BQk(),S.ynx(20,12),S.YNc(21,se,3,3,"th",9),S.YNc(22,$,2,1,"td",6),S.BQk(),S.ynx(23,13),S.YNc(24,Ee,3,3,"th",5),S.YNc(25,Oe,2,1,"td",6),S.BQk(),S.ynx(26,14),S.YNc(27,ct,3,3,"th",5),S.YNc(28,Xe,3,3,"td",6),S.BQk(),S.ynx(29,15),S.YNc(30,_t,3,3,"th",9),S.YNc(31,Je,2,1,"td",6),S.BQk(),S.ynx(32,16),S.YNc(33,gt,3,3,"th",9),S.YNc(34,Y,2,1,"td",6),S.BQk(),S.ynx(35,17),S.YNc(36,Ce,3,3,"th",5),S.YNc(37,Se,4,2,"td",6),S.BQk(),S.ynx(38,18),S.YNc(39,Fe,3,3,"th",9),S.YNc(40,be,2,1,"td",6),S.BQk(),S.ynx(41,19),S.YNc(42,Ue,3,3,"th",5),S.YNc(43,P,2,1,"td",6),S.BQk(),S.ynx(44,20),S.YNc(45,H,3,3,"th",9),S.YNc(46,i,3,4,"td",6),S.BQk(),S.ynx(47,21),S.YNc(48,o,3,3,"th",9),S.YNc(49,f,2,1,"td",6),S.BQk(),S.YNc(50,n,3,1,"ng-container",22),S.YNc(51,t,1,0,"tr",23),S.YNc(52,r,1,4,"tr",24),S.qZA()()(),S.YNc(53,s,3,4,"perun-web-apps-alert",25),S.ALo(54,"async")),2&_e&&(S.Q6J("hidden",0===bt.dataSource.allObjectCount),S.xp6(1),S.Q6J("dataLength",bt.dataSource.allObjectCount)("pageSizeOptions",bt.pageSizeOptions)("tableId",bt.tableId),S.xp6(1),S.Q6J("ngIf",S.lcZ(3,10,bt.dataSource.loading$)),S.xp6(2),S.Q6J("dataSource",bt.dataSource),S.xp6(46),S.Q6J("ngForOf",bt.parsedColumns),S.xp6(1),S.Q6J("matHeaderRowDef",bt.displayedColumns),S.xp6(1),S.Q6J("matRowDefColumns",bt.displayedColumns),S.xp6(1),S.Q6J("ngIf",0===bt.dataSource.allObjectCount&&!1===S.lcZ(54,12,bt.dataSource.loading$)))},dependencies:[T.sg,T.O5,V.rH,A.YE,A.nU,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,Q.Ou,te.w,oe.YH,ee.l,B,T.Ov,T.uU,W.X$,q.h,ue.d]}),p})()},45256:(Ye,pe,h)=>{"use strict";h.d(pe,{k:()=>Q});var e=h(95017),c=h(32105),A=h(64080),w=h(65412),g=h(32080),C=h(9244),T=h(86511),E=h(77579),S=h(56451),U=h(39646),_=h(63900),V=h(68675),z=h(94650);let Q=(()=>{class te{constructor(ee,le,de,Te,v,L,B,W,q,ue){this.data=ee,this.dialogRef=le,this.membersManagerService=de,this.voService=Te,this.registrarManager=v,this.groupService=L,this.store=B,this.guiAuthResolver=W,this.requestService=q,this.addMemberService=ue,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,_.w)(ye=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,ye))),(0,V.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),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(ee=>{this.addAuth=!!ee.source.selected.every(le=>le.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 ee=this.selection.selected.pop();ee.member?this.addMember(ee):ee.richUser?this.addUser(ee):ee.candidate&&this.addCandidate(ee)}invite(ee){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 le=this.selection.selected.pop();le.richUser?this.inviteUser(le,ee):this.inviteCandidate(le,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(ee.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addMember(ee){this.groupService.addMembers(this.data.group.id,[ee.member.id]).subscribe(()=>{this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:ee.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}inviteCandidate(ee,le){this.registrarManager.sendInvitationForGroup((0,C.Jc)(ee.candidate),le,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}inviteUser(ee,le){this.registrarManager.sendInvitationGroupToExistingUser(ee.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}}return te.\u0275fac=function(ee){return new(ee||te)(z.Y36(w.WI),z.Y36(w.so),z.Y36(c.uq),z.Y36(c.YF),z.Y36(c.tk),z.Y36(c.ff),z.Y36(g.d6),z.Y36(g.x4),z.Y36(g.F5),z.Y36(T.A))},te.\u0275cmp=z.Xpm({type:te,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(ee,le){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return le.add()})("cancel",function(Te){return le.cancel(Te)})("invite",function(Te){return le.invite(Te)})("search",function(Te){return le.searcher.next(Te)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",le.loading)("languages",le.languages)("manualAddingBlocked",le.data.manualAddingBlocked)("addAuth",le.addAuth)("inviteAuth",le.inviteAuth)("failed",le.failed)("members",z.lcZ(1,9,le.members))("selection",le.selection)("theme","group-theme")}}),te})()},51525:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>Q});var e=h(65412),c=h(32105),A=h(32080),w=h(95017),g=h(9244),C=h(64080),T=h(86511),E=h(77579),S=h(56451),U=h(39646),_=h(63900),V=h(68675),z=h(94650);let Q=(()=>{class te{constructor(ee,le,de,Te,v,L,B,W){this.data=ee,this.dialogRef=le,this.membersManagerService=de,this.voService=Te,this.registrarManager=v,this.store=L,this.requestService=B,this.addMemberService=W,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,_.w)(q=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,q))),(0,V.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),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 ee=this.selection.selected.pop();ee.richUser?this.addUser(ee):this.addCandidate(ee)}invite(ee){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 le=this.selection.selected.pop();le.richUser?this.inviteUser(le,ee):this.inviteCandidate(le,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(ee.candidate)}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:ee.richUser.id}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}inviteCandidate(ee,le){this.registrarManager.sendInvitation((0,g.Jc)(ee.candidate),le,this.data.voId).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}inviteUser(ee,le){this.registrarManager.sendInvitationToExistingUser(ee.richUser.id,this.data.voId).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}}return te.\u0275fac=function(ee){return new(ee||te)(z.Y36(e.WI),z.Y36(e.so),z.Y36(c.uq),z.Y36(c.YF),z.Y36(c.tk),z.Y36(A.d6),z.Y36(A.F5),z.Y36(T.A))},te.\u0275cmp=z.Xpm({type:te,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ee,le){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return le.add()})("cancel",function(Te){return le.cancel(Te)})("invite",function(Te){return le.invite(Te)})("search",function(Te){return le.searcher.next(Te)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",le.loading)("languages",le.languages)("failed",le.failed)("members",z.lcZ(1,6,le.members))("selection",le.selection)("theme","vo-theme")}}),te})()},55857:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>le});var e=h(32105),c=h(10036),A=h(32080),w=h(24006),g=h(36895),C=h(94650),T=h(3238),E=h(59549),S=h(4859),U=h(84385),_=h(96214),V=h(39798),z=h(64901),Q=h(9146),te=h(89383);function oe(de,Te){if(1&de){const v=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(v);const B=C.oxw();return C.KtG(B.showAllDetails=!0)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function ee(de,Te){if(1&de){const v=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(v);const B=C.oxw();return C.KtG(B.showAllDetails=!1)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let le=(()=>{class de{constructor(v,L,B){this.registrarManager=v,this.guiAuthResolver=L,this.entityStorageService=B,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=c.Af,this.tableId=c.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.p4((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.p4((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 v=new Date;return v.setDate(v.getDate()-365),v}applyFilter(v){this.filterValue=v}}return de.id="GroupApplicationsComponent",de.\u0275fac=function(v){return new(v||de)(C.Y36(e.tk),C.Y36(A.x4),C.Y36(A.fb))},de.\u0275cmp=C.Xpm({type:de,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(v,L){2&v&&C.ekj("router-component",L.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(v,L){1&v&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return L.refresh=!L.refresh}),C.qZA(),C.YNc(5,oe,3,3,"button",2),C.YNc(6,ee,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return L.select()})("valueChange",function(W){return L.state=W}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function(W){return L.applyFilter(W)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return L.select()}),C.qZA()(),C.TgZ(32,"div"),C._UZ(33,"app-applications-dynamic-list",13),C.qZA()),2&v&&(C.xp6(1),C.Oqu(C.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!L.showAllDetails),C.xp6(1),C.Q6J("ngIf",L.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,24,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",L.state),C.xp6(2),C.Oqu(C.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",L.endDate)("startDate",L.startDate),C.xp6(2),C.Q6J("tableId",L.showAllDetails?L.detailTableId:L.tableId)("searchString",L.filterValue)("displayedColumns",L.showAllDetails?L.detailedDisplayedColumns:L.displayedColumns)("states",L.currentStates)("dateFrom",L.startDate.value)("dateTo",L.endDate.value)("refreshTable",L.refresh)("group",L.group))},dependencies:[g.O5,T.ey,E.KE,E.hX,S.lW,U.gD,_.t,V.S,z.P,Q.S,te.X$]}),de})()},75234:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>R});var e=h(95017),c=h(32080),A=h(64080),w=h(53455),g=h(32105),C=h(10036),T=h(9244),E=h(74414),S=h(24006),U=h(45256),_=h(94650),V=h(65412),z=h(36895),Q=h(3238),te=h(59549),oe=h(4859),ee=h(84385),le=h(51572),de=h(10266),Te=h(98380),v=h(96214),L=h(64901),B=h(4811),W=h(89383),q=h(20551);let ue=(()=>{class G{transform($,Ee){return!!("members"===$.name||(0,T.bx)($)||"add"===Ee&&(0,T.jh)($.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return G.\u0275fac=function($){return new($||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabled",type:G,pure:!0}),G})(),ye=(()=>{class G{transform($,Ee){return"members"===$.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,T.bx)($)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Ee&&(0,T.jh)($.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return G.\u0275fac=function($){return new($||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:G,pure:!0}),G})();function Me(G,se){1&G&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&G&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function we(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onAddMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",_.xi3(1,2,$.group,"add")),_.xp6(2),_.hij(" ",_.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Ge(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onInviteMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",_.lcZ(1,2,$.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function ce(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",17),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onRemoveMembers())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",$.selection.isEmpty()||_.lcZ(1,2,$.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ze(G,se){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const $=se.$implicit;_.Q6J("value",$),_.xp6(1),_.Oqu(_.lcZ(2,2,$))}}function he(G,se){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const $=se.$implicit;_.Q6J("value",$),_.xp6(1),_.Oqu(_.lcZ(2,2,$))}}function xe(G,se){1&G&&_._UZ(0,"mat-spinner",19)}function j(G,se){if(1&G&&_._UZ(0,"perun-web-apps-members-dynamic-list",20),2&G){const $=_.oxw();_.Q6J("attrNames",$.memberAttrNames)("groupId",$.group.id)("tableId",$.tableId)("displayedColumns",$.displayedColumns)("searchString",$.searchString)("updateTable",$.updateTable)("selectedGroupStatuses",$.selectedGroupStatuses)("selectedStatuses",$.selectedStatuses)("selection",$.selection)("voId",$.group.voId)("isMembersGroup","members"===$.group.name)}}let R=(()=>{class G{constructor($,Ee,Oe,ct,Xe,_t,Je,gt){this.groupService=$,this.dialog=Ee,this.guiAuthResolver=Oe,this.storeService=ct,this.attributesManager=Xe,this.apiRequest=_t,this.notificator=Je,this.entityStorageService=gt,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=C.dI,this.memberAttrNames=[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,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new S.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new S.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[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,A.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($){this.groupService.getRichGroupByIdWithAttributesByNames($,this.groupAttrNames).subscribe(Ee=>{this.group=Ee,this.synchEnabled=(0,T.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($){this.searchString=$,this.selection.clear()}onAddMember(){const $=(0,T.kZ)();$.width="1000px",$.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(U.k,$).afterClosed().subscribe(Oe=>{Oe&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const $=(0,T.kZ)();$.width="450px",$.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,$).afterClosed().subscribe(Oe=>{Oe&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const $=(0,T.kZ)();$.width="650px",$.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(E.R,$)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const $=this.statuses.value;return $?`${$[0]} ${$.length>1?"(+"+($.length-1).toString()+" "+(2===$.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked($){return new Promise(Ee=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName($,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(Oe=>{this.blockManualMemberAdding=null!==Oe.value,Ee()},Oe=>{const ct=Oe.error;"PrivilegeException"!==ct.name&&this.notificator.showError(ct.name),Ee()})})}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 G.id="GroupMembersComponent",G.\u0275fac=function($){return new($||G)(_.Y36(g.ff),_.Y36(V.uw),_.Y36(c.x4),_.Y36(c.d6),_.Y36(g.H8),_.Y36(c.F5),_.Y36(c.V6),_.Y36(c.fb))},G.\u0275cmp=_.Xpm({type:G,selectors:[["app-group-members"]],hostVars:2,hostBindings:function($,Ee){2&$&&_.ekj("router-component",Ee.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","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","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","isMembersGroup"]],template:function($,Ee){1&$&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,Me,3,3,"perun-web-apps-alert",1),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return Ee.refreshTable()}),_.qZA(),_.TgZ(6,"span",4),_.ALo(7,"groupMembersActionButtonDisabled"),_.ALo(8,"translate"),_.ALo(9,"groupMembersActionButtonDisabledTooltip"),_.YNc(10,we,4,7,"button",5),_.qZA(),_.TgZ(11,"span",4),_.ALo(12,"groupMembersActionButtonDisabled"),_.ALo(13,"translate"),_.ALo(14,"groupMembersActionButtonDisabledTooltip"),_.YNc(15,Ge,4,6,"button",6),_.qZA(),_.TgZ(16,"span",4),_.ALo(17,"groupMembersActionButtonDisabled"),_.ALo(18,"translate"),_.ALo(19,"groupMembersActionButtonDisabledTooltip"),_.YNc(20,ce,4,6,"button",7),_.qZA(),_.TgZ(21,"mat-form-field",8)(22,"mat-label"),_._uU(23),_.ALo(24,"translate"),_.qZA(),_.TgZ(25,"mat-select",9),_.NdJ("closed",function(){return Ee.changeVoStatuses()}),_.TgZ(26,"mat-select-trigger"),_._uU(27),_.ALo(28,"memberStatus"),_.qZA(),_.YNc(29,Ze,3,4,"mat-option",10),_.qZA()(),_.TgZ(30,"mat-form-field",8)(31,"mat-label"),_._uU(32),_.ALo(33,"translate"),_.qZA(),_.TgZ(34,"mat-select",9),_.NdJ("closed",function(){return Ee.changeGroupStatuses()}),_.TgZ(35,"mat-select-trigger"),_._uU(36),_.ALo(37,"memberStatus"),_.qZA(),_.YNc(38,he,3,4,"mat-option",10),_.qZA()(),_.TgZ(39,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(ct){return Ee.onSearchByString(ct)}),_.qZA()(),_.YNc(40,xe,1,0,"mat-spinner",12),_.YNc(41,j,1,11,"perun-web-apps-members-dynamic-list",13)),2&$&&(_.xp6(1),_.Oqu(_.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Ee.synchEnabled),_.xp6(3),_.s9C("matTooltip",_.lcZ(8,30,_.xi3(9,32,Ee.group,"add"))),_.Q6J("matTooltipDisabled",!_.xi3(7,27,Ee.group,"add"))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.addAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(13,37,_.lcZ(14,39,Ee.group))),_.Q6J("matTooltipDisabled",!_.lcZ(12,35,Ee.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.inviteAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(18,43,_.lcZ(19,45,Ee.group))),_.Q6J("matTooltipDisabled",!_.lcZ(17,41,Ee.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.removeAuth),_.xp6(3),_.Oqu(_.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",Ee.statuses),_.xp6(2),_.hij(" ",_.lcZ(28,49,Ee.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Ee.statusList),_.xp6(3),_.Oqu(_.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),_.xp6(2),_.Q6J("formControl",Ee.groupStatuses),_.xp6(2),_.hij(" ",_.lcZ(37,53,Ee.displaySelectedGroupStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Ee.groupStatusList),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",Ee.loading),_.xp6(1),_.Q6J("ngIf",!Ee.loading))},dependencies:[z.sg,z.O5,Q.ey,te.KE,te.hX,S.JJ,S.oH,oe.lW,ee.gD,ee.$L,le.Ou,de.gM,Te.w,v.t,L.P,B.m,W.X$,q.l,ue,ye],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}"]}),G})()},37240:(Ye,pe,h)=>{"use strict";h.d(pe,{q:()=>Y});var e=h(95017),c=h(32105),A=h(10036),w=h(65412),g=h(32080),T=(h(33604),h(94650)),E=h(89383),S=h(36895),U=h(24006),_=h(4859),V=h(51572),z=h(10266),Q=h(90455),te=h(86257),oe=h(62109),ee=h(64901);const le=["list"],de=["stepper"];function Te(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",4)}function v(Ce,ae){1&Ce&&(T._uU(0),T.ALo(1,"translate")),2&Ce&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function L(Ce,ae){1&Ce&&(T._uU(0),T.ALo(1,"translate")),2&Ce&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const B=function(){return["select","id","name","facility","tags","description"]};function W(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),T.YNc(4,v,2,3,"ng-template",9),T.TgZ(5,"perun-web-apps-debounce-filter",10),T.NdJ("filter",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.applyFilter(Fe))}),T.ALo(6,"translate"),T.qZA(),T._UZ(7,"perun-web-apps-resources-list",11,12),T.qZA(),T.TgZ(9,"mat-step"),T.YNc(10,L,2,3,"ng-template",9),T.TgZ(11,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeSubgroupsMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.autoAssignSubgroups=Fe)}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div",14),T._UZ(15,"i",15),T.qZA(),T.TgZ(16,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeInactiveMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.asActive=Fe)}),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",14),T._uU(20),T.qZA(),T.TgZ(21,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeAsyncMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.async=Fe)}),T._uU(22),T.ALo(23,"translate"),T.qZA(),T.TgZ(24,"div",14),T._uU(25),T.qZA()()()()}if(2&Ce){const re=T.MAs(8),Se=T.oxw();T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("completed",0!==Se.selection.selected.length&&void 0!==re&&re.addAuth),T.xp6(2),T.s9C("placeholder",T.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),T.xp6(2),T.Q6J("filterValue",Se.filterValue)("groupToResource",Se.data.group)("disableRouting",!0)("resources",Se.resources)("selection",Se.selection)("displayedColumns",T.DdM(27,B))("tableId",Se.tableId),T.xp6(4),T.Q6J("ngModel",Se.autoAssignSubgroups),T.xp6(1),T.hij(" ",T.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),T.xp6(3),T.Q6J("innerHTML",Se.autoAssignHint,T.oJD),T.xp6(1),T.Q6J("ngModel",Se.asActive),T.xp6(1),T.hij(" ",T.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),T.xp6(3),T.hij(" ",Se.asActiveHint," "),T.xp6(1),T.Q6J("ngModel",Se.async),T.xp6(1),T.hij(" ",T.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),T.xp6(3),T.hij(" ",Se.asyncHint," ")}}function q(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ue(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ce){const re=T.oxw(2);T.ekj("ml-2",void 0!==re.stepper&&0!==re.stepper.selectedIndex)("ml-auto",!(void 0!==re.stepper&&0!==re.stepper.selectedIndex)),T.Q6J("disabled",0===re.selection.selected.length||void 0!==re.list&&!re.list.addAuth),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function ye(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ce){const re=T.oxw(2);T.Q6J("disabled",0===re.selection.selected.length||re.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Me(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",16)(1,"button",17),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,q,3,3,"button",18),T.YNc(5,ue,3,8,"button",19),T.TgZ(6,"span",20),T.ALo(7,"translate"),T.YNc(8,ye,3,4,"button",21),T.qZA()()}if(2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==re.stepper&&0!==re.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==re.stepper&&re.stepper.selectedIndex!==re.stepper._steps.length-1),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),T.Q6J("matTooltipDisabled",void 0===re.list||re.list.addAuth),T.xp6(2),T.Q6J("ngIf",void 0!==re.stepper&&re.stepper.selectedIndex===re.stepper._steps.length-1)}}let we=(()=>{class Ce{constructor(re,Se,Fe,be,Ue,P,H){this.dialogRef=re,this.data=Se,this.notificator=Fe,this.translate=be,this.resourcesManager=Ue,this.guiAuthResolver=P,this.cd=H,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.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(re=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(Se=>{for(const Fe of re)-1===Se.findIndex(be=>be.id===Fe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Fe])&&this.resources.push(Fe);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(re){this.filterValue=re}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const re=this.selection.selected.map(Se=>Se.id);this.resourcesManager.assignGroupToResources(this.data.group.id,re,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se),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 Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(E.sK),T.Y36(c.xk),T.Y36(g.x4),T.Y36(T.sBO))},Ce.\u0275cmp=T.Xpm({type:Ce,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(re,Se){if(1&re&&(T.Gf(le,5),T.Gf(de,5)),2&re){let Fe;T.iGM(Fe=T.CRH())&&(Se.list=Fe.first),T.iGM(Fe=T.CRH())&&(Se.stepper=Fe.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(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Te,1,0,"mat-spinner",1),T.YNc(5,W,26,28,"div",2),T.YNc(6,Me,9,10,"div",3),T.qZA()),2&re&&(T.Tol(Se.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading&&void 0!==Se.stepper))},dependencies:[S.O5,U.JJ,U.On,_.lW,w.uh,w.xY,w.H8,V.Ou,z.gM,Q.Rr,te.C0,te.VY,te.Vq,oe.C,ee.P,E.X$]}),Ce})();var Ge=h(30671);function ce(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",4)}function Ze(Ce,ae){1&Ce&&T._UZ(0,"th",13)}function he(Ce,ae){if(1&Ce&&(T.TgZ(0,"td",14),T._uU(1),T.qZA()),2&Ce){const re=ae.$implicit;T.xp6(1),T.Oqu(re.name)}}function xe(Ce,ae){1&Ce&&T._UZ(0,"tr",15)}function j(Ce,ae){1&Ce&&T._UZ(0,"tr",16)}function R(Ce,ae){if(1&Ce&&(T.TgZ(0,"div",5)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",7),T.ynx(8,8),T.YNc(9,Ze,1,0,"th",9),T.YNc(10,he,2,1,"td",10),T.BQk(),T.YNc(11,xe,1,0,"tr",11),T.YNc(12,j,1,0,"tr",12),T.qZA()()),2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),T.xp6(2),T.Q6J("dataSource",re.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",re.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",re.displayedColumns)}}function G(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",17)(1,"button",18),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",19),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("disabled",re.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let se=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.dialogRef=re,this.data=Se,this.notificator=Fe,this.translate=be,this.resourcesManager=Ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ge.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const re=this.data.resources.map(Se=>Se.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,re).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(Se=>{this.loading=!1,this.notificator.showSuccess(Se),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(E.sK),T.Y36(c.xk))},Ce.\u0275cmp=T.Xpm({type:Ce,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(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ce,1,0,"mat-spinner",1),T.YNc(5,R,13,9,"div",2),T.YNc(6,G,7,7,"div",3),T.qZA()),2&re&&(T.Tol(Se.data.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading))},dependencies:[S.O5,_.lW,Ge.BZ,Ge.fO,Ge.as,Ge.w1,Ge.Dz,Ge.nj,Ge.ge,Ge.ev,Ge.XQ,Ge.Gk,w.uh,w.xY,w.H8,V.Ou,E.X$]}),Ce})();var $=h(9244),Ee=h(96214),Oe=h(7434);const ct=["list"];function Xe(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.addResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function _t(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",9)}const Je=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function gt(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"perun-web-apps-resources-list",10,11),T.NdJ("refreshTable",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.refreshTable())}),T.qZA()}if(2&Ce){const re=T.oxw();T.Q6J("disableRouting",!re.routingAuth)("filterValue",re.filterValue)("resources",re.resources)("routingVo",!0)("displayedColumns",T.DdM(10,Je))("selection",re.selected)("groupId",re.group.id)("groupToResource",re.group)("resourcesToDisableCheckbox",re.resourcesToDisable)("tableId",re.tableId)}}let Y=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.resourcesManager=re,this.groupService=Se,this.dialog=Fe,this.guiAuthResolver=be,this.entityStorageService=Ue,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.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(re=>{this.resources=re.map(Se=>{const Fe=Se.enrichedResource.resource;return Fe.facility=Se.facility,Fe.status=Se.status,Fe.resourceTags=Se.resourceTags,Fe.failureCause=Se.failureCause,Fe.sourceGroupId=Se.sourceGroupId,Fe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(Se=>null!==Se.sourceGroupId).map(Se=>Se.id)),this.setAuthorization(),this.loading=!1})}applyFilter(re){this.filterValue=re}addResource(){const re=(0,$.kZ)();re.width="1000px",re.data={theme:"group-theme",group:this.group},this.dialog.open(we,re).afterClosed().subscribe(Fe=>{Fe&&this.refreshTable()})}removeResource(){const re=(0,$.kZ)();re.width="450px",re.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(se,re).afterClosed().subscribe(Fe=>{Fe&&(this.selected.clear(),this.refreshTable())})}}return Ce.id="GroupResourcesComponent",Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(c.xk),T.Y36(c.ff),T.Y36(w.uw),T.Y36(g.x4),T.Y36(g.fb))},Ce.\u0275cmp=T.Xpm({type:Ce,selectors:[["app-group-resources"]],viewQuery:function(re,Se){if(1&re&&T.Gf(ct,5),2&re){let Fe;T.iGM(Fe=T.CRH())&&(Se.list=Fe.first)}},hostVars:2,hostBindings:function(re,Se){2&re&&T.ekj("router-component",Se.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(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return Se.refreshTable()}),T.qZA(),T.YNc(5,Xe,3,3,"button",2),T.TgZ(6,"span",3),T.ALo(7,"translate"),T.TgZ(8,"button",4),T.NdJ("click",function(){return Se.removeResource()}),T._uU(9),T.ALo(10,"translate"),T.qZA()(),T.TgZ(11,"perun-web-apps-immediate-filter",5),T.NdJ("filter",function(be){return Se.applyFilter(be)}),T.qZA(),T.YNc(12,_t,1,0,"mat-spinner",6),T.YNc(13,gt,2,11,"perun-web-apps-resources-list",7),T.qZA()),2&re&&(T.xp6(2),T.Oqu(T.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),T.xp6(3),T.Q6J("ngIf",Se.addAuth),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",0===Se.selected.selected.length||void 0!==Se.list&&Se.list.removeAuth),T.xp6(2),T.Q6J("disabled",0===Se.selected.selected.length||void 0!==Se.list&&!Se.list.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",Se.resources&&!Se.loading))},dependencies:[S.O5,_.lW,V.Ou,z.gM,Ee.t,Oe.L,oe.C,E.X$]}),Ce})()},61639:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>g});var e=h(32105),c=h(32080),A=h(94650),w=h(34775);let g=(()=>{class C{constructor(E,S){this.authzResolverService=E,this.entityStorageService=S,this.roleNames=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"]}ngOnInit(){this.outerLoading=!0,this.groupId=this.entityStorageService.getEntity().id,this.authzResolverService.getGroupRoles(this.groupId).subscribe(E=>{this.roleNames=Object.keys(E).map(S=>S.toUpperCase()),this.prepareRoles(E),this.outerLoading=!1})}prepareRoles(E){this.roleNames.forEach(S=>{const U=new Map;Object.keys(E[S]).forEach(V=>{U.set(V,E[S][V])}),this.roles.set(S,U)}),this.roleNames=this.roleNames.filter(S=>!this.roleFilter.includes(S))}}return C.id="GroupRolesComponent",C.\u0275fac=function(E){return new(E||C)(A.Y36(e.Ct),A.Y36(c.fb))},C.\u0275cmp=A.Xpm({type:C,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(E,S){2&E&&A.ekj("router-component",S.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","entityType","showDescription"]],template:function(E,S){1&E&&A._UZ(0,"app-perun-web-apps-roles-page",0),2&E&&A.Q6J("outerLoading",S.outerLoading)("roles",S.roles)("roleNames",S.roleNames)("entityId",S.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[w._]}),C})()},14336:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>se});var e=h(32080),c=h(51076),A=h(83491),w=h(95502),g=h(1186),C=h(32105),T=h(9244),E=h(94650),S=h(65412),U=h(89383),_=h(94364),V=h(36895),z=h(24006),Q=h(97392),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(44850),Te=h(98380),v=h(96214),L=h(157);const B=["autoRegToggle"];function W($,Ee){1&$&&E._UZ(0,"mat-spinner",3)}function q($,Ee){if(1&$&&(E.TgZ(0,"span"),E._uU(1," , "),E.TgZ(2,"mat-icon",22),E._uU(3,"nat"),E.qZA(),E._uU(4),E.ALo(5,"translate"),E.ALo(6,"translate"),E.qZA()),2&$){const Oe=E.oxw(3);E.xp6(4),E.hij(" ",Oe.applicationForm.automaticApprovalEmbedded?E.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ue($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div")(1,"mat-slide-toggle",23,24),E.NdJ("change",function(){E.CHM(Oe);const Xe=E.oxw(3);return E.KtG(Xe.updateAutoRegistration())}),E._uU(3),E.ALo(4,"translate"),E.qZA()()}if(2&$){const Oe=E.oxw(3);E.xp6(1),E.Q6J("disabled",!Oe.changeAutoRegistration)("ngModel",Oe.autoRegistrationEnabled),E.xp6(2),E.hij(" ",E.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function ye($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",25),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(3);return E.KtG(Xe.settings())}),E.TgZ(1,"i",12),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&$&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Me($,Ee){if(1&$&&(E.TgZ(0,"div",15)(1,"div",16)(2,"div",17),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",17),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",18),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",19),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.YNc(20,q,7,5,"span",2),E.qZA(),E.YNc(21,ue,5,5,"div",2),E.qZA(),E.TgZ(22,"div",20),E.YNc(23,ye,5,3,"button",21),E.qZA()()),2&$){const Oe=E.oxw(2);E.xp6(1),E.Q6J("ngClass",Oe.autoRegistrationEnabled?"w-75":"w-50"),E.xp6(2),E.AsE(" ",E.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Oe.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",Oe.applicationForm.automaticApproval?E.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",Oe.applicationForm.automaticApprovalExtension?E.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(3),E.Q6J("ngIf",Oe.autoRegistrationEnabled),E.xp6(1),E.Q6J("ngIf",Oe.voHasEmbeddedGroupApplication),E.xp6(2),E.Q6J("ngIf",Oe.editAuth)}}function we($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",26),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ge($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",27),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.save())}),E.TgZ(1,"i",12),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&$){const Oe=E.oxw(2);E.Q6J("disabled",!Oe.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ce($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",28),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.copy())}),E.TgZ(1,"i",12),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&$&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ze($,Ee){1&$&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const he=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},xe=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function j($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div"),E.YNc(1,Me,24,21,"div",4),E._UZ(2,"mat-divider",5),E.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),E.NdJ("refresh",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.updateFormItems())}),E.qZA(),E.YNc(5,we,3,3,"button",8),E.YNc(6,Ge,5,4,"button",9),E.YNc(7,ce,5,3,"button",10),E.TgZ(8,"button",11),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.preview())}),E.TgZ(9,"i",12),E._uU(10,"search"),E.qZA(),E._uU(11),E.ALo(12,"translate"),E.qZA()(),E.YNc(13,Ze,3,3,"perun-web-apps-alert",13),E.TgZ(14,"app-application-form-list",14),E.NdJ("applicationFormItemsChange",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.changeItems())}),E.qZA()()}if(2&$){const Oe=E.oxw();E.xp6(1),E.Q6J("ngIf",!Oe.loading),E.xp6(4),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("ngIf",Oe.editAuth),E.xp6(4),E.hij(" ",E.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("applicationForm",Oe.applicationForm)("applicationFormItems",Oe.applicationFormItems)("loading",Oe.loading)("displayedColumns",Oe.editAuth?E.DdM(14,he):E.DdM(15,xe))("refreshApplicationForm",Oe.refreshApplicationForm)("theme","group-theme")}}function R($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",32),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.createEmptyApplicationForm())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function G($,Ee){if(1&$&&(E.TgZ(0,"div")(1,"perun-web-apps-alert",30),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,R,3,3,"button",31),E.qZA()),2&$){const Oe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),E.xp6(2),E.Q6J("ngIf",Oe.createEmptyForm)}}let se=(()=>{class ${constructor(Oe,ct,Xe,_t,Je,gt,Y,Ce,ae){this.registrarManager=Oe,this.dialog=ct,this.notificator=Xe,this.translate=_t,this.apiRequest=Je,this.router=gt,this.guiAuthResolver=Y,this.attributesManager=Ce,this.entityStorageService=ae,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Oe=>{this.applicationForm=Oe,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ct=>{this.applicationFormItems=ct,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Xe=>{this.voHasEmbeddedGroupApplication=null!==Xe.value,this.autoRegistrationEnabled=!!Xe.value,this.loading=!1})},()=>this.loading=!1)},Oe=>{const ct=Oe.error;"FormNotExistsException"===ct.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(ct)})}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 Oe=(0,T.kZ)();Oe.width="500px",Oe.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(c.J,Oe).afterClosed().subscribe(Xe=>{Xe&&(this.applicationFormItems=Object.assign([],Xe[0]),Oe=(0,T.kZ)(),Oe.width="600px",Oe.height="600px",Oe.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Xe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,Oe),this.itemsChanged=!0)})}copy(){const Oe=(0,T.kZ)();Oe.width="500px",Oe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Oe).afterClosed().subscribe(Xe=>{Xe&&this.updateFormItems()})}settings(){const Oe=(0,T.kZ)();Oe.width="400px",Oe.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Oe).afterClosed().subscribe(Xe=>{Xe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(_t=>{this.notificator.showSuccess(_t)}),this.applicationForm=Xe)})}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(Oe=>{this.applicationFormItems=Oe,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 Oe=0;for(const ct of this.applicationFormItems)ct.ordnum=Oe,ct.forDelete||Oe++;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(ct=>{this.notificator.showSuccess(ct)}),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(Oe=>{this.notificator.showSuccess(Oe)}),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(Oe=>{this.notificator.showSuccess(Oe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return $.id="GroupSettingsApplicationFormComponent",$.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(C.tk),E.Y36(S.uw),E.Y36(e.V6),E.Y36(U.sK),E.Y36(e.F5),E.Y36(_.F0),E.Y36(e.x4),E.Y36(C.H8),E.Y36(e.fb))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-group-settings-application-form"]],viewQuery:function(Oe,ct){if(1&Oe&&E.Gf(B,5),2&Oe){let Xe;E.iGM(Xe=E.CRH())&&(ct.autoRegToggle=Xe.first)}},hostVars:2,hostBindings:function(Oe,ct){2&Oe&&E.ekj("router-component",ct.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(Oe,ct){1&Oe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,W,1,0,"mat-spinner",1),E.YNc(4,j,15,16,"div",2),E.YNc(5,G,5,4,"div",2)),2&Oe&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.noApplicationForm),E.xp6(1),E.Q6J("ngIf",!ct.loading&&ct.noApplicationForm))},dependencies:[V.mk,V.O5,z.JJ,z.On,Q.Hw,te.lW,oe.Ou,ee.gM,le.Rr,de.d,Te.w,v.t,L.b,U.X$]}),$})()},15592:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>j});var e=h(81889),c=h(95017),A=h(41656),w=h(9244),g=h(32105),C=h(64080),T=h(10036),E=h(87842),S=h(32080),_=(h(33604),h(94650)),V=h(65412),z=h(36895),Q=h(24006),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(24179),Te=h(96214),v=h(58956),L=h(64901),B=h(89383);const W=["tree"],q=["list"],ue=["toggle"];function ye(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",10),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Me(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.deleteGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&R){const se=_.oxw();_.Q6J("disabled",0===se.selected.selected.length||void 0!==se.tree&&!se.tree.removeAuth||void 0!==se.list&&!se.list.removeAuth),_.xp6(1),_.hij(" ",_.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function we(R,G){1&R&&_._UZ(0,"mat-spinner",12)}function Ge(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.refreshTable())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("disableRouting",!se.routeAuth)("expandAll",se.filtering)("groups",se.groups)("hideCheckbox",!se.deleteAuth)("filterValue",se.filterValue)("selection",se.selected)}}const ce=function(){return["select","id","name","description","menu"]},Ze=function(){return["id","name","description","menu"]};function he(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.refreshTable())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!se.routeAuth)("displayedColumns",se.deleteAuth?_.DdM(8,ce):_.DdM(9,Ze))("groups",se.groups)("selection",se.selected)("filter",se.filterValue)("tableId",se.tableId)}}function xe(R,G){if(1&R&&(_.TgZ(0,"div",13),_.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,he,2,10,"perun-web-apps-groups-list",15),_.qZA()),2&R){const se=_.oxw();_.xp6(1),_.Q6J("ngIf",!se.showGroupList),_.xp6(1),_.Q6J("ngIf",se.showGroupList)}}let j=(()=>{class R{constructor(se,$,Ee,Oe){this.dialog=se,this.groupService=$,this.guiAuthResolver=Ee,this.entityStorageService=Oe,this.groups=[],this.selected=new c.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=T.bf,this.filterValue=""}onCreateGroup(){const se=(0,w.kZ)();se.width="450px",se.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,se).afterClosed().subscribe(Ee=>{Ee&&(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 se=(0,w.kZ)();se.width="450px",se.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,se).afterClosed().subscribe(Ee=>{Ee&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[C.r.GROUP_DEF_MAIL_FOOTER,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(se=>{this.groups=se,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(se){this.filterValue=se,this.filtering=""!==se}onMoveGroup(se){const $=(0,w.kZ)();$.width="550px",$.data={group:se,theme:"group-theme"},this.dialog.open(E.c,$).afterClosed().subscribe(Oe=>{Oe&&this.refreshTable()})}}return R.id="GroupSubgroupsComponent",R.\u0275fac=function(se){return new(se||R)(_.Y36(V.uw),_.Y36(g.ff),_.Y36(S.x4),_.Y36(S.fb))},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-group-subgroups"]],viewQuery:function(se,$){if(1&se&&(_.Gf(W,5),_.Gf(q,5),_.Gf(ue,7)),2&se){let Ee;_.iGM(Ee=_.CRH())&&($.tree=Ee.first),_.iGM(Ee=_.CRH())&&($.list=Ee.first),_.iGM(Ee=_.CRH())&&($.toggle=Ee.first)}},hostVars:2,hostBindings:function(se,$){2&se&&_.ekj("router-component",$.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(se,$){if(1&se&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return $.refreshTable()}),_.qZA(),_.YNc(5,ye,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.YNc(8,Me,3,4,"button",4),_.qZA(),_.TgZ(9,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(Oe){return $.applyFilter(Oe)}),_.qZA(),_.TgZ(10,"mat-slide-toggle",6,7),_.NdJ("change",function(){return $.selected.clear()})("ngModelChange",function(Oe){return $.showGroupList=Oe}),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"label"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.YNc(17,we,1,0,"mat-spinner",8),_.YNc(18,xe,3,2,"div",9),_.qZA()),2&se){const Ee=_.MAs(11);_.xp6(2),_.Oqu(_.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",$.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===$.tree&&void 0===$.list||void 0!==$.tree&&$.tree.removeAuth||void 0!==$.list&&$.list.removeAuth),_.xp6(2),_.Q6J("ngIf",$.deleteAuth),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",$.showGroupList),_.xp6(2),_.Oqu(_.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Ee.inputId),_.xp6(1),_.Oqu(_.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",$.loading),_.xp6(1),_.Q6J("ngIf",!$.loading)}},dependencies:[z.O5,Q.JJ,Q.On,te.lW,oe.Ou,ee.gM,le.Rr,de.W,Te.t,v.I,L.P,B.X$]}),R})()},85243:(Ye,pe,h)=>{"use strict";h.d(pe,{j:()=>se});var e=h(32105),c=h(10036),A=h(95017),w=h(9244),g=h(65412),C=h(32080),T=h(64080),E=h(94650),S=h(89383),U=h(36895),_=h(4859),V=h(51572),z=h(24179),Q=h(7434);function te($,Ee){1&$&&E._UZ(0,"mat-spinner",6)}function oe($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"perun-web-apps-immediate-filter",7),E.NdJ("filter",function(Xe){E.CHM(Oe);const _t=E.oxw();return E.KtG(_t.applyFilter(Xe))}),E.qZA()}2&$&&E.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const ee=function(){return["select","id","name","description"]};function le($,Ee){if(1&$&&E._UZ(0,"perun-web-apps-groups-list",8),2&$){const Oe=E.oxw();E.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",E.DdM(8,ee))("filter",Oe.filterValue)("groupsToDisableCheckbox",Oe.membersGroups)("disableRouting",!0)("groups",Oe.groups)("selection",Oe.selection)}}function de($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div",9)(1,"button",10),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",11),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.onAdd())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2&$){const Oe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===Oe.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Te=(()=>{class ${constructor(Oe,ct,Xe,_t,Je,gt,Y){this.dialogRef=Oe,this.data=ct,this.groupManager=Xe,this.memberManager=_t,this.notificator=Je,this.translate=gt,this.authResolver=Y,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[T.r.GROUP_SYNC_ENABLED,T.r.GROUP_LAST_SYNC_STATE,T.r.GROUP_LAST_SYNC_TIMESTAMP,T.r.GROUP_STRUCTURE_SYNC_ENABLED,T.r.GROUP_LAST_STRUCTURE_SYNC_STATE,T.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Oe=>{this.member=Oe,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ct=>{this.groups=ct.filter(Xe=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Oe=this.selection.selected.map(ct=>ct.id);this.loading=!0,this.groupManager.addMember(Oe,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(Oe){this.filterValue=Oe}}return $.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(e.uq),E.Y36(C.V6),E.Y36(S.sK),E.Y36(C.x4))},$.\u0275cmp=E.Xpm({type:$,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(Oe,ct){1&Oe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,te,1,0,"mat-spinner",1),E.TgZ(5,"div",2),E.YNc(6,oe,1,1,"perun-web-apps-immediate-filter",3),E.YNc(7,le,1,9,"perun-web-apps-groups-list",4),E.qZA(),E.YNc(8,de,7,7,"div",5),E.qZA()),2&Oe&&(E.Tol(ct.theme),E.xp6(2),E.Oqu(E.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(2),E.Q6J("ngIf",!ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading))},dependencies:[U.O5,_.lW,g.uh,g.xY,g.H8,V.Ou,z.W,Q.L,S.X$]}),$})();var v=h(30671);function L($,Ee){1&$&&E._UZ(0,"mat-spinner",6)}function B($,Ee){1&$&&E._UZ(0,"th",15)}function W($,Ee){if(1&$&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2&$){const Oe=Ee.$implicit;E.xp6(1),E.Oqu(Oe.name)}}function q($,Ee){1&$&&E._UZ(0,"tr",17)}function ue($,Ee){1&$&&E._UZ(0,"tr",18)}function ye($,Ee){if(1&$&&(E.TgZ(0,"div",7)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",8),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",9),E.ynx(8,10),E.YNc(9,B,1,0,"th",11),E.YNc(10,W,2,1,"td",12),E.BQk(),E.YNc(11,q,1,0,"tr",13),E.YNc(12,ue,1,0,"tr",14),E.qZA()()),2&$){const Oe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),E.xp6(2),E.Q6J("dataSource",Oe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Oe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Oe.displayedColumns)}}let Me=(()=>{class ${constructor(Oe,ct,Xe,_t,Je){this.dialogRef=Oe,this.data=ct,this.groupManager=Xe,this.notificator=_t,this.translate=Je,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new v.by(this.data.groups)}onRemove(){this.loading=!0;const Oe=this.dataSource.data.map(ct=>ct.id);this.groupManager.removeMember(Oe,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 $.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(C.V6),E.Y36(S.sK))},$.\u0275cmp=E.Xpm({type:$,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(Oe,ct){1&Oe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,L,1,0,"mat-spinner",1),E.YNc(5,ye,13,9,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return ct.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return ct.onRemove()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Oe&&(E.Tol(ct.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",ct.loading),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[U.O5,_.lW,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,g.uh,g.xY,g.H8,V.Ou,S.X$]}),$})();h(33604);var Ge=h(94364),ce=h(10266),Ze=h(96214);const he=["list"];function xe($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.addGroup())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function j($,Ee){1&$&&E._UZ(0,"mat-spinner",9)}const R=function(){return["select","id","name","description","expiration","groupStatus"]};function G($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"perun-web-apps-groups-list",10,11),E.NdJ("refreshTable",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.refreshTable())}),E.qZA()}if(2&$){const Oe=E.oxw();E.Q6J("displayedColumns",E.DdM(9,R))("authType","member-groups")("filter",Oe.filterValue)("memberId",Oe.memberId)("disableRouting",!Oe.routeAuth)("groups",Oe.groups)("memberGroupStatus",Oe.member.groupStatus)("selection",Oe.selection)("tableId",Oe.tableId)}}let se=(()=>{class ${constructor(Oe,ct,Xe,_t,Je){this.groupsService=Oe,this.route=ct,this.dialog=Xe,this.authResolver=_t,this.memberService=Je,this.filterValue="",this.tableId=c.W1,this.selection=new A.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Oe=>{this.memberId=Number(Oe.memberId),this.memberService.getMemberById(this.memberId).subscribe(ct=>{this.member=ct,this.groupsService.getAllGroups(this.member.voId).subscribe(Xe=>{this.allGroups=Xe,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[T.r.MEMBER_DEF_GROUP_EXPIRATION,T.r.MEMBER_GROUP_STATUS]).subscribe(Oe=>{this.selection.clear(),this.groups=Oe,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Oe={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ct,Xe)=>ct||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Oe,this.groups[0]]))}addGroup(){const Oe=(0,w.kZ)();Oe.width="850px",Oe.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Xe=>Xe.id)),theme:"member-theme"},this.dialog.open(Te,Oe).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}removeGroup(){const Oe=(0,w.kZ)();Oe.width="650px",Oe.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Me,Oe).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}applyFilter(Oe){this.filterValue=Oe}}return $.id="MemberGroupsComponent",$.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(e.ff),E.Y36(Ge.gz),E.Y36(g.uw),E.Y36(C.x4),E.Y36(e.uq))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-member-groups"]],viewQuery:function(Oe,ct){if(1&Oe&&E.Gf(he,5),2&Oe){let Xe;E.iGM(Xe=E.CRH())&&(ct.list=Xe.first)}},hostVars:2,hostBindings:function(Oe,ct){2&Oe&&E.ekj("router-component",ct.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(Oe,ct){1&Oe&&(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 ct.refreshTable()}),E.qZA(),E.YNc(4,xe,3,3,"button",2),E.TgZ(5,"span",3),E.ALo(6,"translate"),E.TgZ(7,"button",4),E.NdJ("click",function(){return ct.removeGroup()}),E._uU(8),E.ALo(9,"translate"),E.qZA()(),E.TgZ(10,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(_t){return ct.applyFilter(_t)}),E.qZA(),E.YNc(11,j,1,0,"mat-spinner",6),E.YNc(12,G,2,10,"perun-web-apps-groups-list",7)),2&Oe&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),E.xp6(3),E.Q6J("ngIf",ct.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",void 0===ct.list||void 0!==ct.list&&ct.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===ct.selection.selected.length||void 0!==ct.list&&!ct.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading))},dependencies:[U.O5,_.lW,V.Ou,ce.gM,z.W,Ze.t,Q.L,S.X$]}),$})()},94856:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>de});var e=h(32105),c=h(10036),A=h(24006),w=h(36895),g=h(32080),C=h(94650),T=h(3238),E=h(59549),S=h(4859),U=h(56709),_=h(84385),V=h(96214),z=h(39798),Q=h(64901),te=h(9146),oe=h(89383);function ee(Te,v){if(1&Te){const L=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(L);const W=C.oxw();return C.KtG(W.showDetails(!0))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function le(Te,v){if(1&Te){const L=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(L);const W=C.oxw();return C.KtG(W.showDetails(!1))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let de=(()=>{class Te{constructor(L,B){this.registrarManager=L,this.entityStorageService=B,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=c.Jf,this.tableId=c.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new A.p4((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.p4((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 L=new Date;return L.setDate(L.getDate()-365),L}showGroupApplications(L){this.showGroupApps=L.checked,this.currentColumns=this.refreshColumns()}showDetails(L){this.showAllDetails=L,this.currentColumns=this.refreshColumns()}applyFilter(L){this.filterValue=L}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(L=>"groupName"!==L&&"groupId"!==L):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(L=>"groupName"!==L)}}return Te.id="VoApplicationsComponent",Te.\u0275fac=function(L){return new(L||Te)(C.Y36(e.tk),C.Y36(g.fb))},Te.\u0275cmp=C.Xpm({type:Te,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(L,B){2&L&&C.ekj("router-component",B.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(L,B){1&L&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return B.refresh=!B.refresh}),C.qZA(),C.YNc(5,ee,3,3,"button",2),C.YNc(6,le,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return B.select()})("valueChange",function(q){return B.state=q}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function(q){return B.applyFilter(q)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return B.select()}),C.qZA(),C.TgZ(32,"div")(33,"mat-checkbox",13),C.NdJ("change",function(q){return B.showGroupApplications(q)}),C._uU(34),C.ALo(35,"translate"),C.qZA()()(),C.TgZ(36,"div"),C._UZ(37,"app-applications-dynamic-list",14),C.qZA()),2&L&&(C.xp6(1),C.Oqu(C.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!B.showAllDetails),C.xp6(1),C.Q6J("ngIf",B.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,27,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",B.state),C.xp6(2),C.Oqu(C.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",B.endDate)("startDate",B.startDate),C.xp6(2),C.Q6J("checked",B.showGroupApps),C.xp6(1),C.hij(" ",C.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),C.xp6(3),C.Q6J("tableId",B.showAllDetails?B.detailTableId:B.tableId)("searchString",B.filterValue)("displayedColumns",B.currentColumns)("states",B.currentStates)("dateFrom",B.startDate.value)("dateTo",B.endDate.value)("includeGroupApps",B.showGroupApps)("refreshTable",B.refresh)("vo",B.vo))},dependencies:[w.O5,T.ey,E.KE,E.hX,S.lW,U.oG,_.gD,V.t,z.S,Q.P,te.S,oe.X$]}),Te})()},4732:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>j});var e=h(81889),c=h(41656),A=h(95017),w=h(87842),g=h(9244),C=h(32105),T=h(10036),E=h(64080),S=h(32080),_=(h(33604),h(94650)),V=h(65412),z=h(36895),Q=h(24006),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(98380),Te=h(24179),v=h(96214),L=h(58956),B=h(64901),W=h(89383);const q=["toggle"],ue=["tree"],ye=["list"];function Me(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function we(R,G){1&R&&_._UZ(0,"mat-spinner",12)}function Ge(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.loadAllGroups())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("expandAll",se.filtering)("disableRouting",!se.routeAuth)("groups",se.groups)("selection",se.selected)("filterValue",se.filterValue)("vo",se.vo)}}const ce=function(){return["select","id","name","description","menu"]};function Ze(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.loadAllGroups())})("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",_.DdM(8,ce))("disableRouting",!se.routeAuth)("groups",se.groups)("selection",se.selected)("filter",se.filterValue)("tableId",se.tableId)}}function he(R,G){if(1&R&&(_.TgZ(0,"div",13),_.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,Ze,2,9,"perun-web-apps-groups-list",15),_.qZA()),2&R){const se=_.oxw();_.xp6(1),_.Q6J("ngIf",!se.showGroupList),_.xp6(1),_.Q6J("ngIf",se.showGroupList)}}function xe(R,G){1&R&&(_.TgZ(0,"perun-web-apps-alert",20),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let j=(()=>{class R{constructor(se,$,Ee,Oe){this.dialog=se,this.groupService=$,this.authResolver=Ee,this.entityStorageService=Oe,this.groups=[],this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=T.rc}onCreateGroup(){const se=(0,g.kZ)();se.width="450px",se.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,se).afterClosed().subscribe(Ee=>{Ee&&(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(){return this.tree?.removeAuth||this.list?.removeAuth}deleteGroup(){const se=(0,g.kZ)();se.width="450px",se.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(c.P,se).afterClosed().subscribe(Ee=>{Ee&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(se){const $=(0,g.kZ)();$.width="550px",$.data={group:se,theme:"vo-theme"},this.dialog.open(w.c,$).afterClosed().subscribe(Oe=>{Oe&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[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]).subscribe(se=>{this.groups=se,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(se){this.filterValue=se,this.filtering=""!==se}}return R.id="VoGroupsComponent",R.\u0275fac=function(se){return new(se||R)(_.Y36(V.uw),_.Y36(C.ff),_.Y36(S.x4),_.Y36(S.fb))},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-vo-groups"]],viewQuery:function(se,$){if(1&se&&(_.Gf(q,7),_.Gf(ue,5),_.Gf(ye,5)),2&se){let Ee;_.iGM(Ee=_.CRH())&&($.toggle=Ee.first),_.iGM(Ee=_.CRH())&&($.tree=Ee.first),_.iGM(Ee=_.CRH())&&($.list=Ee.first)}},hostVars:2,hostBindings:function(se,$){2&se&&_.ekj("router-component",$.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(se,$){if(1&se&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return $.loadAllGroups()}),_.qZA(),_.YNc(5,Me,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.TgZ(8,"button",4),_.NdJ("click",function(){return $.deleteGroup()}),_._uU(9),_.ALo(10,"translate"),_.qZA()(),_.TgZ(11,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(Oe){return $.applyFilter(Oe)}),_.qZA(),_.TgZ(12,"mat-slide-toggle",6,7),_.NdJ("change",function(){return $.removeAllGroups()})("ngModelChange",function(Oe){return $.showGroupList=Oe}),_._uU(14),_.ALo(15,"translate"),_.qZA(),_.TgZ(16,"label"),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.YNc(19,we,1,0,"mat-spinner",8),_.YNc(20,he,3,2,"div",9),_.YNc(21,xe,3,3,"perun-web-apps-alert",10),_.qZA()),2&se){const Ee=_.MAs(13);_.xp6(2),_.Oqu(_.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",$.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===$.tree&&void 0===$.list||$.disableTooltip()),_.xp6(2),_.Q6J("disabled",0===$.selected.selected.length||$.disableRemove()),_.xp6(1),_.hij(" ",_.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),_.xp6(2),_.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",$.showGroupList),_.xp6(2),_.Oqu(_.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Ee.inputId),_.xp6(1),_.Oqu(_.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",$.loading),_.xp6(1),_.Q6J("ngIf",!$.loading&&0!==$.groups.length),_.xp6(1),_.Q6J("ngIf",0===$.groups.length&&!$.loading)}},dependencies:[z.O5,Q.JJ,Q.On,te.lW,oe.Ou,ee.gM,le.Rr,de.w,Te.W,v.t,L.I,B.P,W.X$]}),R})()},81847:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>ce});var e=h(95017),c=h(32080),A=h(53455),w=h(32105),g=h(64080),C=h(24006),T=h(10036),E=h(9244),S=h(74414),U=h(51525),_=h(94650),V=h(65412),z=h(36895),Q=h(3238),te=h(59549),oe=h(4859),ee=h(84385),le=h(51572),de=h(10266),Te=h(96214),v=h(64901),L=h(4811),B=h(89383),W=h(20551);function q(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",14),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onAddMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&Ze){const xe=_.oxw();_.Q6J("disabled",xe.blockManualMemberAdding),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ue(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onInviteMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&Ze&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function ye(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onRemoveMembers())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&Ze){const xe=_.oxw();_.Q6J("disabled",xe.selection.isEmpty()),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Me(Ze,he){if(1&Ze&&(_.TgZ(0,"mat-option",17),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&Ze){const xe=he.$implicit;_.Q6J("value",xe),_.xp6(1),_.Oqu(_.lcZ(2,2,xe))}}function we(Ze,he){1&Ze&&_._UZ(0,"mat-spinner",18)}function Ge(Ze,he){if(1&Ze&&_._UZ(0,"perun-web-apps-members-dynamic-list",19),2&Ze){const xe=_.oxw();_.Q6J("attrNames",xe.attrNames)("selection",xe.selection)("tableId",xe.tableId)("displayedColumns",xe.displayedColumns)("updateTable",xe.updateTable)("searchString",xe.searchString)("selectedStatuses",xe.selectedStatuses)("voId",xe.vo.id)("isMembersGroup",!1)}}let ce=(()=>{class Ze{constructor(xe,j,R,G,se,$,Ee){this.notificator=xe,this.dialog=j,this.authzService=R,this.storeService=G,this.attributesManager=se,this.apiRequest=$,this.entityStorageService=Ee,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 C.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=T.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(xe){this.searchString=xe,this.selection.clear()}onAddMember(){const xe=(0,E.kZ)();xe.width="1000px",xe.data={voId:this.vo.id},this.dialog.open(U.H,xe).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const xe=(0,E.kZ)();xe.width="450px",xe.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,xe).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const xe=(0,E.kZ)();xe.width="650px",xe.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(S.R,xe)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const xe=this.statuses.value;return xe?`${xe[0]} ${xe.length>1?"(+"+(xe.length-1).toString()+" "+(2===xe.length?"other)":"others)"):""}`:""}isManualAddingBlocked(xe){return new Promise(j=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(xe,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(R=>{this.blockManualMemberAdding=null!==R.value,j()},R=>{const G=R.error;"PrivilegeException"!==G.name&&this.notificator.showError(G.name),j()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return Ze.id="VoMembersComponent",Ze.\u0275fac=function(xe){return new(xe||Ze)(_.Y36(c.V6),_.Y36(V.uw),_.Y36(c.x4),_.Y36(c.d6),_.Y36(w.H8),_.Y36(c.F5),_.Y36(c.fb))},Ze.\u0275cmp=_.Xpm({type:Ze,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(xe,j){2&xe&&_.ekj("router-component",j.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","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(xe,j){1&xe&&(_.TgZ(0,"div",0)(1,"h1",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return j.refreshTable()}),_.qZA(),_.TgZ(6,"div",4),_.ALo(7,"translate"),_.YNc(8,q,3,4,"button",5),_.qZA(),_.YNc(9,ue,3,3,"button",6),_.YNc(10,ye,3,4,"button",7),_.TgZ(11,"mat-form-field",8)(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"mat-select",9),_.NdJ("closed",function(){return j.changeStatuses()}),_.TgZ(16,"mat-select-trigger"),_._uU(17),_.ALo(18,"memberStatus"),_.qZA(),_.YNc(19,Me,3,4,"mat-option",10),_.qZA()(),_.TgZ(20,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(G){return j.onSearchByString(G)}),_.qZA()(),_.YNc(21,we,1,0,"mat-spinner",12),_.YNc(22,Ge,1,9,"perun-web-apps-members-dynamic-list",13),_.qZA()),2&xe&&(_.xp6(2),_.Oqu(_.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),_.xp6(4),_.s9C("matTooltip",_.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),_.Q6J("matTooltipDisabled",!j.blockManualMemberAdding),_.xp6(2),_.Q6J("ngIf",j.addAuth),_.xp6(1),_.Q6J("ngIf",j.inviteAuth),_.xp6(1),_.Q6J("ngIf",j.removeAuth),_.xp6(3),_.Oqu(_.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",j.statuses),_.xp6(2),_.hij(" ",_.lcZ(18,19,j.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",j.statusList),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",j.loading),_.xp6(1),_.Q6J("ngIf",!j.loading))},dependencies:[z.sg,z.O5,Q.ey,te.KE,te.hX,C.JJ,C.oH,oe.lW,ee.gD,ee.$L,le.Ou,de.gM,Te.t,v.P,L.m,B.X$,W.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}"]}),Ze})()},68056:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>de});var e=h(95017),c=h(32105),A=h(533),w=h(10036),g=h(9244),C=h(32080),T=h(94650),E=h(65412),S=h(36895),U=h(4859),_=h(51572),V=h(96214),z=h(7434),Q=h(62109),te=h(89383);function oe(Te,v){if(1&Te){const L=T.EpF();T.TgZ(0,"button",6),T.NdJ("click",function(){T.CHM(L);const W=T.oxw();return T.KtG(W.deleteSelectedResources())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Te){const L=T.oxw();T.Q6J("disabled",0===L.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function ee(Te,v){1&Te&&T._UZ(0,"mat-spinner",7)}function le(Te,v){if(1&Te&&T._UZ(0,"perun-web-apps-resources-list",8),2&Te){const L=T.oxw();T.Q6J("disableRouting",!L.routeAuth)("filterValue",L.filterValue)("resources",L.resources)("routingVo",!0)("displayedColumns",L.displayedColumns)("selection",L.selected)("tableId",L.tableId)}}let de=(()=>{class Te{constructor(L,B,W,q){this.resourcesManager=L,this.dialog=B,this.authResolver=W,this.entityStorageService=q,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(L=>{this.resources=L,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(L){this.filterValue=L}deleteSelectedResources(){const L=(0,g.kZ)();L.width="450px",L.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,L).afterClosed().subscribe(W=>{W&&this.refreshTable()})}}return Te.id="VoResourcesPreviewComponent",Te.\u0275fac=function(L){return new(L||Te)(T.Y36(c.xk),T.Y36(E.uw),T.Y36(C.x4),T.Y36(C.fb))},Te.\u0275cmp=T.Xpm({type:Te,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(L,B){2&L&&T.ekj("router-component",B.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(L,B){1&L&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return B.refreshTable()}),T.qZA(),T.YNc(5,oe,3,4,"button",2),T.TgZ(6,"perun-web-apps-immediate-filter",3),T.NdJ("filter",function(q){return B.applyFilter(q)}),T.qZA(),T.YNc(7,ee,1,0,"mat-spinner",4),T.YNc(8,le,1,7,"perun-web-apps-resources-list",5),T.qZA()),2&L&&(T.xp6(2),T.Oqu(T.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),T.xp6(3),T.Q6J("ngIf",B.removeAuth),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",B.loading),T.xp6(1),T.Q6J("ngIf",!B.loading))},dependencies:[S.O5,U.lW,_.Ou,V.t,z.L,Q.C,te.X$]}),Te})()},24219:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>Ce});var e=h(32080),c=h(32105),A=h(94650),w=h(36895),g=h(3848),C=h(98380),T=h(96214),E=h(30671),S=h(51572),U=h(44850),_=h(37084),V=h(89383);function z(ae,re){1&ae&&A._UZ(0,"mat-spinner",2)}function Q(ae,re){if(1&ae&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&ae){const Se=A.oxw().$implicit,Fe=A.oxw(2);A.xp6(4),A.HOy(" ",Fe.getErrorCountStates(Se)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",Se.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function te(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function oe(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.id)}}function ee(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function le(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.service.name)}}function de(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Te(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.status)}}function v(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function L(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function B(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function W(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,L,3,4,"div",25),A.YNc(2,B,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.schedule)("ngIfElse",Fe)}}function q(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ue(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function ye(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Me(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,ue,3,4,"div",25),A.YNc(2,ye,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.startTime)("ngIfElse",Fe)}}function we(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Ge(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function ce(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ze(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,Ge,3,4,"div",25),A.YNc(2,ce,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.endTime)("ngIfElse",Fe)}}function he(ae,re){1&ae&&A._UZ(0,"tr",28)}const xe=function(ae,re,Se){return{redTableItem:ae,greenTableItem:re,yellowTableItem:Se}};function j(ae,re){if(1&ae&&A._UZ(0,"tr",29),2&ae){const Se=re.$implicit;A.Q6J("ngClass",A.kEZ(1,xe,"ERROR"===Se.status||"SENDERROR"===Se.status||"GENERROR"===Se.status,"DONE"===Se.status,"WARNING"===Se.status))}}function R(ae,re){if(1&ae&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,te,3,3,"th",14),A.YNc(3,oe,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,ee,3,3,"th",14),A.YNc(6,le,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,de,3,3,"th",14),A.YNc(9,Te,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,v,3,3,"th",14),A.YNc(12,W,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,q,3,3,"th",14),A.YNc(15,Me,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,we,3,3,"th",14),A.YNc(18,Ze,4,2,"td",15),A.BQk(),A.YNc(19,he,1,0,"tr",21),A.YNc(20,j,1,5,"tr",22),A.qZA()),2&ae){const Se=A.oxw(2).$implicit,Fe=A.oxw(2);A.Q6J("dataSource",Fe.datasources[Fe.propagation.indexOf(Se)]),A.xp6(19),A.Q6J("matHeaderRowDef",Fe.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Fe.displayedColumns)}}function G(ae,re){1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function se(ae,re){if(1&ae&&(A._UZ(0,"mat-divider"),A.YNc(1,R,21,3,"table",11),A.YNc(2,G,3,3,"div",8)),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==Se.taskList.length),A.xp6(1),A.Q6J("ngIf",0===Se.taskList.length)}}function $(ae,re){if(1&ae&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,Q,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,se,3,2,"ng-template",9),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.oxw(2);A.xp6(5),A.hij(" ",Se.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Fe.getErrorCountStates(Se))}}function Ee(ae,re){if(1&ae&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,$,8,2,"mat-expansion-panel",5),A.qZA()()),2&ae){const Se=A.oxw();A.xp6(2),A.Q6J("ngForOf",Se.propagation)}}let Oe=(()=>{class ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(Se){let Fe=0;for(const be of Se.taskList)("ERROR"===be.status||"GENERROR"===be.status||"SENDERROR"===be.status)&&Fe++;return Fe}getDataSource(){this.datasources=[];for(const Se of this.propagation)this.datasources.push(new E.by(Se.taskList))}ngOnChanges(){this.getDataSource()}}return ae.\u0275fac=function(Se){return new(Se||ae)},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.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(Se,Fe){1&Se&&(A.YNc(0,z,1,0,"mat-spinner",0),A.YNc(1,Ee,3,1,"div",1)),2&Se&&(A.Q6J("ngIf",Fe.loading),A.xp6(1),A.Q6J("ngIf",!Fe.loading))},dependencies:[w.mk,w.sg,w.O5,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,S.Ou,U.d,_.pp,_.ib,_.yz,_.yK,_.u4,_.HS,w.uU,V.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),ae})();function ct(ae,re){if(1&ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&ae){const Se=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(Se.errorPropagation.length)}}function Xe(ae,re){1&ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function _t(ae,re){if(1&ae&&(A.YNc(0,Xe,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&ae){const Se=A.oxw();A.Q6J("ngIf",!Se.loading&&0===Se.errorPropagation.length),A.xp6(1),A.Q6J("loading",Se.loading)("propagation",Se.errorPropagation)}}function Je(ae,re){if(1&ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&ae){const Se=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(Se.okPropagation.length)}}function gt(ae,re){1&ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Y(ae,re){if(1&ae&&(A.YNc(0,gt,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&ae){const Se=A.oxw();A.Q6J("ngIf",!Se.loading&&0===Se.okPropagation.length),A.xp6(1),A.Q6J("loading",Se.loading)("propagation",Se.okPropagation)}}let Ce=(()=>{class ae{constructor(Se,Fe){this.taskService=Se,this.entityStorageService=Fe,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(Se=>{this.resourceStates=Se,this.okPropagation=[],this.errorPropagation=[];for(const Fe of Se){let be=!0;for(const Ue of Fe.taskList)if("ERROR"===Ue.status||"GENERROR"===Ue.status||"SENDERROR"===Ue.status){be=!1;break}be?this.okPropagation.push(Fe):this.errorPropagation.push(Fe)}this.loading=!1},()=>this.loading=!1)}}return ae.id="VoResourcesStatesComponent",ae.\u0275fac=function(Se){return new(Se||ae)(A.Y36(c.Ob),A.Y36(e.fb))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(Se,Fe){2&Se&&A.ekj("router-component",Fe.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(Se,Fe){1&Se&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Fe.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(Ue){return Fe.selectedIndex=Ue}),A.TgZ(5,"mat-tab"),A.YNc(6,ct,4,4,"ng-template",3),A.YNc(7,_t,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Je,4,4,"ng-template",3),A.YNc(10,Y,2,3,"ng-template",4),A.qZA()()),2&Se&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Fe.selectedIndex))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.w,T.t,Oe,V.X$]}),ae})()},10369:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>Me});var e=h(1186),c=h(32080),A=h(95502),w=h(51076),g=h(83491),C=h(32105),T=h(9244),E=h(94650),S=h(65412),U=h(89383),_=h(94364),V=h(36895),z=h(97392),Q=h(4859),te=h(51572),oe=h(10266),ee=h(44850),le=h(98380),de=h(96214),Te=h(157);function v(we,Ge){1&we&&E._UZ(0,"mat-spinner",13)}function L(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",21),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw(2);return E.KtG(he.settings())}),E.TgZ(1,"i",10),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&we&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function B(we,Ge){if(1&we&&(E.TgZ(0,"div",14)(1,"div",15)(2,"div",16),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",16),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",17),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",18),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.qZA()(),E.TgZ(20,"div",19),E.YNc(21,L,5,3,"button",20),E.qZA()()),2&we){const ce=E.oxw();E.xp6(3),E.AsE(" ",E.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",ce.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",ce.applicationForm.automaticApproval?E.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",ce.applicationForm.automaticApprovalExtension?E.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(4),E.Q6J("ngIf",ce.editAuth)}}function W(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&we&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function q(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.save())}),E.TgZ(1,"i",10),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&we){const ce=E.oxw();E.Q6J("disabled",!ce.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ue(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.copy())}),E.TgZ(1,"i",10),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&we&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function ye(we,Ge){1&we&&(E.TgZ(0,"perun-web-apps-alert",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&we&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Me=(()=>{class we{constructor(ce,Ze,he,xe,j,R,G,se){this.registrarManager=ce,this.dialog=Ze,this.notificator=he,this.translate=xe,this.router=j,this.authResolver=R,this.voService=G,this.entityStorageService=se,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(ce=>{this.applicationForm=ce,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ze=>{this.applicationFormItems=Ze,this.loading=!1})})}add(){let ce=(0,T.kZ)();ce.width="500px",ce.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,ce).afterClosed().subscribe(he=>{he&&(this.applicationFormItems=Object.assign([],he[0]),ce=(0,T.kZ)(),ce.width="600px",ce.height="600px",ce.data={voId:this.vo.id,applicationFormItem:he[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,ce),this.itemsChanged=!0)})}copy(){const ce=(0,T.kZ)();ce.width="500px",ce.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,ce).afterClosed().subscribe(he=>{he&&this.updateFormItems()})}settings(){const ce=(0,T.kZ)();ce.width="400px",ce.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,ce).afterClosed().subscribe(he=>{he&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.applicationForm=he)})}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(ce=>{this.applicationFormItems=ce,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let ce=0;for(const Ze of this.applicationFormItems)Ze.ordnum=ce,Ze.forDelete||ce++;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(Ze=>{this.notificator.showSuccess(Ze)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(ce=>ce.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 we.id="VoSettingsApplicationFormComponent",we.\u0275fac=function(ce){return new(ce||we)(E.Y36(C.tk),E.Y36(S.uw),E.Y36(c.V6),E.Y36(U.sK),E.Y36(_.F0),E.Y36(c.x4),E.Y36(C.YF),E.Y36(c.fb))},we.\u0275cmp=E.Xpm({type:we,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(ce,Ze){2&ce&&E.ekj("router-component",Ze.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(ce,Ze){1&ce&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,v,1,0,"mat-spinner",1),E.TgZ(4,"div"),E.YNc(5,B,22,18,"div",2),E._UZ(6,"mat-divider",3),E.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),E.NdJ("refresh",function(){return Ze.updateFormItems()}),E.qZA(),E.YNc(9,W,3,3,"button",6),E.YNc(10,q,5,4,"button",7),E.YNc(11,ue,5,3,"button",8),E.TgZ(12,"button",9),E.NdJ("click",function(){return Ze.preview()}),E.TgZ(13,"i",10),E._uU(14,"search"),E.qZA(),E._uU(15),E.ALo(16,"translate"),E.qZA()(),E.YNc(17,ye,3,3,"perun-web-apps-alert",11),E.TgZ(18,"app-application-form-list",12),E.NdJ("applicationFormItemsChange",function(){return Ze.changeItems()}),E.qZA()()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",Ze.loading),E.xp6(2),E.Q6J("ngIf",!Ze.loading),E.xp6(4),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("ngIf",Ze.editAuth),E.xp6(4),E.hij(" ",E.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("applicationForm",Ze.applicationForm)("applicationFormItems",Ze.applicationFormItems)("loading",Ze.loading)("displayedColumns",Ze.displayedColumns)("refreshApplicationForm",Ze.refreshApplicationForm)("theme","vo-theme"))},dependencies:[V.O5,z.Hw,Q.lW,te.Ou,oe.gM,ee.d,le.w,de.t,Te.b,U.X$]}),we})()},3246:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>rr});var e=h(32105),c=h(95017),A=h(10036),w=h(9244),g=h(65412),C=h(32080),T=h(24006),E=h(36895),S=h(45323),U=h(28499),_=h(94650),V=h(89383),z=h(3238),Q=h(59549),te=h(284),oe=h(97392),ee=h(4859),le=h(56709),de=h(84385),Te=h(51572),v=h(10266),L=h(71948),B=h(86257),W=h(98380),q=h(74250),ue=h(99602);let ye=(()=>{class wt{constructor(){this.expiration="never",this.datePicker=new _.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const nt=new Date;this.minDate=new Date(nt.getFullYear(),nt.getMonth(),nt.getDate()),this.expirationControl.setValue((0,E.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return wt.\u0275fac=function(nt){return new(nt||wt)},wt.\u0275cmp=_.Xpm({type:wt,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(nt,Bt){if(1&nt){const Gt=_.EpF();_.TgZ(0,"mat-radio-group",0),_.NdJ("ngModelChange",function(Ft){return Bt.expiration=Ft})("change",function(){return Bt.emitDate()}),_.TgZ(1,"mat-radio-button",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),_.NdJ("click",function(){_.CHM(Gt);const Ft=_.MAs(12);return _.KtG(Ft.open())}),_.TgZ(6,"mat-label"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"input",4),_.NdJ("dateChange",function(){return Bt.setExpiration()}),_.qZA(),_._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),_.qZA()()()}if(2&nt){const Gt=_.MAs(12);_.Q6J("ngModel",Bt.expiration),_.xp6(2),_.hij(" ",_.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),_.xp6(2),_.s9C("value",Bt.expirationControl.value),_.xp6(3),_.Oqu(_.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),_.xp6(2),_.Q6J("min",Bt.minDate)("formControl",Bt.expirationControl)("matDatepicker",Gt),_.xp6(1),_.Q6J("for",Gt)("disabled",!1),_.xp6(1),_.Q6J("disabled",!1)}},dependencies:[T.Fj,T.JJ,T.On,Q.KE,Q.hX,Q.R9,T.oH,te.Nt,ue.Mq,ue.hl,ue.nW,L.VQ,L.U0,V.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),wt})();var Me=h(13469),we=h(31359);const Ge=["stepper"];function ce(wt,an){1&wt&&(_.TgZ(0,"h1",4),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function Ze(wt,an){1&wt&&_._UZ(0,"mat-spinner",5)}function he(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function xe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function j(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function R(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function G(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function se(wt,an){if(1&wt&&(_.TgZ(0,"mat-option",35),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function $(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function Ee(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Oe(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function ct(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Xe(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"perun-web-apps-user-search-select",36),_.NdJ("userSelected",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.selectedSponsor=Gt)}),_.qZA()()}if(2&wt){const nt=_.oxw(2);_.xp6(1),_.Q6J("disableAutoSelect",!0)("users",nt.voSponsors)}}function _t(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),_.YNc(4,he,2,3,"ng-template",10),_.YNc(5,xe,3,3,"perun-web-apps-alert",11),_.TgZ(6,"form",12)(7,"h5",13),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-form-field",14),_._UZ(11,"input",15),_.ALo(12,"translate"),_.YNc(13,j,3,3,"mat-error",16),_.qZA(),_.TgZ(14,"mat-form-field"),_._UZ(15,"input",17),_.ALo(16,"translate"),_.YNc(17,R,3,3,"mat-error",16),_.qZA(),_.TgZ(18,"mat-form-field"),_._UZ(19,"input",18),_.ALo(20,"translate"),_.qZA(),_.TgZ(21,"mat-form-field"),_._UZ(22,"input",19),_.ALo(23,"translate"),_.qZA()()(),_.TgZ(24,"mat-step",9),_.YNc(25,G,2,3,"ng-template",10),_.TgZ(26,"h5",13),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.TgZ(29,"form",20)(30,"mat-form-field")(31,"mat-select",21),_.NdJ("valueChange",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.onNamespaceChanged(Gt))}),_.ALo(32,"translate"),_.YNc(33,se,2,2,"mat-option",22),_.qZA(),_.YNc(34,$,3,3,"mat-error",16),_.qZA(),_.TgZ(35,"mat-form-field",23),_.ALo(36,"translate"),_._UZ(37,"input",24),_.ALo(38,"translate"),_.YNc(39,Ee,3,3,"mat-error",16),_.qZA(),_.TgZ(40,"mat-form-field"),_._UZ(41,"input",25),_.ALo(42,"translate"),_.YNc(43,Oe,3,3,"mat-error",16),_.qZA(),_.TgZ(44,"span",23),_.ALo(45,"translate"),_.TgZ(46,"mat-checkbox",26),_.NdJ("change",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.passwordResetChange())}),_._uU(47),_.ALo(48,"translate"),_.qZA()(),_._UZ(49,"perun-web-apps-password-form",27),_.qZA()(),_.TgZ(50,"mat-step"),_.YNc(51,ct,2,3,"ng-template",10),_.TgZ(52,"div",28)(53,"h5",13),_._uU(54),_.ALo(55,"translate"),_.qZA(),_.TgZ(56,"div",14)(57,"h6"),_._uU(58),_.ALo(59,"translate"),_.qZA(),_.TgZ(60,"mat-radio-group",29),_.NdJ("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.sponsorType=Gt)}),_.TgZ(61,"span",30),_.ALo(62,"translate"),_.TgZ(63,"mat-radio-button",31),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.selectedSponsor=null)}),_._uU(64),_.ALo(65,"translate"),_.qZA()(),_.TgZ(66,"span",30),_.ALo(67,"translate"),_.TgZ(68,"mat-radio-button",32),_._uU(69),_.ALo(70,"translate"),_.qZA()()(),_.YNc(71,Xe,2,2,"div",16),_.qZA(),_.TgZ(72,"h6",14),_._uU(73),_.ALo(74,"translate"),_.qZA(),_.TgZ(75,"perun-web-apps-expiration-select",33),_.NdJ("datePicker",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.setExpiration(Gt))}),_.qZA()()()()()}if(2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.userControl),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(1),_.Q6J("formGroup",nt.userControl),_.xp6(2),_.hij(" ",_.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","firstName")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","lastName")),_.xp6(2),_.s9C("placeholder",_.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),_.xp6(3),_.s9C("placeholder",_.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),_.xp6(2),_.Q6J("stepControl",nt.namespaceControl),_.xp6(3),_.Oqu(_.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl),_.xp6(2),_.s9C("placeholder",_.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.namespaceControl.hasError("required","namespace")),_.xp6(1),_.s9C("matTooltip",_.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("login").enabled),_.xp6(2),_.s9C("placeholder",_.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","login")),_.xp6(2),_.s9C("placeholder",_.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","email")||nt.namespaceControl.hasError("pattern","email")),_.xp6(1),_.s9C("matTooltip",_.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("passwordReset").enabled),_.xp6(3),_.hij("",_.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl)("namespace",nt.selectedNamespace)("tooltipPwdViaEmail",nt.namespaceControl.get("passwordReset").value),_.xp6(5),_.Oqu(_.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),_.xp6(4),_.Oqu(_.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),_.xp6(2),_.Q6J("ngModel",nt.sponsorType),_.xp6(1),_.s9C("matTooltip",_.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),_.Q6J("matTooltipDisabled",nt.isSponsor),_.xp6(2),_.Q6J("disabled",!nt.isSponsor),_.xp6(1),_.hij(" ",_.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),_.Q6J("matTooltipDisabled",nt.isPerunAdmin),_.xp6(2),_.Q6J("disabled",!nt.isPerunAdmin),_.xp6(1),_.hij(" ",_.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),_.xp6(2),_.Q6J("ngIf","other"===nt.sponsorType),_.xp6(2),_.Oqu(_.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function Je(wt,an){if(1&wt&&(_.TgZ(0,"div",6)(1,"div",37)(2,"mat-icon",38),_._uU(3,"done"),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.TgZ(6,"i"),_._uU(7),_.ALo(8,"userFullName"),_.qZA(),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"div"),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"perun-web-apps-alert",39),_._uU(18),_.ALo(19,"translate"),_.qZA()()),2&wt){const nt=_.oxw();_.xp6(4),_.hij(" ",_.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),_.xp6(3),_.Oqu(_.lcZ(8,10,nt.createdMember.user)),_.xp6(2),_.hij(" ",_.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),_.xp6(3),_.AsE("",_.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",nt.loginThatWasSet,""),_.xp6(3),_.AsE(" ",_.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",nt.namespaceControl.get("passwordCtrl").value," "),_.xp6(3),_.Oqu(_.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function gt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",41),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA()()}2&wt&&(_.xp6(2),_.hij(" ",_.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function Y(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",41),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Ce(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",46),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function ae(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.onConfirm())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.sponsorType||"other"===nt.sponsorType&&null===nt.selectedSponsor),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function re(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",42),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,Y,3,3,"button",43),_.YNc(5,Ce,3,8,"button",44),_.YNc(6,ae,3,4,"button",45),_.qZA()}if(2&wt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}let Se=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke,Et,Wt,hn,wn,zn){this.dialogRef=nt,this.data=Bt,this.membersService=Gt,this.apiRequestConfiguration=et,this.usersService=Ft,this.store=Ke,this.translator=Et,this.authzService=Wt,this.guiAuthResolver=hn,this.formBuilder=wn,this.cd=zn,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(nt,Bt,Gt){for(const et of Bt)switch(et){case"login":nt.login=Gt;break;case"password":nt.password=Gt}}onConfirm(){this.loading=!0;const nt={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},Bt=this.namespaceControl.get("namespace").value,Gt=this.parsedRules.get(Bt);"No namespace"!==Bt&&(nt.userData.namespace=Bt),"disabled"!==Gt.login&&(nt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Gt.password&&(nt.sendActivationLink=this.namespaceControl.get("passwordReset").value,nt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(nt.validityTo=this.expiration),this.membersService.createSponsoredMember(nt).subscribe(et=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=et,!!et&&!!et.userAttributes&&et.userAttributes.filter(Ft=>"login-namespace"===Ft.baseFriendlyName).filter(Ft=>Ft.friendlyNameParameter===Bt).filter(Ft=>null!==Ft.value).forEach(Ft=>{this.loginThatWasSet=Ft.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(nt){this.selectedNamespace=nt;const Bt=this.parsedRules.get(nt),Gt=this.namespaceControl.get("login"),et=this.namespaceControl.get("passwordCtrl"),Ft=this.namespaceControl.get("passwordAgainCtrl"),Ke=this.namespaceControl.get("passwordReset");"disabled"!==Bt.login?(0,w.mH)(Gt,"optional"===Bt.login?[]:[T.kI.required]):(Gt.disable(),Gt.setValue("")),"disabled"!==Bt.password?((0,w.mH)(et,"optional"===Bt.password?[]:[T.kI.required],[(0,U.yT)(nt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(Ft,[]),(0,w.mH)(Ke,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(et.disable(),et.setValue(""),Ft.disable(),Ft.setValue(""),Ke.disable(),Ke.setValue(!1))}passwordResetChange(){const nt=this.namespaceControl.get("passwordCtrl"),Bt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(nt.disable(),nt.setValue(""),Bt.disable(),Bt.setValue("")):(nt.enable(),Bt.enable())}setExpiration(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"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(S.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",T.kI.required],lastName:["",T.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",T.kI.required],login:["",[T.kI.required]],passwordCtrl:["",T.kI.required,[(0,U.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[T.kI.required,T.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(nt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(nt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const nt of this.namespaceRules){this.namespaceOptions.push(nt.namespaceName);const Bt={login:"disabled",password:"disabled"};wt.parseAttributes(Bt,nt.requiredAttributes,"required"),wt.parseAttributes(Bt,nt.optionalAttributes,"optional"),this.parsedRules.set(nt.namespaceName,Bt)}}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(e.uq),_.Y36(C.F5),_.Y36(e.Fv),_.Y36(C.d6),_.Y36(V.sK),_.Y36(e.Ct),_.Y36(C.x4),_.Y36(T.QS),_.Y36(_.sBO))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(nt,Bt){if(1&nt&&_.Gf(Ge,5),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.stepper=Gt.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(nt,Bt){1&nt&&(_.TgZ(0,"div"),_.YNc(1,ce,3,3,"h1",0),_.YNc(2,Ze,1,0,"mat-spinner",1),_.YNc(3,_t,76,80,"div",2),_.YNc(4,Je,20,20,"div",2),_.YNc(5,gt,4,3,"div",3),_.YNc(6,re,7,6,"div",3),_.qZA()),2&nt&&(_.Tol(Bt.theme),_.xp6(1),_.Q6J("ngIf",!Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&!Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&!Bt.successfullyCreated))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,te.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,oe.Hw,ee.lW,le.oG,g.uh,g.xY,g.H8,de.gD,Te.Ou,v.gM,L.VQ,L.U0,B.C0,B.VY,B.Vq,W.w,q.S,ye,Me.G,V.X$,we.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}"]}),wt})();var Fe=h(64080),be=h(28255),Ue=h(24179),P=h(7434),H=h(61150);const i=["stepper"];function o(wt,an){1&wt&&_._UZ(0,"mat-spinner",4)}function f(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",29),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function a(wt,an){if(1&wt&&(_.TgZ(0,"mat-option",30),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function n(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function r(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function s(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function d(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function p(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function M(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",31),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function _e(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"mat-radio-group",32),_.NdJ("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.passwordReset=Gt)}),_.TgZ(1,"mat-radio-button",33),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",34),_._uU(5),_.ALo(6,"translate"),_.qZA()()}if(2&wt){const nt=_.oxw(3);_.Q6J("ngModel",nt.passwordReset),_.xp6(2),_.hij(" ",_.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),_.xp6(3),_.hij(" ",_.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function bt(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Vt(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function on(wt,an){1&wt&&(_.TgZ(0,"div")(1,"perun-web-apps-alert",35),_._uU(2),_.ALo(3,"translate"),_.qZA()()),2&wt&&(_.xp6(2),_.Oqu(_.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Mt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-create-group-form",37),_.NdJ("asSubgroupChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.asSubGroup=Gt)})("nameChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.name=Gt)})("descriptionChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.description=Gt)})("parentGroupChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.parentGroup=Gt)}),_.qZA()()}if(2&wt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),_.xp6(2),_.Q6J("voGroups",nt.allVoGroups)}}const ft=function(){return["select","id","name","description"]};function je(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-immediate-filter",38),_.NdJ("filter",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.applyFilter(Gt))}),_.qZA(),_._UZ(5,"perun-web-apps-groups-list",39),_.qZA()}if(2&wt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),_.xp6(2),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),_.xp6(1),_.Q6J("groups",nt.assignableGroups)("selection",nt.selection)("disableRouting",!0)("displayedColumns",_.DdM(10,ft))("filter",nt.filterValue)("tableId",nt.tableId)}}function Pe(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),_.YNc(3,f,2,3,"ng-template",11),_.YNc(4,l,3,3,"perun-web-apps-alert",12),_.TgZ(5,"h5",13),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),_.ALo(11,"translate"),_.YNc(12,a,2,2,"mat-option",16),_.qZA(),_.YNc(13,n,3,3,"mat-error",7),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"div",17),_._uU(18),_.qZA(),_.TgZ(19,"mat-form-field",18)(20,"mat-label"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"textarea",19),_._uU(24," "),_.qZA(),_.YNc(25,t,3,3,"mat-error",7),_.YNc(26,r,3,4,"mat-error",7),_.YNc(27,s,3,4,"mat-error",7),_.YNc(28,d,3,4,"mat-error",7),_.qZA()()(),_.TgZ(29,"mat-step"),_.YNc(30,p,2,3,"ng-template",11),_.TgZ(31,"div",13)(32,"h5",20),_._uU(33),_.ALo(34,"translate"),_.qZA(),_.YNc(35,M,3,3,"perun-web-apps-alert",21),_.YNc(36,_e,7,7,"mat-radio-group",22),_.qZA()(),_.TgZ(37,"mat-step"),_.YNc(38,bt,2,3,"ng-template",11),_.TgZ(39,"div",13)(40,"h5",20),_._uU(41),_.ALo(42,"translate"),_.qZA(),_.TgZ(43,"perun-web-apps-expiration-select",23),_.NdJ("datePicker",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.setExpiration(Gt))}),_.qZA()()(),_.TgZ(44,"mat-step"),_.YNc(45,Vt,2,3,"ng-template",11),_.TgZ(46,"div",13)(47,"h5",20),_._uU(48),_.ALo(49,"translate"),_.qZA(),_.TgZ(50,"mat-radio-group",24),_.NdJ("change",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.groupAssigmentChanged())})("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.groupAssignment=Gt)}),_.TgZ(51,"mat-radio-button",25),_._uU(52),_.ALo(53,"translate"),_.qZA(),_.TgZ(54,"span",26),_.ALo(55,"translate"),_.TgZ(56,"mat-radio-button",27),_._uU(57),_.ALo(58,"translate"),_.qZA()(),_.TgZ(59,"span",26),_.ALo(60,"translate"),_.TgZ(61,"mat-radio-button",28),_._uU(62),_.ALo(63,"translate"),_.qZA()()()(),_.YNc(64,on,4,3,"div",7),_.YNc(65,Mt,5,4,"div",7),_.YNc(66,je,6,11,"div",7),_.qZA()()}if(2&wt){const nt=_.oxw(2);_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.usersInfoFormGroup),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(2),_.Oqu(_.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),_.xp6(2),_.Q6J("formGroup",nt.usersInfoFormGroup),_.xp6(2),_.s9C("placeholder",_.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","namespace")),_.xp6(2),_.Oqu(_.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),_.xp6(3),_.hij(" ",nt.getSelectedNamespaceRules().csvGenHeaderDescription," "),_.xp6(3),_.Oqu(_.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),_.xp6(2),_.s9C("placeholder",nt.getSelectedNamespaceRules().csvGenPlaceholder),_.xp6(2),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),_.xp6(5),_.hij(" ",_.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),_.xp6(2),_.Q6J("ngIf","No namespace"===nt.getSelectedNamespaceRules().namespaceName),_.xp6(1),_.Q6J("ngIf","No namespace"!==nt.getSelectedNamespaceRules().namespaceName),_.xp6(5),_.Oqu(_.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),_.xp6(2),_.Q6J("expiration",nt.expiration),_.xp6(5),_.Oqu(_.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),_.xp6(2),_.Q6J("ngModel",nt.groupAssignment),_.xp6(2),_.hij(" ",_.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&nt.createGroupAuth),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||!nt.createGroupAuth),_.xp6(1),_.hij(" ",_.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&0!==nt.assignableGroups.length),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||0===nt.assignableGroups.length),_.xp6(1),_.hij(" ",_.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),_.xp6(2),_.Q6J("ngIf","none"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","new"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","existing"===nt.groupAssignment)}}function Qe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.Q6J("alert_type","success"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function qe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.Q6J("alert_type","warn"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Be(wt,an){if(1&wt&&(_.TgZ(0,"div"),_.YNc(1,Qe,3,4,"perun-web-apps-alert",40),_.YNc(2,qe,3,4,"perun-web-apps-alert",40),_.qZA()),2&wt){const nt=_.oxw(2);_.xp6(1),_.Q6J("ngIf",!1===nt.finishedWithErrors),_.xp6(1),_.Q6J("ngIf",nt.finishedWithErrors)}}function me(wt,an){if(1&wt&&(_.TgZ(0,"div",5),_.YNc(1,Pe,67,59,"mat-stepper",6),_.YNc(2,Be,3,2,"div",7),_.qZA()),2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("ngIf","user-input"===nt.state),_.xp6(1),_.Q6J("ngIf","results"===nt.state)}}function ve(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function ze(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function tt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.onSubmit())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.groupAssignment||"existing"===nt.groupAssignment&&0===nt.selection.selected.length||"new"===nt.groupAssignment&&(0===nt.name.length||0===nt.description.length)||!0===nt.asSubGroup&&null===nt.parentGroup),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function at(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,ve,3,3,"button",44),_.YNc(5,ze,3,8,"button",45),_.YNc(6,tt,3,4,"button",46),_.qZA()}if(2&wt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}function Re(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onClose())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"button",49),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-menu",null,50)(9,"button",51),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.generatePdf())}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",51),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.downloadCsv())}),_._uU(13),_.ALo(14,"translate"),_.qZA()()()}if(2&wt){const nt=_.MAs(8);_.xp6(2),_.hij(" ",_.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),_.xp6(2),_.Q6J("matMenuTriggerFor",nt),_.xp6(1),_.hij(" ",_.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),_.xp6(5),_.hij(" ",_.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),_.xp6(3),_.hij(" ",_.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let st=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=nt,this.data=Bt,this.store=Gt,this.membersService=et,this.notificator=Ft,this.translate=Ke,this.guiAuthResolver=Et,this.groupsService=Wt,this.attributesService=hn,this.formBuilder=wn,this.sponsoredMembersPDFService=zn,this.cd=$n,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 c.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=A.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[Fe.r.GROUP_SYNC_ENABLED,Fe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(nt){return nt.forEach(Bt=>{if("OK"!==Bt.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:["",T.kI.required],sponsoredMembers:["",[T.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(nt=>{this.manualMemberAddingBlocked=(0,w.jh)(nt,Fe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(Bt=>{this.allVoGroups=Bt.filter(Gt=>"members"!==Gt.name),this.assignableGroups=this.filterAssignableGroups(Bt),this.membersService.getAllNamespacesRules().subscribe(Gt=>{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(Gt),this.namespaceRules.forEach(et=>this.namespaceOptions.push(et.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(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"yyyy-MM-dd","en-GB")}applyFilter(nt){this.filterValue=nt}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(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(nt=>nt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(nt=>nt.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(nt){const Bt=[];for(const Gt of nt)!(0,w.bx)(Gt)&&!(0,w.jh)(Gt.attributes,Fe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Gt])&&Bt.push(Gt);return Bt}createOutputObjects(nt){let Bt="",Gt="",et="",Ft="";const Ke=[];return nt.forEach(Et=>{Bt=Et.name.replace(";"," ").split(";")[0],Gt=Et.status,et=Et.login?Et.login:et,Ft=Et.password?Et.password:Ft;const Wt={name:Bt,status:Gt,login:et,password:Ft};Et.note&&(Wt.note=Et.note),Ke.push(Wt)}),Ke}onGenerate(){this.loading=!0;const nt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Bt=this.getSelectedNamespaceRules().csvGenHeader,Gt=[];for(const Ft of nt){const Ke=this.parseMemberLine(Ft);if("format"===Ke||"email"===Ke)return void(this.loading=!1);""!==Ke&&Gt.push(Ke)}const et={data:Gt,header:Bt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(et.groups=this.groupIds),"never"!==this.expiration&&(et.validityTo=(0,E.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(et.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(et).subscribe(Ft=>{this.state="results",this.finishedWithErrors=wt.didSomeGenerationFailed(Ft),this.loading=!1,this.resultData=Ft},()=>this.loading=!1)}parseMemberLine(nt){const Bt=nt.trim();if(""===Bt)return"";const Gt=Bt.split(";"),et=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Gt.length!==et.length)return"format";if("mail"===et[2].slice(et[2].length-4).toLowerCase()&&!Gt[2].trim().match(w.B2))return"email";if("login"===et[3]&&""===Gt[3].trim())return"login";let Ft="";for(const Ke of Gt)Ft+=Ke.trim()+";";return Ft.slice(0,-1)}userInputValidator(){return nt=>{const Bt=nt.value.split("\n");for(const Gt of Bt){const et=this.parseMemberLine(Gt);if("format"===et)return{invalidFormat:{value:Gt}};if("email"===et)return{invalidEmail:{value:Gt}};if("login"===et)return{invalidLogin:{value:Gt}}}return null}}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK),_.Y36(C.x4),_.Y36(e.ff),_.Y36(e.H8),_.Y36(T.QS),_.Y36(C.HV),_.Y36(_.sBO))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(nt,Bt){if(1&nt&&_.Gf(i,5),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.stepper=Gt.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(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,o,1,0,"mat-spinner",1),_.YNc(5,me,3,2,"div",2),_.YNc(6,at,7,6,"div",3),_.YNc(7,Re,15,13,"div",3),_.qZA()),2&nt&&(_.Tol(Bt.theme),_.xp6(2),_.Oqu(_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&void 0!==Bt.stepper&&"results"!==Bt.state),_.xp6(1),_.Q6J("ngIf","results"===Bt.state))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,Q.hX,te.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,ee.lW,g.uh,g.xY,g.H8,de.gD,Te.Ou,v.gM,L.VQ,L.U0,B.C0,B.VY,B.Vq,be.VK,be.OP,be.p6,W.w,Ue.W,P.L,ye,H.r,V.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),wt})();var Pt=h(38383);function jt(wt,an){1&wt&&_._UZ(0,"mat-spinner",12)}const cn=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Xt(wt,an){if(1&wt&&_._UZ(0,"perun-web-apps-members-list",13),2&wt){const nt=_.oxw();_.Q6J("disableRouting",!0)("hidden",nt.loading)("disableStatusChange",!0)("members",nt.members)("selection",nt.selection)("displayedColumns",_.DdM(7,cn))("tableId",nt.tableId)}}function sn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let mn=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke){this.dialogRef=nt,this.data=Bt,this.store=Gt,this.membersService=et,this.notificator=Ft,this.translate=Ke,this.loading=!1,this.tableId=A.US,this.expiration="never",this.searchCtrl=new T.p4("",[T.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new c.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(nt){if(this.loading=!0,0===nt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Bt=nt.pop();Bt.sponsored?this.membersService.sponsorMember(Bt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(Bt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const nt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(nt)}setExpiration(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"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,[Fe.r.MEMBER_DEF_EXPIRATION,Fe.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(Bt=>{this.members=Bt,this.loading=!1},()=>this.loading=!1))}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK))},wt.\u0275cmp=_.Xpm({type:wt,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(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label")(7,"input",3),_.NdJ("keyup.enter",function(){return Bt.onSearchByString()}),_.ALo(8,"translate"),_.qZA()(),_.TgZ(9,"mat-error"),_._uU(10),_.ALo(11,"translate"),_.qZA()(),_.TgZ(12,"button",4),_.NdJ("click",function(){return Bt.onSearchByString()}),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.YNc(15,jt,1,0,"mat-spinner",5),_.YNc(16,Xt,1,8,"perun-web-apps-members-list",6),_.YNc(17,sn,3,3,"perun-web-apps-alert",7),_.TgZ(18,"div"),_._UZ(19,"br"),_.TgZ(20,"h6"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"perun-web-apps-expiration-select",8),_.NdJ("datePicker",function(et){return Bt.setExpiration(et)}),_.qZA()()(),_.TgZ(24,"div",9)(25,"button",10),_.NdJ("click",function(){return Bt.onCancel()}),_._uU(26),_.ALo(27,"translate"),_.qZA(),_.TgZ(28,"button",11),_.NdJ("click",function(){return Bt.onSubmit()}),_._uU(29),_.ALo(30,"translate"),_.qZA()()()),2&nt&&(_.Tol(Bt.theme),_.xp6(2),_.Oqu(_.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),_.xp6(5),_.s9C("placeholder",_.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),_.Q6J("formControl",Bt.searchCtrl),_.xp6(3),_.hij(" ",_.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),_.xp6(2),_.Q6J("disabled",Bt.loading),_.xp6(1),_.hij(" ",_.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),_.xp6(2),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",Bt.firstSearchDone),_.xp6(1),_.Q6J("ngIf",!Bt.firstSearchDone),_.xp6(4),_.Oqu(_.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),_.xp6(5),_.hij(" ",_.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("disabled",Bt.loading||0===Bt.selection.selected.length),_.xp6(1),_.hij(" ",_.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[E.O5,Q.TO,Q.KE,te.Nt,T.Fj,T.JJ,T.oH,ee.lW,g.uh,g.xY,g.H8,Te.Ou,W.w,Pt.O,ye,V.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),wt})();var Nt=h(96308),Rt=h(30671),Ct=h(19352),Ut=h(58964),Qt=h(94364),An=h(50301),Dt=h(18750),$t=h(20919),xt=h(5865);function rt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"th",19)(1,"mat-checkbox",20),_.NdJ("change",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(Gt?et.masterToggle():null)}),_.qZA()()}if(2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("aria-label",nt.checkboxLabel())("checked",nt.selection.hasValue()&&nt.isAllSelected())("indeterminate",nt.selection.hasValue()&&!nt.isAllSelected())}}function vt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"td",21)(1,"mat-checkbox",22),_.NdJ("change",function(Gt){const Ft=_.CHM(nt).$implicit,Ke=_.oxw();return _.KtG(Gt?Ke.selection.toggle(Ft):null)})("click",function(Gt){return Gt.stopPropagation()}),_.qZA()()}if(2&wt){const nt=an.$implicit,Bt=_.oxw();_.xp6(1),_.Q6J("aria-label",Bt.checkboxLabel(nt))("checked",Bt.selection.isSelected(nt))}}function ot(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function $e(wt,an){if(1&wt&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",nt.member.id," ")}}function At(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Z(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"userFullName"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member.user)," ")}}function ke(wt,an){1&wt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function mt(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberEmail"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.Oqu(_.lcZ(2,1,nt.member))}}function St(wt,an){1&wt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function tn(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberLogins"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member)," ")}}function En(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function jn(wt,an){if(1&wt&&(_.TgZ(0,"span"),_._uU(1),_.ALo(2,"userFullName"),_._UZ(3,"br"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.user),"")}}function Ln(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_.YNc(1,jn,4,3,"span",27),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.Q6J("ngForOf",nt.sponsors)}}function Kn(wt,an){1&wt&&_._UZ(0,"th",23)}function li(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"span",30),_.ALo(1,"translate"),_.TgZ(2,"button",31),_.NdJ("mouseenter",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.disableRouting=Gt.routingStrategy)})("click",function(){_.CHM(nt);const Gt=_.oxw().$implicit,et=_.oxw();return _.KtG(et.resetPassword(Gt))}),_.TgZ(3,"mat-icon"),_._uU(4,"vpn_key"),_.qZA()()()}if(2&wt){const nt=_.oxw(2);_.Q6J("matTooltipPosition","above")("matTooltip",_.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),_.xp6(2),_.Q6J("disabled",nt.loading)}}function ci(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"td",25)(1,"button",28),_.NdJ("click",function(){const et=_.CHM(nt).$implicit,Ft=_.oxw();return _.KtG(Ft.showSponsors(et))})("mouseenter",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.disableRouting=Gt.routingStrategy)}),_.TgZ(2,"mat-icon"),_._uU(3,"edit"),_.qZA()(),_.YNc(4,li,5,5,"span",29),_.qZA()}if(2&wt){const nt=an.$implicit,Bt=_.oxw();_.xp6(4),_.Q6J("ngIf",Bt.passwdResetAuth(nt))}}function Wn(wt,an){1&wt&&_._UZ(0,"tr",32)}const Hn=function(wt,an){return["/organizations",wt,"members",an]};function Ji(wt,an){if(1&wt&&_._UZ(0,"tr",33),2&wt){const nt=an.$implicit,Bt=_.oxw();_.ekj("cursor-pointer",!Bt.disableRouting)("disable-outline",Bt.disableRouting),_.Q6J("perunWebAppsMiddleClickRouterLink",Bt.disableRouting?null:_.WLB(6,Hn,nt.member.voId,nt.member.id))("routerLink",Bt.disableRouting?null:_.WLB(9,Hn,nt.member.voId,nt.member.id))}}function Gn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Yn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let Vi=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft){this.dialog=nt,this.authResolver=Bt,this.storeService=Gt,this.attributesManager=et,this.tableCheckbox=Ft,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new _.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(nt){this.sort=nt}static getSortDataForColumn(nt,Bt){switch(Bt){case"id":return nt.member.id.toString();case"name":return nt.member.user?nt.member.user.lastName?nt.member.user.lastName:nt.member.user.firstName??"":"";case"sponsors":return nt.sponsors.length.toString();default:return""}}static getDataForColumn(nt,Bt){switch(Bt){case"id":return nt.member.id.toString();case"name":return nt.member.user?(0,w.bD)(nt.member.user):"";case"sponsors":return nt.sponsors.map(Gt=>(0,w.bD)(Gt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(nt=>"id"!==nt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(nt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,wt.getDataForColumn),nt)}exportDisplayedData(nt){const Bt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Gt=Bt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Bt,Gt),this.displayedColumns,wt.getDataForColumn),nt)}setDataSource(){this.dataSource||(this.dataSource=new Rt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(nt,Bt)=>(0,w.Sd)(nt,Bt,this.displayedColumns,wt.getDataForColumn),this.dataSource.sortData=(nt,Bt)=>(0,w.pR)(nt,Bt,wt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(nt){const Bt=(0,w.kZ)();Bt.width="650px",Bt.data={sponsors:nt.sponsors,member:nt.member,theme:"vo-theme"},this.dialog.open(Ct.H,Bt).afterClosed().subscribe(et=>{et&&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(nt){return nt?`${this.selection.isSelected(nt)?"deselect":"select"} row ${nt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(nt){this.loading=!0;const Bt=this.storeService.get("password_namespace_attributes").map(Gt=>{const et=Gt.split(":");return et[et.length-1]});this.attributesManager.getLogins(nt.member.userId).subscribe(Gt=>{const et=Gt.filter(Et=>Bt.includes(Et.friendlyNameParameter)),Ft=(0,w.kZ)();Ft.width="400px",Ft.data={userId:nt.member.userId,memberId:nt.member.id,logins:et},this.dialog.open(Ut.m,Ft).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(nt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:nt.member.voId,beanName:"Vo"},nt.member])}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.H8),_.Y36(C.UA))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-sponsored-members-list"]],viewQuery:function(nt,Bt){if(1&nt&&(_.Gf(w.l9,7),_.Gf(Nt.YE,7)),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.child=Gt.first),_.iGM(Gt=_.CRH())&&(Bt.matSort=Gt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[_.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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(nt,Bt){1&nt&&(_.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),_.NdJ("exportDisplayedData",function(et){return Bt.exportDisplayedData(et)})("exportAllData",function(et){return Bt.exportAllData(et)}),_.TgZ(2,"table",2),_.ynx(3,3),_.YNc(4,rt,2,3,"th",4),_.YNc(5,vt,2,2,"td",5),_.BQk(),_.ynx(6,6),_.YNc(7,ot,3,3,"th",7),_.YNc(8,$e,2,1,"td",8),_.BQk(),_.ynx(9,9),_.YNc(10,At,3,3,"th",7),_.YNc(11,Z,3,3,"td",10),_.BQk(),_.ynx(12,11),_.YNc(13,ke,3,3,"th",12),_.YNc(14,mt,3,3,"td",10),_.BQk(),_.ynx(15,13),_.YNc(16,St,3,3,"th",12),_.YNc(17,tn,3,3,"td",10),_.BQk(),_.ynx(18,14),_.YNc(19,En,3,3,"th",7),_.YNc(20,Ln,2,1,"td",10),_.BQk(),_.ynx(21,15),_.YNc(22,Kn,1,0,"th",7),_.YNc(23,ci,5,1,"td",10),_.BQk(),_.YNc(24,Wn,1,0,"tr",16),_.YNc(25,Ji,1,12,"tr",17),_.qZA()()(),_.YNc(26,Gn,3,3,"perun-web-apps-alert",18),_.YNc(27,Yn,3,3,"perun-web-apps-alert",18)),2&nt&&(_.Q6J("hidden",0===Bt.dataSource.filteredData.length||0===Bt.sponsoredMembers.length),_.xp6(1),_.Q6J("pageSizeOptions",Bt.pageSizeOptions)("dataLength",Bt.dataSource.filteredData.length)("tableId",Bt.tableId),_.xp6(1),_.Q6J("dataSource",Bt.dataSource),_.xp6(22),_.Q6J("matHeaderRowDef",Bt.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Bt.displayedColumns),_.xp6(1),_.Q6J("ngIf",0===Bt.dataSource.filteredData.length&&0!==Bt.sponsoredMembers.length),_.xp6(1),_.Q6J("ngIf",0===Bt.sponsoredMembers.length))},dependencies:[E.sg,E.O5,Qt.rH,oe.Hw,ee.lW,Nt.YE,Nt.nU,Rt.BZ,Rt.fO,Rt.as,Rt.w1,Rt.Dz,Rt.nj,Rt.ge,Rt.ev,Rt.XQ,Rt.Gk,le.oG,v.gM,W.w,An.YH,Dt.l,V.X$,we.d,$t.D,xt.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),wt})();var Fi=h(96214);function Hi(wt,an){if(1&wt&&(_.TgZ(0,"button",10),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(),Bt=_.MAs(9);_.Q6J("disabled",nt.findSponsorsAuth&&0===nt.voSponsors.length)("matMenuTriggerFor",Bt),_.xp6(1),_.hij(" ",_.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function _i(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCreate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function gi(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onGenerate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function Pr(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",12),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onSponsorExistingMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ir(wt,an){1&wt&&_._UZ(0,"mat-spinner",13)}function fr(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"app-sponsored-members-list",14),_.NdJ("refreshTable",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.refresh())}),_.qZA()}if(2&wt){const nt=_.oxw();_.Q6J("disableRouting",!nt.routeAuth)("selection",nt.selection)("filterValue",nt.searchString)("sponsoredMembers",nt.members)("tableId",nt.tableId)}}let rr=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke){this.membersManager=nt,this.dialog=Bt,this.authResolver=Gt,this.storeService=et,this.authzResolver=Ft,this.entityStorageService=Ke,this.members=[],this.voSponsors=[],this.selection=new c.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[Fe.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 nt=["SPONSOR"],Bt=new Map;this.authResolver.setRolesAuthorization(nt,this.vo,Bt),this.findSponsorsAuth=Bt.get(nt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(S.u.SPONSOR,this.vo.id,"Vo",[Fe.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(et=>{this.voSponsors=et,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 nt=(0,w.kZ)();nt.width="620px",nt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(Se,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}onGenerate(){const nt=(0,w.kZ)();nt.width="750px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(st,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}onSponsorExistingMember(){const nt=(0,w.kZ)();nt.width="650px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(mn,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(nt=>{this.selection.clear(),this.members=nt,this.setAuthRights(),this.loading=!1})}applyFilter(nt){this.searchString=nt}}return wt.id="VoSponsoredMembersComponent",wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(e.uq),_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.Ct),_.Y36(C.fb))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(nt,Bt){2&nt&&_.ekj("router-component",Bt.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(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Bt.refresh()}),_.qZA(),_.TgZ(5,"span",2),_.ALo(6,"translate"),_.YNc(7,Hi,3,5,"button",3),_.qZA(),_.TgZ(8,"mat-menu",null,4),_.YNc(10,_i,3,3,"button",5),_.YNc(11,gi,3,3,"button",5),_.qZA(),_.YNc(12,Pr,3,3,"button",6),_.TgZ(13,"perun-web-apps-immediate-filter",7),_.NdJ("filter",function(et){return Bt.applyFilter(et)}),_.qZA(),_.YNc(14,ir,1,0,"mat-spinner",8),_.YNc(15,fr,1,5,"app-sponsored-members-list",9),_.qZA()),2&nt&&(_.xp6(2),_.Oqu(_.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),_.xp6(3),_.s9C("matTooltip",_.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),_.Q6J("matTooltipDisabled",!(Bt.findSponsorsAuth&&0===Bt.voSponsors.length)),_.xp6(2),_.Q6J("ngIf",Bt.createAuth||Bt.generateAuth),_.xp6(3),_.Q6J("ngIf",Bt.createAuth),_.xp6(1),_.Q6J("ngIf",Bt.generateAuth),_.xp6(1),_.Q6J("ngIf",Bt.setSponsorshipAuth),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),_.xp6(1),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading))},dependencies:[E.O5,ee.lW,Te.Ou,v.gM,be.VK,be.OP,be.p6,Vi,Fi.t,P.L,V.X$]}),wt})()},25309:(Ye,pe,h)=>{"use strict";h.d(pe,{Y:()=>Ze});var e=h(32105),c=h(9244),A=h(32080),w=h(11717),g=h(95017),C=h(65412),T=h(24006),E=h(94650),S=h(89383),U=h(94364),_=h(36895),V=h(59549),z=h(284),Q=h(4859),te=h(51572),oe=h(10266);function ee(he,xe){1&he&&E._UZ(0,"mat-spinner",3)}function le(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),E._UZ(3,"input",5),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",6),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA()()(),E.TgZ(14,"div",7)(15,"button",8),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onCancel())}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"div",9),E.ALo(19,"translate"),E.TgZ(20,"button",10),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onSubmit())}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()}if(2&he){const j=E.oxw();E.xp6(3),E.s9C("placeholder",E.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),E.Q6J("formControl",j.fullNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),E.Q6J("formControl",j.shortNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),E.xp6(4),E.hij(" ",E.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),E.Q6J("matTooltipDisabled",j.shortNameCtrl.valid&&j.fullNameCtrl.valid),E.xp6(2),E.Q6J("disabled",j.shortNameCtrl.invalid||j.fullNameCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let de=(()=>{class he{constructor(j,R,G,se,$,Ee){this.dialogRef=j,this.data=R,this.notificator=G,this.voService=se,this.translate=$,this.router=Ee,$.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Oe=>this.successMessage=Oe)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern("^[\\w.-]+$"),T.kI.maxLength(33)]),this.fullNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(j=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",j.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return he.\u0275fac=function(j){return new(j||he)(E.Y36(C.so),E.Y36(C.WI),E.Y36(A.V6),E.Y36(e.YF),E.Y36(S.sK),E.Y36(U.F0))},he.\u0275cmp=E.Xpm({type:he,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(j,R){1&j&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ee,1,0,"mat-spinner",1),E.YNc(5,le,23,25,"div",2),E.qZA()),2&j&&(E.Tol(R.theme),E.xp6(2),E.Oqu(E.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),E.xp6(2),E.Q6J("ngIf",R.loading),E.xp6(1),E.Q6J("ngIf",!R.loading))},dependencies:[_.O5,V.TO,V.KE,z.Nt,T.Fj,T.JJ,T.Q7,T.oH,Q.lW,C.uh,C.xY,C.H8,te.Ou,oe.gM,S.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}}"]}),he})();var Te=h(10036),v=h(77968),L=h(97392),B=h(87831),W=h(96214),q=h(4235),ue=h(7434);function ye(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"button",9),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onCreateVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&he&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Me(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onRemoveVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&he){const j=E.oxw();E.Q6J("disabled",0===j.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function we(he,xe){1&he&&E._UZ(0,"mat-spinner",11)}function Ge(he,xe){if(1&he&&E._UZ(0,"perun-web-apps-vos-list",12),2&he){const j=E.oxw();E.Q6J("tableId",j.tableId)("displayedColumns",j.displayedColumns)("filterValue",j.filterValue)("recentIds",j.recentIds)("selection",j.selection)("vos",j.vos)}}const ce=function(){return{color:"black"}};let Ze=(()=>{class he{constructor(j,R,G,se,$,Ee){this.sideMenuService=j,this.voService=R,this.guiAuthResolver=G,this.dialog=se,this.notificator=$,this.apiRequest=Ee,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Te.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(j=>{this.vos=j,this.recentIds=(0,c.vL)("vos"),this.loading=!1},j=>{const R=j.error;"PrivilegeException"===R.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(R)})}applyFilter(j){this.filterValue=j}onCreateVo(){const j=(0,c.kZ)();j.width="610px",j.data={theme:"vo-theme"},this.dialog.open(de,j).afterClosed().subscribe(G=>{G&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const j=(0,c.kZ)();j.width="500px",j.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,j).afterClosed().subscribe(G=>{G&&this.refreshTable()})}}return he.id="VoSelectPageComponent",he.\u0275fac=function(j){return new(j||he)(E.Y36(v.D),E.Y36(e.YF),E.Y36(A.x4),E.Y36(C.uw),E.Y36(A.V6),E.Y36(A.F5))},he.\u0275cmp=E.Xpm({type:he,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(j,R){2&j&&E.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(j,R){1&j&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return R.refreshTable()}),E.qZA(),E.YNc(7,ye,3,3,"button",4),E.YNc(8,Me,3,4,"button",5),E.TgZ(9,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(se){return R.applyFilter(se)}),E.qZA(),E.YNc(10,we,1,0,"mat-spinner",7),E.YNc(11,Ge,1,6,"perun-web-apps-vos-list",8),E.qZA()),2&j&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(10,ce)),E.xp6(1),E.hij(" ",E.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),E.xp6(3),E.Q6J("ngIf",R.createAuth),E.xp6(1),E.Q6J("ngIf",R.deleteAuth),E.xp6(1),E.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",R.loading),E.xp6(1),E.Q6J("ngIf",!R.loading))},dependencies:[_.O5,_.PC,L.Hw,Q.lW,te.Ou,B.Z,W.t,q.W,ue.L,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),he})()},33246:(Ye,pe,h)=>{"use strict";var e=h(11481),c=h(94650),A=h(94364);let w=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(D,k){}}),J})();var g=h(32105),C=h(32080),T=h(9244),E=h(74281),S=h(77968),U=h(89383),_=h(65412),V=h(36895),z=h(24006),Q=h(97392),te=h(23267),oe=h(4859),ee=h(56709),le=h(51572),de=h(10266),Te=h(87831),v=h(24179),L=h(62109),B=h(74010);function W(J,O){1&J&&c._UZ(0,"mat-spinner",7)}const q=function(){return["id","recent","shortName","name"]};function ue(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-vos-list",8),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(4,q))("recentIds",D.recentIds)("vos",D.objects)}}const ye=function(){return["id","recent","vo","name","description"]};function Me(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-groups-list",9),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(4,ye))("groups",D.objects)("recentIds",D.recentIds)}}const we=function(){return["id","recent","name","vo","facility"]};function Ge(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-resources-list",10),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(5,we))("resources",D.objects)("recentIds",D.recentIds)("routingVo",!0)}}const ce=function(){return["id","recent","name","description"]};function Ze(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-facilities-list",11),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,ce))("facilities",D.objects)("pageSizeOptions",null)("recentIds",D.recentIds)}}function he(J,O){if(1&J&&(c.TgZ(0,"div"),c.YNc(1,ue,2,5,"span",6),c.YNc(2,Me,2,5,"span",6),c.YNc(3,Ge,2,6,"span",6),c.YNc(4,Ze,2,5,"span",6),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("ngIf","Vo"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Group"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Resource"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Facility"===D.primaryObject)}}let xe=(()=>{class J{constructor(D,k,Ie){this.authzResolver=D,this.guiAuthResolver=k,this.resourceService=Ie,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(D=>{this.objects=D,this.recentIds=(0,T.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D,this.recentIds=(0,T.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(D=>{this.objects=D,this.recentIds=(0,T.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D.map(k=>({facility:k})),this.recentIds=(0,T.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Ct),c.Y36(C.x4),c.Y36(g.xk))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1),c._UZ(2,"mat-icon",2),c._uU(3),c.ALo(4,"translate"),c.TgZ(5,"span",3),c.ALo(6,"translate"),c.TgZ(7,"mat-icon",4),c._uU(8,"info_outline"),c.qZA()()(),c.YNc(9,W,1,0,"mat-spinner",5),c.YNc(10,he,5,4,"div",6),c.qZA()),2&D&&(c.xp6(2),c.Q6J("svgIcon",k.svgIcon),c.xp6(1),c.hij(" ",c.lcZ(4,5,k.title)," "),c.xp6(2),c.s9C("matTooltip",c.lcZ(6,7,k.roleTooltipInfo)),c.xp6(4),c.Q6J("ngIf",k.loading),c.xp6(1),c.Q6J("ngIf",!k.loading))},dependencies:[V.O5,Q.Hw,le.Ou,de.gM,Te.Z,v.W,L.C,B.X,U.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}"]}),J})();var j=h(3238),R=h(98380);function G(J,O){1&J&&c._UZ(0,"mat-spinner",3)}function se(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",4),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function $(J,O){if(1&J&&(c.TgZ(0,"div",7)(1,"a",8)(2,"span",9),c._uU(3),c.qZA(),c._UZ(4,"mat-icon",10),c.TgZ(5,"p",11),c._uU(6),c.qZA()()()),2&J){const D=O.$implicit;c.xp6(1),c.Gre("",D.style," item-itself"),c.s9C("matTooltip",D.tooltip),c.Q6J("routerLink",D.url),c.xp6(2),c.Oqu(D.type),c.xp6(1),c.Q6J("svgIcon",D.cssIcon),c.xp6(2),c.Oqu(D.label)}}function Ee(J,O){if(1&J&&(c.TgZ(0,"div",5),c.YNc(1,$,7,8,"div",6),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("ngForOf",D.items)}}let Oe=(()=>{class J{constructor(D,k,Ie,it){this.vosManager=D,this.groupsManager=k,this.authResolver=Ie,this.facilitiesManager=it,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,T.j4)("recent");for(const D of this.recentItems)switch(D.type){case"Vo":this.vosIds.push(D.id);break;case"Group":this.groupsIds.push(D.id);break;case"Facility":this.facilitiesIds.push(D.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(D=>{this.vos=D,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(D=>{this.groups=D,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(D=>{this.facilities=D,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const D of this.recentItems)switch(D.type){case"Vo":{const k=this.vos.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${k.id}`,label:k.name,tooltip:k.name,style:"vo-btn",type:"Organization"});break}case"Group":{const k=this.groups.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-group",url:`/organizations/${k.voId}/groups/${k.id}`,label:k.shortName,tooltip:`${D.voName} : ${k.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const k=this.facilities.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${k.id}`,label:k.name,tooltip:k.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.YF),c.Y36(g.ff),c.Y36(C.x4),c.Y36(g.IQ))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.YNc(0,G,1,0,"mat-spinner",0),c.YNc(1,se,3,3,"perun-web-apps-alert",1),c.YNc(2,Ee,2,1,"div",2)),2&D&&(c.Q6J("ngIf",k.loading),c.xp6(1),c.Q6J("ngIf",0===k.items.length&&!k.loading),c.xp6(1),c.Q6J("ngIf",k.items.length>0))},dependencies:[V.sg,V.O5,A.yS,Q.Hw,le.Ou,de.gM,j.wG,R.w,U.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}"]}),J})();var ct=h(31359);function Xe(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"div")(1,"mat-checkbox",8),c.NdJ("change",function(Ie){const It=c.CHM(D).$implicit,Ot=c.oxw();return c.KtG(Ie?Ot.changeRoleView(It):null)}),c._uU(2),c.ALo(3,"translate"),c.qZA()()}if(2&J){const D=O.$implicit,k=c.oxw();c.xp6(1),c.Q6J("checked",k.isRoleShowed(D)),c.xp6(1),c.Oqu(c.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+D))}}function _t(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){c.CHM(D);const Ie=c.oxw(2);return c.KtG(Ie.rightSettingOpened=!0)}),c.TgZ(1,"mat-icon"),c._uU(2,"settings"),c.qZA()()}}function Je(J,O){1&J&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function gt(J,O){1&J&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Y(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){c.CHM(D);const Ie=c.oxw(3);return c.KtG(Ie.goToUserProfile())}),c.TgZ(1,"mat-icon",24),c._uU(2,"exit_to_app"),c.qZA(),c._uU(3),c.ALo(4,"translate"),c.qZA()}if(2&J){const D=c.oxw(3);c.xp6(3),c.AsE("",c.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",D.userProfileName," ")}}const Ce=function(){return["/myProfile"]};function ae(J,O){if(1&J&&(c.TgZ(0,"div")(1,"div",16)(2,"div",17),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.TgZ(5,"div",18),c.YNc(6,Je,3,3,"span",14),c.YNc(7,gt,3,3,"span",14),c.qZA(),c.TgZ(8,"div",19)(9,"button",20),c._UZ(10,"mat-icon",21),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.YNc(13,Y,5,4,"button",22),c.qZA()()()),2&J){const D=c.oxw(2);c.xp6(3),c.hij(" ",c.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),c.xp6(3),c.Q6J("ngIf",!D.userProfileUrl),c.xp6(1),c.Q6J("ngIf",D.userProfileUrl),c.xp6(2),c.Q6J("routerLink",c.DdM(10,Ce)),c.xp6(2),c.hij(" ",c.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),c.xp6(2),c.Q6J("ngIf",D.userProfileUrl)}}function re(J,O){1&J&&(c.TgZ(0,"span")(1,"div",3),c._uU(2),c.ALo(3,"translate"),c.qZA(),c._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),c.qZA()),2&J&&(c.xp6(2),c.hij(" ",c.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function Se(J,O){1&J&&(c.TgZ(0,"div",27),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Fe(J,O){if(1&J&&c._UZ(0,"app-perun-web-apps-dashboard-card",30),2&J){const D=c.oxw().$implicit,k=c.oxw(3);c.Q6J("roleName",D)("role",k.roles[D])}}function be(J,O){if(1&J&&(c.TgZ(0,"div",28),c.YNc(1,Fe,1,2,"app-perun-web-apps-dashboard-card",29),c.qZA()),2&J){const D=O.$implicit,k=c.oxw(3);c.xp6(1),c.Q6J("ngIf",k.isRoleShowed(D))}}function Ue(J,O){if(1&J&&(c.TgZ(0,"div"),c.YNc(1,re,5,3,"span",14),c.YNc(2,Se,3,3,"div",25),c.TgZ(3,"div"),c.YNc(4,be,2,1,"div",26),c.qZA()()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("ngIf",D.recentlyViewedShow),c.xp6(1),c.Q6J("ngIf",D.rolesToHide.toString()!==D.roleNames.toString()),c.xp6(2),c.Q6J("ngForOf",D.roleNames)}}function P(J,O){if(1&J&&(c.TgZ(0,"div",9)(1,"h1",10),c._UZ(2,"mat-icon",11),c.TgZ(3,"span",12),c._uU(4),c.ALo(5,"translate"),c.ALo(6,"userFullName"),c.qZA(),c.YNc(7,_t,3,0,"button",13),c.qZA(),c.YNc(8,ae,14,11,"div",14),c.YNc(9,Ue,5,3,"div",14),c.qZA()),2&J){const D=c.oxw();c.xp6(4),c.AsE("",c.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",c.lcZ(6,7,D.user),""),c.xp6(3),c.Q6J("ngIf",!D.isOnlySelfRole),c.xp6(1),c.Q6J("ngIf",D.isOnlySelfRole),c.xp6(1),c.Q6J("ngIf",!D.isOnlySelfRole)}}let H=(()=>{class J{constructor(D,k,Ie,it,It,Ot,Zt,en,fn,vn){this.userManager=D,this.storeService=k,this.sideMenuService=Ie,this.route=it,this.router=It,this.notificator=Ot,this.translateService=Zt,this.dialog=en,this.apiRequestConfiguration=fn,this.otherApplicationService=vn,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"],Zt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Bn=>this.mailSuccessMessage=Bn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const D=Object.keys(this.roles);this.isOnlySelfRole=D.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(k=>D.includes(k)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(D){if(this.isRoleShowed(D)){const k=[];for(const Ie of this.roleNames)this.isRoleShowed(Ie)||k.push(Ie),Ie===D&&k.push(Ie);this.rolesToHide=k}else this.rolesToHide=this.rolesToHide.filter(k=>k!==D);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(D){return!this.rolesToHide.includes(D)}validatePreferredMailChange(){const D=this.route.snapshot.queryParamMap,k=D.get("token"),Ie=D.get("u");k&&Ie&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(k,Number.parseInt(Ie,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const it=(0,T.kZ)();it.width="600px",this.dialog.open(E.qD,it).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const D=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===D||D;const k=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===k?[]:k}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Fv),c.Y36(C.d6),c.Y36(S.D),c.Y36(A.gz),c.Y36(A.F0),c.Y36(C.V6),c.Y36(U.sK),c.Y36(_.uw),c.Y36(C.F5),c.Y36(C.jq))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("router-component",k.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(D,k){1&D&&(c.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),c.NdJ("openedChange",function(it){return k.rightSettingOpened=it}),c.TgZ(2,"div",2)(3,"div",3),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"mat-checkbox",4),c.NdJ("ngModelChange",function(it){return k.recentlyViewedShow=it})("change",function(it){return it?k.recentlyViewedChanged():null}),c._uU(8),c.ALo(9,"translate"),c.qZA()(),c.TgZ(10,"div",5),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.YNc(13,Xe,4,4,"div",6),c.qZA()(),c.TgZ(14,"mat-sidenav-content"),c.YNc(15,P,10,9,"div",7),c.qZA()()),2&D&&(c.xp6(1),c.Q6J("opened",k.rightSettingOpened),c.xp6(3),c.Oqu(c.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),c.xp6(3),c.Q6J("ngModel",k.recentlyViewedShow),c.xp6(1),c.Oqu(c.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),c.xp6(3),c.Oqu(c.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),c.xp6(2),c.Q6J("ngForOf",k.roleNames),c.xp6(2),c.Q6J("ngIf",void 0!==k.user))},dependencies:[V.sg,V.O5,A.rH,z.JJ,z.On,Q.Hw,te.JX,te.TM,te.Rh,oe.lW,ee.oG,xe,Oe,U.X$,ct.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}"]}),J})();var i=h(4235);let o=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"perun-web-apps-back-button"),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA()()),2&D&&(c.xp6(3),c.Oqu(c.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[i.W,U.X$]}),J})();var f=h(33604),l=h(59549),a=h(284),n=h(63189);let t=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,oe.ot,Q.Ps,A.Bz,f.ez,U.aw,l.lN,z.UX,a.c,n.r]}),J})(),r=(()=>{class J{constructor(D,k){this.auth=D,this.router=k}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.e8),c.Y36(A.F0))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"button",4),c.NdJ("click",function(){return k.startAuth()}),c._uU(7),c.ALo(8,"translate"),c.TgZ(9,"mat-icon"),c._uU(10," login "),c.qZA()()()()()),2&D&&(c.xp6(4),c.hij(" ",c.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),c.xp6(3),c.hij(" ",c.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[oe.lW,Q.Hw,U.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),J})();var s=h(41619);function d(J,O){if(1&J&&(c.TgZ(0,"div",8),c._UZ(1,"div",9),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("innerHTML",D.logo,c.oJD)}}function p(J,O){if(1&J&&(c.TgZ(0,"div",10),c._UZ(1,"div",11)(2,"mat-icon",12),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("innerHTML",D.logo,c.oJD)}}const M=function(J){return{color:J}};function _e(J,O){if(1&J&&(c.TgZ(0,"p",13),c._uU(1),c.qZA()),2&J){const D=c.oxw();c.Q6J("ngStyle",c.VKq(2,M,D.textColor)),c.xp6(1),c.hij(" ",D.headerTitle," ")}}const bt=function(J,O){return{background:J,color:O}},Vt=function(J,O){return{"min-height":J,"background-color":O}};let on=(()=>{class J{constructor(D,k,Ie,it){this.storeService=D,this.sanitizer=k,this.preferredLangService=Ie,this.translateService=it,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 D=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(D)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.d6),c.Y36(e.H7),c.Y36(C.BN),c.Y36(U.sK))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c.YNc(1,d,2,1,"div",1),c.YNc(2,p,3,1,"div",2),c.YNc(3,_e,2,4,"p",3),c.qZA(),c.TgZ(4,"div",4)(5,"div",5)(6,"div",6),c._UZ(7,"router-outlet"),c.qZA(),c.TgZ(8,"div",7),c._UZ(9,"perun-web-apps-footer"),c.qZA()()()),2&D&&(c.Q6J("ngStyle",c.WLB(5,bt,k.headerBackgroundColor,k.headerTextColor)),c.xp6(1),c.Q6J("ngIf","admin-gui"===k.application||"user-profile"===k.application||"consolidator"===k.application),c.xp6(1),c.Q6J("ngIf","publications"===k.application),c.xp6(1),c.Q6J("ngIf",!!k.headerTitle),c.xp6(2),c.Q6J("ngStyle",c.WLB(8,Vt,k.getContentInnerMinHeight(),k.contentBackgroundColor)))},dependencies:[V.O5,V.PC,Q.Hw,A.lC,s.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),J})();function Mt(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",8),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const je=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:f.t$},{path:"api-callback",component:w},{path:"login",component:r},{path:"service-access",component:(()=>{class J{constructor(D){this.authzService=D,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new z.p4(null,[z.kI.required]),this.passwordCtrl=new z.p4(null,[z.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(D=>{sessionStorage.setItem("baPrincipal",JSON.stringify(D)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Ct))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.YNc(6,Mt,3,3,"perun-web-apps-alert",3),c.TgZ(7,"mat-form-field",4)(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c._UZ(11,"input",5),c.TgZ(12,"mat-error"),c._uU(13),c.ALo(14,"translate"),c.qZA()(),c.TgZ(15,"mat-form-field",4)(16,"mat-label"),c._uU(17),c.ALo(18,"translate"),c.qZA(),c._UZ(19,"input",6),c.TgZ(20,"mat-error"),c._uU(21),c.ALo(22,"translate"),c.qZA()(),c.TgZ(23,"button",7),c.NdJ("click",function(){return k.startAuth()}),c._uU(24),c.ALo(25,"translate"),c.TgZ(26,"mat-icon"),c._uU(27," login "),c.qZA()()()()()),2&D&&(c.xp6(4),c.Oqu(c.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),c.xp6(2),c.Q6J("ngIf",k.wrongUsernameOrPassword),c.xp6(3),c.Oqu(c.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),c.xp6(2),c.Q6J("formControl",k.usernameCtrl),c.xp6(2),c.hij(" ",c.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),c.xp6(4),c.Oqu(c.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),c.xp6(2),c.Q6J("formControl",k.passwordCtrl)("type","password"),c.xp6(2),c.hij(" ",c.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),c.xp6(2),c.Q6J("disabled",k.usernameCtrl.invalid||k.passwordCtrl.invalid),c.xp6(1),c.hij(" ",c.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[V.O5,oe.lW,Q.Hw,l.TO,l.KE,l.hX,z.Fj,z.JJ,z.Q7,z.oH,a.Nt,R.w,U.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}"]}),J})()},{path:"organizations",loadChildren:()=>Promise.all([h.e(969),h.e(323),h.e(243),h.e(858)]).then(h.bind(h,60858)).then(J=>J.VosModule)},{path:"admin",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876)]).then(h.bind(h,62876)).then(J=>J.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876),h.e(243),h.e(958)]).then(h.bind(h,12958)).then(J=>J.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([h.e(969),h.e(374)]).then(h.bind(h,46374)).then(J=>J.UsersModule)},{path:"home",component:H},{path:"notAuthorized",component:f.y9},{path:"**",component:o}];let Pe=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[A.Bz.forRoot(je,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),A.Bz]}),J})();var Qe=h(72077),qe=h(14264);class Be{constructor(O,D="/assets/i18n/",k=".json"){this.http=O,this.prefix=D,this.suffix=k}getTranslation(O){return this.http.get(`${this.prefix}${O}${this.suffix}`)}}var me=h(80529),ve=h(37340);function tt(J){return new c.vHH(3e3,!1)}function Ji(){return typeof window<"u"&&typeof window.document<"u"}function Gn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Yn(J){switch(J.length){case 0:return new ve.ZN;case 1:return J[0];default:return new ve.ZE(J)}}function Vi(J,O,D,k,Ie=new Map,it=new Map){const It=[],Ot=[];let Zt=-1,en=null;if(k.forEach(fn=>{const vn=fn.get("offset"),Bn=vn==Zt,Vn=Bn&&en||new Map;fn.forEach((In,Nn)=>{let si=Nn,ri=In;if("offset"!==Nn)switch(si=O.normalizePropertyName(si,It),ri){case ve.k1:ri=Ie.get(Nn);break;case ve.l3:ri=it.get(Nn);break;default:ri=O.normalizeStyleValue(Nn,si,ri,It)}Vn.set(si,ri)}),Bn||Ot.push(Vn),en=Vn,Zt=vn}),It.length)throw function Z(J){return new c.vHH(3502,!1)}();return Ot}function Fi(J,O,D,k){switch(O){case"start":J.onStart(()=>k(D&&Hi(D,"start",J)));break;case"done":J.onDone(()=>k(D&&Hi(D,"done",J)));break;case"destroy":J.onDestroy(()=>k(D&&Hi(D,"destroy",J)))}}function Hi(J,O,D){const it=_i(J.element,J.triggerName,J.fromState,J.toState,O||J.phaseName,D.totalTime??J.totalTime,!!D.disabled),It=J._data;return null!=It&&(it._data=It),it}function _i(J,O,D,k,Ie="",it=0,It){return{element:J,triggerName:O,fromState:D,toState:k,phaseName:Ie,totalTime:it,disabled:!!It}}function gi(J,O,D){let k=J.get(O);return k||J.set(O,k=D),k}function Pr(J){const O=J.indexOf(":");return[J.substring(1,O),J.slice(O+1)]}let ir=(J,O)=>!1,fr=(J,O,D)=>[],rr=null;function wt(J){const O=J.parentNode||J.host;return O===rr?null:O}(Gn()||typeof Element<"u")&&(Ji()?(rr=(()=>document.documentElement)(),ir=(J,O)=>{for(;O;){if(O===J)return!0;O=wt(O)}return!1}):ir=(J,O)=>J.contains(O),fr=(J,O,D)=>{if(D)return Array.from(J.querySelectorAll(O));const k=J.querySelector(O);return k?[k]:[]});let Bt=null,Gt=!1;const Et=ir,Wt=fr;let wn=(()=>{class J{validateStyleProperty(D){return function et(J){Bt||(Bt=function Ke(){return typeof document<"u"?document.body:null}()||{},Gt=!!Bt.style&&"WebkitAppearance"in Bt.style);let O=!0;return Bt.style&&!function nt(J){return"ebkit"==J.substring(1,6)}(J)&&(O=J in Bt.style,!O&&Gt&&(O="Webkit"+J.charAt(0).toUpperCase()+J.slice(1)in Bt.style)),O}(D)}matchesElement(D,k){return!1}containsElement(D,k){return Et(D,k)}getParentElement(D){return wt(D)}query(D,k,Ie){return Wt(D,k,Ie)}computeStyle(D,k,Ie){return Ie||""}animate(D,k,Ie,it,It,Ot=[],Zt){return new ve.ZN(Ie,it)}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})(),zn=(()=>{class J{}return J.NOOP=new wn,J})();const mr="ng-enter",Vr="ng-leave",Si="ng-trigger",Tr=".ng-trigger",gr="ng-animating",ar=".ng-animating";function or(J){if("number"==typeof J)return J;const O=J.match(/^(-?[\.\d]+)(m?s)/);return!O||O.length<2?0:sr(parseFloat(O[1]),O[2])}function sr(J,O){return"s"===O?1e3*J:J}function _r(J,O,D){return J.hasOwnProperty("duration")?J:function Ar(J,O,D){let Ie,it=0,It="";if("string"==typeof J){const Ot=J.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ot)return O.push(tt()),{duration:0,delay:0,easing:""};Ie=sr(parseFloat(Ot[1]),Ot[2]);const Zt=Ot[3];null!=Zt&&(it=sr(parseFloat(Zt),Ot[4]));const en=Ot[5];en&&(It=en)}else Ie=J;if(!D){let Ot=!1,Zt=O.length;Ie<0&&(O.push(function at(){return new c.vHH(3100,!1)}()),Ot=!0),it<0&&(O.push(function Re(){return new c.vHH(3101,!1)}()),Ot=!0),Ot&&O.splice(Zt,0,tt())}return{duration:Ie,delay:it,easing:It}}(J,O,D)}function lr(J,O={}){return Object.keys(J).forEach(D=>{O[D]=J[D]}),O}function Fr(J){const O=new Map;return Object.keys(J).forEach(D=>{O.set(D,J[D])}),O}function $i(J,O=new Map,D){if(D)for(let[k,Ie]of D)O.set(k,Ie);for(let[k,Ie]of J)O.set(k,Ie);return O}function Ur(J,O,D){return D?O+":"+D+";":""}function Ki(J){let O="";for(let D=0;D{const it=er(Ie);D&&!D.has(Ie)&&D.set(Ie,J.style[it]),J.style[it]=k}),Gn()&&Ki(J))}function Xi(J,O){J.style&&(O.forEach((D,k)=>{const Ie=er(k);J.style[Ie]=""}),Gn()&&Ki(J))}function Jn(J){return Array.isArray(J)?1==J.length?J[0]:(0,ve.vP)(J):J}const Jr=new RegExp("{{\\s*(.+?)\\s*}}","g");function yr(J){let O=[];if("string"==typeof J){let D;for(;D=Jr.exec(J);)O.push(D[1]);Jr.lastIndex=0}return O}function Mi(J,O,D){const k=J.toString(),Ie=k.replace(Jr,(it,It)=>{let Ot=O[It];return null==Ot&&(D.push(function Pt(J){return new c.vHH(3003,!1)}()),Ot=""),Ot.toString()});return Ie==k?J:Ie}function jr(J){const O=[];let D=J.next();for(;!D.done;)O.push(D.value),D=J.next();return O}const ca=/-+([a-z0-9])/g;function er(J){return J.replace(ca,(...O)=>O[1].toUpperCase())}function Ai(J){return J.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Le(J,O,D){switch(O.type){case 7:return J.visitTrigger(O,D);case 0:return J.visitState(O,D);case 1:return J.visitTransition(O,D);case 2:return J.visitSequence(O,D);case 3:return J.visitGroup(O,D);case 4:return J.visitAnimate(O,D);case 5:return J.visitKeyframes(O,D);case 6:return J.visitStyle(O,D);case 8:return J.visitReference(O,D);case 9:return J.visitAnimateChild(O,D);case 10:return J.visitAnimateRef(O,D);case 11:return J.visitQuery(O,D);case 12:return J.visitStagger(O,D);default:throw function jt(J){return new c.vHH(3004,!1)}()}}function pt(J,O){return window.getComputedStyle(J)[O]}function Ci(J,O){const D=[];return"string"==typeof J?J.split(/\s*,\s*/).forEach(k=>function qn(J,O,D){if(":"==J[0]){const Zt=function di(J,O){switch(J){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(D,k)=>parseFloat(k)>parseFloat(D);case":decrement":return(D,k)=>parseFloat(k) *"}}(J,D);if("function"==typeof Zt)return void O.push(Zt);J=Zt}const k=J.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==k||k.length<4)return D.push(function rt(J){return new c.vHH(3015,!1)}()),O;const Ie=k[1],it=k[2],It=k[3];O.push(Ui(Ie,It));"<"==it[0]&&!("*"==Ie&&"*"==It)&&O.push(Ui(It,Ie))}(k,D,O)):D.push(J),D}const rn=new Set(["true","1"]),On=new Set(["false","0"]);function Ui(J,O){const D=rn.has(J)||On.has(J),k=rn.has(O)||On.has(O);return(Ie,it)=>{let It="*"==J||J==Ie,Ot="*"==O||O==it;return!It&&D&&"boolean"==typeof Ie&&(It=Ie?rn.has(J):On.has(J)),!Ot&&k&&"boolean"==typeof it&&(Ot=it?rn.has(O):On.has(O)),It&&Ot}}const hi=new RegExp("s*:selfs*,?","g");function wr(J,O,D,k){return new Ve(J).build(O,D,k)}class Ve{constructor(O){this._driver=O}build(O,D,k){const Ie=new ht(D);return this._resetContextStyleTimingState(Ie),Le(this,Jn(O),Ie)}_resetContextStyleTimingState(O){O.currentQuerySelector="",O.collectedStyles=new Map,O.collectedStyles.set("",new Map),O.currentTime=0}visitTrigger(O,D){let k=D.queryCount=0,Ie=D.depCount=0;const it=[],It=[];return"@"==O.name.charAt(0)&&D.errors.push(function Xt(){return new c.vHH(3006,!1)}()),O.definitions.forEach(Ot=>{if(this._resetContextStyleTimingState(D),0==Ot.type){const Zt=Ot,en=Zt.name;en.toString().split(/\s*,\s*/).forEach(fn=>{Zt.name=fn,it.push(this.visitState(Zt,D))}),Zt.name=en}else if(1==Ot.type){const Zt=this.visitTransition(Ot,D);k+=Zt.queryCount,Ie+=Zt.depCount,It.push(Zt)}else D.errors.push(function sn(){return new c.vHH(3007,!1)}())}),{type:7,name:O.name,states:it,transitions:It,queryCount:k,depCount:Ie,options:null}}visitState(O,D){const k=this.visitStyle(O.styles,D),Ie=O.options&&O.options.params||null;if(k.containsDynamicStyles){const it=new Set,It=Ie||{};k.styles.forEach(Ot=>{Ot instanceof Map&&Ot.forEach(Zt=>{yr(Zt).forEach(en=>{It.hasOwnProperty(en)||it.add(en)})})}),it.size&&(jr(it.values()),D.errors.push(function mn(J,O){return new c.vHH(3008,!1)}()))}return{type:0,name:O.name,style:k,options:Ie?{params:Ie}:null}}visitTransition(O,D){D.queryCount=0,D.depCount=0;const k=Le(this,Jn(O.animation),D);return{type:1,matchers:Ci(O.expr,D.errors),animation:k,queryCount:D.queryCount,depCount:D.depCount,options:Qn(O.options)}}visitSequence(O,D){return{type:2,steps:O.steps.map(k=>Le(this,k,D)),options:Qn(O.options)}}visitGroup(O,D){const k=D.currentTime;let Ie=0;const it=O.steps.map(It=>{D.currentTime=k;const Ot=Le(this,It,D);return Ie=Math.max(Ie,D.currentTime),Ot});return D.currentTime=Ie,{type:3,steps:it,options:Qn(O.options)}}visitAnimate(O,D){const k=function gn(J,O){if(J.hasOwnProperty("duration"))return J;if("number"==typeof J)return Xn(_r(J,O).duration,0,"");const D=J;if(D.split(/\s+/).some(it=>"{"==it.charAt(0)&&"{"==it.charAt(1))){const it=Xn(0,0,"");return it.dynamic=!0,it.strValue=D,it}const Ie=_r(D,O);return Xn(Ie.duration,Ie.delay,Ie.easing)}(O.timings,D.errors);D.currentAnimateTimings=k;let Ie,it=O.styles?O.styles:(0,ve.oB)({});if(5==it.type)Ie=this.visitKeyframes(it,D);else{let It=O.styles,Ot=!1;if(!It){Ot=!0;const en={};k.easing&&(en.easing=k.easing),It=(0,ve.oB)(en)}D.currentTime+=k.duration+k.delay;const Zt=this.visitStyle(It,D);Zt.isEmptyStep=Ot,Ie=Zt}return D.currentAnimateTimings=null,{type:4,timings:k,style:Ie,options:null}}visitStyle(O,D){const k=this._makeStyleAst(O,D);return this._validateStyleAst(k,D),k}_makeStyleAst(O,D){const k=[],Ie=Array.isArray(O.styles)?O.styles:[O.styles];for(let Ot of Ie)"string"==typeof Ot?Ot===ve.l3?k.push(Ot):D.errors.push(new c.vHH(3002,!1)):k.push(Fr(Ot));let it=!1,It=null;return k.forEach(Ot=>{if(Ot instanceof Map&&(Ot.has("easing")&&(It=Ot.get("easing"),Ot.delete("easing")),!it))for(let Zt of Ot.values())if(Zt.toString().indexOf("{{")>=0){it=!0;break}}),{type:6,styles:k,easing:It,offset:O.offset,containsDynamicStyles:it,options:null}}_validateStyleAst(O,D){const k=D.currentAnimateTimings;let Ie=D.currentTime,it=D.currentTime;k&&it>0&&(it-=k.duration+k.delay),O.styles.forEach(It=>{"string"!=typeof It&&It.forEach((Ot,Zt)=>{const en=D.collectedStyles.get(D.currentQuerySelector),fn=en.get(Zt);let vn=!0;fn&&(it!=Ie&&it>=fn.startTime&&Ie<=fn.endTime&&(D.errors.push(function Ct(J,O,D,k,Ie){return new c.vHH(3010,!1)}()),vn=!1),it=fn.startTime),vn&&en.set(Zt,{startTime:it,endTime:Ie}),D.options&&function eo(J,O,D){const k=O.params||{},Ie=yr(J);Ie.length&&Ie.forEach(it=>{k.hasOwnProperty(it)||D.push(function st(J){return new c.vHH(3001,!1)}())})}(Ot,D.options,D.errors)})})}visitKeyframes(O,D){const k={type:5,styles:[],options:null};if(!D.currentAnimateTimings)return D.errors.push(function Ut(){return new c.vHH(3011,!1)}()),k;let it=0;const It=[];let Ot=!1,Zt=!1,en=0;const fn=O.steps.map(ri=>{const Zi=this._makeStyleAst(ri,D);let nr=null!=Zi.offset?Zi.offset:function Kt(J){if("string"==typeof J)return null;let O=null;if(Array.isArray(J))J.forEach(D=>{if(D instanceof Map&&D.has("offset")){const k=D;O=parseFloat(k.get("offset")),k.delete("offset")}});else if(J instanceof Map&&J.has("offset")){const D=J;O=parseFloat(D.get("offset")),D.delete("offset")}return O}(Zi.styles),ki=0;return null!=nr&&(it++,ki=Zi.offset=nr),Zt=Zt||ki<0||ki>1,Ot=Ot||ki0&&it{const nr=Bn>0?Zi==Vn?1:Bn*Zi:It[Zi],ki=nr*si;D.currentTime=In+Nn.delay+ki,Nn.duration=ki,this._validateStyleAst(ri,D),ri.offset=nr,k.styles.push(ri)}),k}visitReference(O,D){return{type:8,animation:Le(this,Jn(O.animation),D),options:Qn(O.options)}}visitAnimateChild(O,D){return D.depCount++,{type:9,options:Qn(O.options)}}visitAnimateRef(O,D){return{type:10,animation:this.visitReference(O.animation,D),options:Qn(O.options)}}visitQuery(O,D){const k=D.currentQuerySelector,Ie=O.options||{};D.queryCount++,D.currentQuery=O;const[it,It]=function De(J){const O=!!J.split(/\s*,\s*/).find(D=>":self"==D);return O&&(J=J.replace(hi,"")),J=J.replace(/@\*/g,Tr).replace(/@\w+/g,D=>Tr+"-"+D.slice(1)).replace(/:animating/g,ar),[J,O]}(O.selector);D.currentQuerySelector=k.length?k+" "+it:it,gi(D.collectedStyles,D.currentQuerySelector,new Map);const Ot=Le(this,Jn(O.animation),D);return D.currentQuery=null,D.currentQuerySelector=k,{type:11,selector:it,limit:Ie.limit||0,optional:!!Ie.optional,includeSelf:It,animation:Ot,originalSelector:O.selector,options:Qn(O.options)}}visitStagger(O,D){D.currentQuery||D.errors.push(function $t(){return new c.vHH(3013,!1)}());const k="full"===O.timings?{duration:0,delay:0,easing:"full"}:_r(O.timings,D.errors,!0);return{type:12,animation:Le(this,Jn(O.animation),D),timings:k,options:null}}}class ht{constructor(O){this.errors=O,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qn(J){return J?(J=lr(J)).params&&(J.params=function Ae(J){return J?lr(J):null}(J.params)):J={},J}function Xn(J,O,D){return{duration:J,delay:O,easing:D}}function Bi(J,O,D,k,Ie,it,It=null,Ot=!1){return{type:1,element:J,keyframes:O,preStyleProps:D,postStyleProps:k,duration:Ie,delay:it,totalTime:Ie+it,easing:It,subTimeline:Ot}}class Rr{constructor(){this._map=new Map}get(O){return this._map.get(O)||[]}append(O,D){let k=this._map.get(O);k||this._map.set(O,k=[]),k.push(...D)}has(O){return this._map.has(O)}clear(){this._map.clear()}}const qs=new RegExp(":enter","g"),Qs=new RegExp(":leave","g");function Eo(J,O,D,k,Ie,it=new Map,It=new Map,Ot,Zt,en=[]){return(new To).buildKeyframes(J,O,D,k,Ie,it,It,Ot,Zt,en)}class To{buildKeyframes(O,D,k,Ie,it,It,Ot,Zt,en,fn=[]){en=en||new Rr;const vn=new to(O,D,en,Ie,it,fn,[]);vn.options=Zt;const Bn=Zt.delay?or(Zt.delay):0;vn.currentTimeline.delayNextStep(Bn),vn.currentTimeline.setStyles([It],null,vn.errors,Zt),Le(this,k,vn);const Vn=vn.timelines.filter(In=>In.containsAnimation());if(Vn.length&&Ot.size){let In;for(let Nn=Vn.length-1;Nn>=0;Nn--){const si=Vn[Nn];if(si.element===D){In=si;break}}In&&!In.allowOnlyTimelineStyles()&&In.setStyles([Ot],null,vn.errors,Zt)}return Vn.length?Vn.map(In=>In.buildKeyframes()):[Bi(D,[],[],[],0,Bn,"",!1)]}visitTrigger(O,D){}visitState(O,D){}visitTransition(O,D){}visitAnimateChild(O,D){const k=D.subInstructions.get(D.element);if(k){const Ie=D.createSubContext(O.options),it=D.currentTimeline.currentTime,It=this._visitSubInstructions(k,Ie,Ie.options);it!=It&&D.transformIntoNewTimeline(It)}D.previousNode=O}visitAnimateRef(O,D){const k=D.createSubContext(O.options);k.transformIntoNewTimeline(),this.visitReference(O.animation,k),D.transformIntoNewTimeline(k.currentTimeline.currentTime),D.previousNode=O}_visitSubInstructions(O,D,k){let it=D.currentTimeline.currentTime;const It=null!=k.duration?or(k.duration):null,Ot=null!=k.delay?or(k.delay):null;return 0!==It&&O.forEach(Zt=>{const en=D.appendInstructionToTimeline(Zt,It,Ot);it=Math.max(it,en.duration+en.delay)}),it}visitReference(O,D){D.updateOptions(O.options,!0),Le(this,O.animation,D),D.previousNode=O}visitSequence(O,D){const k=D.subContextCount;let Ie=D;const it=O.options;if(it&&(it.params||it.delay)&&(Ie=D.createSubContext(it),Ie.transformIntoNewTimeline(),null!=it.delay)){6==Ie.previousNode.type&&(Ie.currentTimeline.snapshotCurrentStyles(),Ie.previousNode=$r);const It=or(it.delay);Ie.delayNextStep(It)}O.steps.length&&(O.steps.forEach(It=>Le(this,It,Ie)),Ie.currentTimeline.applyStylesToKeyframe(),Ie.subContextCount>k&&Ie.transformIntoNewTimeline()),D.previousNode=O}visitGroup(O,D){const k=[];let Ie=D.currentTimeline.currentTime;const it=O.options&&O.options.delay?or(O.options.delay):0;O.steps.forEach(It=>{const Ot=D.createSubContext(O.options);it&&Ot.delayNextStep(it),Le(this,It,Ot),Ie=Math.max(Ie,Ot.currentTimeline.currentTime),k.push(Ot.currentTimeline)}),k.forEach(It=>D.currentTimeline.mergeTimelineCollectedStyles(It)),D.transformIntoNewTimeline(Ie),D.previousNode=O}_visitTiming(O,D){if(O.dynamic){const k=O.strValue;return _r(D.params?Mi(k,D.params,D.errors):k,D.errors)}return{duration:O.duration,delay:O.delay,easing:O.easing}}visitAnimate(O,D){const k=D.currentAnimateTimings=this._visitTiming(O.timings,D),Ie=D.currentTimeline;k.delay&&(D.incrementTime(k.delay),Ie.snapshotCurrentStyles());const it=O.style;5==it.type?this.visitKeyframes(it,D):(D.incrementTime(k.duration),this.visitStyle(it,D),Ie.applyStylesToKeyframe()),D.currentAnimateTimings=null,D.previousNode=O}visitStyle(O,D){const k=D.currentTimeline,Ie=D.currentAnimateTimings;!Ie&&k.hasCurrentStyleProperties()&&k.forwardFrame();const it=Ie&&Ie.easing||O.easing;O.isEmptyStep?k.applyEmptyStep(it):k.setStyles(O.styles,it,D.errors,D.options),D.previousNode=O}visitKeyframes(O,D){const k=D.currentAnimateTimings,Ie=D.currentTimeline.duration,it=k.duration,Ot=D.createSubContext().currentTimeline;Ot.easing=k.easing,O.styles.forEach(Zt=>{Ot.forwardTime((Zt.offset||0)*it),Ot.setStyles(Zt.styles,Zt.easing,D.errors,D.options),Ot.applyStylesToKeyframe()}),D.currentTimeline.mergeTimelineCollectedStyles(Ot),D.transformIntoNewTimeline(Ie+it),D.previousNode=O}visitQuery(O,D){const k=D.currentTimeline.currentTime,Ie=O.options||{},it=Ie.delay?or(Ie.delay):0;it&&(6===D.previousNode.type||0==k&&D.currentTimeline.hasCurrentStyleProperties())&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=$r);let It=k;const Ot=D.invokeQuery(O.selector,O.originalSelector,O.limit,O.includeSelf,!!Ie.optional,D.errors);D.currentQueryTotal=Ot.length;let Zt=null;Ot.forEach((en,fn)=>{D.currentQueryIndex=fn;const vn=D.createSubContext(O.options,en);it&&vn.delayNextStep(it),en===D.element&&(Zt=vn.currentTimeline),Le(this,O.animation,vn),vn.currentTimeline.applyStylesToKeyframe(),It=Math.max(It,vn.currentTimeline.currentTime)}),D.currentQueryIndex=0,D.currentQueryTotal=0,D.transformIntoNewTimeline(It),Zt&&(D.currentTimeline.mergeTimelineCollectedStyles(Zt),D.currentTimeline.snapshotCurrentStyles()),D.previousNode=O}visitStagger(O,D){const k=D.parentContext,Ie=D.currentTimeline,it=O.timings,It=Math.abs(it.duration),Ot=It*(D.currentQueryTotal-1);let Zt=It*D.currentQueryIndex;switch(it.duration<0?"reverse":it.easing){case"reverse":Zt=Ot-Zt;break;case"full":Zt=k.currentStaggerTime}const fn=D.currentTimeline;Zt&&fn.delayNextStep(Zt);const vn=fn.currentTime;Le(this,O.animation,D),D.previousNode=O,k.currentStaggerTime=Ie.currentTime-vn+(Ie.startTime-k.currentTimeline.startTime)}}const $r={};class to{constructor(O,D,k,Ie,it,It,Ot,Zt){this._driver=O,this.element=D,this.subInstructions=k,this._enterClassName=Ie,this._leaveClassName=it,this.errors=It,this.timelines=Ot,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$r,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new Gr(this._driver,D,0),Ot.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(O,D){if(!O)return;const k=O;let Ie=this.options;null!=k.duration&&(Ie.duration=or(k.duration)),null!=k.delay&&(Ie.delay=or(k.delay));const it=k.params;if(it){let It=Ie.params;It||(It=this.options.params={}),Object.keys(it).forEach(Ot=>{(!D||!It.hasOwnProperty(Ot))&&(It[Ot]=Mi(it[Ot],It,this.errors))})}}_copyOptions(){const O={};if(this.options){const D=this.options.params;if(D){const k=O.params={};Object.keys(D).forEach(Ie=>{k[Ie]=D[Ie]})}}return O}createSubContext(O=null,D,k){const Ie=D||this.element,it=new to(this._driver,Ie,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ie,k||0));return it.previousNode=this.previousNode,it.currentAnimateTimings=this.currentAnimateTimings,it.options=this._copyOptions(),it.updateOptions(O),it.currentQueryIndex=this.currentQueryIndex,it.currentQueryTotal=this.currentQueryTotal,it.parentContext=this,this.subContextCount++,it}transformIntoNewTimeline(O){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,O),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(O,D,k){const Ie={duration:D??O.duration,delay:this.currentTimeline.currentTime+(k??0)+O.delay,easing:""},it=new ts(this._driver,O.element,O.keyframes,O.preStyleProps,O.postStyleProps,Ie,O.stretchStartingKeyframe);return this.timelines.push(it),Ie}incrementTime(O){this.currentTimeline.forwardTime(this.currentTimeline.duration+O)}delayNextStep(O){O>0&&this.currentTimeline.delayNextStep(O)}invokeQuery(O,D,k,Ie,it,It){let Ot=[];if(Ie&&Ot.push(this.element),O.length>0){O=(O=O.replace(qs,"."+this._enterClassName)).replace(Qs,"."+this._leaveClassName);let en=this._driver.query(this.element,O,1!=k);0!==k&&(en=k<0?en.slice(en.length+k,en.length):en.slice(0,k)),Ot.push(...en)}return!it&&0==Ot.length&&It.push(function xt(J){return new c.vHH(3014,!1)}()),Ot}}class Gr{constructor(O,D,k,Ie){this._driver=O,this.element=D,this.startTime=k,this._elementTimelineStylesLookup=Ie,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(D),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(D,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(O){const D=1===this._keyframes.size&&this._pendingStyles.size;this.duration||D?(this.forwardTime(this.currentTime+O),D&&this.snapshotCurrentStyles()):this.startTime+=O}fork(O,D){return this.applyStylesToKeyframe(),new Gr(this._driver,O,D||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(O){this.applyStylesToKeyframe(),this.duration=O,this._loadKeyframe()}_updateStyle(O,D){this._localTimelineStyles.set(O,D),this._globalTimelineStyles.set(O,D),this._styleSummary.set(O,{time:this.currentTime,value:D})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(O){O&&this._previousKeyframe.set("easing",O);for(let[D,k]of this._globalTimelineStyles)this._backFill.set(D,k||ve.l3),this._currentKeyframe.set(D,ve.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(O,D,k,Ie){D&&this._previousKeyframe.set("easing",D);const it=Ie&&Ie.params||{},It=function ua(J,O){const D=new Map;let k;return J.forEach(Ie=>{if("*"===Ie){k=k||O.keys();for(let it of k)D.set(it,ve.l3)}else $i(Ie,D)}),D}(O,this._globalTimelineStyles);for(let[Zt,en]of It){const fn=Mi(en,it,k);var Ot;this._pendingStyles.set(Zt,fn),this._localTimelineStyles.has(Zt)||this._backFill.set(Zt,null!==(Ot=this._globalTimelineStyles.get(Zt))&&void 0!==Ot?Ot:ve.l3),this._updateStyle(Zt,fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((O,D)=>{this._currentKeyframe.set(D,O)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((O,D)=>{this._currentKeyframe.has(D)||this._currentKeyframe.set(D,O)}))}snapshotCurrentStyles(){for(let[O,D]of this._localTimelineStyles)this._pendingStyles.set(O,D),this._updateStyle(O,D)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const O=[];for(let D in this._currentKeyframe)O.push(D);return O}mergeTimelineCollectedStyles(O){O._styleSummary.forEach((D,k)=>{const Ie=this._styleSummary.get(k);(!Ie||D.time>Ie.time)&&this._updateStyle(k,D.value)})}buildKeyframes(){this.applyStylesToKeyframe();const O=new Set,D=new Set,k=1===this._keyframes.size&&0===this.duration;let Ie=[];this._keyframes.forEach((Ot,Zt)=>{const en=$i(Ot,new Map,this._backFill);en.forEach((fn,vn)=>{fn===ve.k1?O.add(vn):fn===ve.l3&&D.add(vn)}),k||en.set("offset",Zt/this.duration),Ie.push(en)});const it=O.size?jr(O.values()):[],It=D.size?jr(D.values()):[];if(k){const Ot=Ie[0],Zt=new Map(Ot);Ot.set("offset",0),Zt.set("offset",1),Ie=[Ot,Zt]}return Bi(this.element,Ie,it,It,this.duration,this.startTime,this.easing,!1)}}class ts extends Gr{constructor(O,D,k,Ie,it,It,Ot=!1){super(O,D,It.delay),this.keyframes=k,this.preStyleProps=Ie,this.postStyleProps=it,this._stretchStartingKeyframe=Ot,this.timings={duration:It.duration,delay:It.delay,easing:It.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let O=this.keyframes,{delay:D,duration:k,easing:Ie}=this.timings;if(this._stretchStartingKeyframe&&D){const it=[],It=k+D,Ot=D/It,Zt=$i(O[0]);Zt.set("offset",0),it.push(Zt);const en=$i(O[0]);en.set("offset",xa(Ot)),it.push(en);const fn=O.length-1;for(let vn=1;vn<=fn;vn++){let Bn=$i(O[vn]);const Vn=Bn.get("offset");Bn.set("offset",xa((D+Vn*k)/It)),it.push(Bn)}k=It,D=0,Ie="",O=it}return Bi(this.element,O,this.preStyleProps,this.postStyleProps,k,D,Ie,!0)}}function xa(J,O=3){const D=Math.pow(10,O-1);return Math.round(J*D)/D}class no{}const ns=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ha extends no{normalizePropertyName(O,D){return er(O)}normalizeStyleValue(O,D,k,Ie){let it="";const It=k.toString().trim();if(ns.has(D)&&0!==k&&"0"!==k)if("number"==typeof k)it="px";else{const Ot=k.match(/^[+-]?[\d\.]+([a-z]*)$/);Ot&&0==Ot[1].length&&Ie.push(function cn(J,O){return new c.vHH(3005,!1)}())}return It+it}}function yo(J,O,D,k,Ie,it,It,Ot,Zt,en,fn,vn,Bn){return{type:0,element:J,triggerName:O,isRemovalTransition:Ie,fromState:D,fromStyles:it,toState:k,toStyles:It,timelines:Ot,queriedElements:Zt,preStyleProps:en,postStyleProps:fn,totalTime:vn,errors:Bn}}const io={};class xi{constructor(O,D,k){this._triggerName=O,this.ast=D,this._stateStyles=k}match(O,D,k,Ie){return function pi(J,O,D,k,Ie){return J.some(it=>it(O,D,k,Ie))}(this.ast.matchers,O,D,k,Ie)}buildStyles(O,D,k){let Ie=this._stateStyles.get("*");return void 0!==O&&(Ie=this._stateStyles.get(O?.toString())||Ie),Ie?Ie.buildStyles(D,k):new Map}build(O,D,k,Ie,it,It,Ot,Zt,en,fn){var vn;const Bn=[],Vn=this.ast.options&&this.ast.options.params||io,Nn=this.buildStyles(k,Ot&&Ot.params||io,Bn),si=Zt&&Zt.params||io,ri=this.buildStyles(Ie,si,Bn),Zi=new Set,nr=new Map,ki=new Map,Ja="void"===Ie,ta={params:pa(si,Vn),delay:null===(vn=this.ast.options)||void 0===vn?void 0:vn.delay},zi=fn?[]:Eo(O,D,this.ast.animation,it,It,Nn,ri,ta,en,Bn);let Cr=0;if(zi.forEach(Br=>{Cr=Math.max(Br.duration+Br.delay,Cr)}),Bn.length)return yo(D,this._triggerName,k,Ie,Ja,Nn,ri,[],[],nr,ki,Cr,Bn);zi.forEach(Br=>{const fi=Br.element,Ao=gi(nr,fi,new Set);Br.preStyleProps.forEach(ba=>Ao.add(ba));const jo=gi(ki,fi,new Set);Br.postStyleProps.forEach(ba=>jo.add(ba)),fi!==D&&Zi.add(fi)});const _o=jr(Zi.values());return yo(D,this._triggerName,k,Ie,Ja,Nn,ri,zi,_o,nr,ki,Cr)}}function pa(J,O){const D=lr(O);for(const k in J)J.hasOwnProperty(k)&&null!=J[k]&&(D[k]=J[k]);return D}class is{constructor(O,D,k){this.styles=O,this.defaultParams=D,this.normalizer=k}buildStyles(O,D){const k=new Map,Ie=lr(this.defaultParams);return Object.keys(O).forEach(it=>{const It=O[it];null!==It&&(Ie[it]=It)}),this.styles.styles.forEach(it=>{"string"!=typeof it&&it.forEach((It,Ot)=>{It&&(It=Mi(It,Ie,D));const Zt=this.normalizer.normalizePropertyName(Ot,D);It=this.normalizer.normalizeStyleValue(Ot,Zt,It,D),k.set(Zt,It)})}),k}}class el{constructor(O,D,k){this.name=O,this.ast=D,this._normalizer=k,this.transitionFactories=[],this.states=new Map,D.states.forEach(Ie=>{this.states.set(Ie.name,new is(Ie.style,Ie.options&&Ie.options.params||{},k))}),as(this.states,"true","1"),as(this.states,"false","0"),D.transitions.forEach(Ie=>{this.transitionFactories.push(new xi(O,Ie,this.states))}),this.fallbackTransition=function tl(J,O,D){return new xi(J,{type:1,animation:{type:2,steps:[],options:null},matchers:[(It,Ot)=>!0],options:null,queryCount:0,depCount:0},O)}(O,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(O,D,k,Ie){return this.transitionFactories.find(It=>It.match(O,D,k,Ie))||null}matchStyles(O,D,k){return this.fallbackTransition.buildStyles(O,D,k)}}function as(J,O,D){J.has(O)?J.has(D)||J.set(D,J.get(O)):J.has(D)&&J.set(O,J.get(D))}const ro=new Rr;class qr{constructor(O,D,k){this.bodyNode=O,this._driver=D,this._normalizer=k,this._animations=new Map,this._playersById=new Map,this.players=[]}register(O,D){const k=[],it=wr(this._driver,D,k,[]);if(k.length)throw function ke(J){return new c.vHH(3503,!1)}();this._animations.set(O,it)}_buildPlayer(O,D,k){const Ie=O.element,it=Vi(0,this._normalizer,0,O.keyframes,D,k);return this._driver.animate(Ie,it,O.duration,O.delay,O.easing,[],!0)}create(O,D,k={}){const Ie=[],it=this._animations.get(O);let It;const Ot=new Map;if(it?(It=Eo(this._driver,D,it,mr,Vr,new Map,new Map,k,ro,Ie),It.forEach(fn=>{const vn=gi(Ot,fn.element,new Map);fn.postStyleProps.forEach(Bn=>vn.set(Bn,null))})):(Ie.push(function mt(){return new c.vHH(3300,!1)}()),It=[]),Ie.length)throw function St(J){return new c.vHH(3504,!1)}();Ot.forEach((fn,vn)=>{fn.forEach((Bn,Vn)=>{fn.set(Vn,this._driver.computeStyle(vn,Vn,ve.l3))})});const en=Yn(It.map(fn=>{const vn=Ot.get(fn.element);return this._buildPlayer(fn,new Map,vn)}));return this._playersById.set(O,en),en.onDestroy(()=>this.destroy(O)),this.players.push(en),en}destroy(O){const D=this._getPlayer(O);D.destroy(),this._playersById.delete(O);const k=this.players.indexOf(D);k>=0&&this.players.splice(k,1)}_getPlayer(O){const D=this._playersById.get(O);if(!D)throw function tn(J){return new c.vHH(3301,!1)}();return D}listen(O,D,k,Ie){const it=_i(D,"","","");return Fi(this._getPlayer(O),k,it,Ie),()=>{}}command(O,D,k,Ie){if("register"==k)return void this.register(O,Ie[0]);if("create"==k)return void this.create(O,D,Ie[0]||{});const it=this._getPlayer(O);switch(k){case"play":it.play();break;case"pause":it.pause();break;case"reset":it.reset();break;case"restart":it.restart();break;case"finish":it.finish();break;case"init":it.init();break;case"setPosition":it.setPosition(parseFloat(Ie[0]));break;case"destroy":this.destroy(O)}}}const Da="ng-animate-queued",ao="ng-animate-disabled",il=[],Mo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ji="__ng_removed";class oo{constructor(O,D=""){this.namespaceId=D;const k=O&&O.hasOwnProperty("value");if(this.value=function lo(J){return J??null}(k?O.value:O),k){const it=lr(O);delete it.value,this.options=it}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(O){const D=O.params;if(D){const k=this.options.params;Object.keys(D).forEach(Ie=>{null==k[Ie]&&(k[Ie]=D[Ie])})}}}const fa="void",xo=new oo(fa);class rl{constructor(O,D,k){this.id=O,this.hostElement=D,this._engine=k,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+O,Gi(D,this._hostClassName)}listen(O,D,k,Ie){if(!this._triggers.has(D))throw function En(J,O){return new c.vHH(3302,!1)}();if(null==k||0==k.length)throw function jn(J){return new c.vHH(3303,!1)}();if(!function ss(J){return"start"==J||"done"==J}(k))throw function Ln(J,O){return new c.vHH(3400,!1)}();const it=gi(this._elementListeners,O,[]),It={name:D,phase:k,callback:Ie};it.push(It);const Ot=gi(this._engine.statesByElement,O,new Map);return Ot.has(D)||(Gi(O,Si),Gi(O,Si+"-"+D),Ot.set(D,xo)),()=>{this._engine.afterFlush(()=>{const Zt=it.indexOf(It);Zt>=0&&it.splice(Zt,1),this._triggers.has(D)||Ot.delete(D)})}}register(O,D){return!this._triggers.has(O)&&(this._triggers.set(O,D),!0)}_getTrigger(O){const D=this._triggers.get(O);if(!D)throw function Kn(J){return new c.vHH(3401,!1)}();return D}trigger(O,D,k,Ie=!0){const it=this._getTrigger(D),It=new ma(this.id,D,O);let Ot=this._engine.statesByElement.get(O);Ot||(Gi(O,Si),Gi(O,Si+"-"+D),this._engine.statesByElement.set(O,Ot=new Map));let Zt=Ot.get(D);const en=new oo(k,this.id);if(!(k&&k.hasOwnProperty("value"))&&Zt&&en.absorbOptions(Zt.options),Ot.set(D,en),Zt||(Zt=xo),en.value!==fa&&Zt.value===en.value){if(!function ol(J,O){const D=Object.keys(J),k=Object.keys(O);if(D.length!=k.length)return!1;for(let Ie=0;Ie{Xi(O,si),Ii(O,ri)})}return}const Bn=gi(this._engine.playersByElement,O,[]);Bn.forEach(Nn=>{Nn.namespaceId==this.id&&Nn.triggerName==D&&Nn.queued&&Nn.destroy()});let Vn=it.matchTransition(Zt.value,en.value,O,en.params),In=!1;if(!Vn){if(!Ie)return;Vn=it.fallbackTransition,In=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:D,transition:Vn,fromState:Zt,toState:en,player:It,isFallbackTransition:In}),In||(Gi(O,Da),It.onStart(()=>{Dr(O,Da)})),It.onDone(()=>{let Nn=this.players.indexOf(It);Nn>=0&&this.players.splice(Nn,1);const si=this._engine.playersByElement.get(O);if(si){let ri=si.indexOf(It);ri>=0&&si.splice(ri,1)}}),this.players.push(It),Bn.push(It),It}deregister(O){this._triggers.delete(O),this._engine.statesByElement.forEach(D=>D.delete(O)),this._elementListeners.forEach((D,k)=>{this._elementListeners.set(k,D.filter(Ie=>Ie.name!=O))})}clearElementCache(O){this._engine.statesByElement.delete(O),this._elementListeners.delete(O);const D=this._engine.playersByElement.get(O);D&&(D.forEach(k=>k.destroy()),this._engine.playersByElement.delete(O))}_signalRemovalForInnerTriggers(O,D){const k=this._engine.driver.query(O,Tr,!0);k.forEach(Ie=>{if(Ie[ji])return;const it=this._engine.fetchNamespacesByElement(Ie);it.size?it.forEach(It=>It.triggerLeaveAnimation(Ie,D,!1,!0)):this.clearElementCache(Ie)}),this._engine.afterFlushAnimationsDone(()=>k.forEach(Ie=>this.clearElementCache(Ie)))}triggerLeaveAnimation(O,D,k,Ie){const it=this._engine.statesByElement.get(O),It=new Map;if(it){const Ot=[];if(it.forEach((Zt,en)=>{if(It.set(en,Zt.value),this._triggers.has(en)){const fn=this.trigger(O,en,fa,Ie);fn&&Ot.push(fn)}}),Ot.length)return this._engine.markElementAsRemoved(this.id,O,!0,D,It),k&&Yn(Ot).onDone(()=>this._engine.processLeaveNode(O)),!0}return!1}prepareLeaveAnimationListeners(O){const D=this._elementListeners.get(O),k=this._engine.statesByElement.get(O);if(D&&k){const Ie=new Set;D.forEach(it=>{const It=it.name;if(Ie.has(It))return;Ie.add(It);const Zt=this._triggers.get(It).fallbackTransition,en=k.get(It)||xo,fn=new oo(fa),vn=new ma(this.id,It,O);this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:It,transition:Zt,fromState:en,toState:fn,player:vn,isFallbackTransition:!0})})}}removeNode(O,D){const k=this._engine;if(O.childElementCount&&this._signalRemovalForInnerTriggers(O,D),this.triggerLeaveAnimation(O,D,!0))return;let Ie=!1;if(k.totalAnimations){const it=k.players.length?k.playersByQueriedElement.get(O):[];if(it&&it.length)Ie=!0;else{let It=O;for(;It=It.parentNode;)if(k.statesByElement.get(It)){Ie=!0;break}}}if(this.prepareLeaveAnimationListeners(O),Ie)k.markElementAsRemoved(this.id,O,!1,D);else{const it=O[ji];(!it||it===Mo)&&(k.afterFlush(()=>this.clearElementCache(O)),k.destroyInnerAnimations(O),k._onRemovalComplete(O,D))}}insertNode(O,D){Gi(O,this._hostClassName)}drainQueuedTransitions(O){const D=[];return this._queue.forEach(k=>{const Ie=k.player;if(Ie.destroyed)return;const it=k.element,It=this._elementListeners.get(it);It&&It.forEach(Ot=>{if(Ot.name==k.triggerName){const Zt=_i(it,k.triggerName,k.fromState.value,k.toState.value);Zt._data=O,Fi(k.player,Ot.phase,Zt,Ot.callback)}}),Ie.markedForDestroy?this._engine.afterFlush(()=>{Ie.destroy()}):D.push(k)}),this._queue=[],D.sort((k,Ie)=>{const it=k.transition.ast.depCount,It=Ie.transition.ast.depCount;return 0==it||0==It?it-It:this._engine.driver.containsElement(k.element,Ie.element)?1:-1})}destroy(O){this.players.forEach(D=>D.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,O)}elementContainsData(O){let D=!1;return this._elementListeners.has(O)&&(D=!0),D=!!this._queue.find(k=>k.element===O)||D,D}}class so{constructor(O,D,k){this.bodyNode=O,this.driver=D,this._normalizer=k,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=(Ie,it)=>{}}_onRemovalComplete(O,D){this.onRemovalComplete(O,D)}get queuedPlayers(){const O=[];return this._namespaceList.forEach(D=>{D.players.forEach(k=>{k.queued&&O.push(k)})}),O}createNamespace(O,D){const k=new rl(O,D,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,D)?this._balanceNamespaceList(k,D):(this.newHostElements.set(D,k),this.collectEnterElement(D)),this._namespaceLookup[O]=k}_balanceNamespaceList(O,D){const k=this._namespaceList,Ie=this.namespacesByHostElement;if(k.length-1>=0){let It=!1,Ot=this.driver.getParentElement(D);for(;Ot;){const Zt=Ie.get(Ot);if(Zt){const en=k.indexOf(Zt);k.splice(en+1,0,O),It=!0;break}Ot=this.driver.getParentElement(Ot)}It||k.unshift(O)}else k.push(O);return Ie.set(D,O),O}register(O,D){let k=this._namespaceLookup[O];return k||(k=this.createNamespace(O,D)),k}registerTrigger(O,D,k){let Ie=this._namespaceLookup[O];Ie&&Ie.register(D,k)&&this.totalAnimations++}destroy(O,D){if(!O)return;const k=this._fetchNamespace(O);this.afterFlush(()=>{this.namespacesByHostElement.delete(k.hostElement),delete this._namespaceLookup[O];const Ie=this._namespaceList.indexOf(k);Ie>=0&&this._namespaceList.splice(Ie,1)}),this.afterFlushAnimationsDone(()=>k.destroy(D))}_fetchNamespace(O){return this._namespaceLookup[O]}fetchNamespacesByElement(O){const D=new Set,k=this.statesByElement.get(O);if(k)for(let Ie of k.values())if(Ie.namespaceId){const it=this._fetchNamespace(Ie.namespaceId);it&&D.add(it)}return D}trigger(O,D,k,Ie){if(Pa(D)){const it=this._fetchNamespace(O);if(it)return it.trigger(D,k,Ie),!0}return!1}insertNode(O,D,k,Ie){if(!Pa(D))return;const it=D[ji];if(it&&it.setForRemoval){it.setForRemoval=!1,it.setForMove=!0;const It=this.collectedLeaveElements.indexOf(D);It>=0&&this.collectedLeaveElements.splice(It,1)}if(O){const It=this._fetchNamespace(O);It&&It.insertNode(D,k)}Ie&&this.collectEnterElement(D)}collectEnterElement(O){this.collectedEnterElements.push(O)}markElementAsDisabled(O,D){D?this.disabledNodes.has(O)||(this.disabledNodes.add(O),Gi(O,ao)):this.disabledNodes.has(O)&&(this.disabledNodes.delete(O),Dr(O,ao))}removeNode(O,D,k,Ie){if(Pa(D)){const it=O?this._fetchNamespace(O):null;if(it?it.removeNode(D,Ie):this.markElementAsRemoved(O,D,!1,Ie),k){const It=this.namespacesByHostElement.get(D);It&&It.id!==O&&It.removeNode(D,Ie)}}else this._onRemovalComplete(D,Ie)}markElementAsRemoved(O,D,k,Ie,it){this.collectedLeaveElements.push(D),D[ji]={namespaceId:O,setForRemoval:Ie,hasAnimation:k,removedBeforeQueried:!1,previousTriggersValues:it}}listen(O,D,k,Ie,it){return Pa(D)?this._fetchNamespace(O).listen(D,k,Ie,it):()=>{}}_buildInstruction(O,D,k,Ie,it){return O.transition.build(this.driver,O.element,O.fromState.value,O.toState.value,k,Ie,O.fromState.options,O.toState.options,D,it)}destroyInnerAnimations(O){let D=this.driver.query(O,Tr,!0);D.forEach(k=>this.destroyActiveAnimationsForElement(k)),0!=this.playersByQueriedElement.size&&(D=this.driver.query(O,ar,!0),D.forEach(k=>this.finishActiveQueriedAnimationOnElement(k)))}destroyActiveAnimationsForElement(O){const D=this.playersByElement.get(O);D&&D.forEach(k=>{k.queued?k.markedForDestroy=!0:k.destroy()})}finishActiveQueriedAnimationOnElement(O){const D=this.playersByQueriedElement.get(O);D&&D.forEach(k=>k.finish())}whenRenderingDone(){return new Promise(O=>{if(this.players.length)return Yn(this.players).onDone(()=>O());O()})}processLeaveNode(O){var D;const k=O[ji];if(k&&k.setForRemoval){if(O[ji]=Mo,k.namespaceId){this.destroyInnerAnimations(O);const Ie=this._fetchNamespace(k.namespaceId);Ie&&Ie.clearElementCache(O)}this._onRemovalComplete(O,k.setForRemoval)}null!==(D=O.classList)&&void 0!==D&&D.contains(ao)&&this.markElementAsDisabled(O,!1),this.driver.query(O,".ng-animate-disabled",!0).forEach(Ie=>{this.markElementAsDisabled(Ie,!1)})}flush(O=-1){let D=[];if(this.newHostElements.size&&(this.newHostElements.forEach((k,Ie)=>this._balanceNamespaceList(k,Ie)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let k=0;kk()),this._flushFns=[],this._whenQuietFns.length){const k=this._whenQuietFns;this._whenQuietFns=[],D.length?Yn(D).onDone(()=>{k.forEach(Ie=>Ie())}):k.forEach(Ie=>Ie())}}reportError(O){throw function li(J){return new c.vHH(3402,!1)}()}_flushAnimations(O,D){const k=new Rr,Ie=[],it=new Map,It=[],Ot=new Map,Zt=new Map,en=new Map,fn=new Set;this.disabledNodes.forEach(yn=>{fn.add(yn);const Mn=this.driver.query(yn,".ng-animate-queued",!0);for(let Sn=0;Sn{const Sn=mr+Nn++;In.set(Mn,Sn),yn.forEach(Zn=>Gi(Zn,Sn))});const si=[],ri=new Set,Zi=new Set;for(let yn=0;ynri.add(Zn)):Zi.add(Mn))}const nr=new Map,ki=Hr(Bn,Array.from(ri));ki.forEach((yn,Mn)=>{const Sn=Vr+Nn++;nr.set(Mn,Sn),yn.forEach(Zn=>Gi(Zn,Sn))}),O.push(()=>{Vn.forEach((yn,Mn)=>{const Sn=In.get(Mn);yn.forEach(Zn=>Dr(Zn,Sn))}),ki.forEach((yn,Mn)=>{const Sn=nr.get(Mn);yn.forEach(Zn=>Dr(Zn,Sn))}),si.forEach(yn=>{this.processLeaveNode(yn)})});const Ja=[],ta=[];for(let yn=this._namespaceList.length-1;yn>=0;yn--)this._namespaceList[yn].drainQueuedTransitions(D).forEach(Sn=>{const Zn=Sn.player,yi=Sn.element;if(Ja.push(Zn),this.collectedEnterElements.length){const Wi=yi[ji];if(Wi&&Wi.setForMove){if(Wi.previousTriggersValues&&Wi.previousTriggersValues.has(Sn.triggerName)){const $a=Wi.previousTriggersValues.get(Sn.triggerName),br=this.statesByElement.get(Sn.element);if(br&&br.has(Sn.triggerName)){const Go=br.get(Sn.triggerName);Go.value=$a,br.set(Sn.triggerName,Go)}}return void Zn.destroy()}}const na=!vn||!this.driver.containsElement(vn,yi),Sr=nr.get(yi),Ir=In.get(yi),mi=this._buildInstruction(Sn,k,Ir,Sr,na);if(mi.errors&&mi.errors.length)return void ta.push(mi);if(na)return Zn.onStart(()=>Xi(yi,mi.fromStyles)),Zn.onDestroy(()=>Ii(yi,mi.toStyles)),void Ie.push(Zn);if(Sn.isFallbackTransition)return Zn.onStart(()=>Xi(yi,mi.fromStyles)),Zn.onDestroy(()=>Ii(yi,mi.toStyles)),void Ie.push(Zn);const bl=[];mi.timelines.forEach(Wi=>{Wi.stretchStartingKeyframe=!0,this.disabledNodes.has(Wi.element)||bl.push(Wi)}),mi.timelines=bl,k.append(yi,mi.timelines),It.push({instruction:mi,player:Zn,element:yi}),mi.queriedElements.forEach(Wi=>gi(Ot,Wi,[]).push(Zn)),mi.preStyleProps.forEach((Wi,$a)=>{if(Wi.size){let br=Zt.get($a);br||Zt.set($a,br=new Set),Wi.forEach((Go,Zo)=>br.add(Zo))}}),mi.postStyleProps.forEach((Wi,$a)=>{let br=en.get($a);br||en.set($a,br=new Set),Wi.forEach((Go,Zo)=>br.add(Zo))})});if(ta.length){const yn=[];ta.forEach(Mn=>{yn.push(function Wn(J,O){return new c.vHH(3505,!1)}())}),Ja.forEach(Mn=>Mn.destroy()),this.reportError(yn)}const zi=new Map,Cr=new Map;It.forEach(yn=>{const Mn=yn.element;k.has(Mn)&&(Cr.set(Mn,Mn),this._beforeAnimationBuild(yn.player.namespaceId,yn.instruction,zi))}),Ie.forEach(yn=>{const Mn=yn.element;this._getPreviousPlayers(Mn,!1,yn.namespaceId,yn.triggerName,null).forEach(Zn=>{gi(zi,Mn,[]).push(Zn),Zn.destroy()})});const _o=si.filter(yn=>tr(yn,Zt,en)),Br=new Map;Do(Br,this.driver,Zi,en,ve.l3).forEach(yn=>{tr(yn,Zt,en)&&_o.push(yn)});const Ao=new Map;Vn.forEach((yn,Mn)=>{Do(Ao,this.driver,new Set(yn),Zt,ve.k1)}),_o.forEach(yn=>{var Mn,Sn;const Zn=Br.get(yn),yi=Ao.get(yn);Br.set(yn,new Map([...Array.from(null!==(Mn=Zn?.entries())&&void 0!==Mn?Mn:[]),...Array.from(null!==(Sn=yi?.entries())&&void 0!==Sn?Sn:[])]))});const jo=[],ba=[],Cl={};It.forEach(yn=>{const{element:Mn,player:Sn,instruction:Zn}=yn;if(k.has(Mn)){if(fn.has(Mn))return Sn.onDestroy(()=>Ii(Mn,Zn.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime(Zn.totalTime),void Ie.push(Sn);let yi=Cl;if(Cr.size>1){let Sr=Mn;const Ir=[];for(;Sr=Sr.parentNode;){const mi=Cr.get(Sr);if(mi){yi=mi;break}Ir.push(Sr)}Ir.forEach(mi=>Cr.set(mi,yi))}const na=this._buildAnimation(Sn.namespaceId,Zn,zi,it,Ao,Br);if(Sn.setRealPlayer(na),yi===Cl)jo.push(Sn);else{const Sr=this.playersByElement.get(yi);Sr&&Sr.length&&(Sn.parentPlayer=Yn(Sr)),Ie.push(Sn)}}else Xi(Mn,Zn.fromStyles),Sn.onDestroy(()=>Ii(Mn,Zn.toStyles)),ba.push(Sn),fn.has(Mn)&&Ie.push(Sn)}),ba.forEach(yn=>{const Mn=it.get(yn.element);if(Mn&&Mn.length){const Sn=Yn(Mn);yn.setRealPlayer(Sn)}}),Ie.forEach(yn=>{yn.parentPlayer?yn.syncPlayerEvents(yn.parentPlayer):yn.destroy()});for(let yn=0;yn!na.destroyed);yi.length?al(this,Mn,yi):this.processLeaveNode(Mn)}return si.length=0,jo.forEach(yn=>{this.players.push(yn),yn.onDone(()=>{yn.destroy();const Mn=this.players.indexOf(yn);this.players.splice(Mn,1)}),yn.play()}),jo}elementContainsData(O,D){let k=!1;const Ie=D[ji];return Ie&&Ie.setForRemoval&&(k=!0),this.playersByElement.has(D)&&(k=!0),this.playersByQueriedElement.has(D)&&(k=!0),this.statesByElement.has(D)&&(k=!0),this._fetchNamespace(O).elementContainsData(D)||k}afterFlush(O){this._flushFns.push(O)}afterFlushAnimationsDone(O){this._whenQuietFns.push(O)}_getPreviousPlayers(O,D,k,Ie,it){let It=[];if(D){const Ot=this.playersByQueriedElement.get(O);Ot&&(It=Ot)}else{const Ot=this.playersByElement.get(O);if(Ot){const Zt=!it||it==fa;Ot.forEach(en=>{en.queued||!Zt&&en.triggerName!=Ie||It.push(en)})}}return(k||Ie)&&(It=It.filter(Ot=>!(k&&k!=Ot.namespaceId||Ie&&Ie!=Ot.triggerName))),It}_beforeAnimationBuild(O,D,k){const it=D.element,It=D.isRemovalTransition?void 0:O,Ot=D.isRemovalTransition?void 0:D.triggerName;for(const Zt of D.timelines){const en=Zt.element,fn=en!==it,vn=gi(k,en,[]);this._getPreviousPlayers(en,fn,It,Ot,D.toState).forEach(Vn=>{const In=Vn.getRealPlayer();In.beforeDestroy&&In.beforeDestroy(),Vn.destroy(),vn.push(Vn)})}Xi(it,D.fromStyles)}_buildAnimation(O,D,k,Ie,it,It){const Ot=D.triggerName,Zt=D.element,en=[],fn=new Set,vn=new Set,Bn=D.timelines.map(In=>{const Nn=In.element;fn.add(Nn);const si=Nn[ji];if(si&&si.removedBeforeQueried)return new ve.ZN(In.duration,In.delay);const ri=Nn!==Zt,Zi=function ls(J){const O=[];return So(J,O),O}((k.get(Nn)||il).map(zi=>zi.getRealPlayer())).filter(zi=>!!zi.element&&zi.element===Nn),nr=it.get(Nn),ki=It.get(Nn),Ja=Vi(0,this._normalizer,0,In.keyframes,nr,ki),ta=this._buildPlayer(In,Ja,Zi);if(In.subTimeline&&Ie&&vn.add(Nn),ri){const zi=new ma(O,Ot,Nn);zi.setRealPlayer(ta),en.push(zi)}return ta});en.forEach(In=>{gi(this.playersByQueriedElement,In.element,[]).push(In),In.onDone(()=>function os(J,O,D){let k=J.get(O);if(k){if(k.length){const Ie=k.indexOf(D);k.splice(Ie,1)}0==k.length&&J.delete(O)}return k}(this.playersByQueriedElement,In.element,In))}),fn.forEach(In=>Gi(In,gr));const Vn=Yn(Bn);return Vn.onDestroy(()=>{fn.forEach(In=>Dr(In,gr)),Ii(Zt,D.toStyles)}),vn.forEach(In=>{gi(Ie,In,[]).push(Vn)}),Vn}_buildPlayer(O,D,k){return D.length>0?this.driver.animate(O.element,D,O.duration,O.delay,O.easing,k):new ve.ZN(O.duration,O.delay)}}class ma{constructor(O,D,k){this.namespaceId=O,this.triggerName=D,this.element=k,this._player=new ve.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(O){this._containsRealPlayer||(this._player=O,this._queuedCallbacks.forEach((D,k)=>{D.forEach(Ie=>Fi(O,k,void 0,Ie))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(O.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(O){this.totalTime=O}syncPlayerEvents(O){const D=this._player;D.triggerCallback&&O.onStart(()=>D.triggerCallback("start")),O.onDone(()=>this.finish()),O.onDestroy(()=>this.destroy())}_queueEvent(O,D){gi(this._queuedCallbacks,O,[]).push(D)}onDone(O){this.queued&&this._queueEvent("done",O),this._player.onDone(O)}onStart(O){this.queued&&this._queueEvent("start",O),this._player.onStart(O)}onDestroy(O){this.queued&&this._queueEvent("destroy",O),this._player.onDestroy(O)}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(O){this.queued||this._player.setPosition(O)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(O){const D=this._player;D.triggerCallback&&D.triggerCallback(O)}}function Pa(J){return J&&1===J.nodeType}function Qr(J,O){const D=J.style.display;return J.style.display=O??"none",D}function Do(J,O,D,k,Ie){const it=[];D.forEach(Zt=>it.push(Qr(Zt)));const It=[];k.forEach((Zt,en)=>{const fn=new Map;Zt.forEach(vn=>{const Bn=O.computeStyle(en,vn,Ie);fn.set(vn,Bn),(!Bn||0==Bn.length)&&(en[ji]=Ia,It.push(en))}),J.set(en,fn)});let Ot=0;return D.forEach(Zt=>Qr(Zt,it[Ot++])),It}function Hr(J,O){const D=new Map;if(J.forEach(Ot=>D.set(Ot,[])),0==O.length)return D;const Ie=new Set(O),it=new Map;function It(Ot){if(!Ot)return 1;let Zt=it.get(Ot);if(Zt)return Zt;const en=Ot.parentNode;return Zt=D.has(en)?en:Ie.has(en)?1:It(en),it.set(Ot,Zt),Zt}return O.forEach(Ot=>{const Zt=It(Ot);1!==Zt&&D.get(Zt).push(Ot)}),D}function Gi(J,O){var D;null===(D=J.classList)||void 0===D||D.add(O)}function Dr(J,O){var D;null===(D=J.classList)||void 0===D||D.remove(O)}function al(J,O,D){Yn(D).onDone(()=>J.processLeaveNode(O))}function So(J,O){for(let D=0;DIe.add(it)):O.set(J,k),D.delete(J),!0}class Ra{constructor(O,D,k){this.bodyNode=O,this._driver=D,this._normalizer=k,this._triggerCache={},this.onRemovalComplete=(Ie,it)=>{},this._transitionEngine=new so(O,D,k),this._timelineEngine=new qr(O,D,k),this._transitionEngine.onRemovalComplete=(Ie,it)=>this.onRemovalComplete(Ie,it)}registerTrigger(O,D,k,Ie,it){const It=O+"-"+Ie;let Ot=this._triggerCache[It];if(!Ot){const Zt=[],fn=wr(this._driver,it,Zt,[]);if(Zt.length)throw function At(J,O){return new c.vHH(3404,!1)}();Ot=function rs(J,O,D){return new el(J,O,D)}(Ie,fn,this._normalizer),this._triggerCache[It]=Ot}this._transitionEngine.registerTrigger(D,Ie,Ot)}register(O,D){this._transitionEngine.register(O,D)}destroy(O,D){this._transitionEngine.destroy(O,D)}onInsert(O,D,k,Ie){this._transitionEngine.insertNode(O,D,k,Ie)}onRemove(O,D,k,Ie){this._transitionEngine.removeNode(O,D,Ie||!1,k)}disableAnimations(O,D){this._transitionEngine.markElementAsDisabled(O,D)}process(O,D,k,Ie){if("@"==k.charAt(0)){const[it,It]=Pr(k);this._timelineEngine.command(it,D,It,Ie)}else this._transitionEngine.trigger(O,D,k,Ie)}listen(O,D,k,Ie,it){if("@"==k.charAt(0)){const[It,Ot]=Pr(k);return this._timelineEngine.listen(It,D,Ot,it)}return this._transitionEngine.listen(O,D,k,Ie,it)}flush(O=-1){this._transitionEngine.flush(O)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Oa=(()=>{class J{constructor(D,k,Ie){this._element=D,this._startStyles=k,this._endStyles=Ie,this._state=0;let it=J.initialStylesByElement.get(D);it||J.initialStylesByElement.set(D,it=new Map),this._initialStyles=it}start(){this._state<1&&(this._startStyles&&Ii(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ii(this._element,this._initialStyles),this._endStyles&&(Ii(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(J.initialStylesByElement.delete(this._element),this._startStyles&&(Xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xi(this._element,this._endStyles),this._endStyles=null),Ii(this._element,this._initialStyles),this._state=3)}}return J.initialStylesByElement=new WeakMap,J})();function Ha(J){let O=null;return J.forEach((D,k)=>{(function co(J){return"display"===J||"position"===J})(k)&&(O=O||new Map,O.set(k,D))}),O}class zr{constructor(O,D,k,Ie){this.element=O,this.keyframes=D,this.options=k,this._specialStyles=Ie,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=k.duration,this._delay=k.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const O=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,O,this.options),this._finalKeyframe=O.length?O[O.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(O){const D=[];return O.forEach(k=>{D.push(Object.fromEntries(k))}),D}_triggerWebAnimation(O,D,k){return O.animate(this._convertKeyframesToObject(D),k)}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(O=>O()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}setPosition(O){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=O*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const O=new Map;this.hasStarted()&&this._finalKeyframe.forEach((k,Ie)=>{"offset"!==Ie&&O.set(Ie,this._finished?k:pt(this.element,Ie))}),this.currentSnapshot=O}triggerCallback(O){const D="start"===O?this._onStartFns:this._onDoneFns;D.forEach(k=>k()),D.length=0}}class sl{validateStyleProperty(O){return!0}validateAnimatableStyleProperty(O){return!0}matchesElement(O,D){return!1}containsElement(O,D){return Et(O,D)}getParentElement(O){return wt(O)}query(O,D,k){return Wt(O,D,k)}computeStyle(O,D,k){return window.getComputedStyle(O)[D]}animate(O,D,k,Ie,it,It=[]){const Zt={duration:k,delay:Ie,fill:0==Ie?"both":"forwards"};it&&(Zt.easing=it);const en=new Map,fn=It.filter(Vn=>Vn instanceof zr);(function Ne(J,O){return 0===J||0===O})(k,Ie)&&fn.forEach(Vn=>{Vn.currentSnapshot.forEach((In,Nn)=>en.set(Nn,In))});let vn=function Yr(J){return J.length?J[0]instanceof Map?J:J.map(O=>Fr(O)):[]}(D).map(Vn=>$i(Vn));vn=function ut(J,O,D){if(D.size&&O.length){let k=O[0],Ie=[];if(D.forEach((it,It)=>{k.has(It)||Ie.push(It),k.set(It,it)}),Ie.length)for(let it=1;itIt.set(Ot,pt(J,Ot)))}}return O}(O,vn,en);const Bn=function Kr(J,O){let D=null,k=null;return Array.isArray(O)&&O.length?(D=Ha(O[0]),O.length>1&&(k=Ha(O[O.length-1]))):O instanceof Map&&(D=Ha(O)),D||k?new Oa(J,D,k):null}(O,vn);return new zr(O,vn,Zt,Bn)}}let cs=(()=>{class J extends ve._j{constructor(D,k){super(),this._nextAnimationId=0,this._renderer=D.createRenderer(k.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(D){const k=this._nextAnimationId.toString();this._nextAnimationId++;const Ie=Array.isArray(D)?(0,ve.vP)(D):D;return Io(this._renderer,null,k,"register",[Ie]),new ds(k,this._renderer)}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(c.FYo),c.LFG(V.K0))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();class ds extends ve.LC{constructor(O,D){super(),this._id=O,this._renderer=D}create(O,D){return new us(this._id,O,D||{},this._renderer)}}class us{constructor(O,D,k,Ie){this.id=O,this.element=D,this._renderer=Ie,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",k)}_listen(O,D){return this._renderer.listen(this.element,`@@${this.id}:${O}`,D)}_command(O,...D){return Io(this._renderer,this.element,this.id,O,D)}onDone(O){this._listen("done",O)}onStart(O){this._listen("start",O)}onDestroy(O){this._listen("destroy",O)}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(O){this._command("setPosition",O)}getPosition(){var O,D;return null!==(O=null===(D=this._renderer.engine.players[+this.id])||void 0===D?void 0:D.getPosition())&&void 0!==O?O:0}}function Io(J,O,D,k,Ie){return J.setProperty(O,`@@${D}:${k}`,Ie)}const Ti="@.disabled";let Ba=(()=>{class J{constructor(D,k,Ie){this.delegate=D,this.engine=k,this._zone=Ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),k.onRemovalComplete=(it,It)=>{const Ot=It?.parentNode(it);Ot&&It.removeChild(Ot,it)}}createRenderer(D,k){const it=this.delegate.createRenderer(D,k);if(!(D&&k&&k.data&&k.data.animation)){let fn=this._rendererCache.get(it);return fn||(fn=new Po("",it,this.engine),this._rendererCache.set(it,fn)),fn}const It=k.id,Ot=k.id+"-"+this._currentId;this._currentId++,this.engine.register(Ot,D);const Zt=fn=>{Array.isArray(fn)?fn.forEach(Zt):this.engine.registerTrigger(It,Ot,D,fn.name,fn)};return k.data.animation.forEach(Zt),new Na(this,Ot,it,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(D,k,Ie){D>=0&&Dk(Ie)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(it=>{const[It,Ot]=it;It(Ot)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([k,Ie]))}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 J.\u0275fac=function(D){return new(D||J)(c.LFG(c.FYo),c.LFG(Ra),c.LFG(c.R0b))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();class Po{constructor(O,D,k){this.namespaceId=O,this.delegate=D,this.engine=k,this.destroyNode=this.delegate.destroyNode?Ie=>D.destroyNode(Ie):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(O,D){return this.delegate.createElement(O,D)}createComment(O){return this.delegate.createComment(O)}createText(O){return this.delegate.createText(O)}appendChild(O,D){this.delegate.appendChild(O,D),this.engine.onInsert(this.namespaceId,D,O,!1)}insertBefore(O,D,k,Ie=!0){this.delegate.insertBefore(O,D,k),this.engine.onInsert(this.namespaceId,D,O,Ie)}removeChild(O,D,k){this.engine.onRemove(this.namespaceId,D,this.delegate,k)}selectRootElement(O,D){return this.delegate.selectRootElement(O,D)}parentNode(O){return this.delegate.parentNode(O)}nextSibling(O){return this.delegate.nextSibling(O)}setAttribute(O,D,k,Ie){this.delegate.setAttribute(O,D,k,Ie)}removeAttribute(O,D,k){this.delegate.removeAttribute(O,D,k)}addClass(O,D){this.delegate.addClass(O,D)}removeClass(O,D){this.delegate.removeClass(O,D)}setStyle(O,D,k,Ie){this.delegate.setStyle(O,D,k,Ie)}removeStyle(O,D,k){this.delegate.removeStyle(O,D,k)}setProperty(O,D,k){"@"==D.charAt(0)&&D==Ti?this.disableAnimations(O,!!k):this.delegate.setProperty(O,D,k)}setValue(O,D){this.delegate.setValue(O,D)}listen(O,D,k){return this.delegate.listen(O,D,k)}disableAnimations(O,D){this.engine.disableAnimations(O,D)}}class Na extends Po{constructor(O,D,k,Ie){super(D,k,Ie),this.factory=O,this.namespaceId=D}setProperty(O,D,k){"@"==D.charAt(0)?"."==D.charAt(1)&&D==Ti?this.disableAnimations(O,k=void 0===k||!!k):this.engine.process(this.namespaceId,O,D.slice(1),k):this.delegate.setProperty(O,D,k)}listen(O,D,k){if("@"==D.charAt(0)){const Ie=function ka(J){switch(J){case"body":return document.body;case"document":return document;case"window":return window;default:return J}}(O);let it=D.slice(1),It="";return"@"!=it.charAt(0)&&([it,It]=function ga(J){const O=J.indexOf(".");return[J.substring(0,O),J.slice(O+1)]}(it)),this.engine.listen(this.namespaceId,Ie,it,It,Ot=>{this.factory.scheduleListenerCallback(Ot._data||-1,k,Ot)})}return this.delegate.listen(O,D,k)}}const ps=[{provide:ve._j,useClass:cs},{provide:no,useFactory:function Ro(){return new ha}},{provide:Ra,useClass:(()=>{class J extends Ra{constructor(D,k,Ie,it){super(D.body,k,Ie)}ngOnDestroy(){this.flush()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(zn),c.LFG(no),c.LFG(c.z2F))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})()},{provide:c.FYo,useFactory:function hs(J,O,D){return new Ba(J,O,D)},deps:[e.se,Ra,c.R0b]}],Va=[{provide:zn,useFactory:()=>new sl},{provide:c.QbO,useValue:"BrowserAnimations"},...ps],Fa=[{provide:zn,useClass:wn},{provide:c.QbO,useValue:"NoopAnimations"},...ps];let _a=(()=>{class J{static withConfig(D){return{ngModule:J,providers:D.disableAnimations?Fa:Va}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({providers:Va,imports:[e.b2]}),J})(),ho=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({providers:[C.e8],imports:[V.ez]}),J})();var Aa=h(81847),Ul=h(4732),cl=h(94856),ni=h(55857),jl=h(37240),Gl=h(15592),Zl=h(75234),zl=h(37380),dl=h(34904),Wl=h(85243),ul=h(68056),Ua=h(24219),Yl=h(25828),hl=h(10369),Di=h(14336),ja=h(25309),Ga=h(86353),Jl=h(3246),pl=h(57788),dr=h(80774),X=h(25610),ne=h(61639);let fe=(()=>{class J{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Aa.y.id,Ul.G.id,cl.c.id,ul.z.id,Ua.z.id,hl.w.id,Jl.T.id,Zl.y.id,Gl.u.id,jl.q.id,ne.C.id,ni.W.id,Di.Z.id,zl.o.id,dl.f.id,X._.id,Wl.j.id,Yl.t.id,pl.g.id,dr.F.id,ja.Y.id,Ga.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(D,k){return D.routeConfig===k.routeConfig}retrieve(D){const k=this.getKey(D);return this.handlers.has(k)?this.handlers.get(k).routeHandle:null}shouldAttach(D){if(!this.isUserNavigatingBack||!D.component)return!1;const k=this.handlers.get(this.getKey(D));return k&&this.getCurrentTimestamp()-k.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(D),{routeHandle:k,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(D){this.isUserNavigatingBack="back"===D}getComponentId(D){return D.id}getKey(D){return D.pathFromRoot.map(k=>k.url.map(Ie=>Ie.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();const He=new c.OlP("perun-api-service");let dt=(()=>{class J{constructor(D,k,Ie,it,It){this.http=D,this.storeService=k,this.authzSevice=Ie,this.titleService=it,this.utilsService=It}initializeColors(D,k){return new Promise(Ie=>{k.forEach(it=>{const It=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,It)}),D.forEach(it=>{const It=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,It),this.setEntityTheme(it.entity,It)}),Ie()})}setEntityTheme(D,k){const Ie=function yt(J){return[Ht(tinycolor(J).lighten(52),"50"),Ht(tinycolor(J).lighten(37),"100"),Ht(tinycolor(J).lighten(26),"200"),Ht(tinycolor(J).lighten(12),"300"),Ht(tinycolor(J).lighten(6),"400"),Ht(tinycolor(J),"500"),Ht(tinycolor(J).darken(6),"600"),Ht(tinycolor(J).darken(12),"700"),Ht(tinycolor(J).darken(18),"800"),Ht(tinycolor(J).darken(24),"900"),Ht(tinycolor(J).lighten(50).saturate(30),"A100"),Ht(tinycolor(J).lighten(30).saturate(30),"A200"),Ht(tinycolor(J).lighten(10).saturate(15),"A400"),Ht(tinycolor(J).lighten(5).saturate(5),"A700")]}(k);for(const it of Ie){const Zt=`--${D}-theme-primary-contrast-${it.name}`,en=it.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${D}-theme-primary-${it.name}`,`${it.red},${it.green},${it.blue}`),document.documentElement.style.setProperty(Zt,en)}}loadAppDefaultConfig(){return new Promise(D=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setDefaultConfig(k),D()})})}loadAppInstanceConfig(){return new Promise(D=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setInstanceConfig(k);const Ie=document.location.hostname;k?.brandings?.[Ie]&&this.storeService.setBanding(Ie),D()},()=>{D()})})}getNoCacheHeaders(){return new me.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(D=>{const k=document.querySelector("link[rel*='icon']")||document.createElement("link");k.type="image/x-icon",k.rel="shortcut icon",k.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(k),D()})}setApiUrl(){return new Promise(D=>{let k=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(k=k.replace("oauth","ba")),this.authzSevice.configuration.basePath=k,this.titleService.setTitle(this.storeService.get("document_title","en")),D()})}loadAppsConfig(){return new Promise((D,k)=>{this.utilsService.getAppsConfig().subscribe(Ie=>{this.storeService.setAppsConfig(Ie),D()},Ie=>k(Ie))})}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(me.eN),c.LFG(C.d6),c.LFG(g.Ct),c.LFG(e.Dx),c.LFG(g.FW))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Ht(J,O){const D=tinycolor(J),k=D.toRgb();return{name:O,hex:D.toHexString(),darkContrast:D.isLight(),red:k.r,green:k.g,blue:k.b}}let Jt=(()=>{class J{constructor(D,k){this.data=D,this.location=k}redirect(){this.location.go("/"),location.reload()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.WI),c.Y36(V.Ye))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,k){1&D&&(c.TgZ(0,"h2"),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"p"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"button",0),c.NdJ("click",function(){return k.redirect()}),c._uU(8),c.ALo(9,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.hij(" ",c.lcZ(2,3,k.data.title),"\n"),c.xp6(3),c.hij(" ",c.lcZ(5,5,k.data.message),"\n"),c.xp6(4),c.hij(" ",c.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),un=(()=>{class J{constructor(D,k){this.dialogRef=D,this.data=k}refresh(){location.reload()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.so),c.Y36(_.WI))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,k){1&D&&(c.TgZ(0,"h2"),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"p"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"button",0),c.NdJ("click",function(){return k.refresh()}),c._uU(8),c.ALo(9,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.hij(" ",c.lcZ(2,3,k.data.title),"\n"),c.xp6(3),c.hij(" ",c.lcZ(5,5,k.data.message),"\n"),c.xp6(4),c.hij(" ",c.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),bn=(()=>{class J{constructor(D,k,Ie,it,It,Ot){this.initAuthService=D,this.appConfigService=k,this.authzSevice=Ie,this.dialog=it,this.location=It,this.guiAuthResolver=Ot,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(D=>{if("Invalid path"!==D)throw console.error(D),this.location.go("/"),location.reload(),D;this.handleErr(D)}).then(D=>D?this.initAuthService.loadPrincipal().catch(k=>this.handleErr(k)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(D){const k=(0,T.kZ)();throw"Invalid path"===D?(k.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Jt,k)):(k.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===D.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":D.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(un,k)),console.error(D),D}loadPolicies(){return new Promise((D,k)=>{this.authzSevice.getAllPolicies().subscribe(Ie=>{this.guiAuthResolver.setPerunPolicies(Ie),D()},Ie=>k(Ie))})}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(C.v0),c.LFG(dt),c.LFG(g.Ct),c.LFG(_.uw),c.LFG(V.Ye),c.LFG(C.x4))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),_n=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,_.Is,oe.ot,U.aw]}),J})();var xn=h(40445),ai=h(84080),oi=h(83353),bi=h(21281),Ni=h(77579),qi=h(56451),vi=h(54968),Za=h(69751),ur=h(66406),za=h(39646),ms=h(95698),Hh=h(54482),Oo=h(72733),gs=h(22529),Xr=h(82722),$c=h(28746),qc=h(71345);const $l=new c.OlP("SMOOTH_SCROLL_OPTIONS");let Ho=(()=>{class J{constructor(D,k,Ie){this._document=D,this._platform=k,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Ie}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(D,k,Ie){D.scrollLeft=k,D.scrollTop=Ie}_getElement(D,k){return"string"==typeof D?(k||this._document).querySelector(D):(0,bi.fI)(D)}_initSmoothScroll(D){return this._onGoingScrolls.has(D)&&this._onGoingScrolls.get(D).next(),this._onGoingScrolls.set(D,new Ni.x).get(D)}_isFinished(D,k,Ie){return D.currentX!==D.x||D.currentY!==D.y||(k.next(),Ie(),!1)}_interrupted(D,k){return(0,qi.T)((0,vi.R)(D,"wheel",{passive:!0,capture:!0}),(0,vi.R)(D,"touchmove",{passive:!0,capture:!0}),k).pipe((0,ms.q)(1))}_destroy(D,k){k.complete(),this._onGoingScrolls.delete(D)}_step(D){return new Za.y(k=>{let Ie=(this._now()-D.startTime)/D.duration;Ie=Ie>1?1:Ie;const it=D.easing(Ie);D.currentX=D.startX+(D.x-D.startX)*it,D.currentY=D.startY+(D.y-D.startY)*it,this._scrollElement(D.scrollable,D.currentX,D.currentY),ur.Z.schedule(()=>k.next(D))})}_applyScrollToOptions(D,k){if(!k.duration)return this._scrollElement(D,k.left,k.top),Promise.resolve();const Ie=this._initSmoothScroll(D),it={scrollable:D,startTime:this._now(),startX:D.scrollLeft,startY:D.scrollTop,x:null==k.left?D.scrollLeft:~~k.left,y:null==k.top?D.scrollTop:~~k.top,duration:k.duration,easing:qc(k.easing.x1,k.easing.y1,k.easing.x2,k.easing.y2)};return new Promise(It=>{(0,za.of)(null).pipe(function fl(J,O=1/0,D){return O=(O||0)<1?1/0:O,(0,Hh.e)((k,Ie)=>(0,Oo.p)(k,Ie,J,O,void 0,!0,D))}(()=>this._step(it).pipe((0,gs.o)(Ot=>this._isFinished(Ot,Ie,It)))),(0,Xr.R)(this._interrupted(D,Ie)),(0,$c.x)(()=>this._destroy(D,Ie))).subscribe()})}scrollTo(D,k){if((0,V.NF)(this._platform)){const Ie=this._getElement(D),it="rtl"===getComputedStyle(Ie).direction,It=(0,oi._i)(),Ot={...this._defaultOptions,...k,left:k.left??(it?k.end:k.start),right:k.right??(it?k.start:k.end)};return null!=Ot.bottom&&(Ot.top=Ie.scrollHeight-Ie.clientHeight-Ot.bottom),it&&0!==It?(null!=Ot.left&&(Ot.right=Ie.scrollWidth-Ie.clientWidth-Ot.left),2===It?Ot.left=Ot.right:1===It&&(Ot.left=Ot.right?-Ot.right:Ot.right)):null!=Ot.right&&(Ot.left=Ie.scrollWidth-Ie.clientWidth-Ot.right),this._applyScrollToOptions(Ie,Ot)}return Promise.resolve()}scrollToElement(D,k,Ie={}){const it=this._getElement(D),It=this._getElement(k,it),Ot={...Ie,left:It.offsetLeft+(Ie.left||0),top:It.offsetTop+(Ie.top||0)};return It?this.scrollTo(it,Ot):Promise.resolve()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(c.Lbi),c.LFG($l,8))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Qc=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({}),J})();var Pi=h(61135),ql=h(50727),Ql=h(60515),Oi=h(18505),Qi=h(54004),_s=h(63900),Kl=h(78372),ml=h(71884);function po(...J){const O=J.length;if(0===O)throw new Error("list of properties cannot be empty.");return(0,Qi.U)(D=>{let k=D;for(let Ie=0;Ie{J.onselectstart=()=>!1})}function fo(J){return(0,Oi.b)(()=>{J.onselectstart=null})}function Ca(){return(0,Oi.b)(J=>J.stopPropagation())}function nc(J,O){return J.clientX>=O.left&&J.clientX<=O.left+O.width&&J.clientY>=O.top&&J.clientY<=O.top+O.height}let Cs=(()=>{class J{constructor(D){this.viewPort=D,this.nativeElement=D.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientHeight)||0}get contentWidth(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientWidth)||0}activatePointerEvents(D,k){this.hovered=new Za.y(Ie=>{const it=(0,vi.R)(this.nativeElement,"mousemove",{passive:!0}),It=D?it:it.pipe(Ca()),Ot=(0,vi.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Qi.U)(()=>!1));(0,qi.T)(It,Ot).pipe((0,Oi.b)(Zt=>Ie.next(Zt)),(0,Xr.R)(k)).subscribe()}),this.clicked=new Za.y(Ie=>{const it=(0,vi.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Oi.b)(Ot=>Ie.next(Ot))),It=(0,vi.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Oi.b)(()=>Ie.next(!1)));it.pipe((0,_s.w)(()=>It),(0,Xr.R)(k)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(D){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${D}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(D){this.nativeElement.scrollTop=D}scrollXTo(D){this.nativeElement.scrollLeft=D}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollViewport",""]]}),J})(),Lr=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275dir=c.lG2({type:J}),J})();const td=new c.OlP("NG_SCROLLBAR_OPTIONS"),ic={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let rc=(()=>{class J{constructor(D){this.globalOptions=D?{...ic,...D}:ic,this.rtlScrollAxisType=(0,oi._i)()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(td,8))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),nd=(()=>{class J{constructor(D,k,Ie){this.document=D,this.manager=k,this.platform=Ie,this._scrollbarSize=new Pi.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Ie.isBrowser&&(0,vi.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,Kl.b)(this.manager.globalOptions.windowResizeDebounce),(0,Qi.U)(()=>this.getNativeScrollbarSize()),(0,ml.x)(),(0,Oi.b)(it=>this._scrollbarSize.next(it))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const D=this.document.createElement("div");D.className="ng-scrollbar-measure",D.style.left="0px",D.style.overflow="scroll",D.style.position="fixed",D.style.top="-9999px",this.document.body.appendChild(D);const k=D.getBoundingClientRect().right;return this.document.body.removeChild(D),k}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(rc),c.LFG(oi.t4))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),bs=(()=>{class J{constructor(D,k,Ie){this.renderer=k,this.hideNativeScrollbar=Ie,this._subscriber=ql.w0.EMPTY,this._subscriber=Ie.scrollbarSize.subscribe(it=>{this.renderer.setStyle(D.nativeElement,"--native-scrollbar-size",`-${it}px`,c.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(nd))},J.\u0275dir=c.lG2({type:J,selectors:[["","hideNativeScrollbar",""]]}),J})(),ac=(()=>{class J{constructor(D){this.el=D}set ngAttr(D){for(const[k,Ie]of Object.entries(D))this.el.nativeElement.setAttribute(k,Ie)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq))},J.\u0275dir=c.lG2({type:J,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),J})(),id=(()=>{class J{constructor(D,k,Ie){if(this.zone=D,this.platform=k,this.scrollbar=Ie,this._disabled=!1,this._currentSubscription=null,this.event=new c.vpe,!Ie)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,bi.su)(D),this._subscribe()}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const D=new Za.y(k=>{this._resizeObserver=new ResizeObserver(Ie=>k.next(Ie)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?D.pipe((0,Kl.b)(this._debounce)):D).subscribe(this.event)})}}_unsubscribe(){var D,k;null===(D=this._resizeObserver)||void 0===D||D.disconnect(),null===(k=this._currentSubscription)||void 0===k||k.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.R0b),c.Y36(oi.t4),c.Y36(Lr))},J.\u0275dir=c.lG2({type:J,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),J})(),vs=(()=>{class J{constructor(D,k,Ie){this.cmp=D,this.trackElement=k,this.document=Ie}get clicked(){const D=(0,vi.R)(this.trackElement,"mousedown",{passive:!0}).pipe(Ca(),Wa(this.document)),k=(0,vi.R)(this.document,"mouseup",{passive:!0}).pipe(Ca(),fo(this.document),(0,_s.w)(()=>Ql.E));return(0,qi.T)(D,k)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(D,k,Ie){return(0,za.of)(D).pipe(po(this.pageProperty),(0,Qi.U)(it=>(it-this.offset-k/2)/this.size*Ie),(0,Oi.b)(it=>{this.cmp.scrollTo({...this.mapToScrollToOption(it),duration:(0,bi.su)(this.cmp.trackClickScrollDuration)})}))}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(HTMLElement),c.Y36(Document))},J.\u0275dir=c.lG2({type:J}),J})(),oc=(()=>{class J extends vs{constructor(D,k,Ie){super(D,k.nativeElement,Ie),this.cmp=D,this.document=Ie}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(D){return{left:D}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarTrackX",""]],features:[c.qOj]}),J})(),Es=(()=>{class J extends vs{constructor(D,k,Ie){super(D,k.nativeElement,Ie),this.cmp=D,this.document=Ie}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(D){return{top:D}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarTrackY",""]],features:[c.qOj]}),J})(),rd=(()=>{class J{constructor(D,k,Ie,it){this.cmp=D,this.track=k,this.thumbElement=Ie,this.document=it,this._dragging=new Ni.x,this.dragging=this._dragging.pipe((0,ml.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,vi.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(Ca())}update(){const D=function gl(J,O,D){return Math.max(~~(J/O*J),D)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),k=function ad(J,O,D){return J*D/O}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ur.Z.schedule(()=>this.updateStyles(this.handleDirection(k,this.trackMax),D))}dragged(D){let k,Ie;const it=(0,za.of)(D).pipe(Wa(this.document),(0,Oi.b)(()=>{k=this.trackMax,Ie=this.viewportScrollMax,this.setDragging(!0)})),It=(0,vi.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Ca()),Ot=(0,vi.R)(this.document,"mouseup",{capture:!0}).pipe(Ca(),fo(this.document),(0,Oi.b)(()=>this.setDragging(!1)));return it.pipe(po(this.pageProperty),(0,Qi.U)(Zt=>Zt-this.dragStartOffset),(0,Bo.z)(Zt=>It.pipe(po(this.clientProperty),(0,Qi.U)(en=>en-this.track.offset),(0,Qi.U)(en=>Ie*(en-Zt)/k),(0,Qi.U)(en=>this.handleDrag(en,Ie)),(0,Oi.b)(en=>this.scrollTo(en)),(0,Xr.R)(Ot))))}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(vs),c.Y36(HTMLElement),c.Y36(Document))},J.\u0275dir=c.lG2({type:J,outputs:{dragging:"dragging"}}),J})(),_l=(()=>{class J extends rd{constructor(D,k,Ie,it,It){super(D,k,Ie.nativeElement,it),this.cmp=D,this.track=k,this.element=Ie,this.document=it,this.dir=It}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(D,k){this.thumbElement.style.width=`${k}px`,this.thumbElement.style.transform=`translate3d(${D}px, 0, 0)`}handleDrag(D,k){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return D-k;if(2===this.cmp.manager.rtlScrollAxisType)return k-D}return D}handleDirection(D,k){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-D;if(0===this.cmp.manager.rtlScrollAxisType)return D-k}return D}setDragging(D){this.cmp.setDragging({horizontalDragging:D})}scrollTo(D){this.cmp.viewport.scrollXTo(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(oc),c.Y36(c.SBq),c.Y36(V.K0),c.Y36(xn.Is))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarThumbX",""]],features:[c.qOj]}),J})(),Vo=(()=>{class J extends rd{constructor(D,k,Ie,it){super(D,k,Ie.nativeElement,it),this.cmp=D,this.track=k,this.element=Ie,this.document=it}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(D,k){this.thumbElement.style.height=`${k}px`,this.thumbElement.style.transform=`translate3d(0px, ${D}px, 0)`}handleDrag(D){return D}handleDirection(D){return D}setDragging(D){this.cmp.setDragging({verticalDragging:D})}scrollTo(D){this.cmp.viewport.scrollYTo(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(Es),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarThumbY",""]],features:[c.qOj]}),J})(),Ts=(()=>{class J{constructor(D,k,Ie,it,It){this.el=D,this.cmp=k,this.platform=Ie,this.document=it,this.zone=It,this.destroyed=new Ni.x}activatePointerEvents(){let D,k,Ie;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Ni.x,this.viewportThumbClicked=new Ni.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),D=this.viewportThumbClicked,k=this.viewportTrackClicked,Ie=this.cmp.viewport.hovered.pipe((0,Qi.U)(it=>!!it&&nc(it,this.el.getBoundingClientRect())),(0,ml.x)(),(0,Oi.b)(it=>this.document.onselectstart=it?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Oi.b)(it=>{it?nc(it,this.thumb.clientRect)?this.viewportThumbClicked.next(it):nc(it,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(it)):this.cmp.setClicked(!1)}),(0,Xr.R)(this.destroyed)).subscribe()):(D=this.thumb.clicked,k=this.track.clicked,Ie=this.hovered),(0,qi.T)(Ie.pipe((0,Oi.b)(it=>this.setHovered(it))),D.pipe((0,_s.w)(it=>this.thumb.dragged(it))),k.pipe((0,_s.w)(it=>this.track.onTrackClicked(it,this.thumb.size,this.viewportScrollSize))))}get hovered(){const D=(0,vi.R)(this.el,"mouseenter",{passive:!0}).pipe(Ca(),(0,Qi.U)(()=>!0)),k=(0,vi.R)(this.el,"mouseleave",{passive:!0}).pipe(Ca(),(0,Qi.U)(()=>!1));return(0,qi.T)(D,k)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,Xr.R)(this.destroyed)).subscribe(),(0,qi.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Oi.b)(()=>{var D;return null===(D=this.thumb)||void 0===D?void 0:D.update()}),(0,Xr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(HTMLElement),c.Y36(Lr),c.Y36(oi.t4),c.Y36(Document),c.Y36(c.R0b))},J.\u0275dir=c.lG2({type:J}),J})(),mo=(()=>{class J extends Ts{constructor(D,k,Ie,it,It){super(D.nativeElement,k,Ie,it,It),this.cmp=k,this.platform=Ie,this.document=it,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(D){this.cmp.setHovered({verticalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(Lr),c.Y36(oi.t4),c.Y36(V.K0),c.Y36(c.R0b))},J.\u0275cmp=c.Xpm({type:J,selectors:[["scrollbar-y"]],viewQuery:function(D,k){if(1&D&&(c.Gf(Es,7),c.Gf(Vo,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.track=Ie.first),c.iGM(Ie=c.CRH())&&(k.thumb=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("scrollbar-control",!0)},features:[c.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"div",1),c.qZA()),2&D&&(c.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),c.xp6(1),c.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[Vo,Es],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),J})(),od=(()=>{class J extends Ts{constructor(D,k,Ie,it,It){super(D.nativeElement,k,Ie,it,It),this.cmp=k,this.platform=Ie,this.document=it,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(D){this.cmp.setHovered({horizontalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(Lr),c.Y36(oi.t4),c.Y36(V.K0),c.Y36(c.R0b))},J.\u0275cmp=c.Xpm({type:J,selectors:[["scrollbar-x"]],viewQuery:function(D,k){if(1&D&&(c.Gf(oc,7),c.Gf(_l,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.track=Ie.first),c.iGM(Ie=c.CRH())&&(k.thumb=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("scrollbar-control",!0)},features:[c.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"div",1),c.qZA()),2&D&&(c.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),c.xp6(1),c.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[_l,oc],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),J})(),sd=(()=>{class J{constructor(D,k,Ie,it,It,Ot){this.el=D,this.zone=k,this.changeDetectorRef=Ie,this.dir=it,this.smoothScroll=It,this.manager=Ot,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new c.vpe,this.state={},this.destroyed=new Ni.x}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(D){this._sensorDisabled=(0,bi.Ig)(D)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(D){this._pointerEventsDisabled=(0,bi.Ig)(D)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(D){this._viewportPropagateMouseMove=(0,bi.Ig)(D)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(D){this._autoHeightDisabled=(0,bi.Ig)(D)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(D){this._autoWidthDisabled=(0,bi.Ig)(D)}get nativeElement(){return this.el.nativeElement}updateState(){let D=!1,k=!1,Ie=!1,it=!1;("all"===this.track||"vertical"===this.track)&&(Ie=this.viewport.scrollHeight>this.viewport.clientHeight,D="always"===this.visibility||Ie),("all"===this.track||"horizontal"===this.track)&&(it=this.viewport.scrollWidth>this.viewport.clientWidth,k="always"===this.visibility||it),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:D,horizontalUsed:k,isVerticallyScrollable:Ie,isHorizontallyScrollable:it})}setState(D){this.state={...this.state,...D},this.changeDetectorRef.detectChanges()}getScrolledByDirection(D){let k;return this.scrolled.pipe((0,Oi.b)(Ie=>k=Ie),po("target",D),(0,Xl.G)(),(0,No.h)(([Ie,it])=>Ie!==it),(0,Qi.U)(()=>k))}setHovered(D){this.zone.run(()=>this.setState({...D}))}setDragging(D){this.zone.run(()=>this.setState({...D}))}setClicked(D){this.zone.run(()=>this.setState({scrollbarClicked:D}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let D=(0,vi.R)(this.viewport.nativeElement,"scroll",{passive:!0});D=this.scrollAuditTime?D.pipe((0,Kc.e)(this.scrollAuditTime)):D,this.scrolled=D.pipe((0,Xr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(D){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Oi.b)(()=>this.update()),(0,Xr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(D){return this.smoothScroll.scrollTo(this.viewport.nativeElement,D)}scrollToElement(D,k){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,D,k)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(c.sBO),c.Y36(xn.Is),c.Y36(Ho),c.Y36(rc))},J.\u0275cmp=c.Xpm({type:J,selectors:[["ng-scrollbar"]],contentQueries:function(D,k,Ie){if(1&D&&c.Suo(Ie,Cs,7),2&D){let it;c.iGM(it=c.CRH())&&(k.customViewPort=it.first)}},viewQuery:function(D,k){if(1&D&&(c.Gf(ec,5,c.SBq),c.Gf(ko,5,c.SBq),c.Gf(Cs,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.scrollbarY=Ie.first),c.iGM(Ie=c.CRH())&&(k.scrollbarX=Ie.first),c.iGM(Ie=c.CRH())&&(k.defaultViewPort=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[c._Bn([{provide:Lr,useExisting:J}]),c.TTD],ngContentSelectors:ed,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(D,k){1&D&&(c.F$t(),c.TgZ(0,"div",0)(1,"div",1),c.NdJ("resizeSensor",function(){return k.update()}),c.TgZ(2,"div",2)(3,"div"),c.Hsn(4),c.qZA()()(),c.YNc(5,Xc,3,2,"ng-container",3),c.qZA()),2&D&&(c.Q6J("ngAttr",k.state),c.xp6(1),c.Q6J("sensorDebounce",k.sensorDebounce)("sensorDisabled",k.sensorDisabled),c.xp6(4),c.Q6J("ngIf",!k.disabled))},dependencies:[V.O5,Cs,bs,ac,id,mo,od],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),J})(),Lh=(()=>{class J{static withConfig(D){return{ngModule:J,providers:[{provide:td,useValue:D}]}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,xn.vT,ai.eL,oi.ud,Qc]}),J})();var Fo=h(51214),Uo=h(67376),Al=h(22465);function sc(J,O){if(1&J&&(c.TgZ(0,"div",9),c._UZ(1,"perun-web-apps-notification",10),c.qZA()),2&J){const D=O.$implicit;c.xp6(1),c.Q6J("data",D)("inDialog",!0)}}function lc(J,O){if(1&J&&(c.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),c.YNc(2,sc,2,2,"div",8),c.qZA()()),2&J){const D=c.oxw();c.xp6(2),c.Q6J("cdkVirtualForOf",D.notifications)}}function Ya(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",11),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let ld=(()=>{class J{constructor(D,k){this.dialogRef=D,this.notificationStorageService=k}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.so),c.Y36(C.SZ))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.YNc(3,lc,3,1,"div",1),c.YNc(4,Ya,3,3,"perun-web-apps-alert",2),c.TgZ(5,"div",3)(6,"button",4),c.NdJ("click",function(){return k.onClear()}),c._uU(7),c.ALo(8,"translate"),c.qZA(),c.TgZ(9,"button",5),c.NdJ("click",function(){return k.onCancel()}),c._uU(10),c.ALo(11,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.Oqu(c.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),c.xp6(2),c.Q6J("ngIf",0!==k.notifications.length),c.xp6(1),c.Q6J("ngIf",0===k.notifications.length),c.xp6(3),c.hij(" ",c.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),c.xp6(3),c.hij(" ",c.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},dependencies:[V.O5,oe.lW,_.uh,_.H8,Uo.xd,Uo.x0,Uo.N7,R.w,Al.c,U.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),J})();var cd=h(42673),dd=h(52314);function ud(J,O){1&J&&(c.TgZ(0,"div",10)(1,"span",11),c._uU(2," ~ \u{1f5f2}\xa0 "),c.qZA(),c.TgZ(3,"span",12),c._uU(4," DEVEL "),c.qZA(),c.TgZ(5,"span",11),c._uU(6," \xa0\u{1f5f2} ~ "),c.qZA()())}const ys=function(J){return{color:J}},ea=function(){return["/home"]};let go=(()=>{class J{constructor(D,k,Ie,it,It,Ot,Zt,en,fn,vn){this.storeService=D,this.authService=k,this.authzResolverService=Ie,this.dialog=it,this.notificator=It,this.translateService=Ot,this.store=Zt,this.sanitizer=en,this.notificationStorageService=fn,this.otherApplicationService=vn,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 D=(0,T.kZ)();D.width="520px",this.dialog.open(ld,D)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.d6),c.Y36(C.e8),c.Y36(g.Ct),c.Y36(_.uw),c.Y36(C.V6),c.Y36(U.sK),c.Y36(C.d6),c.Y36(e.H7),c.Y36(C.SZ),c.Y36(C.jq))},J.\u0275cmp=c.Xpm({type:J,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(D,k){1&D&&(c.TgZ(0,"div",0)(1,"button",1),c.NdJ("click",function(){return k.sideNav.toggle()}),c.TgZ(2,"mat-icon",2),c._uU(3," menu "),c.qZA()(),c.TgZ(4,"a",3),c._UZ(5,"div",4),c.qZA()(),c.YNc(6,ud,7,0,"div",5),c.TgZ(7,"div",6)(8,"button",7),c.NdJ("click",function(){return k.showNotificationHistory()}),c.ALo(9,"translate"),c.TgZ(10,"mat-icon",8),c._uU(11),c.qZA()(),c._UZ(12,"perun-web-apps-header-menu",9),c.qZA()),2&D&&(c.Q6J("ngStyle",c.VKq(19,ys,k.navTextColor)),c.xp6(2),c.Q6J("ngStyle",c.VKq(21,ys,k.iconColor)),c.xp6(2),c.Q6J("routerLink",c.DdM(23,ea)),c.xp6(1),c.Q6J("innerHTML",k.logo,c.oJD),c.xp6(1),c.Q6J("ngIf",k.isDevel),c.xp6(1),c.Q6J("ngStyle",c.VKq(24,ys,k.navTextColor)),c.xp6(1),c.Q6J("matTooltip",c.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),c.xp6(2),c.s9C("matBadge",k.getNewNotificationsCount()>5?"5+":k.getNewNotificationsCount()),c.Q6J("ngStyle",c.VKq(26,ys,k.iconColor))("matBadgeHidden",0===k.getNewNotificationsCount()),c.xp6(1),c.hij(" ",k.getNewNotificationsCount()?"notifications_active":"notifications"," "),c.xp6(1),c.Q6J("iconColor",k.iconColor)("label",k.profileLabel)("textColor",k.navTextColor)("logoutEnabled",k.logoutEnabled)("url",k.profileUrl)("user",k.principal.user))},dependencies:[V.O5,V.PC,A.yS,Q.Hw,oe.lW,de.gM,cd.k,dd.X,U.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}"]}),J})();var hd=h(73228),pd=h(36769);function fd(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"div")(1,"perun-web-apps-notification",2),c.NdJ("closeNotification",function(){const it=c.CHM(D).index,It=c.oxw();return c.KtG(It.removeNotification(it))}),c.qZA()()}if(2&J){const D=O.$implicit;c.Q6J("@flyInOut",void 0),c.xp6(1),c.Q6J("data",D)("newNotification",!0)}}const md=function(J){return{top:J}};let gd=(()=>{class J{constructor(D,k){this.notificator=D,this.notificationStorageService=k,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Ie=>{this.processNotification(Ie)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(D){this.notifications.splice(D,1)}processNotification(D){this.notifications.push(D),this.notificationStorageService.storeNotification(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.V6),c.Y36(C.SZ))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-notificator"]],hostBindings:function(D,k){1&D&&c.NdJ("resize",function(it){return k.getScreenSize(it)},!1,c.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c.YNc(1,fd,2,3,"div",1),c.qZA()),2&D&&(c.Q6J("ngStyle",c.VKq(2,md,k.getNotificatorTop())),c.xp6(1),c.Q6J("ngForOf",k.notifications))},dependencies:[V.sg,V.PC,Al.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:[pd.Pd]}}),J})();const _d={provide:me.TP,useExisting:(0,c.Gpc)(()=>C.yC),multi:!0};function cc(J){return new Be(J,"./assets/i18n/",".json")}function Ad(J){const O={basePath:J.get("api_url")};return new g.VK(O)}const Cd=J=>()=>J.initialize();let bd=(()=>{class J{constructor(D,k){this.customIconService=D,this.translate=k,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(C.EB),c.LFG(U.sK))},J.\u0275mod=c.oAB({type:J,bootstrap:[Qe.y]}),J.\u0275inj=c.cJS({providers:[bn,{provide:c.ip1,useFactory:Cd,multi:!0,deps:[bn]},{provide:g.VK,useFactory:Ad,deps:[C.d6]},{provide:A.wN,useClass:fe},C.EB,{provide:He,useClass:C.sM},C.yC,_d,{provide:Fo.Hy,useFactory:()=>localStorage}],imports:[_a,e.b2,me.JF,qe.m,ho,Pe,Q.Ps,_n,U.aw.forRoot({loader:{provide:U.Zw,useFactory:cc,deps:[me.eN]}}),g.au,f.ez,t,Lh.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Fo.zr.forRoot()]}),J})();c.B6R(Qe.y,function(){return[V.O5,V.PC,go,A.lC,Q.Hw,hd.V,te.JX,te.TM,te.Rh,s.$,gd,on,sd]},[]),(0,c.G48)(),e.q6().bootstrapModule(bd).catch(J=>console.error(J))},11243:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>A});var e=h(36895),c=h(94650);let A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=c.oAB({type:w}),w.\u0275inj=c.cJS({imports:[e.ez]}),w})()},6335:(Ye,pe,h)=>{"use strict";h.d(pe,{Ng:()=>w,Rc:()=>c,pI:()=>A});var e=h(94650);const c="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(T){return localStorage.getItem(T)}getNumber(T){return parseInt(localStorage.getItem(T),10)}setNumber(T,E){localStorage.setItem(T,E.toString())}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(Ye,pe,h)=>{"use strict";h.d(pe,{$I:()=>jt,$V:()=>_e,$t:()=>Xt,AA:()=>U,Ad:()=>ce,Af:()=>B,Aj:()=>Ge,BV:()=>Te,Bf:()=>t,CE:()=>je,CP:()=>w,Cf:()=>Oe,DR:()=>Ue,FF:()=>Pt,H2:()=>Q,HC:()=>j,HE:()=>at,Hi:()=>ue,Is:()=>Pe,It:()=>f,Iz:()=>o,JO:()=>H,Jf:()=>ye,KE:()=>R,M8:()=>Be,NG:()=>Y,NL:()=>Se,O7:()=>W,O9:()=>Ce,RS:()=>xe,S7:()=>bt,Sb:()=>G,US:()=>p,VR:()=>_,W1:()=>Me,Wv:()=>le,XH:()=>cn,YF:()=>T,_7:()=>se,_c:()=>ve,aL:()=>be,bf:()=>$,cL:()=>he,d7:()=>ae,dB:()=>A,dI:()=>oe,dK:()=>ze,e5:()=>n,ee:()=>st,eq:()=>gt,g:()=>me,gB:()=>q,gG:()=>M,gc:()=>E,iQ:()=>a,j1:()=>ee,kO:()=>Fe,kZ:()=>Ze,nT:()=>C,oK:()=>i,qV:()=>v,qy:()=>de,rF:()=>we,rc:()=>Ee,tY:()=>L,tw:()=>g,uC:()=>P,uI:()=>sn,uM:()=>V,v1:()=>S,vq:()=>re,xt:()=>te,xx:()=>z,yW:()=>tt,z6:()=>l,zW:()=>Mt,zp:()=>d});var e=h(6335),c=h(94650);let A=(()=>{class mn{constructor(Rt){this.guiConfigService=Rt}getTablePageSize(Rt){const Ct=this.guiConfigService.getNumber(e.pI+Rt);if(!isNaN(Ct))return Ct;const Ut=this.guiConfigService.getNumber(e.Rc);return isNaN(Ut)?10:Ut}setTablePageSize(Rt,Ct){this.guiConfigService.setNumber(e.pI+Rt,Ct)}}return mn.\u0275fac=function(Rt){return new(Rt||mn)(c.LFG(e.Ng))},mn.\u0275prov=c.Yz7({token:mn,factory:mn.\u0275fac,providedIn:"root"}),mn})();const w="0",g="1",C="2",T="3",E="4",S="5",U="6",_="7",V="8",z="9",Q="10",te="11",oe="12",ee="13",le="14",de="15",Te="16",v="17",L="18",B="19",W="20",q="21",ue="22",ye="23",Me="24",we="25",Ge="26",ce="27",Ze="28",he="29",xe="30",j="31",R="32",G="33",se="34",$="35",Ee="36",Oe="37",gt="42",Y="43",Ce="44",ae="45",re="46",Se="47",Fe="48",be="49",Ue="50",P="51",H="52",i="53",o="54",f="55",l="56",a="57",n="58",t="59",d="62",p="63",M="64",_e="65",bt="66",Mt="69",je="71",Pe="72",Be="75",me="76",ve="77",ze="78",tt="79",at="80",st="82",Pt="83",jt="84",cn="85",Xt="86",sn="87"},36769:(Ye,pe,h)=>{"use strict";h.d(pe,{Ji:()=>g,Pd:()=>A,BQ:()=>c,Ly:()=>w,GH:()=>E,Ls:()=>S,SG:()=>T,es:()=>C});var e=h(37340);const c=(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")])]),A=(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})])]),C=(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")])]),T=(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})])])]),E=(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%)"}))])]),S=(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%)"}))])])},33604:(Ye,pe,h)=>{"use strict";h.d(pe,{Mw:()=>R.M,qG:()=>be.qG,Sx:()=>Se.S,y9:()=>Ue,Nj:()=>_t.N,ez:()=>xe,t$:()=>gt});var e=h(36895),c=h(56709),A=h(30671),w=h(89383),g=h(94364),C=h(96308),T=h(98739),E=h(51572),S=h(63189),U=h(97392),_=h(28255),V=h(4859),z=h(10266),Q=h(59549),te=h(24006),oe=h(284),ee=h(77331),le=h(73555),de=h(3238),Te=h(19516),v=h(64425),L=h(35423),B=h(99602),W=h(71948),q=h(84385),ue=h(33231),ye=h(67376),Me=h(65412),we=h(9244),Ge=h(57882),ce=h(94650);let Ze=(()=>{class P extends de.LF{format(i,o){return"input"===o?`${i.getDate().toString()}.${(i.getMonth()+1).toString()}.${i.getFullYear()}`:i.toDateString()}}return P.\u0275fac=function(){let H;return function(o){return(H||(H=ce.n5z(P)))(o||P)}}(),P.\u0275prov=ce.Yz7({token:P,factory:P.\u0275fac}),P})();const he={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 xe=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275mod=ce.oAB({type:P}),P.\u0275inj=ce.cJS({providers:[{provide:de._A,useClass:Ze},{provide:de.sG,useValue:he}],imports:[e.ez,c.p9,A.p0,te.u5,ee.Hi,le._t,w.aw,g.Bz,C.JX,T.TU,E.Cq,S.r,U.Ps,_.Tx,V.ot,z.AV,Q.lN,te.UX,oe.c,de.si,Te.d4,v.Iq,L.dp,B.FA,W.Fk,de.Ng,q.LD,ue.Co,ye.Cl,Me.Is,we.Je,Ge.C]}),P})();h(53984);var R=h(43532),_t=(h(38719),h(21963),h(28820),h(63167),h(62109),h(22465),h(80275),h(53599)),Je=h(32080);let gt=(()=>{class P{constructor(i,o,f,l){this.router=i,this.route=o,this.location=f,this.forceRoute=l}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(i=>{this.router.navigate([i.redirectTo])}):this.location.back()}}return P.\u0275fac=function(i){return new(i||P)(ce.Y36(g.F0),ce.Y36(g.gz),ce.Y36(e.Ye),ce.Y36(Je.xw))},P.\u0275cmp=ce.Xpm({type:P,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(i,o){}}),P})();h(24179),h(58956),h(41619),h(61150);var Se=h(63312),be=(h(52314),h(52170));let Ue=(()=>{class P{constructor(i){this.router=i}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return P.\u0275fac=function(i){return new(i||P)(ce.Y36(g.F0))},P.\u0275cmp=ce.Xpm({type:P,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(i,o){1&i&&(ce.TgZ(0,"div",0)(1,"h1",1),ce._uU(2),ce.ALo(3,"translate"),ce.qZA(),ce.TgZ(4,"div"),ce._uU(5),ce.ALo(6,"translate"),ce.qZA(),ce.TgZ(7,"button",2),ce.NdJ("click",function(){return o.redirectToHome()}),ce._uU(8),ce.ALo(9,"translate"),ce.qZA()()),2&i&&(ce.xp6(2),ce.Oqu(ce.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),ce.xp6(3),ce.Oqu(ce.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),ce.xp6(3),ce.hij(" ",ce.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[V.lW,w.X$]}),P})()},63312:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g,Y:()=>C});var e=h(94650),A=(h(32105),h(89383)),w=h(42377);const g={};let C=(()=>{class T{constructor(S){this.translate=S,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=U=>U===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):U.shortname,this.secondaryFunction=U=>U===g?"":U.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(U.id),this.searchFunction=U=>U===g?"":U.shortname+String(U.id)}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(A.sK))},T.\u0275cmp=e.Xpm({type:T,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(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.secondaryFunction)("entity",U.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[w.i,A.X$]}),T})()},38719:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>U});var e=h(94650),c=h(9244),A=h(36895),w=h(56709),g=h(24006),C=h(59549),T=h(64597);function E(_,V){if(1&_){const z=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(z);const te=e.oxw();return e.KtG(te._sendEventToParent())})("ngModelChange",function(te){e.CHM(z);const oe=e.oxw();return e.KtG(oe.attribute.value=te)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&_){const z=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,z.attribute.displayName),"-value"),e.Q6J("ngModel",z.attribute.value)}}function S(_,V){if(1&_&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&_){const z=e.oxw();e.xp6(1),e.Oqu(z.attribute.value)}}let U=(()=>{class _{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return _.\u0275fac=function(z){return new(z||_)},_.\u0275cmp=e.Xpm({type:_,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(z,Q){1&z&&(e.TgZ(0,"div"),e.YNc(1,E,2,4,"mat-checkbox",0),e.YNc(2,S,2,1,"mat-label",1),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",!Q.readonly),e.xp6(1),e.Q6J("ngIf",Q.readonly))},dependencies:[A.O5,w.oG,g.JJ,g.On,C.hX,T.R]}),_})()},21963:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>L});var e=h(94650),c=h(29521),A=h(73555),w=h(74281),g=h(9244),C=h(65412),T=h(36895),E=h(77331),S=h(97392),U=h(4859),_=h(10266),V=h(59549),z=h(284);function Q(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(q);const ye=e.oxw(2);return e.KtG(ye.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function te(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw().$implicit,Me=e.oxw();return e.KtG(Me.edit(ye))}),e._uU(1,"edit"),e.qZA()}}function oe(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw().$implicit,Me=e.oxw();return e.KtG(Me.remove(ye))}),e._uU(1,"cancel"),e.qZA()}}function ee(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Me=e.CHM(q).$implicit,we=e.oxw();return we.remove(Me),e.KtG(we._sendEventToParent())}),e.YNc(1,Q,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Me=e.CHM(q).$implicit,we=e.oxw();return e.KtG(we.readonly&&void 0!==we.attribute.displayName&&we.showValue(Me,we.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,te,2,0,"mat-icon",7),e.YNc(5,oe,2,0,"mat-icon",8),e.qZA()}if(2&B){const q=W.$implicit,ue=e.oxw();e.Q6J("selectable",ue.selectable)("cdkDragData",q)("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(" ",q," "),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable)}}function le(B,W){1&B&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function de(B,W){1&B&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Te(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw();return e.KtG(ye.onShowChange())}),e.YNc(3,le,2,0,"mat-icon",15),e.YNc(4,de,2,0,"mat-icon",15),e.qZA()()()}if(2&B){const q=e.oxw();e.xp6(1),e.Q6J("matTooltip",q.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!q.showMore),e.xp6(1),e.Q6J("ngIf",q.showMore)}}function v(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(ye){e.CHM(q);const Me=e.oxw();return e.KtG(Me.add(ye))})("change",function(){e.CHM(q);const ye=e.oxw();return e.KtG(ye._sendEventToParent())}),e.qZA()()}if(2&B){const q=e.oxw(),ue=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ue)("matChipInputSeparatorKeyCodes",q.separatorKeysCodes)("matChipInputAddOnBlur",q.addOnBlur)}}let L=(()=>{class B{constructor(q,ue){this.dialog=q,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=[c.K5,c.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(q){const ue=q.input,ye=q.value;(ye||"").trim()&&(this.attribute.value.push(ye.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ue&&(ue.value=""),this.sendEventToParent.emit()}remove(q){const ue=(0,g.kZ)();ue.width="400px",ue.data={name:q},this.dialog.open(w.Wr,ue).afterClosed().subscribe(Me=>{if(Me){const we=this.attribute.value.indexOf(q);this.attribute.value.splice(we,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(q){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,q.previousIndex,q.currentIndex),this.values=this.attribute.value}edit(q){const ue=this.attribute.value.indexOf(q),ye=(0,g.kZ)();ye.width="600px",ye.data={attribute:this.attribute,index:ue},this.dialog.open(w.r2,ye).afterClosed().subscribe(we=>{we&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(q,ue){const ye=(0,g.kZ)();ye.width="350px",ye.data={value:q,title:ue},this.dialog.open(w.mk,ye)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(C.uw),e.Y36(e.sBO))},B.\u0275cmp=e.Xpm({type:B,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(q,ue){1&q&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Me){return ue.drop(Me),ue._sendEventToParent()}),e.YNc(3,ee,6,9,"mat-chip",2),e.YNc(4,Te,5,4,"div",3),e.YNc(5,v,2,3,"mat-form-field",3),e.qZA()()),2&q&&(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))},dependencies:[T.sg,T.O5,E.qn,E.HS,E.oH,A.Wj,A.Zt,S.Hw,U.lW,_.gM,V.KE,z.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),B})()},28820:(Ye,pe,h)=>{"use strict";h.d(pe,{$:()=>le});var e=h(74281),c=h(9244),A=h(94650),w=h(65412),g=h(36895),C=h(24006),T=h(97392),E=h(4859),S=h(10266),U=h(59549),_=h(284);function V(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(v);const B=A.oxw().index,W=A.oxw();return A.KtG(W.removeValue(B))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function z(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"div",9)(1,"mat-form-field",10),A._UZ(2,"label",11),A.TgZ(3,"input",12),A.NdJ("click",function(){const W=A.CHM(v).index,q=A.oxw();return A.KtG(q.readonly&&q.attribute.displayName&&q.showValue(q.keys[W],q.attribute.displayName))})("ngModelChange",function(B){const q=A.CHM(v).index,ue=A.oxw();return A.KtG(ue.keys[q]=B)}),A.qZA()(),A.TgZ(4,"mat-form-field",10),A._UZ(5,"label",11),A.TgZ(6,"input",13),A.NdJ("click",function(){const W=A.CHM(v).$implicit,q=A.oxw();return A.KtG(q.readonly&&void 0!==q.attribute.displayName&&q.showValue(W,q.attribute.displayName))})("ngModelChange",function(B){const q=A.CHM(v).index,ue=A.oxw();return A.KtG(ue.values[q]=B)}),A.qZA()(),A.YNc(7,V,3,0,"button",14),A.qZA()}if(2&de){const v=Te.index,L=A.oxw();A.xp6(1),A.s9C("appearance",L.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",L.attribute.id,"-key-",v,""),A.xp6(1),A.ekj("cursor-pointer",L.readonly&&void 0!==L.attribute.displayName),A.hYB("id","",L.attribute.id,"-key-",v,""),A.MGl("name","key-",v,""),A.Q6J("ngModel",L.keys[v])("readonly",L.readonly),A.xp6(1),A.s9C("appearance",L.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",L.attribute.id,"-value-",v,""),A.xp6(1),A.ekj("cursor-pointer",L.readonly&&void 0!==L.attribute.displayName),A.MGl("name","value-",v,""),A.hYB("id","",L.attribute.id,"-value-",v,""),A.Q6J("readonly",L.readonly)("ngModel",L.values[v]),A.xp6(1),A.Q6J("ngIf",!L.readonly)}}function Q(de,Te){1&de&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function te(de,Te){1&de&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function oe(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(v);const B=A.oxw();return A.KtG(B.onShowChange())}),A.YNc(1,Q,2,0,"mat-icon",17),A.YNc(2,te,2,0,"mat-icon",17),A.qZA()}if(2&de){const v=A.oxw();A.xp6(1),A.Q6J("ngIf",!v.showMore),A.xp6(1),A.Q6J("ngIf",v.showMore)}}function ee(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",18),A.NdJ("click",function(){A.CHM(v);const B=A.oxw();return A.KtG(B.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let le=(()=>{class de{constructor(v){this.dialog=v,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const v=new Map(Object.entries(this.attribute.value));for(const[L,B]of v.entries())this.keys.push(L),this.values.push(B)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}customTrackBy(v){return v}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(v){this.keys.splice(v,1),this.values.splice(v,1)}updateAttribute(){const v={};for(let L=0;LL.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!L.readonly))},dependencies:[g.sg,g.O5,C._Y,C.Fj,C.JJ,C.JL,C.Q7,C.On,C.F,T.Hw,E.lW,S.gM,U.KE,_.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),de})()},63167:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>S});var e=h(94650),c=h(9244),A=h(74281),w=h(65412),g=h(24006),C=h(59549),T=h(284),E=h(64597);let S=(()=>{class U{constructor(V){this.dialog=V,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(V,z){const Q=(0,c.kZ)();Q.width="350px",Q.data={value:V,title:z},this.dialog.open(A.mk,Q)}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(w.uw))},U.\u0275cmp=e.Xpm({type:U,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(V,z){1&V&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return z.readonly&&void 0!==z.value&&z.showValue(z.value,z.attribute.displayName)})("ngModelChange",function(te){return z.attribute.value=te})("keydown",function(){return z._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&V&&(e.s9C("appearance",z.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",z.readonly&&void 0!==z.value),e.Q2q("data-cy","",e.lcZ(2,6,z.attribute.displayName),"-value"),e.Q6J("readonly",z.readonly)("ngModel",z.attribute.value))},dependencies:[g.Fj,g.JJ,g.On,C.KE,T.Nt,E.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),U})()},43532:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>Te});var e=h(94650),c=h(28820),A=h(36895),w=h(38719),g=h(21963),C=h(63167),T=h(9244),E=h(74281),S=h(65412),U=h(24006),_=h(59549),V=h(284);let z=(()=>{class v{constructor(B){this.dialog=B,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,T.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(B){const W=(0,T.kZ)();W.width="350px",W.data={value:B.value,title:B.displayName},this.dialog.open(E.mk,W)}}return v.\u0275fac=function(B){return new(B||v)(e.Y36(S.uw))},v.\u0275cmp=e.Xpm({type:v,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(B,W){1&B&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return W.readonly&&void 0!==W.attribute.value&&W.showValue(W.attribute)})("ngModelChange",function(ue){return W.attribute.value=ue})("keydown",function(){return W._sendEventToParent()}),e.qZA()()),2&B&&(e.s9C("appearance",W.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.value),e.Q6J("readonly",W.readonly)("ngModel",W.attribute.value))},dependencies:[U.Fj,U.wV,U.JJ,U.On,_.KE,V.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),v})();const Q=["map"];function te(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function oe(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function ee(v,L){if(1&v&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function le(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function de(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}let Te=(()=>{class v{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(B,W){if(1&B&&e.Gf(Q,5),2&B){let q;e.iGM(q=e.CRH())&&(W.mapComponent=q.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(B,W){1&B&&(e.TgZ(0,"div"),e.YNc(1,te,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,oe,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return W._sendEventToParent2()}),e.YNc(4,ee,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,le,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,de,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&B&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===W.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===W.attribute.type||"java.lang.LargeString"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===W.attribute.type))},dependencies:[A.O5,w.u,g.H,c.$,C._,z]}),v})()},53984:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>Ge});var e=h(96308),c=h(30671),A=h(95017),w=h(43532),g=h(9244),C=h(32080),T=h(94650),E=h(36895),S=h(56709),U=h(98380),_=h(10266),V=h(18750),z=h(89383);let Q=(()=>{class ce{transform(he){return"virt"===he.namespace.split(":")[4]}}return ce.\u0275fac=function(he){return new(he||ce)},ce.\u0275pipe=T.Yjl({name:"isVirtualAttribute",type:ce,pure:!0}),ce})();var te=h(64597);function oe(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"th",17)(1,"mat-checkbox",18),T.NdJ("change",function(j){T.CHM(he);const R=T.oxw();return T.KtG(j?R.masterToggle():null)}),T.qZA()()}if(2&ce){const he=T.oxw();T.xp6(1),T.Q6J("checked",he.selection.hasValue()&&he.isAllSelected())("indeterminate",he.selection.hasValue()&&!he.isAllSelected())("aria-label",he.checkboxLabel())}}function ee(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"td",19)(1,"mat-checkbox",20),T.NdJ("click",function(j){return j.stopPropagation()})("change",function(j){const G=T.CHM(he).$implicit,se=T.oxw();return T.KtG(j?se.selection.toggle(G):null)}),T.ALo(2,"multiWordDataCy"),T.ALo(3,"isVirtualAttribute"),T.qZA()()}if(2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,4,he.displayName),"-checkbox"),T.Q6J("checked",xe.selection.isSelected(he))("disabled",T.lcZ(3,6,he)||!he.writable)("aria-label",xe.checkboxLabel(he))}}function le(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function de(ce,Ze){if(1&ce&&(T.TgZ(0,"td",22),T._uU(1),T.qZA()),2&ce){const he=Ze.$implicit;T.xp6(1),T.Oqu(he.id)}}function Te(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function v(ce,Ze){if(1&ce&&(T.TgZ(0,"td",23)(1,"div",24),T._uU(2),T.qZA()()),2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.s9C("matTooltip",xe.getAttributeFullName(he)),T.xp6(1),T.hij(" ",he.displayName," ")}}function L(ce,Ze){1&ce&&(T.TgZ(0,"th",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function B(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),T.NdJ("sendEventToParent2",function(){const R=T.CHM(he).$implicit,G=T.oxw();return T.KtG(G.onValueChange(R))}),T.qZA()()}if(2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.Q6J("attribute",he)("readonly",xe.readonly||!he.writable)}}function W(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function q(ce,Ze){if(1&ce&&(T.TgZ(0,"td",23),T._uU(1),T.qZA()),2&ce){const he=Ze.$implicit;T.xp6(1),T.Oqu(he.description)}}function ue(ce,Ze){1&ce&&T._UZ(0,"tr",27)}function ye(ce,Ze){if(1&ce&&(T._UZ(0,"tr",28),T.ALo(1,"translate")),2&ce){const he=Ze.$implicit,xe=T.oxw();T.s9C("matTooltip",T.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),T.Q6J("matTooltipPosition","before")("matTooltipDisabled",he.writable||xe.readonly)}}function Me(ce,Ze){1&ce&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function we(ce,Ze){if(1&ce&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce){const he=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,1,he.emptyListText),"\n")}}let Ge=(()=>{class ce{constructor(he,xe){this.authResolver=he,this.tableCheckbox=xe,this.attributes=[],this.selection=new A.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(he){this.sort=he,this.setDataSource()}static canBeSelected(he){return!(0,g.Hm)(he)&&he.writable}static getDataForColumn(he,xe){switch(xe){case"id":return he.id.toString();case"displayName":return he.displayName;case"description":return he.description;case"value":return JSON.stringify(he.value);case"urn":return he.namespace+":"+he.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(he=>"id"!==he)),this.dataSource=new c.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(he){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,ce.getDataForColumn),he)}exportDisplayedData(he){const xe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,j=xe+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(xe,j),this.displayedColumns,ce.getDataForColumn),he)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(he=>!this.hiddenColumns.includes(he)),this.dataSource&&(this.dataSource.filterPredicate=(he,xe)=>(0,g.Sd)(he,xe,this.displayedColumns.concat("urn"),ce.getDataForColumn),this.dataSource.sortData=(he,xe)=>(0,g.pR)(he,xe,ce.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,ce.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,ce.canBeSelected)}checkboxLabel(he){return he?`${this.selection.isSelected(he)?"deselect":"select"} row ${he.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const he of this.items.toArray())"java.util.LinkedHashMap"===he.attribute.type&&he.updateMapAttribute()}onValueChange(he){ce.canBeSelected(he)&&this.selection.select(he)}getAttributeFullName(he){return`${he.namespace}:${he.friendlyName}`}}return ce.\u0275fac=function(he){return new(he||ce)(T.Y36(C.x4),T.Y36(C.UA))},ce.\u0275cmp=T.Xpm({type:ce,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(he,xe){if(1&he&&(T.Gf(g.l9,7),T.Gf(e.YE,7),T.Gf(w.M,5)),2&he){let j;T.iGM(j=T.CRH())&&(xe.child=j.first),T.iGM(j=T.CRH())&&(xe.matSort=j.first),T.iGM(j=T.CRH())&&(xe.items=j)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[T.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["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(he,xe){1&he&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(R){return xe.exportDisplayedData(R)})("exportAllData",function(R){return xe.exportAllData(R)}),T.TgZ(2,"table",2),T.ynx(3,3),T.YNc(4,oe,2,3,"th",4),T.YNc(5,ee,4,8,"td",5),T.BQk(),T.ynx(6,6),T.YNc(7,le,3,3,"th",7),T.YNc(8,de,2,1,"td",8),T.BQk(),T.ynx(9,9),T.YNc(10,Te,3,3,"th",7),T.YNc(11,v,3,2,"td",10),T.BQk(),T.ynx(12,11),T.YNc(13,L,3,3,"th",12),T.YNc(14,B,2,2,"td",10),T.BQk(),T.ynx(15,13),T.YNc(16,W,3,3,"th",7),T.YNc(17,q,2,1,"td",10),T.BQk(),T.YNc(18,ue,1,0,"tr",14),T.YNc(19,ye,2,5,"tr",15),T.qZA()()(),T.YNc(20,Me,3,3,"perun-web-apps-alert",16),T.YNc(21,we,3,3,"perun-web-apps-alert",16)),2&he&&(T.Q6J("hidden",0===xe.dataSource.filteredData.length),T.xp6(1),T.Q6J("tableId",xe.tableId)("dataLength",xe.dataSource.filteredData.length)("pageSizeOptions",xe.pageSizeOptions),T.xp6(1),T.Q6J("dataSource",xe.dataSource),T.xp6(16),T.Q6J("matHeaderRowDef",xe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",xe.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===xe.dataSource.filteredData.length&&0!==xe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",0===xe.dataSource.data.length))},dependencies:[E.O5,S.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.YE,e.nU,U.w,_.gM,V.l,w.M,z.X$,Q,te.R],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),ce})()},4235:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>S});var e=h(32080),c=h(94650),A=h(36895),w=h(97392),g=h(4859),C=h(10266),T=h(89383);const E=function(U){return{color:U}};let S=(()=>{class U{constructor(V,z){this.location=V,this.storeService=z}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return U.\u0275fac=function(V){return new(V||U)(c.Y36(A.Ye),c.Y36(e.d6))},U.\u0275cmp=c.Xpm({type:U,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(V,z){1&V&&(c.TgZ(0,"button",0),c.NdJ("click",function(){return z.goBack()}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon",1),c._uU(3,"arrow_right_alt"),c.qZA()()),2&V&&(c.s9C("matTooltip",c.lcZ(1,2,"Back")),c.Q6J("ngStyle",c.VKq(4,E,z.backButtonColor)))},dependencies:[A.PC,w.Hw,g.lW,C.gM,T.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),U})()},61150:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>V});var e=h(94650),c=h(24006),A=h(32080),w=h(36895),g=h(56709),C=h(59549),T=h(284),E=h(82322),S=h(89383);function U(z,Q){if(1&z){const te=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(te);const ee=e.oxw();return e.KtG(ee.emitAsSubGroup())})("ngModelChange",function(ee){e.CHM(te);const le=e.oxw();return e.KtG(le.asSubgroup=ee)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&z){const te=e.oxw();e.Q6J("labelPosition","before")("ngModel",te.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function _(z,Q){if(1&z){const te=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(ee){e.CHM(te);const le=e.oxw();return e.KtG(le.emitParentGroup(ee))}),e.qZA()}if(2&z){const te=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",te.voGroups)}}let V=(()=>{class z{constructor(te){this.store=te,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 c.p4("",[c.kI.required,c.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),c.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new c.p4("",[c.kI.required,c.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(te=>"members"!==te.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(te){this.selectedParent=te,this.parentGroupChanged.emit(te)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return z.\u0275fac=function(te){return new(te||z)(e.Y36(A.d6))},z.\u0275cmp=e.Xpm({type:z,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(te,oe){1&te&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return oe.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return oe.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,U,3,5,"mat-checkbox",5),e.YNc(16,_,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&te&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",oe.nameControl),e.xp6(3),e.hij(" ",oe.invalidNameMessage.length?oe.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",oe.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",oe.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",oe.asSubgroup))},dependencies:[w.O5,g.oG,c.Fj,c.JJ,c.Q7,c.On,C.TO,C.KE,c.oH,T.Nt,E.h,S.X$]}),z})()},39798:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>T});var e=h(94650),c=h(24006),A=h(59549),w=h(284),g=h(99602),C=h(89383);let T=(()=>{class E{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 E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,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(U,_){if(1&U){const V=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(V);const Q=e.MAs(7);return e.KtG(Q.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(V);const Q=e.MAs(15);return e.KtG(Q.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&U){const V=e.MAs(7),z=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",V)("min",_.startMinDate)("max",_.startMaxDate)("formControl",_.startDate),e.xp6(1),e.Q6J("for",V),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",z)("min",_.endMinDate)("max",_.endMaxDate)("formControl",_.endDate),e.xp6(1),e.Q6J("for",z)}},dependencies:[c.Fj,c.JJ,A.KE,A.hX,A.R9,c.oH,w.Nt,g.Mq,g.hl,g.nW,C.X$]}),E})()},64901:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>_});var e=h(94650),c=h(54968),A=h(54004),w=h(78372),g=h(71884),C=h(24006),T=h(59549),E=h(284),S=h(89383);const U=["input"];let _=(()=>{class V{constructor(){this.autoFocus=!1,this.control=new C.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,c.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(Q=>Q.target.value),(0,w.b)(500),(0,g.x)()).subscribe(Q=>{this.control.invalid||this.filter.emit(Q)})}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(Q,te){if(1&Q&&e.Gf(U,7),2&Q){let oe;e.iGM(oe=e.CRH())&&(te.input=oe.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(Q,te){1&Q&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&Q&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,te.placeholder)),e.Q6J("formControl",te.control),e.xp6(4),e.hij(" ",te.error," "))},dependencies:[C.Fj,C.JJ,T.TO,T.KE,C.oH,E.Nt,S.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),V})()},42377:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>de});var e=h(94650),c=h(24006),A=h(4707),w=h(77579),g=h(71884),C=h(82722),T=h(36895),E=h(59549),S=h(3238),U=h(84385),_=h(33231),V=h(67376);const z=["scrollViewport"];function Q(Te,v){if(1&Te&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&Te){const L=e.oxw();e.xp6(1),e.hij(" ",L.multipleSelectedText()," ")}}function te(Te,v){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const L=e.oxw(2);e.Tol(L.colorByStatus(null==L.entitiesCtrl?null:L.entitiesCtrl.value)),e.xp6(1),e.hij(" ",L.statusTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)?"("+L.statusTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)+")":""," ")}}function oe(Te,v){if(1&Te&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,te,2,4,"span",10),e.qZA()),2&Te){const L=e.oxw();e.Q6J("value",null==L.entitiesCtrl?null:L.entitiesCtrl.value),e.xp6(1),e.hij(" ",L.mainTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(L.secondaryTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",L.displayStatus)}}function ee(Te,v){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const L=e.oxw().$implicit,B=e.oxw();e.Tol(B.colorByStatus(L)),e.xp6(1),e.hij(" ",B.statusTextFunction(L)?"("+B.statusTextFunction(L)+")":""," ")}}function le(Te,v){if(1&Te&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ee,2,4,"span",10),e.qZA()),2&Te){const L=v.$implicit,B=e.oxw();e.Tol(B.theme),e.Q6J("value",L),e.xp6(1),e.hij(" ",B.mainTextFunction(L)," "),e.xp6(2),e.Oqu(B.secondaryTextFunction(L)),e.xp6(1),e.Q6J("ngIf",B.displayStatus)}}let de=(()=>{class Te{constructor(L){this.cd=L,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 c.p4,this.entityFilterCtrl=new c.p4,this.filteredEntities=new A.t(1),this._onDestroy=new w.x,this.entitiesLen=0,this.mainTextFunction=B=>JSON.stringify(B),this.secondaryTextFunction=B=>"#".concat(String(B.id),B.description?" ".concat(B.description):""),this.statusTextFunction=B=>B.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,g.x)()).subscribe(L=>this.entitySelected.emit(L)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(L=>this.entitiesLen=L.length),this.entityFilterCtrl.valueChanges.pipe((0,C.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(L){switch(L.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(L){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),L.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(L){return L.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let L=48*this.entitiesLen;return L>192&&(L=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),L}multipleSelectedText(){const L=this.entitiesCtrl.value;if(L&&0!==L.length)return L.length===this.entities.length?"ALL":L.length>1?this.mainTextFunction(L[0])+` + ${L.length-1} other(s)`:this.mainTextFunction(L[0])+" "+this.secondaryTextFunction(L[0])}filterEntites(){if(!this.entities)return;let L=this.entityFilterCtrl.value;if(!L)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();L=this.normalize(L),this.filteredEntities.next(this.entities.filter(B=>this.normalize(this.searchFunction(B)).includes(L))),this.cd.detectChanges()}}return Te.\u0275fac=function(L){return new(L||Te)(e.Y36(e.sBO))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(L,B){if(1&L&&e.Gf(z,5),2&L){let W;e.iGM(W=e.CRH())&&(B.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"],["data-cy","search-select-input",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(L,B){1&L&&(e.TgZ(0,"mat-form-field",0)(1,"mat-select",1),e.NdJ("openedChange",function(){return B.openChange()}),e.YNc(2,Q,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,oe,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,le,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA()()()),2&L&&(e.xp6(1),e.s9C("placeholder",B.selectPlaceholder),e.Q6J("formControl",B.entitiesCtrl)("multiple",B.multiple),e.xp6(1),e.Q6J("ngIf",B.multiple),e.xp6(2),e.s9C("placeholderLabel",B.findPlaceholder),e.s9C("noEntriesFoundLabel",B.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",B.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==B.entitiesCtrl?null:B.entitiesCtrl.value),e.xp6(1),e.Udp("height",B.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,B.filteredEntities)))},dependencies:[T.O5,c.JJ,E.KE,c.oH,S.ey,U.gD,U.$L,_.nu,V.xd,V.x0,V.N7,T.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}"]}),Te})()},74010:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>Y});var e=h(96308),c=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),E=h(94364),S=h(98380),U=h(18750),_=h(50301),V=h(10441),z=h(24006),Q=h(97392),te=h(4859),oe=h(10266);function ee(Ce,ae){if(1&Ce&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.hij(" ",re[Se.paramName]," ")}}function le(Ce,ae){1&Ce&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function de(Ce,ae){1&Ce&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function Te(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.onShowChange())}),g.YNc(1,le,2,0,"mat-icon",8),g.YNc(2,de,2,0,"mat-icon",8),g.qZA()}if(2&Ce){const re=g.oxw();g.xp6(1),g.Q6J("ngIf",!re.showMore),g.xp6(1),g.Q6J("ngIf",re.showMore)}}let v=(()=>{class Ce{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 Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275cmp=g.Xpm({type:Ce,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(re,Se){1&re&&(g.TgZ(0,"form",0)(1,"div",1)(2,"div",2),g.YNc(3,ee,2,1,"div",3),g.qZA(),g.TgZ(4,"div")(5,"span",4),g.YNc(6,Te,3,2,"button",5),g.qZA()()()()),2&re&&(g.xp6(3),g.Q6J("ngForOf",Se.objects.slice(0,Se.itemsShown)),g.xp6(2),g.Q6J("matTooltip",Se.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",Se.objects.length>Se.defaultItemsShown))},dependencies:[C.sg,C.O5,z._Y,z.JL,z.F,Q.Hw,te.lW,oe.gM]}),Ce})();var L=h(89383),B=h(53561);let W=(()=>{class Ce{transform(re,Se,Fe){return re.filter(be=>be[Fe].includes(Se)).filter((be,Ue,P)=>P.findIndex(H=>H[Fe]===be[Fe])===Ue)}}return Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:Ce,pure:!0}),Ce})();function q(Ce,ae){1&Ce&&g._UZ(0,"th",20)}function ue(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",21)(1,"mat-checkbox",22),g.NdJ("change",function(Fe){const Ue=g.CHM(re).$implicit,P=g.oxw();return g.KtG(Fe?P.selection.toggle(Ue):null)})("click",function(Fe){return Fe.stopPropagation()}),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q2q("data-cy","",re.facility.name,"-checkbox"),g.Q6J("aria-label",Se.checkboxLabel(re))("checked",Se.selection.isSelected(re))}}function ye(Ce,ae){1&Ce&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Me(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.hij(" ",re.facility.id," ")}}function we(Ce,ae){1&Ce&&g._UZ(0,"th",25)}function Ge(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("id",re.facility.id)("recentIds",Se.recentIds)}}function ce(Ce,ae){1&Ce&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function Ze(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.uIk("data-cy",re.facility.name),g.xp6(1),g.hij(" ",re.facility.name," ")}}function he(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function xe(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.Oqu(re.facility.description)}}function j(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function R(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,re.owners))}}function G(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function se(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,re.destinations,Se.filterValue,"destination"))("paramName","destination")}}function $(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function Ee(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,re.hosts,Se.filterValue,"hostname"))("paramName","hostname")}}function Oe(Ce,ae){1&Ce&&g._UZ(0,"tr",29)}const ct=function(Ce){return["/facilities",Ce]},Xe=function(){return[]};function _t(Ce,ae){if(1&Ce&&g._UZ(0,"tr",30),2&Ce){const re=ae.$implicit,Se=g.oxw();g.ekj("cursor-pointer",!Se.disableRouting)("disable-outline",Se.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(6,ct,re.facility.id))("routerLink",Se.disableRouting||Se.localDisableRouting?g.DdM(8,Xe):g.VKq(9,ct,re.facility.id))}}function Je(Ce,ae){1&Ce&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function gt(Ce,ae){1&Ce&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Y=(()=>{class Ce{constructor(re){this.authResolver=re,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(Se,Fe)=>Ce.getDataForColumn(Se,Fe,this.recentIds)}set matSort(re){this.sort=re}static getDataForColumn(re,Se,Fe){switch(Se){case"id":return re.facility.id.toString();case"name":return re.facility.name;case"description":return re.facility.description;case"technicalOwners":return(0,A.te)(re.owners);case"recent":return Fe&&Fe.includes(re.facility.id)?"#".repeat(Fe.indexOf(re.facility.id)):re.name;case"destinations":return re.destinations.map(be=>be.destination).join(" ; ");case"hosts":return re.hosts.map(be=>be.hostname).join(" ; ");default:return re[Se]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(re=>"id"!==re)),this.setDataSource()}exportAllData(re){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),re)}exportDisplayedData(re){const Se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Fe=Se+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Se,Fe),this.displayedColumns,this.getDataForColumnFun),re)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(re,Se)=>(0,A.Sd)(re,Se,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(re,Se)=>(0,A.pR)(re,Se,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(re=>this.selection.select(re))}checkboxLabel(re){return re?`${this.selection.isSelected(re)?"deselect":"select"} row ${re.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Ce.\u0275fac=function(re){return new(re||Ce)(g.Y36(w.x4))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(re,Se){if(1&re&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&re){let Fe;g.iGM(Fe=g.CRH())&&(Se.child=Fe.first),g.iGM(Fe=g.CRH())&&(Se.matSort=Fe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(re,Se){1&re&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(be){return Se.exportDisplayedData(be)})("exportAllData",function(be){return Se.exportAllData(be)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,q,1,0,"th",4),g.YNc(5,ue,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ye,3,3,"th",7),g.YNc(8,Me,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,we,1,0,"th",10),g.YNc(11,Ge,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,ce,3,3,"th",7),g.YNc(14,Ze,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,he,3,3,"th",10),g.YNc(17,xe,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,j,3,3,"th",10),g.YNc(20,R,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,G,3,3,"th",10),g.YNc(23,se,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,$,3,3,"th",10),g.YNc(26,Ee,3,6,"td",11),g.BQk(),g.YNc(27,Oe,1,0,"tr",17),g.YNc(28,_t,1,11,"tr",18),g.qZA()()(),g.YNc(29,Je,3,3,"perun-web-apps-alert",19),g.YNc(30,gt,3,3,"perun-web-apps-alert",19)),2&re&&(g.Q6J("hidden",!Se.dataSource||0===Se.dataSource.filteredData.length||0===Se.facilities.length),g.xp6(1),g.Q6J("tableId",Se.tableId)("dataLength",Se.dataSource.filteredData.length)("pageSizeOptions",Se.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",Se.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",Se.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Se.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Se.dataSource.filteredData.length&&0!==Se.facilities.length),g.xp6(1),g.Q6J("ngIf",0===Se.facilities.length))},dependencies:[C.O5,T.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,E.rH,e.YE,e.nU,S.w,U.l,_.YH,V.W,v,L.X$,B.J,W],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ce})()},13449:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>v});var e=h(94650),c=h(32080),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),E=h(64425),S=h(89383),U=h(29218),_=h(45942),V=h(28764);function z(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&L){const W=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,W.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,W.group)),e.xp6(2),e.Tol(e.lcZ(6,13,W.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,W.group)," ")}}function Q(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&L){const W=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",W.disabled)}}function te(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&L){const W=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",W.disabled)}}function oe(L,B){if(1&L&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,z,9,17,"span",4),e.YNc(6,Q,5,5,"span",4),e.YNc(7,te,5,5,"span",4),e.qZA()),2&L){const W=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",W.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",W.syncAuth),e.xp6(1),e.Q6J("ngIf",W.moveAuth),e.xp6(1),e.Q6J("ngIf",W.editAuth)}}function ee(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,W.group)),e.xp6(2),e.Tol(e.lcZ(3,8,W.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,W.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,W.group)))}}function le(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function de(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Te(L,B){if(1&L&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,ee,10,16,"button",10),e.YNc(13,le,6,4,"button",10),e.YNc(14,de,6,4,"button",10),e.qZA()()),2&L){const W=e.MAs(5),q=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",W),e.xp6(5),e.Q6J("cdkCopyToClipboard",q.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",q.syncAuth),e.xp6(1),e.Q6J("ngIf",q.moveAuth),e.xp6(1),e.Q6J("ngIf",q.editAuth)}}let v=(()=>{class L{constructor(W){this.authResolver=W,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 L.\u0275fac=function(W){return new(W||L)(e.Y36(c.x4))},L.\u0275cmp=e.Xpm({type:L,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(W,q){1&W&&(e.YNc(0,oe,8,8,"div",0),e.YNc(1,Te,15,8,"div",1)),2&W&&(e.Q6J("ngIf",q.displayButtons),e.xp6(1),e.Q6J("ngIf",!q.displayButtons))},dependencies:[A.O5,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,E.i3,S.X$,U.J,_.r,V.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),L})()},8223:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>z});var e=h(94650),c=h(9244),A=h(74281),w=h(65412),g=h(36895),C=h(97392),T=h(10266),E=h(89383);function S(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&Q){const oe=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",oe.groupName,"-active")}}function U(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&Q){const oe=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",oe.groupName,"-inactive")}}function _(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&Q){const oe=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",oe.failureCause,"")}}function V(Q,te){1&Q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&Q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let z=(()=>{class Q{constructor(oe){this.dialog=oe,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const oe=(0,c.kZ)();oe.width="500px",oe.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,oe).afterClosed().subscribe(le=>{le&&this.statusChange.emit()})}}return Q.\u0275fac=function(oe){return new(oe||Q)(e.Y36(w.uw))},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(oe,ee){1&oe&&(e.TgZ(0,"div",0),e.YNc(1,S,4,4,"span",1),e.YNc(2,U,4,4,"span",1),e.YNc(3,_,4,4,"span",1),e.YNc(4,V,4,3,"span",2),e.qZA()),2&oe&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","FAILED"===ee.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===ee.status))},dependencies:[g.O5,C.Hw,T.gM,E.X$]}),Q})()},82322:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=E=>E.name}ngOnInit(){this.groups=this.groups.sort(c.aC)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,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(E,S){if(1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.groupSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E){let U;e.Q6J("entities",S.groups)("entity",null!==(U=S.firstSelectedGroup)&&void 0!==U?U:null)("displayStatus",S.displayStatus)("disableAutoSelect",S.disableAutoSelect)("mainTextFunction",S.nameFunction)("searchFunction",S.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,w.X$]}),C})()},24179:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>i});var e=h(94650),c=h(74281),A=h(32105),w=h(32080),g=h(9244),C=h(96308),T=h(30671),E=h(95017),S=h(36895),U=h(65412),_=h(56709),V=h(98380),z=h(97392),Q=h(4859),te=h(10266),oe=h(18750),ee=h(13449),le=h(50301),de=h(10441),Te=h(8223),v=h(89383),L=h(21757);let B=(()=>{class o{transform(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=e.Yjl({name:"groupExpiration",type:o,pure:!0}),o})();var W=h(82514),q=h(62383);function ue(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw(2);return e.KtG(n?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 ye(o,f){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 Me(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",27)(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(n?s.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),e.qZA()()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,a.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",a.checkboxLabel(l))("checked",a.selection.isSelected(l))("disabled","members"===l.name&&a.disableMembers||a.disableSelect(l))}}function we(o,f){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 Ge(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.id)}}function ce(o,f){1&o&&e._UZ(0,"th",32)}function Ze(o,f){if(1&o&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("recentIds",a.recentIds)("id",l.id)}}function he(o,f){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 xe(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.hij(" ",a.voNames.get(l.voId)," ")}}function j(o,f){1&o&&e._UZ(0,"th",32)}function R(o,f){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 G(o,f){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 se(o,f){if(1&o&&(e.TgZ(0,"td",33),e.YNc(1,R,3,3,"mat-icon",35),e.YNc(2,G,3,3,"mat-icon",35),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function $(o,f){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 Ee(o,f){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function Oe(o,f){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 ct(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",37)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("statusChange",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.refreshTable.emit())}),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("groupName",l.name)("resourceId",a.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Xe(o,f){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 _t(o,f){if(1&o&&(e.TgZ(0,"td",33)(1,"i",39),e.ALo(2,"groupStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA()()()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,a.getStatusAttribute(l)),""),e.s9C("matTooltip",a.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,a.getStatusAttribute(l))," ")}}function Je(o,f){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 gt(o,f){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.description)}}function Y(o,f){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 Ce(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.changeExpiration(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=n.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ae(o,f){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,Ce,3,0,"button",40),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",a.canManageGroup(l))}}function re(o,f){1&o&&e._UZ(0,"th",32)}function Se(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",33)(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("moveGroup",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onMoveGroup(t))})("changeNameDescription",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onChangeNameDescription(t))})("syncGroup",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onSyncDetail(t))}),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",a.displayButtons)("group",l)}}function Fe(o,f){1&o&&e._UZ(0,"tr",43)}const be=function(o,f){return["/organizations",o,"groups",f]};function Ue(o,f){if(1&o&&e._UZ(0,"tr",44),2&o){const l=f.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disableRouting&&!a.groupsToDisableRouting.has(l.id))("disable-outline",a.disabledRouting||a.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disabledRouting||a.groupsToDisableRouting.has(l.id)?null:e.WLB(6,be,l.voId,l.id))("perunWebAppsForceRouterLink",a.disabledRouting||a.groupsToDisableRouting.has(l.id)?null:e.WLB(9,be,l.voId,l.id))}}function P(o,f){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 H(o,f){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,a,n,t,r){this.dialog=l,this.authResolver=a,this.voService=n,this.tableCheckbox=t,this.changeDetector=r,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new E.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=(s,d)=>o.getDataForColumn(s,d,this.voNames),this.getSortDataForColumnFun=(s,d)=>o.getSortDataForColumn(s,d,this.voNames,this.recentIds),this.canBeSelected=s=>!("members"===s.name&&this.disableMembers||this.disableSelect(s))}set matSort(l){this.sort=l}static getDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"vo":return n.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[a]}}static getSortDataForColumn(l,a,n,t){switch(a){case"id":return l.id.toString();case"vo":return n.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const r=(0,g.x2)(l);return r&&"never"!==r.toLowerCase()?(0,S.p6)(r,"yyyy.MM.dd","en"):r}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[a]}}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}exportAllData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}exportDisplayedData(l){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=a+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,n),this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new T.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,a)=>(0,g.Sd)(l,a,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,a)=>(0,g.pR)(l,a,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 a=(0,g.kZ)();a.data={groupId:l.id,theme:this.theme},this.dialog.open(c.Bp,a)}onChangeNameDescription(l){const a=(0,g.kZ)();a.data={theme:"group-theme",group:l,dialogType:c.Eg.GROUP},this.dialog.open(c.rd,a).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[a]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[a]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,a]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[a]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,a]),!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(a=>{this.voNames.set(a.id,a.name)})}))}changeExpiration(l){const a=l.attributes.find(r=>"groupMembershipExpiration"===r.baseFriendlyName),n=(0,g.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:l.id,expirationAttr:a,status:this.getStatusAttribute(l)},this.dialog.open(c.u3,n).afterClosed().subscribe(r=>{r.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const a=l.attributes.find(n=>"groupStatus"===n.baseFriendlyName);return a?.value?a.value:""}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(U.uw),e.Y36(w.x4),e.Y36(A.YF),e.Y36(w.UA),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,a){if(1&l&&(e.Gf(g.l9,7),e.Gf(C.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(a.child=n.first),e.iGM(n=e.CRH())&&(a.matSort=n.first)}},hostBindings:function(l,a){1&l&&e.NdJ("resize",function(t){return a.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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","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","groupName","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,a){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(t){return a.exportDisplayedData(t)})("exportAllData",function(t){return a.exportAllData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ye,2,1,"th",4),e.YNc(5,Me,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,we,3,3,"th",7),e.YNc(8,Ge,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,ce,1,0,"th",10),e.YNc(11,Ze,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,he,3,3,"th",7),e.YNc(14,xe,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,j,1,0,"th",10),e.YNc(17,se,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,$,3,3,"th",7),e.YNc(20,Ee,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,Oe,3,3,"th",7),e.YNc(23,ct,2,6,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Xe,3,3,"th",7),e.YNc(26,_t,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Je,3,3,"th",7),e.YNc(29,gt,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,Y,3,3,"th",7),e.YNc(32,ae,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,re,1,0,"th",10),e.YNc(35,Se,2,3,"td",11),e.BQk(),e.YNc(36,Fe,1,0,"tr",21),e.YNc(37,Ue,1,12,"tr",22),e.qZA()()(),e.YNc(38,P,3,3,"perun-web-apps-alert",23),e.YNc(39,H,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===a.groups.length||!a.dataSource||0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("pageSizeOptions",a.pageSizeOptions)("tableId",a.tableId),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.groups.length),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.groups.length))},dependencies:[S.O5,_.oG,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,C.YE,C.nU,V.w,z.Hw,Q.lW,te.gM,oe.l,ee.i,le.Kd,le.YH,de.W,Te.x,v.X$,L.f,B,W.F,q.M],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:(Ye,pe,h)=>{"use strict";h.d(pe,{I:()=>we});var e=h(94650),c=h(35423),A=h(57851),w=h(95017);class g{constructor(ce){this.id=ce.id,this.name=ce.name,this.parentGroupId=ce.parentGroupId,this.voId=ce.voId,this.shortName=ce.shortName,this.description=ce.description,this.attributes=ce.attributes,this.beanName=ce.beanName}addChild(ce){null==this.children?this.children=[ce]:this.children.push(ce)}}var C=h(9244),T=h(74281),E=h(32080),S=h(65412),U=h(36895),_=h(56709),V=h(94364),z=h(98380),Q=h(97392),te=h(4859),oe=h(10266),ee=h(67376),le=h(13449),de=h(89383);const Te=["scrollViewport"];function v(Ge,ce){if(1&Ge){const Ze=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(Ze);const xe=e.oxw().$implicit,j=e.oxw(2);return e.KtG(j.itemSelectionToggle(xe))}),e.qZA()}if(2&Ge){const Ze=e.oxw().$implicit,he=e.oxw(2);e.Q2q("data-cy","",Ze.name,"-checkbox"),e.Q6J("disabled","members"===Ze.fullName)("checked",he.selection.isSelected(Ze))("indeterminate",he.descendantsPartiallySelected(Ze))}}function L(Ge,ce){if(1&Ge&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ge){const Ze=e.oxw().$implicit,he=e.oxw(2);e.xp6(1),e.hij(" ",he.treeControl.isExpanded(Ze)?"expand_more":"chevron_right"," ")}}function B(Ge,ce){if(1&Ge&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ge){const Ze=e.oxw().$implicit;e.xp6(1),e.hij(" #",Ze.id," ")}}const W=function(Ge,ce){return["/organizations",Ge,"groups",ce]};function q(Ge,ce){if(1&Ge){const Ze=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,v,1,4,"mat-checkbox",7),e.TgZ(3,"a",8)(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(Ze);const xe=e.oxw(2);return e.KtG(xe.disableRouting=!0)})("mouseleave",function(){e.CHM(Ze);const xe=e.oxw(2);return e.KtG(xe.disableRouting=!1)})("click",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.treeControl.toggle(j))}),e.YNc(5,L,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,B,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onMoveGroup(j))})("syncGroup",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onSyncDetail(j))})("changeNameDescription",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onChangeNameDescription(j))}),e.qZA()()(),e.BQk()}if(2&Ge){const Ze=ce.$implicit,he=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*Ze.level+"px"),e.xp6(1),e.Q6J("ngIf",!he.hideCheckbox),e.xp6(1),e.Q6J("routerLink",he.disableRouting?null:e.WLB(15,W,Ze.voId,Ze.id)),e.xp6(1),e.Q6J("disabled",!Ze.expandable),e.uIk("aria-label","toggle "+Ze.name),e.xp6(1),e.Q6J("ngIf",Ze.expandable),e.xp6(2),e.uIk("data-cy",Ze.name),e.xp6(1),e.hij(" ",Ze.name," "),e.xp6(1),e.Q6J("ngIf",he.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",Ze.description),e.xp6(1),e.hij(" ",Ze.description," "),e.xp6(2),e.Q6J("disabled","members"===Ze.fullName)("displayButtons",he.displayButtons)("group",Ze)}}const ue=function(Ge){return{height:Ge}};function ye(Ge,ce){if(1&Ge&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,q,16,18,"ng-container",5),e.qZA()()),2&Ge){const Ze=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ue,Ze.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",Ze.dataSource)}}function Me(Ge,ce){1&Ge&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let we=(()=>{class Ge{constructor(Ze,he,xe){this.cd=Ze,this.dialog=he,this.authResolver=xe,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 A.C2(j=>j.level,j=>j.expandable),this.hasChild=(j,R)=>R.expandable,this.getLevel=j=>j.level,this.transformer=(j,R)=>({expandable:!!j.children&&j.children.length>0,name:j.shortName,fullName:j.name,parentGroupId:j.parentGroupId,level:R,id:j.id,voId:j.voId,attributes:j.attributes,beanName:j.beanName,description:j.description}),this.treeFlattener=new c.JZ(this.transformer,j=>j.level,j=>j.expandable,j=>j.children),this.dataSource=new c.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(Ze=>Ze.name?.toLowerCase().includes(this.filterValue.toLowerCase())||Ze.description?.toLowerCase().includes(this.filterValue.toLowerCase())||Ze.id.toString().includes(this.filterValue.toLowerCase())||Ze.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const Ze of this.filteredGroups)Ze.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,C.oU)(Ze.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(Ze){const he=(0,C.kZ)();he.data={groupId:Ze.id,theme:this.theme},this.dialog.open(T.Bp,he)}onChangeNameDescription(Ze){const he=(0,C.kZ)();he.data={theme:"group-theme",group:Ze,dialogType:T.Eg.GROUP},this.dialog.open(T.rd,he).afterClosed().subscribe(j=>{j&&this.refreshTable.emit()})}createGroupTrees(Ze){const he=new Map;for(const R of Ze)he.set(R.id,new g(R));const xe=new Set;he.forEach((R,G,se)=>{const $=se.get(R.parentGroupId);void 0!==$&&($.addChild(R),se.set(R.parentGroupId,$)),null!==R.parentGroupId&&void 0===$&&xe.add(R.id)});const j=[];he.forEach(R=>{(null===R.parentGroupId||xe.has(R.id))&&j.push(R)}),this.dataSource.data=j,this.cd.detectChanges()}getParentNode(Ze){const he=this.getLevel(Ze);if(he<1)return null;for(let j=this.treeControl.dataNodes.indexOf(Ze)-1;j>=0;j--){const R=this.treeControl.dataNodes[j];if(this.getLevel(R)this.selection.isSelected(R));he&&!j&&this.selection.deselect(Ze)}checkAllParentsSelection(Ze){let he=this.getParentNode(Ze);for(;he;)this.checkRootNodeSelection(he),he=this.getParentNode(he);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(Ze){return this.treeControl.getDescendants(Ze).some(j=>this.selection.isSelected(j))&&!this.selection.isSelected(Ze)}itemSelectionToggle(Ze){this.selection.toggle(Ze);const he=this.treeControl.getDescendants(Ze);this.selection.isSelected(Ze)?this.selection.select(...he):this.selection.deselect(...he),he.every(xe=>this.selection.isSelected(xe)),this.checkAllParentsSelection(Ze)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(Ze,he)=>Ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,he]):(Ze,he)=>Ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[he]),!0)}onMoveGroup(Ze){this.moveGroup.emit(Ze)}getTreeViewHeight(){let Ze=0;this.scrollViewport&&(Ze=this.scrollViewport.getDataLength());let he=48*Ze;return he>672&&(he=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(he)+"px"}}return Ge.\u0275fac=function(Ze){return new(Ze||Ge)(e.Y36(e.sBO),e.Y36(S.uw),e.Y36(E.x4))},Ge.\u0275cmp=e.Xpm({type:Ge,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(Ze,he){if(1&Ze&&e.Gf(Te,5),2&Ze){let xe;e.iGM(xe=e.CRH())&&(he.scrollViewport=xe.first)}},hostBindings:function(Ze,he){1&Ze&&e.NdJ("resize",function(j){return he.shouldHideButtons(j)},!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(Ze,he){1&Ze&&(e.YNc(0,ye,4,6,"div",0),e.YNc(1,Me,3,3,"perun-web-apps-alert",1)),2&Ze&&(e.Q6J("ngIf",0!==he.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===he.filteredGroups.length))},dependencies:[U.O5,U.PC,_.oG,V.yS,z.w,Q.Hw,te.lW,oe.gM,ee.xd,ee.x0,ee.N7,le.i,de.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}"]}),Ge})()},52314:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>z});var e=h(32080),c=h(94650),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),E=h(89383);const S=function(Q){return{color:Q}};function U(Q,te){if(1&Q&&(c.TgZ(0,"button",8),c.ALo(1,"translate"),c.TgZ(2,"mat-icon",4),c._uU(3," apps "),c.qZA()()),2&Q){const oe=c.oxw(),ee=c.MAs(2);c.Q6J("matMenuTriggerFor",ee)("matTooltip",c.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),c.xp6(2),c.Q6J("ngStyle",c.VKq(5,S,oe.iconColor))}}function _(Q,te){if(1&Q&&(c.TgZ(0,"span",9),c._uU(1),c.qZA()),2&Q){const oe=c.oxw();c.Q6J("ngStyle",c.VKq(6,S,oe.textColor)),c.xp6(1),c.xDo(" ",oe.user.titleBefore," ",oe.user.firstName," ",oe.user.middleName," ",oe.user.lastName," ",oe.user.titleAfter," ")}}function V(Q,te){if(1&Q){const oe=c.EpF();c.TgZ(0,"button",2),c.NdJ("click",function(){c.CHM(oe);const le=c.oxw();return c.KtG(le.onLogOut())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&Q&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"NAV.LOGOUT")," "))}let z=(()=>{class Q{constructor(oe){this.authService=oe}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return Q.\u0275fac=function(oe){return new(oe||Q)(c.Y36(e.e8))},Q.\u0275cmp=c.Xpm({type:Q,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(oe,ee){if(1&oe&&(c.YNc(0,U,4,7,"button",0),c.TgZ(1,"mat-menu",null,1)(3,"button",2),c.NdJ("click",function(){return ee.redirectToUrl()}),c.TgZ(4,"span"),c._uU(5),c.qZA()()(),c.TgZ(6,"button",3)(7,"mat-icon",4),c._uU(8," person "),c.qZA(),c.YNc(9,_,2,8,"span",5),c.qZA(),c.TgZ(10,"mat-menu",null,6),c.YNc(12,V,3,3,"button",7),c.qZA()),2&oe){const le=c.MAs(11);c.Q6J("ngIf",ee.url),c.xp6(5),c.Oqu(ee.label),c.xp6(1),c.Q6J("matMenuTriggerFor",le),c.xp6(1),c.Q6J("ngStyle",c.VKq(6,S,ee.iconColor)),c.xp6(2),c.Q6J("ngIf",null!==ee.user),c.xp6(3),c.Q6J("ngIf",ee.logoutEnabled)}},dependencies:[A.O5,A.PC,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,E.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),Q})()},7434:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>U});var e=h(94650),c=h(24006),A=h(36895),w=h(59549),g=h(284),C=h(50301),T=h(89383);function E(_,V){if(1&_&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&_){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}function S(_,V){if(1&_&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&_){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}let U=(()=>{class _{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new c.p4}ngOnInit(){this.formControl.valueChanges.subscribe(z=>{let Q=z.trim();Q=Q.toLowerCase(),this.filter.emit(Q)})}}return _.\u0275fac=function(z){return new(z||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(z,Q){1&z&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,E,2,4,"input",1),e.YNc(2,S,2,4,"input",2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",Q.autoFocus),e.xp6(1),e.Q6J("ngIf",!Q.autoFocus))},dependencies:[A.O5,c.Fj,c.JJ,w.KE,c.oH,g.Nt,C.hT,T.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),_})()},4811:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>P});var e=h(74281),c=h(32080),A=h(9244),w=h(96308),g=h(56451),C=h(18505),T=h(94650),E=h(65412),S=h(10036),U=h(36895),_=h(56709),V=h(30671),z=h(94364),Q=h(51572),te=h(98380),oe=h(97392),ee=h(10266),le=h(18750),de=h(50301),Te=h(89383),v=h(31359),L=h(69773),B=h(21757),W=h(12856),q=h(20919),ue=h(5865),ye=h(82514),Me=h(96974),we=h(38993),Ge=h(86349);function ce(H,i){1&H&&(T.TgZ(0,"div",22),T._UZ(1,"mat-spinner",23),T.qZA())}function Ze(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"th",24)(1,"mat-checkbox",25),T.NdJ("change",function(l){T.CHM(o);const a=T.oxw();return T.KtG(l?a.masterToggle():null)}),T.qZA()()}if(2&H){const o=T.oxw();T.xp6(1),T.Q6J("aria-label",o.checkboxLabel())("checked",o.selection.hasValue()&&o.isAllSelected())("indeterminate",o.selection.hasValue()&&!o.isAllSelected())}}function he(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",26)(1,"mat-checkbox",27),T.NdJ("change",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(l?t.selection.toggle(n):null)})("click",function(l){return l.stopPropagation()}),T.ALo(2,"lowercase"),T.ALo(3,"memberStatusDisabled"),T.ALo(4,"memberCheckboxLabel"),T.qZA()()}if(2&H){const o=i.$implicit,f=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,5,o.user.firstName),"-checkbox"),T.Q6J("aria-label",f.checkboxLabel(o))("checked",f.selection.isSelected(o))("disabled",T.xi3(3,7,o,f.groupId))("matTooltip",T.xi3(4,10,o,f.groupId))}}function xe(H,i){1&H&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ID")))}function j(H,i){if(1&H&&(T.TgZ(0,"td",29),T._uU(1),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(o.id)}}function R(H,i){1&H&&T._UZ(0,"th",28)}function G(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"mat-icon",32),T.NdJ("click",function(l){T.CHM(o);const a=T.oxw().$implicit,n=T.oxw();return T.KtG(n.viewMemberGroupTree(l,a))}),T.ALo(1,"translate"),T._uU(2,"transfer_within_a_station"),T.qZA()}2&H&&T.Q6J("matTooltip",T.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function se(H,i){if(1&H&&(T.TgZ(0,"td",30),T.YNc(1,G,3,3,"mat-icon",31),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Q6J("ngIf","DIRECT"!==o.membershipType)}}function $(H,i){1&H&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Ee(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o.user))}}function Oe(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function ct(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n))}),T.ALo(2,"memberStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&H){const o=i.$implicit;T.xp6(1),T.Gre("material-icons ",T.lcZ(2,5,o),""),T.s9C("matTooltip",T.xi3(3,7,o,!1)),T.xp6(4),T.hij(" ",T.lcZ(6,10,o.status)," ")}}function Xe(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function _t(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n,t.groupId))}),T.ALo(2,"groupStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&H){const o=i.$implicit,f=T.oxw();T.xp6(1),T.Gre("material-icons ",T.Dn7(2,5,o.groupStatus,"INDIRECT"===o.membershipType,f.isMembersGroup),""),T.s9C("matTooltip",T.Dn7(3,9,o,!0,f.isMembersGroup)),T.xp6(4),T.hij(" ",T.lcZ(6,13,o.groupStatus)," ")}}function Je(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function gt(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberOrganization"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function Y(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Ce(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function ae(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function re(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function Se(H,i){1&H&&T._UZ(0,"tr",35)}const Fe=function(H,i){return["/organizations",H,"members",i]};function be(H,i){if(1&H&&T._UZ(0,"tr",36),2&H){const o=i.$implicit,f=T.oxw();T.ekj("cursor-pointer",f.dataSource.routeAuth)("italic_font","INDIRECT"===o.membershipType)("disable-outline",!f.dataSource.routeAuth),T.Q6J("perunWebAppsMiddleClickRouterLink",f.dataSource.routeAuth?T.WLB(8,Fe,o.voId,o.id):null)("routerLink",f.dataSource.routeAuth?T.WLB(11,Fe,o.voId,o.id):null)}}function Ue(H,i){1&H&&(T.TgZ(0,"perun-web-apps-alert",37),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let P=(()=>{class H{constructor(o,f,l,a,n){this.dialog=o,this.authResolver=f,this.tableCheckbox=l,this.tableConfigService=a,this.dynamicPaginatingService=n,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=A.f7,this.canBeSelected=t=>!(0,A.im)(t)}static getExportDataForColumn(o,f){switch(f){case"id":return o.id.toString();case"fullName":return o.user?(0,A.bD)(o.user):"";case"status":return o.status;case"groupStatus":return o.groupStatus;case"organization":return(0,A.Gw)(o);case"email":return(0,A.g$)(o);case"logins":return(0,A.lt)(o);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(o=>"id"!==o)),this.dataSource=new c.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(o=>{this.canBeSelected(o)&&this.selection.select(o)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(l=>this.canBeSelected(l)).length}checkboxLabel(o){return o?`${this.selection.isSelected(o)?"deselect":"select"} row ${o.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(o,f,l){if(o.stopPropagation(),this.isMembersGroup&&l)return;const a=(0,A.zr)(f);if("INDIRECT"===a&&l||!l&&"UNALTERABLE"===a)return;const n=(0,A.kZ)();n.width="500px",n.data={member:f,voId:this.voId,groupId:l};const t=l?f.groupStatus:f.status;this.dialog.open(e.pf,n).afterClosed().subscribe(s=>{if(s){const d=l?s.groupStatus:s.status;"VALID"===t&&("EXPIRED"===d||"DISABLED"===d)||"VALID"===d?(l?f.groupStatus=d:f.status=d,this.changeExpiration(f,l)):this.loadMembersPage()}})}changeExpiration(o,f){const l=o.memberAttributes.find(f?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),a=(0,A.kZ)();let n;a.width="400px",a.data={voId:this.voId,groupId:f,memberId:o.id,expirationAttr:l,status:f?o.groupStatus:o.status,statusChanged:!0},n=this.dialog.open(f?e.u3:e.kZ,a),n.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)}exportDisplayedData(o){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,H.getExportDataForColumn),o)}exportAllData(o){const f="asc"===this.sort.direction?"ASCENDING":"DESCENDING",l="fullName"===this.sort.active?"NAME":"ID",a=(0,A.kZ)();a.width="300px";const n=this.dialog.open(e.QQ,a);this.dataSource.getAllMembers(this.voId,this.attrNames,f,this.child.paginator.length,l,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(t=>{n.close(),(0,A.O6)((0,A.Xn)(t,this.displayedColumns,H.getExportDataForColumn),o)})}viewMemberGroupTree(o,f){o.stopPropagation();const l=(0,A.kZ)();l.width="800px",l.data={member:f,groupId:this.groupId},this.dialog.open(e.jd,l)}}return H.\u0275fac=function(o){return new(o||H)(T.Y36(E.uw),T.Y36(c.x4),T.Y36(c.UA),T.Y36(S.dB),T.Y36(c.ly))},H.\u0275cmp=T.Xpm({type:H,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(o,f){if(1&o&&(T.Gf(A.l9,7),T.Gf(w.YE,5)),2&o){let l;T.iGM(l=T.CRH())&&(f.child=l.first),T.iGM(l=T.CRH())&&(f.sort=l.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup"},features:[T.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["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(o,f){1&o&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(a){return f.exportDisplayedData(a)})("exportAllData",function(a){return f.exportAllData(a)}),T.YNc(3,ce,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.ynx(6,4),T.YNc(7,Ze,2,3,"th",5),T.YNc(8,he,5,13,"td",6),T.BQk(),T.ynx(9,7),T.YNc(10,xe,3,3,"th",8),T.YNc(11,j,2,1,"td",9),T.BQk(),T.ynx(12,10),T.YNc(13,R,1,0,"th",8),T.YNc(14,se,2,1,"td",11),T.BQk(),T.ynx(15,12),T.YNc(16,$,3,3,"th",8),T.YNc(17,Ee,3,3,"td",11),T.BQk(),T.ynx(18,13),T.YNc(19,Oe,3,3,"th",14),T.YNc(20,ct,7,12,"td",11),T.BQk(),T.ynx(21,15),T.YNc(22,Xe,3,3,"th",14),T.YNc(23,_t,7,15,"td",11),T.BQk(),T.ynx(24,16),T.YNc(25,Je,3,3,"th",14),T.YNc(26,gt,3,3,"td",11),T.BQk(),T.ynx(27,17),T.YNc(28,Y,3,3,"th",14),T.YNc(29,Ce,3,3,"td",11),T.BQk(),T.ynx(30,18),T.YNc(31,ae,3,3,"th",14),T.YNc(32,re,3,3,"td",11),T.BQk(),T.YNc(33,Se,1,0,"tr",19),T.YNc(34,be,1,14,"tr",20),T.qZA()()(),T.YNc(35,Ue,3,3,"perun-web-apps-alert",21),T.ALo(36,"async")),2&o&&(T.Q6J("hidden",0===f.dataSource.allObjectCount&&!1===T.lcZ(1,9,f.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",f.tableId)("dataLength",f.dataSource.allObjectCount)("pageSizeOptions",f.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,11,f.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",f.dataSource),T.xp6(28),T.Q6J("matHeaderRowDef",f.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",f.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===f.dataSource.allObjectCount&&!1===T.lcZ(36,13,f.dataSource.loading$)))},dependencies:[U.O5,_.oG,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,z.rH,w.YE,w.nU,Q.Ou,te.w,oe.Hw,ee.gM,le.l,de.YH,U.Ov,U.i8,Te.X$,v.d,L.u,B.f,W.i,q.D,ue.p,ye.F,Me.M,we.n,Ge.A],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),H})()},38383:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>i});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(74281),T=h(32080),E=h(65412),S=h(94364),U=h(36895),_=h(56709),V=h(98380),z=h(97392),Q=h(10266),te=h(18750),oe=h(50301),ee=h(89383),le=h(31359),de=h(69773),Te=h(21757),v=h(12856),L=h(20919),B=h(5865),W=h(82514),q=h(96974);function ue(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"th",26)(1,"mat-checkbox",27),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw();return e.KtG(n?t.masterToggle():null)}),e.qZA()()}if(2&o){const l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ye(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",28)(1,"mat-checkbox",29),e.NdJ("change",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(n?s.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),e.ALo(2,"translate"),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("aria-label",a.checkboxLabel(l))("checked",a.selection.isSelected(l))("disabled","DIRECT"!==l.membershipType)("matTooltip","DIRECT"!==l.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function Me(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function we(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.id)}}function Ge(o,f){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,"MEMBERS_LIST.VO_ID")," "))}function ce(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.voId)}}function Ze(o,f){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,"MEMBERS_LIST.USER_ID")," "))}function he(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.userId)}}function xe(o,f){1&o&&e._UZ(0,"th",30)}function j(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.viewMemberGroupTree(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=n.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function R(o,f){if(1&o&&(e.TgZ(0,"td",32),e.YNc(1,j,3,3,"mat-icon",33),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==l.membershipType)}}function G(o,f){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,"MEMBERS_LIST.NAME")," "))}function se(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l.user))}}function $(o,f){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,"MEMBERS_LIST.STATUS")," "))}function Ee(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(s.changeStatus(n,r))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const l=f.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l),""),e.s9C("matTooltip",e.xi3(3,7,l,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.status)," ")}}function Oe(o,f){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,"MEMBERS_LIST.GROUP_STATUS")," "))}function ct(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(s.changeStatus(n,r))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const l=f.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,l,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.groupStatus)," ")}}function Xe(o,f){1&o&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function _t(o,f){1&o&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Je(o,f){if(1&o&&(e.TgZ(0,"td",37),e.YNc(1,_t,2,0,"mat-icon",38),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf",l.sponsored)}}function gt(o,f){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,"MEMBERS_LIST.ORGANIZATION")," "))}function Y(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function Ce(o,f){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,"MEMBERS_LIST.EMAIL")," "))}function ae(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function re(o,f){1&o&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Se(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function Fe(o,f){1&o&&e._UZ(0,"tr",40)}const be=function(o,f){return["/organizations",o,"members",f]};function Ue(o,f){if(1&o&&e._UZ(0,"tr",41),2&o){const l=f.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disabledRouting)("disable-outline",a.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:e.WLB(6,be,l.voId,l.id))("routerLink",a.disableRouting?null:e.WLB(9,be,l.voId,l.id))}}function P(o,f){1&o&&(e.TgZ(0,"perun-web-apps-alert",42),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"))}function H(o,f){1&o&&(e.TgZ(0,"perun-web-apps-alert",42),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_MEMBERS"),"\n"))}let i=(()=>{class o{constructor(l,a,n,t){this.dialog=l,this.authResolver=a,this.tableCheckbox=n,this.route=t,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=(r,s)=>o.getExportDataForColumn(r,s,this.showGroupStatuses),this.getSortDataForColumnFun=(r,s)=>o.getSortDataForColumn(r,s,this.showGroupStatuses),this.canBeSelected=r=>"DIRECT"===r.membershipType}set matSort(l){this.sort=l}static getFilterDataForColumn(l,a){switch(a){case"fullName":return l.user?(0,g.bD)(l.user):"";case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getExportDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"fullName":return l.user?(0,g.bD)(l.user):"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getSortDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"fullName":return l.user?l.user.lastName?l.user.lastName:l.user.firstName??"":"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);default:return""}}exportDisplayedData(l){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=a+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,n),this.displayedColumns,this.getExportDataForColumnFun),l)}exportAllData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,a)=>(0,g.Sd)(l,a,this.displayedColumns,o.getFilterDataForColumn),this.dataSource.sortData=(l,a)=>(0,g.pR)(l,a,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.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(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(l,a){if(l.stopPropagation(),!this.disableStatusChange){const n=(0,g.kZ)();n.width="500px",n.data={member:a,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(C.pf,n).afterClosed().subscribe(r=>{r&&this.updateTable.emit(!0)})}}viewMemberGroupTree(l){const a=(0,g.kZ)();a.width="800px",a.data={member:l,groupId:this.groupId},this.dialog.open(C.jd,a)}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(E.uw),e.Y36(T.x4),e.Y36(T.UA),e.Y36(S.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-members-list"]],viewQuery:function(l,a){if(1&l&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(a.child=n.first),e.iGM(n=e.CRH())&&(a.matSort=n.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","exportDisplayedData","exportAllData"],["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(l,a){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(t){return a.exportDisplayedData(t)})("exportAllData",function(t){return a.exportAllData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ue,2,3,"th",4),e.YNc(5,ye,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,we,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ge,3,3,"th",7),e.YNc(11,ce,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,Ze,3,3,"th",7),e.YNc(14,he,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,xe,1,0,"th",7),e.YNc(17,R,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,G,3,3,"th",7),e.YNc(20,se,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,$,3,3,"th",7),e.YNc(23,Ee,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,Oe,3,3,"th",7),e.YNc(26,ct,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,Xe,3,3,"th",17),e.YNc(29,Je,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,gt,3,3,"th",7),e.YNc(32,Y,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,Ce,3,3,"th",7),e.YNc(35,ae,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,re,3,3,"th",22),e.YNc(38,Se,3,3,"td",10),e.BQk(),e.YNc(39,Fe,1,0,"tr",23),e.YNc(40,Ue,1,12,"tr",24),e.qZA()()(),e.YNc(41,P,3,3,"perun-web-apps-alert",25),e.YNc(42,H,3,3,"perun-web-apps-alert",25)),2&l&&(e.Q6J("hidden",0===a.members.length||!a.dataSource||0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId)("pageSizeOptions",a.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==a.members.length&&0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===a.members.length))},dependencies:[U.O5,_.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,c.YE,c.nU,V.w,z.Hw,Q.gM,te.l,oe.YH,ee.X$,le.d,de.u,Te.f,v.i,L.D,B.p,W.F,q.M],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}"]}),o})()},22465:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>_});var e=h(94650),c=h(32080),A=h(9244),w=h(74281),g=h(65412),C=h(36895),T=h(97392),E=h(89383);function S(V,z){if(1&V&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&V){const Q=e.oxw();e.xp6(2),e.Oqu(Q.data.icon)}}function U(V,z){if(1&V&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&V){const Q=e.oxw();e.xp6(1),e.hij(" ",Q.showTimestamp()," ")}}let _=(()=>{class V{constructor(Q,te){this.dialog=Q,this.notificationStorageService=te,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const Q=(0,A.kZ)();Q.width="550px",Q.data=this.data,Q.autoFocus=!1,this.dialog.open(w.FM,Q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[Q,te]=this.data.timeStamp.split(":");return te.length<2?Q+":0"+te:this.data.timeStamp}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(g.uw),e.Y36(c.SZ))},V.\u0275cmp=e.Xpm({type:V,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(Q,te){1&Q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return te.alreadyClosed||te.waiting?"":te.closeSelf()}),e.YNc(2,S,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,U,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return te.waiting=!0,te.doAction()}),e._uU(8),e.qZA()()()),2&Q&&(e.Gre("notification ",te.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===te.data.type)("success","success"===te.data.type),e.xp6(2),e.Q6J("ngIf",null!==te.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,te.data.title)," "),e.xp6(2),e.Q6J("ngIf",te.inDialog),e.xp6(1),e.Q6J("hidden",te.alreadyPressed),e.xp6(1),e.hij(" ",te.data.actionText," "))},dependencies:[C.O5,T.Hw,E.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}"]}),V})()},53599:(Ye,pe,h)=>{"use strict";h.d(pe,{N:()=>ue});var e=h(94650),c=h(32105),A=h(32080),w=h(30671),g=h(9244),C=h(74281),T=h(65412),E=h(94364),S=h(36895),U=h(96308),_=h(98380),V=h(4859),z=h(89383),Q=h(34447);function te(ye,Me){1&ye&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function oe(ye,Me){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function ee(ye,Me){if(1&ye&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ye){const we=Me.$implicit;e.xp6(1),e.Oqu(we.friendlyNameParameter)}}function le(ye,Me){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function de(ye,Me){if(1&ye&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ye){const we=Me.$implicit;e.xp6(1),e.Oqu(we.value)}}function Te(ye,Me){1&ye&&e._UZ(0,"th",16)}function v(ye,Me){if(1&ye){const we=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Ze=e.CHM(we).$implicit,he=e.oxw();return e.KtG(he.resetPassword(Ze.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const we=Me.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(we)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function L(ye,Me){1&ye&&e._UZ(0,"th",16)}function B(ye,Me){if(1&ye){const we=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Ze=e.CHM(we).$implicit,he=e.oxw();return e.KtG(he.changePassword(Ze))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const we=Me.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(we)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function W(ye,Me){1&ye&&e._UZ(0,"tr",22)}function q(ye,Me){1&ye&&e._UZ(0,"tr",23)}let ue=(()=>{class ye{constructor(we,Ge,ce,Ze,he,xe,j){this.attributesManagerService=we,this.store=Ge,this.dialog=ce,this.route=Ze,this.router=he,this.otherApplicationService=xe,this.entityStorageService=j,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(we=>{const Ge=we.split(":");return Ge[Ge.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(we=>{if(this.logins=we.filter(Ge=>this.nameSpaces.includes(Ge.friendlyNameParameter)),this.filteredNamespaces.emit(we.map(Ge=>Ge.friendlyNameParameter)),this.dataSource=new w.by(we),!this.authenticationPage){const ce=this.route.snapshot.queryParamMap.get("namespace");if(ce){const Ze=this.logins.find(he=>he.friendlyNameParameter===ce);Ze&&this.changePassword(Ze)}}})}resetPassword(we){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",we),"_blank")}changePassword(we){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:we.friendlyNameParameter},queryParamsHandling:"merge"});const Ge=(0,g.kZ)();Ge.width="600px",Ge.data={login:String(we.value),namespace:we.friendlyName.split(":")[1]},this.dialog.open(C.xF,Ge).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ye.\u0275fac=function(we){return new(we||ye)(e.Y36(c.H8),e.Y36(A.d6),e.Y36(T.uw),e.Y36(E.gz),e.Y36(E.F0),e.Y36(A.jq),e.Y36(A.fb))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(we,Ge){1&we&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,te,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,oe,4,5,"th",7),e.YNc(11,ee,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,le,4,5,"th",7),e.YNc(14,de,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,Te,1,0,"th",7),e.YNc(17,v,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,L,1,0,"th",7),e.YNc(20,B,5,6,"td",12),e.BQk(),e.YNc(21,W,1,0,"tr",14),e.YNc(22,q,1,0,"tr",15),e.qZA()()()()),2&we&&(e.xp6(1),e.hij(" ",Ge.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!Ge.logins.length&&!Ge.authenticationPage),e.xp6(4),e.Q6J("dataSource",Ge.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",Ge.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ge.displayedColumns))},dependencies:[S.O5,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,U.YE,_.w,V.lW,z.X$,Q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ye})()},41619:(Ye,pe,h)=>{"use strict";h.d(pe,{$:()=>he});var e=h(32080),c=h(32105),A=h(94650),w=h(65412),g=h(89383),C=h(36895),T=h(24006),E=h(4859),S=h(59549),U=h(284);function _(xe,j){1&xe&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&xe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let V=(()=>{class xe{constructor(R,G,se,$,Ee){this.dialogRef=R,this.translate=G,this.notificator=se,this.rtMessages=$,this.storeService=Ee,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: ",h(4147).i8)}close(){this.dialogRef.close()}}return xe.\u0275fac=function(R){return new(R||xe)(A.Y36(w.so),A.Y36(g.sK),A.Y36(e.V6),A.Y36(c.Hr),A.Y36(e.d6))},xe.\u0275cmp=A.Xpm({type:xe,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,G){if(1&R&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function($){return G.subject=$}),A.qZA(),A.YNc(10,_,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function($){return G.message=$}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return G.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return G.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&R){const se=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",G.subject),A.xp6(2),A.Q6J("ngIf",se.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",G.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",se.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[C.O5,T.Fj,T.JJ,T.Q7,T.On,E.lW,S.TO,S.KE,S.bx,S.hX,U.Nt,w.uh,w.xY,w.H8,g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),xe})();var z=h(9244);let Q=(()=>{class xe{transform(R,G,se){return R[`${se}_${G}`]}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"localisedText",type:xe,pure:!0}),xe})(),te=(()=>{class xe{transform(R,G){return R["link_"+G]||R.link_en}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"localisedLink",type:xe,pure:!0}),xe})(),oe=(()=>{class xe{transform(R){return R.includes("/")?R:"/assets/config/"+R}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"footerLogoPath",type:xe,pure:!0}),xe})();function ee(xe,j){if(1&xe&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,2,R,G.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,R.logo),A.LSH)}}function le(xe,j){if(1&xe&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&xe){const R=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,R.logo),A.LSH)}}function de(xe,j){if(1&xe&&(A.TgZ(0,"div"),A.YNc(1,ee,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,le,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,R,G.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,R,G.language))}}const Te=function(xe){return{"min-height":xe}};function v(xe,j){if(1&xe&&(A.TgZ(0,"div",10),A.YNc(1,de,5,8,"div",5),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,Te,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",R.elements)}}const L=function(xe){return{color:xe}};function B(xe,j){if(1&xe&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,L,G.linksTextColor)),A.xp6(1),A.hij(" ",R.icon," ")}}function W(xe,j){if(1&xe){const R=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(R);const se=A.oxw().$implicit,$=A.oxw(3);return A.KtG($.openDialog(se.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,L,G.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,R,G.language,"label")," ")}}function q(xe,j){if(1&xe&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,3,R,G.language),A.LSH)("ngStyle",A.VKq(10,L,G.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,R,G.language,"label"))}}function ue(xe,j){if(1&xe&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,L,G.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,R,G.language,"label"))}}function ye(xe,j){if(1&xe&&(A.TgZ(0,"div",16),A.YNc(1,B,2,4,"i",17),A.YNc(2,W,3,8,"span",18),A.YNc(3,q,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,ue,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",R.icon),A.xp6(1),A.Q6J("ngIf",R.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,R,G.language)&&!R.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,R,G.language)&&!R.dialog)}}const Me=function(xe){return{height:xe}};function we(xe,j){if(1&xe&&(A.TgZ(0,"div",10),A.YNc(1,ye,7,10,"div",15),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,Me,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",R.elements)}}function Ge(xe,j){if(1&xe&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,v,2,4,"div",9),A.YNc(5,we,2,4,"div",9),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw();A.ekj("my-auto",G.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,L,G.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,R,G.language,"title")," "),A.xp6(2),A.Q6J("ngIf",R.logos),A.xp6(1),A.Q6J("ngIf",R.elements&&!R.logos)}}function ce(xe,j){if(1&xe&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&xe){const R=j.$implicit,G=j.index,se=A.oxw();A.xp6(1),A.Q6J("href",R.url,A.LSH)("ngStyle",A.VKq(3,L,se.copyrightTextColor)),A.xp6(1),A.Oqu(G?", "+R.name:R.name)}}const Ze=function(xe){return{background:xe}};let he=(()=>{class xe{constructor(R,G,se){this.storeService=R,this.translateService=G,this.dialog=se,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=h(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 G=(0,z.kZ)();"reportIssue"===R&&(G.width="550px",this.dialog.open(V,G))}}return xe.\u0275fac=function(R){return new(R||xe)(A.Y36(e.d6),A.Y36(g.sK),A.Y36(w.uw))},xe.\u0275cmp=A.Xpm({type:xe,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,G){1&R&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,Ge,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,ce,3,5,"span",5),A._uU(7," Version "),A.TgZ(8,"a",6),A._uU(9),A.qZA()()()),2&R&&(A.Q6J("ngStyle",A.VKq(8,Ze,G.bgColor)),A.xp6(2),A.Q6J("ngForOf",G.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(10,L,G.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",G.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",G.copyrightItems),A.xp6(2),A.Q6J("href",G.githubRepository,A.LSH)("ngStyle",A.VKq(12,L,G.copyrightTextColor)),A.xp6(1),A.Oqu(G.version))},dependencies:[C.sg,C.O5,C.PC,Q,te,oe],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}"]}),xe})()},10441:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>T});var e=h(94650),c=h(36895),A=h(97392),w=h(10266),g=h(89383);function C(E,S){1&E&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&E&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let T=(()=>{class E{constructor(){this.recentIds=[]}}return E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,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(U,_){1&U&&e.YNc(0,C,3,3,"mat-icon",0),2&U&&e.Q6J("ngIf",_.recentIds.indexOf(_.id)>-1)},dependencies:[c.O5,A.Hw,w.gM,g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),E})()},96214:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>C});var e=h(94650),c=h(97392),A=h(4859),w=h(10266),g=h(89383);let C=(()=>{class T{constructor(){this.refresh=new e.vpe}onClickbutton(S){this.refresh.emit(S)}}return T.\u0275fac=function(S){return new(S||T)},T.\u0275cmp=e.Xpm({type:T,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(S,U){1&S&&(e.TgZ(0,"button",0),e.NdJ("click",function(V){return U.onClickbutton(V)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&S&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",U.disabled),e.xp6(2),e.s9C("svgIcon",U.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[c.Hw,A.lW,w.gM,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}"]}),T})()},45703:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(c.aC)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,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(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.resourceSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.resource)("entities",S.resources)("displayStatus",S.displayStatus)("searchFunction",S.nameFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.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"))},dependencies:[A.i,w.X$]}),C})()},62109:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>re});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),E=h(56709),S=h(94364),U=h(98380),_=h(97392),V=h(10266),z=h(18750),Q=h(50301),te=h(10441),oe=h(8223),ee=h(89383);let le=(()=>{class Se{transform(be){if(null==be)return null;let P="";return be.forEach(function(H){P=P.concat(H.tagName)}),P}}return Se.\u0275fac=function(be){return new(be||Se)},Se.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:Se,pure:!0}),Se})();var de=h(82895);function Te(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"th",24)(1,"mat-checkbox",25),e.NdJ("change",function(P){e.CHM(be);const H=e.oxw();return e.KtG(P?H.masterToggle():null)}),e.qZA()()}if(2&Se){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 v(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"td",26)(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(P){const i=e.CHM(be).$implicit,o=e.oxw();return e.KtG(P?o.itemSelectionToggle(i):null)})("click",function(P){return P.stopPropagation()}),e.qZA()()()}if(2&Se){const be=Fe.$implicit,Ue=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",!Ue.disableSelect(be)),e.xp6(2),e.Q2q("data-cy","",be.name,"-checkbox"),e.Q6J("aria-label",Ue.checkboxLabel(be))("checked",Ue.selection.isSelected(be))("disabled",Ue.disableSelect(be))}}function L(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function B(Se,Fe){if(1&Se&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.id)}}function W(Se,Fe){1&Se&&e._UZ(0,"th",31)}function q(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&Se){const be=Fe.$implicit,Ue=e.oxw();e.xp6(1),e.Q6J("recentIds",Ue.recentIds)("id",be.id)}}function ue(Se,Fe){1&Se&&e._UZ(0,"th",31)}function ye(Se,Fe){1&Se&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Se&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Me(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e.YNc(1,ye,3,3,"mat-icon",34),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Q6J("ngIf",be.sourceGroupId)}}function we(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function Ge(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.uIk("data-cy",be.name),e.xp6(1),e.hij(" ",be.name," ")}}function ce(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Ze(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.vo.name)}}function he(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function xe(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.voId)}}function j(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function R(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.disabledRouting=!0)})("mouseleave",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.disabledRouting=P.disableRouting)})("statusChange",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.refreshTable.emit())}),e.qZA()()}if(2&Se){const be=Fe.$implicit,Ue=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",be.id)("groupId",Ue.groupId)("failureCause",be.failureCause)("status",be.status)}}function G(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function se(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.facility.name)}}function $(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Ee(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.facilityId)}}function Oe(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function ct(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,be.resourceTags)," ")}}function Xe(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function _t(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.description)}}function Je(Se,Fe){1&Se&&e._UZ(0,"tr",37)}const gt=function(Se){return[Se]};function Y(Se,Fe){if(1&Se&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&Se){const be=Fe.$implicit,Ue=e.oxw();e.ekj("cursor-pointer",!Ue.disableRouting)("disable-outline",Ue.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,gt,Ue.disabledRouting?null:e.xi3(1,6,be,Ue.routingVo)))("routerLink",Ue.disabledRouting?null:e.xi3(2,9,be,Ue.routingVo))}}function Ce(Se,Fe){1&Se&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ae(Se,Fe){1&Se&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let re=(()=>{class Se{constructor(be,Ue){this.guiAuthResolver=be,this.tableCheckbox=Ue,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=(P,H)=>Se.getDataForColumn(P,H,this.recentIds),this.canBeSelected=P=>!this.disableSelect(P)}set matSort(be){this.sort=be}static getDataForColumn(be,Ue,P){switch(Ue){case"id":return be.id.toString();case"vo":return be.vo.name;case"name":return be.name;case"facility":return be.facility.name;case"description":return be.description;case"recent":return P&&P.includes(be.id)?"#".repeat(P.indexOf(be.id)):be.name;case"tags":{if(!be.resourceTags)return be[Ue];let i="";return be.resourceTags.forEach(function(o){i=i.concat(o.tagName)}),i}case"status":return be.status;case"uuid":return be.uuid;default:return be[Ue]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(be=>"id"!==be)),this.setDataSource(),this.setAuth()}exportAllData(be){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),be)}exportDisplayedData(be){const Ue=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,P=Ue+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ue,P),this.displayedColumns,this.getDataForColumnFun),be)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(be,Ue)=>(0,g.Sd)(be,Ue,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(be,Ue)=>(0,g.pR)(be,Ue,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const be=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(be),be}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(be){return be?`${this.selection.isSelected(be)?"deselect":"select"} row ${be.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const be=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((Ue,P)=>Ue&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",be.concat([P])),!0),this.addAuth=this.selection.selected.reduce((Ue,P)=>Ue&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",be.concat([P])),!0)}itemSelectionToggle(be){this.selection.toggle(be),this.setAuth()}disableSelect(be){return this.resourcesToDisableCheckbox.has(be.id)}}return Se.\u0275fac=function(be){return new(be||Se)(e.Y36(C.x4),e.Y36(C.UA))},Se.\u0275cmp=e.Xpm({type:Se,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(be,Ue){if(1&be&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&be){let P;e.iGM(P=e.CRH())&&(Ue.child=P.first),e.iGM(P=e.CRH())&&(Ue.matSort=P.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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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(be,Ue){1&be&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(H){return Ue.exportDisplayedData(H)})("exportAllData",function(H){return Ue.exportAllData(H)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Te,2,3,"th",4),e.YNc(5,v,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,L,3,3,"th",7),e.YNc(8,B,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,W,1,0,"th",10),e.YNc(11,q,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ue,1,0,"th",10),e.YNc(14,Me,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,we,3,3,"th",7),e.YNc(17,Ge,2,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,ce,3,3,"th",7),e.YNc(20,Ze,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,he,3,3,"th",7),e.YNc(23,xe,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,j,3,3,"th",7),e.YNc(26,R,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,G,3,3,"th",7),e.YNc(29,se,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,$,3,3,"th",7),e.YNc(32,Ee,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,Oe,3,3,"th",7),e.YNc(35,ct,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Xe,3,3,"th",7),e.YNc(38,_t,2,1,"td",11),e.BQk(),e.YNc(39,Je,1,0,"tr",21),e.YNc(40,Y,3,14,"tr",22),e.qZA()()(),e.YNc(41,Ce,3,3,"perun-web-apps-alert",23),e.YNc(42,ae,3,3,"perun-web-apps-alert",23)),2&be&&(e.Q6J("hidden",0===Ue.dataSource.filteredData.length||0===Ue.resources.length),e.xp6(1),e.Q6J("dataLength",Ue.dataSource.filteredData.length)("tableId",Ue.tableId)("pageSizeOptions",Ue.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ue.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",Ue.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ue.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ue.dataSource.filteredData.length&&0!==Ue.resources.length),e.xp6(1),e.Q6J("ngIf",0===Ue.resources.length))},dependencies:[T.O5,E.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,c.YE,c.nU,U.w,_.Hw,V.gM,z.l,Q.YH,te.W,oe.x,ee.X$,le,de.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}"]}),Se})()},52170:(Ye,pe,h)=>{"use strict";h.d(pe,{$x:()=>C,qG:()=>g});var e=h(94650),c=h(89383),A=h(42377);class w{constructor(E,S){this.value=S,this.displayName=E}}var g=(()=>{return(T=g||(g={}))[T.SOURCE=0]="SOURCE",T[T.DESTINATION=1]="DESTINATION",T[T.FEDERATION=2]="FEDERATION",g;var T})();let C=(()=>{class T{constructor(S){this.translateService=S,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=U=>U.displayName,this.shortNameFunction=()=>null,this.searchFunction=U=>U.displayName}static getDefinition(S){const U=S.namespace.split(":");return null===U[4]?"null":U[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(S=>{const U=new w(S,"");this.items.push(U),this.item=U});for(const S of this.attributes){const U=new w(S.friendlyName+" ("+S.entity+" / "+T.getDefinition(S)+")",S.namespace+":"+S.friendlyName);U.value===this.selectedAttribute&&(this.item=U),("user"===S.entity.toLowerCase()||"member"===S.entity.toLowerCase()||"vo"===S.entity.toLowerCase()&&this.type===g.SOURCE||"group"===S.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(U)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{this.items.push(new w(S,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(U=>{this.items.push(new w(U,"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 S of this.items)if(S.value===this.selectedAttribute)return void(this.item=S);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(S){S.sort((U,_)=>""===U.value?-1:""===_.value?1:U.displayName.localeCompare(_.displayName))}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(c.sK))},T.\u0275cmp=e.Xpm({type:T,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(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("entity",U.item)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,c.X$]}),T})()},30540:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(94650),c=h(42377),A=h(89383);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=T=>T.name,this.secondaryFunction=()=>"",this.searchFunction=T=>T.name}}return g.\u0275fac=function(T){return new(T||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(T,E){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(U){return E.serviceSelected.emit(U)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",E.service)("entities",E.services)("multiple",E.multiple)("disableAutoSelect",E.disableAutoSelect)("searchFunction",E.searchFunction)("mainTextFunction",E.nameFunction)("secondaryTextFunction",E.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",E.theme)},dependencies:[c.i,A.X$]}),g})()},80275:(Ye,pe,h)=>{"use strict";h.d(pe,{j:()=>xe});var e=h(95017),c=h(96308),A=h(30671),w=h(32080),g=h(9244),C=h(94650),T=h(94364),E=h(36895),S=h(56709),U=h(98380),_=h(10266),V=h(18750),z=h(50301),Q=h(89383);let te=(()=>{class j{transform(G){return G.find($=>"mail"===$.friendlyName)?.value??""}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275pipe=C.Yjl({name:"getMailFromAttributes",type:j,pure:!0}),j})();var oe=h(34447);function ee(j,R){1&j&&C._UZ(0,"th",18)}function le(j,R){if(1&j){const G=C.EpF();C.TgZ(0,"td",19)(1,"span",20),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.TgZ(4,"mat-checkbox",21),C.NdJ("change",function($){const Oe=C.CHM(G).$implicit,ct=C.oxw();return C.KtG($?ct.selection.toggle(Oe):null)})("click",function($){return $.stopPropagation()}),C.qZA()()()}if(2&j){const G=R.$implicit,se=C.oxw();C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,C.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),C.Q6J("matTooltipPosition","above")("matTooltipDisabled",!G.userExtSource.persistent),C.xp6(3),C.Q6J("aria-label",se.checkboxLabel(G))("checked",se.selection.isSelected(G))("disabled",G.userExtSource.persistent)}}function de(j,R){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Te(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.id," ")}}function v(j,R){1&j&&(C.TgZ(0,"th",24),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function L(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.ALo(2,"getMailFromAttributes"),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,1,G.attributes)," ")}}function B(j,R){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.extSourceNameHeader?G.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function W(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.extSource.name," ")}}function q(j,R){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.loginHeader?G.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ue(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.login," ")}}function ye(j,R){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Me(j,R){if(1&j&&(C.TgZ(0,"td",25),C._uU(1),C.ALo(2,"date"),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,G.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function we(j,R){1&j&&C._UZ(0,"tr",26)}const Ge=function(j,R){return["/admin","users",j,"identities",R]};function ce(j,R){if(1&j&&C._UZ(0,"tr",27),2&j){const G=R.$implicit,se=C.oxw();C.ekj("cursor-pointer",!se.disableRouting)("disable-outline",se.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",se.disableRouting?null:C.WLB(6,Ge,se.userId,G.userExtSource.id))("routerLink",se.disableRouting?null:C.WLB(9,Ge,se.userId,G.userExtSource.id))}}function Ze(j,R){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(j,R){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let xe=(()=>{class j{constructor(G,se){this.route=G,this.authResolver=se,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(G){this.sort=G,this.setDataSource()}static getDataForColumn(G,se){switch(se){case"id":return G.userExtSource.id.toString();case"mail":{const $=G.attributes.find(Ee=>"mail"===Ee.friendlyName);return $?$.value:"N/A"}case"extSourceName":return G.userExtSource.extSource.name;case"login":return G.userExtSource.login;case"lastAccess":return G.userExtSource.lastAccess.split(".")[0];default:return G[se]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(G=>{this.userId=Number(G.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(G=>"id"!==G)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportAllData(G){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,j.getDataForColumn),G)}exportDisplayedData(G){const se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,$=se+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(se,$),this.displayedColumns,j.getDataForColumn),G)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(G,se)=>(0,g.Sd)(G,se,this.displayedColumns,j.getDataForColumn),this.dataSource.sortData=(G,se)=>(0,g.pR)(G,se,j.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(G){return`${this.selection.isSelected(G.userExtSource)?"deselect":"select"} row ${G.userExtSource.id+1}`}}return j.\u0275fac=function(G){return new(G||j)(C.Y36(T.gz),C.Y36(w.x4))},j.\u0275cmp=C.Xpm({type:j,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(G,se){if(1&G&&(C.Gf(g.l9,7),C.Gf(c.YE,7)),2&G){let $;C.iGM($=C.CRH())&&(se.child=$.first),C.iGM($=C.CRH())&&(se.matSort=$.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[C.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(G,se){1&G&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportDisplayedData",function(Ee){return se.exportDisplayedData(Ee)})("exportAllData",function(Ee){return se.exportAllData(Ee)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,ee,1,0,"th",4),C.YNc(5,le,5,10,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,de,4,5,"th",7),C.YNc(8,Te,2,1,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,v,4,5,"th",10),C.YNc(11,L,3,3,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,B,4,5,"th",7),C.YNc(14,W,2,1,"td",8),C.BQk(),C.ynx(15,12),C.YNc(16,q,4,5,"th",7),C.YNc(17,ue,2,1,"td",8),C.BQk(),C.ynx(18,13),C.YNc(19,ye,4,5,"th",7),C.YNc(20,Me,3,4,"td",14),C.BQk(),C.YNc(21,we,1,0,"tr",15),C.YNc(22,ce,1,12,"tr",16),C.qZA()()(),C.YNc(23,Ze,3,3,"perun-web-apps-alert",17),C.YNc(24,he,4,5,"perun-web-apps-alert",17)),2&G&&(C.Q6J("hidden",0===se.userExtSources.length||0===se.dataSource.filteredData.length),C.xp6(1),C.Q6J("tableId",se.tableId)("dataLength",se.dataSource.filteredData.length)("pageSizeOptions",se.pageSizeOptions),C.xp6(1),C.Q6J("dataSource",se.dataSource),C.xp6(19),C.Q6J("matHeaderRowDef",se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",se.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===se.dataSource.filteredData.length&&0!==se.userExtSources.length),C.xp6(1),C.Q6J("ngIf",0===se.userExtSources.length))},dependencies:[E.O5,S.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,c.YE,c.nU,U.w,_.gM,V.l,z.YH,E.uU,Q.X$,te,oe.a],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}"]}),j})()},74250:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=c.bD}ngOnInit(){this.users=this.users.sort(c.fx)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,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(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.userSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entities",S.users)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.userFullNameFunction)("mainTextFunction",S.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,w.X$]}),C})()},88561:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>Y});var e=h(95017),c=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(74281),E=h(94650),S=h(10036),U=h(65412),_=h(36895),V=h(56709),z=h(30671),Q=h(51572),te=h(98380),oe=h(97392),ee=h(10266),le=h(18750),de=h(50301),Te=h(89383),v=h(31359),L=h(16119),B=h(7598),W=h(9954);function q(Ce,ae){1&Ce&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function ue(Ce,ae){if(1&Ce){const re=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(Fe){E.CHM(re);const be=E.oxw(2);return E.KtG(Fe?be.masterToggle():null)}),E.qZA()}if(2&Ce){const re=E.oxw(2);E.Q6J("aria-label",re.checkboxLabel())("checked",re.selection.hasValue()&&re.isAllSelected())("indeterminate",re.selection.hasValue()&&!re.isAllSelected())}}function ye(Ce,ae){if(1&Ce&&(E.TgZ(0,"th",22),E.YNc(1,ue,1,3,"mat-checkbox",23),E.qZA()),2&Ce){const re=E.oxw();E.xp6(1),E.Q6J("ngIf",re.selection.isMultipleSelection())}}function Me(Ce,ae){if(1&Ce){const re=E.EpF();E.TgZ(0,"td",25)(1,"mat-checkbox",26),E.NdJ("change",function(Fe){const Ue=E.CHM(re).$implicit,P=E.oxw();return E.KtG(Fe?P.selection.toggle(Ue):null)})("click",function(Fe){return Fe.stopPropagation()}),E.qZA()()}if(2&Ce){const re=ae.$implicit,Se=E.oxw();E.xp6(1),E.Q6J("aria-label",Se.checkboxLabel(re))("checked",Se.selection.isSelected(re))}}function we(Ce,ae){1&Ce&&E._UZ(0,"th",27)}function Ge(Ce,ae){1&Ce&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&Ce&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function ce(Ce,ae){if(1&Ce&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&Ce){const re=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",re.svgIcon)}}function Ze(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",28),E.YNc(1,Ge,3,3,"mat-icon",29),E.YNc(2,ce,2,4,"mat-icon",30),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Q6J("ngIf",!re.serviceUser),E.xp6(1),E.Q6J("ngIf",re.serviceUser)}}function he(Ce,ae){1&Ce&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function xe(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.hij(" ",re.id," ")}}function j(Ce,ae){1&Ce&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function R(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E.ALo(1,"lowercase"),E._uU(2),E.ALo(3,"userFullName"),E.qZA()),2&Ce){const re=ae.$implicit;E.Q2q("data-cy","",E.lcZ(1,2,re.firstName),"-td"),E.xp6(2),E.hij(" ",E.lcZ(3,4,re)," ")}}function G(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function se(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function $(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function Ee(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Oe(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function ct(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Xe(Ce,ae){1&Ce&&E._UZ(0,"tr",35)}const _t=function(Ce){return["/admin/users",Ce]};function Je(Ce,ae){if(1&Ce&&E._UZ(0,"tr",36),2&Ce){const re=ae.$implicit,Se=E.oxw();E.ekj("cursor-pointer",!Se.disableRouting),E.Q6J("perunWebAppsForceRouterLink",Se.disableRouting?null:E.VKq(4,_t,re.id))("perunWebAppsMiddleClickRouterLink",Se.disableRouting?null:E.VKq(6,_t,re.id))}}function gt(Ce,ae){1&Ce&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let Y=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.authResolver=re,this.tableCheckbox=Se,this.tableConfigService=Fe,this.dynamicPaginatingService=be,this.dialog=Ue,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=c.f7}static getExportDataForColumn(re,Se){switch(Se){case"id":return re.id.toString();case"user":return re.serviceUser?"service-user":"user";case"name":return re?(0,c.bD)(re):"";case"organization":return(0,c.OV)(re);case"email":return(0,c.kN)(re);case"logins":return(0,c.lt)(re);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(re=>"id"!==re)),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(re=>this.selection.select(re))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(re){return re?`${this.selection.isSelected(re)?"deselect":"select"} row ${re.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)}exportDisplayedData(re){(0,c.O6)((0,c.Xn)(this.dataSource.getData(),this.displayedColumns,Ce.getExportDataForColumn),re)}exportAllData(re){const Se="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Fe="name"===this.sort.active?"NAME":"ID",be=(0,c.kZ)();be.width="300px";const Ue=this.dialog.open(T.QQ,be);this.dataSource.getAllUsers(this.attrNames,Se,this.child.paginator.length,Fe,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed).subscribe(P=>{Ue.close(),(0,c.O6)((0,c.Xn)(P,this.displayedColumns,Ce.getExportDataForColumn),re)})}}return Ce.\u0275fac=function(re){return new(re||Ce)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(S.dB),E.Y36(w.ly),E.Y36(U.uw))},Ce.\u0275cmp=E.Xpm({type:Ce,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(re,Se){if(1&re&&(E.Gf(c.l9,7),E.Gf(A.YE,5)),2&re){let Fe;E.iGM(Fe=E.CRH())&&(Se.child=Fe.first),E.iGM(Fe=E.CRH())&&(Se.sort=Fe.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","exportDisplayedData","exportAllData"],["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(re,Se){1&re&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportDisplayedData",function(be){return Se.exportDisplayedData(be)})("exportAllData",function(be){return Se.exportAllData(be)}),E.YNc(3,q,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,ye,2,1,"th",5),E.YNc(8,Me,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,we,1,0,"th",8),E.YNc(11,Ze,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,he,3,3,"th",11),E.YNc(14,xe,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,j,3,3,"th",11),E.YNc(17,R,4,6,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,G,3,3,"th",8),E.YNc(20,se,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,$,3,3,"th",8),E.YNc(23,Ee,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Oe,3,3,"th",8),E.YNc(26,ct,3,3,"td",13),E.BQk(),E.YNc(27,Xe,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA()()(),E.YNc(29,gt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&re&&(E.Q6J("hidden",0===Se.dataSource.allObjectCount&&!1===E.lcZ(1,9,Se.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",Se.tableId)("dataLength",Se.dataSource.allObjectCount)("pageSizeOptions",Se.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,Se.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",Se.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",Se.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Se.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Se.dataSource.allObjectCount&&!1===E.lcZ(30,13,Se.dataSource.loading$)))},dependencies:[_.O5,V.oG,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,A.YE,A.nU,Q.Ou,te.w,oe.Hw,ee.gM,le.l,de.Kd,de.YH,_.Ov,_.i8,Te.X$,v.d,L.S,B.g,W.Z],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ce})()},62707:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.voSelected=new e.vpe,this.nameFunction=E=>E.name,this.shortNameFunction=E=>E.shortName,this.searchFunction=E=>E.name+E.shortName+String(E.id)}ngOnChanges(){this.vos.sort(c.aC),this.vo||(this.vo=this.vos[0])}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,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(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.voSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.vo)("entities",S.vos)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.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"))},dependencies:[A.i,w.X$]}),C})()},87831:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>Ze});var e=h(96308),c=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),E=h(98380),S=h(97392),U=h(18750),_=h(50301),V=h(10441),z=h(89383);function Q(he,xe){1&he&&g._UZ(0,"th",19)}function te(he,xe){if(1&he){const j=g.EpF();g.TgZ(0,"td",20)(1,"mat-checkbox",21),g.NdJ("change",function(G){const $=g.CHM(j).$implicit,Ee=g.oxw();return g.KtG(G?Ee.selection.toggle($):null)})("click",function(G){return G.stopPropagation()}),g.qZA()()}if(2&he){const j=xe.$implicit,R=g.oxw();g.xp6(1),g.Q6J("aria-label",R.checkboxLabel(j))("checked",R.selection.isSelected(j))}}function oe(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function ee(he,xe){if(1&he&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=j.id)&&void 0!==R?R:j.vo.id)}}function le(he,xe){1&he&&g._UZ(0,"th",24)}function de(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&he){const j=xe.$implicit,R=g.oxw();let G;g.xp6(1),g.Q6J("recentIds",R.recentIds)("id",null!==(G=j.id)&&void 0!==G?G:j.vo.id)}}function Te(he,xe){1&he&&g._UZ(0,"th",24)}function v(he,xe){1&he&&g._UZ(0,"mat-icon",28),2&he&&g.Q6J("svgIcon","perun-hierarchical-vo")}function L(he,xe){if(1&he&&(g.TgZ(0,"td",25),g.YNc(1,v,1,1,"mat-icon",27),g.qZA()),2&he){const j=xe.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==j||null==j.memberVos?null:j.memberVos.length))}}function B(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function W(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R,G;g.uIk("data-cy",null!==(R=j.shortName)&&void 0!==R?R:j.vo.shortName),g.xp6(1),g.hij(" ",null!==(G=j.shortName)&&void 0!==G?G:j.vo.shortName," ")}}function q(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ue(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=j.name)&&void 0!==R?R:j.vo.name)}}function ye(he,xe){1&he&&g._UZ(0,"tr",29)}const Me=function(he){return["/organizations",he]};function we(he,xe){if(1&he&&g._UZ(0,"tr",30),2&he){const j=xe.$implicit,R=g.oxw();let G,se;g.ekj("disable-outline",R.disableRouting)("cursor-pointer",!R.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",R.disableRouting?null:g.VKq(6,Me,null!==(G=j.id)&&void 0!==G?G:j.vo.id))("perunWebAppsForceRouterLink",R.disableRouting?null:g.VKq(8,Me,null!==(se=j.id)&&void 0!==se?se:j.vo.id))}}function Ge(he,xe){1&he&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(he,xe){1&he&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let Ze=(()=>{class he{constructor(j){this.authResolver=j,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.getDataForColumnFun=(R,G)=>he.getDataForColumn(R,G,this.recentIds)}set matSort(j){this.sort=j}static getDataForColumn(j,R,G){switch(he.isEnrichedVo(j)&&(j=j.vo),R){case"id":return j.id.toString();case"shortName":return j.shortName;case"name":return j.name;case"recent":return G&&G.includes(j.id)?"#".repeat(G.indexOf(j.id)):j.name;default:return j[R]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(j=>"id"!==j)),this.setDataSource()}exportAllData(j){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),j)}exportDisplayedData(j){const R=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,G=R+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(R,G),this.displayedColumns,this.getDataForColumnFun),j)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(j,R)=>(0,A.Sd)(j,R,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(j,R)=>(0,A.pR)(j,R,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(j){return`${this.selection.isSelected(j)?"deselect":"select"} row ${j.id+1}`}}return he.isEnrichedVo=xe=>void 0!==xe.vo,he.\u0275fac=function(j){return new(j||he)(g.Y36(w.x4))},he.\u0275cmp=g.Xpm({type:he,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(j,R){if(1&j&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&j){let G;g.iGM(G=g.CRH())&&(R.child=G.first),g.iGM(G=g.CRH())&&(R.matSort=G.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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","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(j,R){1&j&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(se){return R.exportDisplayedData(se)})("exportAllData",function(se){return R.exportAllData(se)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,Q,1,0,"th",4),g.YNc(5,te,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,oe,3,3,"th",7),g.YNc(8,ee,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,le,1,0,"th",10),g.YNc(11,de,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Te,1,0,"th",10),g.YNc(14,L,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,B,3,3,"th",7),g.YNc(17,W,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,q,3,3,"th",7),g.YNc(20,ue,2,1,"td",11),g.BQk(),g.YNc(21,ye,1,0,"tr",15),g.YNc(22,we,1,10,"tr",16),g.qZA()()(),g.YNc(23,Ge,3,3,"perun-web-apps-alert",17),g.YNc(24,ce,3,3,"perun-web-apps-alert",18)),2&j&&(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))},dependencies:[C.O5,T.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.YE,e.nU,E.w,S.Hw,U.l,_.Kd,_.YH,V.W,z.X$],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}"]}),he})()},74281:(Ye,pe,h)=>{"use strict";h.d(pe,{GI:()=>Bt,Wr:()=>Mt,r2:()=>on,gr:()=>Qe,u3:()=>En,Qu:()=>an,pf:()=>he,xF:()=>Wn,hd:()=>Fi,kZ:()=>Gn,wA:()=>Vt,rd:()=>Xe,Eg:()=>ct,QQ:()=>Gt,Bp:()=>re,qD:()=>ot,jd:()=>vt,FM:()=>H,jD:()=>L,Lc:()=>r,mk:()=>d,Ts:()=>jt});var e=h(36895),c=h(89383),A=h(30671),w=h(65412),g=h(4859),C=h(59549),T=h(24006),E=h(284),S=h(51572),U=h(71948),_=h(99602),V=h(64425),z=h(97392),Q=h(19516),te=h(63189),oe=h(94364),ee=h(35423),le=h(84385),de=h(28499),Te=h(57882),v=h(94650);let L=(()=>{class et{}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=v.oAB({type:et}),et.\u0275inj=v.cJS({imports:[e.ez,c.aw,A.p0,w.Is,g.ot,C.lN,T.u5,E.c,S.Cq,U.Fk,_.FA,T.UX,V.Iq,z.Ps,Q.d4,te.r,oe.Bz,ee.dp,le.LD,de.E3,Te.C]}),et})();var B=h(32105),W=h(32080),q=h(3238),ue=h(20551);function ye(et,Ft){1&et&&v._UZ(0,"mat-spinner",6)}function Me(et,Ft){if(1&et&&(v.TgZ(0,"mat-option",17),v._uU(1),v.ALo(2,"memberStatus"),v.qZA()),2&et){const Ke=Ft.$implicit;v.Q6J("value",Ke),v.xp6(1),v.Oqu(v.lcZ(2,2,Ke))}}function we(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-form-field",14)(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-select",15),v.NdJ("selectionChange",function(Wt){v.CHM(Ke);const hn=v.oxw(3);return v.KtG(hn.changeStatus(Wt))}),v.YNc(5,Me,3,4,"mat-option",16),v.qZA()()}if(2&et){const Ke=v.oxw(3);v.xp6(2),v.Oqu(v.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),v.xp6(3),v.Q6J("ngForOf",Ke.allStatuses)}}function Ge(et,Ft){if(1&et&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.YNc(3,we,6,4,"mat-form-field",13),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),v.xp6(2),v.Q6J("ngIf",!Ke.loading)}}function ce(et,Ft){if(1&et&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"memberStatus"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",v.lcZ(3,4,Ke.allStatuses[0])," ")}}function Ze(et,Ft){if(1&et&&(v.TgZ(0,"div",7)(1,"div",8),v._uU(2),v.ALo(3,"translate"),v.ALo(4,"memberStatus"),v.qZA(),v.TgZ(5,"div",9),v._uU(6),v.qZA(),v.YNc(7,Ge,4,4,"div",10),v.YNc(8,ce,4,6,"div",10),v.TgZ(9,"div",11),v._UZ(10,"i",12),v.qZA()()),2&et){const Ke=v.oxw();v.xp6(2),v.AsE(" ",v.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",v.lcZ(4,8,Ke.actualStatus)," "),v.xp6(4),v.Oqu(Ke.description),v.xp6(1),v.Q6J("ngIf",Ke.allStatuses.length>1),v.xp6(1),v.Q6J("ngIf",1===Ke.allStatuses.length),v.xp6(2),v.Q6J("innerHTML",Ke.changeMessage,v.oJD)}}let he=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.memberManager=Wt,this.groupsManager=hn,this.notificatorService=wn,this.translate=zn,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(Ke=>Ke!==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(Ke){this.selectedStatus=Ke.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(Ke=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Ke)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(Ke=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Ke)})},()=>this.loading=!1)}changeStatusMessage(Ke,Et){if("VALID"===Ke)switch(Et){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(Et){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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.uq),v.Y36(B.ff),v.Y36(W.V6),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ye,1,0,"mat-spinner",1),v.YNc(5,Ze,11,10,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(11),v.qZA()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Et.loading||!Et.selectedStatus),v.xp6(1),v.hij(" ",Et.submitButtonText," "))},dependencies:[e.sg,e.O5,w.uh,w.xY,w.H8,g.lW,C.KE,C.hX,S.Ou,le.gD,q.ey,c.X$,ue.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),et})();function xe(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function j(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function R(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function G(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function se(et,Ft){1&et&&v._UZ(0,"mat-spinner",8)}function $(et,Ft){if(1&et&&(v.TgZ(0,"mat-form-field"),v._UZ(1,"input",13),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),v.Q6J("value",Ke.shortName)}}function Ee(et,Ft){if(1&et&&(v.TgZ(0,"mat-form-field",14),v._UZ(1,"textarea",15),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),v.Q6J("formControl",Ke.descriptionCtrl)}}function Oe(et,Ft){if(1&et&&(v.TgZ(0,"div",9),v.YNc(1,$,3,4,"mat-form-field",10),v.TgZ(2,"mat-form-field"),v._UZ(3,"input",11),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.YNc(8,Ee,3,4,"mat-form-field",12),v.qZA()),2&et){const Ke=v.oxw();v.xp6(1),v.Q6J("ngIf",2===Ke.dialogType),v.xp6(2),v.MGl("placeholder","",v.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),v.Q6J("formControl",Ke.nameCtrl),v.xp6(3),v.hij(" ",Ke.invalidNameMessage.length?Ke.invalidNameMessage:v.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),v.xp6(2),v.Q6J("ngIf",2!==Ke.dialogType)}}var ct=(()=>{return(et=ct||(ct={}))[et.FACILITY=0]="FACILITY",et[et.RESOURCE=1]="RESOURCE",et[et.VO=2]="VO",et[et.GROUP=3]="GROUP",ct;var et})();let Xe=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n,Ei,la){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.translateService=hn,this.facilitiesManager=wn,this.resourcesManager=zn,this.groupsManager=$n,this.vosManager=Ei,this.store=la,this.invalidNameMessage=this.data.dialogType===ct.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===ct.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case ct.FACILITY:this.nameCtrl=new T.p4(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.facility.description);break;case ct.RESOURCE:this.nameCtrl=new T.p4(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.p4(this.data.resource.description);break;case ct.GROUP:{const Ke=this.data.group.name.split(":");this.nameCtrl=new T.p4(Ke[Ke.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.group.description);break}case ct.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.p4(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case ct.FACILITY:this.editFacility();break;case ct.RESOURCE:this.editResource();break;case ct.GROUP:this.editGroup();break;case ct.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(Ke=>{this.notificator.showSuccess(Ke),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(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Ke=>{const Et=Ke;Et.name=this.nameCtrl.value,Et.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Et}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(c.sK),v.Y36(B.IQ),v.Y36(B.xk),v.Y36(B.ff),v.Y36(B.YF),v.Y36(W.d6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div"),v.YNc(1,xe,3,3,"h1",0),v.YNc(2,j,3,3,"h1",0),v.YNc(3,R,3,3,"h1",0),v.YNc(4,G,3,3,"h1",0),v.TgZ(5,"div",1),v.YNc(6,se,1,0,"mat-spinner",2),v.YNc(7,Oe,9,9,"div",3),v.qZA(),v.TgZ(8,"div",4)(9,"button",5),v.NdJ("click",function(){return Et.cancel()}),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"button",6),v.NdJ("click",function(){return Et.submit()}),v._uU(13),v.ALo(14,"translate"),v.qZA()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(1),v.Q6J("ngIf",0===Et.dialogType),v.xp6(1),v.Q6J("ngIf",1===Et.dialogType),v.xp6(1),v.Q6J("ngIf",2===Et.dialogType),v.xp6(1),v.Q6J("ngIf",3===Et.dialogType),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("disabled",Et.loading||Et.nameCtrl.invalid||Et.descriptionCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,E.Nt,S.Ou,T.oH,c.X$]}),et})();var _t=h(64080),Je=h(9244);function gt(et,Ft){1&et&&v._UZ(0,"mat-spinner",8)}function Y(et,Ft){if(1&et&&(v.TgZ(0,"div",9)(1,"span"),v._uU(2),v.ALo(3,"translate"),v.TgZ(4,"b"),v._uU(5),v.qZA()(),v._UZ(6,"br"),v.TgZ(7,"span"),v._uU(8),v.ALo(9,"translate"),v.TgZ(10,"b"),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v._UZ(13,"br"),v.TgZ(14,"span"),v._uU(15),v.ALo(16,"translate"),v.TgZ(17,"b"),v._uU(18),v.ALo(19,"translate"),v.qZA()(),v._UZ(20,"br"),v.TgZ(21,"span"),v._uU(22),v.ALo(23,"translate"),v.TgZ(24,"b"),v._uU(25),v.ALo(26,"translate"),v.qZA()()()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),v.xp6(3),v.Oqu(Ke.group.name),v.xp6(3),v.hij(" ",v.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),v.xp6(3),v.Oqu(v.lcZ(12,12,Ke.getSynchronizationType())),v.xp6(4),v.hij(" ",v.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),v.xp6(3),v.Oqu(v.lcZ(19,16,Ke.getLastSyncState())),v.xp6(4),v.hij(" ",v.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),v.xp6(3),v.Oqu(v.lcZ(26,20,Ke.getLastSyncTime()))}}function Ce(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onForceStructure())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function ae(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onForce())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let re=(()=>{class et{constructor(Ke,Et,Wt,hn){this.dialogRef=Ke,this.data=Et,this.groupService=Wt,this.notificator=hn,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,[_t.r.GROUP_SYNC_ENABLED,_t.r.GROUP_LAST_SYNC_STATE,_t.r.GROUP_LAST_SYNC_TIMESTAMP,_t.r.GROUP_STRUCTURE_SYNC_ENABLED,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_t.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Ke=>{this.group=Ke,this.syncEnabled=(0,Je.IL)(this.group.attributes,_t.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,Je.IL)(this.group.attributes,_t.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,Je.IL)(this.group.attributes,_t.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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.ff),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,gt,1,0,"mat-spinner",1),v.YNc(5,Y,27,22,"div",2),v.TgZ(6,"div",3)(7,"div",4)(8,"button",5),v.NdJ("click",function(){return Et.refresh()}),v.TgZ(9,"mat-icon"),v._uU(10,"refresh"),v.qZA()(),v.YNc(11,Ce,3,4,"button",6),v.YNc(12,ae,3,4,"button",6),v.TgZ(13,"button",7),v.NdJ("click",function(){return Et.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(6),v.Q6J("ngIf",Et.isStructured()),v.xp6(1),v.Q6J("ngIf",Et.isBasic()||Et.isStructured()),v.xp6(2),v.hij(" ",v.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,S.Ou,z.Hw,c.X$]}),et})();function Se(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function Fe(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function be(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ue(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"input",9,10),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.subject=Wt)}),v.qZA(),v.YNc(7,Fe,3,3,"mat-error",11),v.qZA(),v.TgZ(8,"mat-form-field")(9,"mat-label"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"textarea",12,13),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.message=Wt)}),v.ALo(14,"translate"),v._uU(15," "),v.qZA(),v.YNc(16,be,3,3,"mat-error",11),v.qZA()()}if(2&et){const Ke=v.MAs(6),Et=v.MAs(13),Wt=v.oxw();v.xp6(3),v.Oqu(v.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),v.xp6(2),v.Q6J("ngModel",Wt.subject),v.xp6(2),v.Q6J("ngIf",Ke.invalid),v.xp6(3),v.Oqu(v.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),v.xp6(2),v.s9C("placeholder",v.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),v.Q6J("ngModel",Wt.message),v.xp6(4),v.Q6J("ngIf",Et.invalid)}}let P=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.translate=Et,this.notificator=Wt,this.rtMessages=hn,this.data=wn,this.storeService=zn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(Ke=>{this.dialogRef.afterClosed().subscribe(()=>{const Et="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Ke.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Et)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Ke=this.storeService.get("config");let Et=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Et=Et.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Et=Et.concat(this.data.error.message,"\n","Perun instance: ",Ke,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Wt=/"password":".+?"/;let hn=JSON.stringify(this.data.error.payload);hn=hn.replace(Wt,'"password":"####"'),Et=Et.concat("Payload:\n"+hn+"\n\n")}return Et=Et.concat("Sent from new Perun Gui, version: ",h(4147).i8),Et.split("\n").join("\n ")}parseMethod(Ke){return Ke&&this.methodRegexp.exec(Ke)[1]}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(c.sK),v.Y36(W.V6),v.Y36(B.Hr),v.Y36(w.WI),v.Y36(W.d6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,Se,1,0,"mat-spinner",1),v.YNc(4,Ue,17,13,"div",2),v.TgZ(5,"div",3)(6,"div",4)(7,"button",5),v.NdJ("click",function(){return Et.dialogRef.close()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",6),v.NdJ("click",function(){return Et.sendBugReport()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(4),v.hij(" ",v.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",""===Et.message||""===Et.subject||Et.loading),v.xp6(1),v.hij(" ",v.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,T.Fj,T.JJ,T.Q7,T.On,E.Nt,S.Ou,c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),et})(),H=(()=>{class et{constructor(Ke,Et,Wt){this.dialogRef=Ke,this.dialog=Et,this.data=Wt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Ke=(0,Je.kZ)();Ke.width="550px",Ke.data={error:this.data.error},Ke.autoFocus=!1,this.dialog.open(P,Ke)}),this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.uw),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1),v._uU(3),v.qZA(),v.TgZ(4,"div",2)(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Et.onBugReportClick()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v.NdJ("click",function(){return Et.onCloseClick()}),v._uU(10),v.ALo(11,"translate"),v.qZA()()()),2&Ke&&(v.xp6(1),v.Oqu(Et.data.title),v.xp6(2),v.hij(" ",Et.data.description,"\n"),v.xp6(3),v.Q6J("hidden","error"!==Et.data.type),v.xp6(1),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),v.xp6(3),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,c.X$]}),et})();var i=h(34447);function o(et,Ft){1&et&&v._UZ(0,"mat-spinner",3)}function f(et,Ft){1&et&&v._UZ(0,"th",15)}function l(et,Ft){if(1&et&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.hij(" ",Ke.userExtSource.extSource.name," ")}}function a(et,Ft){1&et&&v._UZ(0,"tr",17)}function n(et,Ft){1&et&&v._UZ(0,"tr",18)}function t(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"p"),v._uU(3),v.ALo(4,"translate"),v.ALo(5,"customTranslate"),v.qZA(),v.TgZ(6,"div",5),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.TgZ(10,"table",6),v.ynx(11,7),v.YNc(12,f,1,0,"th",8),v.YNc(13,l,2,1,"td",9),v.BQk(),v.YNc(14,a,1,0,"tr",10),v.YNc(15,n,1,0,"tr",11),v.qZA()(),v.TgZ(16,"div",12)(17,"button",13),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onCancel())}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA(),v.TgZ(21,"button",14),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(22),v.ALo(23,"translate"),v.ALo(24,"customTranslate"),v.qZA()()()}if(2&et){const Ke=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,7,v.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),v.xp6(4),v.hij(" ",v.lcZ(8,11,v.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),v.xp6(3),v.Q6J("dataSource",Ke.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ke.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ke.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,15,v.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(23,19,v.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let r=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.usersManagerService=Wt,this.translate=hn,this.notificator=wn,this.force=!1,this.displayedColumns=["name"],hn.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(zn=>this.successMessage=zn)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.Fv),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div"),v.YNc(5,o,1,0,"mat-spinner",1),v.YNc(6,t,25,23,"div",2),v.qZA()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,6,v.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),v.xp6(3),v.Tol(Et.theme),v.xp6(1),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,c.X$,i.a]}),et})();var s=h(39349);let d=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1)(3,"textarea",2),v._uU(4),v.qZA()(),v.TgZ(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Et.onCancel()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v._uU(10),v.ALo(11,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(Et.title),v.xp6(3),v.Oqu(Et.value),v.xp6(3),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),v.xp6(2),v.Q6J("cdkCopyToClipboard",Et.value),v.xp6(1),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,s.IC,E.Nt,V.i3,c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),et})();function p(et,Ft){1&et&&v._UZ(0,"th",12)}function M(et,Ft){if(1&et&&(v.TgZ(0,"td",13),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.Oqu(Ke.displayName)}}function _e(et,Ft){1&et&&v._UZ(0,"tr",14)}function bt(et,Ft){1&et&&v._UZ(0,"tr",15)}let Vt=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.translate=hn,this.attributesManager=wn,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.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(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(c.sK),v.Y36(B.H8))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"table",3),v.ynx(11,4),v.YNc(12,p,1,0,"th",5),v.YNc(13,M,2,1,"td",6),v.BQk(),v.YNc(14,_e,1,0,"tr",7),v.YNc(15,bt,1,0,"tr",8),v.qZA()(),v.TgZ(16,"div",9)(17,"button",10),v.NdJ("click",function(){return Et.onCancel()}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",11),v.NdJ("click",function(){return Et.onSubmit()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),v.xp6(4),v.hij(" ",v.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),v.xp6(2),v.Q6J("dataSource",Et.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Et.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Et.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),v.xp6(3),v.hij(" ",v.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,c.X$]}),et})(),on=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et,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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),v.NdJ("ngModelChange",function(hn){return Et.attributeValue=hn}),v.qZA()()(),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),v.xp6(4),v.Q6J("ngModel",Et.attributeValue),v.xp6(3),v.hij(" ",v.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,T.On,s.IC,E.Nt,c.X$]}),et})(),Mt=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.qZA()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),v.xp6(4),v.hij(" ",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),v.xp6(3),v.hij(" ",Et.data.name," "),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,c.X$]}),et})();var ft=h(98380);function je(et,Ft){if(1&et&&(v.TgZ(0,"perun-web-apps-alert",9),v._uU(1),v.qZA()),2&et){const Ke=v.oxw();v.xp6(1),v.Oqu(Ke.pendingEmailsMessage)}}function Pe(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Qe=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.translate=Wt,this.notificator=hn,this.usersManagerService=wn,this.authService=zn,this.pendingMails=[],Wt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe($n=>this.successMessage=$n),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe($n=>this.pendingEmailsMessageStart=$n),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe($n=>this.pendingEmailsMessageEnd=$n)}ngOnInit(){this.emailControl=new T.p4(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Ke=>{this.pendingMails=Ke.filter((Wt,hn,wn)=>hn===wn.indexOf(Wt));let Et="";this.pendingMails.forEach(Wt=>Et+=`${Wt===this.pendingMails[0]?"":", "}${Wt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Et+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Et=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Et[0]+"//"+Et[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(c.sK),v.Y36(W.V6),v.Y36(B.Fv),v.Y36(W.e8))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,je,2,1,"perun-web-apps-alert",2),v.TgZ(6,"mat-form-field",3)(7,"label",3),v._UZ(8,"input",4),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v.YNc(11,Pe,4,5,"mat-error",5),v.qZA()(),v.TgZ(12,"div",6)(13,"button",7),v.NdJ("click",function(){return Et.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.ALo(16,"customTranslate"),v.qZA(),v.TgZ(17,"button",8),v.NdJ("click",function(){return Et.onSubmit()}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,8,v.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),v.xp6(4),v.Q6J("ngIf",Et.pendingMails.length),v.xp6(3),v.s9C("placeholder",v.lcZ(9,12,v.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),v.Q6J("formControl",Et.emailControl),v.xp6(3),v.Q6J("ngIf",Et.emailControl.invalid),v.xp6(3),v.hij(" ",v.lcZ(15,16,v.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",!Et.emailControl.valid),v.xp6(1),v.hij(" ",v.lcZ(19,20,v.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,E.Nt,T.oH,ft.w,c.X$,i.a]}),et})();function qe(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function Be(et,Ft){1&et&&(v.TgZ(0,"div",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function me(et,Ft){1&et&&v._UZ(0,"th",18)}function ve(et,Ft){if(1&et&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.Oqu(Ke)}}function ze(et,Ft){1&et&&v._UZ(0,"tr",20)}function tt(et,Ft){1&et&&v._UZ(0,"tr",21)}function at(et,Ft){if(1&et&&(v.TgZ(0,"perun-web-apps-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,Ke.data.alert)," ")}}function Re(et,Ft){if(1&et&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Be,3,3,"div",9),v.TgZ(5,"table",10),v.ynx(6,11),v.YNc(7,me,1,0,"th",12),v.YNc(8,ve,2,1,"td",13),v.BQk(),v.YNc(9,ze,1,0,"tr",14),v.YNc(10,tt,1,0,"tr",15),v.qZA(),v.YNc(11,at,3,4,"perun-web-apps-alert",16),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,6,Ke.data.description)," "),v.xp6(2),v.Q6J("ngIf",Ke.data.showAsk),v.xp6(1),v.Q6J("dataSource",Ke.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ke.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ke.displayedColumns),v.xp6(1),v.Q6J("ngIf",Ke.data.alert)}}function st(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function Pt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let jt=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,qe,1,0,"mat-spinner",1),v.YNc(5,Re,12,8,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.YNc(10,st,3,4,"button",5),v.YNc(11,Pt,3,4,"button",6),v.qZA()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,Et.data.title)),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("ngIf","remove"===Et.data.type),v.xp6(1),v.Q6J("ngIf","confirmation"===Et.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,ft.w,c.X$]}),et})();var cn=h(57851);let Xt=(()=>{class et{transform(Ke){const Et=Ke.split(":");return Et[Et.length-1]}}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275pipe=v.Yjl({name:"parseGroupName",type:et,pure:!0}),et})();function sn(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function mn(et,Ft){1&et&&(v.TgZ(0,"perun-web-apps-alert"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Nt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Rt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Ct=function(et){return{"min-width":et}};function Ut(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),v.NdJ("click",function(){const hn=v.CHM(Ke).$implicit,wn=v.oxw(3);return v.KtG(wn.navigate(hn.id,hn.include))}),v._UZ(3,"button",19),v.TgZ(4,"div",20)(5,"span"),v._uU(6),v.ALo(7,"parseGroupName"),v.qZA(),v.YNc(8,Nt,3,3,"span",21),v.YNc(9,Rt,3,3,"span",21),v.qZA(),v.TgZ(10,"span",22),v._uU(11),v.qZA()()()()}if(2&et){const Ke=Ft.$implicit,Et=v.oxw(3);v.xp6(2),v.ekj("cursor-pointer",Ke.direct||Ke.include)("act-disabled",!Ke.direct&&!Ke.include),v.xp6(2),v.Q6J("ngStyle",v.VKq(11,Ct,Et.getMinWidth(Ke.level))),v.xp6(2),v.Oqu(v.lcZ(7,9,Ke.name)),v.xp6(2),v.Q6J("ngIf",Ke.direct),v.xp6(1),v.Q6J("ngIf",Ke.include),v.xp6(2),v.Oqu(Ke.description)}}function Qt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function An(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Dt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),v._uU(5),v.qZA()(),v.TgZ(6,"div",18),v.NdJ("click",function(){const hn=v.CHM(Ke).$implicit,wn=v.oxw(3);return v.KtG(wn.navigate(hn.id,hn.include))}),v.TgZ(7,"div",20)(8,"span"),v._uU(9),v.ALo(10,"parseGroupName"),v.qZA(),v.YNc(11,Qt,3,3,"span",21),v.YNc(12,An,3,3,"span",21),v.qZA(),v.TgZ(13,"span",22),v._uU(14),v.qZA()()(),v.TgZ(15,"ul"),v.GkF(16,26),v.qZA()()()}if(2&et){const Ke=Ft.$implicit,Et=v.oxw(3);v.xp6(3),v.uIk("aria-label","Toggle "+Ke.name),v.xp6(2),v.hij(" ",Et.treeControl.isExpanded(Ke)?"expand_more":"chevron_right"," "),v.xp6(1),v.ekj("cursor-pointer",Ke.direct||Ke.include)("act-disabled",!Ke.direct&&!Ke.include),v.xp6(1),v.Q6J("ngStyle",v.VKq(15,Ct,Et.getMinWidth(Ke.level))),v.xp6(2),v.Oqu(v.lcZ(10,13,Ke.name)),v.xp6(2),v.Q6J("ngIf",Ke.direct),v.xp6(1),v.Q6J("ngIf",Ke.include),v.xp6(2),v.Oqu(Ke.description),v.xp6(1),v.ekj("example-tree-invisible",!Et.treeControl.isExpanded(Ke))}}function $t(et,Ft){if(1&et&&(v.TgZ(0,"mat-tree",13),v.YNc(1,Ut,12,13,"mat-tree-node",14),v.YNc(2,Dt,17,17,"mat-nested-tree-node",15),v.qZA()),2&et){const Ke=v.oxw(2);v.Q6J("dataSource",Ke.dataSource)("treeControl",Ke.treeControl),v.xp6(2),v.Q6J("matTreeNodeDefWhen",Ke.hasChild)}}function xt(et,Ft){if(1&et&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-form-field",9),v._UZ(5,"input",10),v.ALo(6,"translate"),v.qZA(),v.YNc(7,mn,3,3,"perun-web-apps-alert",11),v.YNc(8,$t,3,3,"mat-tree",12),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),v.xp6(3),v.s9C("placeholder",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),v.Q6J("formControl",Ke.formControl),v.xp6(2),v.Q6J("ngIf",!Ke.dataSource.data.length),v.xp6(1),v.Q6J("ngIf",Ke.dataSource.data.length)}}const rt=function(et){return{name:et}};let vt=(()=>{class et{constructor(Ke,Et,Wt){this.dialogRef=Ke,this.data=Et,this.groupsManagerService=Wt,this.treeControl=new cn.VY(hn=>hn.children),this.dataSource=new ee.WX,this.formControl=new T.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(hn,wn)=>!!wn.children&&wn.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Ke=>{this.paths=Ke,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Ke=>{const Et=Ke.trim().toLowerCase(),Wt=this.paths.filter(hn=>hn.filter(wn=>wn.name.includes(Et)).length);this.createGroupTree(Wt),this.dataSource.data=this.groupTree}),this.userName=(0,Je.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Ke,Et=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Ke}${Et?"/settings/relations":""}`,"_blank")}getMinWidth(Ke){return String(400-40*Ke)+"px"}recursiveSearch(Ke,Et,Wt){for(const wn of Ke)if(wn.name===Et[Wt].name)return Et.length===Wt+1?(wn.direct=!0,Ke):(wn.children=Et[++Wt].name.includes(Et[Wt-1].name)?this.recursiveSearch(wn.children,Et,Wt):[{name:Et[Wt].name,id:Et[Wt-1].id,description:Et[Wt].description,direct:!1,include:!0,level:Wt,children:[]}].concat(wn.children),Ke);return Ke.push({name:Et[Wt].name,id:Et[Wt].id,description:Et[Wt].description,direct:!1,include:!1,level:Wt,children:[]}),this.recursiveSearch(Ke,Et,Wt)}createGroupTree(Ke){this.groupTree=[],Ke.forEach(Et=>{this.groupTree=this.recursiveSearch(this.groupTree,Et,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.ff))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,sn,1,0,"mat-spinner",2),v.YNc(5,xt,9,9,"div",3),v.TgZ(6,"div",4)(7,"div",5)(8,"button",6),v.NdJ("click",function(){return Et.onCancel()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()()()),2&Ke&&(v.xp6(2),v.hij(" ",v.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",v.VKq(9,rt,Et.userName))," "),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,E.Nt,S.Ou,T.oH,z.Hw,ft.w,ee.GZ,ee.fQ,ee.eu,ee.gi,ee.uo,ee.Ar,c.X$,Xt],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}"]}),et})(),ot=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.router=Et}onClose(){this.router.navigate([]),this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(oe.F0))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"div",3)(8,"button",4),v.NdJ("click",function(){return Et.onClose()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),v.xp6(4),v.Oqu(v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,ft.w,c.X$]}),et})();var $e=h(62383);function At(et,Ft){1&et&&(v.TgZ(0,"mat-radio-button",16),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Z(et,Ft){1&et&&(v.TgZ(0,"mat-radio-button",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function ke(et,Ft){1&et&&(v.TgZ(0,"perun-web-apps-alert",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let mt=(()=>{class et{constructor(Ke){this.dialogRef=Ke,this.canExtendMembership=!1,this.expirationChanged=new v.vpe,this.statusChange=new v.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const Ke=new Date;this.currentDate=(0,e.p6)(new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Ke){return(0,e.p6)(Ke,"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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){if(1&Ke){const Wt=v.EpF();v.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._uU(6),v.ALo(7,"parseDate"),v.qZA(),v.TgZ(8,"p")(9,"strong"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.ALo(13,"parseDate"),v.qZA(),v.TgZ(14,"mat-radio-group",2),v.NdJ("ngModelChange",function(wn){return Et.newExpiration=wn}),v.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),v.NdJ("click",function(){v.CHM(Wt);const wn=v.MAs(23);return v.KtG(wn.open())}),v.TgZ(17,"mat-label"),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"input",5),v.NdJ("dateChange",function(){return Et.setExpiration()}),v.qZA(),v._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),v.qZA()(),v.YNc(24,At,3,3,"mat-radio-button",9),v.YNc(25,Z,3,3,"mat-radio-button",10),v.TgZ(26,"mat-radio-button",11),v._uU(27),v.ALo(28,"translate"),v.qZA()(),v.YNc(29,ke,3,3,"perun-web-apps-alert",12),v.qZA(),v.TgZ(30,"div",13)(31,"button",14),v.NdJ("click",function(){return Et.onCancel()}),v._uU(32),v.ALo(33,"translate"),v.qZA(),v.TgZ(34,"button",15),v.NdJ("click",function(){return Et.onChange()}),v._uU(35),v.ALo(36,"translate"),v.qZA()()()}if(2&Ke){const Wt=v.MAs(23);v.xp6(4),v.Oqu(v.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),v.xp6(2),v.hij(" ",v.lcZ(7,23,Et.currentExpiration)," "),v.xp6(4),v.Oqu(v.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),v.xp6(2),v.hij(" ",Et.newExpiration?v.lcZ(13,27,Et.newExpiration):"never"," "),v.xp6(2),v.Q6J("ngModel",Et.newExpiration),v.xp6(1),v.s9C("value",Et.expirationControl.value),v.xp6(3),v.Oqu(v.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),v.xp6(2),v.Q6J("min",Et.minDate)("max",Et.maxDate)("formControl",Et.expirationControl)("matDatepicker",Wt),v.xp6(1),v.Q6J("for",Wt)("disabled",!1),v.xp6(1),v.Q6J("disabled",!1),v.xp6(2),v.Q6J("ngIf",Et.canExtendMembership&&"vo"===Et.mode),v.xp6(1),v.Q6J("ngIf",Et.canExtendMembership&&"group"===Et.mode),v.xp6(2),v.hij(" ",v.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),v.xp6(2),v.Q6J("ngIf","EXPIRED"===Et.status&&("never"===Et.newExpiration||Et.parseDate(Et.expirationControl.value)>Et.currentDate)),v.xp6(3),v.hij(" ",v.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Et.expirationControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,w.xY,w.H8,g.lW,C.KE,C.hX,C.R9,T.Fj,T.JJ,T.On,E.Nt,U.VQ,U.U0,_.Mq,_.hl,_.nW,T.oH,ft.w,c.X$,$e.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}"]}),et})();function St(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function tn(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("maxDate",Ke.maxDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("canExtendMembership",Ke.canExtendMembership)("mode","group")("status",Ke.status)}}let En=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.groupManager=wn,this.translate=zn,this.notificator=$n,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,zn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Ke=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()):this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Ke,"yyyy-MM-dd","en"),this.maxDate=Ke):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,_t.r.GROUP_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Ke){this.loading=!0,"groupRules"===Ke?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"===Ke?null:Ke,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(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(B.ff),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,St,1,0,"mat-spinner",2),v.YNc(5,tn,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();var jn=h(13469);function Ln(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Kn(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._UZ(6,"input",7),v.TgZ(7,"mat-icon",8),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.showOldPassword=!Wt.showOldPassword)}),v._uU(8),v.qZA(),v.YNc(9,Ln,3,3,"mat-error",9),v.qZA(),v._UZ(10,"perun-web-apps-password-form",10),v.qZA()()}if(2&et){const Ke=v.oxw();v.Q6J("formGroup",Ke.formGroup),v.xp6(4),v.Oqu(v.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),v.xp6(2),v.Q6J("type",Ke.showOldPassword?"text":"password"),v.xp6(2),v.hij(" ",Ke.showOldPassword?"visibility_off":"visibility"," "),v.xp6(1),v.Q6J("ngIf",Ke.oldPwd.hasError("required")),v.xp6(1),v.Q6J("formGroup",Ke.formGroup)("namespace",Ke.data.namespace)}}function li(et,Ft){1&et&&v._UZ(0,"mat-spinner",11)}function ci(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",12)(1,"div",13)(2,"button",14),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.close())}),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"button",15),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changePassword())}),v._uU(6),v.ALo(7,"translate"),v.qZA()()()}if(2&et){const Ke=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ke.formGroup.invalid||Ke.formGroup.pending),v.xp6(1),v.hij(" ",v.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Wn=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this._formBuilder=Wt,this.usersManagerService=hn,this.apiRequestConfiguration=wn,this.notificator=zn,this.translate=$n,this.showOldPassword=!1,$n.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,de.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Je.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(T.QS),v.Y36(B.Fv),v.Y36(W.F5),v.Y36(W.V6),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1),v.YNc(4,Kn,11,9,"form",2),v.YNc(5,li,1,0,"mat-spinner",3),v.qZA(),v.YNc(6,ci,8,7,"div",4)),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),v.xp6(3),v.Q6J("ngIf",!Et.loading),v.xp6(1),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,C.R9,T._Y,T.Fj,T.JJ,T.JL,T.Q7,E.Nt,S.Ou,T.sg,T.u,z.Hw,jn.G,c.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}"]}),et})();function Hn(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function Ji(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("maxDate",Ke.maxDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("canExtendMembership",Ke.canExtendMembership)("mode","vo")("status",Ke.status)}}let Gn=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.translate=wn,this.notificator=zn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,wn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe($n=>this.successMessage=$n)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Ke=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()):this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Ke,"yyyy-MM-dd","en"),this.maxDate=Ke):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,_t.r.VO_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Ke){this.loading=!0,"voRules"===Ke?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"===Ke?null:Ke,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Hn,1,0,"mat-spinner",2),v.YNc(5,Ji,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();function Yn(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function Vi(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("mode","sponsor")}}let Fi=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.groupManager=wn,this.translate=zn,this.notificator=$n,this.loading=!1,zn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Ke=new Date;this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.loading=!1}onExpirationChanged(Ke){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Ke?null:Ke).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(B.ff),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,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(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Yn,1,0,"mat-spinner",2),v.YNc(5,Vi,1,4,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();function Hi(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function _i(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function gi(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Pr(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-radio-group",12),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw(2);return v.KtG(hn.asyncValidation=Wt)}),v.TgZ(1,"span",13),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",14),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-radio-button",14),v._uU(8),v.ALo(9,"translate"),v.qZA()()}if(2&et){const Ke=v.oxw(2);v.Q6J("ngModel",Ke.asyncValidation),v.xp6(2),v.hij(" ",v.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),v.xp6(2),v.Q6J("value",!1),v.xp6(1),v.hij(" ",v.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),v.xp6(2),v.Q6J("value",!0),v.xp6(1),v.hij(" ",v.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ir(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function fr(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function rr(et,Ft){if(1&et&&(v.TgZ(0,"div",5)(1,"p",6),v._uU(2),v.TgZ(3,"span",7),v._uU(4),v.qZA(),v._uU(5),v.TgZ(6,"span",7),v._uU(7),v.qZA()(),v.TgZ(8,"p")(9,"strong",8),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.qZA(),v.TgZ(13,"p")(14,"strong",8),v._uU(15),v.ALo(16,"translate"),v.qZA(),v._uU(17),v.qZA(),v.YNc(18,_i,3,3,"span",9),v.YNc(19,gi,3,3,"span",9),v.YNc(20,Pr,10,12,"mat-radio-group",10),v.YNc(21,ir,3,3,"span",9),v.YNc(22,fr,3,3,"span",9),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",Ke.group.name," "),v.xp6(2),v.hij("#",Ke.group.id,""),v.xp6(1),v.hij(" - ",Ke.resource.name," "),v.xp6(2),v.hij("#",Ke.resource.id,""),v.xp6(3),v.hij(" ",v.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),v.xp6(2),v.hij(" ",Ke.status," "),v.xp6(3),v.hij(" ",v.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),v.xp6(2),v.hij(" ",Ke.getReversedStatus()," "),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ke.status||"FAILED"===Ke.status),v.xp6(1),v.Q6J("ngIf","ACTIVE"===Ke.status),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ke.status||"FAILED"===Ke.status),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ke.status||"FAILED"===Ke.status)&&!1===Ke.asyncValidation),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ke.status||"FAILED"===Ke.status)&&!0===Ke.asyncValidation)}}function wt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",15)(1,"button",16),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",17),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Ke.status?"DEACTIVATE":"ACTIVATE"))," ")}}let an=(()=>{class et{constructor(Ke,Et,Wt,hn){this.dialogRef=Ke,this.data=Et,this.resourceService=Wt,this.groupService=hn,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(Ke=>{this.resource=Ke,this.groupService.getGroupById(this.data.groupId).subscribe(Et=>{this.group=Et,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 et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.xk),v.Y36(B.ff))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Hi,1,0,"mat-spinner",1),v.YNc(5,rr,23,17,"div",2),v.YNc(6,wt,7,7,"div",3),v.qZA()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.hij(" ",v.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,T.JJ,T.On,S.Ou,U.VQ,U.U0,c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),et})();var nt=h(90995);let Bt=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.usersService=hn,this.translate=wn,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.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(Ke){this.force=Ke.force,Ke.deleted?this.anonymizeUser():this.onCancel()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(B.Fv),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),v.NdJ("deleted",function(hn){return Et.onSubmit(hn)}),v.qZA()()),2&Ke&&(v.Tol(Et.theme),v.xp6(1),v.Q6J("entityNames",Et.dataSource)("entityType","user")("relations",Et.relations)("loading",Et.loading)("anonymize",!0))},dependencies:[nt.e]}),et})(),Gt=(()=>{class et{constructor(Ke){this.dialogRef=Ke}close(){this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",2),v._UZ(5,"mat-spinner",3),v.qZA()()),2&Ke&&(v.xp6(2),v.hij(" ",v.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),v.xp6(3),v.Q6J("diameter",50))},dependencies:[w.uh,w.xY,S.Ou,c.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),et})()},90995:(Ye,pe,h)=>{"use strict";h.d(pe,{e:()=>xe});var e=h(94650),c=h(24006),A=h(30671),w=h(36895),g=h(65412),C=h(4859),T=h(59549),E=h(284),S=h(51572),U=h(97392),_=h(98380),V=h(96338),z=h(89383),Q=h(31359);let te=(()=>{class j{constructor(G){this.translate=G}transform(G){return this.translate.instant(G?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return j.\u0275fac=function(G){return new(G||j)(e.Y36(z.sK,16))},j.\u0275pipe=e.Yjl({name:"deleteDialogType",type:j,pure:!0}),j})();function oe(j,R){1&j&&e._UZ(0,"mat-spinner",2)}const ee=function(j){return{action:j}};function le(j,R){if(1&j&&(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&j){const G=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,ee,e.lcZ(3,9,G.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",G.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",G.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function de(j,R){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,ee,e.lcZ(3,5,G.anonymize)))," ",G.entityType," ? ")}}function Te(j,R){1&j&&e._UZ(0,"th",18)}function v(j,R){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=R.$implicit,se=e.oxw(2);e.xp6(1),e.hij(" ",se.anonymize?e.lcZ(2,1,G):G.name," ")}}function L(j,R){1&j&&e._UZ(0,"tr",20)}function B(j,R){1&j&&e._UZ(0,"tr",21)}function W(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(G);const $=e.oxw(2);return e.KtG($.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&j){const G=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,ee,e.lcZ(5,5,e.lcZ(6,7,G.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const q=function(){return["name"]};function ue(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,le,10,19,"div",5),e.YNc(8,de,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Te,1,0,"th",8),e.YNc(12,v,3,3,"td",9),e.BQk(),e.YNc(13,L,1,0,"tr",10),e.YNc(14,B,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,W,8,13,"button",15),e.qZA()()}if(2&j){const G=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,ee,e.lcZ(4,13,e.lcZ(5,15,G.anonymize))))," ",G.entityType," "),e.xp6(5),e.Q6J("ngIf",!G.disableForce),e.xp6(1),e.Q6J("ngIf",G.disableForce),e.xp6(1),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,q)),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,ee,e.lcZ(22,22,e.lcZ(23,24,G.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!G.disableForce)}}function ye(j,R){if(1&j&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&j){const G=R.$implicit;e.xp6(4),e.hij(" ",G," ")}}function Me(j,R){if(1&j&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.hij(" ",G.anotherMessage," ")}}function we(j,R){1&j&&e._UZ(0,"th",18)}function Ge(j,R){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=R.$implicit,se=e.oxw(2);e.xp6(1),e.hij(" ",se.anonymize?e.lcZ(2,1,G):G.name," ")}}function ce(j,R){1&j&&e._UZ(0,"tr",20)}function Ze(j,R){1&j&&e._UZ(0,"tr",21)}function he(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,ye,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,Me,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,we,1,0,"th",8),e.YNc(21,Ge,3,3,"td",9),e.BQk(),e.YNc(22,ce,1,0,"tr",10),e.YNc(23,Ze,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&j){const G=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,ee,e.lcZ(4,20,e.lcZ(5,22,G.anonymize))))," ",G.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",G.relations),e.xp6(1),e.Q6J("ngIf",G.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,ee,e.lcZ(17,31,G.anonymize)))," ",G.entityType," ? "),e.xp6(3),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,q)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,ee,e.lcZ(27,36,e.lcZ(28,38,G.anonymize))))),e.Q6J("formControl",G.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",G.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,ee,e.lcZ(38,45,e.lcZ(39,47,G.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let xe=(()=>{class j{constructor(){this.entityNames=new A.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 c.p4("",[c.kI.required,c.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275cmp=e.Xpm({type:j,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(G,se){1&G&&(e.YNc(0,oe,1,0,"mat-spinner",0),e.YNc(1,ue,25,32,"div",1),e.YNc(2,he,41,61,"div",1)),2&G&&(e.Q6J("ngIf",se.loading),e.xp6(1),e.Q6J("ngIf",!se.force&&!se.loading),e.xp6(1),e.Q6J("ngIf",se.force&&!se.loading))},dependencies:[w.sg,w.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,g.uh,g.xY,g.H8,C.lW,T.KE,c.Fj,c.JJ,E.Nt,S.Ou,c.oH,U.Hw,_.w,V.i$,V.Tg,w.gd,w.rS,z.X$,Q.d,te],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),j})()},50301:(Ye,pe,h)=>{"use strict";h.d(pe,{hT:()=>c,Kd:()=>w,YH:()=>g});var e=h(94650);let c=(()=>{class C{constructor(E){this.elementRef=E}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})();var A=h(32080);let w=(()=>{class C{constructor(E){this.router=E}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(A.xw))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("click",function(){return S.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),C})(),g=(()=>{class C{onClick(E){if(1===E.button&&null!=this.perunWebAppsMiddleClickRouterLink){const S=this.perunWebAppsMiddleClickRouterLink.join("/"),U=location.search;window.open(S+U)}}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("mouseup",function(_){return S.onClick(_)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},45323:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>e});var e=(()=>{return(c=e||(e={})).PERUNADMIN="PERUNADMIN",c.PERUNOBSERVER="PERUNOBSERVER",c.VOADMIN="VOADMIN",c.GROUPADMIN="GROUPADMIN",c.GROUPOBSERVER="GROUPOBSERVER",c.SELF="SELF",c.FACILITYADMIN="FACILITYADMIN",c.FACILITIYOBSERVER="FACILITYOBSERVER",c.RESOURCEADMIN="RESOURCEADMIN",c.RESOURCESELFSERVICE="RESOURCESELFSERVICE",c.REGISTRAR="REGISTRAR",c.ENGINE="ENGINE",c.RPC="RPC",c.NOTIFICATIONS="NOTIFICATIONS",c.SERVICEUSER="SERVICEUSER",c.SPONSOR="SPONSOR",c.VOOBSERVER="VOOBSERVER",c.TOPGROUPCREATOR="TOPGROUPCREATOR",c.SECURITYADMIN="SECURITYADMIN",c.CABINETADMIN="CABINETADMIN",c.UNKNOWNROLENAME="UNKNOWNROLENAME",c.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",c.UNKNOWN="UNKNOWN",c.MEMBERSHIP="MEMBERSHIP",e;var c})()},28499:(Ye,pe,h)=>{"use strict";h.d(pe,{E3:()=>_,yT:()=>V.y});var e=h(36895),c=h(59549),A=h(10266),w=h(24006),g=h(284),C=h(89383),T=h(51572),E=h(97392),S=h(63189),U=h(94650);let _=(()=>{class Q{}return Q.\u0275fac=function(oe){return new(oe||Q)},Q.\u0275mod=U.oAB({type:Q}),Q.\u0275inj=U.cJS({imports:[e.ez,c.lN,A.AV,w.UX,g.c,C.aw,T.Cq,E.Ps,S.r]}),Q})();var V=h(47549);h(13469)},13469:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>Te});var e=h(47549),c=h(32080),A=h(32105),w=h(94650),g=h(89383),C=h(36895),T=h(59549),E=h(10266),S=h(24006),U=h(284),_=h(51572),V=h(97392),z=h(98380);function Q(v,L){1&v&&w._UZ(0,"mat-spinner",12),2&v&&w.Q6J("diameter",18)}function te(v,L){if(1&v&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&v){const B=w.oxw();w.Q6J("matTooltip",B.getErrorTooltip())("matTooltipDisabled",!B.formGroup.get("passwordCtrl").hasError("backendError"))}}function oe(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ee(v,L){if(1&v&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&v){const B=w.oxw();w.Q6J("matTooltip",B.getErrorTooltip()),w.xp6(1),w.Oqu(B.getErrorTooltip())}}function le(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function de(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Te=(()=>{class v{constructor(B,W,q){this.translator=B,this.usersManagerService=W,this.store=q,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!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(B=>{const W=B.userAttributes.find(q=>"preferredLanguage"===q.friendlyName);this.language=W?.value??"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 B=this.formGroup.get("passwordCtrl").getError("backendError");return B&&(B=B.replace(":null","")),B}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(B=>B.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(B=>"default"===B.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return v.\u0275fac=function(B){return new(B||v)(w.Y36(g.sK),w.Y36(A.Fv),w.Y36(c.d6))},v.\u0275cmp=w.Xpm({type:v,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",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(B,W){1&B&&(w.TgZ(0,"div",0)(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,Q,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return W.showNewPassword=!W.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,te,2,2,"mat-icon",5),w.YNc(8,oe,3,3,"mat-error",6),w.YNc(9,ee,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8)(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 W.showPasswordConfirm=!W.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,le,3,3,"mat-error",6),w.YNc(18,de,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA()()),2&B&&(w.Q6J("formGroup",W.formGroup),w.xp6(1),w.Q6J("matTooltip",W.getPasswordDisabledTooltip())("matTooltipDisabled",W.formGroup.get("passwordCtrl").enabled||W.tooltipPwdDisabledForNamespace),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",W.showNewPassword?"text":"password")("required",W.passwordRequired)("errorStateMatcher",W.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",W.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").dirty&&null!==W.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.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",W.showPasswordConfirm?"text":"password")("required",W.passwordRequired),w.xp6(2),w.hij(" ",W.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",W.passwordRequirement,w.oJD))},dependencies:[C.O5,T.TO,T.KE,T.hX,T.R9,E.gM,S.Fj,S.JJ,S.JL,S.Q7,S.sg,S.u,U.Nt,_.Ou,V.Hw,z.w,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)}"]}),v})()},47549:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>C,y:()=>T});var e=h(82805),c=h(39646),A=h(63900),w=h(54004),g=h(70262);class C{isErrorState(S){return!(!S?.invalid||!S?.dirty)}}const T=(E,S,U,_=500)=>V=>(0,e.H)(_).pipe((0,A.w)(()=>(U.dontHandleErrorForNext(),E&&"No namespace"!==E?S.checkPasswordStrength({password:V.value,namespace:E}):(0,c.of)(null))),(0,w.U)(()=>null),(0,g.K)(z=>{const Q=z.error,te={backendError:Q.message.substring(Q.message.indexOf(":")+1)};return(0,c.of)(te)}))},32105:(Ye,pe,h)=>{"use strict";h.d(pe,{au:()=>Ue,sY:()=>he,H8:()=>T,jw:()=>E,Ct:()=>S,VK:()=>C,WY:()=>_,KG:()=>z,IQ:()=>Q,ff:()=>oe,uq:()=>le,aC:()=>de,Hr:()=>Te,tk:()=>v,xk:()=>L,t7:()=>B,KK:()=>W,Ob:()=>q,Dy:()=>re,Fv:()=>ue,FW:()=>ye,YF:()=>Me});var e=h(80529);class c{encodeKey(H){return encodeURIComponent(H)}encodeValue(H){return encodeURIComponent(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}var A=h(94650);const w=new A.OlP("basePath");class C{constructor(H={}){this.apiKeys=H.apiKeys,this.username=H.username,this.password=H.password,this.accessToken=H.accessToken,this.basePath=H.basePath,this.withCredentials=H.withCredentials,this.encoder=H.encoder,this.credentials=H.credentials?H.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(H){if(0===H.length)return;const i=H.find(o=>this.isJsonMime(o));return void 0===i?H[0]:i}selectHeaderAccept(H){if(0===H.length)return;const i=H.find(o=>this.isJsonMime(o));return void 0===i?H[0]:i}isJsonMime(H){const i=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==H&&(i.test(H)||"application/json-patch+json"===H.toLowerCase())}lookupCredential(H){const i=this.credentials[H];return"function"==typeof i?i():i}}let T=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}convertAttributeToNonunique(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}convertAttributeToUnique(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteAttributeDefinitions(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAttributeDefinitions(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAttribute(i,o,f,l,a,n,t,r,s,d,p,M="body",_e=!1,bt){let Vt=new e.LE({encoder:this.encoder});null!=i&&(Vt=this.addToHttpParams(Vt,i,"attributeName")),null!=o&&(Vt=this.addToHttpParams(Vt,o,"attributeId")),null!=f&&(Vt=this.addToHttpParams(Vt,f,"facility")),null!=l&&(Vt=this.addToHttpParams(Vt,l,"user")),null!=a&&(Vt=this.addToHttpParams(Vt,a,"vo")),null!=n&&(Vt=this.addToHttpParams(Vt,n,"resource")),null!=t&&(Vt=this.addToHttpParams(Vt,t,"member")),null!=r&&(Vt=this.addToHttpParams(Vt,r,"group")),null!=s&&(Vt=this.addToHttpParams(Vt,s,"host")),null!=d&&(Vt=this.addToHttpParams(Vt,d,"userExtSource")),null!=p&&(Vt=this.addToHttpParams(Vt,p,"key"));let Mt,on=this.defaultHeaders;Mt=this.configuration.lookupCredential("BasicAuth"),Mt&&(on=on.set("Authorization","Basic "+Mt)),Mt=this.configuration.lookupCredential("BearerAuth"),Mt&&(on=on.set("Authorization","Bearer "+Mt));let ft=bt&&bt.httpHeaderAccept;void 0===ft&&(ft=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ft&&(on=on.set("Accept",ft));let je=bt&&bt.context;void 0===je&&(je=new e.qT);let Pe="json";return ft&&(Pe=ft.startsWith("text")?"text":this.configuration.isJsonMime(ft)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:je,params:Vt,responseType:Pe,withCredentials:this.configuration.withCredentials,headers:on,observe:M,reportProgress:_e})}getAttributeDefinitionById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeDefinitionByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeDefinitionsByNamespace(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeModulesDependenciesForAttributeGraphText(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"format")),null!=o&&(n=this.addToHttpParams(n,o,"attrName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAttributeModulesDependenciesGraphText(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributePolicyCollections(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeRights(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributesDefinitionWithRights(i,o,f,l,a,n,t,r,s="body",d=!1,p){let M=new e.LE({encoder:this.encoder});null!=i&&(M=this.addToHttpParams(M,i,"member")),null!=o&&(M=this.addToHttpParams(M,o,"user")),null!=f&&(M=this.addToHttpParams(M,f,"vo")),null!=l&&(M=this.addToHttpParams(M,l,"group")),null!=a&&(M=this.addToHttpParams(M,a,"resource")),null!=n&&(M=this.addToHttpParams(M,n,"facility")),null!=t&&(M=this.addToHttpParams(M,t,"host")),null!=r&&(M=this.addToHttpParams(M,r,"userExtSource"));let bt,_e=this.defaultHeaders;bt=this.configuration.lookupCredential("BasicAuth"),bt&&(_e=_e.set("Authorization","Basic "+bt)),bt=this.configuration.lookupCredential("BearerAuth"),bt&&(_e=_e.set("Authorization","Bearer "+bt));let Vt=p&&p.httpHeaderAccept;void 0===Vt&&(Vt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Vt&&(_e=_e.set("Accept",Vt));let on=p&&p.context;void 0===on&&(on=new e.qT);let Mt="json";return Vt&&(Mt=Vt.startsWith("text")?"text":this.configuration.isJsonMime(Vt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:on,params:M,responseType:Mt,withCredentials:this.configuration.withCredentials,headers:_e,observe:s,reportProgress:d})}getEntitylessAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"key")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessAttributesByKey(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEntitylessAttributesByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEntitylessAttributesWithKeys(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attrName")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"keys[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessKeys(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityResourceUserMemberAttributes(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),null!=f&&(r=this.addToHttpParams(r,f,"user")),null!=l&&(r=this.addToHttpParams(r,l,"member"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getFacilityUserAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupResourceAttributeById(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupResourceAttributeByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupResourceAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLogins(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberAndUserAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"workWithUserAttributes"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAndUserAttributesByNames(i,o,f,l="body",a=!1,n){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==f)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(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAndUserAttributesByNames(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getMemberGroupAttributeById(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberGroupAttributeByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberGroupAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAttributesByNames(i,o,f,l="body",a=!1,n){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==f)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")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getMemberResourceAttributeById(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAttributeByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesFacilityService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesFacilityServices(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesGroupResourceService(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"group"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesHostService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"host"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"workWithUserAttributes"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMemberGroup(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(i,o,f,l,a,n="body",t=!1,r){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==f)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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"group")),null!=l&&(s=this.addToHttpParams(s,l,"member")),null!=a&&(s=this.addToHttpParams(s,a,"workWithUserAttributes"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"group")),null!=f&&(r=this.addToHttpParams(r,f,"member")),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRequiredAttributesMemberResource(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesMemberResourceService(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),null!=f&&(r=this.addToHttpParams(r,f,"member")),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRequiredAttributesResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesResourceService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesResourceServices(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesUserFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesVoService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupAndGroupAttributes(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"workWithGroupAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getResourceGroupAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupMemberAttributesByNames(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group")),null!=f&&(r=this.addToHttpParams(r,f,"member")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getUserAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserFacilityAttributeById(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getUserFacilityAttributeByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getUserFacilityAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(i,o,f,l,a,n,t="body",r=!1,s){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==f)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==a)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 d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"facility")),null!=o&&(d=this.addToHttpParams(d,o,"resource")),null!=f&&(d=this.addToHttpParams(d,f,"group")),null!=l&&(d=this.addToHttpParams(d,l,"user")),null!=a&&(d=this.addToHttpParams(d,a,"member")),n&&n.forEach(on=>{d=this.addToHttpParams(d,on,"attributes[]")});let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}removeAttributesForFacilityResourceUserMember(i,o,f,l,a,n="body",t=!1,r){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==f)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==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"user")),null!=l&&(s=this.addToHttpParams(s,l,"member")),a&&a.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"attributes[]")});let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}removeEntitylessAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"key")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupResourceAttribute(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeGroupResourceAttributes(i,o,f,l="body",a=!1,n){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==f)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")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attributes[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeHostAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(i,o,f,l="body",a=!1,n){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==f)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(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttribute(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttributes(i,o,f,l="body",a=!1,n){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==f)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")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attributes[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeMemberResourceAttribute(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberResourceAttributes(i,o,f,l="body",a=!1,n){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==f)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")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeResourceAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUesAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSourceAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserFacilityAttribute(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeUserFacilityAttributes(i,o,f,l="body",a=!1,n){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==f)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")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeVoAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setAttributePolicyCollections(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setAttributeRights(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setEntitylessAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityResourceGroupUserMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=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:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityResourceUserMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=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:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setHostAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setHostAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupWithUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAndUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberWithUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceGroupWithGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserExtSourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserExtSourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserFacilityAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setVoAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setVoAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),E=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}auditMessagesManagerLog(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createAuditerConsumer(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAuditerConsumers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuditerMessagesCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getLastMessageId(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMessages(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMessagesByCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMessagesPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}pollConsumerMessages(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}setLastProcessedId(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consumerName")),null!=o&&(n=this.addToHttpParams(n,o,"lastProcessedId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),S=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAllPolicies(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRolesManagementRules(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuthzAdminGroups(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"complementaryObjectName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAuthzRichAdmins(i,o,f,l,a,n,t="body",r=!1,s){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==f)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 d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"role")),null!=o&&(d=this.addToHttpParams(d,o,"complementaryObjectId")),null!=f&&(d=this.addToHttpParams(d,f,"complementaryObjectName")),l&&l.forEach(on=>{d=this.addToHttpParams(d,on,"specificAttributes")}),null!=a&&(d=this.addToHttpParams(d,a,"allUserAttributes")),null!=n&&(d=this.addToHttpParams(d,n,"onlyDirectAdmins"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}getFacilitiesWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupRoleNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupRoles(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLoggedUser(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMembersWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getPerunPrincipal(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPrincipalRoleNames(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserRoleNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserRoles(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isFacilityAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isGroupAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isPerunAdmin(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isVoAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}keepAlive(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}loadAuthorizationComponents(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}setRoleWithGroupComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setRoleWithUserComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unsetRoleWithGroupComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unsetRoleWithUserComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),_=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}changeConsentStatus(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consent")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}evaluateConsentsForConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}evaluateConsentsForService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllConsentHubs(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllConsents(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getConsentById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentForUserAndConsentHub(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"status"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getConsentHubByFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentHubById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentHubByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForConsentHubWithStatus(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consentHub")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForUserAndConsentHub(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"consentHub"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUserWithStatus(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),z=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addExtSourceWithGroupSource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addExtSourceWithVoSource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createExtSourceFromExtSourceObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createExtSourceWithNameType(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSourceByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSources(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGroupExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}loadExtSourcesDefinitions(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeExtSourceWithGroupSource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeExtSourceWithVoSource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Q=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addFacilityAdminGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminGroupByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUserByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwner(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByOwnerName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHost(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"hostname"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"hostname"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHosts(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostsByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeam(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeamByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesByDestinationName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceDestinationNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagers(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersByDestinationName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceDestinationNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwners(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersByDestinationName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceDestinationNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"description"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllowedGroups(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedGroupsByFacilityName(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedRichGroupsWithAttributes(i,o,f,l,a="body",n=!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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"vo")),null!=l&&(r=this.addToHttpParams(r,l,"service"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(i,o,f,l,a="body",n=!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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"vo")),null!=l&&(r=this.addToHttpParams(r,l,"service"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllowedUsersOfFacility(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedVosByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesByAssignedServiceForFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedResourcesForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesForFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForFacilityAndService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedRichResourcesForFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedSecurityTeams(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedSecurityTeamsByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedUsers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedUsersByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getBansForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEnrichedFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getEnrichedHosts(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeName")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByDestination(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesByHostName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAdminGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAdminUsers(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAdminUsersByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBan(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityForHost(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityOwners(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityOwnersByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHosts(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsByHostname(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsCountByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getOwnerFacilities(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeBanByUserIdFacilityId(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroupByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUserByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeFacilityOwner(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByOwnerName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHost(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeHostByHostname(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeHosts(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostsByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeam(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeamByFacilityName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setFacilityBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFacilityBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),oe=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addMember(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addMembers(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupToHierarchicalVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}canExtendMembershipInGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupUnion(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resultGroup")),null!=o&&(n=this.addToHttpParams(n,o,"operandGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupWithParentGroupNameDescription(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"description"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}createGroupWithVoNameDescription(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"description"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}deleteGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}disallowGroupToHierarchicalVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}extendMembershipInGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}forceAllSubGroupsSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceGroupStructureSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceGroupSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAllowedGroupsToHierarchicalVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllGroupsFromAllVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllMemberGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichGroupsWithAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"name"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMemberById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCountsByGroupStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCountsByVoStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupRichMembersByIds(i,o,f,l="body",a=!1,n){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==f)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(_e=>{t=this.addToHttpParams(t,_e,"members[]")}),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupUnions(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"reverseDirection"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getGroupsWhereMemberIsActive(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getIndirectMembershipPaths(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberRichGroupsWithAttributesByNames(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichGroupByIdWithAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"groupId")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSubgroupsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getVoAllAllowedGroupsToHierarchicalVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isAllowedGroupToHierarchicalVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isGroupMember(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"destinationGroup")),null!=i&&(n=this.addToHttpParams(n,i,"movingGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupUnion(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resultGroup")),null!=o&&(n=this.addToHttpParams(n,o,"operandGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMember(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMembers(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setGroupsMemberStatus(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"status"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),le=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}canExtendMembership(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createMemberForCandidate(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createMemberForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createMemberFromExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSpecificMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMembersFromCSV(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}extendMembership(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}findCompleteRichMembersByAttributes(i,o,f,l="body",a=!1,n){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(_e=>{t=this.addToHttpParams(t,_e,"attrsNames[]")}),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"allowedStatuses[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}findCompleteRichMembersForGroup(i,o,f,l,a,n,t="body",r=!1,s){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==f)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 d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"group")),o&&o.forEach(on=>{d=this.addToHttpParams(d,on,"attrsNames[]")}),a&&a.forEach(on=>{d=this.addToHttpParams(d,on,"allowedStatuses[]")}),n&&n.forEach(on=>{d=this.addToHttpParams(d,on,"allowedGroupStatuses[]")}),null!=f&&(d=this.addToHttpParams(d,f,"searchString")),null!=l&&(d=this.addToHttpParams(d,l,"lookingInParentGroup"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}findCompleteRichMembersForVo(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"allowedStatuses[]")}),null!=f&&(r=this.addToHttpParams(r,f,"searchString"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}findMembersInVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"searchString"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findSponsoredCompleteRichMembersForVo(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"searchString")),null!=l&&(r=this.addToHttpParams(r,l,"onlySponsored"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllMembers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllNamespacesRules(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllSponsoredMembersAndTheirSponsors(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getCompleteRichMembersForGroup(i,o,f,l,a,n="body",t=!1,r){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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),f&&f.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"allowedStatuses[]")}),l&&l.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"allowedGroupStatuses[]")}),null!=o&&(s=this.addToHttpParams(s,o,"lookingInParentGroup")),a&&a.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"attrsNames[]")});let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"allowedStatuses[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getCompleteRichMembersForVo(i,o,f,l="body",a=!1,n){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(_e=>{t=this.addToHttpParams(t,_e,"allowedStatuses[]")}),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrsNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"extSourceName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberByUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getMembersWithStatusCount(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichMemberWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichMembersByIds(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"ids[]")}),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMembersNoUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsoredMembersAndTheirSponsors(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByVo(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceName")),null!=f&&(r=this.addToHttpParams(r,f,"extLogin")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}moveMembership(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"targetUser"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeSponsor(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"sponsor"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendAccountActivationLinkEmail(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"namespace")),null!=f&&(r=this.addToHttpParams(r,f,"emailAttributeURN")),null!=l&&(r=this.addToHttpParams(r,l,"language"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sendPasswordResetLinkEmail(i,o,f,l,a,n="body",t=!1,r){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==f)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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member")),null!=o&&(s=this.addToHttpParams(s,o,"namespace")),null!=f&&(s=this.addToHttpParams(s,f,"emailAttributeURN")),null!=l&&(s=this.addToHttpParams(s,l,"language")),null!=a&&(s=this.addToHttpParams(s,a,"baseUrl"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}setSponsoredMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setSponsorshipForMember(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}setStatus(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sponsorMember(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateSponsorshipValidity(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}validateMemberAsync(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),de=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}createOwner(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"owner")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllOwners(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getOwnerById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getOwnerByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Te=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}sentMessageToRTWithMemberQueue(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"memberId")),null!=o&&(r=this.addToHttpParams(r,o,"queue")),null!=f&&(r=this.addToHttpParams(r,f,"subject")),null!=l&&(r=this.addToHttpParams(r,l,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sentMessageToRTWithQueue(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"text"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sentMessageToRTWithVo(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"text"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sentMessageToRTWithVoQueue(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"voId")),null!=o&&(r=this.addToHttpParams(r,o,"queue")),null!=f&&(r=this.addToHttpParams(r,f,"subject")),null!=l&&(r=this.addToHttpParams(r,l,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),v=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addApplicationMailForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addApplicationMailForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addGroupsToAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}approveApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}checkForSimilarRichIdentities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}checkForSimilarUsersWithAuthInfo(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}consolidate(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}consolidateIdentityUsingToken(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}copyFormFromGroupToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromGroupToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createApplicationFormInGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createApplicationFormInVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteApplicationMailForGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"id"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteApplicationMailForVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"id"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroupsFromAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationDataById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationMailsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationMailsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationsForGroup(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"state[]")}),null!=f&&(r=this.addToHttpParams(r,f,"dateFrom")),null!=l&&(r=this.addToHttpParams(r,l,"dateTo"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getApplicationsForMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getApplicationsForVo(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"state[]")}),null!=f&&(r=this.addToHttpParams(r,f,"dateFrom")),null!=l&&(r=this.addToHttpParams(r,l,"dateTo"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getApplicationsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getConsolidatorToken(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFormItemsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFormItemsForGroupWithType(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFormItemsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFormItemsForVoWithType(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupApplicationForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsToAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoApplicationForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}rejectApplication(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"id")),null!=o&&(n=this.addToHttpParams(n,o,"reason"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendInvitation(i,o,f,l,a="body",n=!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 r=new e.LE({encoder:this.encoder});null!=f&&(r=this.addToHttpParams(r,f,"voId")),null!=l&&(r=this.addToHttpParams(r,l,"name")),null!=i&&(r=this.addToHttpParams(r,i,"email")),null!=o&&(r=this.addToHttpParams(r,o,"language"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sendInvitationForGroup(i,o,f,l,a,n="body",t=!1,r){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 s=new e.LE({encoder:this.encoder});null!=f&&(s=this.addToHttpParams(s,f,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"groupId")),null!=a&&(s=this.addToHttpParams(s,a,"name")),null!=i&&(s=this.addToHttpParams(s,i,"email")),null!=o&&(s=this.addToHttpParams(s,o,"language"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"groupId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sendInvitationToExistingUser(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userId")),null!=o&&(n=this.addToHttpParams(n,o,"voId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendMessage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setSendingEnabled(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}submitApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateApplicationMail(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemData(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsData(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}verifyApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),L=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}activateGroupResourceAssignment(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"async"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}addAdminToGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addAdminToUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupsToResources(i,o,f,l="body",a=!1,n){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(_e=>{t=this.addToHttpParams(t,_e,"groups[]")}),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"resources[]")}),null!=f&&(t=this.addToHttpParams(t,f,"async"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}assignGroupToResource(i,o,f,l,a,n="body",t=!1,r){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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignGroupToResources(i,o,f,l,a,n="body",t=!1,r){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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),o&&o.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"resources[]")}),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignGroupsToResource(i,o,f,l,a,n="body",t=!1,r){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 s=new e.LE({encoder:this.encoder});i&&i.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"groups[]")}),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignResourceTagToResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}assignService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServices(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServicesPackage(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"servicesPackage"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createResource(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"facility")),null!=f&&(r=this.addToHttpParams(r,f,"name")),null!=l&&(r=this.addToHttpParams(r,l,"description"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}createResourceTagWithResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createResourceTagWithTagName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"tagName")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deactivateGroupResourceAssignment(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteAllResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteAllResourcesTagsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAdminGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAdmins(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllResourcesByResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAllResourcesTagsForResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesTagsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedUsersOfResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedGroups(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedMembersWithStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithMemberService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedServicesToResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEnrichedResourceById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"id")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupAssignments(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMailingServiceRichResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceAssignments(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBan(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"name"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesCountForAll(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesCountForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesFromVoWhereUserIsAdmin(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourcesWhereGroupIsAdmin(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"group"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResourcesWhereUserIsAdmin(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"user"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRichAdmins(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"specificAttributes")}),null!=f&&(r=this.addToHttpParams(r,f,"allUserAttributes")),null!=l&&(r=this.addToHttpParams(r,l,"onlyDirectAdmins"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRichResourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichResourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeAllResourceTagsFromResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeBanByMemberAndResource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAdminResource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResources(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupsFromResource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeResourceSelfServiceGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceSelfServiceUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceTagFromResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}removeService(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServices(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServicesPackage(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"servicesPackage"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAdminResource(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setResourceBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unallowGroupsFromResources(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateResourceBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),B=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAttributesMatchResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAttributesResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getFacilities(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getMembersByUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getUsersSearcher(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),W=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addDestination(i,o,f,l,a,n="body",t=!1,r){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==f)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 s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service")),null!=o&&(s=this.addToHttpParams(s,o,"facility")),null!=f&&(s=this.addToHttpParams(s,f,"destination")),null!=l&&(s=this.addToHttpParams(s,l,"type")),null!=a&&(s=this.addToHttpParams(s,a,"propagationType"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}addDestinationToMultipleServices(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addDestinationsForAllServicesOnFacility(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"destination")),null!=f&&(r=this.addToHttpParams(r,f,"type")),null!=l&&(r=this.addToHttpParams(r,l,"propagationType"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}addRequiredAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addRequiredAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addServiceToServicesPackage(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"servicesPackage")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}blockAllServicesOnDestinationByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"destination")),null!=o&&(n=this.addToHttpParams(n,o,"destinationType"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}blockServiceOnDestination(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockServiceOnDestinationWithNameAndType(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}blockServiceOnFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createService(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"script"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}createServiceWithService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServicesPackageByNameAndDescription(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"description"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceServicePropagation(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllDestinations(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRichDestinationsForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichDestinationsForService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedServices(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedServicesVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithGroups(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithVos(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getDestinations(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationsCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesDestinations(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAssignedServicesForGUI(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFlatData(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHashedDataWithGroups(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getHashedHierarchicalData(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getHierarchicalData(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichDestinations(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getServiceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServiceByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServices(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getServicesBlockedOnDestination(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesBlockedOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesByAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesFromServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackageById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackageByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackages(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isServiceBlockedOnDestination(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isServiceBlockedOnFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}planServicePropagation(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllDestinations(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllRequiredAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeDestination(i,o,f,l,a="body",n=!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==f)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 r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility")),null!=f&&(r=this.addToHttpParams(r,f,"destination")),null!=l&&(r=this.addToHttpParams(r,l,"type"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeRequiredAttribute(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeRequiredAttributes(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServiceFromServicesPackage(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"servicesPackage")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}unblockAllServicesOnDestinationByName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"destination")),null!=o&&(n=this.addToHttpParams(n,o,"destinationType"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}unblockServiceOnDestinationById(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockServiceOnDestinationByName(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}unblockServiceOnFacility(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),q=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}countTasks(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}deleteTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultsIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultsNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAllFacilitiesStates(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityServicesState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTask(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResults(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getTaskResultsByTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForDestinations(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForGUIByTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForGUIByTaskAndDestination(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"task")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isThereSuchTask(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}listAllTasks(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}listAllTasksForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}suspendTasksPropagation(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),ue=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addSpecificUserOwner(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"specificUser"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addUserExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}anonymizeUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}changeNonAuthzPasswordByToken(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}changePasswordForLogin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}changePasswordForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}checkPasswordResetRequestByTokenIsValid(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}checkPasswordStrength(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createAlternativePassword(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServiceUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteAlternativePassword(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"passwordId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}deletePasswordForLogin(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"login")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deletePasswordForUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findRichUsers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}findRichUsersWithAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"searchString")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrsNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findUsers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}generateAccountForName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"namespace")),null!=o&&(n=this.addToHttpParams(n,o,"name"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichUsersWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsForFacilityWhereUserIsActive(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsForResourceWhereUserIsActive(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getPendingPreferredEmailChanges(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUserExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUserWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersWithAttributesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersWithoutVoWithAttributes(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSpecificUsersByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsorsForMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsForMemberByVoAndLogin(i,o,f,l,a="body",n=!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==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceName")),null!=f&&(r=this.addToHttpParams(r,f,"extLogin")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getUserByExtSourceNameAndExtLogin(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"extLogin")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceByExtLoginAndExtSourceName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"extSourceName")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceLogin"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceByUniqueAttributeValueAndAttributeId(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeId")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeName")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getUsersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsersBySpecificUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsersPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getVosWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosWhereUserIsMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isLoginAvailable(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"loginNamespace")),null!=o&&(n=this.addToHttpParams(n,o,"login"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}loginExist(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSpecificUserOwner(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"specificUser"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSource(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"force"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}requestPreferredEmailChange(i,o,f,l,a,n,t="body",r=!1,s){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 d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"user")),null!=o&&(d=this.addToHttpParams(d,o,"email")),null!=f&&(d=this.addToHttpParams(d,f,"lang")),null!=l&&(d=this.addToHttpParams(d,l,"linkPath")),null!=a&&(d=this.addToHttpParams(d,a,"customUrl")),null!=n&&(d=this.addToHttpParams(d,n,"idpFilter"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}reservePasswordForLogin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}reservePasswordForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}reserveRandomPassword(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setLogin(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==o)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==f)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"login")),null!=f&&(t=this.addToHttpParams(t,f,"namespace"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateUserExtSourceLastAccess(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}validatePasswordForLogin(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"login")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePasswordForUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePreferredEmailChangeWithToken(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"token")),null!=o&&(n=this.addToHttpParams(n,o,"u"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),ye=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAppsConfig(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGuiConfiguration(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunRPCVersion(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatistics(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatus(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunSystemTimeInMillis(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.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:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Me=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addMemberVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithName(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"shortName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findCandidates(i,o,f,l="body",a=!1,n){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!=f&&(t=this.addToHttpParams(t,f,"maxNumOfResults"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}findCandidatesForGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"searchString"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getCompleteCandidatesForGroup(i,o,f,l="body",a=!1,n){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==f)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(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getCompleteCandidatesForVo(i,o,f,l="body",a=!1,n){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==f)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(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getEnrichedVoById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMyEnrichedVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMyVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getParentVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichAdminsForVo(i,o,f,l,a,n="body",t=!1,r){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==f)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==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo")),null!=o&&(s=this.addToHttpParams(s,o,"role")),f&&f.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"specificAttributes")}),null!=l&&(s=this.addToHttpParams(s,l,"allUserAttributes")),null!=a&&(s=this.addToHttpParams(s,a,"onlyDirectAdmins"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getVoAdminGroups(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"role"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAdminUsers(i,o,f,l="body",a=!1,n){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==f)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!=f&&(t=this.addToHttpParams(t,f,"onlyDirectAdmins"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getVoBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoBanForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoBansForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoByShortName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoMembersCountsByStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeMemberVo(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminGroup(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminUser(i,o,f="body",l=!1,a){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 n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeVoBanForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}setVoBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const he={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},re={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 Ue=(()=>{class P{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:P,providers:[{provide:C,useFactory:i}]}}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(P,12),A.LFG(e.eN,8))},P.\u0275mod=A.oAB({type:P}),P.\u0275inj=A.cJS({}),P})()},19516:(Ye,pe,h)=>{"use strict";h.d(pe,{bY:()=>ee.b,r5:()=>C.r,d4:()=>A,dp:()=>w.d});var e=h(36895),c=h(94650);let A=(()=>{class le{}return le.\u0275fac=function(Te){return new(Te||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[e.ez]}),le})();var w=h(31359),C=(h(34447),h(82895)),ee=(h(69773),h(12856),h(20919),h(5865),h(38993),h(86349),h(53561),h(16119),h(7598),h(9954),h(4765))},34447:(Ye,pe,h)=>{"use strict";h.d(pe,{a:()=>w});var e=h(32080),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,E){this.translate=T,this.storage=E}transform(T,E="en"){const S=this.storage.get("custom_labels");if(S)for(const U of S)if(U.label===T)return U[E];return T}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16),c.Y36(e.d6,16))},g.\u0275pipe=c.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},4765:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.namespace.includes("virt")||g.namespace.includes("core")||g.namespace.includes("entityless")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},82895:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>c});var e=h(94650);let c=(()=>{class A{transform(g,C){return C?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>c});var e=h(94650);let c=(()=>{class A{transform(g,C,T){let E;switch(g){case"VALID":E="green";break;case"INVALID":E="red";break;default:E=""}return`${E}${T||C?" cursor-default":""}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>w});var e=h(9244),c=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,c.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,c.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}if(U){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}return""}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(64080),c=h(9244),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"";const E=(0,c.IL)(T.attributes,e.r.GROUP_SYNC_ENABLED),S=(0,c.IL)(T.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"";const U=S.value;if("true"===E.value){const V=(0,c.IL)(T.attributes,e.r.GROUP_LAST_SYNC_STATE),z=(0,c.IL)(T.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}if(U){const V=(0,c.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,c.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(9244),c=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,c.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,c.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(U){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.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(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},86349:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(9244),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,E){const S=(0,e.zr)(T);return"INDIRECT"===S?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):E||"UNALTERABLE"!==S?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16))},g.\u0275pipe=c.Yjl({name:"memberCheckboxLabel",type:g,pure:!0}),g})()},20919:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.g$)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.lt)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.Gw)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},38993:(Ye,pe,h)=>{"use strict";h.d(pe,{n:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C,T){const E=(0,e.zr)(C);return"INDIRECT"===E||!T&&"UNALTERABLE"===E}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberStatusDisabled",type:w,pure:!0}),w})()},69773:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){const T=(0,e.zr)(C);let E;switch(C.status){case"VALID":E="green";break;case"INVALID":E="red";break;case"DISABLED":E="black";break;default:return""}return`${E}${"UNALTERABLE"===T?" cursor-default":""}`}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberStatusIconColor",type:w,pure:!0}),w})()},21757:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>c});var e=h(94650);let c=(()=>{class A{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 A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>w});var e=h(9244),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,E,S){let U=null,_=null;T.memberAttributes&&(U=T.memberAttributes.find(Q=>"membershipExpiration"===Q.friendlyName),_=T.memberAttributes.find(Q=>"groupMembershipExpiration"===Q.friendlyName));let V="";V=E?`\n Group status: ${(0,e.Oe)(T.groupStatus)}\n Expiration: ${_?.value??"never"}`:T.memberAttributes?`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}\n Expiration: ${U?.value??"never"}`:`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}`;const z=(0,e.zr)(T);return S?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===z&&E?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!E&&"UNALTERABLE"===z&&(V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),V}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16))},g.\u0275pipe=c.Yjl({name:"memberStatusTooltip",type:g,pure:!0}),g})()},20551:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.replace("VALID","ACTIVE")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(36895),c=h(94650);let A=(()=>{class w{transform(C,T){return"voRules"===C?"Vo rules":"groupRules"===C?"Group rules":C&&"never"!==C.toLowerCase()?(0,e.p6)(C.replace(" ","T"),"d.M.yyyy "+(T?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.te)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.kN)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.$0)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.OV)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userVo",type:w,pure:!0}),w})()},32080:(Ye,pe,h)=>{"use strict";h.d(pe,{yC:()=>ye,F5:()=>q,sM:()=>Ge,eE:()=>Fe,e8:()=>_,EB:()=>le,Be:()=>Je,Hy:()=>se,ly:()=>he,fb:()=>gt,xw:()=>ce,x4:()=>w,v0:()=>Q,SZ:()=>Me,V6:()=>ue,jq:()=>Xe,BN:()=>$,Ip:()=>Ce,HV:()=>ct,d6:()=>E,UA:()=>Ze});var e=h(32105),c=h(45323),A=h(94650);let w=(()=>{class be{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,H){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(P);let o=[];for(const l of i)o=o.concat(l.perunRoles);const f=this.fetchAllRelatedObjects(H);return this.resolveAuthorization(o,f)}principalHasRole(P,H,i){let o=H;return H.startsWith("Rich")&&(o=H.substring(4)),!(!this.principal.roles[P]||!this.principal.roles[P][o])&&this.principal.roles[P][o].includes(Number(i.toString()))}canManageFacilities(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER,c.u.FACILITYADMIN,c.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(c.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.VOADMIN)}isThisVoAdminOrObserver(P){return this.editableVos.includes(Number(P.toString()))||this.observableVos.includes(Number(P.toString()))||this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)}isThisVoAdmin(P){return this.editableVos.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(c.u.SPONSOR)}isThisGroupAdmin(P){return this.editableGroups.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isGroupAdminInThisVo(P){return this.hasGroupInTheseVos.includes(P)}isFacilityAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.FACILITYADMIN)}isThisFacilityAdmin(P){return this.editableFacilities.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(c.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.VOOBSERVER,c.u.PERUNOBSERVER)}isThisVoObserver(P){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)||this.observableVos.includes(P)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((P,H)=>{this.authzSevice.getAllRolesManagementRules().subscribe(i=>{this.allRolesManagementRules=i,P()},i=>H(i))})}assignAvailableRoles(P,H){this.allRolesManagementRules.forEach(i=>{i.primaryObject===H&&P.push(i.roleName)}),P.sort(),"Vo"===H&&this.voCustomSort(P)}isManagerPagePrivileged(P){const H=[];let i=P.beanName;i.startsWith("Rich")&&(i=i.substring(4)),this.assignAvailableRoles(H,i);const o=new Map;this.setRolesAuthorization(H,P,o);for(const f of o.values())if(f.readAuth||f.manageAuth)return!0;return!1}setRolesAuthorization(P,H,i){for(const o of P){let f=[],l=[],a=[];for(const d of this.allRolesManagementRules)if(d.roleName===o){f=f.concat(d.privilegedRolesToRead),l=l.concat(d.privilegedRolesToManage);for(const p of Object.keys(d.entitiesToManage))a="User"===p?[p].concat(a):a.concat(p);break}const n=this.fetchAllRelatedObjects([H]),t=this.resolveAuthorization(f,n),r=this.resolveAuthorization(l,n);i.set(o,{readAuth:t,manageAuth:r,modes:a})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(P){for(const H of this.allRolesManagementRules)if(H.roleName===P)return H.primaryObject;return""}resolveAuthorization(P,H){for(const i of P){let o=!0;for(const f of Object.keys(i)){const l=i[f];if(null===l)this.principalRoles.has(f)||(o=!1);else if(H[l]){for(const a of H[l])if(!this.principalHasRole(f,l,a)){o=!1;break}}else o=!1;if(!o)break}if(o)return!0}return!1}getPerunPolicy(P){for(const H of this.perunPolicies)if(H.policyName===P)return H;return null}fetchAllRelatedObjects(P){const H={};for(const i of P){let o=i.beanName;switch(i.beanName.startsWith("Rich")&&(o=i.beanName.substring(4)),H[o]?H[o].push(i.id):H[o]=[i.id],o){case"Member":H.User?H.User.push(i.userId):H.User=[i.userId],H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId];break;case"Group":case"ResourceTag":H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId];break;case"Resource":H.Facility?H.Facility.push(i.facilityId):H.Facility=[i.facilityId],H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId]}}return H}fetchPolicyWithAllIncludedPolicies(P){const H=new Map;let i=[];for(i.push(P);0!==i.length;){const f=i.shift();if(H.has(f))continue;const l=this.getPerunPolicy(f);if(!l)return[];H.set(f,l),i=i.concat(l.includePolicies)}const o=[];for(const f of H.values())o.push(f);return o}voCustomSort(P){for(let H=0;H{class be{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.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(P){this.branding=P}skipOidc(){return this.getProperty("skip_oidc")}getProperty(P){const H=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let i=null;for(const o of H)o&&!i&&(i=o[P]);return i}get(...P){let H;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let o=0;o{class be{constructor(P,H,i,o,f){this.injector=P,this.store=H,this.dialog=i,this.route=o,this.oauthService=f,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}getClientConfig(){const P=this.setIdpFilter(),o=.5+.25*Math.random(),f=P?{acr_values:P}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(f.prompt="consent"),sessionStorage.getItem("mfa_route")&&(f.acr_values="https://refeds.org/profile/mfa",f.prompt?f.prompt+=" login":f.prompt="login",f.max_age="0"),"Linker"===this.store.getProperty("application")){f.prompt?f.prompt+=" login":f.prompt="login";const l=(0,T.O5)("idphint",location.search.substring(1));l&&(f.idphint=l)}return{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,timeoutFactor:o,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:f}}setIdpFilter(){const P=location.search.substring(1).split("&");this.filterShortname=null;const H=this.store.get("oidc_client","filters");if(!H)return null;let i=null;return P.forEach(o=>{const f=o.split("=");"idpFilter"===f[0]&&H[f[1]]&&(this.filterShortname=f[1],i=H[f[1]])}),H.default&&!i?(this.filterShortname="default",H.default):i}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const P=location.pathname,H=location.search.substring(1);return"/api-callback"===P?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(P,H).then(i=>i?this.startRefreshToken():new Promise(o=>o(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(P=>!!P&&(this.oauthService.events.pipe((0,g.h)(H=>"token_expires"===H.type&&"access_token"===H.info)).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 H=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let o=[];i&&(o=i.split("&"));const f={};return o.forEach(l=>{const a=l.split("=");f[a[0]]=a[1]}),(!H||"/login"===H)&&(H="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),f.idpFilter&&(this.filterShortname=String(f.idpFilter)),this.router.navigate([H],{queryParams:f,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(P=>P instanceof C.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 H=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===P)return!0;for(const i of H)if(P.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(P,H){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(i=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",H),localStorage.removeItem("access_token"),!1):!!i||(this.isPotentiallyValidPath(P)?(sessionStorage.setItem("auth:redirect",P),sessionStorage.setItem("auth:queryParams",H),!1):new Promise((o,f)=>f("Invalid path"))))}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(A.zs3),A.LFG(E),A.LFG(S.uw),A.LFG(C.gz),A.LFG(U.Ct))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var V=h(89383);let z=(()=>{class be{constructor(P){this.dialogRef=P}}return be.\u0275fac=function(P){return new(P||be)(A.Y36(S.so))},be.\u0275cmp=A.Xpm({type:be,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(P,H){1&P&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&P&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[S.xY,V.X$]}),be})(),Q=(()=>{class be{constructor(P,H,i,o,f,l){this.authService=P,this.storeService=H,this.authResolver=i,this.authzService=o,this.dialog=f,this.router=l,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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(P=>P(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(P=>{if(null===P.user){const H=(0,T.kZ)();this.dialog.open(z,H)}else{this.storeService.setPerunPrincipal(P),this.authResolver.init(P);const H=localStorage.getItem("routeAuthGuard");H&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([H]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(P=>{this.storeService.setPerunPrincipal(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 localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const P=location.search.substr(1).split("&"),H={};for(const i of P){const o=i.split("=");H[o[0]]=o[1]}return void this.router.navigate(["login"],{queryParams:H,queryParamsHandling:"merge"})}}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(_),A.LFG(E),A.LFG(w),A.LFG(e.Ct),A.LFG(S.uw),A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var te=h(97392),oe=h(11481);let le=(()=>{class be{constructor(P,H){this.matIconRegistry=P,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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(P=>{this.matIconRegistry.addSvgIcon(P.name,this.domSanitizer.bypassSecurityTrustResourceUrl(P.url))})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(te.jv),A.LFG(oe.H7))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})();var de=h(80529),Te=h(62843),v=h(28746),L=h(18505),B=h(4859);let W=(()=>{class be{constructor(P){this.dialogRef=P}close(){this.dialogRef.close(!0)}}return be.\u0275fac=function(P){return new(P||be)(A.Y36(S.so))},be.\u0275cmp=A.Xpm({type:be,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,H){1&P&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return H.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&P&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[S.uh,S.xY,S.H8,B.lW,V.X$]}),be})(),q=(()=>{class be{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const P=this.handleNextError;return this.handleNextError=!0,P}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ue=(()=>{class be{constructor(P){this.translate=P,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(P,H=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===P.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===P.name?H:H+"\n"+P.name,P,P.message)}showRouteError(){const P=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(P,null,H)}showError(P,H,i,o,f){this.addNotification.emit({type:"error",error:H,description:i,title:P,actionText:void 0===o&&void 0!==i?this.getDefaultActionMessage():o,delay:this.defaultErrorDelayMs,icon:"error_outline",action:f,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(P,H,i,o){this.addNotification.emit({type:"success",description:H,title:P,actionText:void 0===i&&void 0!==H?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:o,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(V.sK))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ye=(()=>{class be{constructor(P,H,i,o,f,l){this.authService=P,this.apiRequestConfiguration=H,this.notificator=i,this.store=o,this.dialog=f,this.initAuthService=l}intercept(P,H){const i=this.store.get("api_url");if(P.url.includes("i18n")&&(P=P.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&this.isCallToPerunApi(P.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=(0,T.kZ)();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(W,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,v.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 o=this.apiRequestConfiguration.shouldHandleError(),f="POST"===P.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(P.url);return H.handle(P).pipe((0,L.b)(l=>{l instanceof de.Zn&&f&&this.initAuthService.loadPrincipal()},l=>{const a=this.formatErrors(l,P);return void 0===a?(0,Te._)(l):o?void this.notificator.showRPCError(a):(0,Te._)(a)}))}isCallToPerunApi(P){return P.startsWith(this.store.get("api_url"))}formatErrors(P,H){let i;console.error(P);const o=P.error;if(o.errorId&&(i=o),void 0!==i)return i.urlWithParams=H.urlWithParams,i.call=H.url,i.payload=H.body,i}isNotConsolidatorOrLinker(){const P=this.store.getProperty("application");return!("Linker"===P||"Consolidator"===P)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(_),A.LFG(q),A.LFG(ue),A.LFG(E),A.LFG(S.uw),A.LFG(Q))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})(),Me=(()=>{class be{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(P){this.newNotificationsCount++,this.notificationData.push(P)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var we=h(70262);let Ge=(()=>{class be{constructor(P,H,i,o){this.http=P,this.notificator=H,this.authService=i,this.storeService=o}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let P=new de.WM;return P=P.set("Authorization",this.authService.getAuthorizationHeaderValue()),P}get(P,H=!0){const i=`${this.getApiUrl()}${P}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,we.K)(o=>this.formatErrors(o,i,null,H)))}put(P,H={},i=!0){const o=`${this.getApiUrl()}${P}`,f=JSON.stringify(H);return this.http.put(o,f,{headers:this.getHeaders()}).pipe((0,we.K)(l=>this.formatErrors(l,o,f,i)))}post(P,H={},i=!0){const o=`${this.getApiUrl()}${P}`,f=JSON.stringify(H);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(o,f,{headers:l}).pipe((0,we.K)(a=>this.formatErrors(a,o,f,i)))}delete(P,H=!0){const i=`${this.getApiUrl()}${P}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,we.K)(o=>this.formatErrors(o,i,null,H)))}formatErrors(P,H,i,o){const f=P.error;return f.call=H,f.payload=i,o&&this.notificator.showRPCError(P.error),(0,Te._)(f)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(de.eN),A.LFG(ue),A.LFG(_),A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ce=(()=>{class be{constructor(P){this.router=P,this.lastState="forward",this.history=new Set,P.events.subscribe(H=>{H instanceof C.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(P,H){if(null===P)return;let i="";P.forEach(o=>i+="/"+o),i.length>0&&(i=i.substring(1)),void 0===H&&(H={}),H.queryParams={redirectTo:i},this.router.navigate(["redirect"],H)}getLastState(){return this.lastState}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Ze=(()=>{class be{isAllSelectedWithDisabledCheckbox(P,H,i,o,f,l,a,n){return this.numSelected=P,this.numCanBeSelected=0,this.pageStart=f*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===H?l.data.length:l.filteredData.length,o||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),l.sortData(l.filteredData,a).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{n?t(r)&&this.pageStart<=this.pageIterator&&this.pageIterator{class be{constructor(P,H,i,o){this.membersService=P,this.usersService=H,this.auditMessagesManagerService=i,this.registrarService=o}getMembers(P,H,i,o,f,l,a,n,t,r){return this.membersService.getMembersPage({vo:P,attrNames:H,query:{pageSize:f,offset:o*f,order:i,sortColumn:l,statuses:a,searchString:n,groupId:t,groupStatuses:r}})}getUsers(P,H,i,o,f,l,a,n,t,r,s,d){return this.usersService.getUsersPage({attrNames:P,query:{offset:o*i,pageSize:o,order:H,sortColumn:f,searchString:l,withoutVo:a,facilityId:n,voId:t,resourceId:r,serviceId:s,onlyAllowed:d}})}getAuditMessages(P,H,i){return this.auditMessagesManagerService.getMessagesPage({query:{offset:i*H,pageSize:i,order:P}})}getApplications(P,H,i,o,f,l,a,n,t,r,s,d,p){return this.registrarService.getApplicationsPage({vo:s,query:{pageSize:P,offset:H*P,order:i,sortColumn:o,searchString:l,includeGroupApplications:f,getDetails:p,states:a,dateFrom:n,dateTo:t,userId:r,groupId:d}})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(e.uq),A.LFG(e.Fv),A.LFG(e.jw),A.LFG(e.tk))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var xe=h(61135),j=h(39646),R=h(69751),G=h(4128);class se{constructor(Ue,P){this.dynamicPaginatingService=Ue,this.authzService=P,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new xe.X([]),this.loadingSubject=new xe.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Ue,P,H,i,o,f,l,a,n,t){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const r=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Ue,P,H,i,o,f,l,a,n,t).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(s=>{if(this.latestQueryTime<=r){const d=s.data;null!==d&&0!==d.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Ue},d[0]])),this.allObjectCount=s.totalCount,this.dataSubject.next(d)}})}getAllMembers(Ue,P,H,i,o,f,l,a,n){return new R.y(t=>{const r=[];for(let s=0;s{const d=[].concat(...s.map(p=>p.data));t.next(d),t.complete()},error:s=>t.error(s)})})}loadUsers(Ue,P,H,i,o,f,l,a,n,t,r,s){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const d=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Ue,i,H,P,o,f,l,a,n,t,r,s).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(p=>{if(this.latestQueryTime<=d){const M=p.data;this.allObjectCount=p.totalCount,this.dataSubject.next(M)}})}getAllUsers(Ue,P,H,i,o,f,l,a,n,t,r){return new R.y(s=>{const d=[];for(let p=0;p{const M=[].concat(...p.map(_e=>_e.data));s.next(M),s.complete()},error:p=>s.error(p)})})}loadAuditMessages(Ue,P,H){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const i=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(H,P,Ue).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(o=>{if(this.latestQueryTime<=i){const f=o.data;this.allObjectCount=o.totalCount,this.dataSubject.next(f)}})}getAllAuditMessages(Ue,P){return new R.y(H=>{const i=[];for(let o=0;o{const f=[].concat(...o.map(l=>l.data));H.next(f),H.complete()},error:o=>H.error(o)})})}loadApplications(Ue,P,H,i,o,f,l,a,n,t,r,s,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const p=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Ue,P,H,i,f,o,l,a,n,t,s,r,d??!1).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(M=>{if(this.latestQueryTime<=p){const _e=M.data;if(null!==_e&&0!==_e.length){const bt=_e;this.routeAuth=bt[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[bt[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[bt[0].vo])}this.allObjectCount=M.totalCount,this.dataSubject.next(_e)}})}getAllApplications(Ue,P,H,i,o,f,l,a,n,t,r,s){return new R.y(d=>{const p=[];for(let M=0;M{const _e=[].concat(...M.map(bt=>bt.data));d.next(_e),d.complete()},error:M=>d.error(M)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let $=(()=>{class be{constructor(P,H){this.route=P,this.store=H}getPreferredLanguage(P){const H=this.store.get("supported_languages"),i=navigator.languages.map(l=>l.split("-")[0]),o=location.search.substring(1).split("&");let f=null;for(const l of o){const a=l.split("=");"lang"===a[0]&&(f=a[1])}return f&&H.includes(f)?f:P&&H.includes(P)?P:i&&H.includes(i[0])?i[0]:"en"}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(C.gz),A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var Ee=h(15861);let Oe=(()=>{class be{generatePdf(P){var H=this;return(0,Ee.Z)(function*(){yield H.loadPdfMake(),H.pdfMake.createPdf(P).open()})()}loadPdfMake(){var P=this;return(0,Ee.Z)(function*(){if(!P.pdfMake){const H=yield h.e(641).then(h.t.bind(h,54641,23)),i=yield h.e(493).then(h.t.bind(h,58493,19));P.pdfMake=H.default,P.pdfMake.vfs=i.default.pdfMake.vfs}})()}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ct=(()=>{class be{constructor(P){this.pdfService=P}static generateTableForUser(P){const H=P.name.replace(";"," ").split(";")[0];return"OK"!==P.status?this.generateErrorRowForUser(H,P.status):be.generateRowForUser(H,P.login,P.password)}static generateErrorRowForUser(P,H){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:H,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(P,H,i){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[be.generateNameCell(P),{},be.getPasswordLabelCell(),be.generatePasswordCell(i)],[be.getLoginLabelCell(),be.generateLoginCell(H),{},{}]]}}}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:P??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(P){return{text:P??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(P){var H=this;return(0,Ee.Z)(function*(){const i=[];for(const f of P)i.push(be.generateTableForUser(f));return H.pdfService.generatePdf({content:i})})()}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(Oe))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Xe=(()=>{class be{constructor(P){this.storeService=P}static getBrandContainingDomain(P,H){for(const i of P)if(i.newApps.admin===H||i.newApps.profile===H||i.newApps.pwdReset===H||i.newApps.consolidator===H||i.newApps.linker===H)return i;return P[0]}getUrlForOtherApplication(P,H){const o=window.location.href.split("/"),f=o[0]+"//"+o[2],l=be.getBrandContainingDomain(this.storeService.getAppsConfig().brands,f);let a;if(l.newApps[P])a=l.newApps[P],"pwdReset"===P&&(a+=`?login-namespace=${H}`);else switch(a=l.oldGuiDomain+"/fed",P){case"admin":a+="/gui/";break;case"profile":a+="/profile/";break;case"pwdReset":a+=`/pwd-reset/?login-namespace=${H}`}return a}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var _t=h(98739);let Je=(()=>{class be extends _t.ye{constructor(){super(...arguments),this.getRangeLabel=function(P,H,i){let o;return o=i<1e3?String(i):i<1e4?"1 000":i<1e5?"10 000":"100 000",`${P*H+1} \u2013 ${(P+1)*H} of ${o} +`}}}return be.\u0275fac=function(){let Ue;return function(H){return(Ue||(Ue=A.n5z(be)))(H||be)}}(),be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})(),gt=(()=>{class be{setEntity(P){this.entity=P}getEntity(){return this.entity}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var Y=h(64080);let Ce=(()=>{class be{constructor(P,H,i,o,f){this.authResolver=P,this.attributesManager=H,this.notificator=i,this.apiRequest=o,this.router=f,this.routePolicies=new Map([["organizations",l=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[l])],["organizations-members",l=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[l])],["organizations-groups",l=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[l])],["organizations-resources",l=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[l])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[l])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[l])],["organizations-resources-preview",l=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[l])],["organizations-resources-tags",l=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[l])],["organizations-resources-states",l=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[l])],["organizations-applications",l=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[l])],["organizations-sponsoredMembers",l=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[l])],["organizations-serviceAccounts",l=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[l])],["organizations-attributes",l=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[l])],["organizations-statistics",l=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[l])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[l])],["organizations-settings",l=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[l])||this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-expiration",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["organizations-settings-applicationForm",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-notifications",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-extsources",l=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[l])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",l=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[l])],["members-groups",l=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[l])],["members-applications",l=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[l])],["members-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[l])],["members-attributes",l=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[l])],["groups",l=>this.authResolver.isAuthorized("getGroupById_int_policy",[l])],["groups-members",l=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[l])],["groups-subgroups",l=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[l])],["groups-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[l])],["groups-applications",l=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[l])],["groups-attributes",l=>this.authResolver.isAuthorized("getGroupById_int_policy",[l])],["groups-statistics",l=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[l])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[l])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[l])],["groups-roles",l=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[l])],["groups-settings",l=>this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[l])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[l])],["groups-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["groups-settings-applicationForm",l=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])],["groups-settings-notifications",l=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])],["groups-settings-relations",l=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[l])],["groups-settings-extsources",l=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[l])],["groups-settings-expiration",l=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(l.id,Y.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",l=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[l])],["resources-groups",l=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[l])],["resources-services",l=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[l])],["resources-members",l=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[l])],["resources-tags",l=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[l])],["resources-attributes",l=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[l])],["resources-settings",l=>this.authResolver.isManagerPagePrivileged(l)],["resources-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["facilities",l=>this.authResolver.isAuthorized("getFacilityById_int_policy",[l])],["facilities-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[l])],["facilities-allowed-users",l=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[l])],["facilities-allowed-groups",l=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[l])],["facilities-services-status",l=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[l])],["services-status",l=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[l])],["facilities-services-destinations",l=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[l])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",l=>this.authResolver.isAuthorized("getFacilityById_int_policy",[l])],["facilities-settings",l=>this.authResolver.isAuthorized("getOwners_Facility_policy",[l])||this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[l])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[l])],["facilities-settings-owners",l=>this.authResolver.isAuthorized("getOwners_Facility_policy",[l])],["facilities-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["facilities-settings-security-teams",l=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[l])],["facilities-settings-blacklist",l=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[l])]])}canNavigate(P,H){if(P.startsWith("admin")||P.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===P&&-1===H.id)return this.authResolver.canManageFacilities();const i=this.routePolicies.get(P);return!i||i(H)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(w),A.LFG(e.H8),A.LFG(ue),A.LFG(q),A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var ae=h(54004),re=h(63900),Se=h(4707);let Fe=(()=>{class be{constructor(P){this.authService=P,this.roleWithObjects$=new Se.t(1),this.authService.getAllRolesManagementRules().pipe((0,ae.U)(H=>H.filter(i=>i.assignableToAttributes)),(0,re.w)(H=>{const i=new Map;return H.map(o=>i.set(o.roleName,["None",...Object.keys(o.assignedObjects)])),(0,j.of)(new Map([...i.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return this.roleWithObjects$.pipe((0,re.w)(P=>(0,j.of)(Array.from(P.keys()))))}getObjects(P){return this.roleWithObjects$.pipe((0,re.w)(H=>(0,j.of)(H.get(P))))}filterNullInPolicy(){return function(P){return P.pipe((0,ae.U)(H=>(H.forEach(i=>i.policies=i.policies.filter(o=>null!==o.role&&null!==o.object)),H)))}}addAttributeId(){return function(P){return P.pipe((0,ae.U)(([H,i])=>(i.forEach(o=>o.attributeId=H),i)))}}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(e.Ct))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})()},64080:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>e});let e=(()=>{class c{}return c.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",c.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",c.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",c.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",c.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",c.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",c.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",c.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",c.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",c.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",c.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",c.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",c.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",c.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",c.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",c.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",c.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",c.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",c.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",c.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",c.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",c.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",c.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",c.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",c.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",c.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",c.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",c})()},9244:(Ye,pe,h)=>{"use strict";h.d(pe,{dN:()=>_,Je:()=>E,f7:()=>S.f7,l9:()=>U.l,sF:()=>S.sF,XI:()=>S.XI,Xd:()=>S.Xd,aC:()=>S.aC,fx:()=>S.fx,dv:()=>S.dv,i5:()=>S.i5,Sd:()=>S.Sd,pR:()=>S.pR,ys:()=>S.ys,O6:()=>S.O6,B2:()=>S.B2,mH:()=>S.mH,MX:()=>S.MX,oU:()=>S.oU,IL:()=>S.IL,Jc:()=>S.Jc,Xn:()=>S.Xn,kZ:()=>S.kZ,v$:()=>S.v$,x2:()=>S.x2,vL:()=>S.vL,j4:()=>S.j4,jh:()=>S.jh,bx:()=>S.bx,im:()=>S.im,zr:()=>S.zr,Hm:()=>S.Hm,Cz:()=>S.Cz,sG:()=>S.sG,g$:()=>S.g$,bD:()=>S.bD,lt:()=>S.lt,Oe:()=>S.Oe,hu:()=>S.hu,Gw:()=>S.Gw,O5:()=>S.O5,te:()=>S.te,kN:()=>S.kN,$0:()=>S.$0,OV:()=>S.OV});var e=h(98739),c=h(28255),A=h(97392),w=h(4859),g=h(89383),C=h(36895),T=h(94650);let E=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=T.oAB({type:V}),V.\u0275inj=T.cJS({imports:[e.TU,c.Tx,A.Ps,w.ot,g.aw,C.ez]}),V})();var S=h(17218),U=h(18750);class _{static passwordMatchValidator(z){const Q=z.get("passwordCtrl").value,te=z.get("passwordAgainCtrl").value;return z.get("passwordAgainCtrl").setErrors(Q!==te?{noPasswordMatch:!0}:null),null}static patternValidator(z){return Q=>{if(!Q.value)return null;let te=0;for(const oe of z)te+=oe.test(Q.value)?1:0;return te>=3?null:{isWeak:!0}}}}},17218:(Ye,pe,h)=>{"use strict";h.d(pe,{$0:()=>_,B2:()=>E,Cz:()=>oe,Gw:()=>ct,Hm:()=>Ee,IL:()=>ce,Jc:()=>Ze,MX:()=>we,O5:()=>i,O6:()=>re,OV:()=>Me,Oe:()=>Oe,Sd:()=>Y,XI:()=>q,Xd:()=>Fe,Xn:()=>ae,aC:()=>Se,bD:()=>Q,bx:()=>H,dv:()=>$,f7:()=>T,fx:()=>be,g$:()=>S,hu:()=>te,i5:()=>G,im:()=>o,j4:()=>B,jh:()=>P,kN:()=>U,kZ:()=>se,lt:()=>V,mH:()=>Ue,oU:()=>Ge,pR:()=>gt,sF:()=>W,sG:()=>_t,te:()=>le,v$:()=>he,vL:()=>L,x2:()=>Xe,ys:()=>de,zr:()=>f});var e=h(15861),c=h(65412),A=h(36895),w=h(94327),C=h(64080);const T=[5,10,25,100],E=/^(([^<>+()[\]\\.,;:\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 S(l){let a="";return l?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a&&0===a.length&&null!==l.memberAttributes&&l.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(a=n.value)}),a}function U(l){let a="";return l&&l.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a}function _(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function V(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function Q(l){let a="";return null!==l.titleBefore&&(a+=l.titleBefore+" "),null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),null!==l.titleAfter&&(a+=l.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function te(l){let a="";return null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function oe(l){let a="";return l.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function le(l){let a="";for(const n of l)"technical"===n.type&&(a+=n.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function de(l,a){return Te.apply(this,arguments)}function Te(){return(Te=(0,e.Z)(function*(l,a){yield v(l),a()})).apply(this,arguments)}function v(l){return new Promise(a=>setTimeout(a,l))}function L(l){return JSON.parse(localStorage.getItem(l))||[]}function B(l){return JSON.parse(localStorage.getItem(l))||[]}function W(l,a){if(null===localStorage.getItem(l)){const n=[];n.unshift(a.id),localStorage.setItem(l,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(l)),t=function ye(l,a){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(a.id),n.length>5&&n.pop(),localStorage.setItem(l,JSON.stringify(n))}}function q(l,a){if(null===localStorage.getItem("recent")){let n;n="Group"===l.beanName?[{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}]:[{id:l.id,name:l.name,type:l.beanName,voId:l.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===l.beanName?{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}:{id:l.id,name:l.name,type:l.beanName,voId:l.voId};const r=function ue(l,a){for(let n=0;n0&&n.splice(r,1),0!==r&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function Me(l){let a="";return l&&l.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function we(l){return l.filter(a=>!a.namespace.includes("def:core"))}function Ge(l,a){const n=a.find(t=>t.id===l);return n?n.parentGroupId?Ge(n.parentGroupId,a).concat(n):[n]:[]}function ce(l,a){for(const n of l)if(n.namespace+":"+n.friendlyName===a)return n;return null}function Ze(l){return null!=l.attributes["urn:perun:member:attribute-def:def:mail"]?l.attributes["urn:perun:member:attribute-def:def:mail"]:null!=l.attributes["urn:perun:user:attribute-def:def:preferredMail"]?l.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function he(l){return l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function xe(l){if(l.includes("/CN=")){const a=l.split("/");for(const n of a)if(n.startsWith("CN="))return j(n.substring(3))}return l}(l.userExtSource.extSource.name):l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function R(l){switch(l){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 l}}(l.userExtSource.extSource.name):l.userExtSource.extSource.name}function j(l){return decodeURIComponent(l.replace(/\\x/g,"%"))}function G(l=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return l.forEach(n=>{a.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},a.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),a}function se(){const l=new c.vA;return l.disableClose=!0,l.autoFocus=!1,l}function $(l){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of l)a.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return a}function Ee(l){return"virt"===l.namespace.split(":")[4]}function Oe(l,a){return"valid"!==l.toLowerCase()||a&&"valid"!==l.toLowerCase()?l:"ACTIVE"}function ct(l){let a="";return l?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(a=n.value)}),0===a.length&&l?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function Xe(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function _t(l){return l&&"never"!==l.toLowerCase()?(0,A.p6)(l,"d.M.yyyy","en"):l}const Je=new Intl.Collator("cs",{numeric:!0});function gt(l,a,n){const t=a.active,r=a.direction;return t&&""!==r?l.sort((s,d)=>{const p=n(s,t),M=n(d,t);return Je.compare(p,M)*("asc"===r?1:-1)}):l}function Y(l,a,n,t,r){a=a.toLowerCase();let s="";return n.forEach(d=>{s+=";"+t(l,d)}),r&&(s+=";"+t(l,"uuid")),s.toLowerCase().includes(a)}function ae(l,a,n){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(s=>!r.includes(s)),l.forEach(s=>{const d={};a.forEach(p=>{d[p]=(n(s,p)??"").split('"').join("''").trim()}),t.push(d)}),t}function re(l,a="csv",n="export"){if("csv"===a){const t=(M,_e)=>null===_e?"":_e,r=Object.keys(l[0]),s=l.map(M=>r.map(_e=>JSON.stringify(M[_e],t)).join(","));s.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=s.join("\r\n"),p=new Blob([d],{type:"text/csv"});(0,w.saveAs)(p,`${n}.${a}`)}}function Se(l,a){return l.name.toLowerCase()>a.name.toLowerCase()?1:l.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Fe(l,a){return l.displayName.toLowerCase()>a.displayName.toLowerCase()?1:l.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function be(l,a){let n,t;return l.user?(n=l.user.lastName?l.user.lastName:l.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(n=l.lastName?l.lastName:l.firstName??"",t=a.lastName?a.lastName:a.firstName??""),n>t?1:n===t?0:-1}function Ue(l,a,n=[]){l.enable(),l.clearValidators(),l.clearAsyncValidators(),l.setValidators(a),l.setAsyncValidators(n),l.updateValueAndValidity()}function P(l,a){return!!l&&l.some(n=>n.namespace+":"+n.friendlyName===a&&null!==n.value&&"true"===String(n.value))}function H(l){return P(l.attributes,C.r.GROUP_SYNC_ENABLED)||P(l.attributes,C.r.GROUP_STRUCTURE_SYNC_ENABLED)}function i(l,a){const n=a.split("&");for(const t of n){const[r,s]=t.split("=");if(r.includes(l))return s}return""}function o(l){if("INDIRECT"===l.membershipType)return!0;const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!a&&!a.value}function f(l){if("INDIRECT"===l.membershipType)return"INDIRECT";const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>te});var e=h(94650),c=h(98739),A=h(17218),w=h(10036),g=h(36895),C=h(28255),T=h(97392),E=h(4859),S=h(89383);function U(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(le);const Te=e.oxw();return e.KtG(Te.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let _=(()=>{class oe{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return oe.\u0275fac=function(le){return new(le||oe)},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(le,de){if(1&le&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return de.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,U,3,3,"button",8),e.qZA()()),2&le){const Te=e.MAs(5),v=e.MAs(10),L=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",Te),e.xp6(5),e.Q6J("matMenuTriggerFor",v),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",L),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",de.allowExportAll)}},dependencies:[C.VK,C.OP,C.p6,T.Hw,E.lW,g.O5,S.X$]}),oe})();function V(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportDisplayedData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(Te))})("exportAllData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportAllData.emit(Te))}),e.qZA()}if(2&oe){const le=e.oxw();e.Q6J("allowExportAll",le.allowExportAll)}}function z(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportDisplayedData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(Te))})("exportAllData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportAllData.emit(Te))}),e.qZA()}if(2&oe){const le=e.oxw();e.Q6J("allowExportAll",le.allowExportAll)}}const Q=["*"];let te=(()=>{class oe{constructor(le){this.tableConfigService=le,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(le){this.paginator=le}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(le){this.pageSize=le.pageSize,this.tableConfigService.setTablePageSize(this.tableId,le.pageSize)}pageChangedBottom(le){this.paginator.pageSize=le.pageSize,this.paginator.pageIndex=le.pageIndex,this.paginator.page.emit(le),this.pageSize=le.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,le.pageSize)}}return oe.\u0275fac=function(le){return new(le||oe)(e.Y36(w.dB))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(le,de){if(1&le&&e.Gf(c.NW,7),2&le){let Te;e.iGM(Te=e.CRH())&&(de.matPaginator=Te.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:Q,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(le,de){1&le&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),e.NdJ("page",function(v){return de.pageChangedTop(v)}),e.qZA(),e.YNc(3,V,1,1,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1)(7,"mat-paginator",5),e.NdJ("page",function(v){return de.pageChangedBottom(v)}),e.qZA(),e.YNc(8,z,1,1,"perun-web-apps-table-options",3),e.qZA()()),2&le&&(e.xp6(2),e.Q6J("length",de.dataLength)("pageSizeOptions",de.pageSizeOptions)("pageSize",de.pageSize),e.xp6(1),e.Q6J("ngIf",!de.hideExport),e.xp6(4),e.Q6J("length",de.paginator.length)("pageIndex",de.paginator.pageIndex)("pageSizeOptions",de.paginator.pageSizeOptions)("pageSize",de.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!de.hideExport))},dependencies:[c.NW,g.O5,_]}),oe})()},98380:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>S});var e=h(94650),c=h(97392),A=h(36895);function w(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function C(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function T(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const E=["*"];let S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:E,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(V,z){1&V&&(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,C,2,0,"mat-icon",1),e.YNc(4,T,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&V&&(e.ekj("warn-alert","warn"===z.alert_type)("error-alert","error"===z.alert_type)("success-alert","success"===z.alert_type)("info-alert","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===z.alert_type),e.xp6(1),e.Q6J("ngIf","error"===z.alert_type),e.xp6(1),e.Q6J("ngIf","success"===z.alert_type))},dependencies:[c.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),U})()},63189:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(97392),c=h(36895),A=h(94650);let w=(()=>{class g{}return g.\u0275fac=function(T){return new(T||g)},g.\u0275mod=A.oAB({type:g}),g.\u0275inj=A.cJS({imports:[e.Ps,c.ez]}),g})()},57882:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>f});var e=h(36895),c=h(4859),A=h(73546),w=h(56709),g=h(65412),C=h(44850),T=h(37084),E=h(59549),S=h(94650),U=h(3238);let Ze=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.uc,U.BQ,U.uc,U.BQ]}),l})();var xe=h(97392),j=h(284),R=h(51572),G=h(86257),se=h(30671),$=h(67376),Ee=h(24006),Oe=h(99602),ct=h(23267),Xe=h(96338),_t=h(28255);let Se=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.BQ,U.BQ]}),l})();var Fe=h(96308),be=h(98739),Ue=h(10266),P=h(84385),H=h(3848),i=h(90455),o=h(77331);let f=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[e.ez,A.QW,C.t,T.To,c.ot,Ze,w.p9,xe.Ps,se.p0,g.Is,R.Cq,E.lN,j.c,$.Cl,Ee.u5,Ee.UX,G.T5,Oe.FA,U.XK,ct.SJ,Xe.ie,_t.Tx,Se,Fe.JX,be.TU,Ue.AV,P.LD,U.si,se.p0,i.rP,o.Hi,A.QW,C.t,T.To,c.ot,Ze,w.p9,xe.Ps,se.p0,g.Is,R.Cq,E.lN,j.c,$.Cl,Ee.u5,Ee.UX,G.T5,Oe.FA,U.XK,ct.SJ,Xe.ie,_t.Tx,Se,Fe.JX,be.TU,Ue.AV,P.LD,U.si,H.Nh,i.rP,o.Hi]}),l})()},71345:Ye=>{var w=.1,g="function"==typeof Float32Array;function C(Q,te){return 1-3*te+3*Q}function T(Q,te){return 3*te-6*Q}function E(Q){return 3*Q}function S(Q,te,oe){return((C(te,oe)*Q+T(te,oe))*Q+E(te))*Q}function U(Q,te,oe){return 3*C(te,oe)*Q*Q+2*T(te,oe)*Q+E(te)}function z(Q){return Q}Ye.exports=function(te,oe,ee,le){if(!(0<=te&&te<=1&&0<=ee&&ee<=1))throw new Error("bezier x values must be in [0, 1] range");if(te===oe&&ee===le)return z;for(var de=g?new Float32Array(11):new Array(11),Te=0;Te<11;++Te)de[Te]=S(Te*w,te,ee);return function(B){return 0===B?0:1===B?1:S(function v(L){for(var B=0,W=1;10!==W&&de[W]<=L;++W)B+=w;--W;var ye=B+(L-de[W])/(de[W+1]-de[W])*w,Me=U(ye,te,ee);return Me>=.001?function V(Q,te,oe,ee){for(var le=0;le<4;++le){var de=U(te,oe,ee);if(0===de)return te;te-=(S(te,oe,ee)-Q)/de}return te}(L,ye,te,ee):0===Me?ye:function _(Q,te,oe,ee,le){var de,Te,v=0;do{(de=S(Te=te+(oe-te)/2,ee,le)-Q)>0?oe=Te:te=Te}while(Math.abs(de)>1e-7&&++v<10);return Te}(L,B,B+w,te,ee)}(B),oe,le)}}},1302:function(Ye,pe,h){var e;!function(c,A){var w={};!function(c){"use strict";c.__esModule=!0,c.digestLength=32,c.blockSize=64;var A=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(z,Q,te,oe,ee){for(var le,de,Te,v,L,B,W,q,ue,ye,Me,we,Ge;ee>=64;){for(le=Q[0],de=Q[1],Te=Q[2],v=Q[3],L=Q[4],B=Q[5],W=Q[6],q=Q[7],ye=0;ye<16;ye++)z[ye]=(255&te[Me=oe+4*ye])<<24|(255&te[Me+1])<<16|(255&te[Me+2])<<8|255&te[Me+3];for(ye=16;ye<64;ye++)z[ye]=((we=((ue=z[ye-2])>>>17|ue<<15)^(ue>>>19|ue<<13)^ue>>>10)+z[ye-7]|0)+((Ge=((ue=z[ye-15])>>>7|ue<<25)^(ue>>>18|ue<<14)^ue>>>3)+z[ye-16]|0);for(ye=0;ye<64;ye++)we=(((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&B^~L&W)|0)+(q+(A[ye]+z[ye]|0)|0)|0,Ge=((le>>>2|le<<30)^(le>>>13|le<<19)^(le>>>22|le<<10))+(le&de^le&Te^de&Te)|0,q=W,W=B,B=L,L=v+we|0,v=Te,Te=de,de=le,le=we+Ge|0;Q[0]+=le,Q[1]+=de,Q[2]+=Te,Q[3]+=v,Q[4]+=L,Q[5]+=B,Q[6]+=W,Q[7]+=q,oe+=64,ee-=64}return oe}var g=function(){function z(){this.digestLength=c.digestLength,this.blockSize=c.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 z.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},z.prototype.clean=function(){for(var Q=0;Q0){for(;this.bufferLength<64&&te>0;)this.buffer[this.bufferLength++]=Q[oe++],te--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(te>=64&&(oe=w(this.temp,this.state,Q,oe,te),te%=64);te>0;)this.buffer[this.bufferLength++]=Q[oe++],te--;return this},z.prototype.finish=function(Q){if(!this.finished){var te=this.bytesHashed,oe=this.bufferLength,ee=te/536870912|0,le=te<<3,de=te%64<56?64:128;this.buffer[oe]=128;for(var Te=oe+1;Te>>24&255,this.buffer[de-7]=ee>>>16&255,this.buffer[de-6]=ee>>>8&255,this.buffer[de-5]=ee>>>0&255,this.buffer[de-4]=le>>>24&255,this.buffer[de-3]=le>>>16&255,this.buffer[de-2]=le>>>8&255,this.buffer[de-1]=le>>>0&255,w(this.temp,this.state,this.buffer,0,de),this.finished=!0}for(Te=0;Te<8;Te++)Q[4*Te+0]=this.state[Te]>>>24&255,Q[4*Te+1]=this.state[Te]>>>16&255,Q[4*Te+2]=this.state[Te]>>>8&255,Q[4*Te+3]=this.state[Te]>>>0&255;return this},z.prototype.digest=function(){var Q=new Uint8Array(this.digestLength);return this.finish(Q),Q},z.prototype._saveState=function(Q){for(var te=0;tethis.blockSize)(new g).update(Q).finish(te).clean();else for(var oe=0;oe1&&Q.update(z),te&&Q.update(te),Q.update(oe),Q.finish(z),oe[0]++}c.HMAC=C,c.hash=T,c.default=T,c.hmac=E;var U=new Uint8Array(c.digestLength);c.hkdf=function _(z,Q,te,oe){void 0===Q&&(Q=U),void 0===oe&&(oe=32);for(var ee=new Uint8Array([1]),le=E(Q,z),de=new C(le),Te=new Uint8Array(de.digestLength),v=Te.length,L=new Uint8Array(oe),B=0;B>>24&255,de[1]=W>>>16&255,de[2]=W>>>8&255,de[3]=W>>>0&255,ee.reset(),ee.update(Q),ee.update(de),ee.finish(v);for(var q=0;q=_.status}function C(U){try{U.dispatchEvent(new MouseEvent("click"))}catch{var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),U.dispatchEvent(_)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,E=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(U,_,V){var z=T.URL||T.webkitURL,Q=document.createElement("a");Q.download=_=_||U.name||"download",Q.rel="noopener","string"==typeof U?(Q.href=U,Q.origin===location.origin?C(Q):g(Q.href)?w(U,_,V):C(Q,Q.target="_blank")):(Q.href=z.createObjectURL(U),setTimeout(function(){z.revokeObjectURL(Q.href)},4e4),setTimeout(function(){C(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(U,_,V){if(_=_||U.name||"download","string"!=typeof U)navigator.msSaveOrOpenBlob(function A(U,_){return typeof _>"u"?_={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(U.type)?new Blob(["\ufeff",U],{type:U.type}):U}(U,V),_);else if(g(U))w(U,_,V);else{var z=document.createElement("a");z.href=U,z.target="_blank",setTimeout(function(){C(z)})}}:function(U,_,V,z){if((z=z||open("","_blank"))&&(z.document.title=z.document.body.innerText="downloading..."),"string"==typeof U)return w(U,_,V);var Q="application/octet-stream"===U.type,te=/constructor/i.test(T.HTMLElement)||T.safari,oe=/CriOS\/[\d]+/.test(navigator.userAgent);if((oe||Q&&te||E)&&typeof FileReader<"u"){var ee=new FileReader;ee.onloadend=function(){var Te=ee.result;Te=oe?Te:Te.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=Te:location=Te,z=null},ee.readAsDataURL(U)}else{var le=T.URL||T.webkitURL,de=le.createObjectURL(U);z?z.location=de:location.href=de,z=null,setTimeout(function(){le.revokeObjectURL(de)},4e4)}});T.saveAs=S.saveAs=S,Ye.exports=S}.apply(pe,[]))&&(Ye.exports=c)},61135:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>c});var e=h(77579);class c extends e.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const g=super._subscribe(w);return!g.closed&&w.next(this._value),g}getValue(){const{hasError:w,thrownError:g,_value:C}=this;if(w)throw g;return this._throwIfClosed(),C}next(w){super.next(this._value=w)}}},69751:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>E});var e=h(70930),c=h(50727),A=h(48822),w=h(89635),g=h(42416),C=h(30576),T=h(72806);let E=(()=>{class V{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const te=new V;return te.source=this,te.operator=Q,te}subscribe(Q,te,oe){const ee=function _(V){return V&&V instanceof e.Lv||function U(V){return V&&(0,C.m)(V.next)&&(0,C.m)(V.error)&&(0,C.m)(V.complete)}(V)&&(0,c.Nn)(V)}(Q)?Q:new e.Hp(Q,te,oe);return(0,T.x)(()=>{const{operator:le,source:de}=this;ee.add(le?le.call(ee,de):de?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(Q){try{return this._subscribe(Q)}catch(te){Q.error(te)}}forEach(Q,te){return new(te=S(te))((oe,ee)=>{const le=new e.Hp({next:de=>{try{Q(de)}catch(Te){ee(Te),le.unsubscribe()}},error:ee,complete:oe});this.subscribe(le)})}_subscribe(Q){var te;return null===(te=this.source)||void 0===te?void 0:te.subscribe(Q)}[A.L](){return this}pipe(...Q){return(0,w.U)(Q)(this)}toPromise(Q){return new(Q=S(Q))((te,oe)=>{let ee;this.subscribe(le=>ee=le,le=>oe(le),()=>te(ee))})}}return V.create=z=>new V(z),V})();function S(V){var z;return null!==(z=V??g.v.Promise)&&void 0!==z?z:Promise}},4707:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>A});var e=h(77579),c=h(26063);class A extends e.x{constructor(g=1/0,C=1/0,T=c.l){super(),this._bufferSize=g,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,g),this._windowTime=Math.max(1,C)}next(g){const{isStopped:C,_buffer:T,_infiniteTimeWindow:E,_timestampProvider:S,_windowTime:U}=this;C||(T.push(g),!E&&T.push(S.now()+U)),this._trimBuffer(),super.next(g)}_subscribe(g){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(g),{_infiniteTimeWindow:T,_buffer:E}=this,S=E.slice();for(let U=0;U{"use strict";h.d(pe,{x:()=>T});var e=h(69751),c=h(50727);const w=(0,h(83888).d)(S=>function(){S(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var g=h(38737),C=h(72806);let T=(()=>{class S extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_){const V=new E(this,this);return V.operator=_,V}_throwIfClosed(){if(this.closed)throw new w}next(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(_)}})}error(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_;const{observers:V}=this;for(;V.length;)V.shift().error(_)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_}=this;for(;_.length;)_.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _;return(null===(_=this.observers)||void 0===_?void 0:_.length)>0}_trySubscribe(_){return this._throwIfClosed(),super._trySubscribe(_)}_subscribe(_){return this._throwIfClosed(),this._checkFinalizedStatuses(_),this._innerSubscribe(_)}_innerSubscribe(_){const{hasError:V,isStopped:z,observers:Q}=this;return V||z?c.Lc:(this.currentObservers=null,Q.push(_),new c.w0(()=>{this.currentObservers=null,(0,g.P)(Q,_)}))}_checkFinalizedStatuses(_){const{hasError:V,thrownError:z,isStopped:Q}=this;V?_.error(z):Q&&_.complete()}asObservable(){const _=new e.y;return _.source=this,_}}return S.create=(U,_)=>new E(U,_),S})();class E extends T{constructor(U,_){super(),this.destination=U,this.source=_}next(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.next)||void 0===V||V.call(_,U)}error(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.error)||void 0===V||V.call(_,U)}complete(){var U,_;null===(_=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===_||_.call(U)}_subscribe(U){var _,V;return null!==(V=null===(_=this.source)||void 0===_?void 0:_.subscribe(U))&&void 0!==V?V:c.Lc}}},70930:(Ye,pe,h)=>{"use strict";h.d(pe,{Hp:()=>oe,Lv:()=>V});var e=h(30576),c=h(50727),A=h(42416),w=h(87849),g=h(25032);const C=S("C",void 0,void 0);function S(v,L,B){return{kind:v,value:L,error:B}}var U=h(43410),_=h(72806);class V extends c.w0{constructor(L){super(),this.isStopped=!1,L?(this.destination=L,(0,c.Nn)(L)&&L.add(this)):this.destination=Te}static create(L,B,W){return new oe(L,B,W)}next(L){this.isStopped?de(function E(v){return S("N",v,void 0)}(L),this):this._next(L)}error(L){this.isStopped?de(function T(v){return S("E",void 0,v)}(L),this):(this.isStopped=!0,this._error(L))}complete(){this.isStopped?de(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(L){this.destination.next(L)}_error(L){try{this.destination.error(L)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const z=Function.prototype.bind;function Q(v,L){return z.call(v,L)}class te{constructor(L){this.partialObserver=L}next(L){const{partialObserver:B}=this;if(B.next)try{B.next(L)}catch(W){ee(W)}}error(L){const{partialObserver:B}=this;if(B.error)try{B.error(L)}catch(W){ee(W)}else ee(L)}complete(){const{partialObserver:L}=this;if(L.complete)try{L.complete()}catch(B){ee(B)}}}class oe extends V{constructor(L,B,W){let q;if(super(),(0,e.m)(L)||!L)q={next:L??void 0,error:B??void 0,complete:W??void 0};else{let ue;this&&A.v.useDeprecatedNextContext?(ue=Object.create(L),ue.unsubscribe=()=>this.unsubscribe(),q={next:L.next&&Q(L.next,ue),error:L.error&&Q(L.error,ue),complete:L.complete&&Q(L.complete,ue)}):q=L}this.destination=new te(q)}}function ee(v){A.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(v):(0,w.h)(v)}function de(v,L){const{onStoppedNotification:B}=A.v;B&&U.z.setTimeout(()=>B(v,L))}const Te={closed:!0,next:g.Z,error:function le(v){throw v},complete:g.Z}},50727:(Ye,pe,h)=>{"use strict";h.d(pe,{Lc:()=>C,w0:()=>g,Nn:()=>T});var e=h(30576);const A=(0,h(83888).d)(S=>function(_){S(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((V,z)=>`${z+1}) ${V.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_});var w=h(38737);class g{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:_}=this;if(_)if(this._parentage=null,Array.isArray(_))for(const Q of _)Q.remove(this);else _.remove(this);const{initialTeardown:V}=this;if((0,e.m)(V))try{V()}catch(Q){U=Q instanceof A?Q.errors:[Q]}const{_finalizers:z}=this;if(z){this._finalizers=null;for(const Q of z)try{E(Q)}catch(te){U=U??[],te instanceof A?U=[...U,...te.errors]:U.push(te)}}if(U)throw new A(U)}}add(U){var _;if(U&&U!==this)if(this.closed)E(U);else{if(U instanceof g){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(_=this._finalizers)&&void 0!==_?_:[]).push(U)}}_hasParent(U){const{_parentage:_}=this;return _===U||Array.isArray(_)&&_.includes(U)}_addParent(U){const{_parentage:_}=this;this._parentage=Array.isArray(_)?(_.push(U),_):_?[_,U]:U}_removeParent(U){const{_parentage:_}=this;_===U?this._parentage=null:Array.isArray(_)&&(0,w.P)(_,U)}remove(U){const{_finalizers:_}=this;_&&(0,w.P)(_,U),U instanceof g&&U._removeParent(this)}}g.EMPTY=(()=>{const S=new g;return S.closed=!0,S})();const C=g.EMPTY;function T(S){return S instanceof g||S&&"closed"in S&&(0,e.m)(S.remove)&&(0,e.m)(S.add)&&(0,e.m)(S.unsubscribe)}function E(S){(0,e.m)(S)?S():S.unsubscribe()}},42416:(Ye,pe,h)=>{"use strict";h.d(pe,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},39841:(Ye,pe,h)=>{"use strict";h.d(pe,{a:()=>U});var e=h(69751),c=h(54742),A=h(32076),w=h(44671),g=h(83268),C=h(63269),T=h(31810),E=h(25403),S=h(39672);function U(...z){const Q=(0,C.yG)(z),te=(0,C.jO)(z),{args:oe,keys:ee}=(0,c.D)(z);if(0===oe.length)return(0,A.D)([],Q);const le=new e.y(function _(z,Q,te=w.y){return oe=>{V(Q,()=>{const{length:ee}=z,le=new Array(ee);let de=ee,Te=ee;for(let v=0;v{const L=(0,A.D)(z[v],Q);let B=!1;L.subscribe((0,E.x)(oe,W=>{le[v]=W,B||(B=!0,Te--),Te||oe.next(te(le.slice()))},()=>{--de||oe.complete()}))},oe)},oe)}}(oe,Q,ee?de=>(0,T.n)(ee,de):w.y));return te?le.pipe((0,g.Z)(te)):le}function V(z,Q,te){z?(0,S.f)(te,z,Q):Q()}},97272:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>g});var e=h(8189),A=h(63269),w=h(32076);function g(...C){return function c(){return(0,e.J)(1)}()((0,w.D)(C,(0,A.yG)(C)))}},49770:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>A});var e=h(69751),c=h(38421);function A(w){return new e.y(g=>{(0,c.Xf)(w()).subscribe(g)})}},60515:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>c});const c=new(h(69751).y)(g=>g.complete())},4128:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>E});var e=h(69751),c=h(54742),A=h(38421),w=h(63269),g=h(25403),C=h(83268),T=h(31810);function E(...S){const U=(0,w.jO)(S),{args:_,keys:V}=(0,c.D)(S),z=new e.y(Q=>{const{length:te}=_;if(!te)return void Q.complete();const oe=new Array(te);let ee=te,le=te;for(let de=0;de{Te||(Te=!0,le--),oe[de]=v},()=>ee--,void 0,()=>{(!ee||!Te)&&(le||Q.next(V?(0,T.n)(V,oe):oe),Q.complete())}))}});return U?z.pipe((0,C.Z)(U)):z}},32076:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>W});var e=h(38421),c=h(39672),A=h(54482),w=h(25403);function g(q,ue=0){return(0,A.e)((ye,Me)=>{ye.subscribe((0,w.x)(Me,we=>(0,c.f)(Me,q,()=>Me.next(we),ue),()=>(0,c.f)(Me,q,()=>Me.complete(),ue),we=>(0,c.f)(Me,q,()=>Me.error(we),ue)))})}function C(q,ue=0){return(0,A.e)((ye,Me)=>{Me.add(q.schedule(()=>ye.subscribe(Me),ue))})}var S=h(69751),_=h(2202),V=h(30576);function Q(q,ue){if(!q)throw new Error("Iterable cannot be null");return new S.y(ye=>{(0,c.f)(ye,ue,()=>{const Me=q[Symbol.asyncIterator]();(0,c.f)(ye,ue,()=>{Me.next().then(we=>{we.done?ye.complete():ye.next(we.value)})},0,!0)})})}var te=h(93670),oe=h(28239),ee=h(81144),le=h(26495),de=h(12206),Te=h(44532),v=h(53260);function W(q,ue){return ue?function B(q,ue){if(null!=q){if((0,te.c)(q))return function T(q,ue){return(0,e.Xf)(q).pipe(C(ue),g(ue))}(q,ue);if((0,ee.z)(q))return function U(q,ue){return new S.y(ye=>{let Me=0;return ue.schedule(function(){Me===q.length?ye.complete():(ye.next(q[Me++]),ye.closed||this.schedule())})})}(q,ue);if((0,oe.t)(q))return function E(q,ue){return(0,e.Xf)(q).pipe(C(ue),g(ue))}(q,ue);if((0,de.D)(q))return Q(q,ue);if((0,le.T)(q))return function z(q,ue){return new S.y(ye=>{let Me;return(0,c.f)(ye,ue,()=>{Me=q[_.h](),(0,c.f)(ye,ue,()=>{let we,Ge;try{({value:we,done:Ge}=Me.next())}catch(ce){return void ye.error(ce)}Ge?ye.complete():ye.next(we)},0,!0)}),()=>(0,V.m)(Me?.return)&&Me.return()})}(q,ue);if((0,v.L)(q))return function L(q,ue){return Q((0,v.Q)(q),ue)}(q,ue)}throw(0,Te.z)(q)}(q,ue):(0,e.Xf)(q)}},54968:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>U});var e=h(38421),c=h(69751),A=h(86099),w=h(81144),g=h(30576),C=h(83268);const T=["addListener","removeListener"],E=["addEventListener","removeEventListener"],S=["on","off"];function U(te,oe,ee,le){if((0,g.m)(ee)&&(le=ee,ee=void 0),le)return U(te,oe,ee).pipe((0,C.Z)(le));const[de,Te]=function Q(te){return(0,g.m)(te.addEventListener)&&(0,g.m)(te.removeEventListener)}(te)?E.map(v=>L=>te[v](oe,L,ee)):function V(te){return(0,g.m)(te.addListener)&&(0,g.m)(te.removeListener)}(te)?T.map(_(te,oe)):function z(te){return(0,g.m)(te.on)&&(0,g.m)(te.off)}(te)?S.map(_(te,oe)):[];if(!de&&(0,w.z)(te))return(0,A.z)(v=>U(v,oe,ee))((0,e.Xf)(te));if(!de)throw new TypeError("Invalid event target");return new c.y(v=>{const L=(...B)=>v.next(1Te(L)})}function _(te,oe){return ee=>le=>te[ee](oe,le)}},38421:(Ye,pe,h)=>{"use strict";h.d(pe,{Xf:()=>z});var e=h(70655),c=h(81144),A=h(28239),w=h(69751),g=h(93670),C=h(12206),T=h(44532),E=h(26495),S=h(53260),U=h(30576),_=h(87849),V=h(48822);function z(v){if(v instanceof w.y)return v;if(null!=v){if((0,g.c)(v))return function Q(v){return new w.y(L=>{const B=v[V.L]();if((0,U.m)(B.subscribe))return B.subscribe(L);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,c.z)(v))return function te(v){return new w.y(L=>{for(let B=0;B{v.then(B=>{L.closed||(L.next(B),L.complete())},B=>L.error(B)).then(null,_.h)})}(v);if((0,C.D)(v))return le(v);if((0,E.T)(v))return function ee(v){return new w.y(L=>{for(const B of v)if(L.next(B),L.closed)return;L.complete()})}(v);if((0,S.L)(v))return function de(v){return le((0,S.Q)(v))}(v)}throw(0,T.z)(v)}function le(v){return new w.y(L=>{(function Te(v,L){var B,W,q,ue;return(0,e.mG)(this,void 0,void 0,function*(){try{for(B=(0,e.KL)(v);!(W=yield B.next()).done;)if(L.next(W.value),L.closed)return}catch(ye){q={error:ye}}finally{try{W&&!W.done&&(ue=B.return)&&(yield ue.call(B))}finally{if(q)throw q.error}}L.complete()})})(v,L).catch(B=>L.error(B))})}},17445:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>A});var e=h(34986),c=h(82805);function A(w=0,g=e.z){return w<0&&(w=0),(0,c.H)(w,w,g)}},56451:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>C});var e=h(8189),c=h(38421),A=h(60515),w=h(63269),g=h(32076);function C(...T){const E=(0,w.yG)(T),S=(0,w._6)(T,1/0),U=T;return U.length?1===U.length?(0,c.Xf)(U[0]):(0,e.J)(S)((0,g.D)(U,E)):A.E}},39646:(Ye,pe,h)=>{"use strict";h.d(pe,{of:()=>A});var e=h(63269),c=h(32076);function A(...w){const g=(0,e.yG)(w);return(0,c.D)(w,g)}},54355:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(69751),c=h(38421),A=h(75797),w=h(25403);function g(...T){return 1===(T=(0,A.k)(T)).length?(0,c.Xf)(T[0]):new e.y(function C(T){return E=>{let S=[];for(let U=0;S&&!E.closed&&U{if(S){for(let V=0;V{"use strict";h.d(pe,{_:()=>A});var e=h(69751),c=h(30576);function A(w,g){const C=(0,c.m)(w)?w:()=>w,T=E=>E.error(C());return new e.y(g?E=>g.schedule(T,0,E):T)}},82805:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>g});var e=h(69751),c=h(34986),A=h(93532),w=h(51165);function g(C=0,T,E=c.P){let S=-1;return null!=T&&((0,A.K)(T)?E=T:S=T),new e.y(U=>{let _=(0,w.q)(C)?+C-E.now():C;_<0&&(_=0);let V=0;return E.schedule(function(){U.closed||(U.next(V++),0<=S?this.schedule(void 0,S):U.complete())},_)})}},25403:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>c});var e=h(70930);function c(w,g,C,T,E){return new A(w,g,C,T,E)}class A extends e.Lv{constructor(g,C,T,E,S,U){super(g),this.onFinalize=S,this.shouldUnsubscribe=U,this._next=C?function(_){try{C(_)}catch(V){g.error(V)}}:super._next,this._error=E?function(_){try{E(_)}catch(V){g.error(V)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(_){g.error(_)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var g;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(g=this.onFinalize)||void 0===g||g.call(this))}}}},23601:(Ye,pe,h)=>{"use strict";h.d(pe,{e:()=>T});var e=h(34986),c=h(54482),A=h(38421),w=h(25403),C=h(82805);function T(E,S=e.z){return function g(E){return(0,c.e)((S,U)=>{let _=!1,V=null,z=null,Q=!1;const te=()=>{if(z?.unsubscribe(),z=null,_){_=!1;const ee=V;V=null,U.next(ee)}Q&&U.complete()},oe=()=>{z=null,Q&&U.complete()};S.subscribe((0,w.x)(U,ee=>{_=!0,V=ee,z||(0,A.Xf)(E(ee)).subscribe(z=(0,w.x)(U,te,oe))},()=>{Q=!0,(!_||!z||z.closed)&&U.complete()}))})}(()=>(0,C.H)(E,S))}},70262:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>w});var e=h(38421),c=h(25403),A=h(54482);function w(g){return(0,A.e)((C,T)=>{let U,E=null,S=!1;E=C.subscribe((0,c.x)(T,void 0,void 0,_=>{U=(0,e.Xf)(g(_,w(g)(C))),E?(E.unsubscribe(),E=null,U.subscribe(T)):S=!0})),S&&(E.unsubscribe(),E=null,U.subscribe(T))})}},24351:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(86099),c=h(30576);function A(w,g){return(0,c.m)(g)?(0,e.z)(w,g,1):(0,e.z)(w,1)}},78372:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>w});var e=h(34986),c=h(54482),A=h(25403);function w(g,C=e.z){return(0,c.e)((T,E)=>{let S=null,U=null,_=null;const V=()=>{if(S){S.unsubscribe(),S=null;const Q=U;U=null,E.next(Q)}};function z(){const Q=_+g,te=C.now();if(te{U=Q,_=C.now(),S||(S=C.schedule(z,g),E.add(S))},()=>{V(),E.complete()},void 0,()=>{U=S=null}))})}},46590:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(54482),c=h(25403);function A(w){return(0,e.e)((g,C)=>{let T=!1;g.subscribe((0,c.x)(C,E=>{T=!0,C.next(E)},()=>{T||C.next(w),C.complete()}))})}},91005:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>V});var e=h(34986),c=h(97272),A=h(95698),w=h(54482),g=h(25403),C=h(25032),E=h(69718),S=h(86099);function U(z,Q){return Q?te=>(0,c.z)(Q.pipe((0,A.q)(1),function T(){return(0,w.e)((z,Q)=>{z.subscribe((0,g.x)(Q,C.Z))})}()),te.pipe(U(z))):(0,S.z)((te,oe)=>z(te,oe).pipe((0,A.q)(1),(0,E.h)(te)))}var _=h(82805);function V(z,Q=e.z){const te=(0,_.H)(z,Q);return U(()=>te)}},71884:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>w});var e=h(44671),c=h(54482),A=h(25403);function w(C,T=e.y){return C=C??g,(0,c.e)((E,S)=>{let U,_=!0;E.subscribe((0,A.x)(S,V=>{const z=T(V);(_||!C(U,z))&&(_=!1,U=z,S.next(V))}))})}function g(C,T){return C===T}},39300:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(54482),c=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>w.call(g,S,E++)&&T.next(S)))})}},28746:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>c});var e=h(54482);function c(A){return(0,e.e)((w,g)=>{try{w.subscribe(g)}finally{g.add(A)}})}},50590:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>T});var e=h(86805),c=h(39300),A=h(95698),w=h(46590),g=h(18068),C=h(44671);function T(E,S){const U=arguments.length>=2;return _=>_.pipe(E?(0,c.h)((V,z)=>E(V,z,_)):C.y,(0,A.q)(1),U?(0,w.d)(S):(0,g.T)(()=>new e.K))}},54004:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>A});var e=h(54482),c=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>{T.next(w.call(g,S,E++))}))})}},69718:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>c});var e=h(54004);function c(A){return(0,e.U)(()=>A)}},8189:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(86099),c=h(44671);function A(w=1/0){return(0,e.z)(c.y,w)}},72733:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>w});var e=h(38421),c=h(39672),A=h(25403);function w(g,C,T,E,S,U,_,V){const z=[];let Q=0,te=0,oe=!1;const ee=()=>{oe&&!z.length&&!Q&&C.complete()},le=Te=>Q{U&&C.next(Te),Q++;let v=!1;(0,e.Xf)(T(Te,te++)).subscribe((0,A.x)(C,L=>{S?.(L),U?le(L):C.next(L)},()=>{v=!0},void 0,()=>{if(v)try{for(Q--;z.length&&Qde(L)):de(L)}ee()}catch(L){C.error(L)}}))};return g.subscribe((0,A.x)(C,le,()=>{oe=!0,ee()})),()=>{V?.()}}},86099:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>C});var e=h(54004),c=h(38421),A=h(54482),w=h(72733),g=h(30576);function C(T,E,S=1/0){return(0,g.m)(E)?C((U,_)=>(0,e.U)((V,z)=>E(U,V,_,z))((0,c.Xf)(T(U,_))),S):("number"==typeof E&&(S=E),(0,A.e)((U,_)=>(0,w.p)(U,_,T,S)))}},11520:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>A});var e=h(54482),c=h(25403);function A(){return(0,e.e)((w,g)=>{let C,T=!1;w.subscribe((0,c.x)(g,E=>{const S=C;C=E,T&&g.next([S,E]),T=!0}))})}},57359:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>c});var e=h(25403);function c(A,w,g,C,T){return(E,S)=>{let U=g,_=w,V=0;E.subscribe((0,e.x)(S,z=>{const Q=V++;_=U?A(_,z,Q):(U=!0,z),C&&S.next(_)},T&&(()=>{U&&S.next(_),S.complete()})))}}},13099:(Ye,pe,h)=>{"use strict";h.d(pe,{B:()=>g});var e=h(38421),c=h(77579),A=h(70930),w=h(54482);function g(T={}){const{connector:E=(()=>new c.x),resetOnError:S=!0,resetOnComplete:U=!0,resetOnRefCountZero:_=!0}=T;return V=>{let z,Q,te,oe=0,ee=!1,le=!1;const de=()=>{Q?.unsubscribe(),Q=void 0},Te=()=>{de(),z=te=void 0,ee=le=!1},v=()=>{const L=z;Te(),L?.unsubscribe()};return(0,w.e)((L,B)=>{oe++,!le&&!ee&&de();const W=te=te??E();B.add(()=>{oe--,0===oe&&!le&&!ee&&(Q=C(v,_))}),W.subscribe(B),!z&&oe>0&&(z=new A.Hp({next:q=>W.next(q),error:q=>{le=!0,de(),Q=C(Te,S,q),W.error(q)},complete:()=>{ee=!0,de(),Q=C(Te,U),W.complete()}}),(0,e.Xf)(L).subscribe(z))})(V)}}function C(T,E,...S){if(!0===E)return void T();if(!1===E)return;const U=new A.Hp({next:()=>{U.unsubscribe(),T()}});return E(...S).subscribe(U)}},34782:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(4707),c=h(13099);function A(w,g,C){let T,E=!1;return w&&"object"==typeof w?({bufferSize:T=1/0,windowTime:g=1/0,refCount:E=!1,scheduler:C}=w):T=w??1/0,(0,c.B)({connector:()=>new e.t(T,g,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E})}},35684:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>c});var e=h(39300);function c(A){return(0,e.h)((w,g)=>A<=g)}},68675:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>w});var e=h(97272),c=h(63269),A=h(54482);function w(...g){const C=(0,c.yG)(g);return(0,A.e)((T,E)=>{(C?(0,e.z)(g,T,C):(0,e.z)(g,T)).subscribe(E)})}},63900:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>w});var e=h(38421),c=h(54482),A=h(25403);function w(g,C){return(0,c.e)((T,E)=>{let S=null,U=0,_=!1;const V=()=>_&&!S&&E.complete();T.subscribe((0,A.x)(E,z=>{S?.unsubscribe();let Q=0;const te=U++;(0,e.Xf)(g(z,te)).subscribe(S=(0,A.x)(E,oe=>E.next(C?C(z,oe,te,Q++):oe),()=>{S=null,V()}))},()=>{_=!0,V()}))})}},95698:(Ye,pe,h)=>{"use strict";h.d(pe,{q:()=>w});var e=h(60515),c=h(54482),A=h(25403);function w(g){return g<=0?()=>e.E:(0,c.e)((C,T)=>{let E=0;C.subscribe((0,A.x)(T,S=>{++E<=g&&(T.next(S),g<=E&&T.complete())}))})}},82722:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>g});var e=h(54482),c=h(25403),A=h(38421),w=h(25032);function g(C){return(0,e.e)((T,E)=>{(0,A.Xf)(C).subscribe((0,c.x)(E,()=>E.complete(),w.Z)),!E.closed&&T.subscribe(E)})}},22529:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>A});var e=h(54482),c=h(25403);function A(w,g=!1){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>{const U=w(S,E++);(U||g)&&T.next(S),!U&&T.complete()}))})}},18505:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>g});var e=h(30576),c=h(54482),A=h(25403),w=h(44671);function g(C,T,E){const S=(0,e.m)(C)||T||E?{next:C,error:T,complete:E}:C;return S?(0,c.e)((U,_)=>{var V;null===(V=S.subscribe)||void 0===V||V.call(S);let z=!0;U.subscribe((0,A.x)(_,Q=>{var te;null===(te=S.next)||void 0===te||te.call(S,Q),_.next(Q)},()=>{var Q;z=!1,null===(Q=S.complete)||void 0===Q||Q.call(S),_.complete()},Q=>{var te;z=!1,null===(te=S.error)||void 0===te||te.call(S,Q),_.error(Q)},()=>{var Q,te;z&&(null===(Q=S.unsubscribe)||void 0===Q||Q.call(S)),null===(te=S.finalize)||void 0===te||te.call(S)}))}):w.y}},18068:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>w});var e=h(86805),c=h(54482),A=h(25403);function w(C=g){return(0,c.e)((T,E)=>{let S=!1;T.subscribe((0,A.x)(E,U=>{S=!0,E.next(U)},()=>S?E.complete():E.error(C())))})}function g(){return new e.K}},17414:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>S});var e=h(34986),c=h(51165),A=h(54482),w=h(38421),g=h(83888),C=h(25403),T=h(39672);const E=(0,g.d)(_=>function(z=null){_(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=z});function S(_,V){const{first:z,each:Q,with:te=U,scheduler:oe=V??e.z,meta:ee=null}=(0,c.q)(_)?{first:_}:"number"==typeof _?{each:_}:_;if(null==z&&null==Q)throw new TypeError("No timeout provided.");return(0,A.e)((le,de)=>{let Te,v,L=null,B=0;const W=q=>{v=(0,T.f)(de,oe,()=>{try{Te.unsubscribe(),(0,w.Xf)(te({meta:ee,lastValue:L,seen:B})).subscribe(de)}catch(ue){de.error(ue)}},q)};Te=le.subscribe((0,C.x)(de,q=>{v?.unsubscribe(),B++,de.next(L=q),Q>0&&W(Q)},void 0,void 0,()=>{v?.closed||v?.unsubscribe(),L=null})),!B&&W(null!=z?"number"==typeof z?z:+z-oe.now():Q)})}function U(_){throw new E(_)}},84408:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>g});var e=h(50727);class c extends e.w0{constructor(T,E){super()}schedule(T,E=0){return this}}const A={setInterval(C,T,...E){const{delegate:S}=A;return S?.setInterval?S.setInterval(C,T,...E):setInterval(C,T,...E)},clearInterval(C){const{delegate:T}=A;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var w=h(38737);class g extends c{constructor(T,E){super(T,E),this.scheduler=T,this.work=E,this.pending=!1}schedule(T,E=0){if(this.closed)return this;this.state=T;const S=this.id,U=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(U,S,E)),this.pending=!0,this.delay=E,this.id=this.id||this.requestAsyncId(U,this.id,E),this}requestAsyncId(T,E,S=0){return A.setInterval(T.flush.bind(T,this),S)}recycleAsyncId(T,E,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return E;A.clearInterval(E)}execute(T,E){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(T,E);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,E){let U,S=!1;try{this.work(T)}catch(_){S=!0,U=_||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:T,scheduler:E}=this,{actions:S}=E;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(S,this),null!=T&&(this.id=this.recycleAsyncId(E,T,null)),this.delay=null,super.unsubscribe()}}}},97565:(Ye,pe,h)=>{"use strict";h.d(pe,{v:()=>A});var e=h(26063);class c{constructor(g,C=c.now){this.schedulerActionCtor=g,this.now=C}schedule(g,C=0,T){return new this.schedulerActionCtor(this,g).schedule(T,C)}}c.now=e.l.now;class A extends c{constructor(g,C=c.now){super(g,C),this.actions=[],this._active=!1,this._scheduled=void 0}flush(g){const{actions:C}=this;if(this._active)return void C.push(g);let T;this._active=!0;do{if(T=g.execute(g.state,g.delay))break}while(g=C.shift());if(this._active=!1,T){for(;g=C.shift();)g.unsubscribe();throw T}}}},66406:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>T});var e=h(84408),c=h(50727);const A={schedule(S){let U=requestAnimationFrame,_=cancelAnimationFrame;const{delegate:V}=A;V&&(U=V.requestAnimationFrame,_=V.cancelAnimationFrame);const z=U(Q=>{_=void 0,S(Q)});return new c.w0(()=>_?.(z))},requestAnimationFrame(...S){const{delegate:U}=A;return(U?.requestAnimationFrame||requestAnimationFrame)(...S)},cancelAnimationFrame(...S){const{delegate:U}=A;return(U?.cancelAnimationFrame||cancelAnimationFrame)(...S)},delegate:void 0};var g=h(97565);const T=new class C extends g.v{flush(U){this._active=!0;const _=this._scheduled;this._scheduled=void 0;const{actions:V}=this;let z;U=U||V.shift();do{if(z=U.execute(U.state,U.delay))break}while((U=V[0])&&U.id===_&&V.shift());if(this._active=!1,z){for(;(U=V[0])&&U.id===_&&V.shift();)U.unsubscribe();throw z}}}(class w extends e.o{constructor(U,_){super(U,_),this.scheduler=U,this.work=_}requestAsyncId(U,_,V=0){return null!==V&&V>0?super.requestAsyncId(U,_,V):(U.actions.push(this),U._scheduled||(U._scheduled=A.requestAnimationFrame(()=>U.flush(void 0))))}recycleAsyncId(U,_,V=0){if(null!=V&&V>0||null==V&&this.delay>0)return super.recycleAsyncId(U,_,V);U.actions.some(z=>z.id===_)||(A.cancelAnimationFrame(_),U._scheduled=void 0)}})},53101:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>Q});var e=h(84408);let A,c=1;const w={};function g(oe){return oe in w&&(delete w[oe],!0)}const C={setImmediate(oe){const ee=c++;return w[ee]=!0,A||(A=Promise.resolve()),A.then(()=>g(ee)&&oe()),ee},clearImmediate(oe){g(oe)}},{setImmediate:E,clearImmediate:S}=C,U={setImmediate(...oe){const{delegate:ee}=U;return(ee?.setImmediate||E)(...oe)},clearImmediate(oe){const{delegate:ee}=U;return(ee?.clearImmediate||S)(oe)},delegate:void 0};var V=h(97565);const Q=new class z extends V.v{flush(ee){this._active=!0;const le=this._scheduled;this._scheduled=void 0;const{actions:de}=this;let Te;ee=ee||de.shift();do{if(Te=ee.execute(ee.state,ee.delay))break}while((ee=de[0])&&ee.id===le&&de.shift());if(this._active=!1,Te){for(;(ee=de[0])&&ee.id===le&&de.shift();)ee.unsubscribe();throw Te}}}(class _ extends e.o{constructor(ee,le){super(ee,le),this.scheduler=ee,this.work=le}requestAsyncId(ee,le,de=0){return null!==de&&de>0?super.requestAsyncId(ee,le,de):(ee.actions.push(this),ee._scheduled||(ee._scheduled=U.setImmediate(ee.flush.bind(ee,void 0))))}recycleAsyncId(ee,le,de=0){if(null!=de&&de>0||null==de&&this.delay>0)return super.recycleAsyncId(ee,le,de);ee.actions.some(Te=>Te.id===le)||(U.clearImmediate(le),ee._scheduled=void 0)}})},34986:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>w,z:()=>A});var e=h(84408);const A=new(h(97565).v)(e.o),w=A},26063:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e={setTimeout(c,A,...w){const{delegate:g}=e;return g?.setTimeout?g.setTimeout(c,A,...w):setTimeout(c,A,...w)},clearTimeout(c){const{delegate:A}=e;return(A?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>c});const c=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>c});const c=(0,h(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Ye,pe,h)=>{"use strict";h.d(pe,{_6:()=>C,jO:()=>w,yG:()=>g});var e=h(30576),c=h(93532);function A(T){return T[T.length-1]}function w(T){return(0,e.m)(A(T))?T.pop():void 0}function g(T){return(0,c.K)(A(T))?T.pop():void 0}function C(T,E){return"number"==typeof A(T)?T.pop():E}},54742:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>g});const{isArray:e}=Array,{getPrototypeOf:c,prototype:A,keys:w}=Object;function g(T){if(1===T.length){const E=T[0];if(e(E))return{args:E,keys:null};if(function C(T){return T&&"object"==typeof T&&c(T)===A}(E)){const S=w(E);return{args:S.map(U=>E[U]),keys:S}}}return{args:T,keys:null}}},75797:(Ye,pe,h)=>{"use strict";h.d(pe,{k:()=>c});const{isArray:e}=Array;function c(A){return 1===A.length&&e(A[0])?A[0]:A}},38737:(Ye,pe,h)=>{"use strict";function e(c,A){if(c){const w=c.indexOf(A);0<=w&&c.splice(w,1)}}h.d(pe,{P:()=>e})},83888:(Ye,pe,h)=>{"use strict";function e(c){const w=c(g=>{Error.call(g),g.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}h.d(pe,{d:()=>e})},31810:(Ye,pe,h)=>{"use strict";function e(c,A){return c.reduce((w,g,C)=>(w[g]=A[C],w),{})}h.d(pe,{n:()=>e})},72806:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>w,x:()=>A});var e=h(42416);let c=null;function A(g){if(e.v.useDeprecatedSynchronousErrorHandling){const C=!c;if(C&&(c={errorThrown:!1,error:null}),g(),C){const{errorThrown:T,error:E}=c;if(c=null,T)throw E}}else g()}function w(g){e.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=g)}},39672:(Ye,pe,h)=>{"use strict";function e(c,A,w,g=0,C=!1){const T=A.schedule(function(){w(),C?c.add(this.schedule(null,g)):this.unsubscribe()},g);if(c.add(T),!C)return T}h.d(pe,{f:()=>e})},44671:(Ye,pe,h)=>{"use strict";function e(c){return c}h.d(pe,{y:()=>e})},81144:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e=c=>c&&"number"==typeof c.length&&"function"!=typeof c},12206:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>c});var e=h(30576);function c(A){return Symbol.asyncIterator&&(0,e.m)(A?.[Symbol.asyncIterator])}},51165:(Ye,pe,h)=>{"use strict";function e(c){return c instanceof Date&&!isNaN(c)}h.d(pe,{q:()=>e})},30576:(Ye,pe,h)=>{"use strict";function e(c){return"function"==typeof c}h.d(pe,{m:()=>e})},93670:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(48822),c=h(30576);function A(w){return(0,c.m)(w[e.L])}},26495:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>A});var e=h(2202),c=h(30576);function A(w){return(0,c.m)(w?.[e.h])}},45191:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(69751),c=h(30576);function A(w){return!!w&&(w instanceof e.y||(0,c.m)(w.lift)&&(0,c.m)(w.subscribe))}},28239:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>c});var e=h(30576);function c(A){return(0,e.m)(A?.then)}},53260:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>w,Q:()=>A});var e=h(70655),c=h(30576);function A(g){return(0,e.FC)(this,arguments,function*(){const T=g.getReader();try{for(;;){const{value:E,done:S}=yield(0,e.qq)(T.read());if(S)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(E)}}finally{T.releaseLock()}})}function w(g){return(0,c.m)(g?.getReader)}},93532:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>c});var e=h(30576);function c(A){return A&&(0,e.m)(A.schedule)}},54482:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>c,e:()=>A});var e=h(30576);function c(w){return(0,e.m)(w?.lift)}function A(w){return g=>{if(c(g))return g.lift(function(C){try{return w(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>w});var e=h(54004);const{isArray:c}=Array;function w(g){return(0,e.U)(C=>function A(g,C){return c(C)?g(...C):g(C)}(g,C))}},25032:(Ye,pe,h)=>{"use strict";function e(){}h.d(pe,{Z:()=>e})},89635:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>A,z:()=>c});var e=h(44671);function c(...w){return A(w)}function A(w){return 0===w.length?e.y:1===w.length?w[0]:function(C){return w.reduce((T,E)=>E(T),C)}}},87849:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(42416),c=h(43410);function A(w){c.z.setTimeout(()=>{const{onUnhandledError:g}=e.v;if(!g)throw w;g(w)})}},44532:(Ye,pe,h)=>{"use strict";function e(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}h.d(pe,{z:()=>e})},70655:(Ye,pe,h)=>{"use strict";function g(Me,we,Ge,ce){var xe,Ze=arguments.length,he=Ze<3?we:null===ce?ce=Object.getOwnPropertyDescriptor(we,Ge):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(Me,we,Ge,ce);else for(var j=Me.length-1;j>=0;j--)(xe=Me[j])&&(he=(Ze<3?xe(he):Ze>3?xe(we,Ge,he):xe(we,Ge))||he);return Ze>3&&he&&Object.defineProperty(we,Ge,he),he}function E(Me,we,Ge,ce){return new(Ge||(Ge=Promise))(function(he,xe){function j(se){try{G(ce.next(se))}catch($){xe($)}}function R(se){try{G(ce.throw(se))}catch($){xe($)}}function G(se){se.done?he(se.value):function Ze(he){return he instanceof Ge?he:new Ge(function(xe){xe(he)})}(se.value).then(j,R)}G((ce=ce.apply(Me,we||[])).next())})}function ee(Me){return this instanceof ee?(this.v=Me,this):new ee(Me)}function le(Me,we,Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,ce=Ge.apply(Me,we||[]),he=[];return Ze={},xe("next"),xe("throw"),xe("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze;function xe(Ee){ce[Ee]&&(Ze[Ee]=function(Oe){return new Promise(function(ct,Xe){he.push([Ee,Oe,ct,Xe])>1||j(Ee,Oe)})})}function j(Ee,Oe){try{!function R(Ee){Ee.value instanceof ee?Promise.resolve(Ee.value.v).then(G,se):$(he[0][2],Ee)}(ce[Ee](Oe))}catch(ct){$(he[0][3],ct)}}function G(Ee){j("next",Ee)}function se(Ee){j("throw",Ee)}function $(Ee,Oe){Ee(Oe),he.shift(),he.length&&j(he[0][0],he[0][1])}}function Te(Me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ge,we=Me[Symbol.asyncIterator];return we?we.call(Me):(Me=function V(Me){var we="function"==typeof Symbol&&Symbol.iterator,Ge=we&&Me[we],ce=0;if(Ge)return Ge.call(Me);if(Me&&"number"==typeof Me.length)return{next:function(){return Me&&ce>=Me.length&&(Me=void 0),{value:Me&&Me[ce++],done:!Me}}};throw new TypeError(we?"Object is not iterable.":"Symbol.iterator is not defined.")}(Me),Ge={},ce("next"),ce("throw"),ce("return"),Ge[Symbol.asyncIterator]=function(){return this},Ge);function ce(he){Ge[he]=Me[he]&&function(xe){return new Promise(function(j,R){!function Ze(he,xe,j,R){Promise.resolve(R).then(function(G){he({value:G,done:j})},xe)}(j,R,(xe=Me[he](xe)).done,xe.value)})}}}h.d(pe,{FC:()=>le,KL:()=>Te,gn:()=>g,mG:()=>E,qq:()=>ee})},37340:(Ye,pe,h)=>{"use strict";h.d(pe,{F4:()=>U,IO:()=>te,LC:()=>c,SB:()=>S,X$:()=>w,ZE:()=>de,ZN:()=>le,_j:()=>e,eR:()=>_,jt:()=>g,k1:()=>Te,l3:()=>A,oB:()=>E,pV:()=>z,ru:()=>C,vP:()=>T});class e{}class c{}const A="*";function w(v,L){return{type:7,name:v,definitions:L,options:{}}}function g(v,L=null){return{type:4,styles:L,timings:v}}function C(v,L=null){return{type:3,steps:v,options:L}}function T(v,L=null){return{type:2,steps:v,options:L}}function E(v){return{type:6,styles:v,offset:null}}function S(v,L,B){return{type:0,name:v,styles:L,options:B}}function U(v){return{type:5,steps:v}}function _(v,L,B=null){return{type:1,expr:v,animation:L,options:B}}function z(v=null){return{type:9,options:v}}function te(v,L,B=null){return{type:11,selector:v,animation:L,options:B}}function ee(v){Promise.resolve(null).then(v)}class le{constructor(L=0,B=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=L+B}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(L=>L()),this._onDoneFns=[])}onStart(L){this._originalOnStartFns.push(L),this._onStartFns.push(L)}onDone(L){this._originalOnDoneFns.push(L),this._onDoneFns.push(L)}onDestroy(L){this._onDestroyFns.push(L)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(L=>L()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(L=>L()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(L){this._position=this.totalTime?L*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(L){const B="start"==L?this._onStartFns:this._onDoneFns;B.forEach(W=>W()),B.length=0}}class de{constructor(L){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=L;let B=0,W=0,q=0;const ue=this.players.length;0==ue?ee(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++B==ue&&this._onFinish()}),ye.onDestroy(()=>{++W==ue&&this._onDestroy()}),ye.onStart(()=>{++q==ue&&this._onStart()})}),this.totalTime=this.players.reduce((ye,Me)=>Math.max(ye,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(L=>L()),this._onDoneFns=[])}init(){this.players.forEach(L=>L.init())}onStart(L){this._onStartFns.push(L)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(L=>L()),this._onStartFns=[])}onDone(L){this._onDoneFns.push(L)}onDestroy(L){this._onDestroyFns.push(L)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(L=>L.play())}pause(){this.players.forEach(L=>L.pause())}restart(){this.players.forEach(L=>L.restart())}finish(){this._onFinish(),this.players.forEach(L=>L.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(L=>L.destroy()),this._onDestroyFns.forEach(L=>L()),this._onDestroyFns=[])}reset(){this.players.forEach(L=>L.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(L){const B=L*this.totalTime;this.players.forEach(W=>{const q=W.totalTime?Math.min(1,B/W.totalTime):1;W.setPosition(q)})}getPosition(){const L=this.players.reduce((B,W)=>null===B||W.totalTime>B.totalTime?W:B,null);return null!=L?L.getPosition():0}beforeDestroy(){this.players.forEach(L=>{L.beforeDestroy&&L.beforeDestroy()})}triggerCallback(L){const B="start"==L?this._onStartFns:this._onDoneFns;B.forEach(W=>W()),B.length=0}}const Te="!"},12687:(Ye,pe,h)=>{"use strict";h.d(pe,{$s:()=>Me,Em:()=>he,Kd:()=>d,X6:()=>H,ic:()=>j,kH:()=>Vt,mK:()=>re,qV:()=>ae,qm:()=>je,rt:()=>Pe,s1:()=>Ze,tE:()=>bt,yG:()=>i});var e=h(36895),c=h(94650),A=h(83353),w=h(77579),g=h(50727),C=h(61135),T=h(39646),E=h(29521),S=h(18505),U=h(78372),_=h(39300),V=h(54004),z=h(95698),Q=h(35684),te=h(71884),oe=h(82722),ee=h(21281),le=h(49643),de=h(62289);function B(Qe,qe){return(Qe.getAttribute(qe)||"").match(/\S+/g)||[]}const q="cdk-describedby-message",ue="cdk-describedby-host";let ye=0,Me=(()=>{class Qe{constructor(Be,me){this._platform=me,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ye++,this._document=Be,this._id=(0,c.f3M)(c.AFp)+"-"+ye++}describe(Be,me,ve){if(!this._canBeDescribed(Be,me))return;const ze=we(me,ve);"string"!=typeof me?(Ge(me,this._id),this._messageRegistry.set(ze,{messageElement:me,referenceCount:0})):this._messageRegistry.has(ze)||this._createMessageElement(me,ve),this._isElementDescribedByMessage(Be,ze)||this._addMessageReference(Be,ze)}removeDescription(Be,me,ve){var ze;if(!me||!this._isElementNode(Be))return;const tt=we(me,ve);if(this._isElementDescribedByMessage(Be,tt)&&this._removeMessageReference(Be,tt),"string"==typeof me){const at=this._messageRegistry.get(tt);at&&0===at.referenceCount&&this._deleteMessageElement(tt)}0===(null===(ze=this._messagesContainer)||void 0===ze?void 0:ze.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Be;const me=this._document.querySelectorAll(`[${ue}="${this._id}"]`);for(let ve=0;ve0!=ve.indexOf(q));Be.setAttribute("aria-describedby",me.join(" "))}_addMessageReference(Be,me){const ve=this._messageRegistry.get(me);(function v(Qe,qe,Be){const me=B(Qe,qe);me.some(ve=>ve.trim()==Be.trim())||(me.push(Be.trim()),Qe.setAttribute(qe,me.join(" ")))})(Be,"aria-describedby",ve.messageElement.id),Be.setAttribute(ue,this._id),ve.referenceCount++}_removeMessageReference(Be,me){const ve=this._messageRegistry.get(me);ve.referenceCount--,function L(Qe,qe,Be){const ve=B(Qe,qe).filter(ze=>ze!=Be.trim());ve.length?Qe.setAttribute(qe,ve.join(" ")):Qe.removeAttribute(qe)}(Be,"aria-describedby",ve.messageElement.id),Be.removeAttribute(ue)}_isElementDescribedByMessage(Be,me){const ve=B(Be,"aria-describedby"),ze=this._messageRegistry.get(me),tt=ze&&ze.messageElement.id;return!!tt&&-1!=ve.indexOf(tt)}_canBeDescribed(Be,me){if(!this._isElementNode(Be))return!1;if(me&&"object"==typeof me)return!0;const ve=null==me?"":`${me}`.trim(),ze=Be.getAttribute("aria-label");return!(!ve||ze&&ze.trim()===ve)}_isElementNode(Be){return Be.nodeType===this._document.ELEMENT_NODE}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(e.K0),c.LFG(A.t4))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function we(Qe,qe){return"string"==typeof Qe?`${qe||""}/${Qe}`:Qe}function Ge(Qe,qe){Qe.id||(Qe.id=`${q}-${qe}-${ye++}`)}class ce{constructor(qe){this._items=qe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=g.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Be=>Be.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,qe instanceof c.n_E&&qe.changes.subscribe(Be=>{if(this._activeItem){const ve=Be.toArray().indexOf(this._activeItem);ve>-1&&ve!==this._activeItemIndex&&(this._activeItemIndex=ve)}})}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(Be=>this._pressedLetters.push(Be)),(0,U.b)(qe),(0,_.h)(()=>this._pressedLetters.length>0),(0,V.U)(()=>this._pressedLetters.join(""))).subscribe(Be=>{const me=this._getItemsArray();for(let ve=1;ve!qe[ze]||this._allowedModifierKeys.indexOf(ze)>-1);switch(Be){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&ve){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&ve){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&ve){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&ve){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&ve){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&ve){this.setLastItemActive();break}return;default:return void((ve||(0,E.Vb)(qe,"shiftKey"))&&(qe.key&&1===qe.key.length?this._letterKeyStream.next(qe.key.toLocaleUpperCase()):(Be>=E.A&&Be<=E.Z||Be>=E.xE&&Be<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(Be))))}this._pressedLetters=[],qe.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(qe){const Be=this._getItemsArray(),me="number"==typeof qe?qe:Be.indexOf(qe);this._activeItem=Be[me]??null,this._activeItemIndex=me}_setActiveItemByDelta(qe){this._wrap?this._setActiveInWrapMode(qe):this._setActiveInDefaultMode(qe)}_setActiveInWrapMode(qe){const Be=this._getItemsArray();for(let me=1;me<=Be.length;me++){const ve=(this._activeItemIndex+qe*me+Be.length)%Be.length;if(!this._skipPredicateFn(Be[ve]))return void this.setActiveItem(ve)}}_setActiveInDefaultMode(qe){this._setActiveItemByIndex(this._activeItemIndex+qe,qe)}_setActiveItemByIndex(qe,Be){const me=this._getItemsArray();if(me[qe]){for(;this._skipPredicateFn(me[qe]);)if(!me[qe+=Be])return;this.setActiveItem(qe)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class Ze extends ce{setActiveItem(qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(qe),this.activeItem&&this.activeItem.setActiveStyles()}}class he extends ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let j=(()=>{class Qe{constructor(Be){this._platform=Be}isDisabled(Be){return Be.hasAttribute("disabled")}isVisible(Be){return function G(Qe){return!!(Qe.offsetWidth||Qe.offsetHeight||"function"==typeof Qe.getClientRects&&Qe.getClientRects().length)}(Be)&&"visible"===getComputedStyle(Be).visibility}isTabbable(Be){if(!this._platform.isBrowser)return!1;const me=function R(Qe){try{return Qe.frameElement}catch{return null}}(function Y(Qe){return Qe.ownerDocument&&Qe.ownerDocument.defaultView||window}(Be));if(me&&(-1===_t(me)||!this.isVisible(me)))return!1;let ve=Be.nodeName.toLowerCase(),ze=_t(Be);return Be.hasAttribute("contenteditable")?-1!==ze:!("iframe"===ve||"object"===ve||this._platform.WEBKIT&&this._platform.IOS&&!function Je(Qe){let qe=Qe.nodeName.toLowerCase(),Be="input"===qe&&Qe.type;return"text"===Be||"password"===Be||"select"===qe||"textarea"===qe}(Be))&&("audio"===ve?!!Be.hasAttribute("controls")&&-1!==ze:"video"===ve?-1!==ze&&(null!==ze||this._platform.FIREFOX||Be.hasAttribute("controls")):Be.tabIndex>=0)}isFocusable(Be,me){return function gt(Qe){return!function $(Qe){return function Oe(Qe){return"input"==Qe.nodeName.toLowerCase()}(Qe)&&"hidden"==Qe.type}(Qe)&&(function se(Qe){let qe=Qe.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(Qe)||function Ee(Qe){return function ct(Qe){return"a"==Qe.nodeName.toLowerCase()}(Qe)&&Qe.hasAttribute("href")}(Qe)||Qe.hasAttribute("contenteditable")||Xe(Qe))}(Be)&&!this.isDisabled(Be)&&(me?.ignoreVisibility||this.isVisible(Be))}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function Xe(Qe){if(!Qe.hasAttribute("tabindex")||void 0===Qe.tabIndex)return!1;let qe=Qe.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function _t(Qe){if(!Xe(Qe))return null;const qe=parseInt(Qe.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class Ce{constructor(qe,Be,me,ve,ze=!1){this._element=qe,this._checker=Be,this._ngZone=me,this._document=ve,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ze||this.attachAnchors()}get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}destroy(){const qe=this._startAnchor,Be=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),Be&&(Be.removeEventListener("focus",this.endAnchorListener),Be.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(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const Be=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?Be.length?Be[0]:this._getFirstTabbableElement(this._element):Be.length?Be[Be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const Be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Be){if(!this._checker.isFocusable(Be)){const me=this._getFirstTabbableElement(Be);return me?.focus(qe),!!me}return Be.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const Be=this._getRegionBoundary("start");return Be&&Be.focus(qe),!!Be}focusLastTabbableElement(qe){const Be=this._getRegionBoundary("end");return Be&&Be.focus(qe),!!Be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Be=qe.children;for(let me=0;me=0;me--){const ve=Be[me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Be[me]):null;if(ve)return ve}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,Be){qe?Be.setAttribute("tabindex","0"):Be.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._ngZone.isStable?qe():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(qe)}}let ae=(()=>{class Qe{constructor(Be,me,ve){this._checker=Be,this._ngZone=me,this._document=ve}create(Be,me=!1){return new Ce(Be,this._checker,this._ngZone,this._document,me)}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(j),c.LFG(c.R0b),c.LFG(e.K0))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),re=(()=>{class Qe{constructor(Be,me,ve){this._elementRef=Be,this._focusTrapFactory=me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Be){this.focusTrap.enabled=(0,ee.Ig)(Be)}get autoCapture(){return this._autoCapture}set autoCapture(Be){this._autoCapture=(0,ee.Ig)(Be)}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(Be){const me=Be.autoCapture;me&&!me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.Y36(c.SBq),c.Y36(ae),c.Y36(e.K0))},Qe.\u0275dir=c.lG2({type:Qe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[c.TTD]}),Qe})();function H(Qe){return 0===Qe.buttons||0===Qe.offsetX&&0===Qe.offsetY}function i(Qe){const qe=Qe.touches&&Qe.touches[0]||Qe.changedTouches&&Qe.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const o=new c.OlP("cdk-input-modality-detector-options"),f={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},a=(0,A.i$)({passive:!0,capture:!0});let n=(()=>{class Qe{constructor(Be,me,ve,ze){this._platform=Be,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=tt=>{var at,Re;null!==(at=this._options)&&void 0!==at&&null!==(Re=at.ignoreKeys)&&void 0!==Re&&Re.some(st=>st===tt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(tt))},this._onMousedown=tt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(H(tt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(tt))},this._onTouchstart=tt=>{i(tt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(tt))},this._options={...f,...ze},this.modalityDetected=this._modality.pipe((0,Q.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,te.x)()),Be.isBrowser&&me.runOutsideAngular(()=>{ve.addEventListener("keydown",this._onKeydown,a),ve.addEventListener("mousedown",this._onMousedown,a),ve.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4),c.LFG(c.R0b),c.LFG(e.K0),c.LFG(o,8))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const t=new c.OlP("liveAnnouncerElement",{providedIn:"root",factory:function r(){return null}}),s=new c.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let d=(()=>{class Qe{constructor(Be,me,ve,ze){this._ngZone=me,this._defaultOptions=ze,this._document=ve,this._liveElement=Be||this._createLiveElement()}announce(Be,...me){const ve=this._defaultOptions;let ze,tt;return 1===me.length&&"number"==typeof me[0]?tt=me[0]:[ze,tt]=me,this.clear(),clearTimeout(this._previousTimeout),ze||(ze=ve&&ve.politeness?ve.politeness:"polite"),null==tt&&ve&&(tt=ve.duration),this._liveElement.setAttribute("aria-live",ze),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(at=>this._currentResolve=at)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Be,"number"==typeof tt&&(this._previousTimeout=setTimeout(()=>this.clear(),tt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Be,me;clearTimeout(this._previousTimeout),null===(Be=this._liveElement)||void 0===Be||Be.remove(),this._liveElement=null,null===(me=this._currentResolve)||void 0===me||me.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Be="cdk-live-announcer-element",me=this._document.getElementsByClassName(Be),ve=this._document.createElement("div");for(let ze=0;ze{class Qe{constructor(Be,me,ve,ze,tt){this._ngZone=Be,this._platform=me,this._inputModalityDetector=ve,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new w.x,this._rootNodeFocusAndBlurListener=at=>{for(let st=(0,A.sA)(at);st;st=st.parentElement)"focus"===at.type?this._onFocus(at,st):this._onBlur(at,st)},this._document=ze,this._detectionMode=tt?.detectionMode||0}monitor(Be,me=!1){const ve=(0,ee.fI)(Be);if(!this._platform.isBrowser||1!==ve.nodeType)return(0,T.of)(null);const ze=(0,A.kV)(ve)||this._getDocument(),tt=this._elementInfo.get(ve);if(tt)return me&&(tt.checkChildren=!0),tt.subject;const at={checkChildren:me,subject:new w.x,rootNode:ze};return this._elementInfo.set(ve,at),this._registerGlobalListeners(at),at.subject}stopMonitoring(Be){const me=(0,ee.fI)(Be),ve=this._elementInfo.get(me);ve&&(ve.subject.complete(),this._setClasses(me),this._elementInfo.delete(me),this._removeGlobalListeners(ve))}focusVia(Be,me,ve){const ze=(0,ee.fI)(Be);ze===this._getDocument().activeElement?this._getClosestElementsInfo(ze).forEach(([at,Re])=>this._originChanged(at,me,Re)):(this._setOrigin(me),"function"==typeof ze.focus&&ze.focus(ve))}ngOnDestroy(){this._elementInfo.forEach((Be,me)=>this.stopMonitoring(me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Be&&this._isLastInteractionFromInputLabel(Be)?"mouse":"program"}_shouldBeAttributedToTouch(Be){return 1===this._detectionMode||!(null==Be||!Be.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Be,me){Be.classList.toggle("cdk-focused",!!me),Be.classList.toggle("cdk-touch-focused","touch"===me),Be.classList.toggle("cdk-keyboard-focused","keyboard"===me),Be.classList.toggle("cdk-mouse-focused","mouse"===me),Be.classList.toggle("cdk-program-focused","program"===me)}_setOrigin(Be,me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Be,this._originFromTouchInteraction="touch"===Be&&me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Be,me){const ve=this._elementInfo.get(me),ze=(0,A.sA)(Be);!ve||!ve.checkChildren&&me!==ze||this._originChanged(me,this._getFocusOrigin(ze),ve)}_onBlur(Be,me){const ve=this._elementInfo.get(me);!ve||ve.checkChildren&&Be.relatedTarget instanceof Node&&me.contains(Be.relatedTarget)||(this._setClasses(me),this._emitOrigin(ve,null))}_emitOrigin(Be,me){Be.subject.observers.length&&this._ngZone.run(()=>Be.subject.next(me))}_registerGlobalListeners(Be){if(!this._platform.isBrowser)return;const me=Be.rootNode,ve=this._rootNodeFocusListenerCount.get(me)||0;ve||this._ngZone.runOutsideAngular(()=>{me.addEventListener("focus",this._rootNodeFocusAndBlurListener,_e),me.addEventListener("blur",this._rootNodeFocusAndBlurListener,_e)}),this._rootNodeFocusListenerCount.set(me,ve+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,oe.R)(this._stopInputModalityDetector)).subscribe(ze=>{this._setOrigin(ze,!0)}))}_removeGlobalListeners(Be){const me=Be.rootNode;if(this._rootNodeFocusListenerCount.has(me)){const ve=this._rootNodeFocusListenerCount.get(me);ve>1?this._rootNodeFocusListenerCount.set(me,ve-1):(me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_e),me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_e),this._rootNodeFocusListenerCount.delete(me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Be,me,ve){this._setClasses(Be,me),this._emitOrigin(ve,me),this._lastFocusOrigin=me}_getClosestElementsInfo(Be){const me=[];return this._elementInfo.forEach((ve,ze)=>{(ze===Be||ve.checkChildren&&ze.contains(Be))&&me.push([ze,ve])}),me}_isLastInteractionFromInputLabel(Be){const{_mostRecentTarget:me,mostRecentModality:ve}=this._inputModalityDetector;if("mouse"!==ve||!me||me===Be||"INPUT"!==Be.nodeName&&"TEXTAREA"!==Be.nodeName||Be.disabled)return!1;const ze=Be.labels;if(ze)for(let tt=0;tt{class Qe{constructor(Be,me){this._elementRef=Be,this._focusMonitor=me,this.cdkFocusChange=new c.vpe}ngAfterViewInit(){const Be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Be,1===Be.nodeType&&Be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(me=>this.cdkFocusChange.emit(me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.Y36(c.SBq),c.Y36(bt))},Qe.\u0275dir=c.lG2({type:Qe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Qe})();const on="cdk-high-contrast-black-on-white",Mt="cdk-high-contrast-white-on-black",ft="cdk-high-contrast-active";let je=(()=>{class Qe{constructor(Be,me){this._platform=Be,this._document=me,this._breakpointSubscription=(0,c.f3M)(de.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Be=this._document.createElement("div");Be.style.backgroundColor="rgb(1,2,3)",Be.style.position="absolute",this._document.body.appendChild(Be);const me=this._document.defaultView||window,ve=me&&me.getComputedStyle?me.getComputedStyle(Be):null,ze=(ve&&ve.backgroundColor||"").replace(/ /g,"");switch(Be.remove(),ze){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Be=this._document.body.classList;Be.remove(ft,on,Mt),this._hasCheckedHighContrastMode=!0;const me=this.getHighContrastMode();1===me?Be.add(ft,on):2===me&&Be.add(ft,Mt)}}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4),c.LFG(e.K0))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Pe=(()=>{class Qe{constructor(Be){Be._applyBodyHighContrastModeCssClasses()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(je))},Qe.\u0275mod=c.oAB({type:Qe}),Qe.\u0275inj=c.cJS({imports:[le.Q8]}),Qe})()},40445:(Ye,pe,h)=>{"use strict";h.d(pe,{Is:()=>T,vT:()=>S});var e=h(94650),c=h(36895);const A=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(c.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class U{constructor(V){if(this.value="ltr",this.change=new e.vpe,V){const Q=V.documentElement?V.documentElement.dir:null;this.value=function C(U){var _;const V=U?.toLowerCase()||"";return"auto"===V&&typeof navigator<"u"&&null!==(_=navigator)&&void 0!==_&&_.language?g.test(navigator.language)?"rtl":"ltr":"rtl"===V?"rtl":"ltr"}((V.body?V.body.dir:null)||Q||"ltr")}}ngOnDestroy(){this.change.complete()}}return U.\u0275fac=function(V){return new(V||U)(e.LFG(A,8))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({}),U})()},64425:(Ye,pe,h)=>{"use strict";h.d(pe,{Iq:()=>T,TU:()=>w,i3:()=>C});var e=h(36895),c=h(94650);class A{constructor(S,U){this._document=U;const _=this._textarea=this._document.createElement("textarea"),V=_.style;V.position="fixed",V.top=V.opacity="0",V.left="-999em",_.setAttribute("aria-hidden","true"),_.value=S,_.readOnly=!0,this._document.body.appendChild(_)}copy(){const S=this._textarea;let U=!1;try{if(S){const _=this._document.activeElement;S.select(),S.setSelectionRange(0,S.value.length),U=this._document.execCommand("copy"),_&&_.focus()}}catch{}return U}destroy(){const S=this._textarea;S&&(S.remove(),this._textarea=void 0)}}let w=(()=>{class E{constructor(U){this._document=U}copy(U){const _=this.beginCopy(U),V=_.copy();return _.destroy(),V}beginCopy(U){return new A(U,this._document)}}return E.\u0275fac=function(U){return new(U||E)(c.LFG(e.K0))},E.\u0275prov=c.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const g=new c.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let C=(()=>{class E{constructor(U,_,V){this._clipboard=U,this._ngZone=_,this.text="",this.attempts=1,this.copied=new c.vpe,this._pending=new Set,V&&null!=V.attempts&&(this.attempts=V.attempts)}copy(U=this.attempts){if(U>1){let _=U;const V=this._clipboard.beginCopy(this.text);this._pending.add(V);const z=()=>{const Q=V.copy();Q||!--_||this._destroyed?(this._currentTimeout=null,this._pending.delete(V),V.destroy(),this.copied.emit(Q)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(z,1))};z()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(U=>U.destroy()),this._pending.clear(),this._destroyed=!0}}return E.\u0275fac=function(U){return new(U||E)(c.Y36(w),c.Y36(c.R0b),c.Y36(g,8))},E.\u0275dir=c.lG2({type:E,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(U,_){1&U&&c.NdJ("click",function(){return _.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),E})(),T=(()=>{class E{}return E.\u0275fac=function(U){return new(U||E)},E.\u0275mod=c.oAB({type:E}),E.\u0275inj=c.cJS({}),E})()},21281:(Ye,pe,h)=>{"use strict";h.d(pe,{Eq:()=>g,HM:()=>C,Ig:()=>c,du:()=>E,fI:()=>T,su:()=>A,t6:()=>w});var e=h(94650);function c(S){return null!=S&&"false"!=`${S}`}function A(S,U=0){return w(S)?Number(S):U}function w(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}function g(S){return Array.isArray(S)?S:[S]}function C(S){return null==S?"":"string"==typeof S?S:`${S}px`}function T(S){return S instanceof e.SBq?S.nativeElement:S}function E(S,U=/\s+/){const _=[];if(null!=S){const V=Array.isArray(S)?S:`${S}`.split(U);for(const z of V){const Q=`${z}`.trim();Q&&_.push(Q)}}return _}},95017:(Ye,pe,h)=>{"use strict";h.d(pe,{A8:()=>V,Ov:()=>U,P3:()=>T,Z9:()=>C,eX:()=>S,k:()=>z,o2:()=>g,yy:()=>E});var e=h(45191),c=h(39646),A=h(77579),w=h(94650);class g{}function C(Q){return Q&&"function"==typeof Q.connect}class T extends g{constructor(te){super(),this._data=te}connect(){return(0,e.b)(this._data)?this._data:(0,c.of)(this._data)}disconnect(){}}class E{applyChanges(te,oe,ee,le,de){te.forEachOperation((Te,v,L)=>{let B,W;if(null==Te.previousIndex){const ue=ee(Te,v,L);B=oe.createEmbeddedView(ue.templateRef,ue.context,ue.index),W=1}else null==L?(oe.remove(v),W=3):(B=oe.get(v),oe.move(B,L),W=2);var q;de&&de({context:null===(q=B)||void 0===q?void 0:q.context,operation:W,record:Te})})}detach(){}}class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(te,oe,ee,le,de){te.forEachOperation((Te,v,L)=>{let B,W;var q;null==Te.previousIndex?(B=this._insertView(()=>ee(Te,v,L),L,oe,le(Te)),W=B?1:0):null==L?(this._detachAndCacheView(v,oe),W=3):(B=this._moveView(v,L,oe,le(Te)),W=2),de&&de({context:null===(q=B)||void 0===q?void 0:q.context,operation:W,record:Te})})}detach(){for(const te of this._viewCache)te.destroy();this._viewCache=[]}_insertView(te,oe,ee,le){const de=this._insertViewFromCache(oe,ee);if(de)return void(de.context.$implicit=le);const Te=te();return ee.createEmbeddedView(Te.templateRef,Te.context,Te.index)}_detachAndCacheView(te,oe){const ee=oe.detach(te);this._maybeCacheView(ee,oe)}_moveView(te,oe,ee,le){const de=ee.get(te);return ee.move(de,oe),de.context.$implicit=le,de}_maybeCacheView(te,oe){if(this._viewCache.lengththis._markSelected(de)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...te){this._verifyValueAssignment(te),te.forEach(ee=>this._markSelected(ee));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ee=>this._unmarkSelected(ee));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ee=new Set(te);te.forEach(de=>this._markSelected(de)),oe.filter(de=>!ee.has(de)).forEach(de=>this._unmarkSelected(de));const le=this._hasQueuedChanges();return this._emitChangeEvent(),le}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){if(this.compareWith){for(const oe of this._selection)if(this.compareWith(oe,te))return!0;return!1}return this._selection.has(te)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}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(te){this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let V=(()=>{class Q{constructor(){this._listeners=[]}notify(oe,ee){for(let le of this._listeners)le(oe,ee)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ee=>oe!==ee)}}ngOnDestroy(){this._listeners=[]}}return Q.\u0275fac=function(oe){return new(oe||Q)},Q.\u0275prov=w.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const z=new w.OlP("_ViewRepeater")},73555:(Ye,pe,h)=>{"use strict";h.d(pe,{Wj:()=>_e,Zt:()=>Qe,_t:()=>qe,bA:()=>Y});var e=h(94650),c=h(36895),A=h(67376),w=h(83353),g=h(21281),C=h(12687),T=h(77579),E=h(50727),S=h(17445),U=h(66406),_=h(69751),V=h(56451),z=h(82722),Q=h(68675),te=h(54004),oe=h(95698),ee=h(18505),le=h(63900),de=h(40445);function Te(Be,me,ve){for(let ze in me)if(me.hasOwnProperty(ze)){const tt=me[ze];tt?Be.setProperty(ze,tt,null!=ve&&ve.has(ze)?"important":""):Be.removeProperty(ze)}return Be}function v(Be,me){const ve=me?"":"none";Te(Be.style,{"touch-action":me?"":"none","-webkit-user-drag":me?"":"none","-webkit-tap-highlight-color":me?"":"transparent","user-select":ve,"-ms-user-select":ve,"-webkit-user-select":ve,"-moz-user-select":ve})}function L(Be,me,ve){Te(Be.style,{position:me?"":"fixed",top:me?"":"0",opacity:me?"":"0",left:me?"":"-999em"},ve)}function B(Be,me){return me&&"none"!=me?Be+" "+me:Be}function W(Be){const me=Be.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Be)*me}function ue(Be,me){return Be.getPropertyValue(me).split(",").map(ze=>ze.trim())}function ye(Be){const me=Be.getBoundingClientRect();return{top:me.top,right:me.right,bottom:me.bottom,left:me.left,width:me.width,height:me.height,x:me.x,y:me.y}}function Me(Be,me,ve){const{top:ze,bottom:tt,left:at,right:Re}=Be;return ve>=ze&&ve<=tt&&me>=at&&me<=Re}function we(Be,me,ve){Be.top+=me,Be.bottom=Be.top+Be.height,Be.left+=ve,Be.right=Be.left+Be.width}function Ge(Be,me,ve,ze){const{top:tt,right:at,bottom:Re,left:st,width:Pt,height:jt}=Be,cn=Pt*me,Xt=jt*me;return ze>tt-Xt&&zest-cn&&ve{this.positions.set(ve,{scrollPosition:{top:ve.scrollTop,left:ve.scrollLeft},clientRect:ye(ve)})})}handleScroll(me){const ve=(0,w.sA)(me),ze=this.positions.get(ve);if(!ze)return null;const tt=ze.scrollPosition;let at,Re;if(ve===this._document){const jt=this.getViewportScrollPosition();at=jt.top,Re=jt.left}else at=ve.scrollTop,Re=ve.scrollLeft;const st=tt.top-at,Pt=tt.left-Re;return this.positions.forEach((jt,cn)=>{jt.clientRect&&ve!==cn&&ve.contains(cn)&&we(jt.clientRect,st,Pt)}),tt.top=at,tt.left=Re,{top:st,left:Pt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ze(Be){const me=Be.cloneNode(!0),ve=me.querySelectorAll("[id]"),ze=Be.nodeName.toLowerCase();me.removeAttribute("id");for(let tt=0;tt{if(this.beforeStarted.next(),this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&this._initializeDragSequence(Pt,st)}else this.disabled||this._initializeDragSequence(this._rootElement,st)},this._pointerMove=st=>{const Pt=this._getPointerPositionOnPage(st);if(!this._hasStartedDragging){if(Math.abs(Pt.x-this._pickupPositionOnPage.x)+Math.abs(Pt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(st),Nt=this._dropContainer;if(!mn)return void this._endDragSequence(st);(!Nt||!Nt.isDragging()&&!Nt.isReceiving())&&(st.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(st)))}return}st.preventDefault();const jt=this._getConstrainedPointerPosition(Pt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Pt,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,Pt);else{const cn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Xt=this._activeTransform;Xt.x=jt.x-cn.x+this._passiveTransform.x,Xt.y=jt.y-cn.y+this._passiveTransform.y,this._applyRootElementTransform(Xt.x,Xt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:st,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=st=>{this._endDragSequence(st)},this._nativeDragStart=st=>{if(this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&st.preventDefault()}else this.disabled||st.preventDefault()},this.withRootElement(me).withParent(ve.parentDragRef||null),this._parentPositions=new ce(ze),Re.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(me){const ve=(0,g.Ig)(me);ve!==this._disabled&&(this._disabled=ve,this._toggleNativeDragInteractions(),this._handles.forEach(ze=>v(ze,ve)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(me){this._handles=me.map(ze=>(0,g.fI)(ze)),this._handles.forEach(ze=>v(ze,this.disabled)),this._toggleNativeDragInteractions();const ve=new Set;return this._disabledHandles.forEach(ze=>{this._handles.indexOf(ze)>-1&&ve.add(ze)}),this._disabledHandles=ve,this}withPreviewTemplate(me){return this._previewTemplate=me,this}withPlaceholderTemplate(me){return this._placeholderTemplate=me,this}withRootElement(me){const ve=(0,g.fI)(me);return ve!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ve.addEventListener("mousedown",this._pointerDown,se),ve.addEventListener("touchstart",this._pointerDown,G),ve.addEventListener("dragstart",this._nativeDragStart,se)}),this._initialTransform=void 0,this._rootElement=ve),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(me){return this._boundaryElement=me?(0,g.fI)(me):null,this._resizeSubscription.unsubscribe(),me&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(me){return this._parentDragRef=me,this}dispose(){var me,ve;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(ve=this._rootElement)||void 0===ve||ve.remove()),null===(me=this._anchor)||void 0===me||me.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(me){!this._disabledHandles.has(me)&&this._handles.indexOf(me)>-1&&(this._disabledHandles.add(me),v(me,!0))}enableHandle(me){this._disabledHandles.has(me)&&(this._disabledHandles.delete(me),v(me,this.disabled))}withDirection(me){return this._direction=me,this}_withDropContainer(me){this._dropContainer=me}getFreeDragPosition(){const me=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:me.x,y:me.y}}setFreeDragPosition(me){return this._activeTransform={x:0,y:0},this._passiveTransform.x=me.x,this._passiveTransform.y=me.y,this._dropContainer||this._applyRootElementTransform(me.x,me.y),this}withPreviewContainer(me){return this._previewContainer=me,this}_sortFromLastPointerPosition(){const me=this._lastKnownPointerPosition;me&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(me),me)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var me,ve;null===(me=this._preview)||void 0===me||me.remove(),null===(ve=this._previewRef)||void 0===ve||ve.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var me,ve;null===(me=this._placeholder)||void 0===me||me.remove(),null===(ve=this._placeholderRef)||void 0===ve||ve.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(me){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:me}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(me),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ve=this._getPointerPositionOnPage(me);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ve),dropPoint:ve,event:me})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(me){_t(me)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ve=this._dropContainer;if(ve){const ze=this._rootElement,tt=ze.parentNode,at=this._placeholder=this._createPlaceholderElement(),Re=this._anchor=this._anchor||this._document.createComment(""),st=this._getShadowRoot();tt.insertBefore(Re,ze),this._initialTransform=ze.style.transform||"",this._preview=this._createPreviewElement(),L(ze,!1,Ee),this._document.body.appendChild(tt.replaceChild(at,ze)),this._getPreviewInsertionPoint(tt,st).appendChild(this._preview),this.started.next({source:this,event:me}),ve.start(),this._initialContainer=ve,this._initialIndex=ve.getItemIndex(this)}else this.started.next({source:this,event:me}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ve?ve.getScrollableParents():[])}_initializeDragSequence(me,ve){this._parentDragRef&&ve.stopPropagation();const ze=this.isDragging(),tt=_t(ve),at=!tt&&0!==ve.button,Re=this._rootElement,st=(0,w.sA)(ve),Pt=!tt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=tt?(0,C.yG)(ve):(0,C.X6)(ve);if(st&&st.draggable&&"mousedown"===ve.type&&ve.preventDefault(),ze||at||Pt||jt)return;if(this._handles.length){const sn=Re.style;this._rootElementTapHighlight=sn.webkitTapHighlightColor||"",sn.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(sn=>this._updateOnScroll(sn)),this._boundaryElement&&(this._boundaryRect=ye(this._boundaryElement));const cn=this._previewTemplate;this._pickupPositionInElement=cn&&cn.template&&!cn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,me,ve);const Xt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ve);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Xt.x,y:Xt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ve)}_cleanupDragArtifacts(me){L(this._rootElement,!0,Ee),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ve=this._dropContainer,ze=ve.getItemIndex(this),tt=this._getPointerPositionOnPage(me),at=this._getDragDistance(tt),Re=ve._isOverContainer(tt.x,tt.y);this.ended.next({source:this,distance:at,dropPoint:tt,event:me}),this.dropped.next({item:this,currentIndex:ze,previousIndex:this._initialIndex,container:ve,previousContainer:this._initialContainer,isPointerOverContainer:Re,distance:at,dropPoint:tt,event:me}),ve.drop(this,ze,this._initialIndex,this._initialContainer,Re,at,tt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:me,y:ve},{x:ze,y:tt}){let at=this._initialContainer._getSiblingContainerFromPosition(this,me,ve);!at&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(me,ve)&&(at=this._initialContainer),at&&at!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=at,this._dropContainer.enter(this,me,ve,at===this._initialContainer&&at.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:at,currentIndex:at.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ze,tt),this._dropContainer._sortItem(this,me,ve,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(me,ve):this._applyPreviewTransform(me-this._pickupPositionInElement.x,ve-this._pickupPositionInElement.y))}_createPreviewElement(){const me=this._previewTemplate,ve=this.previewClass,ze=me?me.template:null;let tt;if(ze&&me){const at=me.matchSize?this._initialClientRect:null,Re=me.viewContainer.createEmbeddedView(ze,me.context);Re.detectChanges(),tt=Je(Re,this._document),this._previewRef=Re,me.matchSize?gt(tt,at):tt.style.transform=ct(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else tt=Ze(this._rootElement),gt(tt,this._initialClientRect),this._initialTransform&&(tt.style.transform=this._initialTransform);return Te(tt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Ee),v(tt,!1),tt.classList.add("cdk-drag-preview"),tt.setAttribute("dir",this._direction),ve&&(Array.isArray(ve)?ve.forEach(at=>tt.classList.add(at)):tt.classList.add(ve)),tt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const me=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(me.left,me.top);const ve=function q(Be){const me=getComputedStyle(Be),ve=ue(me,"transition-property"),ze=ve.find(st=>"transform"===st||"all"===st);if(!ze)return 0;const tt=ve.indexOf(ze),at=ue(me,"transition-duration"),Re=ue(me,"transition-delay");return W(at[tt])+W(Re[tt])}(this._preview);return 0===ve?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ze=>{const tt=Re=>{var st;(!Re||(0,w.sA)(Re)===this._preview&&"transform"===Re.propertyName)&&(null===(st=this._preview)||void 0===st||st.removeEventListener("transitionend",tt),ze(),clearTimeout(at))},at=setTimeout(tt,1.5*ve);this._preview.addEventListener("transitionend",tt)}))}_createPlaceholderElement(){const me=this._placeholderTemplate,ve=me?me.template:null;let ze;return ve?(this._placeholderRef=me.viewContainer.createEmbeddedView(ve,me.context),this._placeholderRef.detectChanges(),ze=Je(this._placeholderRef,this._document)):ze=Ze(this._rootElement),ze.style.pointerEvents="none",ze.classList.add("cdk-drag-placeholder"),ze}_getPointerPositionInElement(me,ve,ze){const tt=ve===this._rootElement?null:ve,at=tt?tt.getBoundingClientRect():me,Re=_t(ze)?ze.targetTouches[0]:ze,st=this._getViewportScrollPosition();return{x:at.left-me.left+(Re.pageX-at.left-st.left),y:at.top-me.top+(Re.pageY-at.top-st.top)}}_getPointerPositionOnPage(me){const ve=this._getViewportScrollPosition(),ze=_t(me)?me.touches[0]||me.changedTouches[0]||{pageX:0,pageY:0}:me,tt=ze.pageX-ve.left,at=ze.pageY-ve.top;if(this._ownerSVGElement){const Re=this._ownerSVGElement.getScreenCTM();if(Re){const st=this._ownerSVGElement.createSVGPoint();return st.x=tt,st.y=at,st.matrixTransform(Re.inverse())}}return{x:tt,y:at}}_getConstrainedPointerPosition(me){const ve=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ze,y:tt}=this.constrainPosition?this.constrainPosition(me,this,this._initialClientRect,this._pickupPositionInElement):me;if("x"===this.lockAxis||"x"===ve?tt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ve)&&(ze=this._pickupPositionOnPage.x),this._boundaryRect){const{x:at,y:Re}=this._pickupPositionInElement,st=this._boundaryRect,{width:Pt,height:jt}=this._getPreviewRect(),cn=st.top+Re,Xt=st.bottom-(jt-Re);ze=Xe(ze,st.left+at,st.right-(Pt-at)),tt=Xe(tt,cn,Xt)}return{x:ze,y:tt}}_updatePointerDirectionDelta(me){const{x:ve,y:ze}=me,tt=this._pointerDirectionDelta,at=this._pointerPositionAtLastDirectionChange,Re=Math.abs(ve-at.x),st=Math.abs(ze-at.y);return Re>this._config.pointerDirectionChangeThreshold&&(tt.x=ve>at.x?1:-1,at.x=ve),st>this._config.pointerDirectionChangeThreshold&&(tt.y=ze>at.y?1:-1,at.y=ze),tt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const me=this._handles.length>0||!this.isDragging();me!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=me,v(this._rootElement,me))}_removeRootElementListeners(me){me.removeEventListener("mousedown",this._pointerDown,se),me.removeEventListener("touchstart",this._pointerDown,G),me.removeEventListener("dragstart",this._nativeDragStart,se)}_applyRootElementTransform(me,ve){const ze=ct(me,ve),tt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=tt.transform&&"none"!=tt.transform?tt.transform:""),tt.transform=B(ze,this._initialTransform)}_applyPreviewTransform(me,ve){var ze;const tt=null!==(ze=this._previewTemplate)&&void 0!==ze&&ze.template?void 0:this._initialTransform,at=ct(me,ve);this._preview.style.transform=B(at,tt)}_getDragDistance(me){const ve=this._pickupPositionOnPage;return ve?{x:me.x-ve.x,y:me.y-ve.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:me,y:ve}=this._passiveTransform;if(0===me&&0===ve||this.isDragging()||!this._boundaryElement)return;const ze=this._rootElement.getBoundingClientRect(),tt=this._boundaryElement.getBoundingClientRect();if(0===tt.width&&0===tt.height||0===ze.width&&0===ze.height)return;const at=tt.left-ze.left,Re=ze.right-tt.right,st=tt.top-ze.top,Pt=ze.bottom-tt.bottom;tt.width>ze.width?(at>0&&(me+=at),Re>0&&(me-=Re)):me=0,tt.height>ze.height?(st>0&&(ve+=st),Pt>0&&(ve-=Pt)):ve=0,(me!==this._passiveTransform.x||ve!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ve,x:me})}_getDragStartDelay(me){const ve=this.dragStartDelay;return"number"==typeof ve?ve:_t(me)?ve.touch:ve?ve.mouse:0}_updateOnScroll(me){const ve=this._parentPositions.handleScroll(me);if(ve){const ze=(0,w.sA)(me);this._boundaryRect&&ze!==this._boundaryElement&&ze.contains(this._boundaryElement)&&we(this._boundaryRect,ve.top,ve.left),this._pickupPositionOnPage.x+=ve.left,this._pickupPositionOnPage.y+=ve.top,this._dropContainer||(this._activeTransform.x-=ve.left,this._activeTransform.y-=ve.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var me;return(null===(me=this._parentPositions.positions.get(this._document))||void 0===me?void 0:me.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(me,ve){const ze=this._previewContainer||"global";if("parent"===ze)return me;if("global"===ze){const tt=this._document;return ve||tt.fullscreenElement||tt.webkitFullscreenElement||tt.mozFullScreenElement||tt.msFullscreenElement||tt.body}return(0,g.fI)(ze)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(me){return this._handles.find(ve=>me.target&&(me.target===ve||ve.contains(me.target)))}}function ct(Be,me){return`translate3d(${Math.round(Be)}px, ${Math.round(me)}px, 0)`}function Xe(Be,me,ve){return Math.max(me,Math.min(ve,Be))}function _t(Be){return"t"===Be.type[0]}function Je(Be,me){const ve=Be.rootNodes;if(1===ve.length&&ve[0].nodeType===me.ELEMENT_NODE)return ve[0];const ze=me.createElement("div");return ve.forEach(tt=>ze.appendChild(tt)),ze}function gt(Be,me){Be.style.width=`${me.width}px`,Be.style.height=`${me.height}px`,Be.style.transform=ct(me.left,me.top)}function Y(Be,me,ve){const ze=re(me,Be.length-1),tt=re(ve,Be.length-1);if(ze===tt)return;const at=Be[ze],Re=tt0)return null;const st="horizontal"===this.orientation,Pt=at.findIndex(Ct=>Ct.drag===me),jt=at[Re],Xt=jt.clientRect,sn=Pt>Re?1:-1,mn=this._getItemOffsetPx(at[Pt].clientRect,Xt,sn),Nt=this._getSiblingOffsetPx(Pt,at,sn),Rt=at.slice();return Y(at,Pt,Re),at.forEach((Ct,Ut)=>{if(Rt[Ut]===Ct)return;const Qt=Ct.drag===me,An=Qt?mn:Nt,Dt=Qt?me.getPlaceholderElement():Ct.drag.getRootElement();Ct.offset+=An,st?(Dt.style.transform=B(`translate3d(${Math.round(Ct.offset)}px, 0, 0)`,Ct.initialTransform),we(Ct.clientRect,0,An)):(Dt.style.transform=B(`translate3d(0, ${Math.round(Ct.offset)}px, 0)`,Ct.initialTransform),we(Ct.clientRect,An,0))}),this._previousSwap.overlaps=Me(Xt,ve,ze),this._previousSwap.drag=jt.drag,this._previousSwap.delta=st?tt.x:tt.y,{previousIndex:Pt,currentIndex:Re}}enter(me,ve,ze,tt){const at=null==tt||tt<0?this._getItemIndexFromPointerPosition(me,ve,ze):tt,Re=this._activeDraggables,st=Re.indexOf(me),Pt=me.getPlaceholderElement();let jt=Re[at];if(jt===me&&(jt=Re[at+1]),!jt&&(null==at||-1===at||at-1&&Re.splice(st,1),jt&&!this._dragDropRegistry.isDragging(jt)){const cn=jt.getRootElement();cn.parentElement.insertBefore(Pt,cn),Re.splice(at,0,me)}else(0,g.fI)(this._element).appendChild(Pt),Re.push(me);Pt.style.transform="",this._cacheItemPositions()}withItems(me){this._activeDraggables=me.slice(),this._cacheItemPositions()}withSortPredicate(me){this._sortPredicate=me}reset(){this._activeDraggables.forEach(me=>{const ve=me.getRootElement();if(ve){var ze;const tt=null===(ze=this._itemPositions.find(at=>at.drag===me))||void 0===ze?void 0:ze.initialTransform;ve.style.transform=tt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(me){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ze=>ze.drag===me)}updateOnScroll(me,ve){this._itemPositions.forEach(({clientRect:ze})=>{we(ze,me,ve)}),this._itemPositions.forEach(({drag:ze})=>{this._dragDropRegistry.isDragging(ze)&&ze._sortFromLastPointerPosition()})}_cacheItemPositions(){const me="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ve=>{const ze=ve.getVisibleElement();return{drag:ve,offset:0,initialTransform:ze.style.transform||"",clientRect:ye(ze)}}).sort((ve,ze)=>me?ve.clientRect.left-ze.clientRect.left:ve.clientRect.top-ze.clientRect.top)}_getItemOffsetPx(me,ve,ze){const tt="horizontal"===this.orientation;let at=tt?ve.left-me.left:ve.top-me.top;return-1===ze&&(at+=tt?ve.width-me.width:ve.height-me.height),at}_getSiblingOffsetPx(me,ve,ze){const tt="horizontal"===this.orientation,at=ve[me].clientRect,Re=ve[me+-1*ze];let st=at[tt?"width":"height"]*ze;if(Re){const Pt=tt?"left":"top",jt=tt?"right":"bottom";-1===ze?st-=Re.clientRect[Pt]-at[jt]:st+=at[Pt]-Re.clientRect[jt]}return st}_shouldEnterAsFirstChild(me,ve){if(!this._activeDraggables.length)return!1;const ze=this._itemPositions,tt="horizontal"===this.orientation;if(ze[0].drag!==this._activeDraggables[0]){const Re=ze[ze.length-1].clientRect;return tt?me>=Re.right:ve>=Re.bottom}{const Re=ze[0].clientRect;return tt?me<=Re.left:ve<=Re.top}}_getItemIndexFromPointerPosition(me,ve,ze,tt){const at="horizontal"===this.orientation,Re=this._itemPositions.findIndex(({drag:st,clientRect:Pt})=>{if(st===me)return!1;if(tt){const jt=at?tt.x:tt.y;if(st===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return at?ve>=Math.floor(Pt.left)&&ve=Math.floor(Pt.top)&&ze!0,this.sortPredicate=()=>!0,this.beforeStarted=new T.x,this.entered=new T.x,this.exited=new T.x,this.dropped=new T.x,this.sorted=new T.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,S.F)(0,U.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Re=this._scrollNode,st=this.autoScrollStep;1===this._verticalScrollDirection?Re.scrollBy(0,-st):2===this._verticalScrollDirection&&Re.scrollBy(0,st),1===this._horizontalScrollDirection?Re.scrollBy(-st,0):2===this._horizontalScrollDirection&&Re.scrollBy(st,0)})},this.element=(0,g.fI)(me),this._document=ze,this.withScrollableParents([this.element]),ve.registerDropContainer(this),this._parentPositions=new ce(ze),this._sortStrategy=new Se(this.element,ve),this._sortStrategy.withSortPredicate((Re,st)=>this.sortPredicate(Re,st,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(me,ve,ze,tt){this._draggingStarted(),null==tt&&this.sortingDisabled&&(tt=this._draggables.indexOf(me)),this._sortStrategy.enter(me,ve,ze,tt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:me,container:this,currentIndex:this.getItemIndex(me)})}exit(me){this._reset(),this.exited.next({item:me,container:this})}drop(me,ve,ze,tt,at,Re,st,Pt={}){this._reset(),this.dropped.next({item:me,currentIndex:ve,previousIndex:ze,container:this,previousContainer:tt,isPointerOverContainer:at,distance:Re,dropPoint:st,event:Pt})}withItems(me){const ve=this._draggables;return this._draggables=me,me.forEach(ze=>ze._withDropContainer(this)),this.isDragging()&&(ve.filter(tt=>tt.isDragging()).every(tt=>-1===me.indexOf(tt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(me){return this._sortStrategy.direction=me,this}connectedTo(me){return this._siblings=me.slice(),this}withOrientation(me){return this._sortStrategy.orientation=me,this}withScrollableParents(me){const ve=(0,g.fI)(this.element);return this._scrollableElements=-1===me.indexOf(ve)?[ve,...me]:me.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(me){return this._isDragging?this._sortStrategy.getItemIndex(me):this._draggables.indexOf(me)}isReceiving(){return this._activeSiblings.size>0}_sortItem(me,ve,ze,tt){if(this.sortingDisabled||!this._clientRect||!Ge(this._clientRect,.05,ve,ze))return;const at=this._sortStrategy.sort(me,ve,ze,tt);at&&this.sorted.next({previousIndex:at.previousIndex,currentIndex:at.currentIndex,container:this,item:me})}_startScrollingIfNecessary(me,ve){if(this.autoScrollDisabled)return;let ze,tt=0,at=0;if(this._parentPositions.positions.forEach((Re,st)=>{st===this._document||!Re.clientRect||ze||Ge(Re.clientRect,.05,me,ve)&&([tt,at]=function i(Be,me,ve,ze){const tt=P(me,ze),at=H(me,ve);let Re=0,st=0;if(tt){const Pt=Be.scrollTop;1===tt?Pt>0&&(Re=1):Be.scrollHeight-Pt>Be.clientHeight&&(Re=2)}if(at){const Pt=Be.scrollLeft;1===at?Pt>0&&(st=1):Be.scrollWidth-Pt>Be.clientWidth&&(st=2)}return[Re,st]}(st,Re.clientRect,me,ve),(tt||at)&&(ze=st))}),!tt&&!at){const{width:Re,height:st}=this._viewportRuler.getViewportSize(),Pt={width:Re,height:st,top:0,right:Re,bottom:st,left:0};tt=P(Pt,ve),at=H(Pt,me),ze=window}ze&&(tt!==this._verticalScrollDirection||at!==this._horizontalScrollDirection||ze!==this._scrollNode)&&(this._verticalScrollDirection=tt,this._horizontalScrollDirection=at,this._scrollNode=ze,(tt||at)&&ze?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const me=(0,g.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=me.msScrollSnapType||me.scrollSnapType||"",me.scrollSnapType=me.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const me=(0,g.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(me).clientRect}_reset(){this._isDragging=!1;const me=(0,g.fI)(this.element).style;me.scrollSnapType=me.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ve=>ve._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(me,ve){return null!=this._clientRect&&Me(this._clientRect,me,ve)}_getSiblingContainerFromPosition(me,ve,ze){return this._siblings.find(tt=>tt._canReceive(me,ve,ze))}_canReceive(me,ve,ze){if(!this._clientRect||!Me(this._clientRect,ve,ze)||!this.enterPredicate(me,this))return!1;const tt=this._getShadowRoot().elementFromPoint(ve,ze);if(!tt)return!1;const at=(0,g.fI)(this.element);return tt===at||at.contains(tt)}_startReceiving(me,ve){const ze=this._activeSiblings;!ze.has(me)&&ve.every(tt=>this.enterPredicate(tt,this)||this._draggables.indexOf(tt)>-1)&&(ze.add(me),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(me){this._activeSiblings.delete(me),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(me=>{if(this.isDragging()){const ve=this._parentPositions.handleScroll(me);ve&&this._sortStrategy.updateOnScroll(ve.top,ve.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const me=(0,w.kV)((0,g.fI)(this.element));this._cachedShadowRoot=me||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const me=this._sortStrategy.getActiveItemsSnapshot().filter(ve=>ve.isDragging());this._siblings.forEach(ve=>ve._startReceiving(this,me))}}function P(Be,me){const{top:ve,bottom:ze,height:tt}=Be,at=.05*tt;return me>=ve-at&&me<=ve+at?1:me>=ze-at&&me<=ze+at?2:0}function H(Be,me){const{left:ve,right:ze,width:tt}=Be,at=.05*tt;return me>=ve-at&&me<=ve+at?1:me>=ze-at&&me<=ze+at?2:0}const o=(0,w.i$)({passive:!1,capture:!0});let f=(()=>{class Be{constructor(ve,ze){this._ngZone=ve,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=tt=>tt.isDragging(),this.pointerMove=new T.x,this.pointerUp=new T.x,this.scroll=new T.x,this._preventDefaultWhileDragging=tt=>{this._activeDragInstances.length>0&&tt.preventDefault()},this._persistentTouchmoveListener=tt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&tt.preventDefault(),this.pointerMove.next(tt))},this._document=ze}registerDropContainer(ve){this._dropInstances.has(ve)||this._dropInstances.add(ve)}registerDragItem(ve){this._dragInstances.add(ve),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,o)})}removeDropContainer(ve){this._dropInstances.delete(ve)}removeDragItem(ve){this._dragInstances.delete(ve),this.stopDragging(ve),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,o)}startDragging(ve,ze){if(!(this._activeDragInstances.indexOf(ve)>-1)&&(this._activeDragInstances.push(ve),1===this._activeDragInstances.length)){const tt=ze.type.startsWith("touch");this._globalListeners.set(tt?"touchend":"mouseup",{handler:at=>this.pointerUp.next(at),options:!0}).set("scroll",{handler:at=>this.scroll.next(at),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:o}),tt||this._globalListeners.set("mousemove",{handler:at=>this.pointerMove.next(at),options:o}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((at,Re)=>{this._document.addEventListener(Re,at.handler,at.options)})})}}stopDragging(ve){const ze=this._activeDragInstances.indexOf(ve);ze>-1&&(this._activeDragInstances.splice(ze,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ve){return this._activeDragInstances.indexOf(ve)>-1}scrolled(ve){const ze=[this.scroll];return ve&&ve!==this._document&&ze.push(new _.y(tt=>this._ngZone.runOutsideAngular(()=>{const Re=st=>{this._activeDragInstances.length&&tt.next(st)};return ve.addEventListener("scroll",Re,!0),()=>{ve.removeEventListener("scroll",Re,!0)}}))),(0,V.T)(...ze)}ngOnDestroy(){this._dragInstances.forEach(ve=>this.removeDragItem(ve)),this._dropInstances.forEach(ve=>this.removeDropContainer(ve)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ve,ze)=>{this._document.removeEventListener(ze,ve.handler,ve.options)}),this._globalListeners.clear()}}return Be.\u0275fac=function(ve){return new(ve||Be)(e.LFG(e.R0b),e.LFG(c.K0))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const l={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Be{constructor(ve,ze,tt,at){this._document=ve,this._ngZone=ze,this._viewportRuler=tt,this._dragDropRegistry=at}createDrag(ve,ze=l){return new Oe(ve,ze,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ve){return new Ue(ve,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Be.\u0275fac=function(ve){return new(ve||Be)(e.LFG(c.K0),e.LFG(e.R0b),e.LFG(A.rL),e.LFG(f))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const n=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),s=new e.OlP("CDK_DRAG_CONFIG");let p=0;const M=new e.OlP("CdkDropList");let _e=(()=>{class Be{constructor(ve,ze,tt,at,Re,st,Pt){this.element=ve,this._changeDetectorRef=tt,this._scrollDispatcher=at,this._dir=Re,this._group=st,this._destroyed=new T.x,this.connectedTo=[],this.id="cdk-drop-list-"+p++,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=ze.createDropList(ve),this._dropListRef.data=this,Pt&&this._assignDefaults(Pt),this._dropListRef.enterPredicate=(jt,cn)=>this.enterPredicate(jt.data,cn.data),this._dropListRef.sortPredicate=(jt,cn,Xt)=>this.sortPredicate(jt,cn.data,Xt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Be._dropLists.push(this),st&&st._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ve){this._dropListRef.disabled=this._disabled=(0,g.Ig)(ve)}addItem(ve){this._unsortedItems.add(ve),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ve){this._unsortedItems.delete(ve),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ve,ze)=>ve._dragRef.getVisibleElement().compareDocumentPosition(ze._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ve=Be._dropLists.indexOf(this);ve>-1&&Be._dropLists.splice(ve,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ve){this._dir&&this._dir.change.pipe((0,Q.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(ze=>ve.withDirection(ze)),ve.beforeStarted.subscribe(()=>{const ze=(0,g.Eq)(this.connectedTo).map(tt=>"string"==typeof tt?Be._dropLists.find(Re=>Re.id===tt):tt);if(this._group&&this._group._items.forEach(tt=>{-1===ze.indexOf(tt)&&ze.push(tt)}),!this._scrollableParentsResolved){const tt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(at=>at.getElementRef().nativeElement);this._dropListRef.withScrollableParents(tt),this._scrollableParentsResolved=!0}ve.disabled=this.disabled,ve.lockAxis=this.lockAxis,ve.sortingDisabled=(0,g.Ig)(this.sortingDisabled),ve.autoScrollDisabled=(0,g.Ig)(this.autoScrollDisabled),ve.autoScrollStep=(0,g.su)(this.autoScrollStep,2),ve.connectedTo(ze.filter(tt=>tt&&tt!==this).map(tt=>tt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ve){ve.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ve.entered.subscribe(ze=>{this.entered.emit({container:this,item:ze.item.data,currentIndex:ze.currentIndex})}),ve.exited.subscribe(ze=>{this.exited.emit({container:this,item:ze.item.data}),this._changeDetectorRef.markForCheck()}),ve.sorted.subscribe(ze=>{this.sorted.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,container:this,item:ze.item.data})}),ve.dropped.subscribe(ze=>{this.dropped.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,previousContainer:ze.previousContainer.data,container:ze.container.data,item:ze.item.data,isPointerOverContainer:ze.isPointerOverContainer,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(ve){const{lockAxis:ze,draggingDisabled:tt,sortingDisabled:at,listAutoScrollDisabled:Re,listOrientation:st}=ve;this.disabled=tt??!1,this.sortingDisabled=at??!1,this.autoScrollDisabled=Re??!1,this.orientation=st||"vertical",ze&&(this.lockAxis=ze)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ve=>ve._dragRef))}}return Be._dropLists=[],Be.\u0275fac=function(ve){return new(ve||Be)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(A.mF),e.Y36(de.Is,8),e.Y36(t,12),e.Y36(s,8))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(ve,ze){2&ve&&(e.uIk("id",ze.id),e.ekj("cdk-drop-list-disabled",ze.disabled)("cdk-drop-list-dragging",ze._dropListRef.isDragging())("cdk-drop-list-receiving",ze._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:M,useExisting:Be}])]}),Be})();const bt=new e.OlP("CdkDragHandle"),on=new e.OlP("CdkDragPlaceholder"),ft=new e.OlP("CdkDragPreview");let Qe=(()=>{class Be{constructor(ve,ze,tt,at,Re,st,Pt,jt,cn,Xt,sn){this.element=ve,this.dropContainer=ze,this._ngZone=at,this._viewContainerRef=Re,this._dir=Pt,this._changeDetectorRef=cn,this._selfHandle=Xt,this._parentDrag=sn,this._destroyed=new T.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new _.y(mn=>{const Nt=this._dragRef.moved.pipe((0,te.U)(Rt=>({source:this,pointerPosition:Rt.pointerPosition,event:Rt.event,delta:Rt.delta,distance:Rt.distance}))).subscribe(mn);return()=>{Nt.unsubscribe()}}),this._dragRef=jt.createDrag(ve,{dragStartThreshold:st&&null!=st.dragStartThreshold?st.dragStartThreshold:5,pointerDirectionChangeThreshold:st&&null!=st.pointerDirectionChangeThreshold?st.pointerDirectionChangeThreshold:5,zIndex:st?.zIndex}),this._dragRef.data=this,Be._dragInstances.push(this),st&&this._assignDefaults(st),ze&&(this._dragRef._withDropContainer(ze._dropListRef),ze.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ve){this._disabled=(0,g.Ig)(ve),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(ve){this._dragRef.setFreeDragPosition(ve)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,oe.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ve){const ze=ve.rootElementSelector,tt=ve.freeDragPosition;ze&&!ze.firstChange&&this._updateRootElement(),tt&&!tt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ve=Be._dragInstances.indexOf(this);ve>-1&&Be._dragInstances.splice(ve,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const ve=this.element.nativeElement;let ze=ve;var tt;this.rootElementSelector&&(ze=void 0!==ve.closest?ve.closest(this.rootElementSelector):null===(tt=ve.parentElement)||void 0===tt?void 0:tt.closest(this.rootElementSelector)),this._dragRef.withRootElement(ze||ve)}_getBoundaryElement(){const ve=this.boundaryElement;return ve?"string"==typeof ve?this.element.nativeElement.closest(ve):(0,g.fI)(ve):null}_syncInputs(ve){ve.beforeStarted.subscribe(()=>{if(!ve.isDragging()){const ze=this._dir,tt=this.dragStartDelay,at=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Re=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ve.disabled=this.disabled,ve.lockAxis=this.lockAxis,ve.dragStartDelay="object"==typeof tt&&tt?tt:(0,g.su)(tt),ve.constrainPosition=this.constrainPosition,ve.previewClass=this.previewClass,ve.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(at).withPreviewTemplate(Re).withPreviewContainer(this.previewContainer||"global"),ze&&ve.withDirection(ze.value)}}),ve.beforeStarted.pipe((0,oe.q)(1)).subscribe(()=>{if(this._parentDrag)return void ve.withParent(this._parentDrag._dragRef);let ze=this.element.nativeElement.parentElement;for(;ze;){if(ze.classList.contains("cdk-drag")){var tt;ve.withParent((null===(tt=Be._dragInstances.find(at=>at.element.nativeElement===ze))||void 0===tt?void 0:tt._dragRef)||null);break}ze=ze.parentElement}})}_handleEvents(ve){ve.started.subscribe(ze=>{this.started.emit({source:this,event:ze.event}),this._changeDetectorRef.markForCheck()}),ve.released.subscribe(ze=>{this.released.emit({source:this,event:ze.event})}),ve.ended.subscribe(ze=>{this.ended.emit({source:this,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event}),this._changeDetectorRef.markForCheck()}),ve.entered.subscribe(ze=>{this.entered.emit({container:ze.container.data,item:this,currentIndex:ze.currentIndex})}),ve.exited.subscribe(ze=>{this.exited.emit({container:ze.container.data,item:this})}),ve.dropped.subscribe(ze=>{this.dropped.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,previousContainer:ze.previousContainer.data,container:ze.container.data,isPointerOverContainer:ze.isPointerOverContainer,item:this,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event})})}_assignDefaults(ve){const{lockAxis:ze,dragStartDelay:tt,constrainPosition:at,previewClass:Re,boundaryElement:st,draggingDisabled:Pt,rootElementSelector:jt,previewContainer:cn}=ve;this.disabled=Pt??!1,this.dragStartDelay=tt||0,ze&&(this.lockAxis=ze),at&&(this.constrainPosition=at),Re&&(this.previewClass=Re),st&&(this.boundaryElement=st),jt&&(this.rootElementSelector=jt),cn&&(this.previewContainer=cn)}_setupHandlesListener(){this._handles.changes.pipe((0,Q.O)(this._handles),(0,ee.b)(ve=>{const ze=ve.filter(tt=>tt._parentDrag===this).map(tt=>tt.element);this._selfHandle&&this.rootElementSelector&&ze.push(this.element),this._dragRef.withHandles(ze)}),(0,le.w)(ve=>(0,V.T)(...ve.map(ze=>ze._stateChanges.pipe((0,Q.O)(ze))))),(0,z.R)(this._destroyed)).subscribe(ve=>{const ze=this._dragRef,tt=ve.element.nativeElement;ve.disabled?ze.disableHandle(tt):ze.enableHandle(tt)})}}return Be._dragInstances=[],Be.\u0275fac=function(ve){return new(ve||Be)(e.Y36(e.SBq),e.Y36(M,12),e.Y36(c.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(s,8),e.Y36(de.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(bt,10),e.Y36(n,12))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","cdkDrag",""]],contentQueries:function(ve,ze,tt){if(1&ve&&(e.Suo(tt,ft,5),e.Suo(tt,on,5),e.Suo(tt,bt,5)),2&ve){let at;e.iGM(at=e.CRH())&&(ze._previewTemplate=at.first),e.iGM(at=e.CRH())&&(ze._placeholderTemplate=at.first),e.iGM(at=e.CRH())&&(ze._handles=at)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ve,ze){2&ve&&e.ekj("cdk-drag-disabled",ze.disabled)("cdk-drag-dragging",ze._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:n,useExisting:Be}]),e.TTD]}),Be})(),qe=(()=>{class Be{}return Be.\u0275fac=function(ve){return new(ve||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({providers:[a],imports:[A.ZD]}),Be})()},29521:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>$,JH:()=>Te,JU:()=>C,K5:()=>g,Ku:()=>z,LH:()=>le,L_:()=>V,MW:()=>s,Mf:()=>A,OC:()=>mt,SV:()=>de,Sd:()=>oe,VM:()=>Q,Vb:()=>Ji,Z:()=>r,ZH:()=>c,aO:()=>xe,b2:()=>Hn,hY:()=>_,jx:()=>T,oh:()=>ee,uR:()=>te,xE:()=>q,yY:()=>W,zL:()=>E});const c=8,A=9,g=13,C=16,T=17,E=18,_=27,V=32,z=33,Q=34,te=35,oe=36,ee=37,le=38,de=39,Te=40,W=46,q=48,xe=57,$=65,r=90,s=91,mt=188,Hn=224;function Ji(Gn,...Yn){return Yn.length?Yn.some(Vi=>Gn[Vi]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},62289:(Ye,pe,h)=>{"use strict";h.d(pe,{Yg:()=>Te,u3:()=>L});var e=h(94650),c=h(21281),A=h(77579),w=h(39841),g=h(97272),C=h(69751),T=h(95698),E=h(35684),S=h(78372),U=h(54004),_=h(68675),V=h(82722),z=h(83353);const te=new Set;let oe,ee=(()=>{class B{constructor(q){this._platform=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):de}matchMedia(q){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(B){if(!te.has(B))try{oe||(oe=document.createElement("style"),oe.setAttribute("type","text/css"),document.head.appendChild(oe)),oe.sheet&&(oe.sheet.insertRule(`@media ${B} {body{ }}`,0),te.add(B))}catch(W){console.error(W)}}(q),this._matchMedia(q)}}return B.\u0275fac=function(q){return new(q||B)(e.LFG(z.t4))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function de(B){return{matches:"all"===B||""===B,media:B,addListener:()=>{},removeListener:()=>{}}}let Te=(()=>{class B{constructor(q,ue){this._mediaMatcher=q,this._zone=ue,this._queries=new Map,this._destroySubject=new A.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(q){return v((0,c.Eq)(q)).some(ye=>this._registerQuery(ye).mql.matches)}observe(q){const ye=v((0,c.Eq)(q)).map(we=>this._registerQuery(we).observable);let Me=(0,w.a)(ye);return Me=(0,g.z)(Me.pipe((0,T.q)(1)),Me.pipe((0,E.T)(1),(0,S.b)(0))),Me.pipe((0,U.U)(we=>{const Ge={matches:!1,breakpoints:{}};return we.forEach(({matches:ce,query:Ze})=>{Ge.matches=Ge.matches||ce,Ge.breakpoints[Ze]=ce}),Ge}))}_registerQuery(q){if(this._queries.has(q))return this._queries.get(q);const ue=this._mediaMatcher.matchMedia(q),Me={observable:new C.y(we=>{const Ge=ce=>this._zone.run(()=>we.next(ce));return ue.addListener(Ge),()=>{ue.removeListener(Ge)}}).pipe((0,_.O)(ue),(0,U.U)(({matches:we})=>({query:q,matches:we})),(0,V.R)(this._destroySubject)),mql:ue};return this._queries.set(q,Me),Me}}return B.\u0275fac=function(q){return new(q||B)(e.LFG(ee),e.LFG(e.R0b))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function v(B){return B.map(W=>W.split(",")).reduce((W,q)=>W.concat(q)).map(W=>W.trim())}const L={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(Ye,pe,h)=>{"use strict";h.d(pe,{Q8:()=>S,wD:()=>E});var e=h(21281),c=h(94650),A=h(69751),w=h(77579),g=h(78372);let C=(()=>{class U{create(V){return typeof MutationObserver>"u"?null:new MutationObserver(V)}}return U.\u0275fac=function(V){return new(V||U)},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),T=(()=>{class U{constructor(V){this._mutationObserverFactory=V,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((V,z)=>this._cleanupObserver(z))}observe(V){const z=(0,e.fI)(V);return new A.y(Q=>{const oe=this._observeElement(z).subscribe(Q);return()=>{oe.unsubscribe(),this._unobserveElement(z)}})}_observeElement(V){if(this._observedElements.has(V))this._observedElements.get(V).count++;else{const z=new w.x,Q=this._mutationObserverFactory.create(te=>z.next(te));Q&&Q.observe(V,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(V,{observer:Q,stream:z,count:1})}return this._observedElements.get(V).stream}_unobserveElement(V){this._observedElements.has(V)&&(this._observedElements.get(V).count--,this._observedElements.get(V).count||this._cleanupObserver(V))}_cleanupObserver(V){if(this._observedElements.has(V)){const{observer:z,stream:Q}=this._observedElements.get(V);z&&z.disconnect(),Q.complete(),this._observedElements.delete(V)}}}return U.\u0275fac=function(V){return new(V||U)(c.LFG(C))},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),E=(()=>{class U{constructor(V,z,Q){this._contentObserver=V,this._elementRef=z,this._ngZone=Q,this.event=new c.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,e.Ig)(V),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(V){this._debounce=(0,e.su)(V),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const V=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?V.pipe((0,g.b)(this.debounce)):V).subscribe(this.event)})}_unsubscribe(){var V;null===(V=this._currentSubscription)||void 0===V||V.unsubscribe()}}return U.\u0275fac=function(V){return new(V||U)(c.Y36(T),c.Y36(c.SBq),c.Y36(c.R0b))},U.\u0275dir=c.lG2({type:U,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=c.oAB({type:U}),U.\u0275inj=c.cJS({providers:[C]}),U})()},98184:(Ye,pe,h)=>{"use strict";h.d(pe,{Iu:()=>xe,U8:()=>Ue,X_:()=>W,Xj:()=>he,_G:()=>G,aV:()=>Y,pI:()=>Se,xu:()=>re});var e=h(67376),c=h(36895),A=h(94650),w=h(21281),g=h(83353),C=h(40445),T=h(84080),E=h(77579),S=h(50727),U=h(56451),_=h(95698),V=h(82722),z=h(22529),Q=h(29521);const te=(0,g.Mq)();class oe{constructor(i,o){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=(0,w.HM)(-this._previousScrollPosition.left),i.style.top=(0,w.HM)(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,f=i.style,l=this._document.body.style,a=f.scrollBehavior||"",n=l.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),te&&(f.scrollBehavior=l.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),te&&(f.scrollBehavior=a,l.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,f=this._viewportRuler.getViewportSize();return o.scrollHeight>f.height||o.scrollWidth>f.width}}class le{constructor(i,o,f,l){this._scrollDispatcher=i,this._ngZone=o,this._viewportRuler=f,this._config=l,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function Te(H,i){return i.some(o=>H.bottomo.bottom||H.righto.right)}function v(H,i){return i.some(o=>H.topo.bottom||H.lefto.right)}class L{constructor(i,o,f,l){this._scrollDispatcher=i,this._viewportRuler=o,this._ngZone=f,this._config=l,this._scrollSubscription=null}attach(i){this._overlayRef=i}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 o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:l}=this._viewportRuler.getViewportSize();Te(o,[{width:f,height:l,bottom:l,right:f,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 B=(()=>{class H{constructor(o,f,l,a){this._scrollDispatcher=o,this._viewportRuler=f,this._ngZone=l,this.noop=()=>new de,this.close=n=>new le(this._scrollDispatcher,this._ngZone,this._viewportRuler,n),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=n=>new L(this._scrollDispatcher,this._viewportRuler,this._ngZone,n),this._document=a}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(e.mF),A.LFG(e.rL),A.LFG(A.R0b),A.LFG(c.K0))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();class W{constructor(i){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const o=Object.keys(i);for(const f of o)void 0!==i[f]&&(this[f]=i[f])}}}class ye{constructor(i,o){this.connectionPair=i,this.scrollableViewProperties=o}}let Ge=(()=>{class H{constructor(o){this._attachedOverlays=[],this._document=o}ngOnDestroy(){this.detach()}add(o){this.remove(o),this._attachedOverlays.push(o)}remove(o){const f=this._attachedOverlays.indexOf(o);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ce=(()=>{class H extends Ge{constructor(o,f){super(o),this._ngZone=f,this._keydownListener=l=>{const a=this._attachedOverlays;for(let n=a.length-1;n>-1;n--)if(a[n]._keydownEvents.observers.length>0){const t=a[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(l)):t.next(l);break}}}add(o){super.add(o),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0),A.LFG(A.R0b,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),Ze=(()=>{class H extends Ge{constructor(o,f,l){super(o),this._platform=f,this._ngZone=l,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,g.sA)(a)},this._clickListener=a=>{const n=(0,g.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;const r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){const d=r[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(n)||d.overlayElement.contains(t))break;const p=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(a)):p.next(a)}}}add(o){if(super.add(o),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const o=this._document.body;o.removeEventListener("pointerdown",this._pointerDownListener,!0),o.removeEventListener("click",this._clickListener,!0),o.removeEventListener("auxclick",this._clickListener,!0),o.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(o.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(o){o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0),A.LFG(g.t4),A.LFG(A.R0b,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),he=(()=>{class H{constructor(o,f){this._platform=f,this._document=o}ngOnDestroy(){var o;null===(o=this._containerElement)||void 0===o||o.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const l=this._document.querySelectorAll(`.${o}[platform="server"], .${o}[platform="test"]`);for(let a=0;athis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new E.x,this._outsidePointerEvents=new E.x,l.scrollStrategy&&(this._scrollStrategy=l.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=l.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const o=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,_.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof o?.onDestroy&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){var i;const o=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===(i=this._host)||void 0===i||i.remove(),this._previousHostParent=this._pane=this._host=null,o&&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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=(0,w.HM)(this._config.width),i.height=(0,w.HM)(this._config.height),i.minWidth=(0,w.HM)(this._config.minWidth),i.minHeight=(0,w.HM)(this._config.minHeight),i.maxWidth=(0,w.HM)(this._config.maxWidth),i.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,o,f){const l=(0,w.Eq)(o||[]).filter(a=>!!a);l.length&&(f?i.classList.add(...l):i.classList.remove(...l))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe((0,V.R)((0,U.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()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const j="cdk-overlay-connected-position-bounding-box",R=/([A-Za-z%]+)$/;class G{constructor(i,o,f,l,a){this._viewportRuler=o,this._document=f,this._platform=l,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E.x,this._resizeSubscription=S.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}get positions(){return this._preferredPositions}attach(i){this._validatePositions(),i.hostElement.classList.add(j),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,o=this._overlayRect,f=this._viewportRect,l=this._containerRect,a=[];let n;for(let t of this._preferredPositions){let r=this._getOriginPoint(i,l,t),s=this._getOverlayPoint(r,o,t),d=this._getOverlayFit(s,o,f,t);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,r);this._canFitWithFlexibleDimensions(d,s,f)?a.push({position:t,origin:r,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(r,t)}):(!n||n.overlayFit.visibleArear&&(r=d,t=s)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,o)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,o,f){let l,a;if("center"==f.originX)l=i.left+i.width/2;else{const n=this._isRtl()?i.right:i.left,t=this._isRtl()?i.left:i.right;l="start"==f.originX?n:t}return o.left<0&&(l-=o.left),a="center"==f.originY?i.top+i.height/2:"top"==f.originY?i.top:i.bottom,o.top<0&&(a-=o.top),{x:l,y:a}}_getOverlayPoint(i,o,f){let l,a;return l="center"==f.overlayX?-o.width/2:"start"===f.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,a="center"==f.overlayY?-o.height/2:"top"==f.overlayY?0:-o.height,{x:i.x+l,y:i.y+a}}_getOverlayFit(i,o,f,l){const a=Ee(o);let{x:n,y:t}=i,r=this._getOffset(l,"x"),s=this._getOffset(l,"y");r&&(n+=r),s&&(t+=s);let M=0-t,_e=t+a.height-f.height,bt=this._subtractOverflows(a.width,0-n,n+a.width-f.width),Vt=this._subtractOverflows(a.height,M,_e),on=bt*Vt;return{visibleArea:on,isCompletelyWithinViewport:a.width*a.height===on,fitsInViewportVertically:Vt===a.height,fitsInViewportHorizontally:bt==a.width}}_canFitWithFlexibleDimensions(i,o,f){if(this._hasFlexibleDimensions){const l=f.bottom-o.y,a=f.right-o.x,n=$(this._overlayRef.getConfig().minHeight),t=$(this._overlayRef.getConfig().minWidth),s=i.fitsInViewportHorizontally||null!=t&&t<=a;return(i.fitsInViewportVertically||null!=n&&n<=l)&&s}return!1}_pushOverlayOnScreen(i,o,f){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const l=Ee(o),a=this._viewportRect,n=Math.max(i.x+l.width-a.width,0),t=Math.max(i.y+l.height-a.height,0),r=Math.max(a.top-f.top-i.y,0),s=Math.max(a.left-f.left-i.x,0);let d=0,p=0;return d=l.width<=a.width?s||-n:i.xbt&&!this._isInitialRender&&!this._growAfterOpen&&(n=i.y-bt/2)}if("end"===o.overlayX&&!l||"start"===o.overlayX&&l)M=f.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===o.overlayX&&!l||"end"===o.overlayX&&l)p=i.x,d=f.right-i.x;else{const _e=Math.min(f.right-i.x+f.left,i.x),bt=this._lastBoundingBoxSize.width;d=2*_e,p=i.x-_e,d>bt&&!this._isInitialRender&&!this._growAfterOpen&&(p=i.x-bt/2)}return{top:n,left:p,bottom:t,right:M,width:d,height:a}}_setBoundingBoxStyles(i,o){const f=this._calculateBoundingBoxRect(i,o);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const l={};if(this._hasExactPosition())l.top=l.left="0",l.bottom=l.right=l.maxHeight=l.maxWidth="",l.width=l.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;l.height=(0,w.HM)(f.height),l.top=(0,w.HM)(f.top),l.bottom=(0,w.HM)(f.bottom),l.width=(0,w.HM)(f.width),l.left=(0,w.HM)(f.left),l.right=(0,w.HM)(f.right),l.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",l.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",a&&(l.maxHeight=(0,w.HM)(a)),n&&(l.maxWidth=(0,w.HM)(n))}this._lastBoundingBoxSize=f,se(this._boundingBox.style,l)}_resetBoundingBoxStyles(){se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,o){const f={},l=this._hasExactPosition(),a=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(l){const d=this._viewportRuler.getViewportScrollPosition();se(f,this._getExactOverlayY(o,i,d)),se(f,this._getExactOverlayX(o,i,d))}else f.position="static";let t="",r=this._getOffset(o,"x"),s=this._getOffset(o,"y");r&&(t+=`translateX(${r}px) `),s&&(t+=`translateY(${s}px)`),f.transform=t.trim(),n.maxHeight&&(l?f.maxHeight=(0,w.HM)(n.maxHeight):a&&(f.maxHeight="")),n.maxWidth&&(l?f.maxWidth=(0,w.HM)(n.maxWidth):a&&(f.maxWidth="")),se(this._pane.style,f)}_getExactOverlayY(i,o,f){let l={top:"",bottom:""},a=this._getOverlayPoint(o,this._overlayRect,i);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),"bottom"===i.overlayY?l.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":l.top=(0,w.HM)(a.y),l}_getExactOverlayX(i,o,f){let n,l={left:"",right:""},a=this._getOverlayPoint(o,this._overlayRect,i);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),n=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===n?l.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":l.left=(0,w.HM)(a.x),l}_getScrollVisibility(){const i=this._getOriginRect(),o=this._pane.getBoundingClientRect(),f=this._scrollables.map(l=>l.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:v(i,f),isOriginOutsideView:Te(i,f),isOverlayClipped:v(o,f),isOverlayOutsideView:Te(o,f)}}_subtractOverflows(i,...o){return o.reduce((f,l)=>f-Math.max(l,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+i-this._viewportMargin,bottom:f.top+o-this._viewportMargin,width:i-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,o){return"x"===o?i.offsetX??this._offsetX:i.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&(0,w.Eq)(i).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof A.SBq)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const o=i.width||0,f=i.height||0;return{top:i.y,bottom:i.y+f,left:i.x,right:i.x+o,height:f,width:o}}}function se(H,i){for(let o in i)i.hasOwnProperty(o)&&(H[o]=i[o]);return H}function $(H){if("number"!=typeof H&&null!=H){const[i,o]=H.split(R);return o&&"px"!==o?null:parseFloat(i)}return H||null}function Ee(H){return{top:Math.floor(H.top),right:Math.floor(H.right),bottom:Math.floor(H.bottom),left:Math.floor(H.left),width:Math.floor(H.width),height:Math.floor(H.height)}}const Xe="cdk-global-overlay-wrapper";class _t{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const o=i.getConfig();this._overlayRef=i,this._width&&!o.width&&i.updateSize({width:this._width}),this._height&&!o.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Xe),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:l,height:a,maxWidth:n,maxHeight:t}=f,r=!("100%"!==l&&"100vw"!==l||n&&"100%"!==n&&"100vw"!==n),s=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),d=this._xPosition,p=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let _e="",bt="",Vt="";r?Vt="flex-start":"center"===d?(Vt="center",M?bt=p:_e=p):M?"left"===d||"end"===d?(Vt="flex-end",_e=p):("right"===d||"start"===d)&&(Vt="flex-start",bt=p):"left"===d||"start"===d?(Vt="flex-start",_e=p):("right"===d||"end"===d)&&(Vt="flex-end",bt=p),i.position=this._cssPosition,i.marginLeft=r?"0":_e,i.marginTop=s?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=r?"0":bt,o.justifyContent=Vt,o.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,f=o.style;o.classList.remove(Xe),f.justifyContent=f.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class H{constructor(o,f,l,a){this._viewportRuler=o,this._document=f,this._platform=l,this._overlayContainer=a}global(){return new _t}flexibleConnectedTo(o){return new G(o,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(e.rL),A.LFG(c.K0),A.LFG(g.t4),A.LFG(he))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),gt=0,Y=(()=>{class H{constructor(o,f,l,a,n,t,r,s,d,p,M,_e){this.scrollStrategies=o,this._overlayContainer=f,this._componentFactoryResolver=l,this._positionBuilder=a,this._keyboardDispatcher=n,this._injector=t,this._ngZone=r,this._document=s,this._directionality=d,this._location=p,this._outsideClickDispatcher=M,this._animationsModuleType=_e}create(o){const f=this._createHostElement(),l=this._createPaneElement(f),a=this._createPortalOutlet(l),n=new W(o);return n.direction=n.direction||this._directionality.value,new xe(a,f,l,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(o){const f=this._document.createElement("div");return f.id="cdk-overlay-"+gt++,f.classList.add("cdk-overlay-pane"),o.appendChild(f),f}_createHostElement(){const o=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalOutlet(o){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new T.u0(o,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(B),A.LFG(he),A.LFG(A._Vd),A.LFG(Je),A.LFG(ce),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(c.K0),A.LFG(C.Is),A.LFG(c.Ye),A.LFG(Ze),A.LFG(A.QbO,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac}),H})();const Ce=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ae=new A.OlP("cdk-connected-overlay-scroll-strategy");let re=(()=>{class H{constructor(o){this.elementRef=o}}return H.\u0275fac=function(o){return new(o||H)(A.Y36(A.SBq))},H.\u0275dir=A.lG2({type:H,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),H})(),Se=(()=>{class H{constructor(o,f,l,a,n){this._overlay=o,this._dir=n,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.w0.EMPTY,this._attachSubscription=S.w0.EMPTY,this._detachSubscription=S.w0.EMPTY,this._positionSubscription=S.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new T.UE(f,l),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(o){this._offsetX=o,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(o){this._offsetY=o,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(o){this._hasBackdrop=(0,w.Ig)(o)}get lockPosition(){return this._lockPosition}set lockPosition(o){this._lockPosition=(0,w.Ig)(o)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(o){this._flexibleDimensions=(0,w.Ig)(o)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(o){this._growAfterOpen=(0,w.Ig)(o)}get push(){return this._push}set push(o){this._push=(0,w.Ig)(o)}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(o){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),o.origin&&this.open&&this._position.apply()),o.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ce);const o=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=o.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=o.detachments().subscribe(()=>this.detach.emit()),o.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===Q.hY&&!this.disableClose&&!(0,Q.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const o=this._position=this.positionStrategy||this._createPositionStrategy(),f=new W({direction:this._dir,positionStrategy:o,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(o){const f=this.positions.map(l=>({originX:l.originX,originY:l.originY,overlayX:l.overlayX,overlayY:l.overlayY,offsetX:l.offsetX||this.offsetX,offsetY:l.offsetY||this.offsetY,panelClass:l.panelClass||void 0}));return o.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const o=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(o),o}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof re?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(o=>{this.backdropClick.emit(o)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(o=>{this.positionChange.emit(o),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return H.\u0275fac=function(o){return new(o||H)(A.Y36(Y),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(ae),A.Y36(C.Is,8))},H.\u0275dir=A.lG2({type:H,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:[A.TTD]}),H})();const be={provide:ae,deps:[Y],useFactory:function Fe(H){return()=>H.scrollStrategies.reposition()}};let Ue=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=A.oAB({type:H}),H.\u0275inj=A.cJS({providers:[Y,be],imports:[C.vT,T.eL,e.Cl,e.Cl]}),H})()},83353:(Ye,pe,h)=>{"use strict";h.d(pe,{Mq:()=>Q,Oy:()=>v,_i:()=>te,ht:()=>de,i$:()=>_,kV:()=>le,qK:()=>E,sA:()=>Te,t4:()=>w,ud:()=>g});var e=h(94650),c=h(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let C,w=(()=>{class L{constructor(W){this._platformId=W,this.isBrowser=this._platformId?(0,c.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&&!A)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return L.\u0275fac=function(W){return new(W||L)(e.LFG(e.Lbi))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),g=(()=>{class L{}return L.\u0275fac=function(W){return new(W||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let L=document.createElement("input");return C=new Set(T.filter(B=>(L.setAttribute("type",B),L.type===B))),C}let S,V,z,oe;function _(L){return function U(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?L:!!L.capture}function Q(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const L=Element.prototype.scrollTo;z=!!L&&!/\{\s*\[native code\]\s*\}/.test(L.toString())}}return z}function te(){if("object"!=typeof document||!document)return 0;if(null==V){const L=document.createElement("div"),B=L.style;L.dir="rtl",B.width="1px",B.overflow="auto",B.visibility="hidden",B.pointerEvents="none",B.position="absolute";const W=document.createElement("div"),q=W.style;q.width="2px",q.height="1px",L.appendChild(W),document.body.appendChild(L),V=0,0===L.scrollLeft&&(L.scrollLeft=1,V=0===L.scrollLeft?1:2),L.remove()}return V}function le(L){if(function ee(){if(null==oe){const L=typeof document<"u"?document.head:null;oe=!(!L||!L.createShadowRoot&&!L.attachShadow)}return oe}()){const B=L.getRootNode?L.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&B instanceof ShadowRoot)return B}return null}function de(){let L=typeof document<"u"&&document?document.activeElement:null;for(;L&&L.shadowRoot;){const B=L.shadowRoot.activeElement;if(B===L)break;L=B}return L}function Te(L){return L.composedPath?L.composedPath()[0]:L.target}function v(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Ye,pe,h)=>{"use strict";h.d(pe,{C5:()=>U,Pl:()=>de,UE:()=>_,eL:()=>v,en:()=>z,ig:()=>ee,u0:()=>te});var e=h(94650),c=h(36895);class S{attach(W){return this._attachedHost=W,W.attach(this)}detach(){let W=this._attachedHost;null!=W&&(this._attachedHost=null,W.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(W){this._attachedHost=W}}class U extends S{constructor(W,q,ue,ye){super(),this.component=W,this.viewContainerRef=q,this.injector=ue,this.componentFactoryResolver=ye}}class _ extends S{constructor(W,q,ue,ye){super(),this.templateRef=W,this.viewContainerRef=q,this.context=ue,this.injector=ye}get origin(){return this.templateRef.elementRef}attach(W,q=this.context){return this.context=q,super.attach(W)}detach(){return this.context=void 0,super.detach()}}class V extends S{constructor(W){super(),this.element=W instanceof e.SBq?W.nativeElement:W}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(W){return W instanceof U?(this._attachedPortal=W,this.attachComponentPortal(W)):W instanceof _?(this._attachedPortal=W,this.attachTemplatePortal(W)):this.attachDomPortal&&W instanceof V?(this._attachedPortal=W,this.attachDomPortal(W)):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(W){this._disposeFn=W}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class te extends z{constructor(W,q,ue,ye,Me){super(),this.outletElement=W,this._componentFactoryResolver=q,this._appRef=ue,this._defaultInjector=ye,this.attachDomPortal=we=>{const Ge=we.element,ce=this._document.createComment("dom-portal");Ge.parentNode.insertBefore(ce,Ge),this.outletElement.appendChild(Ge),this._attachedPortal=we,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(Ge,ce)})},this._document=Me}attachComponentPortal(W){const ue=(W.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(W.component);let ye;return W.viewContainerRef?(ye=W.viewContainerRef.createComponent(ue,W.viewContainerRef.length,W.injector||W.viewContainerRef.injector),this.setDisposeFn(()=>ye.destroy())):(ye=ue.create(W.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=W,ye}attachTemplatePortal(W){let q=W.viewContainerRef,ue=q.createEmbeddedView(W.templateRef,W.context,{injector:W.injector});return ue.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),ue.detectChanges(),this.setDisposeFn(()=>{let ye=q.indexOf(ue);-1!==ye&&q.remove(ye)}),this._attachedPortal=W,ue}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(W){return W.hostView.rootNodes[0]}}let ee=(()=>{class B extends _{constructor(q,ue){super(q,ue)}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e.Rgc),e.Y36(e.s_b))},B.\u0275dir=e.lG2({type:B,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),B})(),de=(()=>{class B extends z{constructor(q,ue,ye){super(),this._componentFactoryResolver=q,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Me=>{const we=Me.element,Ge=this._document.createComment("dom-portal");Me.setAttachedHost(this),we.parentNode.insertBefore(Ge,we),this._getRootNode().appendChild(we),this._attachedPortal=Me,super.setDisposeFn(()=>{Ge.parentNode&&Ge.parentNode.replaceChild(we,Ge)})},this._document=ye}get portal(){return this._attachedPortal}set portal(q){this.hasAttached()&&!q&&!this._isInitialized||(this.hasAttached()&&super.detach(),q&&super.attach(q),this._attachedPortal=q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(q){q.setAttachedHost(this);const ue=null!=q.viewContainerRef?q.viewContainerRef:this._viewContainerRef,Me=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component),we=ue.createComponent(Me,ue.length,q.injector||ue.injector);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(we.hostView.rootNodes[0]),super.setDisposeFn(()=>we.destroy()),this._attachedPortal=q,this._attachedRef=we,this.attached.emit(we),we}attachTemplatePortal(q){q.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(q.templateRef,q.context,{injector:q.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=q,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const q=this._viewContainerRef.element.nativeElement;return q.nodeType===q.ELEMENT_NODE?q:q.parentNode}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(c.K0))},B.\u0275dir=e.lG2({type:B,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),B})(),v=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({}),B})()},67376:(Ye,pe,h)=>{"use strict";h.d(pe,{Cl:()=>_t,N7:()=>se,PQ:()=>ce,ZD:()=>Xe,mF:()=>Ge,rL:()=>he,x0:()=>Ee,xd:()=>Me});var e=h(21281),c=h(94650),A=h(77579),w=h(39646),g=h(69751),C=h(54968),T=h(66406),E=h(53101),S=h(50727),U=h(45191),_=h(71884),V=h(23601),z=h(39300),Q=h(82722),te=h(68675),oe=h(11520),ee=h(63900),le=h(34782),de=h(83353),Te=h(36895),v=h(40445),L=h(95017);const B=["contentWrapper"],W=["*"],q=new c.OlP("VIRTUAL_SCROLL_STRATEGY");class ue{constructor(gt,Y,Ce){this._scrolledIndexChange=new A.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,_.x)()),this._viewport=null,this._itemSize=gt,this._minBufferPx=Y,this._maxBufferPx=Ce}attach(gt){this._viewport=gt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(gt,Y,Ce){this._itemSize=gt,this._minBufferPx=Y,this._maxBufferPx=Ce,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(gt,Y){this._viewport&&this._viewport.scrollToOffset(gt*this._itemSize,Y)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const gt=this._viewport.getRenderedRange(),Y={start:gt.start,end:gt.end},Ce=this._viewport.getViewportSize(),ae=this._viewport.getDataLength();let re=this._viewport.measureScrollOffset(),Se=this._itemSize>0?re/this._itemSize:0;if(Y.end>ae){const be=Math.ceil(Ce/this._itemSize),Ue=Math.max(0,Math.min(Se,ae-be));Se!=Ue&&(Se=Ue,re=Ue*this._itemSize,Y.start=Math.floor(Se)),Y.end=Math.max(0,Math.min(ae,Y.start+be))}const Fe=re-Y.start*this._itemSize;if(Fe0&&(Y.end=Math.min(ae,Y.end+Ue),Y.start=Math.max(0,Math.floor(Se-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Y),this._viewport.setRenderedContentOffset(this._itemSize*Y.start),this._scrolledIndexChange.next(Math.floor(Se))}}function ye(Je){return Je._scrollStrategy}let Me=(()=>{class Je{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(Y){this._itemSize=(0,e.su)(Y)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Y){this._minBufferPx=(0,e.su)(Y)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Y){this._maxBufferPx=(0,e.su)(Y)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275dir=c.lG2({type:Je,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[c._Bn([{provide:q,useFactory:ye,deps:[(0,c.Gpc)(()=>Je)]}]),c.TTD]}),Je})(),Ge=(()=>{class Je{constructor(Y,Ce,ae){this._ngZone=Y,this._platform=Ce,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ae}register(Y){this.scrollContainers.has(Y)||this.scrollContainers.set(Y,Y.elementScrolled().subscribe(()=>this._scrolled.next(Y)))}deregister(Y){const Ce=this.scrollContainers.get(Y);Ce&&(Ce.unsubscribe(),this.scrollContainers.delete(Y))}scrolled(Y=20){return this._platform.isBrowser?new g.y(Ce=>{this._globalSubscription||this._addGlobalListener();const ae=Y>0?this._scrolled.pipe((0,V.e)(Y)).subscribe(Ce):this._scrolled.subscribe(Ce);return this._scrolledCount++,()=>{ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Y,Ce)=>this.deregister(Ce)),this._scrolled.complete()}ancestorScrolled(Y,Ce){const ae=this.getAncestorScrollContainers(Y);return this.scrolled(Ce).pipe((0,z.h)(re=>!re||ae.indexOf(re)>-1))}getAncestorScrollContainers(Y){const Ce=[];return this.scrollContainers.forEach((ae,re)=>{this._scrollableContainsElement(re,Y)&&Ce.push(re)}),Ce}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Y,Ce){let ae=(0,e.fI)(Ce),re=Y.getElementRef().nativeElement;do{if(ae==re)return!0}while(ae=ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Y=this._getWindow();return(0,C.R)(Y.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.LFG(c.R0b),c.LFG(de.t4),c.LFG(Te.K0,8))},Je.\u0275prov=c.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),ce=(()=>{class Je{constructor(Y,Ce,ae,re){this.elementRef=Y,this.scrollDispatcher=Ce,this.ngZone=ae,this.dir=re,this._destroyed=new A.x,this._elementScrolled=new g.y(Se=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(Se)))}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(Y){const Ce=this.elementRef.nativeElement,ae=this.dir&&"rtl"==this.dir.value;null==Y.left&&(Y.left=ae?Y.end:Y.start),null==Y.right&&(Y.right=ae?Y.start:Y.end),null!=Y.bottom&&(Y.top=Ce.scrollHeight-Ce.clientHeight-Y.bottom),ae&&0!=(0,de._i)()?(null!=Y.left&&(Y.right=Ce.scrollWidth-Ce.clientWidth-Y.left),2==(0,de._i)()?Y.left=Y.right:1==(0,de._i)()&&(Y.left=Y.right?-Y.right:Y.right)):null!=Y.right&&(Y.left=Ce.scrollWidth-Ce.clientWidth-Y.right),this._applyScrollToOptions(Y)}_applyScrollToOptions(Y){const Ce=this.elementRef.nativeElement;(0,de.Mq)()?Ce.scrollTo(Y):(null!=Y.top&&(Ce.scrollTop=Y.top),null!=Y.left&&(Ce.scrollLeft=Y.left))}measureScrollOffset(Y){const Ce="left",re=this.elementRef.nativeElement;if("top"==Y)return re.scrollTop;if("bottom"==Y)return re.scrollHeight-re.clientHeight-re.scrollTop;const Se=this.dir&&"rtl"==this.dir.value;return"start"==Y?Y=Se?"right":Ce:"end"==Y&&(Y=Se?Ce:"right"),Se&&2==(0,de._i)()?Y==Ce?re.scrollWidth-re.clientWidth-re.scrollLeft:re.scrollLeft:Se&&1==(0,de._i)()?Y==Ce?re.scrollLeft+re.scrollWidth-re.clientWidth:-re.scrollLeft:Y==Ce?re.scrollLeft:re.scrollWidth-re.clientWidth-re.scrollLeft}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(Ge),c.Y36(c.R0b),c.Y36(v.Is,8))},Je.\u0275dir=c.lG2({type:Je,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Je})(),he=(()=>{class Je{constructor(Y,Ce,ae){this._platform=Y,this._change=new A.x,this._changeListener=re=>{this._change.next(re)},this._document=ae,Ce.runOutsideAngular(()=>{if(Y.isBrowser){const re=this._getWindow();re.addEventListener("resize",this._changeListener),re.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Y=this._getWindow();Y.removeEventListener("resize",this._changeListener),Y.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Y={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Y}getViewportRect(){const Y=this.getViewportScrollPosition(),{width:Ce,height:ae}=this.getViewportSize();return{top:Y.top,left:Y.left,bottom:Y.top+ae,right:Y.left+Ce,height:ae,width:Ce}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Y=this._document,Ce=this._getWindow(),ae=Y.documentElement,re=ae.getBoundingClientRect();return{top:-re.top||Y.body.scrollTop||Ce.scrollY||ae.scrollTop||0,left:-re.left||Y.body.scrollLeft||Ce.scrollX||ae.scrollLeft||0}}change(Y=20){return Y>0?this._change.pipe((0,V.e)(Y)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Y=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Y.innerWidth,height:Y.innerHeight}:{width:0,height:0}}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.LFG(de.t4),c.LFG(c.R0b),c.LFG(Te.K0,8))},Je.\u0275prov=c.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const xe=new c.OlP("VIRTUAL_SCROLLABLE");let j=(()=>{class Je extends ce{constructor(Y,Ce,ae,re){super(Y,Ce,ae,re)}measureViewportSize(Y){const Ce=this.elementRef.nativeElement;return"horizontal"===Y?Ce.clientWidth:Ce.clientHeight}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(Ge),c.Y36(c.R0b),c.Y36(v.Is,8))},Je.\u0275dir=c.lG2({type:Je,features:[c.qOj]}),Je})();const G=typeof requestAnimationFrame<"u"?T.Z:E.E;let se=(()=>{class Je extends j{constructor(Y,Ce,ae,re,Se,Fe,be,Ue){super(Y,Fe,ae,Se),this.elementRef=Y,this._changeDetectorRef=Ce,this._scrollStrategy=re,this.scrollable=Ue,this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(P=>this._scrollStrategy.scrolledIndexChange.subscribe(H=>Promise.resolve().then(()=>this.ngZone.run(()=>P.next(H))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=S.w0.EMPTY,this._viewportChanges=be.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(Y){this._orientation!==Y&&(this._orientation=Y,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Y){this._appendOnly=(0,e.Ig)(Y)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,te.O)(null),(0,V.e)(0,G)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Y){this.ngZone.runOutsideAngular(()=>{this._forOf=Y,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(Ce=>{const ae=Ce.length;ae!==this._dataLength&&(this._dataLength=ae,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Y){return this.getElementRef().nativeElement.getBoundingClientRect()[Y]}setTotalContentSize(Y){this._totalContentSize!==Y&&(this._totalContentSize=Y,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Y){(function R(Je,gt){return Je.start==gt.start&&Je.end==gt.end})(this._renderedRange,Y)||(this.appendOnly&&(Y={start:0,end:Math.max(this._renderedRange.end,Y.end)}),this._renderedRangeSubject.next(this._renderedRange=Y),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Y,Ce="to-start"){Y=this.appendOnly&&"to-start"===Ce?0:Y;const re="horizontal"==this.orientation,Se=re?"X":"Y";let be=`translate${Se}(${Number((re&&this.dir&&"rtl"==this.dir.value?-1:1)*Y)}px)`;this._renderedContentOffset=Y,"to-end"===Ce&&(be+=` translate${Se}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=be&&(this._renderedContentTransform=be,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Y,Ce="auto"){const ae={behavior:Ce};"horizontal"===this.orientation?ae.start=Y:ae.top=Y,this.scrollable.scrollTo(ae)}scrollToIndex(Y,Ce="auto"){this._scrollStrategy.scrollToIndex(Y,Ce)}measureScrollOffset(Y){let Ce;return Ce=this.scrollable==this?ae=>super.measureScrollOffset(ae):ae=>this.scrollable.measureScrollOffset(ae),Math.max(0,Ce(Y??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Y){var Ce;let ae;const Fe="rtl"==(null===(Ce=this.dir)||void 0===Ce?void 0:Ce.value);ae="start"==Y?Fe?"right":"left":"end"==Y?Fe?"left":"right":Y||("horizontal"===this.orientation?"left":"top");const be=this.scrollable.measureBoundingClientRectWithScrollOffset(ae);return this.elementRef.nativeElement.getBoundingClientRect()[ae]-be}measureRenderedContentSize(){const Y=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Y.offsetWidth:Y.offsetHeight}measureRangeSize(Y){return this._forOf?this._forOf.measureRangeSize(Y,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Y){Y&&this._runAfterChangeDetection.push(Y),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 Y=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Ce of Y)Ce()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(q,8),c.Y36(v.Is,8),c.Y36(Ge),c.Y36(he),c.Y36(xe,8))},Je.\u0275cmp=c.Xpm({type:Je,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Y,Ce){if(1&Y&&c.Gf(B,7),2&Y){let ae;c.iGM(ae=c.CRH())&&(Ce._contentWrapper=ae.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&c.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Ce.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Ce.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[c._Bn([{provide:ce,useFactory:(gt,Y)=>gt||Y,deps:[j,Je]}]),c.qOj],ngContentSelectors:W,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Y,Ce){1&Y&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA(),c._UZ(3,"div",2)),2&Y&&(c.xp6(3),c.Udp("width",Ce._totalContentWidth)("height",Ce._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Je})();function $(Je,gt,Y){if(!Y.getBoundingClientRect)return 0;const ae=Y.getBoundingClientRect();return"horizontal"===Je?"start"===gt?ae.left:ae.right:"start"===gt?ae.top:ae.bottom}let Ee=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe){this._viewContainerRef=Y,this._template=Ce,this._differs=ae,this._viewRepeater=re,this._viewport=Se,this.viewChange=new A.x,this._dataSourceChanges=new A.x,this.dataStream=this._dataSourceChanges.pipe((0,te.O)(null),(0,oe.G)(),(0,ee.w)(([be,Ue])=>this._changeDataSource(be,Ue)),(0,le.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new A.x,this.dataStream.subscribe(be=>{this._data=be,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Q.R)(this._destroyed)).subscribe(be=>{this._renderedRange=be,this.viewChange.observers.length&&Fe.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Y){this._cdkVirtualForOf=Y,(0,L.Z9)(Y)?this._dataSourceChanges.next(Y):this._dataSourceChanges.next(new L.P3((0,U.b)(Y)?Y:Array.from(Y||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Y){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Y?(Ce,ae)=>Y(Ce+(this._renderedRange?this._renderedRange.start:0),ae):void 0}set cdkVirtualForTemplate(Y){Y&&(this._needsUpdate=!0,this._template=Y)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Y){this._viewRepeater.viewCacheSize=(0,e.su)(Y)}measureRangeSize(Y,Ce){if(Y.start>=Y.end)return 0;const ae=Y.start-this._renderedRange.start,re=Y.end-Y.start;let Se,Fe;for(let be=0;be-1;be--){const Ue=this._viewContainerRef.get(be+ae);if(Ue&&Ue.rootNodes.length){Fe=Ue.rootNodes[Ue.rootNodes.length-1];break}}return Se&&Fe?$(Ce,"end",Fe)-$(Ce,"start",Se):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Y=this._differ.diff(this._renderedItems);Y?this._applyChanges(Y):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((Y,Ce)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Y,Ce):Ce)),this._needsUpdate=!0)}_changeDataSource(Y,Ce){return Y&&Y.disconnect(this),this._needsUpdate=!0,Ce?Ce.connect(this):(0,w.of)()}_updateContext(){const Y=this._data.length;let Ce=this._viewContainerRef.length;for(;Ce--;){const ae=this._viewContainerRef.get(Ce);ae.context.index=this._renderedRange.start+Ce,ae.context.count=Y,this._updateComputedContextProperties(ae.context),ae.detectChanges()}}_applyChanges(Y){this._viewRepeater.applyChanges(Y,this._viewContainerRef,(re,Se,Fe)=>this._getEmbeddedViewArgs(re,Fe),re=>re.item),Y.forEachIdentityChange(re=>{this._viewContainerRef.get(re.currentIndex).context.$implicit=re.item});const Ce=this._data.length;let ae=this._viewContainerRef.length;for(;ae--;){const re=this._viewContainerRef.get(ae);re.context.index=this._renderedRange.start+ae,re.context.count=Ce,this._updateComputedContextProperties(re.context)}}_updateComputedContextProperties(Y){Y.first=0===Y.index,Y.last=Y.index===Y.count-1,Y.even=Y.index%2==0,Y.odd=!Y.even}_getEmbeddedViewArgs(Y,Ce){return{templateRef:this._template,context:{$implicit:Y.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ce}}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4),c.Y36(L.k),c.Y36(se,4),c.Y36(c.R0b))},Je.\u0275dir=c.lG2({type:Je,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[c._Bn([{provide:L.k,useClass:L.eX}])]}),Je})(),Xe=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=c.oAB({type:Je}),Je.\u0275inj=c.cJS({}),Je})(),_t=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=c.oAB({type:Je}),Je.\u0275inj=c.cJS({imports:[v.vT,Xe,v.vT,Xe]}),Je})()},39349:(Ye,pe,h)=>{"use strict";h.d(pe,{IC:()=>z,Ky:()=>Q,Lq:()=>_});var e=h(83353),c=h(94650),A=h(21281),w=h(60515),g=h(77579),C=h(54968),T=h(23601),E=h(82722),S=h(36895);const U=(0,e.i$)({passive:!0});let _=(()=>{class te{constructor(ee,le){this._platform=ee,this._ngZone=le,this._monitoredElements=new Map}monitor(ee){if(!this._platform.isBrowser)return w.E;const le=(0,A.fI)(ee),de=this._monitoredElements.get(le);if(de)return de.subject;const Te=new g.x,v="cdk-text-field-autofilled",L=B=>{"cdk-text-field-autofill-start"!==B.animationName||le.classList.contains(v)?"cdk-text-field-autofill-end"===B.animationName&&le.classList.contains(v)&&(le.classList.remove(v),this._ngZone.run(()=>Te.next({target:B.target,isAutofilled:!1}))):(le.classList.add(v),this._ngZone.run(()=>Te.next({target:B.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",L,U),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:Te,unlisten:()=>{le.removeEventListener("animationstart",L,U)}}),Te}stopMonitoring(ee){const le=(0,A.fI)(ee),de=this._monitoredElements.get(le);de&&(de.unlisten(),de.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((ee,le)=>this.stopMonitoring(le))}}return te.\u0275fac=function(ee){return new(ee||te)(c.LFG(e.t4),c.LFG(c.R0b))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),z=(()=>{class te{constructor(ee,le,de,Te){this._elementRef=ee,this._platform=le,this._ngZone=de,this._destroyed=new g.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=v=>{this._hasFocus="focus"===v.type},this._document=Te,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ee){this._minRows=(0,A.su)(ee),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ee){this._maxRows=(0,A.su)(ee),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ee){ee=(0,A.Ig)(ee),this._enabled!==ee&&((this._enabled=ee)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ee){this._cachedPlaceholderHeight=void 0,ee?this._textareaElement.setAttribute("placeholder",ee):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ee=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.minHeight=ee)}_setMaxHeight(){const ee=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.maxHeight=ee)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ee=this._getWindow();(0,C.R)(ee,"resize").pipe((0,T.e)(16),(0,E.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 ee=this._textareaElement.cloneNode(!1);ee.rows=1,ee.style.position="absolute",ee.style.visibility="hidden",ee.style.border="none",ee.style.padding="0",ee.style.height="",ee.style.minHeight="",ee.style.maxHeight="",ee.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ee),this._cachedLineHeight=ee.clientHeight,ee.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ee=this._textareaElement,le=ee.style.marginBottom||"",de=this._platform.FIREFOX,Te=de&&this._hasFocus,v=de?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Te&&(ee.style.marginBottom=`${ee.clientHeight}px`),ee.classList.add(v);const L=ee.scrollHeight-4;return ee.classList.remove(v),Te&&(ee.style.marginBottom=le),L}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ee=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ee}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ee=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const le=this._elementRef.nativeElement,de=le.value;if(!ee&&this._minRows===this._previousMinRows&&de===this._previousValue)return;const Te=this._measureScrollHeight(),v=Math.max(Te,this._cachedPlaceholderHeight||0);le.style.height=`${v}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(le)):setTimeout(()=>this._scrollToCaretPosition(le))}),this._previousValue=de,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(ee){const{selectionStart:le,selectionEnd:de}=ee;!this._destroyed.isStopped&&this._hasFocus&&ee.setSelectionRange(le,de)}}return te.\u0275fac=function(ee){return new(ee||te)(c.Y36(c.SBq),c.Y36(e.t4),c.Y36(c.R0b),c.Y36(S.K0,8))},te.\u0275dir=c.lG2({type:te,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ee,le){1&ee&&c.NdJ("input",function(){return le._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),te})(),Q=(()=>{class te{}return te.\u0275fac=function(ee){return new(ee||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},57851:(Ye,pe,h)=>{"use strict";h.d(pe,{C2:()=>z,HI:()=>te,Hs:()=>q,Ud:()=>ce,VY:()=>Q,XJ:()=>Ge,Xx:()=>Me,_0:()=>W,cu:()=>oe,nZ:()=>he,rO:()=>le});var e=h(95017),c=h(45191),A=h(77579),w=h(61135),g=h(39646),C=h(95698),T=h(39300),E=h(82722),S=h(94650),U=h(21281),_=h(40445);class V{constructor(){this.expansionModel=new e.Ov(!0)}toggle(j){this.expansionModel.toggle(this._trackByValue(j))}expand(j){this.expansionModel.select(this._trackByValue(j))}collapse(j){this.expansionModel.deselect(this._trackByValue(j))}isExpanded(j){return this.expansionModel.isSelected(this._trackByValue(j))}toggleDescendants(j){this.expansionModel.isSelected(this._trackByValue(j))?this.collapseDescendants(j):this.expandDescendants(j)}collapseAll(){this.expansionModel.clear()}expandDescendants(j){let R=[j];R.push(...this.getDescendants(j)),this.expansionModel.select(...R.map(G=>this._trackByValue(G)))}collapseDescendants(j){let R=[j];R.push(...this.getDescendants(j)),this.expansionModel.deselect(...R.map(G=>this._trackByValue(G)))}_trackByValue(j){return this.trackBy?this.trackBy(j):j}}class z extends V{constructor(j,R,G){super(),this.getLevel=j,this.isExpandable=R,this.options=G,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(j){const G=[];for(let se=this.dataNodes.indexOf(j)+1;sethis._trackByValue(j)))}}class Q extends V{constructor(j,R){super(),this.getChildren=j,this.options=R,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const j=this.dataNodes.reduce((R,G)=>[...R,...this.getDescendants(G),G],[]);this.expansionModel.select(...j.map(R=>this._trackByValue(R)))}getDescendants(j){const R=[];return this._getDescendants(R,j),R.splice(1)}_getDescendants(j,R){j.push(R);const G=this.getChildren(R);Array.isArray(G)?G.forEach(se=>this._getDescendants(j,se)):(0,c.b)(G)&&G.pipe((0,C.q)(1),(0,T.h)(Boolean)).subscribe(se=>{for(const $ of se)this._getDescendants(j,$)})}}const te=new S.OlP("CDK_TREE_NODE_OUTLET_NODE");let oe=(()=>{class xe{constructor(R,G){this.viewContainer=R,this._node=G}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.s_b),S.Y36(te,8))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeOutlet",""]]}),xe})();class ee{constructor(j){this.$implicit=j}}let le=(()=>{class xe{constructor(R){this.template=R}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.Rgc))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),xe})(),W=(()=>{class xe{constructor(R,G){this._differs=R,this._changeDetectorRef=G,this._onDestroy=new A.x,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(G=>!G.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,c.b)(this._dataSource)?R=this._dataSource:Array.isArray(this._dataSource)&&(R=(0,g.of)(this._dataSource)),R&&(this._dataSubscription=R.pipe((0,E.R)(this._onDestroy)).subscribe(G=>this.renderNodeChanges(G)))}renderNodeChanges(R,G=this._dataDiffer,se=this._nodeOutlet.viewContainer,$){const Ee=G.diff(R);!Ee||(Ee.forEachOperation((Oe,ct,Xe)=>{if(null==Oe.previousIndex)this.insertNode(R[Xe],Xe,se,$);else if(null==Xe)se.remove(ct),this._levels.delete(Oe.item);else{const _t=se.get(ct);se.move(_t,Xe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(R,G){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find($=>$.when&&$.when(G,R))||this._defaultNodeDef}insertNode(R,G,se,$){const Ee=this._getNodeDef(R,G),Oe=new ee(R);Oe.level=this.treeControl.getLevel?this.treeControl.getLevel(R):typeof $<"u"&&this._levels.has($)?this._levels.get($)+1:0,this._levels.set(R,Oe.level),(se||this._nodeOutlet.viewContainer).createEmbeddedView(Ee.template,Oe,G),q.mostRecentTreeNode&&(q.mostRecentTreeNode.data=R)}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.ZZ4),S.Y36(S.sBO))},xe.\u0275cmp=S.Xpm({type:xe,selectors:[["cdk-tree"]],contentQueries:function(R,G,se){if(1&R&&S.Suo(se,le,5),2&R){let $;S.iGM($=S.CRH())&&(G._nodeDefs=$)}},viewQuery:function(R,G){if(1&R&&S.Gf(oe,7),2&R){let se;S.iGM(se=S.CRH())&&(G._nodeOutlet=se.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,G){1&R&&S.GkF(0,0)},dependencies:[oe],encapsulation:2}),xe})(),q=(()=>{class xe{constructor(R,G){this._elementRef=R,this._tree=G,this._destroyed=new A.x,this._dataChanges=new A.x,xe.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(xe){let j=xe.parentElement;for(;j&&!ye(j);)j=j.parentElement;return j?j.classList.contains("cdk-nested-tree-node")?(0,U.su)(j.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){xe.mostRecentTreeNode===this&&(xe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return xe.mostRecentTreeNode=null,xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.SBq),S.Y36(W))},xe.\u0275dir=S.lG2({type:xe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(R,G){2&R&&S.uIk("aria-expanded",G.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),xe})();function ye(xe){const j=xe.classList;return!!(null!=j&&j.contains("cdk-nested-tree-node")||null!=j&&j.contains("cdk-tree"))}let Me=(()=>{class xe extends q{constructor(R,G,se){super(R,G),this._differs=se}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,c.b)(R)&&R.pipe((0,E.R)(this._destroyed)).subscribe(G=>this.updateChildrenNodes(G)),this.nodeOutlet.changes.pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(R){const G=this._getNodeOutlet();R&&(this._children=R),G&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,G.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(G=>!G._node||G._node===this)}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.SBq),S.Y36(W),S.Y36(S.ZZ4))},xe.\u0275dir=S.lG2({type:xe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(R,G,se){if(1&R&&S.Suo(se,oe,5),2&R){let $;S.iGM($=S.CRH())&&(G.nodeOutlet=$)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[S._Bn([{provide:q,useExisting:xe},{provide:te,useExisting:xe}]),S.qOj]}),xe})();const we=/([A-Za-z%]+)$/;let Ge=(()=>{class xe{constructor(R,G,se,$){this._treeNode=R,this._tree=G,this._element=se,this._dir=$,this._destroyed=new A.x,this.indentUnits="px",this._indent=40,this._setPadding(),$&&$.change.pipe((0,E.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,G=this._level??R;return"number"==typeof G?`${G*this._indent}${this.indentUnits}`:null}_setPadding(R=!1){const G=this._paddingIndent();if(G!==this._currentPadding||R){const se=this._element.nativeElement,$=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Ee="paddingLeft"===$?"paddingRight":"paddingLeft";se.style[$]=G||"",se.style[Ee]="",this._currentPadding=G}}_setLevelInput(R){this._level=(0,U.su)(R,null),this._setPadding()}_setIndentInput(R){let G=R,se="px";if("string"==typeof R){const $=R.split(we);G=$[0],se=$[1]||se}this.indentUnits=se,this._indent=(0,U.su)(G),this._setPadding()}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(q),S.Y36(W),S.Y36(S.SBq),S.Y36(_.Is,8))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),xe})(),ce=(()=>{class xe{constructor(R,G){this._tree=R,this._treeNode=G,this._recursive=!1}get recursive(){return this._recursive}set recursive(R){this._recursive=(0,U.Ig)(R)}_toggle(R){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),R.stopPropagation()}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(W),S.Y36(q))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(R,G){1&R&&S.NdJ("click",function($){return G._toggle($)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),xe})(),he=(()=>{class xe{}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275mod=S.oAB({type:xe}),xe.\u0275inj=S.cJS({}),xe})()},36895:(Ye,pe,h)=>{"use strict";h.d(pe,{Do:()=>Te,ED:()=>gi,EM:()=>yr,HT:()=>g,JF:()=>Ai,K0:()=>T,Mx:()=>En,NF:()=>Ii,O5:()=>Gn,Ov:()=>Ke,PC:()=>rr,PM:()=>Xi,RF:()=>Hi,S$:()=>ee,V_:()=>U,Ye:()=>v,b0:()=>de,bD:()=>wi,ez:()=>Yr,gd:()=>wn,i8:()=>Et,mk:()=>jn,n9:()=>_i,p6:()=>s,q:()=>A,rS:()=>hn,sg:()=>Wn,tP:()=>wt,uU:()=>$n,w_:()=>C});var e=h(94650);let c=null;function A(){return c}function g(Ne){c||(c=Ne)}class C{}const T=new e.OlP("DocumentToken");let E=(()=>{class Ne{historyGo(Le){throw new Error("Not implemented")}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function S(){return(0,e.LFG)(_)}()},providedIn:"platform"}),Ne})();const U=new e.OlP("Location Initialized");let _=(()=>{class Ne extends E{constructor(Le){super(),this._doc=Le,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Le){const pt=A().getGlobalEventTarget(this._doc,"window");return pt.addEventListener("popstate",Le,!1),()=>pt.removeEventListener("popstate",Le)}onHashChange(Le){const pt=A().getGlobalEventTarget(this._doc,"window");return pt.addEventListener("hashchange",Le,!1),()=>pt.removeEventListener("hashchange",Le)}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(Le){this.location.pathname=Le}pushState(Le,pt,Lt){V()?this._history.pushState(Le,pt,Lt):this.location.hash=Lt}replaceState(Le,pt,Lt){V()?this._history.replaceState(Le,pt,Lt):this.location.hash=Lt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Le=0){this._history.go(Le)}getState(){return this._history.state}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(T))},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function z(){return new _((0,e.LFG)(T))}()},providedIn:"platform"}),Ne})();function V(){return!!window.history.pushState}function Q(Ne,ut){if(0==Ne.length)return ut;if(0==ut.length)return Ne;let Le=0;return Ne.endsWith("/")&&Le++,ut.startsWith("/")&&Le++,2==Le?Ne+ut.substring(1):1==Le?Ne+ut:Ne+"/"+ut}function te(Ne){const ut=Ne.match(/#|\?|$/),Le=ut&&ut.index||Ne.length;return Ne.slice(0,Le-("/"===Ne[Le-1]?1:0))+Ne.slice(Le)}function oe(Ne){return Ne&&"?"!==Ne[0]?"?"+Ne:Ne}let ee=(()=>{class Ne{historyGo(Le){throw new Error("Not implemented")}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return(0,e.f3M)(de)},providedIn:"root"}),Ne})();const le=new e.OlP("appBaseHref");let de=(()=>{class Ne extends ee{constructor(Le,pt){var Lt,qt,Yt;super(),this._platformLocation=Le,this._removeListenerFns=[],this._baseHref=null!==(Lt=null!==(qt=pt??this._platformLocation.getBaseHrefFromDOM())&&void 0!==qt?qt:null===(Yt=(0,e.f3M)(T).location)||void 0===Yt?void 0:Yt.origin)&&void 0!==Lt?Lt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Le){this._removeListenerFns.push(this._platformLocation.onPopState(Le),this._platformLocation.onHashChange(Le))}getBaseHref(){return this._baseHref}prepareExternalUrl(Le){return Q(this._baseHref,Le)}path(Le=!1){const pt=this._platformLocation.pathname+oe(this._platformLocation.search),Lt=this._platformLocation.hash;return Lt&&Le?`${pt}${Lt}`:pt}pushState(Le,pt,Lt,qt){const Yt=this.prepareExternalUrl(Lt+oe(qt));this._platformLocation.pushState(Le,pt,Yt)}replaceState(Le,pt,Lt,qt){const Yt=this.prepareExternalUrl(Lt+oe(qt));this._platformLocation.replaceState(Le,pt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._platformLocation).historyGo)||void 0===pt||pt.call(Lt,Le)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(E),e.LFG(le,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Te=(()=>{class Ne extends ee{constructor(Le,pt){super(),this._platformLocation=Le,this._baseHref="",this._removeListenerFns=[],null!=pt&&(this._baseHref=pt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Le){this._removeListenerFns.push(this._platformLocation.onPopState(Le),this._platformLocation.onHashChange(Le))}getBaseHref(){return this._baseHref}path(Le=!1){let pt=this._platformLocation.hash;return null==pt&&(pt="#"),pt.length>0?pt.substring(1):pt}prepareExternalUrl(Le){const pt=Q(this._baseHref,Le);return pt.length>0?"#"+pt:pt}pushState(Le,pt,Lt,qt){let Yt=this.prepareExternalUrl(Lt+oe(qt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.pushState(Le,pt,Yt)}replaceState(Le,pt,Lt,qt){let Yt=this.prepareExternalUrl(Lt+oe(qt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.replaceState(Le,pt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._platformLocation).historyGo)||void 0===pt||pt.call(Lt,Le)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(E),e.LFG(le,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),v=(()=>{class Ne{constructor(Le){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Le;const pt=this._locationStrategy.getBaseHref();this._baseHref=te(W(pt)),this._locationStrategy.onPopState(Lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Lt.state,type:Lt.type})})}ngOnDestroy(){var Le;null===(Le=this._urlChangeSubscription)||void 0===Le||Le.unsubscribe(),this._urlChangeListeners=[]}path(Le=!1){return this.normalize(this._locationStrategy.path(Le))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Le,pt=""){return this.path()==this.normalize(Le+oe(pt))}normalize(Le){return Ne.stripTrailingSlash(function B(Ne,ut){return Ne&&ut.startsWith(Ne)?ut.substring(Ne.length):ut}(this._baseHref,W(Le)))}prepareExternalUrl(Le){return Le&&"/"!==Le[0]&&(Le="/"+Le),this._locationStrategy.prepareExternalUrl(Le)}go(Le,pt="",Lt=null){this._locationStrategy.pushState(Lt,"",Le,pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Le+oe(pt)),Lt)}replaceState(Le,pt="",Lt=null){this._locationStrategy.replaceState(Lt,"",Le,pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Le+oe(pt)),Lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._locationStrategy).historyGo)||void 0===pt||pt.call(Lt,Le)}onUrlChange(Le){return this._urlChangeListeners.push(Le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(pt=>{this._notifyUrlChangeListeners(pt.url,pt.state)})),()=>{const pt=this._urlChangeListeners.indexOf(Le);var Lt;this._urlChangeListeners.splice(pt,1),0===this._urlChangeListeners.length&&(null===(Lt=this._urlChangeSubscription)||void 0===Lt||Lt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Le="",pt){this._urlChangeListeners.forEach(Lt=>Lt(Le,pt))}subscribe(Le,pt,Lt){return this._subject.subscribe({next:Le,error:pt,complete:Lt})}}return Ne.normalizeQueryParams=oe,Ne.joinWithSlash=Q,Ne.stripTrailingSlash=te,Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(ee))},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function L(){return new v((0,e.LFG)(ee))}()},providedIn:"root"}),Ne})();function W(Ne){return Ne.replace(/\/index.html$/,"")}var Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),we=(()=>((we=we||{})[we.Narrow=0]="Narrow",we[we.Abbreviated=1]="Abbreviated",we[we.Wide=2]="Wide",we[we.Short=3]="Short",we))(),Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.Medium=1]="Medium",Ge[Ge.Long=2]="Long",Ge[Ge.Full=3]="Full",Ge))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function Ee(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.DateFormat],ut)}function Oe(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.TimeFormat],ut)}function ct(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.DateTimeFormat],ut)}function Xe(Ne,ut){const Le=(0,e.cg1)(Ne),pt=Le[e.wAp.NumberSymbols][ut];if(typeof pt>"u"){if(ut===ce.CurrencyDecimal)return Le[e.wAp.NumberSymbols][ce.Decimal];if(ut===ce.CurrencyGroup)return Le[e.wAp.NumberSymbols][ce.Group]}return pt}function re(Ne){if(!Ne[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ne[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(Ne,ut){for(let Le=ut;Le>-1;Le--)if(typeof Ne[Le]<"u")return Ne[Le];throw new Error("Locale data API: locale data undefined")}function P(Ne){const[ut,Le]=Ne.split(":");return{hours:+ut,minutes:+Le}}const f=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,l={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var n=(()=>((n=n||{})[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),r=(()=>((r=r||{})[r.DayPeriods=0]="DayPeriods",r[r.Days=1]="Days",r[r.Months=2]="Months",r[r.Eras=3]="Eras",r))();function s(Ne,ut,Le,pt){let Lt=function Pt(Ne){if(cn(Ne))return Ne;if("number"==typeof Ne&&!isNaN(Ne))return new Date(Ne);if("string"==typeof Ne){if(Ne=Ne.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ne)){const[Lt,qt=1,Yt=1]=Ne.split("-").map(Cn=>+Cn);return d(Lt,qt-1,Yt)}const Le=parseFloat(Ne);if(!isNaN(Ne-Le))return new Date(Le);let pt;if(pt=Ne.match(f))return function jt(Ne){const ut=new Date(0);let Le=0,pt=0;const Lt=Ne[8]?ut.setUTCFullYear:ut.setFullYear,qt=Ne[8]?ut.setUTCHours:ut.setHours;Ne[9]&&(Le=Number(Ne[9]+Ne[10]),pt=Number(Ne[9]+Ne[11])),Lt.call(ut,Number(Ne[1]),Number(Ne[2])-1,Number(Ne[3]));const Yt=Number(Ne[4]||0)-Le,Cn=Number(Ne[5]||0)-pt,ii=Number(Ne[6]||0),ti=Math.floor(1e3*parseFloat("0."+(Ne[7]||0)));return qt.call(ut,Yt,Cn,ii,ti),ut}(pt)}const ut=new Date(Ne);if(!cn(ut))throw new Error(`Unable to convert "${Ne}" into a date`);return ut}(Ne);ut=p(Le,ut)||ut;let Cn,Yt=[];for(;ut;){if(Cn=a.exec(ut),!Cn){Yt.push(ut);break}{Yt=Yt.concat(Cn.slice(1));const ei=Yt.pop();if(!ei)break;ut=ei}}let ii=Lt.getTimezoneOffset();pt&&(ii=at(pt,ii),Lt=function st(Ne,ut,Le){const pt=Le?-1:1,Lt=Ne.getTimezoneOffset();return function Re(Ne,ut){return(Ne=new Date(Ne.getTime())).setMinutes(Ne.getMinutes()+ut),Ne}(Ne,pt*(at(ut,Lt)-Lt))}(Lt,pt,!0));let ti="";return Yt.forEach(ei=>{const kn=function tt(Ne){if(ze[Ne])return ze[Ne];let ut;switch(Ne){case"G":case"GG":case"GGG":ut=Mt(r.Eras,we.Abbreviated);break;case"GGGG":ut=Mt(r.Eras,we.Wide);break;case"GGGGG":ut=Mt(r.Eras,we.Narrow);break;case"y":ut=Vt(t.FullYear,1,0,!1,!0);break;case"yy":ut=Vt(t.FullYear,2,0,!0,!0);break;case"yyy":ut=Vt(t.FullYear,3,0,!1,!0);break;case"yyyy":ut=Vt(t.FullYear,4,0,!1,!0);break;case"Y":ut=ve(1);break;case"YY":ut=ve(2,!0);break;case"YYY":ut=ve(3);break;case"YYYY":ut=ve(4);break;case"M":case"L":ut=Vt(t.Month,1,1);break;case"MM":case"LL":ut=Vt(t.Month,2,1);break;case"MMM":ut=Mt(r.Months,we.Abbreviated);break;case"MMMM":ut=Mt(r.Months,we.Wide);break;case"MMMMM":ut=Mt(r.Months,we.Narrow);break;case"LLL":ut=Mt(r.Months,we.Abbreviated,Me.Standalone);break;case"LLLL":ut=Mt(r.Months,we.Wide,Me.Standalone);break;case"LLLLL":ut=Mt(r.Months,we.Narrow,Me.Standalone);break;case"w":ut=me(1);break;case"ww":ut=me(2);break;case"W":ut=me(1,!0);break;case"d":ut=Vt(t.Date,1);break;case"dd":ut=Vt(t.Date,2);break;case"c":case"cc":ut=Vt(t.Day,1);break;case"ccc":ut=Mt(r.Days,we.Abbreviated,Me.Standalone);break;case"cccc":ut=Mt(r.Days,we.Wide,Me.Standalone);break;case"ccccc":ut=Mt(r.Days,we.Narrow,Me.Standalone);break;case"cccccc":ut=Mt(r.Days,we.Short,Me.Standalone);break;case"E":case"EE":case"EEE":ut=Mt(r.Days,we.Abbreviated);break;case"EEEE":ut=Mt(r.Days,we.Wide);break;case"EEEEE":ut=Mt(r.Days,we.Narrow);break;case"EEEEEE":ut=Mt(r.Days,we.Short);break;case"a":case"aa":case"aaa":ut=Mt(r.DayPeriods,we.Abbreviated);break;case"aaaa":ut=Mt(r.DayPeriods,we.Wide);break;case"aaaaa":ut=Mt(r.DayPeriods,we.Narrow);break;case"b":case"bb":case"bbb":ut=Mt(r.DayPeriods,we.Abbreviated,Me.Standalone,!0);break;case"bbbb":ut=Mt(r.DayPeriods,we.Wide,Me.Standalone,!0);break;case"bbbbb":ut=Mt(r.DayPeriods,we.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":ut=Mt(r.DayPeriods,we.Abbreviated,Me.Format,!0);break;case"BBBB":ut=Mt(r.DayPeriods,we.Wide,Me.Format,!0);break;case"BBBBB":ut=Mt(r.DayPeriods,we.Narrow,Me.Format,!0);break;case"h":ut=Vt(t.Hours,1,-12);break;case"hh":ut=Vt(t.Hours,2,-12);break;case"H":ut=Vt(t.Hours,1);break;case"HH":ut=Vt(t.Hours,2);break;case"m":ut=Vt(t.Minutes,1);break;case"mm":ut=Vt(t.Minutes,2);break;case"s":ut=Vt(t.Seconds,1);break;case"ss":ut=Vt(t.Seconds,2);break;case"S":ut=Vt(t.FractionalSeconds,1);break;case"SS":ut=Vt(t.FractionalSeconds,2);break;case"SSS":ut=Vt(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ut=je(n.Short);break;case"ZZZZZ":ut=je(n.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ut=je(n.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ut=je(n.Long);break;default:return null}return ze[Ne]=ut,ut}(ei);ti+=kn?kn(Lt,Le,ii):"''"===ei?"'":ei.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ti}function d(Ne,ut,Le){const pt=new Date(0);return pt.setFullYear(Ne,ut,Le),pt.setHours(0,0,0),pt}function p(Ne,ut){const Le=function he(Ne){return(0,e.cg1)(Ne)[e.wAp.LocaleId]}(Ne);if(l[Le]=l[Le]||{},l[Le][ut])return l[Le][ut];let pt="";switch(ut){case"shortDate":pt=Ee(Ne,Ge.Short);break;case"mediumDate":pt=Ee(Ne,Ge.Medium);break;case"longDate":pt=Ee(Ne,Ge.Long);break;case"fullDate":pt=Ee(Ne,Ge.Full);break;case"shortTime":pt=Oe(Ne,Ge.Short);break;case"mediumTime":pt=Oe(Ne,Ge.Medium);break;case"longTime":pt=Oe(Ne,Ge.Long);break;case"fullTime":pt=Oe(Ne,Ge.Full);break;case"short":const Lt=p(Ne,"shortTime"),qt=p(Ne,"shortDate");pt=M(ct(Ne,Ge.Short),[Lt,qt]);break;case"medium":const Yt=p(Ne,"mediumTime"),Cn=p(Ne,"mediumDate");pt=M(ct(Ne,Ge.Medium),[Yt,Cn]);break;case"long":const ii=p(Ne,"longTime"),ti=p(Ne,"longDate");pt=M(ct(Ne,Ge.Long),[ii,ti]);break;case"full":const ei=p(Ne,"fullTime"),kn=p(Ne,"fullDate");pt=M(ct(Ne,Ge.Full),[ei,kn])}return pt&&(l[Le][ut]=pt),pt}function M(Ne,ut){return ut&&(Ne=Ne.replace(/\{([^}]+)}/g,function(Le,pt){return null!=ut&&pt in ut?ut[pt]:Le})),Ne}function _e(Ne,ut,Le="-",pt,Lt){let qt="";(Ne<0||Lt&&Ne<=0)&&(Lt?Ne=1-Ne:(Ne=-Ne,qt=Le));let Yt=String(Ne);for(;Yt.length0||Cn>-Le)&&(Cn+=Le),Ne===t.Hours)0===Cn&&-12===Le&&(Cn=12);else if(Ne===t.FractionalSeconds)return function bt(Ne,ut){return _e(Ne,3).substring(0,ut)}(Cn,ut);const ii=Xe(Yt,ce.MinusSign);return _e(Cn,ut,ii,pt,Lt)}}function Mt(Ne,ut,Le=Me.Format,pt=!1){return function(Lt,qt){return function ft(Ne,ut,Le,pt,Lt,qt){switch(Le){case r.Months:return function R(Ne,ut,Le){const pt=(0,e.cg1)(Ne),qt=Ue([pt[e.wAp.MonthsFormat],pt[e.wAp.MonthsStandalone]],ut);return Ue(qt,Le)}(ut,Lt,pt)[Ne.getMonth()];case r.Days:return function j(Ne,ut,Le){const pt=(0,e.cg1)(Ne),qt=Ue([pt[e.wAp.DaysFormat],pt[e.wAp.DaysStandalone]],ut);return Ue(qt,Le)}(ut,Lt,pt)[Ne.getDay()];case r.DayPeriods:const Yt=Ne.getHours(),Cn=Ne.getMinutes();if(qt){const ti=function Se(Ne){const ut=(0,e.cg1)(Ne);return re(ut),(ut[e.wAp.ExtraData][2]||[]).map(pt=>"string"==typeof pt?P(pt):[P(pt[0]),P(pt[1])])}(ut),ei=function Fe(Ne,ut,Le){const pt=(0,e.cg1)(Ne);re(pt);const qt=Ue([pt[e.wAp.ExtraData][0],pt[e.wAp.ExtraData][1]],ut)||[];return Ue(qt,Le)||[]}(ut,Lt,pt),kn=ti.findIndex(Ci=>{if(Array.isArray(Ci)){const[qn,di]=Ci,rn=Yt>=qn.hours&&Cn>=qn.minutes,On=Yt0?Math.floor(Lt/60):Math.ceil(Lt/60);switch(Ne){case n.Short:return(Lt>=0?"+":"")+_e(Yt,2,qt)+_e(Math.abs(Lt%60),2,qt);case n.ShortGMT:return"GMT"+(Lt>=0?"+":"")+_e(Yt,1,qt);case n.Long:return"GMT"+(Lt>=0?"+":"")+_e(Yt,2,qt)+":"+_e(Math.abs(Lt%60),2,qt);case n.Extended:return 0===pt?"Z":(Lt>=0?"+":"")+_e(Yt,2,qt)+":"+_e(Math.abs(Lt%60),2,qt);default:throw new Error(`Unknown zone width "${Ne}"`)}}}function Be(Ne){return d(Ne.getFullYear(),Ne.getMonth(),Ne.getDate()+(4-Ne.getDay()))}function me(Ne,ut=!1){return function(Le,pt){let Lt;if(ut){const qt=new Date(Le.getFullYear(),Le.getMonth(),1).getDay()-1,Yt=Le.getDate();Lt=1+Math.floor((Yt+qt)/7)}else{const qt=Be(Le),Yt=function qe(Ne){const ut=d(Ne,0,1).getDay();return d(Ne,0,1+(ut<=4?4:11)-ut)}(qt.getFullYear()),Cn=qt.getTime()-Yt.getTime();Lt=1+Math.round(Cn/6048e5)}return _e(Lt,Ne,Xe(pt,ce.MinusSign))}}function ve(Ne,ut=!1){return function(Le,pt){return _e(Be(Le).getFullYear(),Ne,Xe(pt,ce.MinusSign),ut)}}const ze={};function at(Ne,ut){Ne=Ne.replace(/:/g,"");const Le=Date.parse("Jan 01, 1970 00:00:00 "+Ne)/6e4;return isNaN(Le)?ut:Le}function cn(Ne){return Ne instanceof Date&&!isNaN(Ne.valueOf())}function En(Ne,ut){ut=encodeURIComponent(ut);for(const Le of Ne.split(";")){const pt=Le.indexOf("="),[Lt,qt]=-1==pt?[Le,""]:[Le.slice(0,pt),Le.slice(pt+1)];if(Lt.trim()===ut)return decodeURIComponent(qt)}return null}let jn=(()=>{class Ne{constructor(Le,pt,Lt,qt){this._iterableDiffers=Le,this._keyValueDiffers=pt,this._ngEl=Lt,this._renderer=qt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Le){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Le?Le.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Le){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Le?Le.split(/\s+/):Le,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 Le=this._iterableDiffer.diff(this._rawClass);Le&&this._applyIterableChanges(Le)}else if(this._keyValueDiffer){const Le=this._keyValueDiffer.diff(this._rawClass);Le&&this._applyKeyValueChanges(Le)}}_applyKeyValueChanges(Le){Le.forEachAddedItem(pt=>this._toggleClass(pt.key,pt.currentValue)),Le.forEachChangedItem(pt=>this._toggleClass(pt.key,pt.currentValue)),Le.forEachRemovedItem(pt=>{pt.previousValue&&this._toggleClass(pt.key,!1)})}_applyIterableChanges(Le){Le.forEachAddedItem(pt=>{if("string"!=typeof pt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(pt.item)}`);this._toggleClass(pt.item,!0)}),Le.forEachRemovedItem(pt=>this._toggleClass(pt.item,!1))}_applyClasses(Le){Le&&(Array.isArray(Le)||Le instanceof Set?Le.forEach(pt=>this._toggleClass(pt,!0)):Object.keys(Le).forEach(pt=>this._toggleClass(pt,!!Le[pt])))}_removeClasses(Le){Le&&(Array.isArray(Le)||Le instanceof Set?Le.forEach(pt=>this._toggleClass(pt,!1)):Object.keys(Le).forEach(pt=>this._toggleClass(pt,!1)))}_toggleClass(Le,pt){(Le=Le.trim())&&Le.split(/\s+/g).forEach(Lt=>{pt?this._renderer.addClass(this._ngEl.nativeElement,Lt):this._renderer.removeClass(this._ngEl.nativeElement,Lt)})}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ne})();class ci{constructor(ut,Le,pt,Lt){this.$implicit=ut,this.ngForOf=Le,this.index=pt,this.count=Lt}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 Wn=(()=>{class Ne{constructor(Le,pt,Lt){this._viewContainer=Le,this._template=pt,this._differs=Lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Le){this._ngForOf=Le,this._ngForOfDirty=!0}set ngForTrackBy(Le){this._trackByFn=Le}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Le){Le&&(this._template=Le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Le=this._ngForOf;!this._differ&&Le&&(this._differ=this._differs.find(Le).create(this.ngForTrackBy))}if(this._differ){const Le=this._differ.diff(this._ngForOf);Le&&this._applyChanges(Le)}}_applyChanges(Le){const pt=this._viewContainer;Le.forEachOperation((Lt,qt,Yt)=>{if(null==Lt.previousIndex)pt.createEmbeddedView(this._template,new ci(Lt.item,this._ngForOf,-1,-1),null===Yt?void 0:Yt);else if(null==Yt)pt.remove(null===qt?void 0:qt);else if(null!==qt){const Cn=pt.get(qt);pt.move(Cn,Yt),Hn(Cn,Lt)}});for(let Lt=0,qt=pt.length;Lt{Hn(pt.get(Lt.currentIndex),Lt)})}static ngTemplateContextGuard(Le,pt){return!0}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ne})();function Hn(Ne,ut){Ne.context.$implicit=ut.item}let Gn=(()=>{class Ne{constructor(Le,pt){this._viewContainer=Le,this._context=new Yn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=pt}set ngIf(Le){this._context.$implicit=this._context.ngIf=Le,this._updateView()}set ngIfThen(Le){Vi("ngIfThen",Le),this._thenTemplateRef=Le,this._thenViewRef=null,this._updateView()}set ngIfElse(Le){Vi("ngIfElse",Le),this._elseTemplateRef=Le,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(Le,pt){return!0}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ne})();class Yn{constructor(){this.$implicit=null,this.ngIf=null}}function Vi(Ne,ut){if(ut&&!ut.createEmbeddedView)throw new Error(`${Ne} must be a TemplateRef, but received '${(0,e.AaK)(ut)}'.`)}class Fi{constructor(ut,Le){this._viewContainerRef=ut,this._templateRef=Le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ut){ut&&!this._created?this.create():!ut&&this._created&&this.destroy()}}let Hi=(()=>{class Ne{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Le){this._ngSwitch=Le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Le){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Le)}_matchCase(Le){const pt=Le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||pt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),pt}_updateDefaultCases(Le){if(this._defaultViews&&Le!==this._defaultUsed){this._defaultUsed=Le;for(let pt=0;pt{class Ne{constructor(Le,pt,Lt){this.ngSwitch=Lt,Lt._addCase(),this._view=new Fi(Le,pt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Hi,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ne})(),gi=(()=>{class Ne{constructor(Le,pt,Lt){Lt._addDefault(new Fi(Le,pt))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Hi,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ne})(),rr=(()=>{class Ne{constructor(Le,pt,Lt){this._ngEl=Le,this._differs=pt,this._renderer=Lt,this._ngStyle=null,this._differ=null}set ngStyle(Le){this._ngStyle=Le,!this._differ&&Le&&(this._differ=this._differs.find(Le).create())}ngDoCheck(){if(this._differ){const Le=this._differ.diff(this._ngStyle);Le&&this._applyChanges(Le)}}_setStyle(Le,pt){const[Lt,qt]=Le.split("."),Yt=-1===Lt.indexOf("-")?void 0:e.JOm.DashCase;null!=pt?this._renderer.setStyle(this._ngEl.nativeElement,Lt,qt?`${pt}${qt}`:pt,Yt):this._renderer.removeStyle(this._ngEl.nativeElement,Lt,Yt)}_applyChanges(Le){Le.forEachRemovedItem(pt=>this._setStyle(pt.key,null)),Le.forEachAddedItem(pt=>this._setStyle(pt.key,pt.currentValue)),Le.forEachChangedItem(pt=>this._setStyle(pt.key,pt.currentValue))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ne})(),wt=(()=>{class Ne{constructor(Le){this._viewContainerRef=Le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Le){if(Le.ngTemplateOutlet||Le.ngTemplateOutletInjector){const pt=this._viewContainerRef;if(this._viewRef&&pt.remove(pt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Lt,ngTemplateOutletContext:qt,ngTemplateOutletInjector:Yt}=this;this._viewRef=pt.createEmbeddedView(Lt,qt,Yt?{injector:Yt}:void 0)}else this._viewRef=null}else this._viewRef&&Le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),Ne})();function nt(Ne,ut){return new e.vHH(2100,!1)}class Bt{createSubscription(ut,Le){return ut.subscribe({next:Le,error:pt=>{throw pt}})}dispose(ut){ut.unsubscribe()}}class Gt{createSubscription(ut,Le){return ut.then(Le,pt=>{throw pt})}dispose(ut){}}const et=new Gt,Ft=new Bt;let Ke=(()=>{class Ne{constructor(Le){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Le}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Le){return this._obj?Le!==this._obj?(this._dispose(),this.transform(Le)):this._latestValue:(Le&&this._subscribe(Le),this._latestValue)}_subscribe(Le){this._obj=Le,this._strategy=this._selectStrategy(Le),this._subscription=this._strategy.createSubscription(Le,pt=>this._updateLatestValue(Le,pt))}_selectStrategy(Le){if((0,e.QGY)(Le))return et;if((0,e.F4k)(Le))return Ft;throw nt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Le,pt){Le===this._obj&&(this._latestValue=pt,this._ref.markForCheck())}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.sBO,16))},Ne.\u0275pipe=e.Yjl({name:"async",type:Ne,pure:!1,standalone:!0}),Ne})(),Et=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.toLowerCase()}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"lowercase",type:Ne,pure:!0,standalone:!0}),Ne})();const Wt=/(?:[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 hn=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.replace(Wt,pt=>pt[0].toUpperCase()+pt.slice(1).toLowerCase())}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"titlecase",type:Ne,pure:!0,standalone:!0}),Ne})(),wn=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.toUpperCase()}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"uppercase",type:Ne,pure:!0,standalone:!0}),Ne})();const zn=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let $n=(()=>{class Ne{constructor(Le,pt){this.locale=Le,this.defaultTimezone=pt}transform(Le,pt="mediumDate",Lt,qt){if(null==Le||""===Le||Le!=Le)return null;try{var Yt;return s(Le,pt,qt||this.locale,null!==(Yt=Lt??this.defaultTimezone)&&void 0!==Yt?Yt:void 0)}catch(Cn){throw nt()}}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.soG,16),e.Y36(zn,24))},Ne.\u0275pipe=e.Yjl({name:"date",type:Ne,pure:!0,standalone:!0}),Ne})(),Yr=(()=>{class Ne{}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({}),Ne})();const wi="browser";function Ii(Ne){return Ne===wi}function Xi(Ne){return"server"===Ne}let yr=(()=>{class Ne{}return Ne.\u0275prov=(0,e.Yz7)({token:Ne,providedIn:"root",factory:()=>new Mi((0,e.LFG)(T),window)}),Ne})();class Mi{constructor(ut,Le){this.document=ut,this.window=Le,this.offset=()=>[0,0]}setOffset(ut){this.offset=Array.isArray(ut)?()=>ut:ut}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ut){this.supportsScrolling()&&this.window.scrollTo(ut[0],ut[1])}scrollToAnchor(ut){if(!this.supportsScrolling())return;const Le=function ca(Ne,ut){const Le=Ne.getElementById(ut)||Ne.getElementsByName(ut)[0];if(Le)return Le;if("function"==typeof Ne.createTreeWalker&&Ne.body&&(Ne.body.createShadowRoot||Ne.body.attachShadow)){const pt=Ne.createTreeWalker(Ne.body,NodeFilter.SHOW_ELEMENT);let Lt=pt.currentNode;for(;Lt;){const qt=Lt.shadowRoot;if(qt){const Yt=qt.getElementById(ut)||qt.querySelector(`[name="${ut}"]`);if(Yt)return Yt}Lt=pt.nextNode()}}return null}(this.document,ut);Le&&(this.scrollToElement(Le),Le.focus())}setHistoryScrollRestoration(ut){if(this.supportScrollRestoration()){const Le=this.window.history;Le&&Le.scrollRestoration&&(Le.scrollRestoration=ut)}}scrollToElement(ut){const Le=ut.getBoundingClientRect(),pt=Le.left+this.window.pageXOffset,Lt=Le.top+this.window.pageYOffset,qt=this.offset();this.window.scrollTo(pt-qt[0],Lt-qt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ut=jr(this.window.history)||jr(Object.getPrototypeOf(this.window.history));return!(!ut||!ut.writable&&!ut.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function jr(Ne){return Object.getOwnPropertyDescriptor(Ne,"scrollRestoration")}class Ai{}},80529:(Ye,pe,h)=>{"use strict";h.d(pe,{JF:()=>o,LE:()=>le,TP:()=>j,WM:()=>U,Zn:()=>Ge,eN:()=>he,qT:()=>Te});var e=h(36895),c=h(94650),A=h(39646),w=h(69751),g=h(24351),C=h(39300),T=h(54004);class E{}class S{}class U{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const s=t.slice(0,r),d=s.toLowerCase(),p=t.slice(r+1).trim();this.maybeSetNormalizedName(s,d),this.headers.has(d)?this.headers.get(d).push(p):this.headers.set(d,[p])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const s=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(s,r),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new U;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const s=("a"===n.op?this.headers.get(t):void 0)||[];s.push(...r),this.headers.set(t,s);break;case"d":const d=n.value;if(d){let p=this.headers.get(t);if(!p)return;p=p.filter(M=>-1===d.indexOf(M)),0===p.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,p)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class V{encodeKey(n){return oe(n)}encodeValue(n){return oe(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Q=/%(\d[a-f0-9])/gi,te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function oe(a){return encodeURIComponent(a).replace(Q,(n,t)=>{var r;return null!==(r=te[t])&&void 0!==r?r:n})}function ee(a){return`${a}`}class le{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new V,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(a,n){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(s=>{const d=s.indexOf("="),[p,M]=-1==d?[n.decodeKey(s),""]:[n.decodeKey(s.slice(0,d)),n.decodeValue(s.slice(d+1))],_e=t.get(p)||[];_e.push(M),t.set(p,_e)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],s=Array.isArray(r)?r.map(ee):[ee(r)];this.map.set(t,s)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const s=n[r];Array.isArray(s)?s.forEach(d=>{t.push({param:r,value:d,op:"a"})}):t.push({param:r,value:s,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new le({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(ee(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const s=r.indexOf(ee(n.value));-1!==s&&r.splice(s,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Te{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function L(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function B(a){return typeof Blob<"u"&&a instanceof Blob}function W(a){return typeof FormData<"u"&&a instanceof FormData}class ue{constructor(n,t,r,s){let d;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function v(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==r?r:null,d=s):d=r,d&&(this.reportProgress=!!d.reportProgress,this.withCredentials=!!d.withCredentials,d.responseType&&(this.responseType=d.responseType),d.headers&&(this.headers=d.headers),d.context&&(this.context=d.context),d.params&&(this.params=d.params)),this.headers||(this.headers=new U),this.context||(this.context=new Te),this.params){const p=this.params.toString();if(0===p.length)this.urlWithParams=t;else{const M=t.indexOf("?");this.urlWithParams=t+(-1===M?"?":MMt.set(ft,n.setHeaders[ft]),bt)),n.setParams&&(Vt=Object.keys(n.setParams).reduce((Mt,ft)=>Mt.set(ft,n.setParams[ft]),Vt)),new ue(r,s,p,{params:Vt,headers:bt,context:on,reportProgress:_e,responseType:d,withCredentials:M})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class Me{constructor(n,t=200,r="OK"){this.headers=n.headers||new U,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class we extends Me{constructor(n={}){super(n),this.type=ye.ResponseHeader}clone(n={}){return new we({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ge extends Me{constructor(n={}){super(n),this.type=ye.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ge({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ce extends Me{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Ze(a,n){return{body:n,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let he=(()=>{class a{constructor(t){this.handler=t}request(t,r,s={}){let d;if(t instanceof ue)d=t;else{let _e,bt;_e=s.headers instanceof U?s.headers:new U(s.headers),s.params&&(bt=s.params instanceof le?s.params:new le({fromObject:s.params})),d=new ue(t,r,void 0!==s.body?s.body:null,{headers:_e,context:s.context,params:bt,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const p=(0,A.of)(d).pipe((0,g.b)(_e=>this.handler.handle(_e)));if(t instanceof ue||"events"===s.observe)return p;const M=p.pipe((0,C.h)(_e=>_e instanceof Ge));switch(s.observe||"body"){case"body":switch(d.responseType){case"arraybuffer":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&!(_e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _e.body}));case"blob":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&!(_e.body instanceof Blob))throw new Error("Response is not a Blob.");return _e.body}));case"text":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&"string"!=typeof _e.body)throw new Error("Response is not a string.");return _e.body}));default:return M.pipe((0,T.U)(_e=>_e.body))}case"response":return M;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new le).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,Ze(s,r))}post(t,r,s={}){return this.request("POST",t,Ze(s,r))}put(t,r,s={}){return this.request("PUT",t,Ze(s,r))}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(E))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();class xe{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const j=new c.OlP("HTTP_INTERCEPTORS");let R=(()=>{class a{intercept(t,r){return r.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();const gt=/^\)\]\}',?\n/;let Ce=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(r=>{const s=this.xhrFactory.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((ft,je)=>s.setRequestHeader(ft,je.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const ft=t.detectContentTypeHeader();null!==ft&&s.setRequestHeader("Content-Type",ft)}if(t.responseType){const ft=t.responseType.toLowerCase();s.responseType="json"!==ft?ft:"text"}const d=t.serializeBody();let p=null;const M=()=>{if(null!==p)return p;const ft=s.statusText||"OK",je=new U(s.getAllResponseHeaders()),Pe=function Y(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(s)||t.url;return p=new we({headers:je,status:s.status,statusText:ft,url:Pe}),p},_e=()=>{let{headers:ft,status:je,statusText:Pe,url:Qe}=M(),qe=null;204!==je&&(qe=typeof s.response>"u"?s.responseText:s.response),0===je&&(je=qe?200:0);let Be=je>=200&&je<300;if("json"===t.responseType&&"string"==typeof qe){const me=qe;qe=qe.replace(gt,"");try{qe=""!==qe?JSON.parse(qe):null}catch(ve){qe=me,Be&&(Be=!1,qe={error:ve,text:qe})}}Be?(r.next(new Ge({body:qe,headers:ft,status:je,statusText:Pe,url:Qe||void 0})),r.complete()):r.error(new ce({error:qe,headers:ft,status:je,statusText:Pe,url:Qe||void 0}))},bt=ft=>{const{url:je}=M(),Pe=new ce({error:ft,status:s.status||0,statusText:s.statusText||"Unknown Error",url:je||void 0});r.error(Pe)};let Vt=!1;const on=ft=>{Vt||(r.next(M()),Vt=!0);let je={type:ye.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(je.total=ft.total),"text"===t.responseType&&!!s.responseText&&(je.partialText=s.responseText),r.next(je)},Mt=ft=>{let je={type:ye.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(je.total=ft.total),r.next(je)};return s.addEventListener("load",_e),s.addEventListener("error",bt),s.addEventListener("timeout",bt),s.addEventListener("abort",bt),t.reportProgress&&(s.addEventListener("progress",on),null!==d&&s.upload&&s.upload.addEventListener("progress",Mt)),s.send(d),r.next({type:ye.Sent}),()=>{s.removeEventListener("error",bt),s.removeEventListener("abort",bt),s.removeEventListener("load",_e),s.removeEventListener("timeout",bt),t.reportProgress&&(s.removeEventListener("progress",on),null!==d&&s.upload&&s.upload.removeEventListener("progress",Mt)),s.readyState!==s.DONE&&s.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(e.JF))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();const ae=new c.OlP("XSRF_COOKIE_NAME"),re=new c.OlP("XSRF_HEADER_NAME");class Se{}let Fe=(()=>{class a{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(e.K0),c.LFG(c.Lbi),c.LFG(ae))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),be=(()=>{class a{constructor(t,r){this.tokenService=t,this.headerName=r}intercept(t,r){const s=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||s.startsWith("http://")||s.startsWith("https://"))return r.handle(t);const d=this.tokenService.getToken();return null!==d&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,d)})),r.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(Se),c.LFG(re))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),Ue=(()=>{class a{constructor(t,r){this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=this.injector.get(j,[]);this.chain=r.reduceRight((s,d)=>new xe(s,d),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(S),c.LFG(c.zs3))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),i=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:be,useClass:R}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:ae,useValue:t.cookieName}:[],t.headerName?{provide:re,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({providers:[be,{provide:j,useExisting:be,multi:!0},{provide:Se,useClass:Fe},{provide:ae,useValue:"XSRF-TOKEN"},{provide:re,useValue:"X-XSRF-TOKEN"}]}),a})(),o=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({providers:[he,{provide:E,useClass:Ue},Ce,{provide:S,useExisting:Ce}],imports:[i.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(Ye,pe,h)=>{"use strict";h.d(pe,{$8M:()=>Fa,$Z:()=>Fp,AFp:()=>qg,ALo:()=>fg,AaK:()=>E,AsE:()=>Vu,B6R:()=>Qe,BQk:()=>Ic,CHM:()=>Ui,CRH:()=>Mg,CZH:()=>Gc,CqO:()=>Of,D6c:()=>jT,DdM:()=>ag,Dn7:()=>_g,EJc:()=>iT,EiD:()=>Cr,EpF:()=>Pf,F$t:()=>kf,F4k:()=>Rf,FYo:()=>Gh,FiY:()=>Bo,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Su,Gpc:()=>_,Gre:()=>hm,HOy:()=>Uu,Hsn:()=>Vf,Ikx:()=>Gu,JOm:()=>va,JVY:()=>pd,Jf7:()=>tp,KtG:()=>Li,L6k:()=>fd,LAX:()=>gd,LFG:()=>Pi,LSH:()=>ba,Lbi:()=>XE,Lck:()=>Kv,MAs:()=>If,MGl:()=>Pc,MMx:()=>Xu,NdJ:()=>Pu,O4$:()=>pa,OlP:()=>ni,Oqu:()=>ku,PXZ:()=>AT,Q2q:()=>wu,Q6J:()=>Mu,QGY:()=>Iu,QP$:()=>Js,QbO:()=>eT,Qsj:()=>U_,R0b:()=>kr,RDi:()=>ad,Rgc:()=>Vl,SBq:()=>El,Sil:()=>aT,Suo:()=>wg,TTD:()=>gr,TgZ:()=>xc,Tol:()=>em,Udp:()=>Lu,VKq:()=>og,W1O:()=>Ig,WFA:()=>Ru,WLB:()=>sg,XFs:()=>be,Xpm:()=>Pe,Xts:()=>mi,Y36:()=>Is,YKP:()=>Qm,YNc:()=>Sf,Yjl:()=>at,Yz7:()=>Oe,ZZ4:()=>Th,_Bn:()=>qm,_UZ:()=>Du,_Vd:()=>vl,_c5:()=>FT,_uU:()=>sm,aQg:()=>yh,c2e:()=>tT,cJS:()=>Xe,cg1:()=>zu,d8E:()=>Zu,dDg:()=>fT,dqk:()=>r,eBb:()=>md,eFA:()=>c_,ekj:()=>Bu,eoX:()=>o_,evT:()=>np,f3M:()=>Ql,g9A:()=>Kg,h0i:()=>Ws,hGG:()=>UT,hYB:()=>Hu,hij:()=>Oc,iGM:()=>Tg,ifc:()=>t,ip1:()=>$g,kEZ:()=>lg,kL8:()=>Em,kcU:()=>rs,lG2:()=>tt,lcZ:()=>mg,lnq:()=>Fu,lqb:()=>Wo,lri:()=>r_,mCW:()=>D,n5z:()=>Ro,n_E:()=>kc,oAB:()=>me,oJD:()=>Ao,oxw:()=>Nf,pB0:()=>_d,q3G:()=>fi,qLn:()=>Tl,qOj:()=>vu,qZA:()=>Dc,qzn:()=>go,rWj:()=>a_,s9C:()=>Ou,sBO:()=>wT,sIi:()=>Il,s_b:()=>Fc,soG:()=>Zc,tb:()=>Xg,tp0:()=>No,uIk:()=>yu,vHH:()=>te,vpe:()=>Ma,wAp:()=>Pn,xDo:()=>ju,xi3:()=>gg,xp6:()=>xp,ynx:()=>Sc,z2F:()=>zc,z3N:()=>ea,zSh:()=>Ed,zs3:()=>Jo});var e=h(77579),c=h(50727),A=h(69751),w=h(56451),g=h(13099);function C(u){for(let m in u)if(u[m]===C)return m;throw Error("Could not find renamed property on target object.")}function T(u,m){for(const b in m)m.hasOwnProperty(b)&&!u.hasOwnProperty(b)&&(u[b]=m[b])}function E(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(E).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const m=u.toString();if(null==m)return""+m;const b=m.indexOf("\n");return-1===b?m:m.substring(0,b)}function S(u,m){return null==u||""===u?null===m?"":m:null==m||""===m?u:u+" "+m}const U=C({__forward_ref__:C});function _(u){return u.__forward_ref__=_,u.toString=function(){return E(this())},u}function V(u){return z(u)?u():u}function z(u){return"function"==typeof u&&u.hasOwnProperty(U)&&u.__forward_ref__===_}class te extends Error{constructor(m,b){super(function oe(u,m){return`NG0${Math.abs(u)}${m?": "+m.trim():""}`}(m,b)),this.code=m}}function ee(u){return"string"==typeof u?u:null==u?"":String(u)}function L(u,m){throw new te(-201,!1)}function R(u,m){null==u&&function G(u,m,b,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${b} ${y} ${m} <=Actual]`))}(m,u,null,"!=")}function Oe(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Xe(u){return{providers:u.providers||[],imports:u.imports||[]}}function _t(u){return Je(u,ae)||Je(u,Se)}function Je(u,m){return u.hasOwnProperty(m)?u[m]:null}function Ce(u){return u&&(u.hasOwnProperty(re)||u.hasOwnProperty(Fe))?u[re]:null}const ae=C({\u0275prov:C}),re=C({\u0275inj:C}),Se=C({ngInjectableDef:C}),Fe=C({ngInjectorDef:C});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let Ue;function H(u){const m=Ue;return Ue=u,m}function i(u,m,b){const y=_t(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:b&be.Optional?null:void 0!==m?m:void L(E(u))}function f(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 r=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),p={},M=[],_e=C({\u0275cmp:C}),bt=C({\u0275dir:C}),Vt=C({\u0275pipe:C}),on=C({\u0275mod:C}),Mt=C({\u0275fac:C}),ft=C({__NG_ELEMENT_ID__:C});let je=0;function Pe(u){return f(()=>{const b=!0===u.standalone,y={},x={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:y,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,standalone:b,dependencies:b&&u.dependencies||null,getStandaloneInjector:null,selectors:u.selectors||M,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c"+je++,styles:u.styles||M,_:null,setInput:null,schemas:u.schemas||null,tView:null},I=u.dependencies,N=u.features;return x.inputs=ze(u.inputs,y),x.outputs=ze(u.outputs),N&&N.forEach(ie=>ie(x)),x.directiveDefs=I?()=>("function"==typeof I?I():I).map(qe).filter(Be):null,x.pipeDefs=I?()=>("function"==typeof I?I():I).map(Pt).filter(Be):null,x})}function Qe(u,m,b){const y=u.\u0275cmp;y.directiveDefs=()=>("function"==typeof m?m():m).map(qe),y.pipeDefs=()=>("function"==typeof b?b():b).map(Pt)}function qe(u){return Re(u)||st(u)}function Be(u){return null!==u}function me(u){return f(()=>({type:u.type,bootstrap:u.bootstrap||M,declarations:u.declarations||M,imports:u.imports||M,exports:u.exports||M,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function ze(u,m){if(null==u)return p;const b={};for(const y in u)if(u.hasOwnProperty(y)){let x=u[y],I=x;Array.isArray(x)&&(I=x[1],x=x[0]),b[x]=y,m&&(m[x]=I)}return b}const tt=Pe;function at(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Re(u){return u[_e]||null}function st(u){return u[bt]||null}function Pt(u){return u[Vt]||null}function jt(u,m){const b=u[on]||null;if(!b&&!0===m)throw new Error(`Type ${E(u)} does not have '\u0275mod' property.`);return b}const Z=18;function Gn(u){return Array.isArray(u)&&"object"==typeof u[1]}function Yn(u){return Array.isArray(u)&&!0===u[1]}function Vi(u){return 0!=(8&u.flags)}function Fi(u){return 2==(2&u.flags)}function Hi(u){return 1==(1&u.flags)}function _i(u){return null!==u.template}function gi(u){return 0!=(256&u[2])}function Si(u,m){return u.hasOwnProperty(Mt)?u[Mt]:null}class Tr{constructor(m,b,y){this.previousValue=m,this.currentValue=b,this.firstChange=y}isFirstChange(){return this.firstChange}}function gr(){return ar}function ar(u){return u.type.prototype.ngOnChanges&&(u.setInput=sr),or}function or(){const u=Ar(this),m=u?.current;if(m){const b=u.previous;if(b===p)u.previous=m;else for(let y in m)b[y]=m[y];u.current=null,this.ngOnChanges(m)}}function sr(u,m,b,y){const x=Ar(u)||function lr(u,m){return u[_r]=m}(u,{previous:p,current:null}),I=x.current||(x.current={}),N=x.previous,ie=this.declaredInputs[b],ge=N[ie];I[ie]=new Tr(ge&&ge.currentValue,m,N===p),u[y]=m}gr.ngInherit=!0;const _r="__ngSimpleChanges__";function Ar(u){return u[_r]||null}function Jn(u){for(;Array.isArray(u);)u=u[0];return u}function yr(u,m){return Jn(m[u])}function Mi(u,m){return Jn(m[u.index])}function ca(u,m){return u.data[m]}function er(u,m){return u[m]}function Ai(u,m){const b=m[u];return Gn(b)?b:b[0]}function Ne(u){return 4==(4&u[2])}function ut(u){return 64==(64&u[2])}function pt(u,m){return null==m?null:u[m]}function Lt(u){u[Z]=0}function qt(u,m){u[5]+=m;let b=u,y=u[3];for(;null!==y&&(1===m&&1===b[5]||-1===m&&0===b[5]);)y[5]+=m,b=y,y=y[3]}const Yt={lFrame:no(null),bindingsEnabled:!0};function Ci(){return Yt.bindingsEnabled}function rn(){return Yt.lFrame.lView}function On(){return Yt.lFrame.tView}function Ui(u){return Yt.lFrame.contextLView=u,u[8]}function Li(u){return Yt.lFrame.contextLView=null,u}function hi(){let u=wr();for(;null!==u&&64===u.type;)u=u.parent;return u}function wr(){return Yt.lFrame.currentTNode}function Ve(u,m){const b=Yt.lFrame;b.currentTNode=u,b.isParent=m}function De(){return Yt.lFrame.isParent}function Ae(){Yt.lFrame.isParent=!1}function Xn(){const u=Yt.lFrame;let m=u.bindingRootIndex;return-1===m&&(m=u.bindingRootIndex=u.tView.bindingStartIndex),m}function Bi(){return Yt.lFrame.bindingIndex}function da(){return Yt.lFrame.bindingIndex++}function Or(u){const m=Yt.lFrame,b=m.bindingIndex;return m.bindingIndex=m.bindingIndex+u,b}function Qs(u,m){const b=Yt.lFrame;b.bindingIndex=b.bindingRootIndex=u,To(m)}function To(u){Yt.lFrame.currentDirectiveIndex=u}function $r(u){const m=Yt.lFrame.currentDirectiveIndex;return-1===m?null:u[m]}function to(){return Yt.lFrame.currentQueryIndex}function Gr(u){Yt.lFrame.currentQueryIndex=u}function ts(u){const m=u[1];return 2===m.type?m.declTNode:1===m.type?u[6]:null}function xa(u,m,b){if(b&be.SkipSelf){let x=m,I=u;for(;!(x=x.parent,null!==x||b&be.Host||(x=ts(I),null===x||(I=I[15],10&x.type))););if(null===x)return!1;m=x,u=I}const y=Yt.lFrame=Ks();return y.currentTNode=m,y.lView=u,!0}function ua(u){const m=Ks(),b=u[1];Yt.lFrame=m,m.currentTNode=b.firstChild,m.lView=u,m.tView=b,m.contextLView=u,m.bindingIndex=b.bindingStartIndex,m.inI18n=!1}function Ks(){const u=Yt.lFrame,m=null===u?null:u.child;return null===m?no(u):m}function no(u){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:u,child:null,inI18n:!1};return null!==u&&(u.child=m),m}function Xs(){const u=Yt.lFrame;return Yt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const ns=Xs;function ha(){const u=Xs();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 xi(){return Yt.lFrame.selectedIndex}function xr(u){Yt.lFrame.selectedIndex=u}function pi(){const u=Yt.lFrame;return ca(u.tView,u.selectedIndex)}function pa(){Yt.lFrame.currentNamespace="svg"}function rs(){!function el(){Yt.lFrame.currentNamespace=null}()}function ro(u,m){for(let b=m.directiveStart,y=m.directiveEnd;b=y)break}else m[ge]<0&&(u[Z]+=65536),(ie>11>16&&(3&u[2])===m){u[2]+=2048;try{I.call(ie)}finally{}}}else try{I.call(ie)}finally{}}class Sa{constructor(m,b,y){this.factory=m,this.resolving=!1,this.canSeeViewProviders=b,this.injectImpl=y}}function so(u,m,b){let y=0;for(;ym){N=I-1;break}}}for(;I>16}(u),y=m;for(;b>0;)y=y[15],b--;return y}let Gi=!0;function Dr(u){const m=Gi;return Gi=u,m}let ol=0;const tr={};function Kr(u,m){const b=Ha(u,m);if(-1!==b)return b;const y=m[1];y.firstCreatePass&&(u.injectorIndex=m.length,Oa(y.data,u),Oa(m,null),Oa(y.blueprint,null));const x=co(u,m),I=u.injectorIndex;if(ss(x)){const N=Qr(x),ie=Hr(x,m),ge=ie[1].data;for(let We=0;We<8;We++)m[I+We]=ie[N+We]|ge[N+We]}return m[I+8]=x,I}function Oa(u,m){u.push(0,0,0,0,0,0,0,0,m)}function Ha(u,m){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===m[u.injectorIndex+8]?-1:u.injectorIndex}function co(u,m){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let b=0,y=null,x=m;for(;null!==x;){if(y=Va(x),null===y)return-1;if(b++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|b<<16}return-1}function zr(u,m,b){!function Ra(u,m,b){let y;"string"==typeof b?y=b.charCodeAt(0)||0:b.hasOwnProperty(ft)&&(y=b[ft]),null==y&&(y=b[ft]=ol++);const x=255&y;m.data[u+(x>>5)]|=1<=0?255&m:ll:m}(b);if("function"==typeof I){if(!xa(m,u,y))return y&be.Host?cs(x,0,y):ds(m,b,y,x);try{const N=I(y);if(null!=N||y&be.Optional)return N;L()}finally{ns()}}else if("number"==typeof I){let N=null,ie=Ha(u,m),ge=-1,We=y&be.Host?m[16][6]:null;for((-1===ie||y&be.SkipSelf)&&(ge=-1===ie?co(u,m):m[ie+8],-1!==ge&&ka(y,!1)?(N=m[1],ie=Qr(ge),m=Hr(ge,m)):ie=-1);-1!==ie;){const lt=m[1];if(Na(I,ie,lt.data)){const Tt=La(ie,m,b,N,y,We);if(Tt!==tr)return Tt}ge=m[ie+8],-1!==ge&&ka(y,m[1].data[ie+8]===We)&&Na(I,ie,m)?(N=lt,ie=Qr(ge),m=Hr(ge,m)):ie=-1}}return x}function La(u,m,b,y,x,I){const N=m[1],ie=N.data[u+8],lt=Ti(ie,N,b,null==y?Fi(ie)&&Gi:y!=N&&0!=(3&ie.type),x&be.Host&&I===ie);return null!==lt?Ba(m,N,lt,ie):tr}function Ti(u,m,b,y,x){const I=u.providerIndexes,N=m.data,ie=1048575&I,ge=u.directiveStart,lt=I>>20,kt=x?ie+lt:u.directiveEnd;for(let zt=y?ie:ie+lt;zt=ge&&nn.type===b)return zt}if(x){const zt=N[ge];if(zt&&_i(zt)&&zt.type===b)return ge}return null}function Ba(u,m,b,y){let x=u[b];const I=m.data;if(function il(u){return u instanceof Sa}(x)){const N=x;N.resolving&&function de(u,m){const b=m?`. Dependency path: ${m.join(" > ")} > ${u}`:"";throw new te(-200,`Circular dependency in DI detected for ${u}${b}`)}(function le(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():ee(u)}(I[b]));const ie=Dr(N.canSeeViewProviders);N.resolving=!0;const ge=N.injectImpl?H(N.injectImpl):null;xa(u,y,be.Default);try{x=u[b]=N.factory(void 0,I,u,y),m.firstCreatePass&&b>=y.directiveStart&&function as(u,m,b){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:I}=m.type.prototype;if(y){const N=ar(m);(b.preOrderHooks||(b.preOrderHooks=[])).push(u,N),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,N)}x&&(b.preOrderHooks||(b.preOrderHooks=[])).push(0-u,x),I&&((b.preOrderHooks||(b.preOrderHooks=[])).push(u,I),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,I))}(b,I[b],m)}finally{null!==ge&&H(ge),Dr(ie),N.resolving=!1,ns()}}return x}function Na(u,m,b){return!!(b[m+(u>>5)]&1<{const m=u.prototype.constructor,b=m[Mt]||hs(m),y=Object.prototype;let x=Object.getPrototypeOf(u.prototype).constructor;for(;x&&x!==y;){const I=x[Mt]||hs(x);if(I&&I!==b)return I;x=Object.getPrototypeOf(x)}return I=>new I})}function hs(u){return z(u)?()=>{const m=hs(V(u));return m&&m()}:Si(u)}function Va(u){const m=u[1],b=m.type;return 2===b?m.declTNode:1===b?u[6]:null}function Fa(u){return function sl(u,m){if("class"===m)return u.classes;if("style"===m)return u.styles;const b=u.attrs;if(b){const y=b.length;let x=0;for(;x{const y=function ho(u){return function(...b){if(u){const y=u(...b);for(const x in y)this[x]=y[x]}}}(m);function x(...I){if(this instanceof x)return y.apply(this,I),this;const N=new x(...I);return ie.annotation=N,ie;function ie(ge,We,lt){const Tt=ge.hasOwnProperty(cr)?ge[cr]:Object.defineProperty(ge,cr,{value:[]})[cr];for(;Tt.length<=lt;)Tt.push(null);return(Tt[lt]=Tt[lt]||[]).push(N),ge}}return b&&(x.prototype=Object.create(b.prototype)),x.prototype.ngMetadataName=u,x.annotationCls=x,x})}class ni{constructor(m,b){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=Oe({token:this,providedIn:b.providedIn||"root",factory:b.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function dr(u,m){void 0===m&&(m=u);for(let b=0;bArray.isArray(b)?X(b,m):m(b))}function ne(u,m,b){m>=u.length?u.push(b):u.splice(m,0,b)}function F(u,m){return m>=u.length-1?u.pop():u.splice(m,1)[0]}function fe(u,m){const b=[];for(let y=0;y=0?u[1|y]=b:(y=~y,function yt(u,m,b,y){let x=u.length;if(x==m)u.push(b,y);else if(1===x)u.push(y,u[0]),u[0]=b;else{for(x--,u.push(u[x-1],u[x]);x>m;)u[x]=u[x-2],x--;u[m]=b,u[m+1]=y}}(u,y,m,b)),y}function _n(u,m){const b=xn(u,m);if(b>=0)return u[1|b]}function xn(u,m){return function oi(u,m,b){let y=0,x=u.length>>b;for(;x!==y;){const I=y+(x-y>>1),N=u[I<m?x=I:y=I+1}return~(x<u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Vo}())||void 0===m?void 0:m.createHTML(u))||u}function Al(u){var m;return(null===(m=function Uo(){if(void 0===Fo&&(Fo=null,r.trustedTypes))try{Fo=r.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Fo}())||void 0===m?void 0:m.createHTML(u))||u}class Ya{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ld extends Ya{getTypeName(){return"HTML"}}class cd extends Ya{getTypeName(){return"Style"}}class dd extends Ya{getTypeName(){return"Script"}}class ud extends Ya{getTypeName(){return"URL"}}class ys extends Ya{getTypeName(){return"ResourceURL"}}function ea(u){return u instanceof Ya?u.changingThisBreaksApplicationSecurity:u}function go(u,m){const b=function hd(u){return u instanceof Ya&&u.getTypeName()||null}(u);if(null!=b&&b!==m){if("ResourceURL"===b&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${b} (see https://g.co/ng/security#xss)`)}return b===m}function pd(u){return new ld(u)}function fd(u){return new cd(u)}function md(u){return new dd(u)}function gd(u){return new ud(u)}function _d(u){return new ys(u)}class Ad{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const b=(new window.DOMParser).parseFromString(mo(m),"text/html").body;return null===b?this.inertDocumentHelper.getInertBodyElement(m):(b.removeChild(b.firstChild),b)}catch{return null}}}class Cd{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const b=this.inertDocument.createElement("html");this.inertDocument.appendChild(b);const y=this.inertDocument.createElement("body");b.appendChild(y)}}getInertBodyElement(m){const b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=mo(m),b;const y=this.inertDocument.createElement("body");return y.innerHTML=mo(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(m){const b=m.attributes;for(let x=b.length-1;0D(m.trim())).join(", ")),this.buf.push(" ",N,'="',ta(ge),'"')}var u;return this.buf.push(">"),!0}endElement(m){const b=m.nodeName.toLowerCase();Bn.hasOwnProperty(b)&&!It.hasOwnProperty(b)&&(this.buf.push(""))}chars(m){this.buf.push(ta(m))}checkClobberedElement(m,b){if(b&&(m.compareDocumentPosition(b)&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 b}}const ki=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ja=/([^\#-~ |!])/g;function ta(u){return u.replace(/&/g,"&").replace(ki,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Ja,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let zi;function Cr(u,m){let b=null;try{zi=zi||function cc(u){const m=new Cd(u);return function bd(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch{return!1}}()?new Ad(m):m}(u);let y=m?String(m):"";b=zi.getInertBodyElement(y);let x=5,I=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=I,I=b.innerHTML,b=zi.getInertBodyElement(y)}while(y!==I);return mo((new nr).sanitizeChildren(_o(b)||b))}finally{if(b){const y=_o(b)||b;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function _o(u){return"content"in u&&function Br(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.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 Ao(u){const m=Ir();return m?Al(m.sanitize(fi.HTML,u)||""):go(u,"HTML")?Al(ea(u)):Cr(function _l(){return void 0!==gl?gl:typeof document<"u"?document:void 0}(),ee(u))}function ba(u){const m=Ir();return m?m.sanitize(fi.URL,u)||"":go(u,"URL")?ea(u):D(ee(u))}function Ir(){const u=rn();return u&&u[12]}const mi=new ni("ENVIRONMENT_INITIALIZER"),bl=new ni("INJECTOR",-1),dc=new ni("INJECTOR_DEF_TYPES");class Wi{get(m,b=Oo){if(b===Oo){const y=new Error(`NullInjectorError: No provider for ${E(m)}!`);throw y.name="NullInjectorError",y}return b}}function $a(...u){return{\u0275providers:br(0,u)}}function br(u,...m){const b=[],y=new Set;let x;return X(m,I=>{const N=I;Zo(N,b,[],y)&&(x||(x=[]),x.push(N))}),void 0!==x&&Go(x,b),b}function Go(u,m){for(let b=0;b{m.push(I)})}}function Zo(u,m,b,y){if(!(u=V(u)))return!1;let x=null,I=Ce(u);const N=!I&&Re(u);if(I||N){if(N&&!N.standalone)return!1;x=u}else{const ge=u.ngModule;if(I=Ce(ge),!I)return!1;x=ge}const ie=y.has(x);if(N){if(ie)return!1;if(y.add(x),N.dependencies){const ge="function"==typeof N.dependencies?N.dependencies():N.dependencies;for(const We of ge)Zo(We,m,b,y)}}else{if(!I)return!1;{if(null!=I.imports&&!ie){let We;y.add(x);try{X(I.imports,lt=>{Zo(lt,m,b,y)&&(We||(We=[]),We.push(lt))})}finally{}void 0!==We&&Go(We,m)}if(!ie){const We=Si(x)||(()=>new x);m.push({provide:x,useFactory:We,deps:M},{provide:dc,useValue:x,multi:!0},{provide:mi,useValue:()=>Pi(x),multi:!0})}const ge=I.providers;null==ge||ie||X(ge,lt=>{m.push(lt)})}}return x!==u&&void 0!==u.providers}const x_=C({provide:String,useValue:C});function vd(u){return null!==u&&"object"==typeof u&&x_ in u}function zo(u){return"function"==typeof u}const Ed=new ni("Set Injector scope."),uc={},S_={};let Td;function hc(){return void 0===Td&&(Td=new Wi),Td}class Wo{}class Vh extends Wo{constructor(m,b,y,x){super(),this.parent=b,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(m,N=>this.processProvider(N)),this.records.set(bl,ws(void 0,this)),x.has("environment")&&this.records.set(Wo,ws(void 0,this));const I=this.records.get(Ed);null!=I&&"string"==typeof I.value&&this.scopes.add(I.value),this.injectorDefTypes=new Set(this.get(dc.multi,M,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const b=Lo(this),y=H(void 0);try{return m()}finally{Lo(b),H(y)}}get(m,b=Oo,y=be.Default){this.assertNotDestroyed();const x=Lo(this),I=H(void 0);try{if(!(y&be.SkipSelf)){let ie=this.records.get(m);if(void 0===ie){const ge=function H_(u){return"function"==typeof u||"object"==typeof u&&u instanceof ni}(m)&&_t(m);ie=ge&&this.injectableDefInScope(ge)?ws(yd(m),uc):null,this.records.set(m,ie)}if(null!=ie)return this.hydrate(m,ie)}return(y&be.Self?hc():this.parent).get(m,b=y&be.Optional&&b===Oo?null:b)}catch(N){if("NullInjectorError"===N.name){if((N[gs]=N[gs]||[]).unshift(E(m)),x)throw N;return function Kl(u,m,b,y){const x=u[gs];throw m[$l]&&x.unshift(m[$l]),u.message=function ml(u,m,b,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let x=E(m);if(Array.isArray(m))x=m.map(E).join(" -> ");else if("object"==typeof m){let I=[];for(let N in m)if(m.hasOwnProperty(N)){let ie=m[N];I.push(N+":"+("string"==typeof ie?JSON.stringify(ie):E(ie)))}x=`{${I.join(", ")}}`}return`${b}${y?"("+y+")":""}[${x}]: ${u.replace($c,"\n ")}`}("\n"+u.message,x,b,y),u.ngTokenPath=x,u[gs]=null,u}(N,m,"R3InjectorError",this.source)}throw N}finally{H(I),Lo(x)}}resolveInjectorInitializers(){const m=Lo(this),b=H(void 0);try{const y=this.get(mi.multi,M,be.Self);for(const x of y)x()}finally{Lo(m),H(b)}}toString(){const m=[],b=this.records;for(const y of b.keys())m.push(E(y));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(m){let b=zo(m=V(m))?m:V(m&&m.provide);const y=function P_(u){return vd(u)?ws(void 0,u.useValue):ws(Fh(u),uc)}(m);if(zo(m)||!0!==m.multi)this.records.get(b);else{let x=this.records.get(b);x||(x=ws(void 0,uc,!0),x.factory=()=>Oi(x.multi),this.records.set(b,x)),b=m,x.multi.push(m)}this.records.set(b,y)}hydrate(m,b){return b.value===uc&&(b.value=S_,b.value=b.factory()),"object"==typeof b.value&&b.value&&function O_(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(b.value)&&this._ngOnDestroyHooks.add(b.value),b.value}injectableDefInScope(m){if(!m.providedIn)return!1;const b=V(m.providedIn);return"string"==typeof b?"any"===b||this.scopes.has(b):this.injectorDefTypes.has(b)}}function yd(u){const m=_t(u),b=null!==m?m.factory:Si(u);if(null!==b)return b;if(u instanceof ni)throw new te(204,!1);if(u instanceof Function)return function I_(u){const m=u.length;if(m>0)throw fe(m,"?"),new te(204,!1);const b=function gt(u){const m=u&&(u[ae]||u[Se]);if(m){const b=function Y(u){if(u.hasOwnProperty("name"))return u.name;const m=(""+u).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${b}" 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 "${b}" class.`),m}return null}(u);return null!==b?()=>b.factory(u):()=>new u}(u);throw new te(204,!1)}function Fh(u,m,b){let y;if(zo(u)){const x=V(u);return Si(x)||yd(x)}if(vd(u))y=()=>V(u.useValue);else if(function kh(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Oi(u.deps||[]));else if(function Nh(u){return!(!u||!u.useExisting)}(u))y=()=>Pi(V(u.useExisting));else{const x=V(u&&(u.useClass||u.provide));if(!function R_(u){return!!u.deps}(u))return Si(x)||yd(x);y=()=>new x(...Oi(u.deps))}return y}function ws(u,m,b=!1){return{factory:u,value:m,multi:b?[]:void 0}}function L_(u){return!!u.\u0275providers}function wd(u,m){for(const b of u)Array.isArray(b)?wd(b,m):L_(b)?wd(b.\u0275providers,m):m(b)}class Uh{}class k_{resolveComponentFactory(m){throw function N_(u){const m=Error(`No component factory found for ${E(u)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=u,m}(m)}}let vl=(()=>{class u{}return u.NULL=new k_,u})();function V_(){return Ms(hi(),rn())}function Ms(u,m){return new El(Mi(u,m))}let El=(()=>{class u{constructor(b){this.nativeElement=b}}return u.__NG_ELEMENT_ID__=V_,u})();function F_(u){return u instanceof El?u.nativeElement:u}class Gh{}let U_=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function j_(){const u=rn(),b=Ai(hi().index,u);return(Gn(b)?b:u)[11]}(),u})(),G_=(()=>{class u{}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:()=>null}),u})();class Zh{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const Z_=new Zh("14.1.2"),Md={};function Pd(u){return u.ngOriginalError}class Tl{constructor(){this._console=console}handleError(m){const b=this._findOriginalError(m);this._console.error("ERROR",m),b&&this._console.error("ORIGINAL ERROR",b)}_findOriginalError(m){let b=m&&Pd(m);for(;b&&Pd(b);)b=Pd(b);return b||null}}const Rd=new Map;let nA=0;const Hd="__ngContext__";function hr(u,m){Gn(m)?(u[Hd]=m[20],function rA(u){Rd.set(u[20],u)}(m)):u[Hd]=m}function yl(u){const m=u[Hd];return"number"==typeof m?function qh(u){return Rd.get(u)||null}(m):m||null}function Ld(u){const m=yl(u);return m?Gn(m)?m:m.lView:null}const pA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(r))();function tp(u){return u.ownerDocument.defaultView}function np(u){return u.ownerDocument}function qa(u){return u instanceof Function?u():u}var va=(()=>((va=va||{})[va.Important=1]="Important",va[va.DashCase=2]="DashCase",va))();function Nd(u,m){return undefined(u,m)}function wl(u){const m=u[3];return Yn(m)?m[3]:m}function kd(u){return op(u[13])}function Vd(u){return op(u[4])}function op(u){for(;null!==u&&!Yn(u);)u=u[4];return u}function Ds(u,m,b,y,x){if(null!=y){let I,N=!1;Yn(y)?I=y:Gn(y)&&(N=!0,y=y[0]);const ie=Jn(y);0===u&&null!==b?null==x?hp(m,b,ie):Yo(m,b,ie,x||null,!0):1===u&&null!==b?Yo(m,b,ie,x||null,!0):2===u?function Cp(u,m,b){const y=pc(u,m);y&&function SA(u,m,b,y){u.removeChild(m,b,y)}(u,y,m,b)}(m,ie,N):3===u&&m.destroyNode(ie),null!=I&&function RA(u,m,b,y,x){const I=b[7];I!==Jn(b)&&Ds(m,u,y,I,x);for(let ie=10;ie0&&(u[b-1][4]=y[4]);const I=F(u,10+m);!function vA(u,m){Ml(u,m,m[11],2,null,null),m[0]=null,m[6]=null}(y[1],y);const N=I[19];null!==N&&N.detachView(I[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function cp(u,m){if(!(128&m[2])){const b=m[11];b.destroyNode&&Ml(u,m,b,3,null,null),function yA(u){let m=u[13];if(!m)return Gd(u[1],u);for(;m;){let b=null;if(Gn(m))b=m[13];else{const y=m[10];y&&(b=y)}if(!b){for(;m&&!m[4]&&m!==u;)Gn(m)&&Gd(m[1],m),m=m[3];null===m&&(m=u),Gn(m)&&Gd(m[1],m),b=m&&m[4]}m=b}}(m)}}function Gd(u,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function DA(u,m){let b;if(null!=u&&null!=(b=u.destroyHooks))for(let y=0;y=0?y[x=We]():y[x=-We].unsubscribe(),I+=2}else{const N=y[x=b[I+1]];b[I].call(N)}if(null!==y){for(let I=x+1;II?"":x[Tt+1].toLowerCase();const zt=8&y?kt:null;if(zt&&-1!==Ep(zt,We,0)||2&y&&We!==kt){if(ia(y))return!1;N=!0}}}}else{if(!N&&!ia(y)&&!ia(ge))return!1;if(N&&ia(ge))continue;N=!1,y=ge|1&y}}return ia(y)||N}function ia(u){return 0==(1&u)}function NA(u,m,b,y){if(null===m)return-1;let x=0;if(y||!b){let I=!1;for(;x-1)for(b++;b0?'="'+ie+'"':"")+"]"}else 8&y?x+="."+N:4&y&&(x+=" "+N);else""!==x&&!ia(N)&&(m+=Mp(I,x),x=""),y=N,I=I||!ia(y);b++}return""!==x&&(m+=Mp(I,x)),m}const Fn={};function xp(u){Dp(On(),rn(),xi()+u,!1)}function Dp(u,m,b,y){if(!y)if(3==(3&m[2])){const I=u.preOrderCheckHooks;null!==I&&qr(m,I,b)}else{const I=u.preOrderHooks;null!==I&&Da(m,I,0,b)}xr(b)}function Rp(u,m=null,b=null,y){const x=Op(u,m,b,y);return x.resolveInjectorInitializers(),x}function Op(u,m=null,b=null,y,x=new Set){const I=[b||M,$a(u)];return y=y||("object"==typeof u?void 0:E(u)),new Vh(I,m||hc(),y||null,x)}let Jo=(()=>{class u{static create(b,y){if(Array.isArray(b))return Rp({name:""},y,b,"");{var x;const I=null!==(x=b.name)&&void 0!==x?x:"";return Rp({name:I},b.parent,b.providers,I)}}}return u.THROW_IF_NOT_FOUND=Oo,u.NULL=new Wi,u.\u0275prov=Oe({token:u,providedIn:"any",factory:()=>Pi(bl)}),u.__NG_ELEMENT_ID__=-1,u})();function Is(u,m=be.Default){const b=rn();return null===b?Pi(u,m):us(hi(),b,V(u),m)}function Fp(){throw new Error("invalid")}function _c(u,m){return u<<17|m<<2}function ra(u){return u>>17&32767}function Kd(u){return 2|u}function Qa(u){return(131068&u)>>2}function Xd(u,m){return-131069&u|m<<2}function eu(u){return 1|u}function Qp(u,m){const b=u.contentQueries;if(null!==b)for(let y=0;y22&&Dp(u,m,22,!1),b(y,x)}finally{xr(I)}}function Xp(u,m,b){if(Vi(m)){const x=m.directiveEnd;for(let I=m.directiveStart;I0;){const b=u[--m];if("number"==typeof b&&b<0)return b}return 0})(ie)!=ge&&ie.push(ge),ie.push(y,x,N)}}function lf(u,m){null!==u.hostBindings&&u.hostBindings(1,m)}function cf(u,m){m.flags|=2,(u.components||(u.components=[])).push(m.index)}function HC(u,m,b){if(b){if(m.exportAs)for(let y=0;y0&&mu(b)}}function mu(u){for(let y=kd(u);null!==y;y=Vd(y))for(let x=10;x0&&mu(I)}const b=u[1].components;if(null!==b)for(let y=0;y0&&mu(x)}}function UC(u,m){const b=Ai(m,u),y=b[1];(function jC(u,m){for(let b=m.length;bPromise.resolve(null))();function mf(u){return u[7]||(u[7]=[])}function gf(u){return u.cleanup||(u.cleanup=[])}function _f(u,m,b){return(null===u||_i(u))&&(b=function eo(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(b[m.index])),b[11]}function Af(u,m){const b=u[9],y=b?b.get(Tl,null):null;y&&y.handleError(m)}function Cu(u,m,b,y,x){for(let I=0;I-1&&(jd(m,y),F(b,y))}this._attachedToViewContainer=!1}cp(this._lView[1],this._lView)}onDestroy(m){tf(this._lView[1],this._lView,null,m)}markForCheck(){gu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _u(u,m,b){const y=m[10];y.begin&&y.begin();try{xl(u,m,u.template,b)}catch(x){throw Af(m,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function TA(u,m){Ml(u,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=m}}class zC extends Dl{constructor(m){super(m),this._view=m}detectChanges(){ff(this._view)}checkNoChanges(){}get context(){return null}}class bu extends vl{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const b=Re(m);return new Sl(b,this.ngModule)}}function Cf(u){const m=[];for(let b in u)u.hasOwnProperty(b)&&m.push({propName:u[b],templateName:b});return m}class YC{constructor(m,b){this.injector=m,this.parentInjector=b}get(m,b,y){const x=this.injector.get(m,Md,y);return x!==Md||b===Md?x:this.parentInjector.get(m,b,y)}}class Sl extends Uh{constructor(m,b){super(),this.componentDef=m,this.ngModule=b,this.componentType=m.type,this.selector=function GA(u){return u.map(jA).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!b}get inputs(){return Cf(this.componentDef.inputs)}get outputs(){return Cf(this.componentDef.outputs)}create(m,b,y,x){var I;let N=(x=x||this.ngModule)instanceof Wo?x:null===(I=x)||void 0===I?void 0:I.injector;N&&null!==this.componentDef.getStandaloneInjector&&(N=this.componentDef.getStandaloneInjector(N)||N);const ie=N?new YC(m,N):m,ge=ie.get(Gh,null);if(null===ge)throw new te(407,!1);const We=ie.get(G_,null),lt=ge.createRenderer(null,this.componentDef),Tt=this.componentDef.selectors[0][0]||"div",kt=y?function yC(u,m,b){return u.selectRootElement(m,b===t.ShadowDom)}(lt,y,this.componentDef.encapsulation):Ud(ge.createRenderer(null,this.componentDef),Tt,function WC(u){const m=u.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(Tt)),zt=this.componentDef.onPush?288:272,nn=function KC(u,m){return{components:[],scheduler:u||pA,clean:ZC,playerHandler:m||null,flags:0}}(),dn=hu(0,null,null,1,0,null,null,null,null,null),pn=bc(null,dn,nn,zt,null,null,ge,lt,We,ie,null);let Tn,Dn;ua(pn);try{const ln=function qC(u,m,b,y,x,I){const N=b[1];b[22]=u;const ge=Ps(N,22,2,"#host",null),We=ge.mergedAttrs=m.hostAttrs;null!==We&&(Tc(ge,We,!0),null!==u&&(so(x,u,We),null!==ge.classes&&Yd(x,u,ge.classes),null!==ge.styles&&vp(x,u,ge.styles)));const lt=y.createRenderer(u,m),Tt=bc(b,ef(m),null,m.onPush?32:16,b[22],ge,y,lt,I||null,null,null);return N.firstCreatePass&&(zr(Kr(ge,b),N,m.type),cf(N,ge),df(ge,b.length,1)),Ec(b,Tt),b[22]=Tt}(kt,this.componentDef,pn,ge,lt);if(kt)if(y)so(lt,kt,["ng-version",Z_.full]);else{const{attrs:Rn,classes:Un}=function ZA(u){const m=[],b=[];let y=1,x=2;for(;y0&&Yd(lt,kt,Un.join(" "))}if(Dn=ca(dn,22),void 0!==b){const Rn=Dn.projection=[];for(let Un=0;Un=0;y--){const x=u[y];x.hostVars=m+=x.hostVars,x.hostAttrs=lo(x.hostAttrs,b=lo(b,x.hostAttrs))}}(y)}function Eu(u){return u===p?{}:u===M?[]:u}function tb(u,m){const b=u.viewQuery;u.viewQuery=b?(y,x)=>{m(y,x),b(y,x)}:m}function nb(u,m){const b=u.contentQueries;u.contentQueries=b?(y,x,I)=>{m(y,x,I),b(y,x,I)}:m}function ib(u,m){const b=u.hostBindings;u.hostBindings=b?(y,x)=>{m(y,x),b(y,x)}:m}let wc=null;function $o(){if(!wc){const u=r.Symbol;if(u&&u.iterator)wc=u.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let b=0;bie(Jn(Un[y.index])):y.index;let Rn=null;if(!ie&&ge&&(Rn=function gb(u,m,b,y){const x=u.cleanup;if(null!=x)for(let I=0;Ige?ie[ge]:null}"string"==typeof N&&(I+=2)}return null}(u,m,x,y.index)),null!==Rn)(Rn.__ngLastListenerFn__||Rn).__ngNextListenerFn__=I,Rn.__ngLastListenerFn__=I,zt=!1;else{I=Bf(y,m,Tt,I,!1);const Un=b.listen(Tn,x,I);kt.push(I,Un),lt&<.push(x,ln,Dn,Dn+1)}}else I=Bf(y,m,Tt,I,!1);const nn=y.outputs;let dn;if(zt&&null!==nn&&(dn=nn[x])){const pn=dn.length;if(pn)for(let Tn=0;Tn0;)m=m[15],u--;return m}(u,Yt.lFrame.contextLView))[8]}(u)}function _b(u,m){let b=null;const y=function kA(u){const m=u.attrs;if(null!=m){const b=m.indexOf(5);if(0==(1&b))return m[b+1]}return null}(u);for(let x=0;x=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jf(u){return u.substring(Yi.key,Yi.keyEnd)}function $f(u,m){const b=Yi.textEnd;return b===m?-1:(m=Yi.keyEnd=function yb(u,m,b){for(;m32;)m++;return m}(u,Yi.key=m,b),js(u,m,b))}function js(u,m,b){for(;m=0;b=$f(m,b))bn(u,Jf(m),!0)}function aa(u,m,b,y){const x=rn(),I=On(),N=Or(2);I.firstUpdatePass&&nm(I,u,N,y),m!==Fn&&pr(x,N,m)&&rm(I,I.data[xi()],x,x[11],u,x[N+1]=function Hb(u,m){return null==u||("string"==typeof m?u+=m:"object"==typeof u&&(u=E(ea(u)))),u}(m,b),y,N)}function oa(u,m,b,y){const x=On(),I=Or(2);x.firstUpdatePass&&nm(x,null,I,y);const N=rn();if(b!==Fn&&pr(N,I,b)){const ie=x.data[xi()];if(om(ie,y)&&!tm(x,I)){let ge=y?ie.classesWithoutHost:ie.stylesWithoutHost;null!==ge&&(b=S(ge,b||"")),xu(x,ie,N,b,y)}else!function Ob(u,m,b,y,x,I,N,ie){x===Fn&&(x=M);let ge=0,We=0,lt=0=u.expandoStartIndex}function nm(u,m,b,y){const x=u.data;if(null===x[b+1]){const I=x[xi()],N=tm(u,b);om(I,y)&&null===m&&!N&&(m=!1),m=function Db(u,m,b,y){const x=$r(u);let I=y?m.residualClasses:m.residualStyles;if(null===x)0===(y?m.classBindings:m.styleBindings)&&(b=Rl(b=Nu(null,u,m,b,y),m.attrs,y),I=null);else{const N=m.directiveStylingLast;if(-1===N||u[N]!==x)if(b=Nu(x,u,m,b,y),null===I){let ge=function Sb(u,m,b){const y=b?m.classBindings:m.styleBindings;if(0!==Qa(y))return u[ra(y)]}(u,m,y);void 0!==ge&&Array.isArray(ge)&&(ge=Nu(null,u,m,ge[1],y),ge=Rl(ge,m.attrs,y),function Ib(u,m,b,y){u[ra(b?m.classBindings:m.styleBindings)]=y}(u,m,y,ge))}else I=function Pb(u,m,b){let y;const x=m.directiveEnd;for(let I=1+m.directiveStylingLast;I0)&&(We=!0)}else lt=b;if(x)if(0!==ge){const kt=ra(u[ie+1]);u[y+1]=_c(kt,ie),0!==kt&&(u[kt+1]=Xd(u[kt+1],y)),u[ie+1]=function cC(u,m){return 131071&u|m<<17}(u[ie+1],y)}else u[y+1]=_c(ie,0),0!==ie&&(u[ie+1]=Xd(u[ie+1],y)),ie=y;else u[y+1]=_c(ge,0),0===ie?ie=y:u[ge+1]=Xd(u[ge+1],y),ge=y;We&&(u[y+1]=Kd(u[y+1])),Yf(u,lt,y,!0),Yf(u,lt,y,!1),function Cb(u,m,b,y,x){const I=x?u.residualClasses:u.residualStyles;null!=I&&"string"==typeof m&&xn(I,m)>=0&&(b[y+1]=eu(b[y+1]))}(m,lt,u,y,I),N=_c(ie,ge),I?m.classBindings=N:m.styleBindings=N}(x,I,m,b,N,y)}}function Nu(u,m,b,y,x){let I=null;const N=b.directiveEnd;let ie=b.directiveStylingLast;for(-1===ie?ie=b.directiveStart:ie++;ie0;){const ge=u[x],We=Array.isArray(ge),lt=We?ge[1]:ge,Tt=null===lt;let kt=b[x+1];kt===Fn&&(kt=Tt?M:void 0);let zt=Tt?_n(kt,y):lt===y?kt:void 0;if(We&&!Rc(zt)&&(zt=_n(ge,y)),Rc(zt)&&(ie=zt,N))return ie;const nn=u[x+1];x=N?ra(nn):Qa(nn)}if(null!==m){let ge=I?m.residualClasses:m.residualStyles;null!=ge&&(ie=_n(ge,y))}return ie}function Rc(u){return void 0!==u}function om(u,m){return 0!=(u.flags&(m?16:32))}function sm(u,m=""){const b=rn(),y=On(),x=u+22,I=y.firstCreatePass?Ps(y,x,1,m,null):y.data[x],N=b[x]=function Fd(u,m){return u.createText(m)}(b[11],m);fc(y,b,N,I),Ve(I,!1)}function ku(u){return Oc("",u,""),ku}function Oc(u,m,b){const y=rn(),x=Hs(y,u,m,b);return x!==Fn&&Ka(y,xi(),x),Oc}function Vu(u,m,b,y,x){const I=rn(),N=Ls(I,u,m,b,y,x);return N!==Fn&&Ka(I,xi(),N),Vu}function Fu(u,m,b,y,x,I,N){const ie=rn(),ge=function Bs(u,m,b,y,x,I,N,ie){const We=Mc(u,Bi(),b,x,N);return Or(3),We?m+ee(b)+y+ee(x)+I+ee(N)+ie:Fn}(ie,u,m,b,y,x,I,N);return ge!==Fn&&Ka(ie,xi(),ge),Fu}function Uu(u,m,b,y,x,I,N,ie,ge){const We=rn(),lt=function Ns(u,m,b,y,x,I,N,ie,ge,We){const Tt=Wr(u,Bi(),b,x,N,ge);return Or(4),Tt?m+ee(b)+y+ee(x)+I+ee(N)+ie+ee(ge)+We:Fn}(We,u,m,b,y,x,I,N,ie,ge);return lt!==Fn&&Ka(We,xi(),lt),Uu}function ju(u,m,b,y,x,I,N,ie,ge,We,lt){const Tt=rn(),kt=function ks(u,m,b,y,x,I,N,ie,ge,We,lt,Tt){const kt=Bi();let zt=Wr(u,kt,b,x,N,ge);return zt=pr(u,kt+4,lt)||zt,Or(5),zt?m+ee(b)+y+ee(x)+I+ee(N)+ie+ee(ge)+We+ee(lt)+Tt:Fn}(Tt,u,m,b,y,x,I,N,ie,ge,We,lt);return kt!==Fn&&Ka(Tt,xi(),kt),ju}function hm(u,m,b){oa(bn,wa,Hs(rn(),u,m,b),!0)}function Gu(u,m,b){const y=rn();return pr(y,da(),m)&&Nr(On(),pi(),y,u,m,y[11],b,!0),Gu}function Zu(u,m,b){const y=rn();if(pr(y,da(),m)){const I=On(),N=pi();Nr(I,N,y,u,m,_f($r(I.data),N,y),b,!0)}return Zu}const Qo=void 0;var Xb=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["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"]],Qo,[["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"]],Qo,[["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}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(u){const b=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===b&&0===y?1:5}];let Gs={};function zu(u){const m=function ev(u){return u.toLowerCase().replace(/_/g,"-")}(u);let b=Tm(m);if(b)return b;const y=m.split("-")[0];if(b=Tm(y),b)return b;if("en"===y)return Xb;throw new te(701,!1)}function Em(u){return zu(u)[Pn.PluralCase]}function Tm(u){return u in Gs||(Gs[u]=r.ng&&r.ng.common&&r.ng.common.locales&&r.ng.common.locales[u]),Gs[u]}var Pn=(()=>((Pn=Pn||{})[Pn.LocaleId=0]="LocaleId",Pn[Pn.DayPeriodsFormat=1]="DayPeriodsFormat",Pn[Pn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pn[Pn.DaysFormat=3]="DaysFormat",Pn[Pn.DaysStandalone=4]="DaysStandalone",Pn[Pn.MonthsFormat=5]="MonthsFormat",Pn[Pn.MonthsStandalone=6]="MonthsStandalone",Pn[Pn.Eras=7]="Eras",Pn[Pn.FirstDayOfWeek=8]="FirstDayOfWeek",Pn[Pn.WeekendRange=9]="WeekendRange",Pn[Pn.DateFormat=10]="DateFormat",Pn[Pn.TimeFormat=11]="TimeFormat",Pn[Pn.DateTimeFormat=12]="DateTimeFormat",Pn[Pn.NumberSymbols=13]="NumberSymbols",Pn[Pn.NumberFormats=14]="NumberFormats",Pn[Pn.CurrencyCode=15]="CurrencyCode",Pn[Pn.CurrencySymbol=16]="CurrencySymbol",Pn[Pn.CurrencyName=17]="CurrencyName",Pn[Pn.Currencies=18]="Currencies",Pn[Pn.Directionality=19]="Directionality",Pn[Pn.PluralCase=20]="PluralCase",Pn[Pn.ExtraData=21]="ExtraData",Pn))();const Zs="en-US";let ym=Zs;function Ju(u,m,b,y,x){if(u=V(u),Array.isArray(u))for(let I=0;I>20;if(zo(u)||!u.multi){const zt=new Sa(ge,x,Is),nn=qu(ie,m,x?lt:lt+kt,Tt);-1===nn?(zr(Kr(We,N),I,ie),$u(I,u,m.length),m.push(ie),We.directiveStart++,We.directiveEnd++,x&&(We.providerIndexes+=1048576),b.push(zt),N.push(zt)):(b[nn]=zt,N[nn]=zt)}else{const zt=qu(ie,m,lt+kt,Tt),nn=qu(ie,m,lt,lt+kt),dn=zt>=0&&b[zt],pn=nn>=0&&b[nn];if(x&&!pn||!x&&!dn){zr(Kr(We,N),I,ie);const Tn=function Qv(u,m,b,y,x){const I=new Sa(u,b,Is);return I.multi=[],I.index=m,I.componentProviders=0,$m(I,x,y&&!b),I}(x?qv:$v,b.length,x,y,ge);!x&&pn&&(b[nn].providerFactory=Tn),$u(I,u,m.length,0),m.push(ie),We.directiveStart++,We.directiveEnd++,x&&(We.providerIndexes+=1048576),b.push(Tn),N.push(Tn)}else $u(I,u,zt>-1?zt:nn,$m(b[x?nn:zt],ge,!x&&y));!x&&y&&pn&&b[nn].componentProviders++}}}function $u(u,m,b,y){const x=zo(m),I=function D_(u){return!!u.useClass}(m);if(x||I){const ge=(I?V(m.useClass):m).prototype.ngOnDestroy;if(ge){const We=u.destroyHooks||(u.destroyHooks=[]);if(!x&&m.multi){const lt=We.indexOf(b);-1===lt?We.push(b,[y,ge]):We[lt+1].push(y,ge)}else We.push(b,ge)}}}function $m(u,m,b){return b&&u.componentProviders++,u.multi.push(m)-1}function qu(u,m,b,y){for(let x=b;x{b.providersResolver=(y,x)=>function Jv(u,m,b){const y=On();if(y.firstCreatePass){const x=_i(u);Ju(b,y.data,y.blueprint,x,!0),Ju(m,y.data,y.blueprint,x,!1)}}(y,x?x(u):u,m)}}class Ws{}class Qm{}function Kv(u,m){return new Km(u,m??null)}class Km extends Ws{constructor(m,b){super(),this._parent=b,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bu(this);const y=jt(m);this._bootstrapComponents=qa(y.bootstrap),this._r3Injector=Op(m,b,[{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],E(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(b=>b()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Ku extends Qm{constructor(m){super(),this.moduleType=m}create(m){return new Km(this.moduleType,m)}}class Xv extends Ws{constructor(m,b,y){super(),this.componentFactoryResolver=new bu(this),this.instance=null;const x=new Vh([...m,{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],b||hc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function Xu(u,m,b=null){return new Xv(u,m,b).injector}function ag(u,m,b){const y=Xn()+u,x=rn();return x[y]===Fn?Ta(x,y,b?m.call(b):m()):function Pl(u,m){return u[m]}(x,y)}function og(u,m,b,y){return cg(rn(),Xn(),u,m,b,y)}function sg(u,m,b,y,x){return dg(rn(),Xn(),u,m,b,y,x)}function lg(u,m,b,y,x,I){return ug(rn(),Xn(),u,m,b,y,x,I)}function Nl(u,m){const b=u[m];return b===Fn?void 0:b}function cg(u,m,b,y,x,I){const N=m+b;return pr(u,N,x)?Ta(u,N+1,I?y.call(I,x):y(x)):Nl(u,N+1)}function dg(u,m,b,y,x,I,N){const ie=m+b;return qo(u,ie,x,I)?Ta(u,ie+2,N?y.call(N,x,I):y(x,I)):Nl(u,ie+2)}function ug(u,m,b,y,x,I,N,ie){const ge=m+b;return Mc(u,ge,x,I,N)?Ta(u,ge+3,ie?y.call(ie,x,I,N):y(x,I,N)):Nl(u,ge+3)}function fg(u,m){const b=On();let y;const x=u+22;b.firstCreatePass?(y=function gE(u,m){if(m)for(let b=m.length-1;b>=0;b--){const y=m[b];if(u===y.name)return y}}(m,b.pipeRegistry),b.data[x]=y,y.onDestroy&&(b.destroyHooks||(b.destroyHooks=[])).push(x,y.onDestroy)):y=b.data[x];const I=y.factory||(y.factory=Si(y.type)),N=H(Is);try{const ie=Dr(!1),ge=I();return Dr(ie),function pb(u,m,b,y){b>=u.data.length&&(u.data[b]=null,u.blueprint[b]=null),m[b]=y}(b,rn(),x,ge),ge}finally{H(N)}}function mg(u,m,b){const y=u+22,x=rn(),I=er(x,y);return kl(x,y)?cg(x,Xn(),m,I.transform,b,I):I.transform(b)}function gg(u,m,b,y){const x=u+22,I=rn(),N=er(I,x);return kl(I,x)?dg(I,Xn(),m,N.transform,b,y,N):N.transform(b,y)}function _g(u,m,b,y,x){const I=u+22,N=rn(),ie=er(N,I);return kl(N,I)?ug(N,Xn(),m,ie.transform,b,y,x,ie):ie.transform(b,y,x)}function kl(u,m){return u[1].data[m].pure}function th(u){return m=>{setTimeout(u,void 0,m)}}const Ma=class CE extends e.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,b,y){let x=m,I=b||(()=>null),N=y;if(m&&"object"==typeof m){var ie,ge,We;const Tt=m;x=null===(ie=Tt.next)||void 0===ie?void 0:ie.bind(Tt),I=null===(ge=Tt.error)||void 0===ge?void 0:ge.bind(Tt),N=null===(We=Tt.complete)||void 0===We?void 0:We.bind(Tt)}this.__isAsync&&(I=th(I),x&&(x=th(x)),N&&(N=th(N)));const lt=super.subscribe({next:x,error:I,complete:N});return m instanceof c.w0&&m.add(lt),lt}};function bE(){return this._results[$o()]()}class kc{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 b=$o(),y=kc.prototype;y[b]||(y[b]=bE)}get changes(){return this._changes||(this._changes=new Ma)}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,b){return this._results.reduce(m,b)}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,b){const y=this;y.dirty=!1;const x=dr(m);(this._changesDetected=!function pl(u,m,b){if(u.length!==m.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=TE,u})();const vE=Vl,EE=class extends vE{constructor(m,b,y){super(),this._declarationLView=m,this._declarationTContainer=b,this.elementRef=y}createEmbeddedView(m,b){const y=this._declarationTContainer.tViews,x=bc(this._declarationLView,y,m,16,null,y.declTNode,null,null,null,null,b||null);x[17]=this._declarationLView[this._declarationTContainer.index];const N=this._declarationLView[19];return null!==N&&(x[19]=N.createEmbeddedView(y)),vc(y,x,m),new Dl(x)}};function TE(){return Vc(hi(),rn())}function Vc(u,m){return 4&u.type?new EE(m,u,Ms(u,m)):null}let Fc=(()=>{class u{}return u.__NG_ELEMENT_ID__=yE,u})();function yE(){return bg(hi(),rn())}const wE=Fc,Ag=class extends wE{constructor(m,b,y){super(),this._lContainer=m,this._hostTNode=b,this._hostLView=y}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new ga(this._hostTNode,this._hostLView)}get parentInjector(){const m=co(this._hostTNode,this._hostLView);if(ss(m)){const b=Hr(m,this._hostLView),y=Qr(m);return new ga(b[1].data[y+8],b)}return new ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const b=Cg(this._lContainer);return null!==b&&b[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,b,y){let x,I;"number"==typeof y?x=y:null!=y&&(x=y.index,I=y.injector);const N=m.createEmbeddedView(b||{},I);return this.insert(N,x),N}createComponent(m,b,y,x,I){const N=m&&!function Ga(u){return"function"==typeof u}(m);let ie;if(N)ie=b;else{const Tt=b||{};ie=Tt.index,y=Tt.injector,x=Tt.projectableNodes,I=Tt.environmentInjector||Tt.ngModuleRef}const ge=N?m:new Sl(Re(m)),We=y||this.parentInjector;if(!I&&null==ge.ngModule){const kt=(N?We:this.parentInjector).get(Wo,null);kt&&(I=kt)}const lt=ge.create(We,x,void 0,I);return this.insert(lt.hostView,ie),lt}insert(m,b){const y=m._lView,x=y[1];if(function Le(u){return Yn(u[3])}(y)){const lt=this.indexOf(m);if(-1!==lt)this.detach(lt);else{const Tt=y[3],kt=new Ag(Tt,Tt[6],Tt[3]);kt.detach(kt.indexOf(m))}}const I=this._adjustIndex(b),N=this._lContainer;!function wA(u,m,b,y){const x=10+y,I=b.length;y>0&&(b[x-1][4]=m),y0)y.push(N[ie/2]);else{const We=I[ie+1],lt=m[-ge];for(let Tt=10;Tt{class u{constructor(b){this.appInits=b,this.resolve=jc,this.reject=jc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const b=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{I.subscribe({complete:ie,error:ge})});b.push(N)}}Promise.all(b).then(()=>{y()}).catch(x=>{this.reject(x)}),0===b.length&&y(),this.initialized=!0}}return u.\u0275fac=function(b){return new(b||u)(Pi($g,8))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const qg=new ni("AppId",{providedIn:"root",factory:function Qg(){return`${hh()}${hh()}${hh()}`}});function hh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kg=new ni("Platform Initializer"),XE=new ni("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ni("appBootstrapListener"),eT=new ni("AnimationModuleType");let tT=(()=>{class u{log(b){console.log(b)}warn(b){console.warn(b)}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();const Zc=new ni("LocaleId",{providedIn:"root",factory:()=>Ql(Zc,be.Optional|be.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||Zs}()}),iT=new ni("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(m,b){this.ngModuleFactory=m,this.componentFactories=b}}let aT=(()=>{class u{compileModuleSync(b){return new Ku(b)}compileModuleAsync(b){return Promise.resolve(this.compileModuleSync(b))}compileModuleAndAllComponentsSync(b){const y=this.compileModuleSync(b),I=qa(jt(b).declarations).reduce((N,ie)=>{const ge=Re(ie);return ge&&N.push(new Sl(ge)),N},[]);return new rT(y,I)}compileModuleAndAllComponentsAsync(b){return Promise.resolve(this.compileModuleAndAllComponentsSync(b))}clearCache(){}clearCacheFor(b){}getModuleId(b){}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const lT=(()=>Promise.resolve(0))();function ph(u){typeof Zone>"u"?lT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class kr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ma(!1),this.onMicrotaskEmpty=new Ma(!1),this.onStable=new Ma(!1),this.onError=new Ma(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const I=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new I("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&b,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function cT(){let u=r.requestAnimationFrame,m=r.cancelAnimationFrame;if(typeof Zone<"u"&&u&&m){const b=u[Zone.__symbol__("OriginalDelegate")];b&&(u=b);const y=m[Zone.__symbol__("OriginalDelegate")];y&&(m=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function hT(u){const m=()=>{!function uT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(r,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,mh(u),u.isCheckStableRunning=!0,fh(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),mh(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(b,y,x,I,N,ie)=>{try{return n_(u),b.invokeTask(x,I,N,ie)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===I.type||u.shouldCoalesceRunChangeDetection)&&m(),i_(u)}},onInvoke:(b,y,x,I,N,ie,ge)=>{try{return n_(u),b.invoke(x,I,N,ie,ge)}finally{u.shouldCoalesceRunChangeDetection&&m(),i_(u)}},onHasTask:(b,y,x,I)=>{b.hasTask(x,I),y===x&&("microTask"==I.change?(u._hasPendingMicrotasks=I.microTask,mh(u),fh(u)):"macroTask"==I.change&&(u.hasPendingMacrotasks=I.macroTask))},onHandleError:(b,y,x,I)=>(b.handleError(x,I),u.runOutsideAngular(()=>u.onError.emit(I)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kr.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(kr.isInAngularZone())throw new te(909,!1)}run(m,b,y){return this._inner.run(m,b,y)}runTask(m,b,y,x){const I=this._inner,N=I.scheduleEventTask("NgZoneEvent: "+x,m,dT,jc,jc);try{return I.runTask(N,b,y)}finally{I.cancelTask(N)}}runGuarded(m,b,y){return this._inner.runGuarded(m,b,y)}runOutsideAngular(m){return this._outer.run(m)}}const dT={};function fh(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 mh(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function n_(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function i_(u){u._nesting--,fh(u)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ma,this.onMicrotaskEmpty=new Ma,this.onStable=new Ma,this.onError=new Ma}run(m,b,y){return m.apply(b,y)}runGuarded(m,b,y){return m.apply(b,y)}runOutsideAngular(m){return m()}runTask(m,b,y,x){return m.apply(b,y)}}const r_=new ni(""),a_=new ni("");let gh,fT=(()=>{class u{constructor(b,y,x){this._ngZone=b,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gh||(function mT(u){gh=u}(x),x.addToWindow(y)),this._watchAngularEvents(),b.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kr.assertNotInAngularZone(),ph(()=>{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())ph(()=>{for(;0!==this._callbacks.length;){let b=this._callbacks.pop();clearTimeout(b.timeoutId),b.doneCb(this._didWork)}this._didWork=!1});else{let b=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(b)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(b=>({source:b.source,creationLocation:b.creationLocation,data:b.data})):[]}addCallback(b,y,x){let I=-1;y&&y>0&&(I=setTimeout(()=>{this._callbacks=this._callbacks.filter(N=>N.timeoutId!==I),b(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:b,timeoutId:I,updateCb:x})}whenStable(b,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(b,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(b){this.registry.registerApplication(b,this)}unregisterApplication(b){this.registry.unregisterApplication(b)}findProviders(b,y,x){return[]}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(o_),Pi(a_))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac}),u})(),o_=(()=>{class u{constructor(){this._applications=new Map}registerApplication(b,y){this._applications.set(b,y)}unregisterApplication(b){this._applications.delete(b)}unregisterAllApplications(){this._applications.clear()}getTestability(b){return this._applications.get(b)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(b,y=!0){var x,I;return null!==(x=null===(I=gh)||void 0===I?void 0:I.findTestabilityInTree(this,b,y))&&void 0!==x?x:null}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})(),vo=null;const s_=new ni("AllowMultipleToken"),_h=new ni("PlatformDestroyListeners");class AT{constructor(m,b){this.name=m,this.token=b}}function c_(u,m,b=[]){const y=`Platform: ${m}`,x=new ni(y);return(I=[])=>{let N=Ah();if(!N||N.injector.get(s_,!1)){const ie=[...b,...I,{provide:x,useValue:!0}];u?u(ie):function CT(u){if(vo&&!vo.get(s_,!1))throw new te(400,!1);vo=u;const m=u.get(u_);(function l_(u){const m=u.get(Kg,null);m&&m.forEach(b=>b())})(u)}(function d_(u=[],m){return Jo.create({name:m,providers:[{provide:Ed,useValue:"platform"},{provide:_h,useValue:new Set([()=>vo=null])},...u]})}(ie,y))}return function vT(u){const m=Ah();if(!m)throw new te(401,!1);return m}()}}function Ah(){var u,m;return null!==(u=null===(m=vo)||void 0===m?void 0:m.get(u_))&&void 0!==u?u:null}let u_=(()=>{class u{constructor(b){this._injector=b,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(b,y){const x=function ET(u,m){let b;return b="noop"===u?new pT:("zone.js"===u?void 0:u)||new kr(m),b}(y?.ngZone,function h_(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!u||!u.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!u||!u.ngZoneRunCoalescing)||!1}}(y)),I=[{provide:kr,useValue:x}];return x.run(()=>{const N=Jo.create({providers:I,parent:this.injector,name:b.moduleType.name}),ie=b.create(N),ge=ie.injector.get(Tl,null);if(!ge)throw new te(402,!1);return x.runOutsideAngular(()=>{const We=x.onError.subscribe({next:lt=>{ge.handleError(lt)}});ie.onDestroy(()=>{Wc(this._modules,ie),We.unsubscribe()})}),function p_(u,m,b){try{const y=b();return Iu(y)?y.catch(x=>{throw m.runOutsideAngular(()=>u.handleError(x)),x}):y}catch(y){throw m.runOutsideAngular(()=>u.handleError(y)),y}}(ge,x,()=>{const We=ie.injector.get(Gc);return We.runInitializers(),We.donePromise.then(()=>(function wm(u){R(u,"Expected localeId to be defined"),"string"==typeof u&&(ym=u.toLowerCase().replace(/_/g,"-"))}(ie.injector.get(Zc,Zs)||Zs),this._moduleDoBootstrap(ie),ie))})})}bootstrapModule(b,y=[]){const x=f_({},y);return function gT(u,m,b){const y=new Ku(b);return Promise.resolve(y)}(0,0,b).then(I=>this.bootstrapModuleFactory(I,x))}_moduleDoBootstrap(b){const y=b.injector.get(zc);if(b._bootstrapComponents.length>0)b._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!b.instance.ngDoBootstrap)throw new te(403,!1);b.instance.ngDoBootstrap(y)}this._modules.push(b)}onDestroy(b){this._destroyListeners.push(b)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const b=this._injector.get(_h,null);b&&(b.forEach(y=>y()),b.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(b){return new(b||u)(Pi(Jo))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function f_(u,m){return Array.isArray(m)?m.reduce(f_,u):{...u,...m}}let zc=(()=>{class u{constructor(b,y,x){this._zone=b,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const I=new A.y(ie=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ie.next(this._stable),ie.complete()})}),N=new A.y(ie=>{let ge;this._zone.runOutsideAngular(()=>{ge=this._zone.onStable.subscribe(()=>{kr.assertNotInAngularZone(),ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ie.next(!0))})})});const We=this._zone.onUnstable.subscribe(()=>{kr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ie.next(!1)}))});return()=>{ge.unsubscribe(),We.unsubscribe()}});this.isStable=(0,w.T)(I,N.pipe((0,g.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(b,y){const x=b instanceof Uh;if(!this._injector.get(Gc).done)throw!x&&Js(b),new te(405,false);let N;N=x?b:this._injector.get(vl).resolveComponentFactory(b),this.componentTypes.push(N.componentType);const ie=function _T(u){return u.isBoundToModule}(N)?void 0:this._injector.get(Ws),We=N.create(Jo.NULL,[],y||N.selector,ie),lt=We.location.nativeElement,Tt=We.injector.get(r_,null);return Tt?.registerApplication(lt),We.onDestroy(()=>{this.detachView(We.hostView),Wc(this.components,We),Tt?.unregisterApplication(lt)}),this._loadComponent(We),We}tick(){if(this._runningTick)throw new te(101,!1);try{this._runningTick=!0;for(let b of this._views)b.detectChanges()}catch(b){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(b))}finally{this._runningTick=!1}}attachView(b){const y=b;this._views.push(y),y.attachToAppRef(this)}detachView(b){const y=b;Wc(this._views,y),y.detachFromAppRef()}_loadComponent(b){this.attachView(b.hostView),this.tick(),this.components.push(b),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(x=>x(b))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(b=>b()),this._views.slice().forEach(b=>b.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(b){return this._destroyListeners.push(b),()=>Wc(this._destroyListeners,b)}destroy(){if(this._destroyed)throw new te(406,!1);const b=this._injector;b.destroy&&!b.destroyed&&b.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(Wo),Pi(Tl))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Wc(u,m){const b=u.indexOf(m);b>-1&&u.splice(b,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class u{}return u.__NG_ELEMENT_ID__=MT,u})();function MT(u){return function xT(u,m,b){if(Fi(u)&&!b){const y=Ai(u.index,m);return new Dl(y,y)}return 47&u.type?new Dl(m[16],m):null}(hi(),rn(),16==(16&u))}class v_{constructor(){}supports(m){return Il(m)}create(m){return new OT(m)}}const RT=(u,m)=>m;class OT{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||RT}forEachItem(m){let b;for(b=this._itHead;null!==b;b=b._next)m(b)}forEachOperation(m){let b=this._itHead,y=this._removalsHead,x=0,I=null;for(;b||y;){const N=!y||b&&b.currentIndex{N=this._trackByFn(x,ie),null!==b&&Object.is(b.trackById,N)?(y&&(b=this._verifyReinsertion(b,ie,N,x)),Object.is(b.item,ie)||this._addIdentityChange(b,ie)):(b=this._mismatch(b,ie,N,x),y=!0),b=b._next,x++}),this.length=x;return this._truncate(b),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,b,y,x){let I;return null===m?I=this._itTail:(I=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(m.item,b)||this._addIdentityChange(m,b),this._reinsertAfter(m,I,x)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(m.item,b)||this._addIdentityChange(m,b),this._moveAfter(m,I,x)):m=this._addAfter(new HT(b,y),I,x),m}_verifyReinsertion(m,b,y,x){let I=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==I?m=this._reinsertAfter(I,m._prev,x):m.currentIndex!=x&&(m.currentIndex=x,this._addToMoves(m,x)),m}_truncate(m){for(;null!==m;){const b=m._next;this._addToRemovals(this._unlink(m)),m=b}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,b,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const x=m._prevRemoved,I=m._nextRemoved;return null===x?this._removalsHead=I:x._nextRemoved=I,null===I?this._removalsTail=x:I._prevRemoved=x,this._insertAfter(m,b,y),this._addToMoves(m,y),m}_moveAfter(m,b,y){return this._unlink(m),this._insertAfter(m,b,y),this._addToMoves(m,y),m}_addAfter(m,b,y){return this._insertAfter(m,b,y),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,b,y){const x=null===b?this._itHead:b._next;return m._next=x,m._prev=b,null===x?this._itTail=m:x._prev=m,null===b?this._itHead=m:b._next=m,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(m),m.currentIndex=y,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const b=m._prev,y=m._next;return null===b?this._itHead=y:b._next=y,null===y?this._itTail=b:y._prev=b,m}_addToMoves(m,b){return m.previousIndex===b||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),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,b){return m.item=b,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class HT{constructor(m,b){this.item=m,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class LT{constructor(){this._head=null,this._tail=null}add(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,b){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===b||b<=y.currentIndex)&&Object.is(y.trackById,m))return y;return null}remove(m){const b=m._prevDup,y=m._nextDup;return null===b?this._head=y:b._nextDup=y,null===y?this._tail=b:y._prevDup=b,null===this._head}}class E_{constructor(){this.map=new Map}put(m){const b=m.trackById;let y=this.map.get(b);y||(y=new LT,this.map.set(b,y)),y.add(m)}get(m,b){const x=this.map.get(m);return x?x.get(m,b):null}remove(m){const b=m.trackById;return this.map.get(b).remove(m)&&this.map.delete(b),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(u,m,b){const y=u.previousIndex;if(null===y)return y;let x=0;return b&&y{if(b&&b.key===x)this._maybeAddToChanges(b,y),this._appendAfter=b,b=b._next;else{const I=this._getOrCreateRecordForKey(x,y);b=this._insertBeforeOrAppend(b,I)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(let y=b;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(m,b){if(m){const y=m._prev;return b._next=m,b._prev=y,m._prev=b,y&&(y._next=b),m===this._mapHead&&(this._mapHead=b),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b,this._appendAfter=b,null}_getOrCreateRecordForKey(m,b){if(this._records.has(m)){const x=this._records.get(m);this._maybeAddToChanges(x,b);const I=x._prev,N=x._next;return I&&(I._next=N),N&&(N._prev=I),x._next=null,x._prev=null,x}const y=new NT(m);return this._records.set(m,y),y.currentValue=b,this._addToAdditions(y),y}_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,b){Object.is(b,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=b,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,b){m instanceof Map?m.forEach(b):Object.keys(m).forEach(y=>b(m[y],y))}}class NT{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 w_(){return new Th([new v_])}let Th=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(null!=y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||w_()),deps:[[u,new No,new Bo]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(null!=y)return y;throw new te(901,!1)}}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:w_}),u})();function M_(){return new yh([new y_])}let yh=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||M_()),deps:[[u,new No,new Bo]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(y)return y;throw new te(901,!1)}}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:M_}),u})();const FT=c_(null,"core",[]);let UT=(()=>{class u{constructor(b){}}return u.\u0275fac=function(b){return new(b||u)(Pi(zc))},u.\u0275mod=me({type:u}),u.\u0275inj=Xe({}),u})();function jT(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}},24006:(Ye,pe,h)=>{"use strict";h.d(pe,{Cf:()=>le,EJ:()=>Ar,F:()=>li,Fj:()=>Q,JJ:()=>Ue,JL:()=>P,JU:()=>E,Kr:()=>Ki,NI:()=>Hn,On:()=>rr,Q7:()=>er,QS:()=>wr,UX:()=>qn,YN:()=>lr,Zs:()=>Ai,_Y:()=>wt,a5:()=>re,c5:()=>Cn,kI:()=>v,oH:()=>zn,p4:()=>Ji,sg:()=>Ei,u:()=>ar,u5:()=>Ci,wV:()=>nt});var e=h(94650),c=h(36895),A=h(32076),w=h(4128),g=h(54004);let C=(()=>{class Ve{constructor(Ae,ht){this._renderer=Ae,this._elementRef=ht,this.onChange=Kt=>{},this.onTouched=()=>{}}setProperty(Ae,ht){this._renderer.setProperty(this._elementRef.nativeElement,Ae,ht)}registerOnTouched(Ae){this.onTouched=Ae}registerOnChange(Ae){this.onChange=Ae}setDisabledState(Ae){this.setProperty("disabled",Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ve.\u0275dir=e.lG2({type:Ve}),Ve})(),T=(()=>{class Ve extends C{}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})();const E=new e.OlP("NgValueAccessor"),_={provide:E,useExisting:(0,e.Gpc)(()=>Q),multi:!0},z=new e.OlP("CompositionEventMode");let Q=(()=>{class Ve extends C{constructor(Ae,ht,Kt){super(Ae,ht),this._compositionMode=Kt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function V(){const Ve=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(Ve.toLowerCase())}())}writeValue(Ae){this.setProperty("value",Ae??"")}_handleInput(Ae){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ae)}_compositionStart(){this._composing=!0}_compositionEnd(Ae){this._composing=!1,this._compositionMode&&this.onChange(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(z,8))},Ve.\u0275dir=e.lG2({type:Ve,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(Ae,ht){1&Ae&&e.NdJ("input",function(gn){return ht._handleInput(gn.target.value)})("blur",function(){return ht.onTouched()})("compositionstart",function(){return ht._compositionStart()})("compositionend",function(gn){return ht._compositionEnd(gn.target.value)})},features:[e._Bn([_]),e.qOj]}),Ve})();function oe(Ve){return null==Ve||("string"==typeof Ve||Array.isArray(Ve))&&0===Ve.length}function ee(Ve){return null!=Ve&&"number"==typeof Ve.length}const le=new e.OlP("NgValidators"),de=new e.OlP("NgAsyncValidators"),Te=/^(?=.{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 v{static min(De){return function L(Ve){return De=>{if(oe(De.value)||oe(Ve))return null;const Ae=parseFloat(De.value);return!isNaN(Ae)&&Ae{if(oe(De.value)||oe(Ve))return null;const Ae=parseFloat(De.value);return!isNaN(Ae)&&Ae>Ve?{max:{max:Ve,actual:De.value}}:null}}(De)}static required(De){return W(De)}static requiredTrue(De){return q(De)}static email(De){return function ue(Ve){return oe(Ve.value)||Te.test(Ve.value)?null:{email:!0}}(De)}static minLength(De){return function ye(Ve){return De=>oe(De.value)||!ee(De.value)?null:De.value.lengthee(De.value)&&De.value.length>Ve?{maxlength:{requiredLength:Ve,actualLength:De.value.length}}:null}(De)}static pattern(De){return we(De)}static nullValidator(De){return null}static compose(De){return G(De)}static composeAsync(De){return $(De)}}function W(Ve){return oe(Ve.value)?{required:!0}:null}function q(Ve){return!0===Ve.value?null:{required:!0}}function we(Ve){if(!Ve)return Ge;let De,Ae;return"string"==typeof Ve?(Ae="","^"!==Ve.charAt(0)&&(Ae+="^"),Ae+=Ve,"$"!==Ve.charAt(Ve.length-1)&&(Ae+="$"),De=new RegExp(Ae)):(Ae=Ve.toString(),De=Ve),ht=>{if(oe(ht.value))return null;const Kt=ht.value;return De.test(Kt)?null:{pattern:{requiredPattern:Ae,actualValue:Kt}}}}function Ge(Ve){return null}function ce(Ve){return null!=Ve}function Ze(Ve){return(0,e.QGY)(Ve)?(0,A.D)(Ve):Ve}function he(Ve){let De={};return Ve.forEach(Ae=>{De=null!=Ae?{...De,...Ae}:De}),0===Object.keys(De).length?null:De}function xe(Ve,De){return De.map(Ae=>Ae(Ve))}function R(Ve){return Ve.map(De=>function j(Ve){return!Ve.validate}(De)?De:Ae=>De.validate(Ae))}function G(Ve){if(!Ve)return null;const De=Ve.filter(ce);return 0==De.length?null:function(Ae){return he(xe(Ae,De))}}function se(Ve){return null!=Ve?G(R(Ve)):null}function $(Ve){if(!Ve)return null;const De=Ve.filter(ce);return 0==De.length?null:function(Ae){const ht=xe(Ae,De).map(Ze);return(0,w.D)(ht).pipe((0,g.U)(he))}}function Ee(Ve){return null!=Ve?$(R(Ve)):null}function Oe(Ve,De){return null===Ve?[De]:Array.isArray(Ve)?[...Ve,De]:[Ve,De]}function ct(Ve){return Ve._rawValidators}function Xe(Ve){return Ve._rawAsyncValidators}function _t(Ve){return Ve?Array.isArray(Ve)?Ve:[Ve]:[]}function Je(Ve,De){return Array.isArray(Ve)?Ve.includes(De):Ve===De}function gt(Ve,De){const Ae=_t(De);return _t(Ve).forEach(Kt=>{Je(Ae,Kt)||Ae.push(Kt)}),Ae}function Y(Ve,De){return _t(De).filter(Ae=>!Je(Ve,Ae))}class Ce{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=se(this._rawValidators)}_setAsyncValidators(De){this._rawAsyncValidators=De||[],this._composedAsyncValidatorFn=Ee(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,Ae){return!!this.control&&this.control.hasError(De,Ae)}getError(De,Ae){return this.control?this.control.getError(De,Ae):null}}class ae extends Ce{get formDirective(){return null}get path(){return null}}class re extends Ce{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Se{constructor(De){this._cd=De}get isTouched(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.touched)}get isUntouched(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.untouched)}get isPristine(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.pristine)}get isDirty(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.dirty)}get isValid(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.valid)}get isInvalid(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.invalid)}get isPending(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.pending)}get isSubmitted(){var De;return!(null===(De=this._cd)||void 0===De||!De.submitted)}}let Ue=(()=>{class Ve extends Se{constructor(Ae){super(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(re,2))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ae,ht){2&Ae&&e.ekj("ng-untouched",ht.isUntouched)("ng-touched",ht.isTouched)("ng-pristine",ht.isPristine)("ng-dirty",ht.isDirty)("ng-valid",ht.isValid)("ng-invalid",ht.isInvalid)("ng-pending",ht.isPending)},features:[e.qOj]}),Ve})(),P=(()=>{class Ve extends Se{constructor(Ae){super(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ae,ht){2&Ae&&e.ekj("ng-untouched",ht.isUntouched)("ng-touched",ht.isTouched)("ng-pristine",ht.isPristine)("ng-dirty",ht.isDirty)("ng-valid",ht.isValid)("ng-invalid",ht.isInvalid)("ng-pending",ht.isPending)("ng-submitted",ht.isSubmitted)},features:[e.qOj]}),Ve})();const ft="VALID",je="INVALID",Pe="PENDING",Qe="DISABLED";function qe(Ve){return(ze(Ve)?Ve.validators:Ve)||null}function Be(Ve){return Array.isArray(Ve)?se(Ve):Ve||null}function me(Ve,De){return(ze(De)?De.asyncValidators:Ve)||null}function ve(Ve){return Array.isArray(Ve)?Ee(Ve):Ve||null}function ze(Ve){return null!=Ve&&!Array.isArray(Ve)&&"object"==typeof Ve}function tt(Ve,De,Ae){const ht=Ve.controls;if(!(De?Object.keys(ht):ht).length)throw new e.vHH(1e3,"");if(!ht[Ae])throw new e.vHH(1001,"")}function at(Ve,De,Ae){Ve._forEachChild((ht,Kt)=>{if(void 0===Ae[Kt])throw new e.vHH(1002,"")})}class Re{constructor(De,Ae){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=Ae,this._composedValidatorFn=Be(this._rawValidators),this._composedAsyncValidatorFn=ve(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===ft}get invalid(){return this.status===je}get pending(){return this.status==Pe}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}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=Be(De)}setAsyncValidators(De){this._rawAsyncValidators=De,this._composedAsyncValidatorFn=ve(De)}addValidators(De){this.setValidators(gt(De,this._rawValidators))}addAsyncValidators(De){this.setAsyncValidators(gt(De,this._rawAsyncValidators))}removeValidators(De){this.setValidators(Y(De,this._rawValidators))}removeAsyncValidators(De){this.setAsyncValidators(Y(De,this._rawAsyncValidators))}hasValidator(De){return Je(this._rawValidators,De)}hasAsyncValidator(De){return Je(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(Ae=>{Ae.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(Ae=>{Ae.markAsPristine({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}markAsPending(De={}){this.status=Pe,!1!==De.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!De.onlySelf&&this._parent.markAsPending(De)}disable(De={}){const Ae=this._parentMarkedDirty(De.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(ht=>{ht.disable({...De,onlySelf:!0})}),this._updateValue(),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...De,skipPristineCheck:Ae}),this._onDisabledChange.forEach(ht=>ht(!0))}enable(De={}){const Ae=this._parentMarkedDirty(De.onlySelf);this.status=ft,this._forEachChild(ht=>{ht.enable({...De,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent}),this._updateAncestors({...De,skipPristineCheck:Ae}),this._onDisabledChange.forEach(ht=>ht(!1))}_updateAncestors(De){this._parent&&!De.onlySelf&&(this._parent.updateValueAndValidity(De),De.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(De){this._parent=De}getRawValue(){return this.value}updateValueAndValidity(De={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ft||this.status===Pe)&&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(Ae=>Ae._updateTreeValidity(De)),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:ft}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(De){if(this.asyncValidator){this.status=Pe,this._hasOwnPendingAsyncValidator=!0;const Ae=Ze(this.asyncValidator(this));this._asyncValidationSubscription=Ae.subscribe(ht=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ht,{emitEvent:De})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(De,Ae={}){this.errors=De,this._updateControlsErrors(!1!==Ae.emitEvent)}get(De){let Ae=De;return null==Ae||(Array.isArray(Ae)||(Ae=Ae.split(".")),0===Ae.length)?null:Ae.reduce((ht,Kt)=>ht&&ht._find(Kt),this)}getError(De,Ae){const ht=Ae?this.get(Ae):this;return ht&&ht.errors?ht.errors[De]:null}hasError(De,Ae){return!!this.getError(De,Ae)}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()?Qe:this.errors?je:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pe)?Pe:this._anyControlsHaveStatus(je)?je:ft}_anyControlsHaveStatus(De){return this._anyControls(Ae=>Ae.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)}_registerOnCollectionChange(De){this._onCollectionChange=De}_setUpdateStrategy(De){ze(De)&&null!=De.updateOn&&(this._updateOn=De.updateOn)}_parentMarkedDirty(De){return!De&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(De){return null}}class st extends Re{constructor(De,Ae,ht){super(qe(Ae),me(ht,Ae)),this.controls=De,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(De,Ae){return this.controls[De]?this.controls[De]:(this.controls[De]=Ae,Ae.setParent(this),Ae._registerOnCollectionChange(this._onCollectionChange),Ae)}addControl(De,Ae,ht={}){this.registerControl(De,Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}removeControl(De,Ae={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}setControl(De,Ae,ht={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],Ae&&this.registerControl(De,Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}contains(De){return this.controls.hasOwnProperty(De)&&this.controls[De].enabled}setValue(De,Ae={}){at(this,0,De),Object.keys(De).forEach(ht=>{tt(this,!0,ht),this.controls[ht].setValue(De[ht],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){null!=De&&(Object.keys(De).forEach(ht=>{const Kt=this.controls[ht];Kt&&Kt.patchValue(De[ht],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(De={},Ae={}){this._forEachChild((ht,Kt)=>{ht.reset(De[Kt],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this._reduceChildren({},(De,Ae,ht)=>(De[ht]=Ae.getRawValue(),De))}_syncPendingControls(){let De=this._reduceChildren(!1,(Ae,ht)=>!!ht._syncPendingControls()||Ae);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){Object.keys(this.controls).forEach(Ae=>{const ht=this.controls[Ae];ht&&De(ht,Ae)})}_setUpControls(){this._forEachChild(De=>{De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(De){for(const[Ae,ht]of Object.entries(this.controls))if(this.contains(Ae)&&De(ht))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ae,ht,Kt)=>((ht.enabled||this.disabled)&&(Ae[Kt]=ht.value),Ae))}_reduceChildren(De,Ae){let ht=De;return this._forEachChild((Kt,gn)=>{ht=Ae(ht,Kt,gn)}),ht}_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}_find(De){return this.controls.hasOwnProperty(De)?this.controls[De]:null}}function sn(Ve,De){return[...De.path,Ve]}function mn(Ve,De){var Ae,ht;Ut(Ve,De),De.valueAccessor.writeValue(Ve.value),Ve.disabled&&(null===(Ae=(ht=De.valueAccessor).setDisabledState)||void 0===Ae||Ae.call(ht,!0)),function An(Ve,De){De.valueAccessor.registerOnChange(Ae=>{Ve._pendingValue=Ae,Ve._pendingChange=!0,Ve._pendingDirty=!0,"change"===Ve.updateOn&&$t(Ve,De)})}(Ve,De),function xt(Ve,De){const Ae=(ht,Kt)=>{De.valueAccessor.writeValue(ht),Kt&&De.viewToModelUpdate(ht)};Ve.registerOnChange(Ae),De._registerOnDestroy(()=>{Ve._unregisterOnChange(Ae)})}(Ve,De),function Dt(Ve,De){De.valueAccessor.registerOnTouched(()=>{Ve._pendingTouched=!0,"blur"===Ve.updateOn&&Ve._pendingChange&&$t(Ve,De),"submit"!==Ve.updateOn&&Ve.markAsTouched()})}(Ve,De),function Ct(Ve,De){if(De.valueAccessor.setDisabledState){const Ae=ht=>{De.valueAccessor.setDisabledState(ht)};Ve.registerOnDisabledChange(Ae),De._registerOnDestroy(()=>{Ve._unregisterOnDisabledChange(Ae)})}}(Ve,De)}function Nt(Ve,De,Ae=!0){const ht=()=>{};De.valueAccessor&&(De.valueAccessor.registerOnChange(ht),De.valueAccessor.registerOnTouched(ht)),Qt(Ve,De),Ve&&(De._invokeOnDestroyCallbacks(),Ve._registerOnCollectionChange(()=>{}))}function Rt(Ve,De){Ve.forEach(Ae=>{Ae.registerOnValidatorChange&&Ae.registerOnValidatorChange(De)})}function Ut(Ve,De){const Ae=ct(Ve);null!==De.validator?Ve.setValidators(Oe(Ae,De.validator)):"function"==typeof Ae&&Ve.setValidators([Ae]);const ht=Xe(Ve);null!==De.asyncValidator?Ve.setAsyncValidators(Oe(ht,De.asyncValidator)):"function"==typeof ht&&Ve.setAsyncValidators([ht]);const Kt=()=>Ve.updateValueAndValidity();Rt(De._rawValidators,Kt),Rt(De._rawAsyncValidators,Kt)}function Qt(Ve,De){let Ae=!1;if(null!==Ve){if(null!==De.validator){const Kt=ct(Ve);if(Array.isArray(Kt)&&Kt.length>0){const gn=Kt.filter(Qn=>Qn!==De.validator);gn.length!==Kt.length&&(Ae=!0,Ve.setValidators(gn))}}if(null!==De.asyncValidator){const Kt=Xe(Ve);if(Array.isArray(Kt)&&Kt.length>0){const gn=Kt.filter(Qn=>Qn!==De.asyncValidator);gn.length!==Kt.length&&(Ae=!0,Ve.setAsyncValidators(gn))}}}const ht=()=>{};return Rt(De._rawValidators,ht),Rt(De._rawAsyncValidators,ht),Ae}function $t(Ve,De){Ve._pendingDirty&&Ve.markAsDirty(),Ve.setValue(Ve._pendingValue,{emitModelToViewChange:!1}),De.viewToModelUpdate(Ve._pendingValue),Ve._pendingChange=!1}function rt(Ve,De){Ut(Ve,De)}function ke(Ve,De){if(!Ve.hasOwnProperty("model"))return!1;const Ae=Ve.model;return!!Ae.isFirstChange()||!Object.is(De,Ae.currentValue)}function St(Ve,De){Ve._syncPendingControls(),De.forEach(Ae=>{const ht=Ae.control;"submit"===ht.updateOn&&ht._pendingChange&&(Ae.viewToModelUpdate(ht._pendingValue),ht._pendingChange=!1)})}function tn(Ve,De){if(!De)return null;let Ae,ht,Kt;return Array.isArray(De),De.forEach(gn=>{gn.constructor===Q?Ae=gn:function mt(Ve){return Object.getPrototypeOf(Ve.constructor)===T}(gn)?ht=gn:Kt=gn}),Kt||ht||Ae||null}const Ln={provide:ae,useExisting:(0,e.Gpc)(()=>li)},Kn=(()=>Promise.resolve(null))();let li=(()=>{class Ve extends ae{constructor(Ae,ht){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new st({},se(Ae),Ee(ht))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);Ae.control=ht.registerControl(Ae.name,Ae.control),mn(Ae.control,Ae),Ae.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ae)})}getControl(Ae){return this.form.get(Ae.path)}removeControl(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);ht&&ht.removeControl(Ae.name),this._directives.delete(Ae)})}addFormGroup(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path),Kt=new st({});rt(Kt,Ae),ht.registerControl(Ae.name,Kt),Kt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);ht&&ht.removeControl(Ae.name)})}getFormGroup(Ae){return this.form.get(Ae.path)}updateModel(Ae,ht){Kn.then(()=>{this.form.get(Ae.path).setValue(ht)})}setValue(Ae){this.control.setValue(Ae)}onSubmit(Ae){return this.submitted=!0,St(this.form,this._directives),this.ngSubmit.emit(Ae),!1}onReset(){this.resetForm()}resetForm(Ae){this.form.reset(Ae),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ae){return Ae.pop(),Ae.length?this.form.get(Ae):this.form}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("submit",function(gn){return ht.onSubmit(gn)})("reset",function(){return ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ln]),e.qOj]}),Ve})();function ci(Ve,De){const Ae=Ve.indexOf(De);Ae>-1&&Ve.splice(Ae,1)}function Wn(Ve){return"object"==typeof Ve&&null!==Ve&&2===Object.keys(Ve).length&&"value"in Ve&&"disabled"in Ve}const Hn=class extends Re{constructor(De=null,Ae,ht){super(qe(Ae),me(ht,Ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(De),this._setUpdateStrategy(Ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ze(Ae)&&(Ae.nonNullable||Ae.initialValueIsDefault)&&(this.defaultValue=Wn(De)?De.value:De)}setValue(De,Ae={}){this.value=this._pendingValue=De,this._onChange.length&&!1!==Ae.emitModelToViewChange&&this._onChange.forEach(ht=>ht(this.value,!1!==Ae.emitViewToModelChange)),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){this.setValue(De,Ae)}reset(De=this.defaultValue,Ae={}){this._applyFormState(De),this.markAsPristine(Ae),this.markAsUntouched(Ae),this.setValue(this.value,Ae),this._pendingChange=!1}_updateValue(){}_anyControls(De){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(De){this._onChange.push(De)}_unregisterOnChange(De){ci(this._onChange,De)}registerOnDisabledChange(De){this._onDisabledChange.push(De)}_unregisterOnDisabledChange(De){ci(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){Wn(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}},Ji=Hn,ir={provide:re,useExisting:(0,e.Gpc)(()=>rr)},fr=(()=>Promise.resolve(null))();let rr=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn,Qn){super(),this._changeDetectorRef=Qn,this.control=new Hn,this._registered=!1,this.update=new e.vpe,this._parent=Ae,this._setValidators(ht),this._setAsyncValidators(Kt),this.valueAccessor=tn(0,gn)}ngOnChanges(Ae){if(this._checkForErrors(),!this._registered||"name"in Ae){if(this._registered&&(this._checkName(),this.formDirective)){const ht=Ae.name.previousValue;this.formDirective.removeControl({name:ht,path:this._getPath(ht)})}this._setUpControl()}"isDisabled"in Ae&&this._updateDisabled(Ae),ke(Ae,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(Ae){this.viewModel=Ae,this.update.emit(Ae)}_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(){mn(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(Ae){fr.then(()=>{var ht;this.control.setValue(Ae,{emitViewToModelChange:!1}),null===(ht=this._changeDetectorRef)||void 0===ht||ht.markForCheck()})}_updateDisabled(Ae){const ht=Ae.isDisabled.currentValue,Kt=0!==ht&&(0,e.D6c)(ht);fr.then(()=>{var gn;Kt&&!this.control.disabled?this.control.disable():!Kt&&this.control.disabled&&this.control.enable(),null===(gn=this._changeDetectorRef)||void 0===gn||gn.markForCheck()})}_getPath(Ae){return this._parent?sn(Ae,this._parent):[Ae]}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,9),e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(e.sBO,8))},Ve.\u0275dir=e.lG2({type:Ve,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([ir]),e.qOj,e.TTD]}),Ve})(),wt=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ve})();const an={provide:E,useExisting:(0,e.Gpc)(()=>nt),multi:!0};let nt=(()=>{class Ve extends T{writeValue(Ae){this.setProperty("value",Ae??"")}registerOnChange(Ae){this.onChange=ht=>{Ae(""==ht?null:parseFloat(ht))}}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("input",function(gn){return ht.onChange(gn.target.value)})("blur",function(){return ht.onTouched()})},features:[e._Bn([an]),e.qOj]}),Ve})(),et=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({}),Ve})();const hn=new e.OlP("NgModelWithFormControlWarning"),wn={provide:re,useExisting:(0,e.Gpc)(()=>zn)};let zn=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn){super(),this._ngModelWarningConfig=gn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ae),this._setAsyncValidators(ht),this.valueAccessor=tn(0,Kt)}set isDisabled(Ae){}ngOnChanges(Ae){if(this._isControlChanged(Ae)){const ht=Ae.form.previousValue;ht&&Nt(ht,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ke(Ae,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ae){this.viewModel=Ae,this.update.emit(Ae)}_isControlChanged(Ae){return Ae.hasOwnProperty("form")}}return Ve._ngModelWarningSentOnce=!1,Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(hn,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([wn]),e.qOj,e.TTD]}),Ve})();const $n={provide:ae,useExisting:(0,e.Gpc)(()=>Ei)};let Ei=(()=>{class Ve extends ae{constructor(Ae,ht){super(),this.validators=Ae,this.asyncValidators=ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ae),this._setAsyncValidators(ht)}ngOnChanges(Ae){this._checkFormPresent(),Ae.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ae){const ht=this.form.get(Ae.path);return mn(ht,Ae),ht.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ae),ht}getControl(Ae){return this.form.get(Ae.path)}removeControl(Ae){Nt(Ae.control||null,Ae,!1),function En(Ve,De){const Ae=Ve.indexOf(De);Ae>-1&&Ve.splice(Ae,1)}(this.directives,Ae)}addFormGroup(Ae){this._setUpFormContainer(Ae)}removeFormGroup(Ae){this._cleanUpFormContainer(Ae)}getFormGroup(Ae){return this.form.get(Ae.path)}addFormArray(Ae){this._setUpFormContainer(Ae)}removeFormArray(Ae){this._cleanUpFormContainer(Ae)}getFormArray(Ae){return this.form.get(Ae.path)}updateModel(Ae,ht){this.form.get(Ae.path).setValue(ht)}onSubmit(Ae){return this.submitted=!0,St(this.form,this.directives),this.ngSubmit.emit(Ae),!1}onReset(){this.resetForm()}resetForm(Ae){this.form.reset(Ae),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ae=>{const ht=Ae.control,Kt=this.form.get(Ae.path);ht!==Kt&&(Nt(ht||null,Ae),(Ve=>Ve instanceof Hn)(Kt)&&(mn(Kt,Ae),Ae.control=Kt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ae){const ht=this.form.get(Ae.path);rt(ht,Ae),ht.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ae){if(this.form){const ht=this.form.get(Ae.path);ht&&function vt(Ve,De){return Qt(Ve,De)}(ht,Ae)&&ht.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ut(this.form,this),this._oldForm&&Qt(this._oldForm,this)}_checkFormPresent(){}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formGroup",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("submit",function(gn){return ht.onSubmit(gn)})("reset",function(){return ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([$n]),e.qOj,e.TTD]}),Ve})();const gr={provide:re,useExisting:(0,e.Gpc)(()=>ar)};let ar=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn,Qn){super(),this._ngModelWarningConfig=Qn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ae,this._setValidators(ht),this._setAsyncValidators(Kt),this.valueAccessor=tn(0,gn)}set isDisabled(Ae){}ngOnChanges(Ae){this._added||this._setUpControl(),ke(Ae,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ae){this.viewModel=Ae,this.update.emit(Ae)}get path(){return sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ve._ngModelWarningSentOnce=!1,Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,13),e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(hn,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([gr]),e.qOj,e.TTD]}),Ve})();const or={provide:E,useExisting:(0,e.Gpc)(()=>Ar),multi:!0};function sr(Ve,De){return null==Ve?`${De}`:(De&&"object"==typeof De&&(De="Object"),`${Ve}: ${De}`.slice(0,50))}let Ar=(()=>{class Ve extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ae){this._compareWith=Ae}writeValue(Ae){this.value=Ae;const Kt=sr(this._getOptionId(Ae),Ae);this.setProperty("value",Kt)}registerOnChange(Ae){this.onChange=ht=>{this.value=this._getOptionValue(ht),Ae(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Ae){for(const ht of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ht),Ae))return ht;return null}_getOptionValue(Ae){const ht=function _r(Ve){return Ve.split(":")[0]}(Ae);return this._optionMap.has(ht)?this._optionMap.get(ht):Ae}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("change",function(gn){return ht.onChange(gn.target.value)})("blur",function(){return ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([or]),e.qOj]}),Ve})(),lr=(()=>{class Ve{constructor(Ae,ht,Kt){this._element=Ae,this._renderer=ht,this._select=Kt,this._select&&(this.id=this._select._registerOption())}set ngValue(Ae){null!=this._select&&(this._select._optionMap.set(this.id,Ae),this._setElementValue(sr(this.id,Ae)),this._select.writeValue(this._select.value))}set value(Ae){this._setElementValue(Ae),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Ae){this._renderer.setProperty(this._element.nativeElement,"value",Ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ar,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ve})();const Fr={provide:E,useExisting:(0,e.Gpc)(()=>Ur),multi:!0};function Yr(Ve,De){return null==Ve?`${De}`:("string"==typeof De&&(De=`'${De}'`),De&&"object"==typeof De&&(De="Object"),`${Ve}: ${De}`.slice(0,50))}let Ur=(()=>{class Ve extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ae){this._compareWith=Ae}writeValue(Ae){let ht;if(this.value=Ae,Array.isArray(Ae)){const Kt=Ae.map(gn=>this._getOptionId(gn));ht=(gn,Qn)=>{gn._setSelected(Kt.indexOf(Qn.toString())>-1)}}else ht=(Kt,gn)=>{Kt._setSelected(!1)};this._optionMap.forEach(ht)}registerOnChange(Ae){this.onChange=ht=>{const Kt=[],gn=ht.selectedOptions;if(void 0!==gn){const Qn=gn;for(let Xn=0;Xn{class Ve{constructor(Ae,ht,Kt){this._element=Ae,this._renderer=ht,this._select=Kt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Ae){null!=this._select&&(this._value=Ae,this._setElementValue(Yr(this.id,Ae)),this._select.writeValue(this._select.value))}set value(Ae){this._select?(this._value=Ae,this._setElementValue(Yr(this.id,Ae)),this._select.writeValue(this._select.value)):this._setElementValue(Ae)}_setElementValue(Ae){this._renderer.setProperty(this._element.nativeElement,"value",Ae)}_setSelected(Ae){this._renderer.setProperty(this._element.nativeElement,"selected",Ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ur,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ve})(),Jn=(()=>{class Ve{constructor(){this._validator=Ge}ngOnChanges(Ae){if(this.inputName in Ae){const ht=this.normalizeInput(Ae[this.inputName].currentValue);this._enabled=this.enabled(ht),this._validator=this._enabled?this.createValidator(ht):Ge,this._onChange&&this._onChange()}}validate(Ae){return this._validator(Ae)}registerOnValidatorChange(Ae){this._onChange=Ae}enabled(Ae){return null!=Ae}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275dir=e.lG2({type:Ve,features:[e.TTD]}),Ve})();const jr={provide:le,useExisting:(0,e.Gpc)(()=>er),multi:!0},ca={provide:le,useExisting:(0,e.Gpc)(()=>Ai),multi:!0};let er=(()=>{class Ve extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Ae=>W}enabled(Ae){return Ae}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("required",ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([jr]),e.qOj]}),Ve})(),Ai=(()=>{class Ve extends er{constructor(){super(...arguments),this.createValidator=Ae=>q}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("required",ht._enabled?"":null)},features:[e._Bn([ca]),e.qOj]}),Ve})();const Yt={provide:le,useExisting:(0,e.Gpc)(()=>Cn),multi:!0};let Cn=(()=>{class Ve extends Jn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ae=>Ae,this.createValidator=Ae=>we(Ae)}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("pattern",ht._enabled?ht.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([Yt]),e.qOj]}),Ve})(),kn=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[et]}),Ve})(),Ci=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[kn]}),Ve})(),qn=(()=>{class Ve{static withConfig(Ae){return{ngModule:Ve,providers:[{provide:hn,useValue:Ae.warnOnNgModelWithFormControl}]}}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[kn]}),Ve})();class di extends Re{constructor(De,Ae,ht){super(qe(Ae),me(ht,Ae)),this.controls=De,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(De){return this.controls[this._adjustIndex(De)]}push(De,Ae={}){this.controls.push(De),this._registerControl(De),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}insert(De,Ae,ht={}){this.controls.splice(De,0,Ae),this._registerControl(Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent})}removeAt(De,Ae={}){let ht=this._adjustIndex(De);ht<0&&(ht=0),this.controls[ht]&&this.controls[ht]._registerOnCollectionChange(()=>{}),this.controls.splice(ht,1),this.updateValueAndValidity({emitEvent:Ae.emitEvent})}setControl(De,Ae,ht={}){let Kt=this._adjustIndex(De);Kt<0&&(Kt=0),this.controls[Kt]&&this.controls[Kt]._registerOnCollectionChange(()=>{}),this.controls.splice(Kt,1),Ae&&(this.controls.splice(Kt,0,Ae),this._registerControl(Ae)),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(De,Ae={}){at(this,0,De),De.forEach((ht,Kt)=>{tt(this,!1,Kt),this.at(Kt).setValue(ht,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){null!=De&&(De.forEach((ht,Kt)=>{this.at(Kt)&&this.at(Kt).patchValue(ht,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(De=[],Ae={}){this._forEachChild((ht,Kt)=>{ht.reset(De[Kt],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this.controls.map(De=>De.getRawValue())}clear(De={}){this.controls.length<1||(this._forEachChild(Ae=>Ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:De.emitEvent}))}_adjustIndex(De){return De<0?De+this.length:De}_syncPendingControls(){let De=this.controls.reduce((Ae,ht)=>!!ht._syncPendingControls()||Ae,!1);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){this.controls.forEach((Ae,ht)=>{De(Ae,ht)})}_updateValue(){this.value=this.controls.filter(De=>De.enabled||this.disabled).map(De=>De.value)}_anyControls(De){return this.controls.some(Ae=>Ae.enabled&&De(Ae))}_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)}_find(De){var Ae;return null!==(Ae=this.at(De))&&void 0!==Ae?Ae:null}}function Ui(Ve){return!!Ve&&(void 0!==Ve.asyncValidators||void 0!==Ve.validators||void 0!==Ve.updateOn)}let Li=(()=>{class Ve{constructor(){this.useNonNullable=!1}get nonNullable(){const Ae=new Ve;return Ae.useNonNullable=!0,Ae}group(Ae,ht=null){const Kt=this._reduceControls(Ae);let gn={};return Ui(ht)?gn=ht:null!==ht&&(gn.validators=ht.validator,gn.asyncValidators=ht.asyncValidator),new st(Kt,gn)}control(Ae,ht,Kt){let gn={};return this.useNonNullable?(Ui(ht)?gn=ht:(gn.validators=ht,gn.asyncValidators=Kt),new Hn(Ae,{...gn,nonNullable:!0})):new Hn(Ae,ht,Kt)}array(Ae,ht,Kt){const gn=Ae.map(Qn=>this._createControl(Qn));return new di(gn,ht,Kt)}_reduceControls(Ae){const ht={};return Object.keys(Ae).forEach(Kt=>{ht[Kt]=this._createControl(Ae[Kt])}),ht}_createControl(Ae){return Ae instanceof Hn||Ae instanceof Re?Ae:Array.isArray(Ae)?this.control(Ae[0],Ae.length>1?Ae[1]:null,Ae.length>2?Ae[2]:null):this.control(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:qn}),Ve})(),wr=(()=>{class Ve extends Li{group(Ae,ht=null){return super.group(Ae,ht)}control(Ae,ht,Kt){return super.control(Ae,ht,Kt)}array(Ae,ht,Kt){return super.array(Ae,ht,Kt)}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:qn}),Ve})()},47957:(Ye,pe,h)=>{"use strict";h.d(pe,{Bb:()=>gt,XC:()=>R,ZL:()=>Je});var e=h(12687),c=h(21281),A=h(83353),w=h(94650),g=h(3238),C=h(50727),T=h(77579),E=h(49770),S=h(56451),U=h(39646),_=h(54968),V=h(36895),z=h(98184),Q=h(67376),te=h(40445),oe=h(29521),ee=h(84080),le=h(24006),de=h(59549),Te=h(68675),v=h(63900),L=h(95698),B=h(39300),W=h(54004),q=h(18505),ue=h(91005);const ye=["panel"];function Me(Y,Ce){if(1&Y&&(w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA()),2&Y){const ae=Ce.id,re=w.oxw();w.Q6J("id",re.id)("ngClass",re._classList),w.uIk("aria-label",re.ariaLabel||null)("aria-labelledby",re._getPanelAriaLabelledby(ae))}}const we=["*"];let Ge=0;class ce{constructor(Ce,ae){this.source=Ce,this.option=ae}}const Ze=(0,g.Kr)(class{}),he=new w.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function xe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let j=(()=>{class Y extends Ze{constructor(ae,re,Se,Fe){super(),this._changeDetectorRef=ae,this._elementRef=re,this._activeOptionChanges=C.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new w.vpe,this.opened=new w.vpe,this.closed=new w.vpe,this.optionActivated=new w.vpe,this._classList={},this.id="mat-autocomplete-"+Ge++,this.inertGroups=Fe?.SAFARI||!1,this._autoActiveFirstOption=!!Se.autoActiveFirstOption,this._autoSelectActiveOption=!!Se.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ae){this._autoActiveFirstOption=(0,c.Ig)(ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ae){this._autoSelectActiveOption=(0,c.Ig)(ae)}set classList(ae){this._classList=ae&&ae.length?(0,c.du)(ae).reduce((re,Se)=>(re[Se]=!0,re),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ae){this.panel&&(this.panel.nativeElement.scrollTop=ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ae){const re=new ce(this,ae);this.optionSelected.emit(re)}_getPanelAriaLabelledby(ae){return this.ariaLabel?null:this.ariaLabelledby?(ae?ae+" ":"")+this.ariaLabelledby:ae}_setVisibilityClasses(ae){ae[this._visibleClass]=this.showPanel,ae[this._hiddenClass]=!this.showPanel}}return Y.\u0275fac=function(ae){return new(ae||Y)(w.Y36(w.sBO),w.Y36(w.SBq),w.Y36(he),w.Y36(A.t4))},Y.\u0275dir=w.lG2({type:Y,viewQuery:function(ae,re){if(1&ae&&(w.Gf(w.Rgc,7),w.Gf(ye,5)),2&ae){let Se;w.iGM(Se=w.CRH())&&(re.template=Se.first),w.iGM(Se=w.CRH())&&(re.panel=Se.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[w.qOj]}),Y})(),R=(()=>{class Y extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=w.n5z(Y)))(re||Y)}}(),Y.\u0275cmp=w.Xpm({type:Y,selectors:[["mat-autocomplete"]],contentQueries:function(ae,re,Se){if(1&ae&&(w.Suo(Se,g.K7,5),w.Suo(Se,g.ey,5)),2&ae){let Fe;w.iGM(Fe=w.CRH())&&(re.optionGroups=Fe),w.iGM(Fe=w.CRH())&&(re.options=Fe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[w._Bn([{provide:g.HF,useExisting:Y}]),w.qOj],ngContentSelectors:we,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ae,re){1&ae&&(w.F$t(),w.YNc(0,Me,3,4,"ng-template"))},dependencies:[V.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Y})();const $=new w.OlP("mat-autocomplete-scroll-strategy"),Oe={provide:$,deps:[z.aV],useFactory:function Ee(Y){return()=>Y.scrollStrategies.reposition()}},ct={provide:le.JU,useExisting:(0,w.Gpc)(()=>Je),multi:!0};let _t=(()=>{class Y{constructor(ae,re,Se,Fe,be,Ue,P,H,i,o,f){this._element=ae,this._overlay=re,this._viewContainerRef=Se,this._zone=Fe,this._changeDetectorRef=be,this._dir=P,this._formField=H,this._document=i,this._viewportRuler=o,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=C.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,Te.O)(l),(0,v.w)(()=>(0,S.T)(...l.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,L.q)(1),(0,v.w)(()=>this.optionSelections))}),this._scrollStrategy=Ue}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ae){this._autocompleteDisabled=(0,c.Ig)(ae)}ngAfterViewInit(){const ae=this._getWindow();typeof ae<"u"&&this._zone.runOutsideAngular(()=>ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ae){ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ae=this._getWindow();typeof ae<"u"&&ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,S.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,B.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,B.h)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,W.U)(ae=>ae instanceof g.rN?ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,S.T)((0,_.R)(this._document,"click"),(0,_.R)(this._document,"auxclick"),(0,_.R)(this._document,"touchend")).pipe((0,B.h)(ae=>{const re=(0,A.sA)(ae),Se=this._formField?this._formField._elementRef.nativeElement:null,Fe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&re!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Se||!Se.contains(re))&&(!Fe||!Fe.contains(re))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(re)}))}writeValue(ae){Promise.resolve(null).then(()=>this._assignOptionValue(ae))}registerOnChange(ae){this._onChange=ae}registerOnTouched(ae){this._onTouched=ae}setDisabledState(ae){this._element.nativeElement.disabled=ae}_handleKeydown(ae){const re=ae.keyCode,Se=(0,oe.Vb)(ae);if(re===oe.hY&&!Se&&ae.preventDefault(),this.activeOption&&re===oe.K5&&this.panelOpen&&!Se)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ae.preventDefault();else if(this.autocomplete){const Fe=this.autocomplete._keyManager.activeItem,be=re===oe.LH||re===oe.JH;re===oe.Mf||be&&!Se&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ae):be&&this._canOpen()&&this.openPanel(),(be||this.autocomplete._keyManager.activeItem!==Fe)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(ae){let re=ae.target,Se=re.value;"number"===re.type&&(Se=""==Se?null:parseFloat(Se)),this._previousValue!==Se&&(this._previousValue=Se,this._pendingAutoselectedOption=null,this._onChange(Se),this._canOpen()&&this._document.activeElement===ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ae=this._zone.onStable.pipe((0,L.q)(1)),re=this.autocomplete.options.changes.pipe((0,q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ue.g)(0));return(0,S.T)(ae,re).pipe((0,v.w)(()=>(this._zone.run(()=>{const Se=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Se!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,L.q)(1)).subscribe(Se=>this._setValueAndClose(Se))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ae){const re=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ae):ae;this._updateNativeInputValue(re??"")}_updateNativeInputValue(ae){this._formField?this._formField._control.value=ae:this._element.nativeElement.value=ae,this._previousValue=ae}_setValueAndClose(ae){const re=ae?ae.source:this._pendingAutoselectedOption;re&&(this._clearPreviousSelectedOption(re),this._assignOptionValue(re.value),this._onChange(re.value),this.autocomplete._emitSelectEvent(re),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ae){this.autocomplete.options.forEach(re=>{re!==ae&&re.selected&&re.deselect()})}_attachOverlay(){let ae=this._overlayRef;var re;ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),ae.updateSize({width:this._getPanelWidth()})):(this._portal=new ee.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(re=this._formField)||void 0===re?void 0:re.getLabelId()}),ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ae,this._handleOverlayEvents(ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ae&&ae.updateSize({width:this._getPanelWidth()})})),ae&&!ae.hasAttached()&&(ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Se=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Se!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ae;return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ae=this._defaults)||void 0===ae?void 0:ae.overlayPanelClass})}_getOverlayPosition(){const ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ae),this._positionStrategy=ae,ae}_setStrategyPositions(ae){const re=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Se=this._aboveClass,Fe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Se},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Se}];let be;be="above"===this.position?Fe:"below"===this.position?re:[...re,...Fe],ae.withPositions(be)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ae=this.autocomplete;ae.autoActiveFirstOption?ae._keyManager.setFirstItemActive():ae._keyManager.setActiveItem(-1)}_canOpen(){const ae=this._element.nativeElement;return!ae.readOnly&&!ae.disabled&&!this._autocompleteDisabled}_getWindow(){var ae;return(null===(ae=this._document)||void 0===ae?void 0:ae.defaultView)||window}_scrollToOption(ae){const re=this.autocomplete,Se=(0,g.CB)(ae,re.options,re.optionGroups);if(0===ae&&1===Se)re._setScrollTop(0);else if(re.panel){const Fe=re.options.toArray()[ae];if(Fe){const be=Fe._getHostElement(),Ue=(0,g.jH)(be.offsetTop,be.offsetHeight,re._getScrollTop(),re.panel.nativeElement.offsetHeight);re._setScrollTop(Ue)}}}_handleOverlayEvents(ae){ae.keydownEvents().subscribe(re=>{var Se;(re.keyCode===oe.hY&&!(0,oe.Vb)(re)||re.keyCode===oe.LH&&(0,oe.Vb)(re,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(Se=this._valueBeforeAutoSelection)&&void 0!==Se?Se:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),re.stopPropagation(),re.preventDefault())}),ae.outsidePointerEvents().subscribe()}}return Y.\u0275fac=function(ae){return new(ae||Y)(w.Y36(w.SBq),w.Y36(z.aV),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36($),w.Y36(te.Is,8),w.Y36(de.G_,9),w.Y36(V.K0,8),w.Y36(Q.rL),w.Y36(he,8))},Y.\u0275dir=w.lG2({type:Y,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[w.TTD]}),Y})(),Je=(()=>{class Y extends _t{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=w.n5z(Y)))(re||Y)}}(),Y.\u0275dir=w.lG2({type:Y,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ae,re){1&ae&&w.NdJ("focusin",function(){return re._handleFocus()})("blur",function(){return re._onTouched()})("input",function(Fe){return re._handleInput(Fe)})("keydown",function(Fe){return re._handleKeydown(Fe)})("click",function(){return re._handleClick()}),2&ae&&w.uIk("autocomplete",re.autocompleteAttribute)("role",re.autocompleteDisabled?null:"combobox")("aria-autocomplete",re.autocompleteDisabled?null:"list")("aria-activedescendant",re.panelOpen&&re.activeOption?re.activeOption.id:null)("aria-expanded",re.autocompleteDisabled?null:re.panelOpen.toString())("aria-owns",re.autocompleteDisabled||!re.panelOpen||null==re.autocomplete?null:re.autocomplete.id)("aria-haspopup",re.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[w._Bn([ct]),w.qOj]}),Y})(),gt=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=w.oAB({type:Y}),Y.\u0275inj=w.cJS({providers:[Oe],imports:[z.U8,g.Ng,g.BQ,V.ez,Q.ZD,g.Ng,g.BQ]}),Y})()},42673:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>S,k:()=>E});var e=h(94650),c=h(3238),A=h(12687),w=h(21281);let g=0;const C=(0,c.Id)(class{}),T="mat-badge-content";let E=(()=>{class U extends C{constructor(V,z,Q,te,oe){super(),this._ngZone=V,this._elementRef=z,this._ariaDescriber=Q,this._renderer=te,this._animationMode=oe,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=g++,this._isInitialized=!1}get color(){return this._color}set color(V){this._setColor(V),this._color=V}get overlap(){return this._overlap}set overlap(V){this._overlap=(0,w.Ig)(V)}get content(){return this._content}set content(V){this._updateRenderedContent(V)}get description(){return this._description}set description(V){this._updateHostAriaDescription(V)}get hidden(){return this._hidden}set hidden(V){this._hidden=(0,w.Ig)(V)}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 V=this._renderer.createElement("span"),z="mat-badge-active";return V.setAttribute("id",`mat-badge-content-${this._id}`),V.setAttribute("aria-hidden","true"),V.classList.add(T),"NoopAnimations"===this._animationMode&&V.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(V),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{V.classList.add(z)})}):V.classList.add(z),V}_updateRenderedContent(V){const z=`${V??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),V&&this._ariaDescriber.describe(this._elementRef.nativeElement,V),this._description=V}_setColor(V){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),V&&z.add(`mat-badge-${V}`)}_clearExistingBadges(){const V=this._elementRef.nativeElement.querySelectorAll(`:scope > .${T}`);for(const z of Array.from(V))z!==this._badgeElement&&z.remove()}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(A.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,z){2&V&&e.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.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]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[A.rt,c.BQ,c.BQ]}),U})()},4859:(Ye,pe,h)=>{"use strict";h.d(pe,{lW:()=>U,ot:()=>V});var e=h(94650),c=h(3238),A=h(12687);const w=["mat-button",""],g=["*"],E=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,c.pj)((0,c.Id)((0,c.Kr)(class{constructor(z){this._elementRef=z}})));let U=(()=>{class z extends S{constructor(te,oe,ee){super(te),this._focusMonitor=oe,this._animationMode=ee,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const le of E)this._hasHostAttributes(le)&&this._getHostElement().classList.add(le);te.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(te,oe){te?this._focusMonitor.focusVia(this._getHostElement(),te,oe):this._getHostElement().focus(oe)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...te){return te.some(oe=>this._getHostElement().hasAttribute(oe))}}return z.\u0275fac=function(te){return new(te||z)(e.Y36(e.SBq),e.Y36(A.tE),e.Y36(e.QbO,8))},z.\u0275cmp=e.Xpm({type:z,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(te,oe){if(1&te&&e.Gf(c.wG,5),2&te){let ee;e.iGM(ee=e.CRH())&&(oe.ripple=ee.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(te,oe){2&te&&(e.uIk("disabled",oe.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===oe._animationMode)("mat-button-disabled",oe.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:g,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(te,oe){1&te&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&te&&(e.xp6(2),e.ekj("mat-button-ripple-round",oe.isRoundButton||oe.isIconButton),e.Q6J("matRippleDisabled",oe._isRippleDisabled())("matRippleCentered",oe.isIconButton)("matRippleTrigger",oe._getHostElement()))},dependencies:[c.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),V=(()=>{class z{}return z.\u0275fac=function(te){return new(te||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[c.si,c.BQ,c.BQ]}),z})()},73546:(Ye,pe,h)=>{"use strict";h.d(pe,{$j:()=>_,QW:()=>B,a8:()=>Te,dk:()=>v,dn:()=>S,kc:()=>de,n5:()=>U});var e=h(94650),c=h(3238);const A=["*",[["mat-card-footer"]]],w=["*","mat-card-footer"],g=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],C=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let S=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),W})(),U=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),W})(),_=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),W})(),de=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),W})(),Te=(()=>{class W{constructor(ue){this._animationMode=ue}}return W.\u0275fac=function(ue){return new(ue||W)(e.Y36(e.QbO,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ue,ye){2&ue&&e.ekj("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},exportAs:["matCard"],ngContentSelectors:w,decls:2,vars:0,template:function(ue,ye){1&ue&&(e.F$t(A),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),W})(),v=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:C,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ue,ye){1&ue&&(e.F$t(g),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),W})(),B=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[c.BQ,c.BQ]}),W})()},56709:(Ye,pe,h)=>{"use strict";h.d(pe,{oG:()=>de,p9:()=>B});var e=h(12687),c=h(21281),A=h(94650),w=h(24006),g=h(3238),C=h(49643);const T=["input"],E=["label"],S=function(W){return{enterDuration:W}},U=["*"],_=new A.OlP("mat-checkbox-default-options",{providedIn:"root",factory:V});function V(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const Q=V(),te={provide:w.JU,useExisting:(0,A.Gpc)(()=>de),multi:!0};class oe{}const ee=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(W){this._elementRef=W}}))));let le=(()=>{class W extends ee{constructor(ue,ye,Me,we,Ge,ce,Ze){super(ye),this._changeDetectorRef=Me,this._ngZone=we,this._animationMode=ce,this._options=Ze,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new A.vpe,this.indeterminateChange=new A.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Q,this.color=this.defaultColor=this._options.color||Q.color,this.tabIndex=parseInt(Ge)||0,this.id=this._uniqueId=`${ue}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ue){this._required=(0,c.Ig)(ue)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ue){const ye=(0,c.Ig)(ue);ye!=this.checked&&(this._checked=ye,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ue){const ye=(0,c.Ig)(ue);ye!==this.disabled&&(this._disabled=ye,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ue){const ye=ue!=this._indeterminate;this._indeterminate=(0,c.Ig)(ue),ye&&(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(ue){this.checked=!!ue}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ue){let ye=this._currentCheckState,Me=this._getAnimationTargetElement();if(ye!==ue&&Me&&(this._currentAnimationClass&&Me.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ye,ue),this._currentCheckState=ue,this._currentAnimationClass.length>0)){Me.classList.add(this._currentAnimationClass);const we=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Me.classList.remove(we)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var ue;const ye=null===(ue=this._options)||void 0===ue?void 0:ue.clickAction;this.disabled||"noop"===ye?!this.disabled&&"noop"===ye&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ye&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ue){ue.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ue,ye){if("NoopAnimations"===this._animationMode)return"";switch(ue){case 0:if(1===ye)return this._animationClasses.uncheckedToChecked;if(3==ye)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===ye?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===ye?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===ye?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ue){const ye=this._inputElement;ye&&(ye.nativeElement.indeterminate=ue)}}return W.\u0275fac=function(ue){A.$Z()},W.\u0275dir=A.lG2({type:W,viewQuery:function(ue,ye){if(1&ue&&(A.Gf(T,5),A.Gf(E,5),A.Gf(g.wG,5)),2&ue){let Me;A.iGM(Me=A.CRH())&&(ye._inputElement=Me.first),A.iGM(Me=A.CRH())&&(ye._labelElement=Me.first),A.iGM(Me=A.CRH())&&(ye.ripple=Me.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[A.qOj]}),W})(),de=(()=>{class W extends le{constructor(ue,ye,Me,we,Ge,ce,Ze){super("mat-checkbox-",ue,ye,we,Ge,ce,Ze),this._focusMonitor=Me,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ue){const ye=new oe;return ye.source=this,ye.checked=ue,ye}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{ue||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ue){ue.stopPropagation(),super._handleInputClick()}focus(ue,ye){ue?this._focusMonitor.focusVia(this._inputElement,ue,ye):this._inputElement.nativeElement.focus(ye)}}return W.\u0275fac=function(ue){return new(ue||W)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(e.tE),A.Y36(A.R0b),A.$8M("tabindex"),A.Y36(A.QbO,8),A.Y36(_,8))},W.\u0275cmp=A.Xpm({type:W,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ue,ye){2&ue&&(A.Ikx("id",ye.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),A.ekj("mat-checkbox-indeterminate",ye.indeterminate)("mat-checkbox-checked",ye.checked)("mat-checkbox-disabled",ye.disabled)("mat-checkbox-label-before","before"==ye.labelPosition)("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[A._Bn([te]),A.qOj],ngContentSelectors:U,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ue,ye){if(1&ue&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(we){return ye._onInteractionEvent(we)})("click",function(we){return ye._onInputClick(we)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.qZA(),A._UZ(7,"span",7),A.TgZ(8,"span",8),A.O4$(),A.TgZ(9,"svg",9),A._UZ(10,"path",10),A.qZA(),A.kcU(),A._UZ(11,"span",11),A.qZA()(),A.TgZ(12,"span",12,13),A.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),A.TgZ(14,"span",14),A._uU(15,"\xa0"),A.qZA(),A.Hsn(16),A.qZA()()),2&ue){const Me=A.MAs(1),we=A.MAs(13);A.uIk("for",ye.inputId),A.xp6(2),A.ekj("mat-checkbox-inner-container-no-side-margin",!we.textContent||!we.textContent.trim()),A.xp6(1),A.Q6J("id",ye.inputId)("required",ye.required)("checked",ye.checked)("disabled",ye.disabled)("tabIndex",ye.tabIndex),A.uIk("value",ye.value)("name",ye.name)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby)("aria-checked",ye._getAriaChecked())("aria-describedby",ye.ariaDescribedby),A.xp6(2),A.Q6J("matRippleTrigger",Me)("matRippleDisabled",ye._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",A.VKq(19,S,"NoopAnimations"===ye._animationMode?0:150))}},dependencies:[g.wG,C.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),W})(),L=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({}),W})(),B=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({imports:[g.si,g.BQ,C.Q8,L,g.BQ,L]}),W})()},77331:(Ye,pe,h)=>{"use strict";h.d(pe,{HS:()=>ue,Hi:()=>R,oH:()=>xe,qn:()=>Ze});var e=h(29521),c=h(94650),A=h(3238),w=h(21281),g=h(83353),C=h(36895),T=h(77579),E=h(56451),S=h(95698),U=h(82722),_=h(68675),V=h(12687),z=h(40445),Q=h(95017),te=h(24006),oe=h(59549);const ee=["*"],de=new c.OlP("MatChipRemove"),Te=new c.OlP("MatChipAvatar"),v=new c.OlP("MatChipTrailingIcon");class L{constructor(se){this._elementRef=se}}const B=(0,A.sb)((0,A.pj)((0,A.Kr)(L),"primary"),-1);let ue=(()=>{class G extends B{constructor($,Ee,Oe,ct,Xe,_t,Je,gt){super($),this._ngZone=Ee,this._changeDetectorRef=Xe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new T.x,this._onBlur=new T.x,this.selectionChange=new c.vpe,this.destroyed=new c.vpe,this.removed=new c.vpe,this._addHostClassName(),this._chipRippleTarget=_t.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new A.IR(this,Ee,this._chipRippleTarget,Oe),this._chipRipple.setupTriggerEvents($),this.rippleConfig=ct||{},this._animationsDisabled="NoopAnimations"===Je,this.tabIndex=null!=gt&&parseInt(gt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected($){const Ee=(0,w.Ig)($);Ee!==this._selected&&(this._selected=Ee,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value($){this._value=$}get selectable(){return this._selectable&&this.chipListSelectable}set selectable($){this._selectable=(0,w.Ig)($)}get disabled(){return this._chipListDisabled||this._disabled}set disabled($){this._disabled=(0,w.Ig)($)}get removable(){return this._removable}set removable($){this._removable=(0,w.Ig)($)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const $="mat-basic-chip",Ee=this._elementRef.nativeElement;Ee.hasAttribute($)||Ee.tagName.toLowerCase()===$?Ee.classList.add($):Ee.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($=!1){return this._selected=!this.selected,this._dispatchSelectionChange($),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($){this.disabled&&$.preventDefault()}_handleKeydown($){if(!this.disabled)switch($.keyCode){case e.yY:case e.ZH:this.remove(),$.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),$.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange($=!1){this.selectionChange.emit({source:this,isUserInput:$,selected:this._selected})}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g.t4),c.Y36(A.Y2,8),c.Y36(c.sBO),c.Y36(C.K0),c.Y36(c.QbO,8),c.$8M("tabindex"))},G.\u0275dir=c.lG2({type:G,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function($,Ee,Oe){if(1&$&&(c.Suo(Oe,Te,5),c.Suo(Oe,v,5),c.Suo(Oe,de,5)),2&$){let ct;c.iGM(ct=c.CRH())&&(Ee.avatar=ct.first),c.iGM(ct=c.CRH())&&(Ee.trailingIcon=ct.first),c.iGM(ct=c.CRH())&&(Ee.removeIcon=ct.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function($,Ee){1&$&&c.NdJ("click",function(ct){return Ee._handleClick(ct)})("keydown",function(ct){return Ee._handleKeydown(ct)})("focus",function(){return Ee.focus()})("blur",function(){return Ee._blur()}),2&$&&(c.uIk("tabindex",Ee.disabled?null:Ee.tabIndex)("role",Ee.role)("disabled",Ee.disabled||null)("aria-disabled",Ee.disabled.toString())("aria-selected",Ee.ariaSelected),c.ekj("mat-chip-selected",Ee.selected)("mat-chip-with-avatar",Ee.avatar)("mat-chip-with-trailing-icon",Ee.trailingIcon||Ee.removeIcon)("mat-chip-disabled",Ee.disabled)("_mat-animation-noopable",Ee._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.qOj]}),G})();const Me=new c.OlP("mat-chips-default-options"),we=(0,A.FD)(class{constructor(G,se,$,Ee){this._defaultErrorStateMatcher=G,this._parentForm=se,this._parentFormGroup=$,this.ngControl=Ee,this.stateChanges=new T.x}});let Ge=0;class ce{constructor(se,$){this.source=se,this.value=$}}let Ze=(()=>{class G extends we{constructor($,Ee,Oe,ct,Xe,_t,Je){super(_t,ct,Xe,Je),this._elementRef=$,this._changeDetectorRef=Ee,this._dir=Oe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new T.x,this._uid="mat-chip-list-"+Ge++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(gt,Y)=>gt===Y,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.vpe,this.valueChange=new c.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var $,Ee;return this.multiple?(null===($=this._selectionModel)||void 0===$?void 0:$.selected)||[]:null===(Ee=this._selectionModel)||void 0===Ee?void 0:Ee.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role($){this._explicitRole=$}get multiple(){return this._multiple}set multiple($){this._multiple=(0,w.Ig)($),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith($){this._compareWith=$,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value($){this.writeValue($),this._value=$}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var $,Ee,Oe,ct;return null!==($=null!==(Ee=this._required)&&void 0!==Ee?Ee:null===(Oe=this.ngControl)||void 0===Oe||null===(ct=Oe.control)||void 0===ct?void 0:ct.hasValidator(te.kI.required))&&void 0!==$&&$}set required($){this._required=(0,w.Ig)($),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder($){this._placeholder=$,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($){this._disabled=(0,w.Ig)($),this._syncChipsState()}get selectable(){return this._selectable}set selectable($){this._selectable=(0,w.Ig)($),this.chips&&this.chips.forEach(Ee=>Ee.chipListSelectable=this._selectable)}set tabIndex($){this._userTabIndex=$,this._tabIndex=$}get chipSelectionChanges(){return(0,E.T)(...this.chips.map($=>$.selectionChange))}get chipFocusChanges(){return(0,E.T)(...this.chips.map($=>$._onFocus))}get chipBlurChanges(){return(0,E.T)(...this.chips.map($=>$._onBlur))}get chipRemoveChanges(){return(0,E.T)(...this.chips.map($=>$.destroyed))}ngAfterContentInit(){this._keyManager=new V.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,U.R)(this._destroyed)).subscribe($=>this._keyManager.withHorizontalOrientation($)),this._keyManager.tabOut.pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,_.O)(null),(0,U.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Q.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput($){this._chipInput=$,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",$.id)}setDescribedByIds($){$.length?this._elementRef.nativeElement.setAttribute("aria-describedby",$.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue($){this.chips&&this._setSelectionByValue($,!1)}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$,this.stateChanges.next()}onContainerClick($){this._originatesFromChip($)||this.focus()}focus($){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput($),this.stateChanges.next()))}_focusInput($){this._chipInput&&this._chipInput.focus($)}_keydown($){const Ee=$.target;Ee&&Ee.classList.contains("mat-chip")&&(this._keyManager.onKeydown($),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const $=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem($)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex($){return $>=0&&$Oe.deselect()),Array.isArray($))$.forEach(Oe=>this._selectValue(Oe,Ee)),this._sortValues();else{const Oe=this._selectValue($,Ee);Oe&&Ee&&this._keyManager.setActiveItem(Oe)}}_selectValue($,Ee=!0){const Oe=this.chips.find(ct=>null!=ct.value&&this._compareWith(ct.value,$));return Oe&&(Ee?Oe.selectViaInteraction():Oe.select(),this._selectionModel.select(Oe)),Oe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection($){this._selectionModel.clear(),this.chips.forEach(Ee=>{Ee!==$&&Ee.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach($=>{$.selected&&this._selectionModel.select($)}),this.stateChanges.next())}_propagateChanges($){let Ee=null;Ee=Array.isArray(this.selected)?this.selected.map(Oe=>Oe.value):this.selected?this.selected.value:$,this._value=Ee,this.change.emit(new ce(this,Ee)),this.valueChange.emit(Ee),this._onChange(Ee),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($=>{$.source.selected?this._selectionModel.select($.source):this._selectionModel.deselect($.source),this.multiple||this.chips.forEach(Ee=>{!this._selectionModel.isSelected(Ee)&&Ee.selected&&Ee.deselect()}),$.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe($=>{let Ee=this.chips.toArray().indexOf($.chip);this._isValidIndex(Ee)&&this._keyManager.updateActiveItem(Ee),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe($=>{const Ee=$.chip,Oe=this.chips.toArray().indexOf($.chip);this._isValidIndex(Oe)&&Ee._hasFocus&&(this._lastDestroyedChipIndex=Oe)})}_originatesFromChip($){let Ee=$.target;for(;Ee&&Ee!==this._elementRef.nativeElement;){if(Ee.classList.contains("mat-chip"))return!0;Ee=Ee.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some($=>$._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach($=>{$._chipListDisabled=this._disabled,$._chipListMultiple=this.multiple})}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(z.Is,8),c.Y36(te.F,8),c.Y36(te.sg,8),c.Y36(A.rD),c.Y36(te.a5,10))},G.\u0275cmp=c.Xpm({type:G,selectors:[["mat-chip-list"]],contentQueries:function($,Ee,Oe){if(1&$&&c.Suo(Oe,ue,5),2&$){let ct;c.iGM(ct=c.CRH())&&(Ee.chips=ct)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function($,Ee){1&$&&c.NdJ("focus",function(){return Ee.focus()})("blur",function(){return Ee._blur()})("keydown",function(ct){return Ee._keydown(ct)}),2&$&&(c.Ikx("id",Ee._uid),c.uIk("tabindex",Ee.disabled?null:Ee._tabIndex)("aria-required",Ee.role?Ee.required:null)("aria-disabled",Ee.disabled.toString())("aria-invalid",Ee.errorState)("aria-multiselectable",Ee.multiple)("role",Ee.role)("aria-orientation",Ee.ariaOrientation),c.ekj("mat-chip-list-disabled",Ee.disabled)("mat-chip-list-invalid",Ee.errorState)("mat-chip-list-required",Ee.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c._Bn([{provide:oe.Eo,useExisting:G}]),c.qOj],ngContentSelectors:ee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function($,Ee){1&$&&(c.F$t(),c.TgZ(0,"div",0),c.Hsn(1),c.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),G})(),he=0,xe=(()=>{class G{constructor($,Ee){this._elementRef=$,this._defaultOptions=Ee,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new c.vpe,this.placeholder="",this.id="mat-chip-list-input-"+he++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList($){$&&(this._chipList=$,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur($){this._addOnBlur=(0,w.Ig)($)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled($){this._disabled=(0,w.Ig)($)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown($){if($){if($.keyCode===e.Mf&&!(0,e.Vb)($,"shiftKey")&&this._chipList._allowFocusEscape(),$.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void $.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd($)}_keyup($){!this._focusLastChipOnBackspace&&$.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,$.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($){!this.inputElement.value&&!!$&&this._chipList._keydown($),(!$||this._isSeparatorKey($))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),$?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus($){this.inputElement.focus($)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey($){return!(0,e.Vb)($)&&new Set(this.separatorKeyCodes).has($.keyCode)}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(Me))},G.\u0275dir=c.lG2({type:G,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function($,Ee){1&$&&c.NdJ("keydown",function(ct){return Ee._keydown(ct)})("keyup",function(ct){return Ee._keyup(ct)})("blur",function(){return Ee._blur()})("focus",function(){return Ee._focus()})("input",function(){return Ee._onInput()}),2&$&&(c.Ikx("id",Ee.id),c.uIk("disabled",Ee.disabled||null)("placeholder",Ee.placeholder||null)("aria-invalid",Ee._chipList&&Ee._chipList.ngControl?Ee._chipList.ngControl.invalid:null)("aria-required",Ee._chipList&&Ee._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:[c.TTD]}),G})(),R=(()=>{class G{}return G.\u0275fac=function($){return new($||G)},G.\u0275mod=c.oAB({type:G}),G.\u0275inj=c.cJS({providers:[A.rD,{provide:Me,useValue:{separatorKeyCodes:[e.K5]}}],imports:[A.BQ]}),G})()},3238:(Ye,pe,h)=>{"use strict";h.d(pe,{yN:()=>le,mZ:()=>de,_A:()=>xe,rD:()=>Xe,sG:()=>j,K7:()=>s,HF:()=>a,Y2:()=>H,BQ:()=>L,X2:()=>_t,uc:()=>Y,XK:()=>Oe,ey:()=>bt,Ng:()=>Mt,rN:()=>M,nP:()=>f,us:()=>l,wG:()=>i,si:()=>o,LF:()=>se,IR:()=>Ue,CB:()=>Vt,jH:()=>on,pj:()=>ye,Kr:()=>Me,Id:()=>ue,FD:()=>Ge,dB:()=>ce,sb:()=>we,E0:()=>Je});var e=h(94650),c=h(12687),A=h(40445),g=h(36895),C=h(83353),T=h(21281),E=h(69751),S=h(77579),U=h(68675),_=h(29521);function Q(ft,je){if(1&ft&&e._UZ(0,"mat-pseudo-checkbox",4),2&ft){const Pe=e.oxw();e.Q6J("state",Pe.selected?"checked":"unchecked")("disabled",Pe.disabled)}}function te(ft,je){if(1&ft&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&ft){const Pe=e.oxw();e.xp6(1),e.hij("(",Pe.group.label,")")}}const oe=["*"];let le=(()=>{class ft{}return ft.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ft.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ft.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ft.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ft})(),de=(()=>{class ft{}return ft.COMPLEX="375ms",ft.ENTERING="225ms",ft.EXITING="195ms",ft})();const v=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Te(){return!0}});let L=(()=>{class ft{constructor(Pe,Qe,qe){this._sanityChecks=Qe,this._document=qe,this._hasDoneGlobalChecks=!1,Pe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Pe){return!(0,C.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Pe])}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.LFG(c.qm),e.LFG(v,8),e.LFG(g.K0))},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[A.vT,A.vT]}),ft})();function ue(ft){return class extends ft{constructor(...je){super(...je),this._disabled=!1}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,T.Ig)(je)}}}function ye(ft,je){return class extends ft{constructor(...Pe){super(...Pe),this.defaultColor=je,this.color=je}get color(){return this._color}set color(Pe){const Qe=Pe||this.defaultColor;Qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Qe&&this._elementRef.nativeElement.classList.add(`mat-${Qe}`),this._color=Qe)}}}function Me(ft){return class extends ft{constructor(...je){super(...je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(je){this._disableRipple=(0,T.Ig)(je)}}}function we(ft,je=0){return class extends ft{constructor(...Pe){super(...Pe),this._tabIndex=je,this.defaultTabIndex=je}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Pe){this._tabIndex=null!=Pe?(0,T.su)(Pe):this.defaultTabIndex}}}function Ge(ft){return class extends ft{constructor(...je){super(...je),this.errorState=!1}updateErrorState(){const je=this.errorState,Be=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Be!==je&&(this.errorState=Be,this.stateChanges.next())}}}function ce(ft){return class extends ft{constructor(...je){super(...je),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new E.y(Pe=>{this._isInitialized?this._notifySubscriber(Pe):this._pendingSubscribers.push(Pe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(je){je.next(),je.complete()}}}const Ze=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function he(){return(0,e.f3M)(e.soG)}});class xe{constructor(){this._localeChanges=new S.x,this.localeChanges=this._localeChanges}getValidDateOrNull(je){return this.isDateInstance(je)&&this.isValid(je)?je:null}deserialize(je){return null==je||this.isDateInstance(je)&&this.isValid(je)?je:this.invalid()}setLocale(je){this.locale=je,this._localeChanges.next()}compareDate(je,Pe){return this.getYear(je)-this.getYear(Pe)||this.getMonth(je)-this.getMonth(Pe)||this.getDate(je)-this.getDate(Pe)}sameDate(je,Pe){if(je&&Pe){let Qe=this.isValid(je),qe=this.isValid(Pe);return Qe&&qe?!this.compareDate(je,Pe):Qe==qe}return je==Pe}clampDate(je,Pe,Qe){return Pe&&this.compareDate(je,Pe)<0?Pe:Qe&&this.compareDate(je,Qe)>0?Qe:je}}const j=new e.OlP("mat-date-formats"),R=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function G(ft,je){const Pe=Array(ft);for(let Qe=0;Qe{class ft extends xe{constructor(Pe,Qe){super(),this.useUtcForDisplay=!1,super.setLocale(Pe)}getYear(Pe){return Pe.getFullYear()}getMonth(Pe){return Pe.getMonth()}getDate(Pe){return Pe.getDate()}getDayOfWeek(Pe){return Pe.getDay()}getMonthNames(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{month:Pe,timeZone:"utc"});return G(12,qe=>this._format(Qe,new Date(2017,qe,1)))}getDateNames(){const Pe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return G(31,Qe=>this._format(Pe,new Date(2017,0,Qe+1)))}getDayOfWeekNames(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{weekday:Pe,timeZone:"utc"});return G(7,qe=>this._format(Qe,new Date(2017,0,qe+1)))}getYearName(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Qe,Pe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Pe){return this.getDate(this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe)+1,0))}clone(Pe){return new Date(Pe.getTime())}createDate(Pe,Qe,qe){let Be=this._createDateWithOverflow(Pe,Qe,qe);return Be.getMonth(),Be}today(){return new Date}parse(Pe,Qe){return"number"==typeof Pe?new Date(Pe):Pe?new Date(Date.parse(Pe)):null}format(Pe,Qe){if(!this.isValid(Pe))throw Error("NativeDateAdapter: Cannot format invalid date.");const qe=new Intl.DateTimeFormat(this.locale,{...Qe,timeZone:"utc"});return this._format(qe,Pe)}addCalendarYears(Pe,Qe){return this.addCalendarMonths(Pe,12*Qe)}addCalendarMonths(Pe,Qe){let qe=this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe)+Qe,this.getDate(Pe));return this.getMonth(qe)!=((this.getMonth(Pe)+Qe)%12+12)%12&&(qe=this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe),0)),qe}addCalendarDays(Pe,Qe){return this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe),this.getDate(Pe)+Qe)}toIso8601(Pe){return[Pe.getUTCFullYear(),this._2digit(Pe.getUTCMonth()+1),this._2digit(Pe.getUTCDate())].join("-")}deserialize(Pe){if("string"==typeof Pe){if(!Pe)return null;if(R.test(Pe)){let Qe=new Date(Pe);if(this.isValid(Qe))return Qe}}return super.deserialize(Pe)}isDateInstance(Pe){return Pe instanceof Date}isValid(Pe){return!isNaN(Pe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Pe,Qe,qe){const Be=new Date;return Be.setFullYear(Pe,Qe,qe),Be.setHours(0,0,0,0),Be}_2digit(Pe){return("00"+Pe).slice(-2)}_format(Pe,Qe){const qe=new Date;return qe.setUTCFullYear(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),qe.setUTCHours(Qe.getHours(),Qe.getMinutes(),Qe.getSeconds(),Qe.getMilliseconds()),Pe.format(qe)}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.LFG(Ze,8),e.LFG(C.t4))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const $={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 Ee=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:[{provide:xe,useClass:se}]}),ft})(),Oe=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:[{provide:j,useValue:$}],imports:[Ee]}),ft})(),Xe=(()=>{class ft{isErrorState(Pe,Qe){return!!(Pe&&Pe.invalid&&(Pe.touched||Qe&&Qe.submitted))}}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})(),_t=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275dir=e.lG2({type:ft,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ft})();function Je(ft,je,Pe="mat"){ft.changes.pipe((0,U.O)(ft)).subscribe(({length:Qe})=>{gt(je,`${Pe}-2-line`,!1),gt(je,`${Pe}-3-line`,!1),gt(je,`${Pe}-multi-line`,!1),2===Qe||3===Qe?gt(je,`${Pe}-${Qe}-line`,!0):Qe>3&>(je,`${Pe}-multi-line`,!0)})}function gt(ft,je,Pe){ft.nativeElement.classList.toggle(je,Pe)}let Y=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L,L]}),ft})();class Ce{constructor(je,Pe,Qe,qe=!1){this._renderer=je,this.element=Pe,this.config=Qe,this._animationForciblyDisabledThroughCss=qe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ae={enterDuration:225,exitDuration:150},Se=(0,C.i$)({passive:!0}),Fe=["mousedown","touchstart"],be=["mouseup","mouseleave","touchend","touchcancel"];class Ue{constructor(je,Pe,Qe,qe){this._target=je,this._ngZone=Pe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,qe.isBrowser&&(this._containerElement=(0,T.fI)(Qe))}fadeInRipple(je,Pe,Qe={}){const qe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Be={...ae,...Qe.animation};Qe.centered&&(je=qe.left+qe.width/2,Pe=qe.top+qe.height/2);const me=Qe.radius||function P(ft,je,Pe){const Qe=Math.max(Math.abs(ft-Pe.left),Math.abs(ft-Pe.right)),qe=Math.max(Math.abs(je-Pe.top),Math.abs(je-Pe.bottom));return Math.sqrt(Qe*Qe+qe*qe)}(je,Pe,qe),ve=je-qe.left,ze=Pe-qe.top,tt=Be.enterDuration,at=document.createElement("div");at.classList.add("mat-ripple-element"),at.style.left=ve-me+"px",at.style.top=ze-me+"px",at.style.height=2*me+"px",at.style.width=2*me+"px",null!=Qe.color&&(at.style.backgroundColor=Qe.color),at.style.transitionDuration=`${tt}ms`,this._containerElement.appendChild(at);const Re=window.getComputedStyle(at),Pt=Re.transitionDuration,jt="none"===Re.transitionProperty||"0s"===Pt||"0s, 0s"===Pt,cn=new Ce(this,at,Qe,jt);at.style.transform="scale3d(1, 1, 1)",cn.state=0,Qe.persistent||(this._mostRecentTransientRipple=cn);let Xt=null;return!jt&&(tt||Be.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const sn=()=>this._finishRippleTransition(cn),mn=()=>this._destroyRipple(cn);at.addEventListener("transitionend",sn),at.addEventListener("transitioncancel",mn),Xt={onTransitionEnd:sn,onTransitionCancel:mn}}),this._activeRipples.set(cn,Xt),(jt||!tt)&&this._finishRippleTransition(cn),cn}fadeOutRipple(je){if(2===je.state||3===je.state)return;const Pe=je.element,Qe={...ae,...je.config.animation};Pe.style.transitionDuration=`${Qe.exitDuration}ms`,Pe.style.opacity="0",je.state=2,(je._animationForciblyDisabledThroughCss||!Qe.exitDuration)&&this._finishRippleTransition(je)}fadeOutAll(){this._getActiveRipples().forEach(je=>je.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(je=>{je.config.persistent||je.fadeOut()})}setupTriggerEvents(je){const Pe=(0,T.fI)(je);!Pe||Pe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Pe,this._registerEvents(Fe))}handleEvent(je){"mousedown"===je.type?this._onMousedown(je):"touchstart"===je.type?this._onTouchStart(je):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(be),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(je){0===je.state?this._startFadeOutTransition(je):2===je.state&&this._destroyRipple(je)}_startFadeOutTransition(je){const Pe=je===this._mostRecentTransientRipple,{persistent:Qe}=je.config;je.state=1,!Qe&&(!Pe||!this._isPointerDown)&&je.fadeOut()}_destroyRipple(je){var Pe;const Qe=null!==(Pe=this._activeRipples.get(je))&&void 0!==Pe?Pe:null;this._activeRipples.delete(je),this._activeRipples.size||(this._containerRect=null),je===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),je.state=3,null!==Qe&&(je.element.removeEventListener("transitionend",Qe.onTransitionEnd),je.element.removeEventListener("transitioncancel",Qe.onTransitionCancel)),je.element.remove()}_onMousedown(je){const Pe=(0,c.X6)(je),Qe=this._lastTouchStartEvent&&Date.now(){!je.config.persistent&&(1===je.state||je.config.terminateOnPointerUp&&0===je.state)&&je.fadeOut()}))}_registerEvents(je){this._ngZone.runOutsideAngular(()=>{je.forEach(Pe=>{this._triggerElement.addEventListener(Pe,this,Se)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Fe.forEach(je=>{this._triggerElement.removeEventListener(je,this,Se)}),this._pointerUpEventsRegistered&&be.forEach(je=>{this._triggerElement.removeEventListener(je,this,Se)}))}}const H=new e.OlP("mat-ripple-global-options");let i=(()=>{class ft{constructor(Pe,Qe,qe,Be,me){this._elementRef=Pe,this._animationMode=me,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Be||{},this._rippleRenderer=new Ue(this,Qe,Pe,qe)}get disabled(){return this._disabled}set disabled(Pe){Pe&&this.fadeOutAllNonPersistent(),this._disabled=Pe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Pe){this._trigger=Pe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Pe,Qe=0,qe){return"number"==typeof Pe?this._rippleRenderer.fadeInRipple(Pe,Qe,{...this.rippleConfig,...qe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Pe})}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(C.t4),e.Y36(H,8),e.Y36(e.QbO,8))},ft.\u0275dir=e.lG2({type:ft,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Pe,Qe){2&Pe&&e.ekj("mat-ripple-unbounded",Qe.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"]}),ft})(),o=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L,L]}),ft})(),f=(()=>{class ft{constructor(Pe){this._animationMode=Pe,this.state="unchecked",this.disabled=!1}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.QbO,8))},ft.\u0275cmp=e.Xpm({type:ft,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Pe,Qe){2&Pe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Qe.state)("mat-pseudo-checkbox-checked","checked"===Qe.state)("mat-pseudo-checkbox-disabled",Qe.disabled)("_mat-animation-noopable","NoopAnimations"===Qe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Pe,Qe){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),ft})(),l=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L]}),ft})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),s=new e.OlP("MatOptgroup");let p=0;class M{constructor(je,Pe=!1){this.source=je,this.isUserInput=Pe}}let _e=(()=>{class ft{constructor(Pe,Qe,qe,Be){this._element=Pe,this._changeDetectorRef=Qe,this._parent=qe,this.group=Be,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+p++,this.onSelectionChange=new e.vpe,this._stateChanges=new S.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Pe){this._disabled=(0,T.Ig)(Pe)}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(Pe,Qe){const qe=this._getHostElement();"function"==typeof qe.focus&&qe.focus(Qe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Pe){(Pe.keyCode===_.K5||Pe.keyCode===_.L_)&&!(0,_.Vb)(Pe)&&(this._selectViaInteraction(),Pe.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 Pe=this.viewValue;Pe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Pe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Pe=!1){this.onSelectionChange.emit(new M(this,Pe))}}return ft.\u0275fac=function(Pe){e.$Z()},ft.\u0275dir=e.lG2({type:ft,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ft})(),bt=(()=>{class ft extends _e{constructor(Pe,Qe,qe,Be){super(Pe,Qe,qe,Be)}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(s,8))},ft.\u0275cmp=e.Xpm({type:ft,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Pe,Qe){1&Pe&&e.NdJ("click",function(){return Qe._selectViaInteraction()})("keydown",function(Be){return Qe._handleKeydown(Be)}),2&Pe&&(e.Ikx("id",Qe.id),e.uIk("tabindex",Qe._getTabIndex())("aria-selected",Qe._getAriaSelected())("aria-disabled",Qe.disabled.toString()),e.ekj("mat-selected",Qe.selected)("mat-option-multiple",Qe.multiple)("mat-active",Qe.active)("mat-option-disabled",Qe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:oe,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(Pe,Qe){1&Pe&&(e.F$t(),e.YNc(0,Q,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,te,2,1,"span",2),e._UZ(4,"div",3)),2&Pe&&(e.Q6J("ngIf",Qe.multiple),e.xp6(3),e.Q6J("ngIf",Qe.group&&Qe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Qe._getHostElement())("matRippleDisabled",Qe.disabled||Qe.disableRipple))},dependencies:[i,g.O5,f],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),ft})();function Vt(ft,je,Pe){if(Pe.length){let Qe=je.toArray(),qe=Pe.toArray(),Be=0;for(let me=0;mePe+Qe?Math.max(0,ft-Qe+je):Pe}let Mt=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[o,g.ez,L,l]}),ft})()},99602:(Ye,pe,h)=>{"use strict";h.d(pe,{FA:()=>ot,Mq:()=>at,hl:()=>Xt,nW:()=>mn});var e=h(12687),c=h(98184),A=h(84080),w=h(36895),g=h(94650),C=h(4859),T=h(67376),E=h(3238),S=h(77579),U=h(50727),_=h(56451),V=h(39646),z=h(29521),Q=h(40445),te=h(95698),oe=h(68675),ee=h(39300),le=h(21281),de=h(83353),Te=h(37340),v=h(24006),L=h(59549),B=h(284);const W=["mat-calendar-body",""];function q($e,At){if(1&$e&&(g.TgZ(0,"tr",2)(1,"td",3),g._uU(2),g.qZA()()),2&$e){const Z=g.oxw();g.xp6(1),g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z.numCols),g.xp6(1),g.hij(" ",Z.label," ")}}function ue($e,At){if(1&$e&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&$e){const Z=g.oxw(2);g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z._firstRowOffset),g.xp6(1),g.hij(" ",Z._firstRowOffset>=Z.labelMinRequiredCells?Z.label:""," ")}}function ye($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"td",7)(1,"button",8),g.NdJ("click",function(mt){const tn=g.CHM(Z).$implicit,En=g.oxw(2);return g.KtG(En._cellClicked(tn,mt))})("focus",function(mt){const tn=g.CHM(Z).$implicit,En=g.oxw(2);return g.KtG(En._emitActiveDateChange(tn,mt))}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA()()}if(2&$e){const Z=At.$implicit,ke=At.index,mt=g.oxw().index,St=g.oxw();g.Udp("width",St._cellWidth)("padding-top",St._cellPadding)("padding-bottom",St._cellPadding),g.uIk("data-mat-row",mt)("data-mat-col",ke),g.xp6(1),g.ekj("mat-calendar-body-disabled",!Z.enabled)("mat-calendar-body-active",St._isActiveCell(mt,ke))("mat-calendar-body-range-start",St._isRangeStart(Z.compareValue))("mat-calendar-body-range-end",St._isRangeEnd(Z.compareValue))("mat-calendar-body-in-range",St._isInRange(Z.compareValue))("mat-calendar-body-comparison-bridge-start",St._isComparisonBridgeStart(Z.compareValue,mt,ke))("mat-calendar-body-comparison-bridge-end",St._isComparisonBridgeEnd(Z.compareValue,mt,ke))("mat-calendar-body-comparison-start",St._isComparisonStart(Z.compareValue))("mat-calendar-body-comparison-end",St._isComparisonEnd(Z.compareValue))("mat-calendar-body-in-comparison-range",St._isInComparisonRange(Z.compareValue))("mat-calendar-body-preview-start",St._isPreviewStart(Z.compareValue))("mat-calendar-body-preview-end",St._isPreviewEnd(Z.compareValue))("mat-calendar-body-in-preview",St._isInPreview(Z.compareValue)),g.Q6J("ngClass",Z.cssClasses)("tabindex",St._isActiveCell(mt,ke)?0:-1),g.uIk("aria-label",Z.ariaLabel)("aria-disabled",!Z.enabled||null)("aria-pressed",St._isSelected(Z.compareValue))("aria-current",St.todayValue===Z.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",St._isSelected(Z.compareValue))("mat-calendar-body-comparison-identical",St._isComparisonIdentical(Z.compareValue))("mat-calendar-body-today",St.todayValue===Z.compareValue),g.xp6(1),g.hij(" ",Z.displayValue," ")}}function Me($e,At){if(1&$e&&(g.TgZ(0,"tr",4),g.YNc(1,ue,2,6,"td",5),g.YNc(2,ye,5,47,"td",6),g.qZA()),2&$e){const Z=At.$implicit,ke=At.index,mt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===ke&&mt._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",Z)}}function we($e,At){if(1&$e&&(g.TgZ(0,"th",5)(1,"span",6),g._uU(2),g.qZA(),g.TgZ(3,"span",7),g._uU(4),g.qZA()()),2&$e){const Z=At.$implicit;g.xp6(2),g.Oqu(Z.long),g.xp6(2),g.Oqu(Z.narrow)}}const Ge=["*"];function ce($e,At){}function Ze($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("_userSelection",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._dateSelected(mt))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)("comparisonStart",Z.comparisonStart)("comparisonEnd",Z.comparisonEnd)}}function he($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("monthSelected",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._monthSelectedInYearView(mt))})("selectedChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"month"))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function xe($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("yearSelected",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._yearSelectedInMultiYearView(mt))})("selectedChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"year"))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function j($e,At){}const R=["button"];function G($e,At){1&$e&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const se=[[["","matDatepickerToggleIcon",""]]],$=["[matDatepickerToggleIcon]"];let _t=(()=>{class $e{constructor(){this.changes=new S.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(Z,ke){return`${Z} \u2013 ${ke}`}formatYearRangeLabel(Z,ke){return`${Z} to ${ke}`}}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();class Je{constructor(At,Z,ke,mt,St={},tn=At,En){this.value=At,this.displayValue=Z,this.ariaLabel=ke,this.enabled=mt,this.cssClasses=St,this.compareValue=tn,this.rawValue=En}}let gt=(()=>{class $e{constructor(Z,ke){this._elementRef=Z,this._ngZone=ke,this._focusActiveCellAfterViewChecked=!1,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.activeDateChange=new g.vpe,this._enterHandler=mt=>{if(this._skipNextFocus&&"focus"===mt.type)this._skipNextFocus=!1;else if(mt.target&&this.isRange){const St=this._getCellFromElement(mt.target);St&&this._ngZone.run(()=>this.previewChange.emit({value:St.enabled?St:null,event:mt}))}},this._leaveHandler=mt=>{null!==this.previewEnd&&this.isRange&&mt.target&&this._getCellFromElement(mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:mt}))},ke.runOutsideAngular(()=>{const mt=Z.nativeElement;mt.addEventListener("mouseenter",this._enterHandler,!0),mt.addEventListener("focus",this._enterHandler,!0),mt.addEventListener("mouseleave",this._leaveHandler,!0),mt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(Z,ke){Z.enabled&&this.selectedValueChange.emit({value:Z.value,event:ke})}_emitActiveDateChange(Z,ke){Z.enabled&&this.activeDateChange.emit({value:Z.value,event:ke})}_isSelected(Z){return this.startValue===Z||this.endValue===Z}ngOnChanges(Z){const ke=Z.numCols,{rows:mt,numCols:St}=this;(Z.rows||ke)&&(this._firstRowOffset=mt&&mt.length&&mt[0].length?St-mt[0].length:0),(Z.cellAspectRatio||ke||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/St+"%"),(ke||!this._cellWidth)&&(this._cellWidth=100/St+"%")}ngOnDestroy(){const Z=this._elementRef.nativeElement;Z.removeEventListener("mouseenter",this._enterHandler,!0),Z.removeEventListener("focus",this._enterHandler,!0),Z.removeEventListener("mouseleave",this._leaveHandler,!0),Z.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Z,ke){let mt=Z*this.numCols+ke;return Z&&(mt-=this._firstRowOffset),mt==this.activeCell}_focusActiveCell(Z=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>{setTimeout(()=>{const ke=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");ke&&(Z||(this._skipNextFocus=!0),ke.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Z){return Ce(Z,this.startValue,this.endValue)}_isRangeEnd(Z){return ae(Z,this.startValue,this.endValue)}_isInRange(Z){return re(Z,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Z){return Ce(Z,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Z,ke,mt){if(!this._isComparisonStart(Z)||this._isRangeStart(Z)||!this._isInRange(Z))return!1;let St=this.rows[ke][mt-1];if(!St){const tn=this.rows[ke-1];St=tn&&tn[tn.length-1]}return St&&!this._isRangeEnd(St.compareValue)}_isComparisonBridgeEnd(Z,ke,mt){if(!this._isComparisonEnd(Z)||this._isRangeEnd(Z)||!this._isInRange(Z))return!1;let St=this.rows[ke][mt+1];if(!St){const tn=this.rows[ke+1];St=tn&&tn[0]}return St&&!this._isRangeStart(St.compareValue)}_isComparisonEnd(Z){return ae(Z,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Z){return re(Z,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Z){return this.comparisonStart===this.comparisonEnd&&Z===this.comparisonStart}_isPreviewStart(Z){return Ce(Z,this.previewStart,this.previewEnd)}_isPreviewEnd(Z){return ae(Z,this.previewStart,this.previewEnd)}_isInPreview(Z){return re(Z,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Z){let ke;if(Y(Z)?ke=Z:Y(Z.parentNode)&&(ke=Z.parentNode),ke){const mt=ke.getAttribute("data-mat-row"),St=ke.getAttribute("data-mat-col");if(mt&&St)return this.rows[parseInt(mt)][parseInt(St)]}return null}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(g.R0b))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:W,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(Z,ke){1&Z&&(g.YNc(0,q,3,6,"tr",0),g.YNc(1,Me,3,2,"tr",1)),2&Z&&(g.Q6J("ngIf",ke._firstRowOffset=At&&$e===Z}function re($e,At,Z,ke){return ke&&null!==At&&null!==Z&&At!==Z&&$e>=At&&$e<=Z}class Se{constructor(At,Z){this.start=At,this.end=Z}}let Fe=(()=>{class $e{constructor(Z,ke){this.selection=Z,this._adapter=ke,this._selectionChanged=new S.x,this.selectionChanged=this._selectionChanged,this.selection=Z}updateSelection(Z,ke){const mt=this.selection;this.selection=Z,this._selectionChanged.next({selection:Z,source:ke,oldValue:mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Z){return this._adapter.isDateInstance(Z)&&this._adapter.isValid(Z)}}return $e.\u0275fac=function(Z){g.$Z()},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),be=(()=>{class $e extends Fe{constructor(Z){super(null,Z)}add(Z){super.updateSelection(Z,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Z=new $e(this._adapter);return Z.updateSelection(this.selection,this),Z}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.LFG(E._A))},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})();const H={provide:Fe,deps:[[new g.FiY,new g.tp0,Fe],E._A],useFactory:function P($e,At){return $e||new be(At)}},f=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let r=(()=>{class $e{constructor(Z,ke,mt,St,tn){this._changeDetectorRef=Z,this._dateFormats=ke,this._dateAdapter=mt,this._dir=St,this._rangeStrategy=tn,this._rerenderSubscription=U.w0.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(Z){const ke=this._activeDate,mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(ke,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnChanges(Z){const ke=Z.comparisonStart||Z.comparisonEnd;ke&&!ke.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Z){const ke=Z.value,mt=this._getDateFromDayOfMonth(ke);let St,tn;this._selected instanceof Se?(St=this._getDateInCurrentMonth(this._selected.start),tn=this._getDateInCurrentMonth(this._selected.end)):St=tn=this._getDateInCurrentMonth(this._selected),(St!==ke||tn!==ke)&&this.selectedChange.emit(mt),this._userSelection.emit({value:mt,event:Z.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Z.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(Z)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Z}),Z.preventDefault(),Z.stopPropagation()));default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Z}),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 Z=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Z)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Z){this._matCalendarBody._focusActiveCell(Z)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Z,value:ke}){if(this._rangeStrategy){const St=this._rangeStrategy.createPreview(ke?ke.rawValue:null,this.selected,Z);this._previewStart=this._getCellCompareValue(St.start),this._previewEnd=this._getCellCompareValue(St.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Z){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Z)}_initWeekdays(){const Z=this._dateAdapter.getFirstDayOfWeek(),ke=this._dateAdapter.getDayOfWeekNames("narrow");let St=this._dateAdapter.getDayOfWeekNames("long").map((tn,En)=>({long:tn,narrow:ke[En]}));this._weekdays=St.slice(Z).concat(St.slice(0,Z))}_createWeekCells(){const Z=this._dateAdapter.getNumDaysInMonth(this.activeDate),ke=this._dateAdapter.getDateNames();this._weeks=[[]];for(let mt=0,St=this._firstWeekOffset;mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(Z,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Z))}_getDateInCurrentMonth(Z){return Z&&this._hasSameMonthAndYear(Z,this.activeDate)?this._dateAdapter.getDate(Z):null}_hasSameMonthAndYear(Z,ke){return!(!Z||!ke||this._dateAdapter.getMonth(Z)!=this._dateAdapter.getMonth(ke)||this._dateAdapter.getYear(Z)!=this._dateAdapter.getYear(ke))}_getCellCompareValue(Z){if(Z){const ke=this._dateAdapter.getYear(Z),mt=this._dateAdapter.getMonth(Z),St=this._dateAdapter.getDate(Z);return new Date(ke,mt,St).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Z){Z instanceof Se?(this._rangeStart=this._getCellCompareValue(Z.start),this._rangeEnd=this._getCellCompareValue(Z.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Z),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Z){return!this.dateFilter||this.dateFilter(Z)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.sBO),g.Y36(E.sG,8),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(f,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-month-view"]],viewQuery:function(Z,ke){if(1&Z&&g.Gf(gt,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._matCalendarBody=mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[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","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Z,ke){1&Z&&(g.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),g.YNc(3,we,5,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA()(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(St){return ke._dateSelected(St)})("activeDateChange",function(St){return ke._updateActiveDate(St)})("previewChange",function(St){return ke._previewChanged(St)})("keyup",function(St){return ke._handleCalendarBodyKeyup(St)})("keydown",function(St){return ke._handleCalendarBodyKeydown(St)}),g.qZA()()),2&Z&&(g.xp6(3),g.Q6J("ngForOf",ke._weekdays),g.xp6(3),g.Q6J("label",ke._monthLabel)("rows",ke._weeks)("todayValue",ke._todayDate)("startValue",ke._rangeStart)("endValue",ke._rangeEnd)("comparisonStart",ke._comparisonRangeStart)("comparisonEnd",ke._comparisonRangeEnd)("previewStart",ke._previewStart)("previewEnd",ke._previewEnd)("isRange",ke._isRange)("labelMinRequiredCells",3)("activeCell",ke._dateAdapter.getDate(ke.activeDate)-1))},dependencies:[w.sg,gt],encapsulation:2,changeDetection:0}),$e})();const s=24;let p=(()=>{class $e{constructor(Z,ke,mt){this._changeDetectorRef=Z,this._dateAdapter=ke,this._dir=mt,this._rerenderSubscription=U.w0.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(Z){let ke=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),M(this._dateAdapter,ke,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedYear(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const ke=this._dateAdapter.getYear(this._activeDate)-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let mt=0,St=[];mtthis._createCellForYear(tn))),St=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Z){const ke=Z.value,mt=this._dateAdapter.createDate(ke,0,1),St=this._getDateFromYear(ke);this.yearSelected.emit(mt),this.selectedChange.emit(St)}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromYear(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,s-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-240:-s);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?240:s);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_getActiveCell(){return _e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Z){const ke=this._dateAdapter.getMonth(this.activeDate),mt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Z,ke,1));return this._dateAdapter.createDate(Z,ke,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForYear(Z){const ke=this._dateAdapter.createDate(Z,0,1),mt=this._dateAdapter.getYearName(ke),St=this.dateClass?this.dateClass(ke,"multi-year"):void 0;return new Je(Z,mt,mt,this._shouldEnableYear(Z),St)}_shouldEnableYear(Z){if(null==Z||this.maxDate&&Z>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Z{class $e{constructor(Z,ke,mt,St){this._changeDetectorRef=Z,this._dateFormats=ke,this._dateAdapter=mt,this._dir=St,this._rerenderSubscription=U.w0.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(Z){let ke=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._dateAdapter.getYear(ke)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedMonth(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Z){const ke=Z.value,mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ke,1);this.monthSelected.emit(mt);const St=this._getDateFromMonth(ke);this.selectedChange.emit(St)}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromMonth(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Z=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(ke=>ke.map(mt=>this._createCellForMonth(mt,Z[mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Z){return Z&&this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Z):null}_getDateFromMonth(Z){const ke=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),mt=this._dateAdapter.getNumDaysInMonth(ke);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForMonth(Z,ke){const mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),St=this._dateAdapter.format(mt,this._dateFormats.display.monthYearA11yLabel),tn=this.dateClass?this.dateClass(mt,"year"):void 0;return new Je(Z,ke.toLocaleUpperCase(),St,this._shouldEnableMonth(Z),tn)}_shouldEnableMonth(Z){const ke=this._dateAdapter.getYear(this.activeDate);if(null==Z||this._isYearAndMonthAfterMaxDate(ke,Z)||this._isYearAndMonthBeforeMinDate(ke,Z))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(ke,Z,1);this._dateAdapter.getMonth(St)==Z;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isYearAndMonthAfterMaxDate(Z,ke){if(this.maxDate){const mt=this._dateAdapter.getYear(this.maxDate),St=this._dateAdapter.getMonth(this.maxDate);return Z>mt||Z===mt&&ke>St}return!1}_isYearAndMonthBeforeMinDate(Z,ke){if(this.minDate){const mt=this._dateAdapter.getYear(this.minDate),St=this._dateAdapter.getMonth(this.minDate);return Z{class $e{constructor(Z,ke,mt,St,tn){this._intl=Z,this.calendar=ke,this._dateAdapter=mt,this._dateFormats=St,this._buttonDescriptionId="mat-calendar-button-"+Mt++,this.calendar.stateChanges.subscribe(()=>tn.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 ke=this._dateAdapter.getYear(this.calendar.activeDate)-_e(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),mt=ke+s-1,St=this._dateAdapter.getYearName(this._dateAdapter.createDate(ke,0,1)),tn=this._dateAdapter.getYearName(this._dateAdapter.createDate(mt,0,1));return this._intl.formatYearRange(St,tn)}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:-s)}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:s)}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(Z,ke){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(ke)&&this._dateAdapter.getMonth(Z)==this._dateAdapter.getMonth(ke):"year"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(ke):M(this._dateAdapter,Z,ke,this.calendar.minDate,this.calendar.maxDate)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36((0,g.Gpc)(()=>je)),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ge,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Z,ke){1&Z&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"button",2),g.NdJ("click",function(){return ke.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.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return ke.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return ke.nextClicked()}),g.qZA()()()),2&Z&&(g.xp6(2),g.uIk("aria-label",ke.periodButtonLabel)("aria-describedby",ke._buttonDescriptionId),g.xp6(1),g.uIk("id",ke._buttonDescriptionId),g.xp6(1),g.Oqu(ke.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==ke.calendar.currentView),g.xp6(4),g.Q6J("disabled",!ke.previousEnabled()),g.uIk("aria-label",ke.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!ke.nextEnabled()),g.uIk("aria-label",ke.nextButtonLabel))},dependencies:[C.lW],encapsulation:2,changeDetection:0}),$e})(),je=(()=>{class $e{constructor(Z,ke,mt,St){this._dateAdapter=ke,this._dateFormats=mt,this._changeDetectorRef=St,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 S.x,this._intlChanges=Z.changes.subscribe(()=>{St.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get activeDate(){return this._clampedActiveDate}set activeDate(Z){this._clampedActiveDate=this._dateAdapter.clampDate(Z,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Z){const ke=this._currentView!==Z?Z:null;this._currentView=Z,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),ke&&this.viewChanged.emit(ke)}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||ft),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(Z){const ke=Z.minDate&&!this._dateAdapter.sameDate(Z.minDate.previousValue,Z.minDate.currentValue)?Z.minDate:void 0,mt=Z.maxDate&&!this._dateAdapter.sameDate(Z.maxDate.previousValue,Z.maxDate.currentValue)?Z.maxDate:void 0,St=ke||mt||Z.dateFilter;if(St&&!St.firstChange){const tn=this._getCurrentViewComponent();tn&&(this._changeDetectorRef.detectChanges(),tn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Z){const ke=Z.value;(this.selected instanceof Se||ke&&!this._dateAdapter.sameDate(ke,this.selected))&&this.selectedChange.emit(ke),this._userSelection.emit(Z)}_yearSelectedInMultiYearView(Z){this.yearSelected.emit(Z)}_monthSelectedInYearView(Z){this.monthSelected.emit(Z)}_goToDateInView(Z,ke){this.activeDate=Z,this.currentView=ke}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar"]],viewQuery:function(Z,ke){if(1&Z&&(g.Gf(r,5),g.Gf(on,5),g.Gf(p,5)),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke.monthView=mt.first),g.iGM(mt=g.CRH())&&(ke.yearView=mt.first),g.iGM(mt=g.CRH())&&(ke.multiYearView=mt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([H]),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(Z,ke){1&Z&&(g.YNc(0,ce,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,Ze,1,8,"mat-month-view",2),g.YNc(3,he,1,6,"mat-year-view",3),g.YNc(4,xe,1,6,"mat-multi-year-view",4),g.qZA()),2&Z&&(g.Q6J("cdkPortalOutlet",ke._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",ke.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,e.kH,A.Pl,r,on,p],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),$e})();const Pe={transformPanel:(0,Te.X$)("transformPanel",[(0,Te.eR)("void => enter-dropdown",(0,Te.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Te.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Te.eR)("void => enter-dialog",(0,Te.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(0.7)"}),(0,Te.oB)({transform:"none",opacity:1})]))),(0,Te.eR)("* => void",(0,Te.jt)("100ms linear",(0,Te.oB)({opacity:0})))]),fadeInCalendar:(0,Te.X$)("fadeInCalendar",[(0,Te.SB)("void",(0,Te.oB)({opacity:0})),(0,Te.SB)("enter",(0,Te.oB)({opacity:1})),(0,Te.eR)("void => *",(0,Te.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Qe=0;const qe=new g.OlP("mat-datepicker-scroll-strategy"),me={provide:qe,deps:[c.aV],useFactory:function Be($e){return()=>$e.scrollStrategies.reposition()}},ve=(0,E.pj)(class{constructor($e){this._elementRef=$e}});let ze=(()=>{class $e extends ve{constructor(Z,ke,mt,St,tn,En){super(Z),this._changeDetectorRef=ke,this._globalModel=mt,this._dateAdapter=St,this._rangeSelectionStrategy=tn,this._subscriptions=new U.w0,this._animationDone=new S.x,this._actionsPortal=null,this._closeButtonText=En.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Z){const ke=this._model.selection,mt=Z.value,St=ke instanceof Se;if(St&&this._rangeSelectionStrategy){const tn=this._rangeSelectionStrategy.selectionFinished(mt,ke,Z.event);this._model.updateSelection(tn,this)}else mt&&(St||!this._dateAdapter.sameDate(mt,ke))&&this._model.add(mt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Z,ke){this._model=Z?this._globalModel.clone():this._globalModel,this._actionsPortal=Z,ke&&this._changeDetectorRef.detectChanges()}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Fe),g.Y36(E._A),g.Y36(f,8),g.Y36(_t))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-content"]],viewQuery:function(Z,ke){if(1&Z&&g.Gf(je,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._calendar=mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Z,ke){1&Z&&g.WFA("@transformPanel.done",function(){return ke._animationDone.next()}),2&Z&&(g.d8E("@transformPanel",ke._animationState),g.ekj("mat-datepicker-content-touch",ke.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(Z,ke){if(1&Z&&(g.TgZ(0,"div",0)(1,"mat-calendar",1),g.NdJ("yearSelected",function(St){return ke.datepicker._selectYear(St)})("monthSelected",function(St){return ke.datepicker._selectMonth(St)})("viewChanged",function(St){return ke.datepicker._viewChanged(St)})("_userSelection",function(St){return ke._handleUserSelection(St)}),g.qZA(),g.YNc(2,j,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return ke._closeButtonFocused=!0})("blur",function(){return ke._closeButtonFocused=!1})("click",function(){return ke.datepicker.close()}),g._uU(4),g.qZA()()),2&Z){let mt;g.ekj("mat-datepicker-content-container-with-custom-header",ke.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",ke._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(mt=ke._dialogLabelId)&&void 0!==mt?mt:void 0),g.xp6(1),g.Q6J("id",ke.datepicker.id)("ngClass",ke.datepicker.panelClass)("startAt",ke.datepicker.startAt)("startView",ke.datepicker.startView)("minDate",ke.datepicker._getMinDate())("maxDate",ke.datepicker._getMaxDate())("dateFilter",ke.datepicker._getDateFilter())("headerComponent",ke.datepicker.calendarHeaderComponent)("selected",ke._getSelected())("dateClass",ke.datepicker.dateClass)("comparisonStart",ke.comparisonStart)("comparisonEnd",ke.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",ke._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!ke._closeButtonFocused),g.Q6J("color",ke.color||"primary"),g.xp6(1),g.Oqu(ke._closeButtonText)}},dependencies:[w.mk,C.lW,e.mK,A.Pl,je],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Pe.transformPanel,Pe.fadeInCalendar]},changeDetection:0}),$e})(),tt=(()=>{class $e{constructor(Z,ke,mt,St,tn,En,jn){this._overlay=Z,this._ngZone=ke,this._viewContainerRef=mt,this._dateAdapter=tn,this._dir=En,this._model=jn,this._inputStateChanges=U.w0.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-"+Qe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new S.x,this._scrollStrategy=St}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Z){this._color=Z}get touchUi(){return this._touchUi}set touchUi(Z){this._touchUi=(0,le.Ig)(Z)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Z){const ke=(0,le.Ig)(Z);ke!==this._disabled&&(this._disabled=ke,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Z){this._restoreFocus=(0,le.Ig)(Z)}get panelClass(){return this._panelClass}set panelClass(Z){this._panelClass=(0,le.du)(Z)}get opened(){return this._opened}set opened(Z){(0,le.Ig)(Z)?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(Z){const ke=Z.xPosition||Z.yPosition;if(ke&&!ke.firstChange&&this._overlayRef){const mt=this._overlayRef.getConfig().positionStrategy;mt instanceof c._G&&(this._setConnectedPositions(mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Z){this._model.add(Z)}_selectYear(Z){this.yearSelected.emit(Z)}_selectMonth(Z){this.monthSelected.emit(Z)}_viewChanged(Z){this.viewChanged.emit(Z)}registerInput(Z){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Z,this._inputStateChanges=Z.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Z){var ke;this._actionsPortal=Z,null===(ke=this._componentRef)||void 0===ke||ke.instance._assignActions(Z,!0)}removeActions(Z){var ke;Z===this._actionsPortal&&(this._actionsPortal=null,null===(ke=this._componentRef)||void 0===ke||ke.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,de.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const ke=this._componentRef.instance;ke._startExitAnimation(),ke._animationDone.pipe((0,te.q)(1)).subscribe(()=>this._destroyOverlay())}const Z=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Z)):Z()}_applyPendingSelection(){var Z,ke;null===(Z=this._componentRef)||void 0===Z||null===(ke=Z.instance)||void 0===ke||ke._applyPendingSelection()}_forwardContentValues(Z){Z.datepicker=this,Z.color=this.color,Z._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Z._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Z=this.touchUi,ke=new A.C5(ze,this._viewContainerRef),mt=this._overlayRef=this._overlay.create(new c.X_({positionStrategy:Z?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Z?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Z?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Z?"dialog":"popup")}));this._getCloseStream(mt).subscribe(St=>{St&&St.preventDefault(),this.close()}),mt.keydownEvents().subscribe(St=>{const tn=St.keyCode;(tn===z.LH||tn===z.JH||tn===z.oh||tn===z.SV||tn===z.Ku||tn===z.VM)&&St.preventDefault()}),this._componentRef=mt.attach(ke),this._forwardContentValues(this._componentRef.instance),Z||this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const Z=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Z)}_setConnectedPositions(Z){const ke="end"===this.xPosition?"end":"start",mt="start"===ke?"end":"start",St="above"===this.yPosition?"bottom":"top",tn="top"===St?"bottom":"top";return Z.withPositions([{originX:ke,originY:tn,overlayX:ke,overlayY:St},{originX:ke,originY:St,overlayX:ke,overlayY:tn},{originX:mt,originY:tn,overlayX:mt,overlayY:St},{originX:mt,originY:St,overlayX:mt,overlayY:tn}])}_getCloseStream(Z){return(0,_.T)(Z.backdropClick(),Z.detachments(),Z.keydownEvents().pipe((0,ee.h)(ke=>ke.keyCode===z.hY&&!(0,z.Vb)(ke)||this.datepickerInput&&(0,z.Vb)(ke,"altKey")&&ke.keyCode===z.LH)))}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(c.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(qe),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(Fe))},$e.\u0275dir=g.lG2({type:$e,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]}),$e})(),at=(()=>{class $e extends tt{}return $e.\u0275fac=function(){let At;return function(ke){return(At||(At=g.n5z($e)))(ke||$e)}}(),$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([H,{provide:tt,useExisting:$e}]),g.qOj],decls:0,vars:0,template:function(Z,ke){},encapsulation:2,changeDetection:0}),$e})();class Re{constructor(At,Z){this.target=At,this.targetElement=Z,this.value=this.target.value}}let st=(()=>{class $e{constructor(Z,ke,mt){this._elementRef=Z,this._dateAdapter=ke,this._dateFormats=mt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new S.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=U.w0.EMPTY,this._localeSubscription=U.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value));return!tn||this._matchesFilter(tn)?null:{matDatepickerFilter:!0}},this._minValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),En=this._getMinDate();return!En||!tn||this._dateAdapter.compareDate(En,tn)<=0?null:{matDatepickerMin:{min:En,actual:tn}}},this._maxValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),En=this._getMaxDate();return!En||!tn||this._dateAdapter.compareDate(En,tn)>=0?null:{matDatepickerMax:{max:En,actual:tn}}},this._lastValueValid=!1,this._localeSubscription=ke.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Z){this._assignValueProgrammatically(Z)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Z){const ke=(0,le.Ig)(Z),mt=this._elementRef.nativeElement;this._disabled!==ke&&(this._disabled=ke,this.stateChanges.next(void 0)),ke&&this._isInitialized&&mt.blur&&mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Z){this._model=Z,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(ke=>{if(this._shouldHandleChangeEvent(ke)){const mt=this._getValueFromModel(ke.selection);this._lastValueValid=this._isValidValue(mt),this._cvaOnChange(mt),this._onTouched(),this._formatValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)),this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Z){(function Pt($e,At){const Z=Object.keys($e);for(let ke of Z){const{previousValue:mt,currentValue:St}=$e[ke];if(!At.isDateInstance(mt)||!At.isDateInstance(St))return!0;if(!At.sameDate(mt,St))return!0}return!1})(Z,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Z){this._validatorOnChange=Z}validate(Z){return this._validator?this._validator(Z):null}writeValue(Z){this._assignValueProgrammatically(Z)}registerOnChange(Z){this._cvaOnChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this.disabled=Z}_onKeydown(Z){Z.altKey&&Z.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Z.preventDefault())}_onInput(Z){const ke=this._lastValueValid;let mt=this._dateAdapter.parse(Z,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(mt),mt=this._dateAdapter.getValidDateOrNull(mt);const St=!this._dateAdapter.sameDate(mt,this.value);!mt||St?this._cvaOnChange(mt):(Z&&!this.value&&this._cvaOnChange(mt),ke!==this._lastValueValid&&this._validatorOnChange()),St&&(this._assignValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Z){this._elementRef.nativeElement.value=null!=Z?this._dateAdapter.format(Z,this._dateFormats.display.dateInput):""}_assignValue(Z){this._model?(this._assignValueToModel(Z),this._pendingValue=null):this._pendingValue=Z}_isValidValue(Z){return!Z||this._dateAdapter.isValid(Z)}_parentDisabled(){return!1}_assignValueProgrammatically(Z){Z=this._dateAdapter.deserialize(Z),this._lastValueValid=this._isValidValue(Z),Z=this._dateAdapter.getValidDateOrNull(Z),this._assignValue(Z),this._formatValue(Z)}_matchesFilter(Z){const ke=this._getDateFilter();return!ke||ke(Z)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),$e})();const jt={provide:v.JU,useExisting:(0,g.Gpc)(()=>Xt),multi:!0},cn={provide:v.Cf,useExisting:(0,g.Gpc)(()=>Xt),multi:!0};let Xt=(()=>{class $e extends st{constructor(Z,ke,mt,St){super(Z,ke,mt),this._formField=St,this._closedSubscription=U.w0.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(Z){Z&&(this._datepicker=Z,this._closedSubscription=Z.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Z.registerInput(this)))}get min(){return this._min}set min(Z){const ke=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(ke,this._min)||(this._min=ke,this._validatorOnChange())}get max(){return this._max}set max(Z){const ke=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(ke,this._max)||(this._max=ke,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Z){const ke=this._matchesFilter(this.value);this._dateFilter=Z,this._matchesFilter(this.value)!==ke&&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(Z){return Z}_assignValueToModel(Z){this._model&&this._model.updateSelection(Z,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Z){return Z.source!==this}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(L.G_,8))},$e.\u0275dir=g.lG2({type:$e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Z,ke){1&Z&&g.NdJ("input",function(St){return ke._onInput(St.target.value)})("change",function(){return ke._onChange()})("blur",function(){return ke._onBlur()})("keydown",function(St){return ke._onKeydown(St)}),2&Z&&(g.Ikx("disabled",ke.disabled),g.uIk("aria-haspopup",ke._datepicker?"dialog":null)("aria-owns",(null==ke._datepicker?null:ke._datepicker.opened)&&ke._datepicker.id||null)("min",ke.min?ke._dateAdapter.toIso8601(ke.min):null)("max",ke.max?ke._dateAdapter.toIso8601(ke.max):null)("data-mat-calendar",ke._datepicker?ke._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([jt,cn,{provide:B.Jk,useExisting:$e}]),g.qOj]}),$e})(),sn=(()=>{class $e{}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matDatepickerToggleIcon",""]]}),$e})(),mn=(()=>{class $e{constructor(Z,ke,mt){this._intl=Z,this._changeDetectorRef=ke,this._stateChanges=U.w0.EMPTY;const St=Number(mt);this.tabIndex=St||0===St?St:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Z){this._disabled=(0,le.Ig)(Z)}ngOnChanges(Z){Z.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Z){this.datepicker&&!this.disabled&&(this.datepicker.open(),Z.stopPropagation())}_watchStateChanges(){const Z=this.datepicker?this.datepicker.stateChanges:(0,V.of)(),ke=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,V.of)(),mt=this.datepicker?(0,_.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,V.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,_.T)(this._intl.changes,Z,ke,mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36(g.sBO),g.$8M("tabindex"))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Z,ke,mt){if(1&Z&&g.Suo(mt,sn,5),2&Z){let St;g.iGM(St=g.CRH())&&(ke._customIcon=St.first)}},viewQuery:function(Z,ke){if(1&Z&&g.Gf(R,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._button=mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Z,ke){1&Z&&g.NdJ("click",function(St){return ke._open(St)}),2&Z&&(g.uIk("tabindex",null)("data-mat-calendar",ke.datepicker?ke.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",ke.datepicker&&ke.datepicker.opened)("mat-accent",ke.datepicker&&"accent"===ke.datepicker.color)("mat-warn",ke.datepicker&&"warn"===ke.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:$,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(Z,ke){1&Z&&(g.F$t(se),g.TgZ(0,"button",0,1),g.YNc(2,G,2,0,"svg",2),g.Hsn(3),g.qZA()),2&Z&&(g.Q6J("disabled",ke.disabled)("disableRipple",ke.disableRipple),g.uIk("aria-haspopup",ke.datepicker?"dialog":null)("aria-label",ke.ariaLabel||ke._intl.openCalendarLabel)("tabindex",ke.disabled?-1:ke.tabIndex),g.xp6(2),g.Q6J("ngIf",!ke._customIcon))},dependencies:[w.O5,C.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),$e})(),ot=(()=>{class $e{}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275mod=g.oAB({type:$e}),$e.\u0275inj=g.cJS({providers:[_t,me],imports:[w.ez,C.ot,c.U8,e.rt,A.eL,E.BQ,T.ZD]}),$e})()},65412:(Ye,pe,h)=>{"use strict";h.d(pe,{WI:()=>Ee,uw:()=>Ce,H8:()=>be,vA:()=>j,xY:()=>Fe,Is:()=>P,so:()=>se,uh:()=>Se});var e=h(12687),c=h(98184),A=h(83353),w=h(84080),g=h(36895),C=h(94650),T=h(29521),E=h(77579),S=h(49770),U=h(39646),_=h(40445),V=h(68675);function z(H,i){}class Q{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let oe=(()=>{class H extends w.en{constructor(o,f,l,a,n,t,r,s){super(),this._elementRef=o,this._focusTrapFactory=f,this._config=a,this._interactivityChecker=n,this._ngZone=t,this._overlayRef=r,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const p=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),p},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),f}attachTemplatePortal(o){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),f}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,f){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const l=()=>{o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",l),o.addEventListener("mousedown",l)})),o.focus(f)}_focusByCssSelector(o,f){let l=this._elementRef.nativeElement.querySelector(o);l&&this._forceFocus(l,f)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(f=>{f||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 o=this._config.restoreFocus;let f=null;if("string"==typeof o?f=this._document.querySelector(o):"boolean"==typeof o?f=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(f=o),this._config.restoreFocus&&f&&"function"==typeof f.focus){const l=(0,A.ht)(),a=this._elementRef.nativeElement;(!l||l===this._document.body||l===a||a.contains(l))&&(this._focusMonitor?(this._focusMonitor.focusVia(f,this._closeInteractionType),this._closeInteractionType=null):f.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,f=(0,A.ht)();return o===f||o.contains(f)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(Q),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["cdk-dialog-container"]],viewQuery:function(o,f){if(1&o&&C.Gf(w.Pl,7),2&o){let l;C.iGM(l=C.CRH())&&(f._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(o,f){2&o&&C.uIk("id",f._config.id||null)("role",f._config.role)("aria-modal",f._config.ariaModal)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null)},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,f){1&o&&C.YNc(0,z,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),H})();class ee{constructor(i,o){this.overlayRef=i,this.config=o,this.closed=new E.x,this.disableClose=o.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(f=>{f.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(f)&&(f.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(i,o){if(this.containerInstance){const f=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this.overlayRef.dispose(),f.next(i),f.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",o=""){return this.overlayRef.updateSize({width:i,height:o}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const le=new C.OlP("DialogScrollStrategy"),de=new C.OlP("DialogData"),Te=new C.OlP("DefaultDialogConfig"),L={provide:le,deps:[c.aV],useFactory:function v(H){return()=>H.scrollStrategies.block()}};let B=0,W=(()=>{class H{constructor(o,f,l,a,n,t){this._overlay=o,this._injector=f,this._defaultOptions=l,this._parentDialog=a,this._overlayContainer=n,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(o,f){(f={...this._defaultOptions||new Q,...f}).id=f.id||"cdk-dialog-"+B++,f.id&&this.getDialogById(f.id);const a=this._getOverlayConfig(f),n=this._overlay.create(a),t=new ee(n,f),r=this._attachContainer(n,t,f);return t.containerInstance=r,this._attachDialogContent(o,t,r,f),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){q(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(f=>f.id===o)}ngOnDestroy(){q(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),q(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const f=new c.X_({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(f.backdropClass=o.backdropClass),f}_attachContainer(o,f,l){var a,n;const t=null!==(a=l.injector)&&void 0!==a?a:null===(n=l.viewContainerRef)||void 0===n?void 0:n.injector,r=[{provide:Q,useValue:l},{provide:ee,useValue:f},{provide:c.Iu,useValue:o}];let s;l.container?"function"==typeof l.container?s=l.container:(s=l.container.type,r.push(...l.container.providers(l))):s=oe;const d=new w.C5(s,l.viewContainerRef,C.zs3.create({parent:t||this._injector,providers:r}),l.componentFactoryResolver);return o.attach(d).instance}_attachDialogContent(o,f,l,a){const n=this._createInjector(a,f,l);if(o instanceof C.Rgc){let t={$implicit:a.data,dialogRef:f};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),l.attachTemplatePortal(new w.UE(o,null,t,n))}else{const t=l.attachComponentPortal(new w.C5(o,a.viewContainerRef,n,a.componentFactoryResolver));f.componentInstance=t.instance}}_createInjector(o,f,l){const a=o&&o.viewContainerRef&&o.viewContainerRef.injector,n=[{provide:de,useValue:o.data},{provide:ee,useValue:f}];return o.providers&&("function"==typeof o.providers?n.push(...o.providers(f,o,l)):n.push(...o.providers)),o.direction&&(!a||!a.get(_.Is,null,C.XFs.Optional))&&n.push({provide:_.Is,useValue:{value:o.direction,change:(0,U.of)()}}),C.zs3.create({parent:o.injector||a||this._injector,providers:n})}_removeOpenDialog(o,f){const l=this.openDialogs.indexOf(o);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,n)=>{a?n.setAttribute("aria-hidden",a):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),f&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const f=o.parentElement.children;for(let l=f.length-1;l>-1;l--){const a=f[l];a!==o&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return H.\u0275fac=function(o){return new(o||H)(C.LFG(c.aV),C.LFG(C.zs3),C.LFG(Te,8),C.LFG(H,12),C.LFG(c.Xj),C.LFG(le))},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})();function q(H,i){let o=H.length;for(;o--;)i(H[o])}let ue=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=C.oAB({type:H}),H.\u0275inj=C.cJS({providers:[W,L],imports:[c.U8,w.eL,e.rt,w.eL]}),H})();var ye=h(3238),Me=h(56451),we=h(39300),Ge=h(95698),ce=h(37340);function Ze(H,i){}const he={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},xe={dialogContainer:(0,ce.X$)("dialogContainer",[(0,ce.SB)("void, exit",(0,ce.oB)({opacity:0,transform:"scale(0.7)"})),(0,ce.SB)("enter",(0,ce.oB)({transform:"none"})),(0,ce.eR)("* => enter",(0,ce.ru)([(0,ce.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({transform:"none",opacity:1})),(0,ce.IO)("@*",(0,ce.pV)(),{optional:!0})]),he),(0,ce.eR)("* => void, * => exit",(0,ce.ru)([(0,ce.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ce.oB)({opacity:0})),(0,ce.IO)("@*",(0,ce.pV)(),{optional:!0})]),he)])};class j{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=he.params.enterAnimationDuration,this.exitAnimationDuration=he.params.exitAnimationDuration}}let R=(()=>{class H extends oe{constructor(o,f,l,a,n,t,r,s){super(o,f,l,a,n,t,r,s),this._animationStateChanged=new C.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["ng-component"]],features:[C.qOj],decls:0,vars:0,template:function(o,f){},encapsulation:2}),H})(),G=(()=>{class H extends R{constructor(o,f,l,a,n,t,r,s,d){super(o,f,l,a,n,t,r,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:o,totalTime:f}){"enter"===o?this._openAnimationDone(f):"exit"===o&&this._animationStateChanged.next({state:"closed",totalTime:f})}_onAnimationStart({toState:o,totalTime:f}){"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:f}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:f})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||he.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||he.params.exitAnimationDuration}}}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(C.sBO),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(o,f){1&o&&C.WFA("@dialogContainer.start",function(a){return f._onAnimationStart(a)})("@dialogContainer.done",function(a){return f._onAnimationDone(a)}),2&o&&(C.Ikx("id",f._config.id),C.uIk("aria-modal",f._config.ariaModal)("role",f._config.role)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null),C.d8E("@dialogContainer",f._getAnimationState()))},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,f){1&o&&C.YNc(0,Ze,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[xe.dialogContainer]}}),H})();class se{constructor(i,o,f){this._ref=i,this._containerInstance=f,this._afterOpened=new E.x,this._beforeClosed=new E.x,this._state=0,this.disableClose=o.disableClose,this.id=i.id,f._animationStateChanged.pipe((0,we.h)(l=>"opened"===l.state),(0,Ge.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),f._animationStateChanged.pipe((0,we.h)(l=>"closed"===l.state),(0,Ge.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Me.T)(this.backdropClick(),this.keydownEvents().pipe((0,we.h)(l=>l.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function $(H,i,o){H._closeInteractionType=i,H.close(o)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe((0,we.h)(o=>"closing"===o.state),(0,Ge.q)(1)).subscribe(o=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let o=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?o.left(i.left):o.right(i.right):o.centerHorizontally(),i&&(i.top||i.bottom)?i.top?o.top(i.top):o.bottom(i.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",o=""){return this._ref.updateSize(i,o),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Ee=new C.OlP("MatDialogData"),Oe=new C.OlP("mat-dialog-default-options"),ct=new C.OlP("mat-dialog-scroll-strategy"),Je={provide:ct,deps:[c.aV],useFactory:function _t(H){return()=>H.scrollStrategies.block()}};let gt=0,Y=(()=>{class H{constructor(o,f,l,a,n,t,r,s,d,p){this._overlay=o,this._defaultOptions=l,this._parentDialog=a,this._dialogRefConstructor=r,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t,this._dialog=f.get(W)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(o,f){let l;(f={...this._defaultOptions||new j,...f}).id=f.id||`${this._idPrefix}${gt++}`,f.scrollStrategy=f.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(o,{...f,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:j,useValue:f},{provide:Q,useValue:f}]},templateContext:()=>({dialogRef:l}),providers:(n,t,r)=>{var s;return l=new this._dialogRefConstructor(n,f,r),l.updatePosition(null===(s=f)||void 0===s?void 0:s.position),[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:l}]}});return l.componentInstance=a.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const n=this.openDialogs.indexOf(l);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(f=>f.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let f=o.length;for(;f--;)o[f].close()}}return H.\u0275fac=function(o){C.$Z()},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})(),Ce=(()=>{class H extends Y{constructor(o,f,l,a,n,t,r,s){super(o,f,a,t,r,n,se,G,Ee,s)}}return H.\u0275fac=function(o){return new(o||H)(C.LFG(c.aV),C.LFG(C.zs3),C.LFG(g.Ye,8),C.LFG(Oe,8),C.LFG(ct),C.LFG(H,12),C.LFG(c.Xj),C.LFG(C.QbO,8))},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})(),ae=0,Se=(()=>{class H{constructor(o,f,l){this._dialogRef=o,this._elementRef=f,this._dialog=l,this.id="mat-dialog-title-"+ae++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ue(H,i){let o=H.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-dialog-container");)o=o.parentElement;return o?i.find(f=>f.id===o.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const o=this._dialogRef._containerInstance;o&&!o._ariaLabelledBy&&(o._ariaLabelledBy=this.id)})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(se,8),C.Y36(C.SBq),C.Y36(Ce))},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(o,f){2&o&&C.Ikx("id",f.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),H})(),Fe=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),H})(),be=(()=>{class H{constructor(){this.align="start"}}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(o,f){2&o&&C.ekj("mat-dialog-actions-align-center","center"===f.align)("mat-dialog-actions-align-end","end"===f.align)},inputs:{align:"align"}}),H})(),P=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=C.oAB({type:H}),H.\u0275inj=C.cJS({providers:[Ce,Je],imports:[ue,c.U8,w.eL,ye.BQ,ye.BQ]}),H})()},44850:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>w,t:()=>g});var e=h(94650),c=h(21281),A=h(3238);let w=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,c.Ig)(E)}get inset(){return this._inset}set inset(E){this._inset=(0,c.Ig)(E)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(E,S){2&E&&(e.uIk("aria-orientation",S.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",S.vertical)("mat-divider-horizontal",!S.vertical)("mat-divider-inset",S.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(E,S){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),C})(),g=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),C})()},37084:(Ye,pe,h)=>{"use strict";h.d(pe,{pp:()=>Je,To:()=>gt,ib:()=>se,HS:()=>j,u4:()=>Xe,yz:()=>ct,yK:()=>_t});var e=h(94650),c=h(95017),A=h(21281),w=h(77579),g=h(50727);let C=0;const T=new e.OlP("CdkAccordion");let E=(()=>{class Y{constructor(){this._stateChanges=new w.x,this._openCloseAllActions=new w.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(ae){this._multi=(0,A.Ig)(ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ae){this._stateChanges.next(ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:T,useExisting:Y}]),e.TTD]}),Y})(),S=0,U=(()=>{class Y{constructor(ae,re,Se){this.accordion=ae,this._changeDetectorRef=re,this._expansionDispatcher=Se,this._openCloseAllSubscription=g.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+S++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Se.listen((Fe,be)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===be&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ae){ae=(0,A.Ig)(ae),this._expanded!==ae&&(this._expanded=ae,this.expandedChange.emit(ae),ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,A.Ig)(ae)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(ae=>{this.disabled||(this.expanded=ae)})}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(T,12),e.Y36(e.sBO),e.Y36(c.A8))},Y.\u0275dir=e.lG2({type:Y,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:T,useValue:void 0}])]}),Y})(),_=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({}),Y})();var V=h(84080),z=h(36895),Q=h(3238),te=h(12687),oe=h(71884),ee=h(68675),le=h(39300),de=h(95698),Te=h(29521),v=h(60515),L=h(56451),B=h(37340);const W=["body"];function q(Y,Ce){}const ue=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function Me(Y,Ce){if(1&Y&&e._UZ(0,"span",2),2&Y){const ae=e.oxw();e.Q6J("@indicatorRotate",ae._getExpandedState())}}const we=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ge=["mat-panel-title","mat-panel-description","*"],ce=new e.OlP("MAT_ACCORDION"),Ze="225ms cubic-bezier(0.4,0.0,0.2,1)",he={indicatorRotate:(0,B.X$)("indicatorRotate",[(0,B.SB)("collapsed, void",(0,B.oB)({transform:"rotate(0deg)"})),(0,B.SB)("expanded",(0,B.oB)({transform:"rotate(180deg)"})),(0,B.eR)("expanded <=> collapsed, void => collapsed",(0,B.jt)(Ze))]),bodyExpansion:(0,B.X$)("bodyExpansion",[(0,B.SB)("collapsed, void",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("expanded",(0,B.oB)({height:"*",visibility:"visible"})),(0,B.eR)("expanded <=> collapsed, void => collapsed",(0,B.jt)(Ze))])},xe=new e.OlP("MAT_EXPANSION_PANEL");let j=(()=>{class Y{constructor(ae,re){this._template=ae,this._expansionPanel=re}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(e.Rgc),e.Y36(xe,8))},Y.\u0275dir=e.lG2({type:Y,selectors:[["ng-template","matExpansionPanelContent",""]]}),Y})(),R=0;const G=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let se=(()=>{class Y extends U{constructor(ae,re,Se,Fe,be,Ue,P){super(ae,re,Se),this._viewContainerRef=Fe,this._animationMode=Ue,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new w.x,this._headerId="mat-expansion-panel-header-"+R++,this._bodyAnimationDone=new w.x,this.accordion=ae,this._document=be,this._bodyAnimationDone.pipe((0,oe.x)((H,i)=>H.fromState===i.fromState&&H.toState===i.toState)).subscribe(H=>{"void"!==H.fromState&&("expanded"===H.toState?this.afterExpand.emit():"collapsed"===H.toState&&this.afterCollapse.emit())}),P&&(this.hideToggle=P.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ae){this._hideToggle=(0,A.Ig)(ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ae){this._togglePosition=ae}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ee.O)(null),(0,le.h)(()=>this.expanded&&!this._portal),(0,de.q)(1)).subscribe(()=>{this._portal=new V.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ae){this._inputChanges.next(ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ae=this._document.activeElement,re=this._body.nativeElement;return ae===re||re.contains(ae)}return!1}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(ce,12),e.Y36(e.sBO),e.Y36(c.A8),e.Y36(e.s_b),e.Y36(z.K0),e.Y36(e.QbO,8),e.Y36(G,8))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-expansion-panel"]],contentQueries:function(ae,re,Se){if(1&ae&&e.Suo(Se,j,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(re._lazyContent=Fe.first)}},viewQuery:function(ae,re){if(1&ae&&e.Gf(W,5),2&ae){let Se;e.iGM(Se=e.CRH())&&(re._body=Se.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ae,re){2&ae&&e.ekj("mat-expanded",re.expanded)("_mat-animation-noopable","NoopAnimations"===re._animationMode)("mat-expansion-panel-spacing",re._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:ce,useValue:void 0},{provide:xe,useExisting:Y}]),e.qOj,e.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ae,re){1&ae&&(e.F$t(ue),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Fe){return re._bodyAnimationDone.next(Fe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,q,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&ae&&(e.xp6(1),e.Q6J("@bodyExpansion",re._getExpandedState())("id",re.id),e.uIk("aria-labelledby",re._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",re._portal))},dependencies:[V.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[he.bodyExpansion]},changeDetection:0}),Y})();class Ee{}const Oe=(0,Q.sb)(Ee);let ct=(()=>{class Y extends Oe{constructor(ae,re,Se,Fe,be,Ue,P){super(),this.panel=ae,this._element=re,this._focusMonitor=Se,this._changeDetectorRef=Fe,this._animationMode=Ue,this._parentChangeSubscription=g.w0.EMPTY;const H=ae.accordion?ae.accordion._stateChanges.pipe((0,le.h)(i=>!(!i.hideToggle&&!i.togglePosition))):v.E;this.tabIndex=parseInt(P||"")||0,this._parentChangeSubscription=(0,L.T)(ae.opened,ae.closed,H,ae._inputChanges.pipe((0,le.h)(i=>!!(i.hideToggle||i.disabled||i.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ae.closed.pipe((0,le.h)(()=>ae._containsFocus())).subscribe(()=>Se.focusVia(re,"program")),be&&(this.expandedHeight=be.expandedHeight,this.collapsedHeight=be.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const ae=this._isExpanded();return ae&&this.expandedHeight?this.expandedHeight:!ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ae){switch(ae.keyCode){case Te.L_:case Te.K5:(0,Te.Vb)(ae)||(ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ae))}}focus(ae,re){ae?this._focusMonitor.focusVia(this._element,ae,re):this._element.nativeElement.focus(re)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ae=>{ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(se,1),e.Y36(e.SBq),e.Y36(te.tE),e.Y36(e.sBO),e.Y36(G,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ae,re){1&ae&&e.NdJ("click",function(){return re._toggle()})("keydown",function(Fe){return re._keydown(Fe)}),2&ae&&(e.uIk("id",re.panel._headerId)("tabindex",re.tabIndex)("aria-controls",re._getPanelId())("aria-expanded",re._isExpanded())("aria-disabled",re.panel.disabled),e.Udp("height",re._getHeaderHeight()),e.ekj("mat-expanded",re._isExpanded())("mat-expansion-toggle-indicator-after","after"===re._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===re._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===re._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Ge,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ae,re){1&ae&&(e.F$t(we),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Me,1,1,"span",1)),2&ae&&(e.xp6(4),e.Q6J("ngIf",re._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[he.indicatorRotate]},changeDetection:0}),Y})(),Xe=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Y})(),_t=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Y})(),Je=(()=>{class Y extends E{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ae){this._hideToggle=(0,A.Ig)(ae)}ngAfterContentInit(){this._headers.changes.pipe((0,ee.O)(this._headers)).subscribe(ae=>{this._ownHeaders.reset(ae.filter(re=>re.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new te.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ae){this._keyManager.onKeydown(ae)}_handleHeaderFocus(ae){this._keyManager.updateActiveItem(ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=e.n5z(Y)))(re||Y)}}(),Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-accordion"]],contentQueries:function(ae,re,Se){if(1&ae&&e.Suo(Se,ct,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(re._headers=Fe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ae,re){2&ae&&e.ekj("mat-accordion-multi",re.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:ce,useExisting:Y}]),e.qOj]}),Y})(),gt=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[z.ez,Q.BQ,_,V.eL]}),Y})()},59549:(Ye,pe,h)=>{"use strict";h.d(pe,{Eo:()=>j,G_:()=>be,KE:()=>Ue,R9:()=>Y,TO:()=>he,UY:()=>Xe,bx:()=>Oe,hX:()=>ct,lN:()=>P});var e=h(49643),c=h(36895),A=h(94650),w=h(3238),g=h(40445),C=h(21281),T=h(77579),E=h(56451),S=h(54968),U=h(68675),_=h(82722),V=h(95698),z=h(37340),Q=h(83353);const te=["connectionContainer"],oe=["inputContainer"],ee=["label"];function le(H,i){1&H&&(A.ynx(0),A.TgZ(1,"div",14),A._UZ(2,"div",15)(3,"div",16)(4,"div",17),A.qZA(),A.TgZ(5,"div",18),A._UZ(6,"div",15)(7,"div",16)(8,"div",17),A.qZA(),A.BQk())}function de(H,i){if(1&H){const o=A.EpF();A.TgZ(0,"div",19),A.NdJ("cdkObserveContent",function(){A.CHM(o);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.Hsn(1,1),A.qZA()}if(2&H){const o=A.oxw();A.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)}}function Te(H,i){if(1&H&&(A.ynx(0),A.Hsn(1,2),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.BQk()),2&H){const o=A.oxw(2);A.xp6(3),A.Oqu(o._control.placeholder)}}function v(H,i){1&H&&A.Hsn(0,3,["*ngSwitchCase","true"])}function L(H,i){1&H&&(A.TgZ(0,"span",23),A._uU(1," *"),A.qZA())}function B(H,i){if(1&H){const o=A.EpF();A.TgZ(0,"label",20,21),A.NdJ("cdkObserveContent",function(){A.CHM(o);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.YNc(2,Te,4,1,"ng-container",12),A.YNc(3,v,1,0,"ng-content",12),A.YNc(4,L,2,0,"span",22),A.qZA()}if(2&H){const o=A.oxw();A.ekj("mat-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-form-field-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-accent","accent"==o.color)("mat-warn","warn"==o.color),A.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)("id",o._labelId)("ngSwitch",o._hasLabel()),A.uIk("for",o._control.id)("aria-owns",o._control.id),A.xp6(2),A.Q6J("ngSwitchCase",!1),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngIf",!o.hideRequiredMarker&&o._control.required&&!o._control.disabled)}}function W(H,i){1&H&&(A.TgZ(0,"div",24),A.Hsn(1,4),A.qZA())}function q(H,i){if(1&H&&(A.TgZ(0,"div",25),A._UZ(1,"span",26),A.qZA()),2&H){const o=A.oxw();A.xp6(1),A.ekj("mat-accent","accent"==o.color)("mat-warn","warn"==o.color)}}function ue(H,i){if(1&H&&(A.TgZ(0,"div"),A.Hsn(1,5),A.qZA()),2&H){const o=A.oxw();A.Q6J("@transitionMessages",o._subscriptAnimationState)}}function ye(H,i){if(1&H&&(A.TgZ(0,"div",30),A._uU(1),A.qZA()),2&H){const o=A.oxw(2);A.Q6J("id",o._hintLabelId),A.xp6(1),A.Oqu(o.hintLabel)}}function Me(H,i){if(1&H&&(A.TgZ(0,"div",27),A.YNc(1,ye,2,2,"div",28),A.Hsn(2,6),A._UZ(3,"div",29),A.Hsn(4,7),A.qZA()),2&H){const o=A.oxw();A.Q6J("@transitionMessages",o._subscriptAnimationState),A.xp6(1),A.Q6J("ngIf",o.hintLabel)}}const we=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ge=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ce=0;const Ze=new A.OlP("MatError");let he=(()=>{class H{constructor(o,f){this.id="mat-error-"+ce++,o||f.nativeElement.setAttribute("aria-live","polite")}}return H.\u0275fac=function(o){return new(o||H)(A.$8M("aria-live"),A.Y36(A.SBq))},H.\u0275dir=A.lG2({type:H,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(o,f){2&o&&A.uIk("id",f.id)},inputs:{id:"id"},features:[A._Bn([{provide:Ze,useExisting:H}])]}),H})();const xe={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H}),H})(),$=0;const Ee=new A.OlP("MatHint");let Oe=(()=>{class H{constructor(){this.align="start",this.id="mat-hint-"+$++}}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(o,f){2&o&&(A.uIk("id",f.id)("align",null),A.ekj("mat-form-field-hint-end","end"===f.align))},inputs:{align:"align",id:"id"},features:[A._Bn([{provide:Ee,useExisting:H}])]}),H})(),ct=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-label"]]}),H})(),Xe=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-placeholder"]]}),H})();const _t=new A.OlP("MatPrefix"),gt=new A.OlP("MatSuffix");let Y=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["","matSuffix",""]],features:[A._Bn([{provide:gt,useExisting:H}])]}),H})(),Ce=0;const Se=(0,w.pj)(class{constructor(H){this._elementRef=H}},"primary"),Fe=new A.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),be=new A.OlP("MatFormField");let Ue=(()=>{class H extends Se{constructor(o,f,l,a,n,t,r){super(o),this._changeDetectorRef=f,this._dir=l,this._defaults=a,this._platform=n,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new T.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ce++,this._labelId="mat-form-field-label-"+Ce++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(o){var f;const l=this._appearance;this._appearance=o||(null===(f=this._defaults)||void 0===f?void 0:f.appearance)||"legacy","outline"===this._appearance&&l!==o&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(o){this._hideRequiredMarker=(0,C.Ig)(o)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(o){this._hintLabel=o,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(o){o!==this._floatLabel&&(this._floatLabel=o||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(o){this._explicitFormFieldControl=o}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${o.controlType}`),o.stateChanges.pipe((0,U.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe((0,_.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,_.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,U.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,U.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,_.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(o){const f=this._control?this._control.ngControl:null;return f&&f[o]}_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,S.R)(this._label.nativeElement,"transitionend").pipe((0,V.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 o=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&o.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const f=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,l=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;f?o.push(f.id):this._hintLabel&&o.push(this._hintLabelId),l&&o.push(l.id)}else this._errorChildren&&o.push(...this._errorChildren.map(f=>f.id));this._control.setDescribedByIds(o)}}_validateControlChild(){}updateOutlineGap(){const o=this._label?this._label.nativeElement:null,f=this._connectionContainerRef.nativeElement,l=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!o||!o.children.length||!o.textContent.trim()){const d=f.querySelectorAll(`${l}, ${a}`);for(let p=0;p0?.75*bt+10:0}for(let d=0;d{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=A.oAB({type:H}),H.\u0275inj=A.cJS({imports:[c.ez,w.BQ,e.Q8,w.BQ]}),H})()},97392:(Ye,pe,h)=>{"use strict";h.d(pe,{Hw:()=>$,Ps:()=>Ee,jv:()=>ue});var e=h(94650),c=h(3238),A=h(21281),w=h(36895),g=h(39646),C=h(62843),T=h(4128),E=h(50727),S=h(18505),U=h(54004),_=h(70262),V=h(28746),z=h(13099),Q=h(95698),te=h(80529),oe=h(11481);const ee=["*"];let le;function Te(Oe){var ct;return(null===(ct=function de(){if(void 0===le&&(le=null,typeof window<"u")){const Oe=window;void 0!==Oe.trustedTypes&&(le=Oe.trustedTypes.createPolicy("angular#components",{createHTML:ct=>ct}))}return le}())||void 0===ct?void 0:ct.createHTML(Oe))||Oe}function v(Oe){return Error(`Unable to find icon with the name "${Oe}"`)}function B(Oe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Oe}".`)}function W(Oe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Oe}".`)}class q{constructor(ct,Xe,_t){this.url=ct,this.svgText=Xe,this.options=_t}}let ue=(()=>{class Oe{constructor(Xe,_t,Je,gt){this._httpClient=Xe,this._sanitizer=_t,this._errorHandler=gt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Je}addSvgIcon(Xe,_t,Je){return this.addSvgIconInNamespace("",Xe,_t,Je)}addSvgIconLiteral(Xe,_t,Je){return this.addSvgIconLiteralInNamespace("",Xe,_t,Je)}addSvgIconInNamespace(Xe,_t,Je,gt){return this._addSvgIconConfig(Xe,_t,new q(Je,null,gt))}addSvgIconResolver(Xe){return this._resolvers.push(Xe),this}addSvgIconLiteralInNamespace(Xe,_t,Je,gt){const Y=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!Y)throw W(Je);const Ce=Te(Y);return this._addSvgIconConfig(Xe,_t,new q("",Ce,gt))}addSvgIconSet(Xe,_t){return this.addSvgIconSetInNamespace("",Xe,_t)}addSvgIconSetLiteral(Xe,_t){return this.addSvgIconSetLiteralInNamespace("",Xe,_t)}addSvgIconSetInNamespace(Xe,_t,Je){return this._addSvgIconSetConfig(Xe,new q(_t,null,Je))}addSvgIconSetLiteralInNamespace(Xe,_t,Je){const gt=this._sanitizer.sanitize(e.q3G.HTML,_t);if(!gt)throw W(_t);const Y=Te(gt);return this._addSvgIconSetConfig(Xe,new q("",Y,Je))}registerFontClassAlias(Xe,_t=Xe){return this._fontCssClassesByAlias.set(Xe,_t),this}classNameForFontAlias(Xe){return this._fontCssClassesByAlias.get(Xe)||Xe}setDefaultFontSetClass(...Xe){return this._defaultFontSetClass=Xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Xe){const _t=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Xe);if(!_t)throw B(Xe);const Je=this._cachedIconsByUrl.get(_t);return Je?(0,g.of)(we(Je)):this._loadSvgIconFromConfig(new q(Xe,null)).pipe((0,S.b)(gt=>this._cachedIconsByUrl.set(_t,gt)),(0,U.U)(gt=>we(gt)))}getNamedSvgIcon(Xe,_t=""){const Je=Ge(_t,Xe);let gt=this._svgIconConfigs.get(Je);if(gt)return this._getSvgFromConfig(gt);if(gt=this._getIconConfigFromResolvers(_t,Xe),gt)return this._svgIconConfigs.set(Je,gt),this._getSvgFromConfig(gt);const Y=this._iconSetConfigs.get(_t);return Y?this._getSvgFromIconSetConfigs(Xe,Y):(0,C._)(v(Je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Xe){return Xe.svgText?(0,g.of)(we(this._svgElementFromConfig(Xe))):this._loadSvgIconFromConfig(Xe).pipe((0,U.U)(_t=>we(_t)))}_getSvgFromIconSetConfigs(Xe,_t){const Je=this._extractIconWithNameFromAnySet(Xe,_t);if(Je)return(0,g.of)(Je);const gt=_t.filter(Y=>!Y.svgText).map(Y=>this._loadSvgIconSetFromConfig(Y).pipe((0,_.K)(Ce=>{const re=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Y.url)} failed: ${Ce.message}`;return this._errorHandler.handleError(new Error(re)),(0,g.of)(null)})));return(0,T.D)(gt).pipe((0,U.U)(()=>{const Y=this._extractIconWithNameFromAnySet(Xe,_t);if(!Y)throw v(Xe);return Y}))}_extractIconWithNameFromAnySet(Xe,_t){for(let Je=_t.length-1;Je>=0;Je--){const gt=_t[Je];if(gt.svgText&>.svgText.toString().indexOf(Xe)>-1){const Y=this._svgElementFromConfig(gt),Ce=this._extractSvgIconFromSet(Y,Xe,gt.options);if(Ce)return Ce}}return null}_loadSvgIconFromConfig(Xe){return this._fetchIcon(Xe).pipe((0,S.b)(_t=>Xe.svgText=_t),(0,U.U)(()=>this._svgElementFromConfig(Xe)))}_loadSvgIconSetFromConfig(Xe){return Xe.svgText?(0,g.of)(null):this._fetchIcon(Xe).pipe((0,S.b)(_t=>Xe.svgText=_t))}_extractSvgIconFromSet(Xe,_t,Je){const gt=Xe.querySelector(`[id="${_t}"]`);if(!gt)return null;const Y=gt.cloneNode(!0);if(Y.removeAttribute("id"),"svg"===Y.nodeName.toLowerCase())return this._setSvgAttributes(Y,Je);if("symbol"===Y.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Y),Je);const Ce=this._svgElementFromString(Te(""));return Ce.appendChild(Y),this._setSvgAttributes(Ce,Je)}_svgElementFromString(Xe){const _t=this._document.createElement("DIV");_t.innerHTML=Xe;const Je=_t.querySelector("svg");if(!Je)throw Error(" tag not found");return Je}_toSvgElement(Xe){const _t=this._svgElementFromString(Te("")),Je=Xe.attributes;for(let gt=0;gtTe(Se)),(0,V.x)(()=>this._inProgressUrlFetches.delete(Ce)),(0,z.B)());return this._inProgressUrlFetches.set(Ce,re),re}_addSvgIconConfig(Xe,_t,Je){return this._svgIconConfigs.set(Ge(Xe,_t),Je),this}_addSvgIconSetConfig(Xe,_t){const Je=this._iconSetConfigs.get(Xe);return Je?Je.push(_t):this._iconSetConfigs.set(Xe,[_t]),this}_svgElementFromConfig(Xe){if(!Xe.svgElement){const _t=this._svgElementFromString(Xe.svgText);this._setSvgAttributes(_t,Xe.options),Xe.svgElement=_t}return Xe.svgElement}_getIconConfigFromResolvers(Xe,_t){for(let Je=0;Ject?ct.pathname+ct.search:""}}}),R=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],G=R.map(Oe=>`[${Oe}]`).join(", "),se=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class Oe extends Ze{constructor(Xe,_t,Je,gt,Y,Ce){super(Xe),this._iconRegistry=_t,this._location=gt,this._errorHandler=Y,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.w0.EMPTY,Ce&&(Ce.color&&(this.color=this.defaultColor=Ce.color),Ce.fontSet&&(this.fontSet=Ce.fontSet)),Je||Xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Xe){this._inline=(0,A.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 _t=this._cleanupFontValue(Xe);_t!==this._fontSet&&(this._fontSet=_t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Xe){const _t=this._cleanupFontValue(Xe);_t!==this._fontIcon&&(this._fontIcon=_t,this._updateFontIconClasses())}_splitIconName(Xe){if(!Xe)return["",""];const _t=Xe.split(":");switch(_t.length){case 1:return["",_t[0]];case 2:return _t;default:throw Error(`Invalid icon name: "${Xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Xe=this._elementsWithExternalReferences;if(Xe&&Xe.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(Xe){this._clearSvgElement();const _t=this._location.getPathname();this._previousPath=_t,this._cacheChildrenWithExternalReferences(Xe),this._prependPathToReferences(_t),this._elementRef.nativeElement.appendChild(Xe)}_clearSvgElement(){const Xe=this._elementRef.nativeElement;let _t=Xe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();_t--;){const Je=Xe.childNodes[_t];(1!==Je.nodeType||"svg"===Je.nodeName.toLowerCase())&&Je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Xe=this._elementRef.nativeElement,_t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Je=>Je.length>0);this._previousFontSetClass.forEach(Je=>Xe.classList.remove(Je)),_t.forEach(Je=>Xe.classList.add(Je)),this._previousFontSetClass=_t,this.fontIcon!==this._previousFontIconClass&&!_t.includes("mat-ligature-font")&&(this._previousFontIconClass&&Xe.classList.remove(this._previousFontIconClass),this.fontIcon&&Xe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Xe){return"string"==typeof Xe?Xe.trim().split(" ")[0]:Xe}_prependPathToReferences(Xe){const _t=this._elementsWithExternalReferences;_t&&_t.forEach((Je,gt)=>{Je.forEach(Y=>{gt.setAttribute(Y.name,`url('${Xe}#${Y.value}')`)})})}_cacheChildrenWithExternalReferences(Xe){const _t=Xe.querySelectorAll(G),Je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let gt=0;gt<_t.length;gt++)R.forEach(Y=>{const Ce=_t[gt],ae=Ce.getAttribute(Y),re=ae?ae.match(se):null;if(re){let Se=Je.get(Ce);Se||(Se=[],Je.set(Ce,Se)),Se.push({name:Y,value:re[1]})}})}_updateSvgIcon(Xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Xe){const[_t,Je]=this._splitIconName(Xe);_t&&(this._svgNamespace=_t),Je&&(this._svgName=Je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Je,_t).pipe((0,Q.q)(1)).subscribe(gt=>this._setSvgElement(gt),gt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${_t}:${Je}! ${gt.message}`))})}}}return Oe.\u0275fac=function(Xe){return new(Xe||Oe)(e.Y36(e.SBq),e.Y36(ue),e.$8M("aria-hidden"),e.Y36(xe),e.Y36(e.qLn),e.Y36(he,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Xe,_t){2&Xe&&(e.uIk("data-mat-icon-type",_t._usingFontIcon()?"font":"svg")("data-mat-icon-name",_t._svgName||_t.fontIcon)("data-mat-icon-namespace",_t._svgNamespace||_t.fontSet),e.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:[e.qOj],ngContentSelectors:ee,decls:1,vars:0,template:function(Xe,_t){1&Xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Oe})(),Ee=(()=>{class Oe{}return Oe.\u0275fac=function(Xe){return new(Xe||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({imports:[c.BQ,c.BQ]}),Oe})()},284:(Ye,pe,h)=>{"use strict";h.d(pe,{Jk:()=>U,Nt:()=>Q,c:()=>te});var e=h(21281),c=h(83353),A=h(39349),w=h(94650),g=h(24006),C=h(3238),T=h(59549),E=h(77579);const U=new w.OlP("MAT_INPUT_VALUE_ACCESSOR"),_=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let V=0;const z=(0,C.FD)(class{constructor(oe,ee,le,de){this._defaultErrorStateMatcher=oe,this._parentForm=ee,this._parentFormGroup=le,this.ngControl=de,this.stateChanges=new E.x}});let Q=(()=>{class oe extends z{constructor(le,de,Te,v,L,B,W,q,ue,ye){super(B,v,L,Te),this._elementRef=le,this._platform=de,this._autofillMonitor=q,this._formField=ye,this._uid="mat-input-"+V++,this.focused=!1,this.stateChanges=new E.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Ge=>(0,c.qK)().has(Ge)),this._iOSKeyupListener=Ge=>{const ce=Ge.target;!ce.value&&0===ce.selectionStart&&0===ce.selectionEnd&&(ce.setSelectionRange(1,1),ce.setSelectionRange(0,0))};const Me=this._elementRef.nativeElement,we=Me.nodeName.toLowerCase();this._inputValueAccessor=W||Me,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&ue.runOutsideAngular(()=>{le.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===we,this._isTextarea="textarea"===we,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=Me.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(le){this._disabled=(0,e.Ig)(le),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(le){this._id=le||this._uid}get required(){var le,de,Te,v;return null!==(le=null!==(de=this._required)&&void 0!==de?de:null===(Te=this.ngControl)||void 0===Te||null===(v=Te.control)||void 0===v?void 0:v.hasValidator(g.kI.required))&&void 0!==le&&le}set required(le){this._required=(0,e.Ig)(le)}get type(){return this._type}set type(le){this._type=le||"text",this._validateType(),!this._isTextarea&&(0,c.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(le){le!==this.value&&(this._inputValueAccessor.value=le,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(le){this._readonly=(0,e.Ig)(le)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(le=>{this.autofilled=le.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(le){this._elementRef.nativeElement.focus(le)}_focusChanged(le){le!==this.focused&&(this.focused=le,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var le;const de=this._formField,Te=!de||"legacy"!==de.appearance||null!==(le=de._hasLabel)&&void 0!==le&&le.call(de)?this.placeholder:null;if(Te!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?v.setAttribute("placeholder",Te):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const le=this._elementRef.nativeElement.value;this._previousNativeValue!==le&&(this._previousNativeValue=le,this.stateChanges.next())}_validateType(){_.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let le=this._elementRef.nativeElement.validity;return le&&le.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const le=this._elementRef.nativeElement,de=le.options[0];return this.focused||le.multiple||!this.empty||!!(le.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(le){le.length?this._elementRef.nativeElement.setAttribute("aria-describedby",le.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const le=this._elementRef.nativeElement;return this._isNativeSelect&&(le.multiple||le.size>1)}}return oe.\u0275fac=function(le){return new(le||oe)(w.Y36(w.SBq),w.Y36(c.t4),w.Y36(g.a5,10),w.Y36(g.F,8),w.Y36(g.sg,8),w.Y36(C.rD),w.Y36(U,10),w.Y36(A.Lq),w.Y36(w.R0b),w.Y36(T.G_,8))},oe.\u0275dir=w.lG2({type:oe,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(le,de){1&le&&w.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&le&&(w.Ikx("disabled",de.disabled)("required",de.required),w.uIk("id",de.id)("data-placeholder",de.placeholder)("name",de.name||null)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),w.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._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:[w._Bn([{provide:T.Eo,useExisting:oe}]),w.qOj,w.TTD]}),oe})(),te=(()=>{class oe{}return oe.\u0275fac=function(le){return new(le||oe)},oe.\u0275mod=w.oAB({type:oe}),oe.\u0275inj=w.cJS({providers:[C.rD],imports:[A.Ky,T.lN,C.BQ,A.Ky,T.lN]}),oe})()},96338:(Ye,pe,h)=>{"use strict";h.d(pe,{Tg:()=>Ge,i$:()=>ue,ie:()=>G});var e=h(36895),c=h(94650),A=h(3238),w=h(21281),g=h(77579),C=h(82722),V=(h(68675),h(12687),h(95017),h(29521),h(24006),h(44850));const z=["*"],te=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],oe=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],v=(0,A.Id)((0,A.Kr)(class{})),L=(0,A.Kr)(class{}),B=new c.OlP("MatList"),W=new c.OlP("MatNavList");let ue=(()=>{class se extends v{constructor(Ee){super(),this._elementRef=Ee,this._stateChanges=new g.x,"action-list"===this._getListType()&&Ee.nativeElement.classList.add("mat-action-list")}_getListType(){const Ee=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Ee?"list":"mat-action-list"===Ee?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return se.\u0275fac=function(Ee){return new(Ee||se)(c.Y36(c.SBq))},se.\u0275cmp=c.Xpm({type:se,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[c._Bn([{provide:B,useExisting:se}]),c.qOj,c.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Ee,Oe){1&Ee&&(c.F$t(),c.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),se})(),ye=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275dir=c.lG2({type:se,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),se})(),Me=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275dir=c.lG2({type:se,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),se})(),Ge=(()=>{class se extends L{constructor(Ee,Oe,ct,Xe){super(),this._element=Ee,this._isInteractiveList=!1,this._destroyed=new g.x,this._disabled=!1,this._isInteractiveList=!!(ct||Xe&&"action-list"===Xe._getListType()),this._list=ct||Xe;const _t=this._getHostElement();"button"===_t.nodeName.toLowerCase()&&!_t.hasAttribute("type")&&_t.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{Oe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Ee){this._disabled=(0,w.Ig)(Ee)}ngAfterContentInit(){(0,A.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 se.\u0275fac=function(Ee){return new(Ee||se)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(W,8),c.Y36(B,8))},se.\u0275cmp=c.Xpm({type:se,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Ee,Oe,ct){if(1&Ee&&(c.Suo(ct,ye,5),c.Suo(ct,Me,5),c.Suo(ct,A.X2,5)),2&Ee){let Xe;c.iGM(Xe=c.CRH())&&(Oe._avatar=Xe.first),c.iGM(Xe=c.CRH())&&(Oe._icon=Xe.first),c.iGM(Xe=c.CRH())&&(Oe._lines=Xe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Ee,Oe){2&Ee&&c.ekj("mat-list-item-disabled",Oe.disabled)("mat-list-item-with-avatar",Oe._avatar||Oe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[c.qOj],ngContentSelectors:oe,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(Ee,Oe){1&Ee&&(c.F$t(te),c.TgZ(0,"span",0),c._UZ(1,"span",1),c.Hsn(2),c.TgZ(3,"span",2),c.Hsn(4,1),c.qZA(),c.Hsn(5,2),c.qZA()),2&Ee&&(c.xp6(1),c.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe._isRippleDisabled()))},dependencies:[A.wG],encapsulation:2,changeDetection:0}),se})(),G=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275mod=c.oAB({type:se}),se.\u0275inj=c.cJS({imports:[A.uc,A.si,A.BQ,A.us,e.ez,A.uc,A.BQ,A.us,V.t]}),se})()},28255:(Ye,pe,h)=>{"use strict";h.d(pe,{OP:()=>$,Tx:()=>Fe,VK:()=>_t,p6:()=>Se});var e=h(12687),c=h(21281),A=h(29521),w=h(94650),g=h(77579),C=h(50727),T=h(56451),E=h(39646),S=h(53101),U=h(68675),_=h(63900),V=h(95698),z=h(82722),Q=h(39300),te=h(91005),oe=h(37340),ee=h(84080),le=h(36895),de=h(3238),Te=h(40445),v=h(98184),L=h(83353),B=h(67376);const W=["mat-menu-item",""];function q(be,Ue){1&be&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ue=["*"];function ye(be,Ue){if(1&be){const P=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._handleKeydown(i))})("click",function(){w.CHM(P);const i=w.oxw();return w.KtG(i.closed.emit("click"))})("@transformMenu.start",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._onAnimationStart(i))})("@transformMenu.done",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._onAnimationDone(i))}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA()()}if(2&be){const P=w.oxw();w.Q6J("id",P.panelId)("ngClass",P._classList)("@transformMenu",P._panelAnimationState),w.uIk("aria-label",P.ariaLabel||null)("aria-labelledby",P.ariaLabelledby||null)("aria-describedby",P.ariaDescribedby||null)}}const Me={transformMenu:(0,oe.X$)("transformMenu",[(0,oe.SB)("void",(0,oe.oB)({opacity:0,transform:"scale(0.8)"})),(0,oe.eR)("void => enter",(0,oe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,oe.oB)({opacity:1,transform:"scale(1)"}))),(0,oe.eR)("* => void",(0,oe.jt)("100ms 25ms linear",(0,oe.oB)({opacity:0})))]),fadeInItems:(0,oe.X$)("fadeInItems",[(0,oe.SB)("showing",(0,oe.oB)({opacity:1})),(0,oe.eR)("void => *",[(0,oe.oB)({opacity:0}),(0,oe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ce=new w.OlP("MatMenuContent"),G=new w.OlP("MAT_MENU_PANEL"),se=(0,de.Kr)((0,de.Id)(class{}));let $=(()=>{class be extends se{constructor(P,H,i,o,f){var l;super(),this._elementRef=P,this._document=H,this._focusMonitor=i,this._parentMenu=o,this._changeDetectorRef=f,this.role="menuitem",this._hovered=new g.x,this._focused=new g.x,this._highlighted=!1,this._triggersSubmenu=!1,null==o||null===(l=o.addItem)||void 0===l||l.call(o,this)}focus(P,H){this._focusMonitor&&P?this._focusMonitor.focusVia(this._getHostElement(),P,H):this._getHostElement().focus(H),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(P){this.disabled&&(P.preventDefault(),P.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var P;const H=this._elementRef.nativeElement.cloneNode(!0),i=H.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class be{constructor(P,H,i,o){this._elementRef=P,this._ngZone=H,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=C.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.x,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-"+ct++}get xPosition(){return this._xPosition}set xPosition(P){this._xPosition=P,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(P){this._yPosition=P,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(P){this._overlapTrigger=(0,c.Ig)(P)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(P){this._hasBackdrop=(0,c.Ig)(P)}set panelClass(P){const H=this._previousPanelClass;H&&H.length&&H.split(" ").forEach(i=>{this._classList[i]=!1}),this._previousPanelClass=P,P&&P.length&&(P.split(" ").forEach(i=>{this._classList[i]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(P){this.panelClass=P}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,U.O)(this._directDescendantItems),(0,_.w)(P=>(0,T.T)(...P.map(H=>H._focused)))).subscribe(P=>this._keyManager.updateActiveItem(P)),this._directDescendantItems.changes.subscribe(P=>{var H;const i=this._keyManager;if("enter"===this._panelAnimationState&&null!==(H=i.activeItem)&&void 0!==H&&H._hasFocus()){const o=P.toArray(),f=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[f]&&!o[f].disabled?i.setActiveItem(f):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,_.w)(H=>(0,T.T)(...H.map(i=>i._hovered))))}addItem(P){}removeItem(P){}_handleKeydown(P){const H=P.keyCode,i=this._keyManager;switch(H){case A.hY:(0,A.Vb)(P)||(P.preventDefault(),this.closed.emit("keydown"));break;case A.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case A.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(H===A.LH||H===A.JH)&&i.setFocusOrigin("keyboard"),void i.onKeydown(P)}P.stopPropagation()}focusFirstItem(P="program"){this._ngZone.onStable.pipe((0,V.q)(1)).subscribe(()=>{let H=null;if(this._directDescendantItems.length&&(H=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!H||!H.contains(document.activeElement)){const i=this._keyManager;i.setFocusOrigin(P).setFirstItemActive(),!i.activeItem&&H&&H.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(P){const H=Math.min(this._baseElevation+P,24),i=`${this._elevationPrefix}${H}`,o=Object.keys(this._classList).find(f=>f.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}setPositionClasses(P=this.xPosition,H=this.yPosition){var i;const o=this._classList;o["mat-menu-before"]="before"===P,o["mat-menu-after"]="after"===P,o["mat-menu-above"]="above"===H,o["mat-menu-below"]="below"===H,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(P){this._animationDone.next(P),this._isAnimating=!1}_onAnimationStart(P){this._isAnimating=!0,"enter"===P.toState&&0===this._keyManager.activeItemIndex&&(P.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,U.O)(this._allItems)).subscribe(P=>{this._directDescendantItems.reset(P.filter(H=>H._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Ee),w.Y36(w.sBO))},be.\u0275dir=w.lG2({type:be,contentQueries:function(P,H,i){if(1&P&&(w.Suo(i,ce,5),w.Suo(i,$,5),w.Suo(i,$,4)),2&P){let o;w.iGM(o=w.CRH())&&(H.lazyContent=o.first),w.iGM(o=w.CRH())&&(H._allItems=o),w.iGM(o=w.CRH())&&(H.items=o)}},viewQuery:function(P,H){if(1&P&&w.Gf(w.Rgc,5),2&P){let i;w.iGM(i=w.CRH())&&(H.templateRef=i.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"}}),be})(),_t=(()=>{class be extends Xe{constructor(P,H,i,o){super(P,H,i,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Ee),w.Y36(w.sBO))},be.\u0275cmp=w.Xpm({type:be,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(P,H){2&P&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:G,useExisting:be}]),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(P,H){1&P&&(w.F$t(),w.YNc(0,ye,3,6,"ng-template"))},dependencies:[le.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Me.transformMenu,Me.fadeInItems]},changeDetection:0}),be})();const Je=new w.OlP("mat-menu-scroll-strategy"),Y={provide:Je,deps:[v.aV],useFactory:function gt(be){return()=>be.scrollStrategies.reposition()}},ae=(0,L.i$)({passive:!0});let re=(()=>{class be{constructor(P,H,i,o,f,l,a,n,t){this._overlay=P,this._element=H,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=a,this._focusMonitor=n,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=r=>{(0,e.yG)(r)||(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=o,this._parentMaterialMenu=f instanceof Xe?f:void 0,H.nativeElement.addEventListener("touchstart",this._handleTouchStart,ae),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(P){this.menu=P}get menu(){return this._menu}set menu(P){P!==this._menu&&(this._menu=P,this._menuCloseSubscription.unsubscribe(),P&&(this._menuCloseSubscription=P.close.subscribe(H=>{this._destroyMenu(H),("click"===H||"tab"===H)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(H)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ae),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const P=this.menu;if(this._menuOpen||!P)return;const H=this._createOverlay(P),i=H.getConfig(),o=i.positionStrategy;this._setPosition(P,o),i.hasBackdrop=P.hasBackdrop??!this.triggersSubmenu(),H.attach(this._getPortal(P)),P.lazyContent&&P.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(P),P instanceof Xe&&(P._startAnimation(),P._directDescendantItems.changes.pipe((0,z.R)(P.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){var P;null===(P=this.menu)||void 0===P||P.close.emit()}focus(P,H){this._focusMonitor&&P?this._focusMonitor.focusVia(this._element,P,H):this._element.nativeElement.focus(H)}updatePosition(){var P;null===(P=this._overlayRef)||void 0===P||P.updatePosition()}_destroyMenu(P){if(!this._overlayRef||!this.menuOpen)return;const H=this.menu;var i;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===P||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,H instanceof Xe?(H._resetAnimation(),H.lazyContent?H._animationDone.pipe((0,Q.h)(o=>"void"===o.toState),(0,V.q)(1),(0,z.R)(H.lazyContent._attached)).subscribe({next:()=>H.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==H||null===(i=H.lazyContent)||void 0===i||i.detach())}_initMenu(P){P.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,P.direction=this.dir,this._setMenuElevation(P),P.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(P){if(P.setElevation){let H=0,i=P.parentMenu;for(;i;)H++,i=i.parentMenu;P.setElevation(H)}}_setIsMenuOpen(P){this._menuOpen=P,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(P)}_createOverlay(P){if(!this._overlayRef){const H=this._getOverlayConfig(P);this._subscribeToPositions(P,H.positionStrategy),this._overlayRef=this._overlay.create(H),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(P){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:P.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:P.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(P,H){P.setPositionClasses&&H.positionChanges.subscribe(i=>{const o="start"===i.connectionPair.overlayX?"after":"before",f="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>P.setPositionClasses(o,f)):P.setPositionClasses(o,f)})}_setPosition(P,H){let[i,o]="before"===P.xPosition?["end","start"]:["start","end"],[f,l]="above"===P.yPosition?["bottom","top"]:["top","bottom"],[a,n]=[f,l],[t,r]=[i,o],s=0;if(this.triggersSubmenu()){if(r=i="before"===P.xPosition?"start":"end",o=t="end"===i?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const d=this._parentMaterialMenu.items.first;this._parentInnerPadding=d?d._getHostElement().offsetTop:0}s="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding}}else P.overlapTrigger||(a="top"===f?"bottom":"top",n="top"===l?"bottom":"top");H.withPositions([{originX:i,originY:a,overlayX:t,overlayY:f,offsetY:s},{originX:o,originY:a,overlayX:r,overlayY:f,offsetY:s},{originX:i,originY:n,overlayX:t,overlayY:l,offsetY:-s},{originX:o,originY:n,overlayX:r,overlayY:l,offsetY:-s}])}_menuClosingActions(){const P=this._overlayRef.backdropClick(),H=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,E.of)(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Q.h)(f=>f!==this._menuItemInstance),(0,Q.h)(()=>this._menuOpen)):(0,E.of)();return(0,T.T)(P,i,o,H)}_handleMousedown(P){(0,e.X6)(P)||(this._openedBy=0===P.button?"mouse":void 0,this.triggersSubmenu()&&P.preventDefault())}_handleKeydown(P){const H=P.keyCode;(H===A.K5||H===A.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(H===A.SV&&"ltr"===this.dir||H===A.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(P){this.triggersSubmenu()?(P.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Q.h)(P=>P===this._menuItemInstance&&!P.disabled),(0,te.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,V.q)(1),(0,te.g)(0,S.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(P){return(!this._portal||this._portal.templateRef!==P.templateRef)&&(this._portal=new ee.UE(P.templateRef,this._viewContainerRef)),this._portal}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(v.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(Je),w.Y36(G,8),w.Y36($,10),w.Y36(Te.Is,8),w.Y36(e.tE),w.Y36(w.R0b))},be.\u0275dir=w.lG2({type:be,hostVars:3,hostBindings:function(P,H){1&P&&w.NdJ("click",function(o){return H._handleClick(o)})("mousedown",function(o){return H._handleMousedown(o)})("keydown",function(o){return H._handleKeydown(o)}),2&P&&w.uIk("aria-haspopup",H.menu?"menu":null)("aria-expanded",H.menuOpen||null)("aria-controls",H.menuOpen?H.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"}}),be})(),Se=(()=>{class be extends re{}return be.\u0275fac=function(){let Ue;return function(H){return(Ue||(Ue=w.n5z(be)))(H||be)}}(),be.\u0275dir=w.lG2({type:be,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),be})(),Fe=(()=>{class be{}return be.\u0275fac=function(P){return new(P||be)},be.\u0275mod=w.oAB({type:be}),be.\u0275inj=w.cJS({providers:[Y],imports:[le.ez,de.BQ,de.si,v.U8,B.ZD,de.BQ]}),be})()},98739:(Ye,pe,h)=>{"use strict";h.d(pe,{NW:()=>W,TU:()=>q,ye:()=>oe});var e=h(36895),c=h(94650),A=h(3238),w=h(4859),g=h(84385),C=h(10266),T=h(21281),E=h(77579),S=h(59549);function U(ue,ye){if(1&ue&&(c.TgZ(0,"mat-option",19),c._uU(1),c.qZA()),2&ue){const Me=ye.$implicit;c.Q6J("value",Me),c.xp6(1),c.hij(" ",Me," ")}}function _(ue,ye){if(1&ue){const Me=c.EpF();c.TgZ(0,"mat-form-field",16)(1,"mat-select",17),c.NdJ("selectionChange",function(Ge){c.CHM(Me);const ce=c.oxw(2);return c.KtG(ce._changePageSize(Ge.value))}),c.YNc(2,U,2,2,"mat-option",18),c.qZA()()}if(2&ue){const Me=c.oxw(2);c.Q6J("appearance",Me._formFieldAppearance)("color",Me.color),c.xp6(1),c.Q6J("value",Me.pageSize)("disabled",Me.disabled)("panelClass",Me.selectConfig.panelClass||"")("disableOptionCentering",Me.selectConfig.disableOptionCentering)("aria-label",Me._intl.itemsPerPageLabel),c.xp6(1),c.Q6J("ngForOf",Me._displayedPageSizeOptions)}}function V(ue,ye){if(1&ue&&(c.TgZ(0,"div",20),c._uU(1),c.qZA()),2&ue){const Me=c.oxw(2);c.xp6(1),c.Oqu(Me.pageSize)}}function z(ue,ye){if(1&ue&&(c.TgZ(0,"div",12)(1,"div",13),c._uU(2),c.qZA(),c.YNc(3,_,3,8,"mat-form-field",14),c.YNc(4,V,2,1,"div",15),c.qZA()),2&ue){const Me=c.oxw();c.xp6(2),c.hij(" ",Me._intl.itemsPerPageLabel," "),c.xp6(1),c.Q6J("ngIf",Me._displayedPageSizeOptions.length>1),c.xp6(1),c.Q6J("ngIf",Me._displayedPageSizeOptions.length<=1)}}function Q(ue,ye){if(1&ue){const Me=c.EpF();c.TgZ(0,"button",21),c.NdJ("click",function(){c.CHM(Me);const Ge=c.oxw();return c.KtG(Ge.firstPage())}),c.O4$(),c.TgZ(1,"svg",7),c._UZ(2,"path",22),c.qZA()()}if(2&ue){const Me=c.oxw();c.Q6J("matTooltip",Me._intl.firstPageLabel)("matTooltipDisabled",Me._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Me._previousButtonsDisabled()),c.uIk("aria-label",Me._intl.firstPageLabel)}}function te(ue,ye){if(1&ue){const Me=c.EpF();c.O4$(),c.kcU(),c.TgZ(0,"button",23),c.NdJ("click",function(){c.CHM(Me);const Ge=c.oxw();return c.KtG(Ge.lastPage())}),c.O4$(),c.TgZ(1,"svg",7),c._UZ(2,"path",24),c.qZA()()}if(2&ue){const Me=c.oxw();c.Q6J("matTooltip",Me._intl.lastPageLabel)("matTooltipDisabled",Me._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Me._nextButtonsDisabled()),c.uIk("aria-label",Me._intl.lastPageLabel)}}let oe=(()=>{class ue{constructor(){this.changes=new E.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Me,we,Ge)=>{if(0==Ge||0==we)return`0 of ${Ge}`;const ce=Me*we;return`${ce+1} \u2013 ${ce<(Ge=Math.max(Ge,0))?Math.min(ce+we,Ge):ce+we} of ${Ge}`}}}return ue.\u0275fac=function(Me){return new(Me||ue)},ue.\u0275prov=c.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const le={provide:oe,deps:[[new c.FiY,new c.tp0,oe]],useFactory:function ee(ue){return ue||new oe}},v=new c.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),L=(0,A.Id)((0,A.dB)(class{}));let B=(()=>{class ue extends L{constructor(Me,we,Ge){if(super(),this._intl=Me,this._changeDetectorRef=we,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new c.vpe,this._intlChanges=Me.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Ge){const{pageSize:ce,pageSizeOptions:Ze,hidePageSize:he,showFirstLastButtons:xe}=Ge;null!=ce&&(this._pageSize=ce),null!=Ze&&(this._pageSizeOptions=Ze),null!=he&&(this._hidePageSize=he),null!=xe&&(this._showFirstLastButtons=xe)}}get pageIndex(){return this._pageIndex}set pageIndex(Me){this._pageIndex=Math.max((0,T.su)(Me),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Me){this._length=(0,T.su)(Me),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Me){this._pageSize=Math.max((0,T.su)(Me),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Me){this._pageSizeOptions=(Me||[]).map(we=>(0,T.su)(we)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Me){this._hidePageSize=(0,T.Ig)(Me)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Me){this._showFirstLastButtons=(0,T.Ig)(Me)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Me=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Me)}previousPage(){if(!this.hasPreviousPage())return;const Me=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Me)}firstPage(){if(!this.hasPreviousPage())return;const Me=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Me)}lastPage(){if(!this.hasNextPage())return;const Me=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Me)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Me=this.getNumberOfPages()-1;return this.pageIndexMe-we),this._changeDetectorRef.markForCheck())}_emitPageEvent(Me){this.page.emit({previousPageIndex:Me,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ue.\u0275fac=function(Me){c.$Z()},ue.\u0275dir=c.lG2({type:ue,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[c.qOj]}),ue})(),W=(()=>{class ue extends B{constructor(Me,we,Ge){super(Me,we,Ge),Ge&&null!=Ge.formFieldAppearance&&(this._formFieldAppearance=Ge.formFieldAppearance)}}return ue.\u0275fac=function(Me){return new(Me||ue)(c.Y36(oe),c.Y36(c.sBO),c.Y36(v,8))},ue.\u0275cmp=c.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[c.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Me,we){1&Me&&(c.TgZ(0,"div",0)(1,"div",1),c.YNc(2,z,5,3,"div",2),c.TgZ(3,"div",3)(4,"div",4),c._uU(5),c.qZA(),c.YNc(6,Q,3,5,"button",5),c.TgZ(7,"button",6),c.NdJ("click",function(){return we.previousPage()}),c.O4$(),c.TgZ(8,"svg",7),c._UZ(9,"path",8),c.qZA()(),c.kcU(),c.TgZ(10,"button",9),c.NdJ("click",function(){return we.nextPage()}),c.O4$(),c.TgZ(11,"svg",7),c._UZ(12,"path",10),c.qZA()(),c.YNc(13,te,3,5,"button",11),c.qZA()()()),2&Me&&(c.xp6(2),c.Q6J("ngIf",!we.hidePageSize),c.xp6(3),c.hij(" ",we._intl.getRangeLabel(we.pageIndex,we.pageSize,we.length)," "),c.xp6(1),c.Q6J("ngIf",we.showFirstLastButtons),c.xp6(1),c.Q6J("matTooltip",we._intl.previousPageLabel)("matTooltipDisabled",we._previousButtonsDisabled())("matTooltipPosition","above")("disabled",we._previousButtonsDisabled()),c.uIk("aria-label",we._intl.previousPageLabel),c.xp6(3),c.Q6J("matTooltip",we._intl.nextPageLabel)("matTooltipDisabled",we._nextButtonsDisabled())("matTooltipPosition","above")("disabled",we._nextButtonsDisabled()),c.uIk("aria-label",we._intl.nextPageLabel),c.xp6(3),c.Q6J("ngIf",we.showFirstLastButtons))},dependencies:[e.sg,e.O5,w.lW,S.KE,g.gD,A.ey,C.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ue})(),q=(()=>{class ue{}return ue.\u0275fac=function(Me){return new(Me||ue)},ue.\u0275mod=c.oAB({type:ue}),ue.\u0275inj=c.cJS({providers:[le],imports:[e.ez,w.ot,g.LD,C.AV,A.BQ]}),ue})()},73162:(Ye,pe,h)=>{"use strict";h.d(pe,{Cv:()=>V});var e=h(94650),c=h(36895),A=h(3238);let V=(()=>{class z{}return z.\u0275fac=function(te){return new(te||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[c.ez,A.BQ,A.BQ]}),z})()},51572:(Ye,pe,h)=>{"use strict";h.d(pe,{Cq:()=>ee,Ou:()=>oe});var e=h(21281),c=h(83353),A=h(67376),w=h(36895),g=h(94650),C=h(3238),T=h(50727);function E(de,Te){if(1&de&&(g.O4$(),g._UZ(0,"circle",4)),2&de){const v=g.oxw(),L=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+v._spinnerAnimationLabel)("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(L)),g.uIk("r",v._getCircleRadius())}}function S(de,Te){if(1&de&&(g.O4$(),g._UZ(0,"circle",4)),2&de){const v=g.oxw(),L=g.MAs(1);g.Udp("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(L)),g.uIk("r",v._getCircleRadius())}}const V=(0,C.pj)(class{constructor(de){this._elementRef=de}},"primary"),z=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Q(){return{diameter:100}}});class oe extends V{constructor(Te,v,L,B,W,q,ue,ye){super(Te),this._document=L,this._diameter=100,this._value=0,this._resizeSubscription=T.w0.EMPTY,this.mode="determinate";const Me=oe._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Me.has(L.head)||Me.set(L.head,new Set([100])),this._noopAnimations="NoopAnimations"===B&&!!W&&!W._forceAnimations,"mat-spinner"===Te.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),W&&(W.color&&(this.color=this.defaultColor=W.color),W.diameter&&(this.diameter=W.diameter),W.strokeWidth&&(this.strokeWidth=W.strokeWidth)),v.isBrowser&&v.SAFARI&&ue&&q&&ye&&(this._resizeSubscription=ue.change(150).subscribe(()=>{"indeterminate"===this.mode&&ye.run(()=>q.markForCheck())}))}get diameter(){return this._diameter}set diameter(Te){this._diameter=(0,e.su)(Te),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Te){this._strokeWidth=(0,e.su)(Te)}get value(){return"determinate"===this.mode?this._value:0}set value(Te){this._value=Math.max(0,Math.min(100,(0,e.su)(Te)))}ngOnInit(){const Te=this._elementRef.nativeElement;this._styleRoot=(0,c.kV)(Te)||this._document.head,this._attachStyleNode(),Te.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Te=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Te} ${Te}`}_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(Te){var v;const L=50*(null!==(v=Te.currentScale)&&void 0!==v?v:1);return`${L}% ${L}%`}_attachStyleNode(){const Te=this._styleRoot,v=this._diameter,L=oe._diameters;let B=L.get(Te);if(!B||!B.has(v)){const W=this._document.createElement("style");W.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),W.textContent=this._getAnimationText(),Te.appendChild(W),B||(B=new Set,L.set(Te,B)),B.add(v)}}_getAnimationText(){const Te=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*Te).replace(/END_VALUE/g,""+.2*Te).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}oe._diameters=new WeakMap,oe.\u0275fac=function(Te){return new(Te||oe)(g.Y36(g.SBq),g.Y36(c.t4),g.Y36(w.K0,8),g.Y36(g.QbO,8),g.Y36(z),g.Y36(g.sBO),g.Y36(A.rL),g.Y36(g.R0b))},oe.\u0275cmp=g.Xpm({type:oe,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Te,v){2&Te&&(g.uIk("aria-valuemin","determinate"===v.mode?0:null)("aria-valuemax","determinate"===v.mode?100:null)("aria-valuenow","determinate"===v.mode?v.value:null)("mode",v.mode),g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.ekj("_mat-animation-noopable",v._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(Te,v){1&Te&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,E,1,11,"circle",2),g.YNc(3,S,1,9,"circle",3),g.qZA()),2&Te&&(g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===v.mode),g.uIk("viewBox",v._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ee=(()=>{class de{}return de.\u0275fac=function(v){return new(v||de)},de.\u0275mod=g.oAB({type:de}),de.\u0275inj=g.cJS({imports:[C.BQ,w.ez,C.BQ]}),de})()},71948:(Ye,pe,h)=>{"use strict";h.d(pe,{Fk:()=>L,U0:()=>v,VQ:()=>ee});var e=h(94650),c=h(3238),A=h(12687),w=h(21281),g=h(95017),C=h(24006);const T=["input"],E=function(B){return{enterDuration:B}},S=["*"],U=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function _(){return{color:"accent"}}});let V=0;const z={provide:C.JU,useExisting:(0,e.Gpc)(()=>ee),multi:!0};class Q{constructor(W,q){this.source=W,this.value=q}}const te=new e.OlP("MatRadioGroup");let oe=(()=>{class B{constructor(q){this._changeDetector=q,this._value=null,this._name="mat-radio-group-"+V++,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(q){this._name=q,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(q){this._labelPosition="before"===q?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(q){this._selected=q,this.value=q?q.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q),this._markRadiosForCheck()}get required(){return this._required}set required(q){this._required=(0,w.Ig)(q),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(q=>{q.name=this.name,q._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ue=>{ue.checked=this.value===ue.value,ue.checked&&(this._selected=ue)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Q(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(q=>q._markForCheck())}writeValue(q){this.value=q,this._changeDetector.markForCheck()}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this.onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetector.markForCheck()}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e.sBO))},B.\u0275dir=e.lG2({type:B,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),B})(),ee=(()=>{class B extends oe{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=e.n5z(B)))(ue||B)}}(),B.\u0275dir=e.lG2({type:B,selectors:[["mat-radio-group"]],contentQueries:function(q,ue,ye){if(1&q&&e.Suo(ye,v,5),2&q){let Me;e.iGM(Me=e.CRH())&&(ue._radios=Me)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([z,{provide:te,useExisting:B}]),e.qOj]}),B})();class le{constructor(W){this._elementRef=W}}const de=(0,c.Kr)((0,c.sb)(le));let Te=(()=>{class B extends de{constructor(q,ue,ye,Me,we,Ge,ce,Ze){super(ue),this._changeDetector=ye,this._focusMonitor=Me,this._radioDispatcher=we,this._providerOverride=ce,this._uniqueId="mat-radio-"+ ++V,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=q,this._noopAnimations="NoopAnimations"===Ge,Ze&&(this.tabIndex=(0,w.su)(Ze,0)),this._removeUniqueSelectionListener=we.listen((he,xe)=>{he!==this.id&&xe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(q){const ue=(0,w.Ig)(q);this._checked!==ue&&(this._checked=ue,ue&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ue&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ue&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===q),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(q){this._labelPosition=q}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(q){this._setDisabled((0,w.Ig)(q))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(q){this._required=(0,w.Ig)(q)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(q){this._color=q}get inputId(){return`${this.id||this._uniqueId}-input`}focus(q,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,q):this._inputElement.nativeElement.focus(q)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{!q&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Q(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(q){q.stopPropagation()}_onInputInteraction(q){if(q.stopPropagation(),!this.checked&&!this.disabled){const ue=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ue&&this.radioGroup._emitChangeEvent())}}_setDisabled(q){this._disabled!==q&&(this._disabled=q,this._changeDetector.markForCheck())}_updateTabIndex(){const q=this.radioGroup;let ue;if(ue=q&&q.selected&&!this.disabled?q.selected===this?this.tabIndex:-1:this.tabIndex,ue!==this._previousTabIndex){var ye;const Me=null===(ye=this._inputElement)||void 0===ye?void 0:ye.nativeElement;Me&&(Me.setAttribute("tabindex",ue+""),this._previousTabIndex=ue)}}}return B.\u0275fac=function(q){e.$Z()},B.\u0275dir=e.lG2({type:B,viewQuery:function(q,ue){if(1&q&&e.Gf(T,5),2&q){let ye;e.iGM(ye=e.CRH())&&(ue._inputElement=ye.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]}),B})(),v=(()=>{class B extends Te{constructor(q,ue,ye,Me,we,Ge,ce,Ze){super(q,ue,ye,Me,we,Ge,ce,Ze)}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(te,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(g.A8),e.Y36(e.QbO,8),e.Y36(U,8),e.$8M("tabindex"))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(q,ue){1&q&&e.NdJ("focus",function(){return ue._inputElement.nativeElement.focus()}),2&q&&(e.uIk("tabindex",null)("id",ue.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",ue.checked)("mat-radio-disabled",ue.disabled)("_mat-animation-noopable",ue._noopAnimations)("mat-primary","primary"===ue.color)("mat-accent","accent"===ue.color)("mat-warn","warn"===ue.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:S,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(q,ue){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Me){return ue._onInputInteraction(Me)})("click",function(Me){return ue._onInputClick(Me)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&q){const ye=e.MAs(1);e.uIk("for",ue.inputId),e.xp6(5),e.Q6J("id",ue.inputId)("checked",ue.checked)("disabled",ue.disabled)("required",ue.required),e.uIk("name",ue.name)("value",ue.value)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",ye)("matRippleDisabled",ue._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,E,ue._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==ue.labelPosition)}},dependencies:[c.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),B})(),L=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[c.si,c.BQ,c.BQ]}),B})()},84385:(Ye,pe,h)=>{"use strict";h.d(pe,{$L:()=>Se,LD:()=>Ue,gD:()=>be});var e=h(98184),c=h(36895),A=h(94650),w=h(3238),g=h(59549),C=h(67376),T=h(12687),E=h(40445),S=h(21281),U=h(95017),_=h(29521),V=h(24006),z=h(77579),Q=h(49770),te=h(56451),oe=h(68675),ee=h(63900),le=h(95698),de=h(39300),Te=h(54004),v=h(71884),L=h(82722),B=h(37340);const W=["trigger"],q=["panel"];function ue(P,H){if(1&P&&(A.TgZ(0,"span",8),A._uU(1),A.qZA()),2&P){const i=A.oxw();A.xp6(1),A.Oqu(i.placeholder)}}function ye(P,H){if(1&P&&(A.TgZ(0,"span",12),A._uU(1),A.qZA()),2&P){const i=A.oxw(2);A.xp6(1),A.Oqu(i.triggerValue)}}function Me(P,H){1&P&&A.Hsn(0,0,["*ngSwitchCase","true"])}function we(P,H){if(1&P&&(A.TgZ(0,"span",9),A.YNc(1,ye,2,1,"span",10),A.YNc(2,Me,1,0,"ng-content",11),A.qZA()),2&P){const i=A.oxw();A.Q6J("ngSwitch",!!i.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function Ge(P,H){if(1&P){const i=A.EpF();A.TgZ(0,"div",13)(1,"div",14,15),A.NdJ("@transformPanel.done",function(f){A.CHM(i);const l=A.oxw();return A.KtG(l._panelDoneAnimatingStream.next(f.toState))})("keydown",function(f){A.CHM(i);const l=A.oxw();return A.KtG(l._handleKeydown(f))}),A.Hsn(3,1),A.qZA()()}if(2&P){const i=A.oxw();A.Q6J("@transformPanelWrap",void 0),A.xp6(1),A.Gre("mat-select-panel ",i._getPanelTheme(),""),A.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),A.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),A.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const ce=[[["mat-select-trigger"]],"*"],Ze=["mat-select-trigger","*"],he={transformPanelWrap:(0,B.X$)("transformPanelWrap",[(0,B.eR)("* => void",(0,B.IO)("@transformPanel",[(0,B.pV)()],{optional:!0}))]),transformPanel:(0,B.X$)("transformPanel",[(0,B.SB)("void",(0,B.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,B.SB)("showing",(0,B.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,B.SB)("showing-multiple",(0,B.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,B.eR)("void => *",(0,B.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,B.eR)("* => void",(0,B.jt)("100ms 25ms linear",(0,B.oB)({opacity:0})))])};let G=0;const _t=new A.OlP("mat-select-scroll-strategy"),gt=new A.OlP("MAT_SELECT_CONFIG"),Y={provide:_t,deps:[e.aV],useFactory:function Je(P){return()=>P.scrollStrategies.reposition()}};class Ce{constructor(H,i){this.source=H,this.value=i}}const ae=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(P,H,i,o,f){this._elementRef=P,this._defaultErrorStateMatcher=H,this._parentForm=i,this._parentFormGroup=o,this.ngControl=f,this.stateChanges=new z.x}})))),re=new A.OlP("MatSelectTrigger");let Se=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275dir=A.lG2({type:P,selectors:[["mat-select-trigger"]],features:[A._Bn([{provide:re,useExisting:P}])]}),P})(),Fe=(()=>{class P extends ae{constructor(i,o,f,l,a,n,t,r,s,d,p,M,_e,bt){var Vt,on,Mt;super(a,l,t,r,d),this._viewportRuler=i,this._changeDetectorRef=o,this._ngZone=f,this._dir=n,this._parentFormField=s,this._liveAnnouncer=_e,this._defaultOptions=bt,this._panelOpen=!1,this._compareWith=(ft,je)=>ft===je,this._uid="mat-select-"+G++,this._triggerAriaLabelledBy=null,this._destroy=new z.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+G++,this._panelDoneAnimatingStream=new z.x,this._overlayPanelClass=(null===(Vt=this._defaultOptions)||void 0===Vt?void 0:Vt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(on=null===(Mt=this._defaultOptions)||void 0===Mt?void 0:Mt.disableOptionCentering)&&void 0!==on&&on,this.ariaLabel="",this.optionSelectionChanges=(0,Q.P)(()=>{const ft=this.options;return ft?ft.changes.pipe((0,oe.O)(ft),(0,ee.w)(()=>(0,te.T)(...ft.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,le.q)(1),(0,ee.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,de.h)(ft=>ft),(0,Te.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,de.h)(ft=>!ft),(0,Te.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=bt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=bt.typeaheadDebounceInterval),this._scrollStrategyFactory=M,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){var i,o,f,l;return null!==(i=null!==(o=this._required)&&void 0!==o?o:null===(f=this.ngControl)||void 0===f||null===(l=f.control)||void 0===l?void 0:l.hasValidator(V.kI.required))&&void 0!==i&&i}set required(i){this._required=(0,S.Ig)(i),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._multiple=(0,S.Ig)(i)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(i){this._disableOptionCentering=(0,S.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){this._assignValue(i)&&this._onChange(i)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(i){this._typeaheadDebounceInterval=(0,S.su)(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new U.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,v.x)(),(0,L.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,L.R)(this._destroy)).subscribe(i=>{i.added.forEach(o=>o.select()),i.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,oe.O)(null),(0,L.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const i=this._getTriggerAriaLabelledby(),o=this.ngControl;if(i!==this._triggerAriaLabelledBy){const f=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?f.setAttribute("aria-labelledby",i):f.removeAttribute("aria-labelledby")}o&&(this._previousControl!==o.control&&(void 0!==this._previousControl&&null!==o.disabled&&o.disabled!==this.disabled&&(this.disabled=o.disabled),this._previousControl=o.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&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._assignValue(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,f=o===_.JH||o===_.LH||o===_.oh||o===_.SV,l=o===_.K5||o===_.L_,a=this._keyManager;if(!a.isTyping()&&l&&!(0,_.Vb)(i)||(this.multiple||i.altKey)&&f)i.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;a.onKeydown(i);const t=this.selected;t&&n!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(i){const o=this._keyManager,f=i.keyCode,l=f===_.JH||f===_.LH,a=o.isTyping();if(l&&i.altKey)i.preventDefault(),this.close();else if(a||f!==_.K5&&f!==_.L_||!o.activeItem||(0,_.Vb)(i))if(!a&&this._multiple&&f===_.A&&i.ctrlKey){i.preventDefault();const n=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(n?t.select():t.deselect())})}else{const n=o.activeItemIndex;o.onKeydown(i),this._multiple&&l&&i.shiftKey&&o.activeItem&&o.activeItemIndex!==n&&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,le.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._selectOptionByValue(o)),this._sortValues();else{const o=this._selectOptionByValue(i);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){const o=this.options.find(f=>{if(this._selectionModel.isSelected(f))return!1;try{return null!=f.value&&this._compareWith(f.value,i)}catch{return!1}});return o&&this._selectionModel.select(o),o}_assignValue(i){return!!(i!==this._value||this._multiple&&Array.isArray(i))&&(this.options&&this._setSelectionByValue(i),this._value=i,!0)}_initKeyManager(){this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,L.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,L.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,te.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,L.R)(i)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,te.T)(...this.options.map(o=>o._stateChanges)).pipe((0,L.R)(i)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(i,o){const f=this._selectionModel.isSelected(i);null!=i.value||this._multiple?(f!==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)),f!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const i=this.options.toArray();this._selectionModel.sort((o,f)=>this.sortComparator?this.sortComparator(o,f,i):i.indexOf(o)-i.indexOf(f)),this.stateChanges.next()}}_propagateChanges(i){let o=null;o=this.multiple?this.selected.map(f=>f.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 f=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(f+=" "+this.ariaLabelledby),f}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return P.\u0275fac=function(i){return new(i||P)(A.Y36(C.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(w.rD),A.Y36(A.SBq),A.Y36(E.Is,8),A.Y36(V.F,8),A.Y36(V.sg,8),A.Y36(g.G_,8),A.Y36(V.a5,10),A.$8M("tabindex"),A.Y36(_t),A.Y36(T.Kd),A.Y36(gt,8))},P.\u0275dir=A.lG2({type:P,viewQuery:function(i,o){if(1&i&&(A.Gf(W,5),A.Gf(q,5),A.Gf(e.pI,5)),2&i){let f;A.iGM(f=A.CRH())&&(o.trigger=f.first),A.iGM(f=A.CRH())&&(o.panel=f.first),A.iGM(f=A.CRH())&&(o._overlayDir=f.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[A.qOj,A.TTD]}),P})(),be=(()=>{class P extends Fe{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,f){const l=this._getItemHeight();return Math.min(Math.max(0,l*i-o+l/2),f)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,L.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,le.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),f=this._getItemHeight();this.panel.nativeElement.scrollTop=0===i&&1===o?0:(0,w.jH)((i+o)*f,f,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 Ce(this,i)}_calculateOverlayOffsetX(){const i=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),f=this._isRtl(),l=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let r=this._selectionModel.selected[0]||this.options.first;a=r&&r.group?32:16}f||(a*=-1);const n=0-(i.left+a-(f?l:0)),t=i.right+a-o.width+(f?0:l);n>0?a+=n+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(i,o,f){const l=this._getItemHeight(),a=(l-this._triggerRect.height)/2,n=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?i*l:this._scrollTop===f?(i-(this._getItemCount()-n))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(i){const o=this._getItemHeight(),f=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,a=f.height-this._triggerRect.bottom-8,n=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*o,256)-n-this._triggerRect.height;r>a?this._adjustPanelUp(r,a):n>l?this._adjustPanelDown(n,l,i):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(i,o){const f=Math.round(i-o);this._scrollTop-=f,this._offsetY-=f,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(i,o,f){const l=Math.round(i-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=f)return this._scrollTop=f,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const i=this._getItemHeight(),o=this._getItemCount(),f=Math.min(o*i,256),a=o*i-f;let n;n=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),n+=(0,w.CB)(n,this.options,this.optionGroups);const t=f/2;this._scrollTop=this._calculateOverlayScroll(n,t,a),this._offsetY=this._calculateOverlayOffsetY(n,t,a),this._checkOverlayWithinViewport(a)}_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 P.\u0275fac=function(){let H;return function(o){return(H||(H=A.n5z(P)))(o||P)}}(),P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-select"]],contentQueries:function(i,o,f){if(1&i&&(A.Suo(f,re,5),A.Suo(f,w.ey,5),A.Suo(f,w.K7,5)),2&i){let l;A.iGM(l=A.CRH())&&(o.customTrigger=l.first),A.iGM(l=A.CRH())&&(o.options=l),A.iGM(l=A.CRH())&&(o.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(i,o){1&i&&A.NdJ("keydown",function(l){return o._handleKeydown(l)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(A.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-activedescendant",o._getAriaActiveDescendant()),A.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:[A._Bn([{provide:g.Eo,useExisting:P},{provide:w.HF,useExisting:P}]),A.qOj],ngContentSelectors:Ze,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&&(A.F$t(ce),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return o.toggle()}),A.TgZ(3,"div",2),A.YNc(4,ue,2,1,"span",3),A.YNc(5,we,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.qZA()(),A.YNc(8,Ge,4,14,"ng-template",7),A.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const f=A.MAs(1);A.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",o.empty),A.uIk("id",o._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(3),A.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",f)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},dependencies:[c.mk,c.RF,c.n9,c.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[he.transformPanelWrap,he.transformPanel]},changeDetection:0}),P})(),Ue=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275mod=A.oAB({type:P}),P.\u0275inj=A.cJS({providers:[Y],imports:[c.ez,e.U8,w.Ng,w.BQ,C.ZD,g.lN,w.Ng,w.BQ]}),P})()},23267:(Ye,pe,h)=>{"use strict";h.d(pe,{JX:()=>ct,Rh:()=>Oe,SJ:()=>_t,TM:()=>Xe});var e=h(67376),c=h(36895),A=h(94650),w=h(3238),g=h(12687),C=h(40445),T=h(21281),E=h(29521),S=h(83353),U=h(77579),_=h(54968),V=h(56451),z=h(39300),Q=h(54004),te=h(69718),oe=h(82722),ee=h(71884),le=h(95698),de=h(68675),Te=h(78372),v=h(37340);const L=["*"],B=["content"];function W(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae._onBackdropClicked())}),A.qZA()}if(2&Je){const Y=A.oxw();A.ekj("mat-drawer-shown",Y._isShowingBackdrop())}}function q(Je,gt){1&Je&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const ue=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ye=["mat-drawer","mat-drawer-content","*"];function Me(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae._onBackdropClicked())}),A.qZA()}if(2&Je){const Y=A.oxw();A.ekj("mat-drawer-shown",Y._isShowingBackdrop())}}function we(Je,gt){1&Je&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const Ge=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ce=["mat-sidenav","mat-sidenav-content","*"],he={transformDrawer:(0,v.X$)("transform",[(0,v.SB)("open, open-instant",(0,v.oB)({transform:"none",visibility:"visible"})),(0,v.SB)("void",(0,v.oB)({"box-shadow":"none",visibility:"hidden"})),(0,v.eR)("void => open-instant",(0,v.jt)("0ms")),(0,v.eR)("void <=> open, open-instant => void",(0,v.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function G(){return!1}}),R=new A.OlP("MAT_DRAWER_CONTAINER");let se=(()=>{class Je extends e.PQ{constructor(Y,Ce,ae,re,Se){super(ae,re,Se),this._changeDetectorRef=Y,this._container=Ce}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Ee)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&A.Udp("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Je}]),A.qOj],ngContentSelectors:L,decls:1,vars:0,template:function(Y,Ce){1&Y&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Je})(),$=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe,be,Ue){this._elementRef=Y,this._focusTrapFactory=Ce,this._focusMonitor=ae,this._platform=re,this._ngZone=Se,this._interactivityChecker=Fe,this._doc=be,this._container=Ue,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.x,this._animationEnd=new U.x,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(P=>P),(0,Q.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(P=>P.fromState!==P.toState&&0===P.toState.indexOf("open")),(0,te.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(P=>!P),(0,Q.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(P=>P.fromState!==P.toState&&"void"===P.toState),(0,te.h)(void 0)),this._destroyed=new U.x,this.onPositionChanged=new A.vpe,this._modeChanged=new U.x,this.openedChange.subscribe(P=>{P?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,_.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(P=>P.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(P)),(0,oe.R)(this._destroyed)).subscribe(P=>this._ngZone.run(()=>{this.close(),P.stopPropagation(),P.preventDefault()}))}),this._animationEnd.pipe((0,ee.x)((P,H)=>P.fromState===H.fromState&&P.toState===H.toState)).subscribe(P=>{const{fromState:H,toState:i}=P;(0===i.indexOf("open")&&"void"===H||"void"===i&&0===H.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Y){(Y="end"===Y?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Y),this._position=Y,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Y){this._mode=Y,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Y){this._disableClose=(0,T.Ig)(Y)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Y){("true"===Y||"false"===Y||null==Y)&&(Y=(0,T.Ig)(Y)),this._autoFocus=Y}get opened(){return this._opened}set opened(Y){this.toggle((0,T.Ig)(Y))}_forceFocus(Y,Ce){this._interactivityChecker.isFocusable(Y)||(Y.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ae=()=>{Y.removeEventListener("blur",ae),Y.removeEventListener("mousedown",ae),Y.removeAttribute("tabindex")};Y.addEventListener("blur",ae),Y.addEventListener("mousedown",ae)})),Y.focus(Ce)}_focusByCssSelector(Y,Ce){let ae=this._elementRef.nativeElement.querySelector(Y);ae&&this._forceFocus(ae,Ce)}_takeFocus(){if(!this._focusTrap)return;const Y=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ce=>{!Ce&&"function"==typeof this._elementRef.nativeElement.focus&&Y.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Y){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Y):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Y=this._doc.activeElement;return!!Y&&this._elementRef.nativeElement.contains(Y)}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 Y;this._focusTrap&&this._focusTrap.destroy(),null===(Y=this._anchor)||void 0===Y||Y.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Y){return this.toggle(!0,Y)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Y=!this.opened,Ce){Y&&Ce&&(this._openedVia=Ce);const ae=this._setOpen(Y,!Y&&this._isFocusWithinDrawer(),this._openedVia||"program");return Y||(this._openedVia=null),ae}_setOpen(Y,Ce,ae){return this._opened=Y,Y?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ce&&this._restoreFocus(ae)),this._updateFocusTrapState(),new Promise(re=>{this.openedChange.pipe((0,le.q)(1)).subscribe(Se=>re(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(Y){const Ce=this._elementRef.nativeElement,ae=Ce.parentNode;"end"===Y?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ae.insertBefore(this._anchor,Ce)),ae.appendChild(Ce)):this._anchor&&this._anchor.parentNode.insertBefore(Ce,this._anchor)}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.SBq),A.Y36(g.qV),A.Y36(g.tE),A.Y36(S.t4),A.Y36(A.R0b),A.Y36(g.ic),A.Y36(c.K0,8),A.Y36(R,8))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer"]],viewQuery:function(Y,Ce){if(1&Y&&A.Gf(B,5),2&Y){let ae;A.iGM(ae=A.CRH())&&(Ce._content=ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Y,Ce){1&Y&&A.WFA("@transform.start",function(re){return Ce._animationStarted.next(re)})("@transform.done",function(re){return Ce._animationEnd.next(re)}),2&Y&&(A.uIk("align",null),A.d8E("@transform",Ce._animationState),A.ekj("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.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:L,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Y,Ce){1&Y&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Je})(),Ee=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe=!1,be){this._dir=Y,this._element=Ce,this._ngZone=ae,this._changeDetectorRef=re,this._animationMode=be,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new U.x,this._doCheckSubject=new U.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.x,Y&&Y.change.pipe((0,oe.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,oe.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Fe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Y){this._autosize=(0,T.Ig)(Y)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Y){this._backdropOverride=null==Y?null:(0,T.Ig)(Y)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,de.O)(this._allDrawers),(0,oe.R)(this._destroyed)).subscribe(Y=>{this._drawers.reset(Y.filter(Ce=>!Ce._container||Ce._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,de.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Y=>{this._watchDrawerToggle(Y),this._watchDrawerPosition(Y),this._watchDrawerMode(Y)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Te.b)(10),(0,oe.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(Y=>Y.open())}close(){this._drawers.forEach(Y=>Y.close())}updateContentMargins(){let Y=0,Ce=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Y+=this._left._getWidth();else if("push"==this._left.mode){const ae=this._left._getWidth();Y+=ae,Ce-=ae}if(this._right&&this._right.opened)if("side"==this._right.mode)Ce+=this._right._getWidth();else if("push"==this._right.mode){const ae=this._right._getWidth();Ce+=ae,Y-=ae}Y=Y||null,Ce=Ce||null,(Y!==this._contentMargins.left||Ce!==this._contentMargins.right)&&(this._contentMargins={left:Y,right:Ce},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Y){Y._animationStarted.pipe((0,z.h)(Ce=>Ce.fromState!==Ce.toState),(0,oe.R)(this._drawers.changes)).subscribe(Ce=>{"open-instant"!==Ce.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Y.mode&&Y.openedChange.pipe((0,oe.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Y.opened))}_watchDrawerPosition(Y){!Y||Y.onPositionChanged.pipe((0,oe.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,le.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Y){Y&&Y._modeChanged.pipe((0,oe.R)((0,V.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Y){const Ce=this._element.nativeElement.classList,ae="mat-drawer-container-has-open";Y?Ce.add(ae):Ce.remove(ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Y=>{"end"==Y.position?this._end=Y:this._start=Y}),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(Y=>Y&&!Y.disableClose&&this._canHaveBackdrop(Y)).forEach(Y=>Y._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Y){return"side"!==Y.mode||!!this._backdropOverride}_isDrawerOpen(Y){return null!=Y&&Y.opened}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(C.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(e.rL),A.Y36(j),A.Y36(A.QbO,8))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer-container"]],contentQueries:function(Y,Ce,ae){if(1&Y&&(A.Suo(ae,se,5),A.Suo(ae,$,5)),2&Y){let re;A.iGM(re=A.CRH())&&(Ce._content=re.first),A.iGM(re=A.CRH())&&(Ce._allDrawers=re)}},viewQuery:function(Y,Ce){if(1&Y&&A.Gf(se,5),2&Y){let ae;A.iGM(ae=A.CRH())&&(Ce._userContent=ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:R,useExisting:Je}])],ngContentSelectors:ye,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(Y,Ce){1&Y&&(A.F$t(ue),A.YNc(0,W,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,q,2,0,"mat-drawer-content",1)),2&Y&&(A.Q6J("ngIf",Ce.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Ce._content))},dependencies:[c.O5,se],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Je})(),Oe=(()=>{class Je extends se{constructor(Y,Ce,ae,re,Se){super(Y,Ce,ae,re,Se)}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Xe)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&A.Udp("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Je}]),A.qOj],ngContentSelectors:L,decls:1,vars:0,template:function(Y,Ce){1&Y&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Je})(),ct=(()=>{class Je extends ${constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Y){this._fixedInViewport=(0,T.Ig)(Y)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Y){this._fixedTopGap=(0,T.su)(Y)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Y){this._fixedBottomGap=(0,T.su)(Y)}}return Je.\u0275fac=function(){let gt;return function(Ce){return(gt||(gt=A.n5z(Je)))(Ce||Je)}}(),Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Y,Ce){2&Y&&(A.uIk("align",null),A.Udp("top",Ce.fixedInViewport?Ce.fixedTopGap:null,"px")("bottom",Ce.fixedInViewport?Ce.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.opened)("mat-sidenav-fixed",Ce.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:L,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Y,Ce){1&Y&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Je})(),Xe=(()=>{class Je extends Ee{}return Je.\u0275fac=function(){let gt;return function(Ce){return(gt||(gt=A.n5z(Je)))(Ce||Je)}}(),Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav-container"]],contentQueries:function(Y,Ce,ae){if(1&Y&&(A.Suo(ae,Oe,5),A.Suo(ae,ct,5)),2&Y){let re;A.iGM(re=A.CRH())&&(Ce._content=re.first),A.iGM(re=A.CRH())&&(Ce._allDrawers=re)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:R,useExisting:Je}]),A.qOj],ngContentSelectors:ce,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(Y,Ce){1&Y&&(A.F$t(Ge),A.YNc(0,Me,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,we,2,0,"mat-sidenav-content",1)),2&Y&&(A.Q6J("ngIf",Ce.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Ce._content))},dependencies:[c.O5,Oe],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Je})(),_t=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=A.oAB({type:Je}),Je.\u0275inj=A.cJS({imports:[c.ez,w.BQ,e.ZD,e.ZD,w.BQ]}),Je})()},90455:(Ye,pe,h)=>{"use strict";h.d(pe,{Rr:()=>oe,rP:()=>Te});var e=h(49643),c=h(94650),A=h(3238),w=h(12687),g=h(21281),C=h(24006);const T=["input"],E=function(v){return{enterDuration:v}},S=["*"],U=new c.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let _=0;const V={provide:C.JU,useExisting:(0,c.Gpc)(()=>oe),multi:!0};class z{constructor(L,B){this.source=L,this.checked=B}}const Q=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(v){this._elementRef=v}}))));let te=(()=>{class v extends Q{constructor(B,W,q,ue,ye,Me,we){super(B),this._focusMonitor=W,this._changeDetectorRef=q,this.defaults=ye,this._onChange=Ge=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new c.vpe,this.toggleChange=new c.vpe,this.tabIndex=parseInt(ue)||0,this.color=this.defaultColor=ye.color||"accent",this._noopAnimations="NoopAnimations"===Me,this.id=this._uniqueId=`${we}${++_}`}get required(){return this._required}set required(B){this._required=(0,g.Ig)(B)}get checked(){return this._checked}set checked(B){this._checked=(0,g.Ig)(B),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(B=>{"keyboard"===B||"program"===B?this._focused=!0:B||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(B){this.checked=!!B}registerOnChange(B){this._onChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return v.\u0275fac=function(B){c.$Z()},v.\u0275dir=c.lG2({type:v,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[c.qOj]}),v})(),oe=(()=>{class v extends te{constructor(B,W,q,ue,ye,Me){super(B,W,q,ue,ye,Me,"mat-slide-toggle-")}_createChangeEvent(B){return new z(this,B)}_onChangeEvent(B){B.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(B){B.stopPropagation()}focus(B,W){W?this._focusMonitor.focusVia(this._inputElement,W,B):this._inputElement.nativeElement.focus(B)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return v.\u0275fac=function(B){return new(B||v)(c.Y36(c.SBq),c.Y36(w.tE),c.Y36(c.sBO),c.$8M("tabindex"),c.Y36(U),c.Y36(c.QbO,8))},v.\u0275cmp=c.Xpm({type:v,selectors:[["mat-slide-toggle"]],viewQuery:function(B,W){if(1&B&&c.Gf(T,5),2&B){let q;c.iGM(q=c.CRH())&&(W._inputElement=q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(B,W){2&B&&(c.Ikx("id",W.id),c.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),c.ekj("mat-checked",W.checked)("mat-disabled",W.disabled)("mat-slide-toggle-label-before","before"==W.labelPosition)("_mat-animation-noopable",W._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[c._Bn([V]),c.qOj],ngContentSelectors:S,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(B,W){if(1&B&&(c.F$t(),c.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),c.NdJ("change",function(ue){return W._onChangeEvent(ue)})("click",function(ue){return W._onInputClick(ue)}),c.qZA(),c.TgZ(5,"span",5),c._UZ(6,"span",6),c.TgZ(7,"span",7),c._UZ(8,"span",8),c.qZA()()(),c.TgZ(9,"span",9,10),c.NdJ("cdkObserveContent",function(){return W._onLabelTextChange()}),c.TgZ(11,"span",11),c._uU(12,"\xa0"),c.qZA(),c.Hsn(13),c.qZA()()),2&B){const q=c.MAs(1),ue=c.MAs(10);c.uIk("for",W.inputId),c.xp6(2),c.ekj("mat-slide-toggle-bar-no-side-margin",!ue.textContent||!ue.textContent.trim()),c.xp6(1),c.Q6J("id",W.inputId)("required",W.required)("tabIndex",W.tabIndex)("checked",W.checked)("disabled",W.disabled),c.uIk("name",W.name)("aria-checked",W.checked)("aria-label",W.ariaLabel)("aria-labelledby",W.ariaLabelledby)("aria-describedby",W.ariaDescribedby),c.xp6(4),c.Q6J("matRippleTrigger",q)("matRippleDisabled",W.disableRipple||W.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",c.VKq(18,E,W._noopAnimations?0:150))}},dependencies:[A.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),v})(),de=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({}),v})(),Te=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({imports:[de,A.si,A.BQ,e.Q8,de,A.BQ]}),v})()},17009:(Ye,pe,h)=>{"use strict";h.d(pe,{ZX:()=>le});var e=h(98184),c=h(84080),A=h(36895),w=h(94650),g=h(3238),C=h(4859);h(37340);let le=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({imports:[e.U8,c.eL,A.ez,C.ot,g.BQ,g.BQ]}),B})()},96308:(Ye,pe,h)=>{"use strict";h.d(pe,{JX:()=>Me,YE:()=>de,nU:()=>ye});var e=h(94650),c=h(12687),A=h(21281),w=h(29521),g=h(3238),C=h(77579),T=h(56451),E=h(37340),S=h(36895);const U=["mat-sort-header",""];function _(we,Ge){if(1&we){const ce=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(ce);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(ce);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&we){const ce=e.oxw();e.Q6J("@arrowOpacity",ce._getArrowViewState())("@arrowPosition",ce._getArrowViewState())("@allowChildren",ce._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",ce._getArrowDirectionState())}}const V=["*"],ee=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),le=(0,g.dB)((0,g.Id)(class{}));let de=(()=>{class we extends le{constructor(ce){super(),this._defaultOptions=ce,this.sortables=new Map,this._stateChanges=new C.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(ce){this._direction=ce}get disableClear(){return this._disableClear}set disableClear(ce){this._disableClear=(0,A.Ig)(ce)}register(ce){this.sortables.set(ce.id,ce)}deregister(ce){this.sortables.delete(ce.id)}sort(ce){this.active!=ce.id?(this.active=ce.id,this.direction=ce.start?ce.start:this.start):this.direction=this.getNextSortDirection(ce),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(ce){var Ze,he,xe;if(!ce)return"";const j=null!==(Ze=null!==(he=ce?.disableClear)&&void 0!==he?he:this.disableClear)&&void 0!==Ze?Ze:!(null===(xe=this._defaultOptions)||void 0===xe||!xe.disableClear);let R=function Te(we,Ge){let ce=["asc","desc"];return"desc"==we&&ce.reverse(),Ge||ce.push(""),ce}(ce.start||this.start,j),G=R.indexOf(this.direction)+1;return G>=R.length&&(G=0),R[G]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(ce){return new(ce||we)(e.Y36(ee,8))},we.\u0275dir=e.lG2({type:we,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]}),we})();const v=g.mZ.ENTERING+" "+g.yN.STANDARD_CURVE,L={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)(v))]),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)(v))]),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)(v))]),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)(v))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(v,(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)(v,(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)(v,(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)(v,(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 B=(()=>{class we{constructor(){this.changes=new C.x}}return we.\u0275fac=function(ce){return new(ce||we)},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const q={provide:B,deps:[[new e.FiY,new e.tp0,B]],useFactory:function W(we){return we||new B}},ue=(0,g.Id)(class{});let ye=(()=>{class we extends ue{constructor(ce,Ze,he,xe,j,R,G,se){super(),this._intl=ce,this._changeDetectorRef=Ze,this._sort=he,this._columnDef=xe,this._focusMonitor=j,this._elementRef=R,this._ariaDescriber=G,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=se&&se.arrowPosition&&(this.arrowPosition=se?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(ce){this._updateSortActionDescription(ce)}get disableClear(){return this._disableClear}set disableClear(ce){this._disableClear=(0,A.Ig)(ce)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{const Ze=!!ce;Ze!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ze),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(ce){this._isDisabled()&&ce||(this._showIndicatorHint=ce,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(ce){this._viewState=ce||{},this._disableViewStateAnimation&&(this._viewState={toState:ce.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(ce){!this._isDisabled()&&(ce.keyCode===w.L_||ce.keyCode===w.K5)&&(ce.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 ce=this._viewState.fromState;return(ce?`${ce}-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(ce){var Ze,he;this._sortButton&&(null===(Ze=this._ariaDescriber)||void 0===Ze||Ze.removeDescription(this._sortButton,this._sortActionDescription),null===(he=this._ariaDescriber)||void 0===he||he.describe(this._sortButton,ce)),this._sortActionDescription=ce}_handleStateChanges(){this._rerenderSubscription=(0,T.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 we.\u0275fac=function(ce){return new(ce||we)(e.Y36(B),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(c.tE),e.Y36(e.SBq),e.Y36(c.$s,8),e.Y36(ee,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ce,Ze){1&ce&&e.NdJ("click",function(){return Ze._handleClick()})("keydown",function(xe){return Ze._handleKeydown(xe)})("mouseenter",function(){return Ze._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ze._setIndicatorHintVisible(!1)}),2&ce&&(e.uIk("aria-sort",Ze._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ze._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:U,ngContentSelectors:V,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(ce,Ze){1&ce&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,_,6,6,"div",2),e.qZA()),2&ce&&(e.ekj("mat-sort-header-sorted",Ze._isSorted())("mat-sort-header-position-before","before"===Ze.arrowPosition),e.uIk("tabindex",Ze._isDisabled()?null:0)("role",Ze._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Ze._renderArrow()))},dependencies:[S.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[L.indicator,L.leftPointer,L.rightPointer,L.arrowOpacity,L.arrowPosition,L.allowChildren]},changeDetection:0}),we})(),Me=(()=>{class we{}return we.\u0275fac=function(ce){return new(ce||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({providers:[q],imports:[S.ez,g.BQ]}),we})()},86257:(Ye,pe,h)=>{"use strict";h.d(pe,{C0:()=>M,BY:()=>p,VY:()=>i,Vq:()=>_e,T5:()=>on,fd:()=>Vt});var e=h(84080),c=h(12687),A=h(40445),w=h(21281),g=h(29521),C=h(94650),T=h(83353),E=h(77579),S=h(39646),U=h(68675),_=h(82722);function V(Mt,ft){1&Mt&&C.Hsn(0)}const z=["*"];let Q=(()=>{class Mt{constructor(je){this._elementRef=je}focus(){this._elementRef.nativeElement.focus()}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.SBq))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Mt})(),te=(()=>{class Mt{constructor(je){this.template=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","cdkStepLabel",""]]}),Mt})(),oe=0;const de=new C.OlP("STEPPER_GLOBAL_OPTIONS");let Te=(()=>{class Mt{constructor(je,Pe){this._stepper=je,this.interacted=!1,this.interactedStream=new C.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Pe||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(je){this._editable=(0,w.Ig)(je)}get optional(){return this._optional}set optional(je){this._optional=(0,w.Ig)(je)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(je){this._completedOverride=(0,w.Ig)(je)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(je){this._customError=(0,w.Ig)(je)}_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 je;return null!==(je=this._stepperOptions.showError)&&void 0!==je?je:null!=this._customError}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36((0,C.Gpc)(()=>v)),C.Y36(de,8))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["cdk-step"]],contentQueries:function(je,Pe,Qe){if(1&je&&C.Suo(Qe,te,5),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe.stepLabel=qe.first)}},viewQuery:function(je,Pe){if(1&je&&C.Gf(C.Rgc,7),2&je){let Qe;C.iGM(Qe=C.CRH())&&(Pe.content=Qe.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:[C.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(je,Pe){1&je&&(C.F$t(),C.YNc(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Mt})(),v=(()=>{class Mt{constructor(je,Pe,Qe){this._dir=je,this._changeDetectorRef=Pe,this._elementRef=Qe,this._destroyed=new E.x,this.steps=new C.n_E,this._sortedHeaders=new C.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new C.vpe,this._orientation="horizontal",this._groupId=oe++}get linear(){return this._linear}set linear(je){this._linear=(0,w.Ig)(je)}get selectedIndex(){return this._selectedIndex}set selectedIndex(je){const Pe=(0,w.su)(je);var Qe;this.steps&&this._steps?(this._isValidIndex(Pe),null===(Qe=this.selected)||void 0===Qe||Qe._markAsInteracted(),this._selectedIndex!==Pe&&!this._anyControlsInvalidOrPending(Pe)&&(Pe>=this._selectedIndex||this.steps.toArray()[Pe].editable)&&this._updateSelectedItemIndex(Pe)):this._selectedIndex=Pe}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(je){this.selectedIndex=je&&this.steps?this.steps.toArray().indexOf(je):-1}get orientation(){return this._orientation}set orientation(je){this._orientation=je,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===je)}ngAfterContentInit(){this._steps.changes.pipe((0,U.O)(this._steps),(0,_.R)(this._destroyed)).subscribe(je=>{this.steps.reset(je.filter(Pe=>Pe._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,U.O)(this._stepHeader),(0,_.R)(this._destroyed)).subscribe(je=>{this._sortedHeaders.reset(je.toArray().sort((Pe,Qe)=>Pe._elementRef.nativeElement.compareDocumentPosition(Qe._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new c.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,S.of)()).pipe((0,U.O)(this._layoutDirection()),(0,_.R)(this._destroyed)).subscribe(je=>this._keyManager.withHorizontalOrientation(je)),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(je=>je.reset()),this._stateChanged()}_getStepLabelId(je){return`cdk-step-label-${this._groupId}-${je}`}_getStepContentId(je){return`cdk-step-content-${this._groupId}-${je}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(je){const Pe=je-this._selectedIndex;return Pe<0?"rtl"===this._layoutDirection()?"next":"previous":Pe>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(je,Pe="number"){const Qe=this.steps.toArray()[je],qe=this._isCurrentStep(je);return Qe._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qe,qe):this._getGuidelineLogic(Qe,qe,Pe)}_getDefaultIndicatorLogic(je,Pe){return je._showError()&&je.hasError&&!Pe?"error":!je.completed||Pe?"number":je.editable?"edit":"done"}_getGuidelineLogic(je,Pe,Qe="number"){return je._showError()&&je.hasError&&!Pe?"error":je.completed&&!Pe?"done":je.completed&&Pe?Qe:je.editable&&Pe?"edit":Qe}_isCurrentStep(je){return this._selectedIndex===je}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(je){const Pe=this.steps.toArray();this.selectionChange.emit({selectedIndex:je,previouslySelectedIndex:this._selectedIndex,selectedStep:Pe[je],previouslySelectedStep:Pe[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(je):this._keyManager.updateActiveItem(je),this._selectedIndex=je,this._stateChanged()}_onKeydown(je){const Pe=(0,g.Vb)(je),Qe=je.keyCode,qe=this._keyManager;null==qe.activeItemIndex||Pe||Qe!==g.L_&&Qe!==g.K5?qe.onKeydown(je):(this.selectedIndex=qe.activeItemIndex,je.preventDefault())}_anyControlsInvalidOrPending(je){return!!(this._linear&&je>=0)&&this.steps.toArray().slice(0,je).some(Pe=>{const Qe=Pe.stepControl;return(Qe?Qe.invalid||Qe.pending||!Pe.interacted:!Pe.completed)&&!Pe.optional&&!Pe._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const je=this._elementRef.nativeElement,Pe=(0,T.ht)();return je===Pe||je.contains(Pe)}_isValidIndex(je){return je>-1&&(!this.steps||je{class Mt{constructor(je){this._stepper=je,this.type="button"}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(v))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(je,Pe){1&je&&C.NdJ("click",function(){return Pe._stepper.previous()}),2&je&&C.Ikx("type",Pe.type)},inputs:{type:"type"}}),Mt})(),W=(()=>{class Mt{}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275mod=C.oAB({type:Mt}),Mt.\u0275inj=C.cJS({imports:[A.vT]}),Mt})();var q=h(36895),ue=h(4859),ye=h(3238),Me=h(97392),we=h(50727),Ge=h(63900),ce=h(54004),Ze=h(71884),he=h(37340);function xe(Mt,ft){if(1&Mt&&C.GkF(0,8),2&Mt){const je=C.oxw();C.Q6J("ngTemplateOutlet",je.iconOverrides[je.state])("ngTemplateOutletContext",je._getIconContext())}}function j(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._getDefaultTextForState(je.state))}}function R(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._intl.completedLabel)}}function G(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._intl.editableLabel)}}function se(Mt,ft){if(1&Mt&&(C.TgZ(0,"mat-icon",13),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._getDefaultTextForState(je.state))}}function $(Mt,ft){if(1&Mt&&(C.ynx(0,9),C.YNc(1,j,2,1,"span",10),C.YNc(2,R,2,1,"span",11),C.YNc(3,G,2,1,"span",11),C.YNc(4,se,2,1,"mat-icon",12),C.BQk()),2&Mt){const je=C.oxw();C.Q6J("ngSwitch",je.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===je.state),C.xp6(1),C.Q6J("ngIf","edit"===je.state)}}function Ee(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",15),C.GkF(1,16),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",je._templateLabel().template)}}function Oe(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",15),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je.label)}}function ct(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je._intl.optionalLabel)}}function Xe(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",18),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je.errorMessage)}}function _t(Mt,ft){}function Je(Mt,ft){if(1&Mt&&(C.Hsn(0),C.YNc(1,_t,0,0,"ng-template",0)),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",je._portal)}}const gt=["*"];function Y(Mt,ft){1&Mt&&C._UZ(0,"div",11)}const Ce=function(Mt,ft){return{step:Mt,i:ft}};function ae(Mt,ft){if(1&Mt&&(C.ynx(0),C.GkF(1,9),C.YNc(2,Y,1,0,"div",10),C.BQk()),2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=ft.last;C.oxw(2);const qe=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",qe)("ngTemplateOutletContext",C.WLB(3,Ce,je,Pe)),C.xp6(1),C.Q6J("ngIf",!Qe)}}const re=function(Mt){return{animationDuration:Mt}},Se=function(Mt,ft){return{value:Mt,params:ft}};function Fe(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"div",12),C.NdJ("@horizontalStepTransition.done",function(Qe){C.CHM(je);const qe=C.oxw(2);return C.KtG(qe._animationDone.next(Qe))}),C.GkF(1,13),C.qZA()}if(2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=C.oxw(2);C.Q6J("@horizontalStepTransition",C.WLB(7,Se,Qe._getAnimationDirection(Pe),C.VKq(5,re,Qe._getAnimationDuration())))("id",Qe._getStepContentId(Pe)),C.uIk("aria-labelledby",Qe._getStepLabelId(Pe))("aria-expanded",Qe.selectedIndex===Pe),C.xp6(1),C.Q6J("ngTemplateOutlet",je.content)}}function be(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",4)(1,"div",5),C.YNc(2,ae,3,6,"ng-container",6),C.qZA(),C.TgZ(3,"div",7),C.YNc(4,Fe,2,10,"div",8),C.qZA()()),2&Mt){const je=C.oxw();C.xp6(2),C.Q6J("ngForOf",je.steps),C.xp6(2),C.Q6J("ngForOf",je.steps)}}function Ue(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"div",15),C.GkF(1,9),C.TgZ(2,"div",16)(3,"div",17),C.NdJ("@verticalStepTransition.done",function(Qe){C.CHM(je);const qe=C.oxw(2);return C.KtG(qe._animationDone.next(Qe))}),C.TgZ(4,"div",18),C.GkF(5,13),C.qZA()()()()}if(2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=ft.last,qe=C.oxw(2),Be=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Be)("ngTemplateOutletContext",C.WLB(9,Ce,je,Pe)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Qe),C.xp6(1),C.Q6J("@verticalStepTransition",C.WLB(14,Se,qe._getAnimationDirection(Pe),C.VKq(12,re,qe._getAnimationDuration())))("id",qe._getStepContentId(Pe)),C.uIk("aria-labelledby",qe._getStepLabelId(Pe))("aria-expanded",qe.selectedIndex===Pe),C.xp6(2),C.Q6J("ngTemplateOutlet",je.content)}}function P(Mt,ft){if(1&Mt&&(C.ynx(0),C.YNc(1,Ue,6,17,"div",14),C.BQk()),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("ngForOf",je.steps)}}function H(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"mat-step-header",19),C.NdJ("click",function(){const qe=C.CHM(je).step;return C.KtG(qe.select())})("keydown",function(Qe){C.CHM(je);const qe=C.oxw();return C.KtG(qe._onKeydown(Qe))}),C.qZA()}if(2&Mt){const je=ft.step,Pe=ft.i,Qe=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Qe.orientation)("mat-vertical-stepper-header","vertical"===Qe.orientation),C.Q6J("tabIndex",Qe._getFocusIndex()===Pe?0:-1)("id",Qe._getStepLabelId(Pe))("index",Pe)("state",Qe._getIndicatorType(Pe,je.state))("label",je.stepLabel||je.label)("selected",Qe.selectedIndex===Pe)("active",Qe._stepIsNavigable(Pe,je))("optional",je.optional)("errorMessage",je.errorMessage)("iconOverrides",Qe._iconOverrides)("disableRipple",Qe.disableRipple||!Qe._stepIsNavigable(Pe,je))("color",je.color||Qe.color),C.uIk("aria-posinset",Pe+1)("aria-setsize",Qe.steps.length)("aria-controls",Qe._getStepContentId(Pe))("aria-selected",Qe.selectedIndex==Pe)("aria-label",je.ariaLabel||null)("aria-labelledby",!je.ariaLabel&&je.ariaLabelledby?je.ariaLabelledby:null)("aria-disabled",!Qe._stepIsNavigable(Pe,je)||null)}}let i=(()=>{class Mt extends te{}return Mt.\u0275fac=function(){let ft;return function(Pe){return(ft||(ft=C.n5z(Mt)))(Pe||Mt)}}(),Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Mt})(),o=(()=>{class Mt{constructor(){this.changes=new E.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275prov=C.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();const l={provide:o,deps:[[new C.FiY,new C.tp0,o]],useFactory:function f(Mt){return Mt||new o}},a=(0,ye.pj)(class extends Q{constructor(ft){super(ft)}},"primary");let n=(()=>{class Mt extends a{constructor(je,Pe,Qe,qe){super(Qe),this._intl=je,this._focusMonitor=Pe,this._intlSubscription=je.changes.subscribe(()=>qe.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(je,Pe){je?this._focusMonitor.focusVia(this._elementRef,je,Pe):this._elementRef.nativeElement.focus(Pe)}_stringLabel(){return this.label instanceof i?null:this.label}_templateLabel(){return this.label instanceof i?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(je){return"number"==je?`${this.index+1}`:"edit"==je?"create":"error"==je?"warning":je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(o),C.Y36(c.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Mt.\u0275cmp=C.Xpm({type:Mt,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:[C.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(je,Pe){1&je&&(C._UZ(0,"div",0),C.TgZ(1,"div")(2,"div",1),C.YNc(3,xe,1,2,"ng-container",2),C.YNc(4,$,5,4,"ng-container",3),C.qZA()(),C.TgZ(5,"div",4),C.YNc(6,Ee,2,1,"div",5),C.YNc(7,Oe,2,1,"div",5),C.YNc(8,ct,2,1,"div",6),C.YNc(9,Xe,2,1,"div",7),C.qZA()),2&je&&(C.Q6J("matRippleTrigger",Pe._getHostElement())("matRippleDisabled",Pe.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",Pe.state," mat-step-icon"),C.ekj("mat-step-icon-selected",Pe.selected),C.xp6(1),C.Q6J("ngSwitch",!(!Pe.iconOverrides||!Pe.iconOverrides[Pe.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",Pe.active)("mat-step-label-selected",Pe.selected)("mat-step-label-error","error"==Pe.state),C.xp6(1),C.Q6J("ngIf",Pe._templateLabel()),C.xp6(1),C.Q6J("ngIf",Pe._stringLabel()),C.xp6(1),C.Q6J("ngIf",Pe.optional&&"error"!=Pe.state),C.xp6(1),C.Q6J("ngIf","error"==Pe.state))},dependencies:[q.O5,q.tP,q.RF,q.n9,q.ED,Me.Hw,ye.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Mt})();const t="500ms",r="225ms",s={horizontalStepTransition:(0,he.X$)("horizontalStepTransition",[(0,he.SB)("previous",(0,he.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({transform:"none",visibility:"inherit"})),(0,he.SB)("next",(0,he.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,he.eR)("* => *",(0,he.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,he.X$)("verticalStepTransition",[(0,he.SB)("previous",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("next",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({height:"*",visibility:"inherit"})),(0,he.eR)("* <=> current",(0,he.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:r}})])};let d=(()=>{class Mt{constructor(je){this.templateRef=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Mt})(),p=(()=>{class Mt{constructor(je){this._template=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["ng-template","matStepContent",""]]}),Mt})(),M=(()=>{class Mt extends Te{constructor(je,Pe,Qe,qe){super(je,qe),this._errorStateMatcher=Pe,this._viewContainerRef=Qe,this._isSelected=we.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ge.w)(()=>this._stepper.selectionChange.pipe((0,ce.U)(je=>je.selectedStep===this),(0,U.O)(this._stepper.selected===this)))).subscribe(je=>{je&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(je,Pe){return this._errorStateMatcher.isErrorState(je,Pe)||!!(je&&je.invalid&&this.interacted)}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36((0,C.Gpc)(()=>_e)),C.Y36(ye.rD,4),C.Y36(C.s_b),C.Y36(de,8))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["mat-step"]],contentQueries:function(je,Pe,Qe){if(1&je&&(C.Suo(Qe,i,5),C.Suo(Qe,p,5)),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe.stepLabel=qe.first),C.iGM(qe=C.CRH())&&(Pe._lazyContent=qe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:ye.rD,useExisting:Mt},{provide:Te,useExisting:Mt}]),C.qOj],ngContentSelectors:gt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(je,Pe){1&je&&(C.F$t(),C.YNc(0,Je,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),Mt})(),_e=(()=>{class Mt extends v{constructor(je,Pe,Qe){super(je,Pe,Qe),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new E.x,this._animationDuration="";const qe=Qe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===qe?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(je){this._animationDuration=/^\d+$/.test(je)?je+"ms":je}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:je,templateRef:Pe})=>this._iconOverrides[je]=Pe),this.steps.changes.pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ze.x)((je,Pe)=>je.fromState===Pe.fromState&&je.toState===Pe.toState),(0,_.R)(this._destroyed)).subscribe(je=>{"current"===je.toState&&this.animationDone.emit()})}_stepIsNavigable(je,Pe){return Pe.completed||this.selectedIndex===je||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:r}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(A.Is,8),C.Y36(C.sBO),C.Y36(C.SBq))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(je,Pe,Qe){if(1&je&&(C.Suo(Qe,M,5),C.Suo(Qe,d,5)),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe._steps=qe),C.iGM(qe=C.CRH())&&(Pe._icons=qe)}},viewQuery:function(je,Pe){if(1&je&&C.Gf(n,5),2&je){let Qe;C.iGM(Qe=C.CRH())&&(Pe._stepHeader=Qe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(je,Pe){2&je&&(C.uIk("aria-orientation",Pe.orientation),C.ekj("mat-stepper-horizontal","horizontal"===Pe.orientation)("mat-stepper-vertical","vertical"===Pe.orientation)("mat-stepper-label-position-end","horizontal"===Pe.orientation&&"end"==Pe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Pe.orientation&&"bottom"==Pe.labelPosition)("mat-stepper-header-position-bottom","bottom"===Pe.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:v,useExisting:Mt}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(je,Pe){1&je&&(C.ynx(0,0),C.YNc(1,be,5,2,"div",1),C.YNc(2,P,2,1,"ng-container",2),C.BQk(),C.YNc(3,H,1,23,"ng-template",null,3,C.W1O)),2&je&&(C.Q6J("ngSwitch",Pe.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},dependencies:[q.sg,q.O5,q.tP,q.RF,q.n9,n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),Mt})(),Vt=(()=>{class Mt extends B{}return Mt.\u0275fac=function(){let ft;return function(Pe){return(ft||(ft=C.n5z(Mt)))(Pe||Mt)}}(),Mt.\u0275dir=C.lG2({type:Mt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(je,Pe){2&je&&C.Ikx("type",Pe.type)},inputs:{type:"type"},features:[C.qOj]}),Mt})(),on=(()=>{class Mt{}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275mod=C.oAB({type:Mt}),Mt.\u0275inj=C.cJS({providers:[l,ye.rD],imports:[ye.BQ,q.ez,e.eL,ue.ot,W,Me.Ps,ye.si,ye.BQ]}),Mt})()},30671:(Ye,pe,h)=>{"use strict";h.d(pe,{ev:()=>jt,Dz:()=>ze,w1:()=>Re,ge:()=>st,fO:()=>tt,XQ:()=>mn,as:()=>cn,Gk:()=>Rt,nj:()=>sn,BZ:()=>ve,by:()=>xt,p0:()=>An});var e=h(94650),c=h(40445),A=h(21281),w=h(95017),g=h(83353),C=h(67376),T=h(36895),E=h(77579),S=h(32076),U=h(61135),_=h(45191),V=h(39646),z=h(82722),Q=h(95698);const te=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function de(rt){return class extends rt{constructor(...vt){super(...vt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(vt){const ot=this._sticky;this._sticky=(0,A.Ig)(vt),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const vt=this._hasStickyChanged;return this._hasStickyChanged=!1,vt}resetStickyChanged(){this._hasStickyChanged=!1}}}const Te=new e.OlP("CDK_TABLE");let L=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellDef",""]]}),rt})(),B=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderCellDef",""]]}),rt})(),W=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterCellDef",""]]}),rt})();class q{}const ue=de(q);let ye=(()=>{class rt 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 $e=this._stickyEnd;this._stickyEnd=(0,A.Ig)(ot),this._hasStickyChanged=$e!==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 rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,$e,At){if(1&ot&&(e.Suo(At,L,5),e.Suo(At,B,5),e.Suo(At,W,5)),2&ot){let Z;e.iGM(Z=e.CRH())&&($e.cell=Z.first),e.iGM(Z=e.CRH())&&($e.headerCell=Z.first),e.iGM(Z=e.CRH())&&($e.footerCell=Z.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})();class Me{constructor(vt,ot){ot.nativeElement.classList.add(...vt._columnCssClassName)}}let we=(()=>{class rt extends Me{constructor(ot,$e){super(ot,$e)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),rt})(),ce=(()=>{class rt extends Me{constructor(ot,$e){var At;if(super(ot,$e),1===(null===(At=ot._table)||void 0===At?void 0:At._elementRef.nativeElement.nodeType)){const Z=ot._table._elementRef.nativeElement.getAttribute("role");$e.nativeElement.setAttribute("role","grid"===Z||"treegrid"===Z?"gridcell":"cell")}}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),rt})();class Ze{constructor(){this.tasks=[],this.endTasks=[]}}const he=new e.OlP("_COALESCED_STYLE_SCHEDULER");let xe=(()=>{class rt{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new E.x}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 Ze,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new Ze;for(const $e of ot.tasks)$e();for(const $e of ot.endTasks)$e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,S.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Q.q)(1))}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.LFG(e.R0b))},rt.\u0275prov=e.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),R=(()=>{class rt{constructor(ot,$e){this.template=ot,this._differs=$e}ngOnChanges(ot){if(!this._columnsDiffer){const $e=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find($e).create(),this._columnsDiffer.diff($e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof $?ot.headerCell.template:this instanceof ct?ot.footerCell.template:ot.cell.template}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},rt.\u0275dir=e.lG2({type:rt,features:[e.TTD]}),rt})();class G extends R{}const se=de(G);let $=(()=>{class rt extends se{constructor(ot,$e,At){super(ot,$e),this._table=At}ngOnChanges(ot){super.ngOnChanges(ot)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})();class Ee extends R{}const Oe=de(Ee);let ct=(()=>{class rt extends Oe{constructor(ot,$e,At){super(ot,$e),this._table=At}ngOnChanges(ot){super.ngOnChanges(ot)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})(),Xe=(()=>{class rt extends R{constructor(ot,$e,At){super(ot,$e),this._table=At}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),rt})(),_t=(()=>{class rt{constructor(ot){this._viewContainer=ot,rt.mostRecentCellOutlet=this}ngOnDestroy(){rt.mostRecentCellOutlet===this&&(rt.mostRecentCellOutlet=null)}}return rt.mostRecentCellOutlet=null,rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellOutlet",""]]}),rt})(),Je=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Y=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Ce=(()=>{class rt{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["ng-template","cdkNoDataRow",""]]}),rt})();const ae=["top","bottom","left","right"];class re{constructor(vt,ot,$e,At,Z=!0,ke=!0,mt){this._isNativeHtmlTable=vt,this._stickCellCss=ot,this.direction=$e,this._coalescedStyleScheduler=At,this._isBrowser=Z,this._needsPositionStickyOnElement=ke,this._positionListener=mt,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(vt,ot){const $e=[];for(const At of vt)if(At.nodeType===At.ELEMENT_NODE){$e.push(At);for(let Z=0;Z{for(const At of $e)this._removeStickyStyle(At,ot)})}updateStickyColumns(vt,ot,$e,At=!0){if(!vt.length||!this._isBrowser||!ot.some(Ln=>Ln)&&!$e.some(Ln=>Ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Z=vt[0],ke=Z.children.length,mt=this._getCellWidths(Z,At),St=this._getStickyStartColumnPositions(mt,ot),tn=this._getStickyEndColumnPositions(mt,$e),En=ot.lastIndexOf(!0),jn=$e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ln="rtl"===this.direction,Kn=Ln?"right":"left",li=Ln?"left":"right";for(const ci of vt)for(let Wn=0;Wnot[Wn]?ci:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===jn?[]:mt.slice(jn).map((ci,Wn)=>$e[Wn+jn]?ci:null).reverse()}))})}stickRows(vt,ot,$e){if(!this._isBrowser)return;const At="bottom"===$e?vt.slice().reverse():vt,Z="bottom"===$e?ot.slice().reverse():ot,ke=[],mt=[],St=[];for(let En=0,jn=0;En{for(let Ln=0;Ln{ot.some(At=>!At)?this._removeStickyStyle($e,["bottom"]):this._addStickyStyle($e,"bottom",0,!1)})}_removeStickyStyle(vt,ot){for(const At of ot)vt.style[At]="",vt.classList.remove(this._borderCellCss[At]);ae.some(At=>-1===ot.indexOf(At)&&vt.style[At])?vt.style.zIndex=this._getCalculatedZIndex(vt):(vt.style.zIndex="",this._needsPositionStickyOnElement&&(vt.style.position=""),vt.classList.remove(this._stickCellCss))}_addStickyStyle(vt,ot,$e,At){vt.classList.add(this._stickCellCss),At&&vt.classList.add(this._borderCellCss[ot]),vt.style[ot]=`${$e}px`,vt.style.zIndex=this._getCalculatedZIndex(vt),this._needsPositionStickyOnElement&&(vt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(vt){const ot={top:100,bottom:10,left:1,right:1};let $e=0;for(const At of ae)vt.style[At]&&($e+=ot[At]);return $e?`${$e}`:""}_getCellWidths(vt,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const $e=[],At=vt.children;for(let Z=0;Z0;Z--)ot[Z]&&($e[Z]=At,At+=vt[Z]);return $e}}const f=new e.OlP("CDK_SPL");let a=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","rowOutlet",""]]}),rt})(),n=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","headerRowOutlet",""]]}),rt})(),t=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","footerRowOutlet",""]]}),rt})(),r=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","noDataRowOutlet",""]]}),rt})(),p=(()=>{class rt{constructor(ot,$e,At,Z,ke,mt,St,tn,En,jn,Ln,Kn){this._differs=ot,this._changeDetectorRef=$e,this._elementRef=At,this._dir=ke,this._platform=St,this._viewRepeater=tn,this._coalescedStyleScheduler=En,this._viewportRuler=jn,this._stickyPositioningListener=Ln,this._ngZone=Kn,this._onDestroy=new E.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new U.X({start:0,end:Number.MAX_VALUE}),Z||this._elementRef.nativeElement.setAttribute("role","table"),this._document=mt,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,A.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,A.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,$e)=>this.trackBy?this.trackBy($e.dataIndex,$e.data):$e),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const $e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||$e,this._forceRecalculateCellWidths=$e,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,w.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 $e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,$e,(At,Z,ke)=>this._getEmbeddedViewArgs(At.item,ke),At=>At.item.data,At=>{1===At.operation&&At.context&&this._renderCellTemplateForItem(At.record.item.rowDef,At.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(At=>{$e.get(At.currentIndex).context.$implicit=At.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Q.q)(1),(0,z.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),At=this._elementRef.nativeElement.querySelector("thead");At&&(At.style.display=ot.length?"":"none");const Z=this._headerRowDefs.map(ke=>ke.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,Z,"top"),this._headerRowDefs.forEach(ke=>ke.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),At=this._elementRef.nativeElement.querySelector("tfoot");At&&(At.style.display=ot.length?"":"none");const Z=this._footerRowDefs.map(ke=>ke.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,Z,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Z),this._footerRowDefs.forEach(ke=>ke.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),$e=this._getRenderedRows(this._rowOutlet),At=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...$e,...At],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((Z,ke)=>{this._addStickyColumnStyles([Z],this._headerRowDefs[ke])}),this._rowDefs.forEach(Z=>{const ke=[];for(let mt=0;mt<$e.length;mt++)this._renderRows[mt].rowDef===Z&&ke.push($e[mt]);this._addStickyColumnStyles(ke,Z)}),At.forEach((Z,ke)=>{this._addStickyColumnStyles([Z],this._footerRowDefs[ke])}),Array.from(this._columnDefsByName.values()).forEach(Z=>Z.resetStickyChanged())}_getAllRenderRows(){const ot=[],$e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let At=0;At{const mt=At&&At.has(ke)?At.get(ke):[];if(mt.length){const St=mt.shift();return St.dataIndex=$e,St}return{data:ot,rowDef:ke,dataIndex:$e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),M(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach($e=>{this._columnDefsByName.has($e.name),this._columnDefsByName.set($e.name,$e)})}_cacheRowDefs(){this._headerRowDefs=M(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=M(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=M(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter($e=>!$e.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(ke,mt)=>ke||!!mt.getColumnsDiff(),$e=this._rowDefs.reduce(ot,!1);$e&&this._forceRenderDataRows();const At=this._headerRowDefs.reduce(ot,!1);At&&this._forceRenderHeaderRows();const Z=this._footerRowDefs.reduce(ot,!1);return Z&&this._forceRenderFooterRows(),$e||At||Z}_switchDataSource(ot){this._data=[],(0,w.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,w.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,_.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,V.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,z.R)(this._onDestroy)).subscribe($e=>{this._data=$e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,$e)=>this._renderRow(this._headerRowOutlet,ot,$e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,$e)=>this._renderRow(this._footerRowOutlet,ot,$e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,$e){const At=Array.from($e.columns||[]).map(mt=>this._columnDefsByName.get(mt)),Z=At.map(mt=>mt.sticky),ke=At.map(mt=>mt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,Z,ke,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const $e=[];for(let At=0;At!Z.when||Z.when($e,ot));else{let Z=this._rowDefs.find(ke=>ke.when&&ke.when($e,ot))||this._defaultRowDef;Z&&At.push(Z)}return At}_getEmbeddedViewArgs(ot,$e){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:$e}}_renderRow(ot,$e,At,Z={}){const ke=ot.viewContainer.createEmbeddedView($e.template,Z,At);return this._renderCellTemplateForItem($e,Z),ke}_renderCellTemplateForItem(ot,$e){for(let At of this._getCellTemplates(ot))_t.mostRecentCellOutlet&&_t.mostRecentCellOutlet._viewContainer.createEmbeddedView(At,$e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let $e=0,At=ot.length;$e{const At=this._columnDefsByName.get($e);return ot.extractCellTemplate(At)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),$e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const At of $e){const Z=this._document.createElement(At.tag);Z.setAttribute("role","rowgroup");for(const ke of At.outlets)Z.appendChild(ke.elementRef.nativeElement);ot.appendChild(Z)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=($e,At)=>$e||At.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 re(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,V.of)()).pipe((0,z.R)(this._onDestroy)).subscribe($e=>{this._stickyStyler.direction=$e,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter($e=>!$e._table||$e._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const $e=0===this._rowOutlet.viewContainer.length;if($e===this._isShowingNoDataRow)return;const At=this._noDataRowOutlet.viewContainer;if($e){const Z=At.createEmbeddedView(ot.templateRef),ke=Z.rootNodes[0];1===Z.rootNodes.length&&ke?.nodeType===this._document.ELEMENT_NODE&&(ke.setAttribute("role","row"),ke.classList.add(ot._contentClassName))}else At.clear();this._isShowingNoDataRow=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(c.Is,8),e.Y36(T.K0),e.Y36(g.t4),e.Y36(w.k),e.Y36(he),e.Y36(C.rL),e.Y36(f,12),e.Y36(e.R0b,8))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,$e,At){if(1&ot&&(e.Suo(At,Ce,5),e.Suo(At,ye,5),e.Suo(At,Xe,5),e.Suo(At,$,5),e.Suo(At,ct,5)),2&ot){let Z;e.iGM(Z=e.CRH())&&($e._noDataRow=Z.first),e.iGM(Z=e.CRH())&&($e._contentColumnDefs=Z),e.iGM(Z=e.CRH())&&($e._contentRowDefs=Z),e.iGM(Z=e.CRH())&&($e._contentHeaderRowDefs=Z),e.iGM(Z=e.CRH())&&($e._contentFooterRowDefs=Z)}},viewQuery:function(ot,$e){if(1&ot&&(e.Gf(a,7),e.Gf(n,7),e.Gf(t,7),e.Gf(r,7)),2&ot){let At;e.iGM(At=e.CRH())&&($e._rowOutlet=At.first),e.iGM(At=e.CRH())&&($e._headerRowOutlet=At.first),e.iGM(At=e.CRH())&&($e._footerRowOutlet=At.first),e.iGM(At=e.CRH())&&($e._noDataRowOutlet=At.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("cdk-table-fixed-layout",$e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Te,useExisting:rt},{provide:w.k,useClass:w.yy},{provide:he,useClass:xe},{provide:f,useValue:null}])],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(te),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,r],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})();function M(rt,vt){return rt.concat(Array.from(vt))}let Vt=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[C.Cl]}),rt})();var on=h(3238),Mt=h(56451),ft=h(39841),je=h(54004);const Pe=[[["caption"]],[["colgroup"],["col"]]],Qe=["caption","colgroup, col"];let ve=(()=>{class rt extends p{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("mat-table-fixed-layout",$e.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:w.k,useClass:w.yy},{provide:p,useExisting:rt},{provide:Te,useExisting:rt},{provide:he,useClass:xe},{provide:f,useValue:null}]),e.qOj],ngContentSelectors:Qe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(Pe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,r],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})(),ze=(()=>{class rt extends L{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:L,useExisting:rt}]),e.qOj]}),rt})(),tt=(()=>{class rt extends B{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:B,useExisting:rt}]),e.qOj]}),rt})(),Re=(()=>{class rt extends ye{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:ye,useExisting:rt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})(),st=(()=>{class rt extends we{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),rt})(),jt=(()=>{class rt extends ce{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),rt})(),cn=(()=>{class rt extends ${}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:$,useExisting:rt}]),e.qOj]}),rt})(),sn=(()=>{class rt extends Xe{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Xe,useExisting:rt}]),e.qOj]}),rt})(),mn=(()=>{class rt extends Je{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Je,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Rt=(()=>{class rt extends Y{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Y,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),An=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[Vt,on.BQ,on.BQ]}),rt})();class $t extends w.o2{constructor(vt=[]){super(),this._renderData=new U.X([]),this._filter=new U.X(""),this._internalPageChanges=new E.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,$e)=>{const At=ot[$e];if((0,A.t6)(At)){const Z=Number(At);return Z<9007199254740991?Z:At}return At},this.sortData=(ot,$e)=>{const At=$e.active,Z=$e.direction;return At&&""!=Z?ot.sort((ke,mt)=>{let St=this.sortingDataAccessor(ke,At),tn=this.sortingDataAccessor(mt,At);const En=typeof St,jn=typeof tn;En!==jn&&("number"===En&&(St+=""),"number"===jn&&(tn+=""));let Ln=0;return null!=St&&null!=tn?St>tn?Ln=1:St{const At=Object.keys(ot).reduce((ke,mt)=>ke+ot[mt]+"\u25ec","").toLowerCase(),Z=$e.trim().toLowerCase();return-1!=At.indexOf(Z)},this._data=new U.X(vt),this._updateChangeSubscription()}get data(){return this._data.value}set data(vt){vt=Array.isArray(vt)?vt:[],this._data.next(vt),this._renderChangesSubscription||this._filterData(vt)}get filter(){return this._filter.value}set filter(vt){this._filter.next(vt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(vt){this._sort=vt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(vt){this._paginator=vt,this._updateChangeSubscription()}_updateChangeSubscription(){var vt;const ot=this._sort?(0,Mt.T)(this._sort.sortChange,this._sort.initialized):(0,V.of)(null),$e=this._paginator?(0,Mt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,V.of)(null),Z=(0,ft.a)([this._data,this._filter]).pipe((0,je.U)(([St])=>this._filterData(St))),ke=(0,ft.a)([Z,ot]).pipe((0,je.U)(([St])=>this._orderData(St))),mt=(0,ft.a)([ke,$e]).pipe((0,je.U)(([St])=>this._pageData(St)));null===(vt=this._renderChangesSubscription)||void 0===vt||vt.unsubscribe(),this._renderChangesSubscription=mt.subscribe(St=>this._renderData.next(St))}_filterData(vt){return this.filteredData=null==this.filter||""===this.filter?vt:vt.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(vt){return this.sort?this.sortData(vt.slice(),this.sort):vt}_pageData(vt){if(!this.paginator)return vt;const ot=this.paginator.pageIndex*this.paginator.pageSize;return vt.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(vt){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=vt,ot.pageIndex>0)){const $e=Math.ceil(ot.length/ot.pageSize)-1||0,At=Math.min(ot.pageIndex,$e);At!==ot.pageIndex&&(ot.pageIndex=At,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var vt;null===(vt=this._renderChangesSubscription)||void 0===vt||vt.unsubscribe(),this._renderChangesSubscription=null}}class xt extends $t{}},3848:(Ye,pe,h)=>{"use strict";h.d(pe,{Nh:()=>ze,SP:()=>ft,Vc:()=>ae,uD:()=>Fe,uX:()=>P});var e=h(12687),c=h(49643),A=h(84080),w=h(36895),g=h(94650),C=h(3238),T=h(95698),E=h(68675),S=h(71884),U=h(82722),_=h(63900),V=h(35684),z=h(77579),Q=h(50727),te=h(54968),oe=h(39646),ee=h(56451),le=h(60515),de=h(69751),Te=h(82805),v=h(40445),L=h(37340),B=h(21281),W=h(67376),q=h(83353),ue=h(29521);function ye(tt,at){1&tt&&g.Hsn(0)}const Me=["*"];function we(tt,at){}const Ge=function(tt){return{animationDuration:tt}},ce=function(tt,at){return{value:tt,params:at}},Ze=["tabListContainer"],he=["tabList"],xe=["tabListInner"],j=["nextPaginator"],R=["previousPaginator"],G=["tabBodyWrapper"],se=["tabHeader"];function $(tt,at){}function Ee(tt,at){if(1&tt&&g.YNc(0,$,0,0,"ng-template",10),2&tt){const Re=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",Re.templateLabel)}}function Oe(tt,at){if(1&tt&&g._uU(0),2&tt){const Re=g.oxw().$implicit;g.Oqu(Re.textLabel)}}function ct(tt,at){if(1&tt){const Re=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const Pt=g.CHM(Re),jt=Pt.$implicit,cn=Pt.index,Xt=g.oxw(),sn=g.MAs(1);return g.KtG(Xt._handleClick(jt,sn,cn))})("cdkFocusChange",function(Pt){const cn=g.CHM(Re).index,Xt=g.oxw();return g.KtG(Xt._tabFocusChanged(Pt,cn))}),g.TgZ(1,"div",7),g.YNc(2,Ee,1,1,"ng-template",8),g.YNc(3,Oe,1,1,"ng-template",null,9,g.W1O),g.qZA()()}if(2&tt){const Re=at.$implicit,st=at.index,Pt=g.MAs(4),jt=g.oxw();g.ekj("mat-tab-label-active",jt.selectedIndex===st),g.Q6J("id",jt._getTabLabelId(st))("ngClass",Re.labelClass)("disabled",Re.disabled)("matRippleDisabled",Re.disabled||jt.disableRipple),g.uIk("tabIndex",jt._getTabIndex(Re,st))("aria-posinset",st+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(st))("aria-selected",jt.selectedIndex===st)("aria-label",Re.ariaLabel||null)("aria-labelledby",!Re.ariaLabel&&Re.ariaLabelledby?Re.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",Re.templateLabel)("ngIfElse",Pt)}}function Xe(tt,at){if(1&tt){const Re=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){g.CHM(Re);const Pt=g.oxw();return g.KtG(Pt._removeTabBodyWrapperHeight())})("_onCentering",function(Pt){g.CHM(Re);const jt=g.oxw();return g.KtG(jt._setTabBodyWrapperHeight(Pt))}),g.qZA()}if(2&tt){const Re=at.$implicit,st=at.index,Pt=g.oxw();g.ekj("mat-tab-body-active",Pt.selectedIndex===st),g.Q6J("id",Pt._getTabContentId(st))("ngClass",Re.bodyClass)("content",Re.content)("position",Re.position)("origin",Re.origin)("animationDuration",Pt.animationDuration)("preserveContent",Pt.preserveContent),g.uIk("tabindex",null!=Pt.contentTabIndex&&Pt.selectedIndex===st?Pt.contentTabIndex:null)("aria-labelledby",Pt._getTabLabelId(st))}}const Je=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function gt(){return at=>({left:at?(at.offsetLeft||0)+"px":"0",width:at?(at.offsetWidth||0)+"px":"0"})}});let Y=(()=>{class tt{constructor(Re,st,Pt,jt){this._elementRef=Re,this._ngZone=st,this._inkBarPositioner=Pt,this._animationMode=jt}alignToElement(Re){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{const st=this._inkBarPositioner(Re),Pt=this._elementRef.nativeElement;Pt.style.left=st.left,Pt.style.width=st.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Je),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Re,st){2&Re&&g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode)}}),tt})();const Ce=new g.OlP("MatTabContent");let ae=(()=>{class tt{constructor(Re){this.template=Re}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:Ce,useExisting:tt}])]}),tt})();const re=new g.OlP("MatTabLabel"),Se=new g.OlP("MAT_TAB");let Fe=(()=>{class tt extends A.ig{constructor(Re,st,Pt){super(Re,st),this._closestTab=Pt}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Se,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:re,useExisting:tt}]),g.qOj]}),tt})();const be=(0,C.Id)(class{}),Ue=new g.OlP("MAT_TAB_GROUP");let P=(()=>{class tt extends be{constructor(Re,st){super(),this._viewContainerRef=Re,this._closestTabGroup=st,this.textLabel="",this._contentPortal=null,this._stateChanges=new z.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Re){this._setTemplateLabelInput(Re)}get content(){return this._contentPortal}ngOnChanges(Re){(Re.hasOwnProperty("textLabel")||Re.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new A.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Re){Re&&Re._closestTab===this&&(this._templateLabel=Re)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.s_b),g.Y36(Ue,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab"]],contentQueries:function(Re,st,Pt){if(1&Re&&(g.Suo(Pt,re,5),g.Suo(Pt,Ce,7,g.Rgc)),2&Re){let jt;g.iGM(jt=g.CRH())&&(st.templateLabel=jt.first),g.iGM(jt=g.CRH())&&(st._explicitContent=jt.first)}},viewQuery:function(Re,st){if(1&Re&&g.Gf(g.Rgc,7),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._implicitContent=Pt.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:Se,useExisting:tt}]),g.qOj,g.TTD],ngContentSelectors:Me,decls:1,vars:0,template:function(Re,st){1&Re&&(g.F$t(),g.YNc(0,ye,1,0,"ng-template"))},encapsulation:2}),tt})();const H={translateTab:(0,L.X$)("translateTab",[(0,L.SB)("center, void, left-origin-center, right-origin-center",(0,L.oB)({transform:"none"})),(0,L.SB)("left",(0,L.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.SB)("right",(0,L.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.eR)("* => left, * => right, left => center, right => center",(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,L.eR)("void => left-origin-center",[(0,L.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,L.eR)("void => right-origin-center",[(0,L.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let i=(()=>{class tt extends A.Pl{constructor(Re,st,Pt,jt){super(Re,st,jt),this._host=Pt,this._centeringSub=Q.w0.EMPTY,this._leavingSub=Q.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,E.O)(this._host._isCenterPosition(this._host._position))).subscribe(Re=>{Re&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>f)),g.Y36(w.K0))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),tt})(),o=(()=>{class tt{constructor(Re,st,Pt){this._elementRef=Re,this._dir=st,this._dirChangeSubscription=Q.w0.EMPTY,this._translateTabComplete=new z.x,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,st&&(this._dirChangeSubscription=st.change.subscribe(jt=>{this._computePositionAnimationState(jt),Pt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)((jt,cn)=>jt.fromState===cn.fromState&&jt.toState===cn.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Re){this._positionIndex=Re,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Re){const st=this._isCenterPosition(Re.toState);this._beforeCentering.emit(st),st&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Re){return"center"==Re||"left-origin-center"==Re||"right-origin-center"==Re}_computePositionAnimationState(Re=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Re?"left":"right":this._positionIndex>0?"ltr"==Re?"right":"left":"center"}_computePositionFromOrigin(Re){const st=this._getLayoutDirection();return"ltr"==st&&Re<=0||"rtl"==st&&Re>0?"left-origin-center":"right-origin-center"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},tt.\u0275dir=g.lG2({type:tt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),tt})(),f=(()=>{class tt extends o{constructor(Re,st,Pt){super(Re,st,Pt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-body"]],viewQuery:function(Re,st){if(1&Re&&g.Gf(A.Pl,5),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._portalHost=Pt.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Re,st){1&Re&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(jt){return st._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return st._translateTabComplete.next(jt)}),g.YNc(2,we,0,0,"ng-template",2),g.qZA()),2&Re&&g.Q6J("@translateTab",g.WLB(3,ce,st._position,g.VKq(1,Ge,st.animationDuration)))},dependencies:[i],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[H.translateTab]}}),tt})();const l=new g.OlP("MAT_TABS_CONFIG"),a=(0,C.Id)(class{});let n=(()=>{class tt extends a{constructor(Re){super(),this.elementRef=Re}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Re,st){2&Re&&(g.uIk("aria-disabled",!!st.disabled),g.ekj("mat-tab-disabled",st.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),tt})();const t=(0,q.i$)({passive:!0});let p=(()=>{class tt{constructor(Re,st,Pt,jt,cn,Xt,sn){this._elementRef=Re,this._changeDetectorRef=st,this._viewportRuler=Pt,this._dir=jt,this._ngZone=cn,this._platform=Xt,this._animationMode=sn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new z.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new z.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,cn.runOutsideAngular(()=>{(0,te.R)(Re.nativeElement,"mouseleave").pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,B.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){Re=(0,B.su)(Re),this._selectedIndex!=Re&&(this._selectedIndexChanged=!0,this._selectedIndex=Re,this._keyManager&&this._keyManager.updateActiveItem(Re))}ngAfterViewInit(){(0,te.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,te.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Re=this._dir?this._dir.change:(0,oe.of)("ltr"),st=this._viewportRuler.change(150),Pt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(Pt),(0,ee.T)(Re,st,this._items.changes,this._itemsResized()).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Pt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,U.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?le.E:this._items.changes.pipe((0,E.O)(this._items),(0,_.w)(Re=>new de.y(st=>this._ngZone.runOutsideAngular(()=>{const Pt=new ResizeObserver(()=>{st.next()});return Re.forEach(jt=>{Pt.observe(jt.elementRef.nativeElement)}),()=>{Pt.disconnect()}}))),(0,V.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Re){if(!(0,ue.Vb)(Re))switch(Re.keyCode){case ue.K5:case ue.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Re));break;default:this._keyManager.onKeydown(Re)}}_onContentChanges(){const Re=this._elementRef.nativeElement.textContent;Re!==this._currentTextContent&&(this._currentTextContent=Re||"",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(Re){!this._isValidIndex(Re)||this.focusIndex===Re||!this._keyManager||this._keyManager.setActiveItem(Re)}_isValidIndex(Re){if(!this._items)return!0;const st=this._items?this._items.toArray()[Re]:null;return!!st&&!st.disabled}_setTabFocus(Re){if(this._showPaginationControls&&this._scrollToLabel(Re),this._items&&this._items.length){this._items.toArray()[Re].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Re=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Re:Re;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Re){this._scrollTo(Re)}_scrollHeader(Re){return this._scrollTo(this._scrollDistance+("before"==Re?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Re){this._stopInterval(),this._scrollHeader(Re)}_scrollToLabel(Re){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Re]:null;if(!st)return;const Pt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:cn}=st.elementRef.nativeElement;let Xt,sn;"ltr"==this._getLayoutDirection()?(Xt=jt,sn=Xt+cn):(sn=this._tabListInner.nativeElement.offsetWidth-jt,Xt=sn-cn);const mn=this.scrollDistance,Nt=this.scrollDistance+Pt;XtNt&&(this.scrollDistance+=sn-Nt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Re=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Re||(this.scrollDistance=0),Re!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Re}}_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 Re=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Re?Re.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Re,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,Te.H)(650,100).pipe((0,U.R)((0,ee.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Pt,distance:jt}=this._scrollHeader(Re);(0===jt||jt>=Pt)&&this._stopInterval()}))}_scrollTo(Re){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Re)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disablePagination:"disablePagination"}}),tt})(),M=(()=>{class tt extends p{constructor(Re,st,Pt,jt,cn,Xt,sn){super(Re,st,Pt,jt,cn,Xt,sn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Re){this._disableRipple=(0,B.Ig)(Re)}_itemSelected(Re){Re.preventDefault()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),tt})(),_e=(()=>{class tt extends M{constructor(Re,st,Pt,jt,cn,Xt,sn){super(Re,st,Pt,jt,cn,Xt,sn)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-header"]],contentQueries:function(Re,st,Pt){if(1&Re&&g.Suo(Pt,n,4),2&Re){let jt;g.iGM(jt=g.CRH())&&(st._items=jt)}},viewQuery:function(Re,st){if(1&Re&&(g.Gf(Y,7),g.Gf(Ze,7),g.Gf(he,7),g.Gf(xe,7),g.Gf(j,5),g.Gf(R,5)),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._inkBar=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListContainer=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabList=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListInner=Pt.first),g.iGM(Pt=g.CRH())&&(st._nextPaginator=Pt.first),g.iGM(Pt=g.CRH())&&(st._previousPaginator=Pt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Re,st){2&Re&&g.ekj("mat-tab-header-pagination-controls-enabled",st._showPaginationControls)("mat-tab-header-rtl","rtl"==st._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:Me,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Re,st){1&Re&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return st._handlePaginatorClick("before")})("mousedown",function(jt){return st._handlePaginatorPress("before",jt)})("touchend",function(){return st._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(jt){return st._handleKeydown(jt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return st._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA()(),g.TgZ(11,"button",9,10),g.NdJ("mousedown",function(jt){return st._handlePaginatorPress("after",jt)})("click",function(){return st._handlePaginatorClick("after")})("touchend",function(){return st._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&Re&&(g.ekj("mat-tab-header-pagination-disabled",st._disableScrollBefore),g.Q6J("matRippleDisabled",st._disableScrollBefore||st.disableRipple)("disabled",st._disableScrollBefore||null),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",st._disableScrollAfter),g.Q6J("matRippleDisabled",st._disableScrollAfter||st.disableRipple)("disabled",st._disableScrollAfter||null))},dependencies:[C.wG,c.wD,Y],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),tt})(),bt=0;class Vt{}const on=(0,C.pj)((0,C.Kr)(class{constructor(tt){this._elementRef=tt}}),"primary");let Mt=(()=>{class tt extends on{constructor(Re,st,Pt,jt){var cn;super(Re),this._changeDetectorRef=st,this._animationMode=jt,this._tabs=new g.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Q.w0.EMPTY,this._tabLabelSubscription=Q.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=bt++,this.animationDuration=Pt&&Pt.animationDuration?Pt.animationDuration:"500ms",this.disablePagination=!(!Pt||null==Pt.disablePagination)&&Pt.disablePagination,this.dynamicHeight=!(!Pt||null==Pt.dynamicHeight)&&Pt.dynamicHeight,this.contentTabIndex=null!==(cn=Pt?.contentTabIndex)&&void 0!==cn?cn:null,this.preserveContent=!(null==Pt||!Pt.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Re){this._dynamicHeight=(0,B.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){this._indexToSelect=(0,B.su)(Re,null)}get animationDuration(){return this._animationDuration}set animationDuration(Re){this._animationDuration=/^\d+$/.test(Re+"")?Re+"ms":Re}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Re){this._contentTabIndex=(0,B.su)(Re,null)}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,B.Ig)(Re)}get preserveContent(){return this._preserveContent}set preserveContent(Re){this._preserveContent=(0,B.Ig)(Re)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Re){const st=this._elementRef.nativeElement;st.classList.remove(`mat-background-${this.backgroundColor}`),Re&&st.classList.add(`mat-background-${Re}`),this._backgroundColor=Re}ngAfterContentChecked(){const Re=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Re){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Re));const Pt=this._tabBodyWrapper.nativeElement;Pt.style.minHeight=Pt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Pt,jt)=>Pt.isActive=jt===Re),st||(this.selectedIndexChange.emit(Re),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,Pt)=>{st.position=Pt-Re,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Re-this._selectedIndex)}),this._selectedIndex!==Re&&(this._selectedIndex=Re,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Re=this._clampTabIndex(this._indexToSelect);if(Re===this._selectedIndex){const st=this._tabs.toArray();let Pt;for(let jt=0;jt{st[Re].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Re))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,E.O)(this._allTabs)).subscribe(Re=>{this._tabs.reset(Re.filter(st=>st._closestTabGroup===this||!st._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(Re){const st=this._tabHeader;st&&(st.focusIndex=Re)}_focusChanged(Re){this._lastFocusedTabIndex=Re,this.focusChange.emit(this._createChangeEvent(Re))}_createChangeEvent(Re){const st=new Vt;return st.index=Re,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Re]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ee.T)(...this._tabs.map(Re=>Re._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Re){return Math.min(this._tabs.length-1,Math.max(Re||0,0))}_getTabLabelId(Re){return`mat-tab-label-${this._groupId}-${Re}`}_getTabContentId(Re){return`mat-tab-content-${this._groupId}-${Re}`}_setTabBodyWrapperHeight(Re){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Re+"px")}_removeTabBodyWrapperHeight(){const Re=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Re.clientHeight,Re.style.height="",this.animationDone.emit()}_handleClick(Re,st,Pt){Re.disabled||(this.selectedIndex=st.focusIndex=Pt)}_getTabIndex(Re,st){var Pt;return Re.disabled?null:st===(null!==(Pt=this._lastFocusedTabIndex)&&void 0!==Pt?Pt:this.selectedIndex)?0:-1}_tabFocusChanged(Re,st){Re&&"mouse"!==Re&&"touch"!==Re&&(this._tabHeader.focusIndex=st)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),tt})(),ft=(()=>{class tt extends Mt{constructor(Re,st,Pt,jt){super(Re,st,Pt,jt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(Re,st,Pt){if(1&Re&&g.Suo(Pt,P,5),2&Re){let jt;g.iGM(jt=g.CRH())&&(st._allTabs=jt)}},viewQuery:function(Re,st){if(1&Re&&(g.Gf(G,5),g.Gf(se,5)),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._tabBodyWrapper=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabHeader=Pt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Re,st){2&Re&&g.ekj("mat-tab-group-dynamic-height",st.dynamicHeight)("mat-tab-group-inverted-header","below"===st.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:Ue,useExisting:tt}]),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","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Re,st){1&Re&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(jt){return st._focusChanged(jt)})("selectFocusedIndex",function(jt){return st.selectedIndex=jt}),g.YNc(2,ct,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Xe,1,11,"mat-tab-body",5),g.qZA()),2&Re&&(g.Q6J("selectedIndex",st.selectedIndex||0)("disableRipple",st.disableRipple)("disablePagination",st.disablePagination),g.xp6(2),g.Q6J("ngForOf",st._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(2),g.Q6J("ngForOf",st._tabs))},dependencies:[w.mk,w.sg,w.O5,A.Pl,C.wG,e.kH,n,f,_e],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),tt})(),ze=(()=>{class tt{}return tt.\u0275fac=function(Re){return new(Re||tt)},tt.\u0275mod=g.oAB({type:tt}),tt.\u0275inj=g.cJS({imports:[w.ez,C.BQ,A.eL,C.si,c.Q8,e.rt,C.BQ]}),tt})()},10266:(Ye,pe,h)=>{"use strict";h.d(pe,{AV:()=>he,gM:()=>Ge});var e=h(98184),c=h(12687),A=h(36895),w=h(94650),g=h(3238),C=h(67376),T=h(40445),E=h(21281),S=h(29521),U=h(62289),_=h(83353),V=h(84080),z=h(77579),Q=h(82722),te=h(95698);h(37340);const ee=["tooltip"],Te="tooltip-panel",v=(0,_.i$)({passive:!0}),W=new w.OlP("mat-tooltip-scroll-strategy"),ue={provide:W,deps:[e.aV],useFactory:function q(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},ye=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let we=(()=>{class j{constructor(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce){this._overlay=G,this._elementRef=se,this._scrollDispatcher=$,this._viewContainerRef=Ee,this._ngZone=Oe,this._platform=ct,this._ariaDescriber=Xe,this._focusMonitor=_t,this._dir=gt,this._defaultOptions=Y,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 z.x,this._scrollStrategy=Je,this._document=Ce,Y&&(Y.position&&(this.position=Y.position),Y.touchGestures&&(this.touchGestures=Y.touchGestures)),gt.change.pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(G){var se;G!==this._position&&(this._position=G,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(G){this._disabled=(0,E.Ig)(G),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(G){this._showDelay=(0,E.su)(G)}get hideDelay(){return this._hideDelay}set hideDelay(G){this._hideDelay=(0,E.su)(G),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(G){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=G?String(G).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(G){this._tooltipClass=G,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Q.R)(this._destroyed)).subscribe(G=>{G?"keyboard"===G&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const G=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([se,$])=>{G.removeEventListener(se,$,v)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(G,this.message,"tooltip"),this._focusMonitor.stopMonitoring(G)}show(G=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 V.C5(this._tooltipComponent,this._viewContainerRef);const $=this._tooltipInstance=se.attach(this._portal).instance;$._triggerElement=this._elementRef.nativeElement,$._mouseLeaveHideDelay=this._hideDelay,$.afterHidden().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),$.show(G)}hide(G=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(G)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var G;if(this._overlayRef)return this._overlayRef;const se=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),$=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(se);return $.positionChanges.pipe((0,Q.R)(this._destroyed)).subscribe(Ee=>{this._updateCurrentPositionClass(Ee.connectionPair),this._tooltipInstance&&Ee.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:$,panelClass:`${this._cssClassPrefix}-${Te}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Q.R)(this._destroyed)).subscribe(()=>{var Ee;return null===(Ee=this._tooltipInstance)||void 0===Ee?void 0:Ee._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Q.R)(this._destroyed)).subscribe(Ee=>{this._isTooltipVisible()&&Ee.keyCode===S.hY&&!(0,S.Vb)(Ee)&&(Ee.preventDefault(),Ee.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(G=this._defaultOptions)&&void 0!==G&&G.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(G){const se=G.getConfig().positionStrategy,$=this._getOrigin(),Ee=this._getOverlayPosition();se.withPositions([this._addOffset({...$.main,...Ee.main}),this._addOffset({...$.fallback,...Ee.fallback})])}_addOffset(G){return G}_getOrigin(){const G=!this._dir||"ltr"==this._dir.value,se=this.position;let $;"above"==se||"below"==se?$={originX:"center",originY:"above"==se?"top":"bottom"}:"before"==se||"left"==se&&G||"right"==se&&!G?$={originX:"start",originY:"center"}:("after"==se||"right"==se&&G||"left"==se&&!G)&&($={originX:"end",originY:"center"});const{x:Ee,y:Oe}=this._invertPosition($.originX,$.originY);return{main:$,fallback:{originX:Ee,originY:Oe}}}_getOverlayPosition(){const G=!this._dir||"ltr"==this._dir.value,se=this.position;let $;"above"==se?$={overlayX:"center",overlayY:"bottom"}:"below"==se?$={overlayX:"center",overlayY:"top"}:"before"==se||"left"==se&&G||"right"==se&&!G?$={overlayX:"end",overlayY:"center"}:("after"==se||"right"==se&&G||"left"==se&&!G)&&($={overlayX:"start",overlayY:"center"});const{x:Ee,y:Oe}=this._invertPosition($.overlayX,$.overlayY);return{main:$,fallback:{overlayX:Ee,overlayY:Oe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,te.q)(1),(0,Q.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(G){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=G,this._tooltipInstance._markForCheck())}_invertPosition(G,se){return"above"===this.position||"below"===this.position?"top"===se?se="bottom":"bottom"===se&&(se="top"):"end"===G?G="start":"start"===G&&(G="end"),{x:G,y:se}}_updateCurrentPositionClass(G){const{overlayY:se,originX:$,originY:Ee}=G;let Oe;if(Oe="center"===se?this._dir&&"rtl"===this._dir.value?"end"===$?"left":"right":"start"===$?"left":"right":"bottom"===se&&"top"===Ee?"above":"below",Oe!==this._currentPosition){const ct=this._overlayRef;if(ct){const Xe=`${this._cssClassPrefix}-${Te}-`;ct.removePanelClass(Xe+this._currentPosition),ct.addPanelClass(Xe+Oe)}this._currentPosition=Oe}}_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 G=[];if(this._platformSupportsMouseEvents())G.push(["mouseleave",se=>{var $;const Ee=se.relatedTarget;(!Ee||null===($=this._overlayRef)||void 0===$||!$.overlayElement.contains(Ee))&&this.hide()}],["wheel",se=>this._wheelListener(se)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const se=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};G.push(["touchend",se],["touchcancel",se])}this._addListeners(G),this._passiveListeners.push(...G)}_addListeners(G){G.forEach(([se,$])=>{this._elementRef.nativeElement.addEventListener(se,$,v)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(G){if(this._isTooltipVisible()){const se=this._document.elementFromPoint(G.clientX,G.clientY),$=this._elementRef.nativeElement;se!==$&&!$.contains(se)&&this.hide()}}_disableNativeGesturesIfNecessary(){const G=this.touchGestures;if("off"!==G){const se=this._elementRef.nativeElement,$=se.style;("on"===G||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName)&&($.userSelect=$.msUserSelect=$.webkitUserSelect=$.MozUserSelect="none"),("on"===G||!se.draggable)&&($.webkitUserDrag="none"),$.touchAction="none",$.webkitTapHighlightColor="transparent"}}}return j.\u0275fac=function(G){w.$Z()},j.\u0275dir=w.lG2({type:j,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),j})(),Ge=(()=>{class j extends we{constructor(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce){super(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce),this._tooltipComponent=Ze}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(C.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(_.t4),w.Y36(c.$s),w.Y36(c.tE),w.Y36(W),w.Y36(T.Is,8),w.Y36(ye,8),w.Y36(A.K0))},j.\u0275dir=w.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),j})(),ce=(()=>{class j{constructor(G,se){this._changeDetectorRef=G,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.x,this._animationsDisabled="NoopAnimations"===se}show(G){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},G)}hide(G){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},G)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:G}){(!G||!this._triggerElement.contains(G))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:G}){(G===this._showAnimation||G===this._hideAnimation)&&this._finalizeAnimation(G===this._showAnimation)}_finalizeAnimation(G){G?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(G){const se=this._tooltip.nativeElement,$=this._showAnimation,Ee=this._hideAnimation;if(se.classList.remove(G?Ee:$),se.classList.add(G?$:Ee),this._isVisible=G,G&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Oe=getComputedStyle(se);("0s"===Oe.getPropertyValue("animation-duration")||"none"===Oe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}G&&this._onShow(),this._animationsDisabled&&(se.classList.add("_mat-animation-noopable"),this._finalizeAnimation(G))}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(w.QbO,8))},j.\u0275dir=w.lG2({type:j}),j})(),Ze=(()=>{class j extends ce{constructor(G,se,$){super(G,$),this._breakpointObserver=se,this._isHandset=this._breakpointObserver.observe(U.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(U.Yg),w.Y36(w.QbO,8))},j.\u0275cmp=w.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(G,se){if(1&G&&w.Gf(ee,7),2&G){let $;w.iGM($=w.CRH())&&(se._tooltip=$.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(G,se){1&G&&w.NdJ("mouseleave",function(Ee){return se._handleMouseLeave(Ee)}),2&G&&w.Udp("zoom",se.isVisible()?1:null)},features:[w.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(G,se){if(1&G&&(w.TgZ(0,"div",0,1),w.NdJ("animationend",function(Ee){return se._handleAnimationEnd(Ee)}),w.ALo(2,"async"),w._uU(3),w.qZA()),2&G){let $;w.ekj("mat-tooltip-handset",null==($=w.lcZ(2,4,se._isHandset))?null:$.matches),w.Q6J("ngClass",se.tooltipClass),w.xp6(3),w.Oqu(se.message)}},dependencies:[A.mk,A.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),j})(),he=(()=>{class j{}return j.\u0275fac=function(G){return new(G||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({providers:[ue],imports:[c.rt,A.ez,e.U8,g.BQ,g.BQ,C.ZD]}),j})()},35423:(Ye,pe,h)=>{"use strict";h.d(pe,{Ar:()=>te,GZ:()=>z,JZ:()=>Te,WX:()=>L,dp:()=>de,eu:()=>ee,fQ:()=>V,gi:()=>oe,kc:()=>v,uo:()=>_});var e=h(57851),c=h(94650),A=h(3238),w=h(21281),g=h(95017),C=h(61135),T=h(56451),E=h(95698),S=h(54004);const U=(0,A.sb)((0,A.Id)(e.Hs));let _=(()=>{class B extends U{constructor(q,ue,ye){super(q,ue),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.SBq),c.Y36(e._0),c.$8M("tabindex"))},B.\u0275dir=c.lG2({type:B,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[c._Bn([{provide:e.Hs,useExisting:B}]),c.qOj]}),B})(),V=(()=>{class B extends e.rO{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[c._Bn([{provide:e.rO,useExisting:B}]),c.qOj]}),B})(),z=(()=>{class B extends e.Xx{constructor(q,ue,ye,Me){super(q,ue,ye),this._disabled=!1,this.tabIndex=Number(Me)||0}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=q??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.SBq),c.Y36(e._0),c.Y36(c.ZZ4),c.$8M("tabindex"))},B.\u0275dir=c.lG2({type:B,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[c._Bn([{provide:e.Xx,useExisting:B},{provide:e.Hs,useExisting:B},{provide:e.HI,useExisting:B}]),c.qOj]}),B})(),te=(()=>{class B{constructor(q,ue){this.viewContainer=q,this._node=ue}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.s_b),c.Y36(e.HI,8))},B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeOutlet",""]],features:[c._Bn([{provide:e.cu,useExisting:B}])]}),B})(),oe=(()=>{class B extends e._0{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275cmp=c.Xpm({type:B,selectors:[["mat-tree"]],viewQuery:function(q,ue){if(1&q&&c.Gf(te,7),2&q){let ye;c.iGM(ye=c.CRH())&&(ue._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[c._Bn([{provide:e._0,useExisting:B}]),c.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(q,ue){1&q&&c.GkF(0,0)},dependencies:[te],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),B})(),ee=(()=>{class B extends e.Ud{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[c._Bn([{provide:e.Ud,useExisting:B}]),c.qOj]}),B})(),de=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=c.oAB({type:B}),B.\u0275inj=c.cJS({imports:[e.nZ,A.BQ,A.BQ]}),B})();class Te{constructor(W,q,ue,ye){this.transformFunction=W,this.getLevel=q,this.isExpandable=ue,this.getChildren=ye}_flattenNode(W,q,ue,ye){const Me=this.transformFunction(W,q);if(ue.push(Me),this.isExpandable(Me)){const we=this.getChildren(W);we&&(Array.isArray(we)?this._flattenChildren(we,q,ue,ye):we.pipe((0,E.q)(1)).subscribe(Ge=>{this._flattenChildren(Ge,q,ue,ye)}))}return ue}_flattenChildren(W,q,ue,ye){W.forEach((Me,we)=>{let Ge=ye.slice();Ge.push(we!=W.length-1),this._flattenNode(Me,q+1,ue,Ge)})}flattenNodes(W){let q=[];return W.forEach(ue=>this._flattenNode(ue,0,q,[])),q}expandFlattenedNodes(W,q){let ue=[],ye=[];return ye[0]=!0,W.forEach(Me=>{let we=!0;for(let Ge=0;Ge<=this.getLevel(Me);Ge++)we=we&&ye[Ge];we&&ue.push(Me),this.isExpandable(Me)&&(ye[this.getLevel(Me)+1]=q.isExpanded(Me))}),ue}}class v extends g.o2{constructor(W,q,ue){super(),this._treeControl=W,this._treeFlattener=q,this._flattenedData=new C.X([]),this._expandedData=new C.X([]),this._data=new C.X([]),ue&&(this.data=ue)}get data(){return this._data.value}set data(W){this._data.next(W),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(W){return(0,T.T)(W.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,S.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class L extends g.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(W){this._data.next(W)}connect(W){return(0,T.T)(W.viewChange,this._data).pipe((0,S.U)(()=>this.data))}disconnect(){}}},11481:(Ye,pe,h)=>{"use strict";h.d(pe,{Dx:()=>n,H7:()=>cn,b2:()=>i,q6:()=>be,se:()=>ce});var e=h(36895),c=h(94650);class A extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends A{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Ct,Ut){return Rt.addEventListener(Ct,Ut,!1),()=>{Rt.removeEventListener(Ct,Ut,!1)}}dispatchEvent(Rt,Ct){Rt.dispatchEvent(Ct)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Ct){return(Ct=Ct||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,Ct){return"window"===Ct?window:"document"===Ct?Rt:"body"===Ct?Rt.body:null}getBaseHref(Rt){const Ct=function C(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Ct?null:function E(Nt){T=T||document.createElement("a"),T.setAttribute("href",Nt);const Rt=T.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Ct)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let T,g=null;const S=new c.OlP("TRANSITION_ID"),_=[{provide:c.ip1,useFactory:function U(Nt,Rt,Ct){return()=>{Ct.get(c.CZH).donePromise.then(()=>{const Ut=(0,e.q)(),Qt=Rt.querySelectorAll(`style[ng-transition="${Nt}"]`);for(let An=0;An{class Nt{build(){return new XMLHttpRequest}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const Q=new c.OlP("EventManagerPlugins");let te=(()=>{class Nt{constructor(Ct,Ut){this._zone=Ut,this._eventNameToPlugin=new Map,Ct.forEach(Qt=>Qt.manager=this),this._plugins=Ct.slice().reverse()}addEventListener(Ct,Ut,Qt){return this._findPluginFor(Ut).addEventListener(Ct,Ut,Qt)}addGlobalEventListener(Ct,Ut,Qt){return this._findPluginFor(Ut).addGlobalEventListener(Ct,Ut,Qt)}getZone(){return this._zone}_findPluginFor(Ct){const Ut=this._eventNameToPlugin.get(Ct);if(Ut)return Ut;const Qt=this._plugins;for(let An=0;An{class Nt{constructor(){this._stylesSet=new Set}addStyles(Ct){const Ut=new Set;Ct.forEach(Qt=>{this._stylesSet.has(Qt)||(this._stylesSet.add(Qt),Ut.add(Qt))}),this.onStylesAdded(Ut)}onStylesAdded(Ct){}getAllStyles(){return Array.from(this._stylesSet)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})(),le=(()=>{class Nt extends ee{constructor(Ct){super(),this._doc=Ct,this._hostNodes=new Map,this._hostNodes.set(Ct.head,[])}_addStylesToHost(Ct,Ut,Qt){Ct.forEach(An=>{const Dt=this._doc.createElement("style");Dt.textContent=An,Qt.push(Ut.appendChild(Dt))})}addHost(Ct){const Ut=[];this._addStylesToHost(this._stylesSet,Ct,Ut),this._hostNodes.set(Ct,Ut)}removeHost(Ct){const Ut=this._hostNodes.get(Ct);Ut&&Ut.forEach(de),this._hostNodes.delete(Ct)}onStylesAdded(Ct){this._hostNodes.forEach((Ut,Qt)=>{this._addStylesToHost(Ct,Qt,Ut)})}ngOnDestroy(){this._hostNodes.forEach(Ct=>Ct.forEach(de))}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();function de(Nt){(0,e.q)().remove(Nt)}const Te={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/"},v=/%COMP%/g,B="%COMP%",W=`_nghost-${B}`,q=`_ngcontent-${B}`;function Me(Nt,Rt,Ct){for(let Ut=0;Ut{if("__ngUnwrap__"===Rt)return Nt;!1===Nt(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let ce=(()=>{class Nt{constructor(Ct,Ut,Qt){this.eventManager=Ct,this.sharedStylesHost=Ut,this.appId=Qt,this.rendererByCompId=new Map,this.defaultRenderer=new Ze(Ct)}createRenderer(Ct,Ut){if(!Ct||!Ut)return this.defaultRenderer;switch(Ut.encapsulation){case c.ifc.Emulated:{let Qt=this.rendererByCompId.get(Ut.id);return Qt||(Qt=new R(this.eventManager,this.sharedStylesHost,Ut,this.appId),this.rendererByCompId.set(Ut.id,Qt)),Qt.applyToHost(Ct),Qt}case 1:case c.ifc.ShadowDom:return new G(this.eventManager,this.sharedStylesHost,Ct,Ut);default:if(!this.rendererByCompId.has(Ut.id)){const Qt=Me(Ut.id,Ut.styles,[]);this.sharedStylesHost.addStyles(Qt),this.rendererByCompId.set(Ut.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(te),c.LFG(le),c.LFG(c.AFp))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();class Ze{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Ct){return Ct?document.createElementNS(Te[Ct]||Ct,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Ct){(j(Rt)?Rt.content:Rt).appendChild(Ct)}insertBefore(Rt,Ct,Ut){Rt&&(j(Rt)?Rt.content:Rt).insertBefore(Ct,Ut)}removeChild(Rt,Ct){Rt&&Rt.removeChild(Ct)}selectRootElement(Rt,Ct){let Ut="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Ut)throw new Error(`The selector "${Rt}" did not match any elements`);return Ct||(Ut.textContent=""),Ut}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Ct,Ut,Qt){if(Qt){Ct=Qt+":"+Ct;const An=Te[Qt];An?Rt.setAttributeNS(An,Ct,Ut):Rt.setAttribute(Ct,Ut)}else Rt.setAttribute(Ct,Ut)}removeAttribute(Rt,Ct,Ut){if(Ut){const Qt=Te[Ut];Qt?Rt.removeAttributeNS(Qt,Ct):Rt.removeAttribute(`${Ut}:${Ct}`)}else Rt.removeAttribute(Ct)}addClass(Rt,Ct){Rt.classList.add(Ct)}removeClass(Rt,Ct){Rt.classList.remove(Ct)}setStyle(Rt,Ct,Ut,Qt){Qt&(c.JOm.DashCase|c.JOm.Important)?Rt.style.setProperty(Ct,Ut,Qt&c.JOm.Important?"important":""):Rt.style[Ct]=Ut}removeStyle(Rt,Ct,Ut){Ut&c.JOm.DashCase?Rt.style.removeProperty(Ct):Rt.style[Ct]=""}setProperty(Rt,Ct,Ut){Rt[Ct]=Ut}setValue(Rt,Ct){Rt.nodeValue=Ct}listen(Rt,Ct,Ut){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Ct,we(Ut)):this.eventManager.addEventListener(Rt,Ct,we(Ut))}}function j(Nt){return"TEMPLATE"===Nt.tagName&&void 0!==Nt.content}class R extends Ze{constructor(Rt,Ct,Ut,Qt){super(Rt),this.component=Ut;const An=Me(Qt+"-"+Ut.id,Ut.styles,[]);Ct.addStyles(An),this.contentAttr=function ue(Nt){return q.replace(v,Nt)}(Qt+"-"+Ut.id),this.hostAttr=function ye(Nt){return W.replace(v,Nt)}(Qt+"-"+Ut.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Ct){const Ut=super.createElement(Rt,Ct);return super.setAttribute(Ut,this.contentAttr,""),Ut}}class G extends Ze{constructor(Rt,Ct,Ut,Qt){super(Rt),this.sharedStylesHost=Ct,this.hostEl=Ut,this.shadowRoot=Ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const An=Me(Qt.id,Qt.styles,[]);for(let Dt=0;Dt{class Nt extends oe{constructor(Ct){super(Ct)}supports(Ct){return!0}addEventListener(Ct,Ut,Qt){return Ct.addEventListener(Ut,Qt,!1),()=>this.removeEventListener(Ct,Ut,Qt)}removeEventListener(Ct,Ut,Qt){return Ct.removeEventListener(Ut,Qt)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const $=["alt","control","meta","shift"],Oe={"\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"},ct={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:Nt=>Nt.altKey,control:Nt=>Nt.ctrlKey,meta:Nt=>Nt.metaKey,shift:Nt=>Nt.shiftKey};let _t=(()=>{class Nt extends oe{constructor(Ct){super(Ct)}supports(Ct){return null!=Nt.parseEventName(Ct)}addEventListener(Ct,Ut,Qt){const An=Nt.parseEventName(Ut),Dt=Nt.eventCallback(An.fullKey,Qt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ct,An.domEventName,Dt))}static parseEventName(Ct){const Ut=Ct.toLowerCase().split("."),Qt=Ut.shift();if(0===Ut.length||"keydown"!==Qt&&"keyup"!==Qt)return null;const An=Nt._normalizeKey(Ut.pop());let Dt="";if($.forEach(xt=>{const rt=Ut.indexOf(xt);rt>-1&&(Ut.splice(rt,1),Dt+=xt+".")}),Dt+=An,0!=Ut.length||0===An.length)return null;const $t={};return $t.domEventName=Qt,$t.fullKey=Dt,$t}static getEventFullKey(Ct){let Ut="",Qt=function Je(Nt){let Rt=Nt.key;if(null==Rt){if(Rt=Nt.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===Nt.location&&ct.hasOwnProperty(Rt)&&(Rt=ct[Rt]))}return Oe[Rt]||Rt}(Ct);return Qt=Qt.toLowerCase()," "===Qt?Qt="space":"."===Qt&&(Qt="dot"),$.forEach(An=>{An!=Qt&&(0,Xe[An])(Ct)&&(Ut+=An+".")}),Ut+=Qt,Ut}static eventCallback(Ct,Ut,Qt){return An=>{Nt.getEventFullKey(An)===Ct&&Qt.runGuarded(()=>Ut(An))}}static _normalizeKey(Ct){return"esc"===Ct?"escape":Ct}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const be=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:e.bD},{provide:c.g9A,useValue:function ae(){w.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function Se(){return(0,c.RDi)(document),document},deps:[]}]),Ue=new c.OlP(""),P=[{provide:c.rWj,useClass:class V{addToWindow(Rt){c.dqk.getAngularTestability=(Ut,Qt=!0)=>{const An=Rt.findTestabilityInTree(Ut,Qt);if(null==An)throw new Error("Could not find testability for element.");return An},c.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(Ut=>{const Qt=c.dqk.getAllAngularTestabilities();let An=Qt.length,Dt=!1;const $t=function(xt){Dt=Dt||xt,An--,0==An&&Ut(Dt)};Qt.forEach(function(xt){xt.whenStable($t)})})}findTestabilityInTree(Rt,Ct,Ut){return null==Ct?null:Rt.getTestability(Ct)??(Ut?(0,e.q)().isShadowRoot(Ct)?this.findTestabilityInTree(Rt,Ct.host,!0):this.findTestabilityInTree(Rt,Ct.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],H=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function re(){return new c.qLn},deps:[]},{provide:Q,useClass:se,multi:!0,deps:[e.K0,c.R0b,c.Lbi]},{provide:Q,useClass:_t,multi:!0,deps:[e.K0]},{provide:ce,useClass:ce,deps:[te,le,c.AFp]},{provide:c.FYo,useExisting:ce},{provide:ee,useExisting:le},{provide:le,useClass:le,deps:[e.K0]},{provide:te,useClass:te,deps:[Q,c.R0b]},{provide:e.JF,useClass:z,deps:[]},[]];let i=(()=>{class Nt{constructor(Ct){}static withServerTransition(Ct){return{ngModule:Nt,providers:[{provide:c.AFp,useValue:Ct.appId},{provide:S,useExisting:c.AFp},_]}}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(Ue,12))},Nt.\u0275mod=c.oAB({type:Nt}),Nt.\u0275inj=c.cJS({providers:[...H,...P],imports:[e.ez,c.hGG]}),Nt})(),n=(()=>{class Nt{constructor(Ct){this._doc=Ct}getTitle(){return this._doc.title}setTitle(Ct){this._doc.title=Ct||""}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new Ct:function a(){return new n((0,c.LFG)(e.K0))}(),Ut},providedIn:"root"}),Nt})();typeof window<"u"&&window;let cn=(()=>{class Nt{}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new(Ct||Nt):c.LFG(sn),Ut},providedIn:"root"}),Nt})(),sn=(()=>{class Nt extends cn{constructor(Ct){super(),this._doc=Ct}sanitize(Ct,Ut){if(null==Ut)return null;switch(Ct){case c.q3G.NONE:return Ut;case c.q3G.HTML:return(0,c.qzn)(Ut,"HTML")?(0,c.z3N)(Ut):(0,c.EiD)(this._doc,String(Ut)).toString();case c.q3G.STYLE:return(0,c.qzn)(Ut,"Style")?(0,c.z3N)(Ut):Ut;case c.q3G.SCRIPT:if((0,c.qzn)(Ut,"Script"))return(0,c.z3N)(Ut);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(Ut,"URL")?(0,c.z3N)(Ut):(0,c.mCW)(String(Ut));case c.q3G.RESOURCE_URL:if((0,c.qzn)(Ut,"ResourceURL"))return(0,c.z3N)(Ut);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ct){return(0,c.JVY)(Ct)}bypassSecurityTrustStyle(Ct){return(0,c.L6k)(Ct)}bypassSecurityTrustScript(Ct){return(0,c.eBb)(Ct)}bypassSecurityTrustUrl(Ct){return(0,c.LAX)(Ct)}bypassSecurityTrustResourceUrl(Ct){return(0,c.pB0)(Ct)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new Ct:function Xt(Nt){return new sn(Nt.get(e.K0))}(c.LFG(c.zs3)),Ut},providedIn:"root"}),Nt})()},94364:(Ye,pe,h)=>{"use strict";h.d(pe,{gz:()=>$n,m2:()=>Gn,OD:()=>Ji,GZ:()=>ps,wN:()=>al,F0:()=>Ti,rH:()=>Na,yS:()=>ka,Bz:()=>ni,lC:()=>Xi});var e=h(94650),c=h(69751),A=h(50727),w=h(54482),g=h(25403);function C(){return(0,w.e)((X,ne)=>{let F=null;X._refCount++;const fe=(0,g.x)(ne,void 0,void 0,void 0,()=>{if(!X||X._refCount<=0||0<--X._refCount)return void(F=null);const He=X._connection,dt=F;F=null,He&&(!dt||He===dt)&&He.unsubscribe(),ne.unsubscribe()});X.subscribe(fe),fe.closed||(F=X.connect())})}class T extends c.y{constructor(ne,F){super(),this.source=ne,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,w.A)(ne)&&(this.lift=ne.lift)}_subscribe(ne){return this.getSubject().subscribe(ne)}getSubject(){const ne=this._subject;return(!ne||ne.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ne}=this;this._subject=this._connection=null,ne?.unsubscribe()}connect(){let ne=this._connection;if(!ne){ne=this._connection=new A.w0;const F=this.getSubject();ne.add(this.source.subscribe((0,g.x)(F,void 0,()=>{this._teardown(),F.complete()},fe=>{this._teardown(),F.error(fe)},()=>this._teardown()))),ne.closed&&(this._connection=null,ne=A.w0.EMPTY)}return ne}refCount(){return C()(this)}}var E=h(32076),S=h(39646),U=h(61135),_=h(86805),V=h(39841),z=h(97272),Q=h(49770),te=h(89635),oe=h(62843),ee=h(60515),le=h(77579),de=h(36895),Te=h(57359);function v(X,ne){return(0,w.e)((0,Te.U)(X,ne,arguments.length>=2,!0))}var L=h(39300);function B(X){return X<=0?()=>ee.E:(0,w.e)((ne,F)=>{let fe=[];ne.subscribe((0,g.x)(F,He=>{fe.push(He),X{for(const He of fe)F.next(He);F.complete()},void 0,()=>{fe=null}))})}var W=h(18068),q=h(46590),ue=h(44671);function ye(X,ne){const F=arguments.length>=2;return fe=>fe.pipe(X?(0,L.h)((He,dt)=>X(He,dt,fe)):ue.y,B(1),F?(0,q.d)(ne):(0,W.T)(()=>new _.K))}var Me=h(54004),we=h(63900),Ge=h(95698),ce=h(68675),Ze=h(86099),he=h(50590),xe=h(24351),j=h(18505),R=h(70262),G=h(22529),se=h(69718),$=h(28746),Ee=h(8189),Oe=h(11481);const ct="primary";class Xe{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const F=this.params[ne];return Array.isArray(F)?F[0]:F}return null}getAll(ne){if(this.has(ne)){const F=this.params[ne];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function _t(X){return new Xe(X)}function Je(X,ne,F){const fe=F.path.split("/");if(fe.length>X.length||"full"===F.pathMatch&&(ne.hasChildren()||fe.lengthfe[dt]===He)}return X===ne}function ae(X){return Array.prototype.concat.apply([],X)}function re(X){return X.length>0?X[X.length-1]:null}function Fe(X,ne){for(const F in X)X.hasOwnProperty(F)&&ne(X[F],F)}function be(X){return(0,e.CqO)(X)?X:(0,e.QGY)(X)?(0,E.D)(Promise.resolve(X)):(0,S.of)(X)}const H={exact:function l(X,ne,F){if(!_e(X.segments,ne.segments)||!r(X.segments,ne.segments,F)||X.numberOfChildren!==ne.numberOfChildren)return!1;for(const fe in ne.children)if(!X.children[fe]||!l(X.children[fe],ne.children[fe],F))return!1;return!0},subset:n},i={exact:function f(X,ne){return Y(X,ne)},subset:function a(X,ne){return Object.keys(ne).length<=Object.keys(X).length&&Object.keys(ne).every(F=>Ce(X[F],ne[F]))},ignored:()=>!0};function o(X,ne,F){return H[F.paths](X.root,ne.root,F.matrixParams)&&i[F.queryParams](X.queryParams,ne.queryParams)&&!("exact"===F.fragment&&X.fragment!==ne.fragment)}function n(X,ne,F){return t(X,ne,ne.segments,F)}function t(X,ne,F,fe){if(X.segments.length>F.length){const He=X.segments.slice(0,F.length);return!(!_e(He,F)||ne.hasChildren()||!r(He,F,fe))}if(X.segments.length===F.length){if(!_e(X.segments,F)||!r(X.segments,F,fe))return!1;for(const He in ne.children)if(!X.children[He]||!n(X.children[He],ne.children[He],fe))return!1;return!0}{const He=F.slice(0,X.segments.length),dt=F.slice(X.segments.length);return!!(_e(X.segments,He)&&r(X.segments,He,fe)&&X.children[ct])&&t(X.children[ct],ne,dt,fe)}}function r(X,ne,F){return ne.every((fe,He)=>i[F](X[He].parameters,fe.parameters))}class s{constructor(ne,F,fe){this.root=ne,this.queryParams=F,this.fragment=fe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return Mt.serialize(this)}}class d{constructor(ne,F){this.segments=ne,this.children=F,this.parent=null,Fe(F,(fe,He)=>fe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft(this)}}class p{constructor(ne,F){this.path=ne,this.parameters=F}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return ze(this)}}function _e(X,ne){return X.length===ne.length&&X.every((F,fe)=>F.path===ne[fe].path)}let Vt=(()=>{class X{}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return new on},providedIn:"root"}),X})();class on{parse(ne){const F=new sn(ne);return new s(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(ne){const F=`/${je(ne.root,!0)}`,fe=function at(X){const ne=Object.keys(X).map(F=>{const fe=X[F];return Array.isArray(fe)?fe.map(He=>`${Qe(F)}=${Qe(He)}`).join("&"):`${Qe(F)}=${Qe(fe)}`}).filter(F=>!!F);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${F}${fe}${"string"==typeof ne.fragment?`#${function qe(X){return encodeURI(X)}(ne.fragment)}`:""}`}}const Mt=new on;function ft(X){return X.segments.map(ne=>ze(ne)).join("/")}function je(X,ne){if(!X.hasChildren())return ft(X);if(ne){const F=X.children[ct]?je(X.children[ct],!1):"",fe=[];return Fe(X.children,(He,dt)=>{dt!==ct&&fe.push(`${dt}:${je(He,!1)}`)}),fe.length>0?`${F}(${fe.join("//")})`:F}{const F=function bt(X,ne){let F=[];return Fe(X.children,(fe,He)=>{He===ct&&(F=F.concat(ne(fe,He)))}),Fe(X.children,(fe,He)=>{He!==ct&&(F=F.concat(ne(fe,He)))}),F}(X,(fe,He)=>He===ct?[je(X.children[ct],!1)]:[`${He}:${je(fe,!1)}`]);return 1===Object.keys(X.children).length&&null!=X.children[ct]?`${ft(X)}/${F[0]}`:`${ft(X)}/(${F.join("//")})`}}function Pe(X){return encodeURIComponent(X).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qe(X){return Pe(X).replace(/%3B/gi,";")}function Be(X){return Pe(X).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function me(X){return decodeURIComponent(X)}function ve(X){return me(X.replace(/\+/g,"%20"))}function ze(X){return`${Be(X.path)}${function tt(X){return Object.keys(X).map(ne=>`;${Be(ne)}=${Be(X[ne])}`).join("")}(X.parameters)}`}const Re=/^[^\/()?;=#]+/;function st(X){const ne=X.match(Re);return ne?ne[0]:""}const Pt=/^[^=?&#]+/,cn=/^[^&#]+/;class sn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new d([],{}):new d([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let fe={};return this.peekStartsWith("(")&&(fe=this.parseParens(!1)),(ne.length>0||Object.keys(F).length>0)&&(fe[ct]=new d(ne,F)),fe}parseSegment(){const ne=st(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new p(me(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const F=st(this.remaining);if(!F)return;this.capture(F);let fe="";if(this.consumeOptional("=")){const He=st(this.remaining);He&&(fe=He,this.capture(fe))}ne[me(F)]=me(fe)}parseQueryParam(ne){const F=function jt(X){const ne=X.match(Pt);return ne?ne[0]:""}(this.remaining);if(!F)return;this.capture(F);let fe="";if(this.consumeOptional("=")){const yt=function Xt(X){const ne=X.match(cn);return ne?ne[0]:""}(this.remaining);yt&&(fe=yt,this.capture(fe))}const He=ve(F),dt=ve(fe);if(ne.hasOwnProperty(He)){let yt=ne[He];Array.isArray(yt)||(yt=[yt],ne[He]=yt),yt.push(dt)}else ne[He]=dt}parseParens(ne){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const fe=st(this.remaining),He=this.remaining[fe.length];if("/"!==He&&")"!==He&&";"!==He)throw new e.vHH(4010,!1);let dt;fe.indexOf(":")>-1?(dt=fe.slice(0,fe.indexOf(":")),this.capture(dt),this.capture(":")):ne&&(dt=ct);const yt=this.parseChildren();F[dt]=1===Object.keys(yt).length?yt[ct]:new d([],yt),this.consumeOptional("//")}return F}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function mn(X){return X.segments.length>0?new d([],{[ct]:X}):X}function Nt(X){const ne={};for(const fe of Object.keys(X.children)){const dt=Nt(X.children[fe]);(dt.segments.length>0||dt.hasChildren())&&(ne[fe]=dt)}return function Rt(X){if(1===X.numberOfChildren&&X.children[ct]){const ne=X.children[ct];return new d(X.segments.concat(ne.segments),ne.children)}return X}(new d(X.segments,ne))}function Ct(X){return X instanceof s}function $t(X,ne,F,fe,He){var dt;if(0===F.length)return vt(ne.root,ne.root,ne.root,fe,He);const yt=function At(X){if("string"==typeof X[0]&&1===X.length&&"/"===X[0])return new $e(!0,0,X);let ne=0,F=!1;const fe=X.reduce((He,dt,yt)=>{if("object"==typeof dt&&null!=dt){if(dt.outlets){const Ht={};return Fe(dt.outlets,(Jt,un)=>{Ht[un]="string"==typeof Jt?Jt.split("/"):Jt}),[...He,{outlets:Ht}]}if(dt.segmentPath)return[...He,dt.segmentPath]}return"string"!=typeof dt?[...He,dt]:0===yt?(dt.split("/").forEach((Ht,Jt)=>{0==Jt&&"."===Ht||(0==Jt&&""===Ht?F=!0:".."===Ht?ne++:""!=Ht&&He.push(Ht))}),He):[...He,dt]},[]);return new $e(F,ne,fe)}(F);if(yt.toRoot())return vt(ne.root,ne.root,new d([],{}),fe,He);const Jt=function Ht(bn){var _n;const xn=function mt(X,ne,F,fe){if(X.isAbsolute)return new Z(ne.root,!0,0);if(-1===fe)return new Z(F,F===ne.root,0);return function St(X,ne,F){let fe=X,He=ne,dt=F;for(;dt>He;){if(dt-=He,fe=fe.parent,!fe)throw new e.vHH(4005,!1);He=fe.segments.length}return new Z(fe,!1,He-dt)}(F,fe+(xt(X.commands[0])?0:1),X.numberOfDoubleDots)}(yt,ne,null===(_n=X.snapshot)||void 0===_n?void 0:_n._urlSegment,bn),ai=xn.processChildren?jn(xn.segmentGroup,xn.index,yt.commands):En(xn.segmentGroup,xn.index,yt.commands);return vt(ne.root,xn.segmentGroup,ai,fe,He)}(null===(dt=X.snapshot)||void 0===dt?void 0:dt._lastPathIndex);return Jt}function xt(X){return"object"==typeof X&&null!=X&&!X.outlets&&!X.segmentPath}function rt(X){return"object"==typeof X&&null!=X&&X.outlets}function vt(X,ne,F,fe,He){let yt,dt={};fe&&Fe(fe,(Jt,un)=>{dt[un]=Array.isArray(Jt)?Jt.map(bn=>`${bn}`):`${Jt}`}),yt=X===ne?F:ot(X,ne,F);const Ht=mn(Nt(yt));return new s(Ht,dt,He)}function ot(X,ne,F){const fe={};return Fe(X.children,(He,dt)=>{fe[dt]=He===ne?F:ot(He,ne,F)}),new d(X.segments,fe)}class $e{constructor(ne,F,fe){if(this.isAbsolute=ne,this.numberOfDoubleDots=F,this.commands=fe,ne&&fe.length>0&&xt(fe[0]))throw new e.vHH(4003,!1);const He=fe.find(rt);if(He&&He!==re(fe))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Z{constructor(ne,F,fe){this.segmentGroup=ne,this.processChildren=F,this.index=fe}}function En(X,ne,F){if(X||(X=new d([],{})),0===X.segments.length&&X.hasChildren())return jn(X,ne,F);const fe=function Ln(X,ne,F){let fe=0,He=ne;const dt={match:!1,pathIndex:0,commandIndex:0};for(;He=F.length)return dt;const yt=X.segments[He],Ht=F[fe];if(rt(Ht))break;const Jt=`${Ht}`,un=fe0&&void 0===Jt)break;if(Jt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Wn(Jt,un,yt))return dt;fe+=2}else{if(!Wn(Jt,{},yt))return dt;fe++}He++}return{match:!0,pathIndex:He,commandIndex:fe}}(X,ne,F),He=F.slice(fe.commandIndex);if(fe.match&&fe.pathIndex{"string"==typeof dt&&(dt=[dt]),null!==dt&&(He[yt]=En(X.children[yt],ne,dt))}),Fe(X.children,(dt,yt)=>{void 0===fe[yt]&&(He[yt]=dt)}),new d(X.segments,He)}}function Kn(X,ne,F){const fe=X.segments.slice(0,ne);let He=0;for(;He{"string"==typeof F&&(F=[F]),null!==F&&(ne[fe]=Kn(new d([],{}),0,F))}),ne}function ci(X){const ne={};return Fe(X,(F,fe)=>ne[fe]=`${F}`),ne}function Wn(X,ne,F){return X==F.path&&Y(ne,F.parameters)}class Hn{constructor(ne,F){this.id=ne,this.url=F}}class Ji extends Hn{constructor(ne,F,fe="imperative",He=null){super(ne,F),this.type=0,this.navigationTrigger=fe,this.restoredState=He}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gn extends Hn{constructor(ne,F,fe){super(ne,F),this.urlAfterRedirects=fe,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yn extends Hn{constructor(ne,F,fe,He){super(ne,F),this.reason=fe,this.code=He,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.error=fe,this.target=He,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends Hn{constructor(ne,F,fe,He,dt){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.shouldActivate=dt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pr extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fr{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rr{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wt{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class an{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bt{constructor(ne,F,fe){this.routerEvent=ne,this.position=F,this.anchor=fe,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class et{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const F=this.pathFromRoot(ne);return F.length>1?F[F.length-2]:null}children(ne){const F=Ft(ne,this._root);return F?F.children.map(fe=>fe.value):[]}firstChild(ne){const F=Ft(ne,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(ne){const F=Ke(ne,this._root);return F.length<2?[]:F[F.length-2].children.map(He=>He.value).filter(He=>He!==ne)}pathFromRoot(ne){return Ke(ne,this._root).map(F=>F.value)}}function Ft(X,ne){if(X===ne.value)return ne;for(const F of ne.children){const fe=Ft(X,F);if(fe)return fe}return null}function Ke(X,ne){if(X===ne.value)return[ne];for(const F of ne.children){const fe=Ke(X,F);if(fe.length)return fe.unshift(ne),fe}return[]}class Et{constructor(ne,F){this.value=ne,this.children=F}toString(){return`TreeNode(${this.value})`}}function Wt(X){const ne={};return X&&X.children.forEach(F=>ne[F.value.outlet]=F),ne}class hn extends et{constructor(ne,F){super(ne),this.snapshot=F,Si(this,ne)}toString(){return this.snapshot.toString()}}function wn(X,ne){const F=function zn(X,ne){const yt=new mr([],{},{},"",{},ct,ne,null,X.root,-1,{});return new Vr("",new Et(yt,[]))}(X,ne),fe=new U.X([new p("",{})]),He=new U.X({}),dt=new U.X({}),yt=new U.X({}),Ht=new U.X(""),Jt=new $n(fe,He,yt,Ht,dt,ct,ne,F.root);return Jt.snapshot=F.root,new hn(new Et(Jt,[]),F)}class $n{constructor(ne,F,fe,He,dt,yt,Ht,Jt){this.url=ne,this.params=F,this.queryParams=fe,this.fragment=He,this.data=dt,this.outlet=yt,this.component=Ht,this._futureSnapshot=Jt}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,Me.U)(ne=>_t(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Me.U)(ne=>_t(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ei(X,ne="emptyOnly"){const F=X.pathFromRoot;let fe=0;if("always"!==ne)for(fe=F.length-1;fe>=1;){const He=F[fe],dt=F[fe-1];if(He.routeConfig&&""===He.routeConfig.path)fe--;else{if(dt.component)break;fe--}}return function la(X){return X.reduce((ne,F)=>{var fe;return{params:{...ne.params,...F.params},data:{...ne.data,...F.data},resolve:{...F.data,...ne.resolve,...null===(fe=F.routeConfig)||void 0===fe?void 0:fe.data,...F._resolvedData}}},{params:{},data:{},resolve:{}})}(F.slice(fe))}class mr{constructor(ne,F,fe,He,dt,yt,Ht,Jt,un,bn,_n,xn){this.url=ne,this.params=F,this.queryParams=fe,this.fragment=He,this.data=dt,this.outlet=yt,this.component=Ht,this.routeConfig=Jt,this._urlSegment=un,this._lastPathIndex=bn,this._correctedLastPathIndex=xn??bn,this._resolve=_n}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=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(fe=>fe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Vr extends et{constructor(ne,F){super(F),this.url=ne,Si(this,F)}toString(){return Tr(this._root)}}function Si(X,ne){ne.value._routerState=X,ne.children.forEach(F=>Si(X,F))}function Tr(X){const ne=X.children.length>0?` { ${X.children.map(Tr).join(", ")} } `:"";return`${X.value}${ne}`}function gr(X){if(X.snapshot){const ne=X.snapshot,F=X._futureSnapshot;X.snapshot=F,Y(ne.queryParams,F.queryParams)||X.queryParams.next(F.queryParams),ne.fragment!==F.fragment&&X.fragment.next(F.fragment),Y(ne.params,F.params)||X.params.next(F.params),function gt(X,ne){if(X.length!==ne.length)return!1;for(let F=0;FY(F.parameters,ne[fe].parameters))}(X.url,ne.url);return F&&!(!X.parent!=!ne.parent)&&(!X.parent||ar(X.parent,ne.parent))}function sr(X,ne,F){if(F&&X.shouldReuseRoute(ne.value,F.value.snapshot)){const fe=F.value;fe._futureSnapshot=ne.value;const He=function _r(X,ne,F){return ne.children.map(fe=>{for(const He of F.children)if(X.shouldReuseRoute(fe.value,He.value.snapshot))return sr(X,fe,He);return sr(X,fe)})}(X,ne,F);return new Et(fe,He)}{if(X.shouldAttach(ne.value)){const dt=X.retrieve(ne.value);if(null!==dt){const yt=dt.route;return yt.value._futureSnapshot=ne.value,yt.children=ne.children.map(Ht=>sr(X,Ht)),yt}}const fe=function Ar(X){return new $n(new U.X(X.url),new U.X(X.params),new U.X(X.queryParams),new U.X(X.fragment),new U.X(X.data),X.outlet,X.component,X)}(ne.value),He=ne.children.map(dt=>sr(X,dt));return new Et(fe,He)}}const lr="ngNavigationCancelingError";function Fr(X,ne){const{redirectTo:F,navigationBehaviorOptions:fe}=Ct(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,He=Yr(!1,0,ne);return He.url=F,He.navigationBehaviorOptions=fe,He}function Yr(X,ne,F){const fe=new Error("NavigationCancelingError: "+(X||""));return fe[lr]=!0,fe.cancellationCode=ne,F&&(fe.url=F),fe}function wi(X){return $i(X)&&Ct(X.url)}function $i(X){return X&&X[lr]}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ki,this.attachRef=null}}let Ki=(()=>{class X{constructor(){this.contexts=new Map}onChildOutletCreated(F,fe){const He=this.getOrCreateContext(F);He.outlet=fe,this.contexts.set(F,He)}onChildOutletDestroyed(F){const fe=this.getContext(F);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let fe=this.getContext(F);return fe||(fe=new Ur,this.contexts.set(F,fe)),fe}getContext(F){return this.contexts.get(F)||null}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const Ii=!1;let Xi=(()=>{class X{constructor(F,fe,He,dt,yt){this.parentContexts=F,this.location=fe,this.changeDetector=dt,this.environmentInjector=yt,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=He||ct,F.onChildOutletCreated(this.name,this)}ngOnDestroy(){var F;(null===(F=this.parentContexts.getContext(this.name))||void 0===F?void 0:F.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const F=this.parentContexts.getContext(this.name);F&&F.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Ii);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Ii);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Ii);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,fe){this.activated=F,this._activatedRoute=fe,this.location.insert(F.hostView),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,fe){if(this.isActivated)throw new e.vHH(4013,Ii);this._activatedRoute=F;const He=this.location,yt=F._futureSnapshot.component,Ht=this.parentContexts.getOrCreateContext(this.name).children,Jt=new Jn(F,Ht,He.injector);if(fe&&function eo(X){return!!X.resolveComponentFactory}(fe)){const un=fe.resolveComponentFactory(yt);this.activated=He.createComponent(un,He.length,Jt)}else this.activated=He.createComponent(yt,{index:He.length,injector:Jt,environmentInjector:fe??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ki),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},X.\u0275dir=e.lG2({type:X,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),X})();class Jn{constructor(ne,F,fe){this.route=ne,this.childContexts=F,this.parent=fe}get(ne,F){return ne===$n?this.route:ne===Ki?this.childContexts:this.parent.get(ne,F)}}let Jr=(()=>{class X{}return X.\u0275fac=function(F){return new(F||X)},X.\u0275cmp=e.Xpm({type:X,selectors:[["ng-component"]],decls:1,vars:0,template:function(F,fe){1&F&&e._UZ(0,"router-outlet")},dependencies:[Xi],encapsulation:2}),X})();function yr(X,ne){var F;return X.providers&&!X._injector&&(X._injector=(0,e.MMx)(X.providers,ne,`Route: ${X.path}`)),null!==(F=X._injector)&&void 0!==F?F:ne}function pt(X){const ne=X.children&&X.children.map(pt),F=ne?{...X,children:ne}:{...X};return!F.component&&!F.loadComponent&&(ne||F.loadChildren)&&F.outlet&&F.outlet!==ct&&(F.component=Jr),F}function Lt(X){return X.outlet||ct}function qt(X,ne){const F=X.filter(fe=>Lt(fe)===ne);return F.push(...X.filter(fe=>Lt(fe)!==ne)),F}function Yt(X){var ne;if(!X)return null;if(null!==(ne=X.routeConfig)&&void 0!==ne&&ne._injector)return X.routeConfig._injector;for(let F=X.parent;F;F=F.parent){const fe=F.routeConfig;if(null!=fe&&fe._loadedInjector)return fe._loadedInjector;if(null!=fe&&fe._injector)return fe._injector}return null}class ii{constructor(ne,F,fe,He){this.routeReuseStrategy=ne,this.futureState=F,this.currState=fe,this.forwardEvent=He}activate(ne){const F=this.futureState._root,fe=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,fe,ne),gr(this.futureState.root),this.activateChildRoutes(F,fe,ne)}deactivateChildRoutes(ne,F,fe){const He=Wt(F);ne.children.forEach(dt=>{const yt=dt.value.outlet;this.deactivateRoutes(dt,He[yt],fe),delete He[yt]}),Fe(He,(dt,yt)=>{this.deactivateRouteAndItsChildren(dt,fe)})}deactivateRoutes(ne,F,fe){const He=ne.value,dt=F?F.value:null;if(He===dt)if(He.component){const yt=fe.getContext(He.outlet);yt&&this.deactivateChildRoutes(ne,F,yt.children)}else this.deactivateChildRoutes(ne,F,fe);else dt&&this.deactivateRouteAndItsChildren(F,fe)}deactivateRouteAndItsChildren(ne,F){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,F):this.deactivateRouteAndOutlet(ne,F)}detachAndStoreRouteSubtree(ne,F){const fe=F.getContext(ne.value.outlet),He=fe&&ne.value.component?fe.children:F,dt=Wt(ne);for(const yt of Object.keys(dt))this.deactivateRouteAndItsChildren(dt[yt],He);if(fe&&fe.outlet){const yt=fe.outlet.detach(),Ht=fe.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:yt,route:ne,contexts:Ht})}}deactivateRouteAndOutlet(ne,F){const fe=F.getContext(ne.value.outlet),He=fe&&ne.value.component?fe.children:F,dt=Wt(ne);for(const yt of Object.keys(dt))this.deactivateRouteAndItsChildren(dt[yt],He);fe&&fe.outlet&&(fe.outlet.deactivate(),fe.children.onOutletDeactivated(),fe.attachRef=null,fe.resolver=null,fe.route=null)}activateChildRoutes(ne,F,fe){const He=Wt(F);ne.children.forEach(dt=>{this.activateRoutes(dt,He[dt.value.outlet],fe),this.forwardEvent(new nt(dt.value.snapshot))}),ne.children.length&&this.forwardEvent(new wt(ne.value.snapshot))}activateRoutes(ne,F,fe){const He=ne.value,dt=F?F.value:null;if(gr(He),He===dt)if(He.component){const Ht=fe.getOrCreateContext(He.outlet);this.activateChildRoutes(ne,F,Ht.children)}else this.activateChildRoutes(ne,F,fe);else if(He.component){const Ht=fe.getOrCreateContext(He.outlet);if(this.routeReuseStrategy.shouldAttach(He.snapshot)){const Jt=this.routeReuseStrategy.retrieve(He.snapshot);this.routeReuseStrategy.store(He.snapshot,null),Ht.children.onOutletReAttached(Jt.contexts),Ht.attachRef=Jt.componentRef,Ht.route=Jt.route.value,Ht.outlet&&Ht.outlet.attach(Jt.componentRef,Jt.route.value),gr(Jt.route.value),this.activateChildRoutes(ne,null,Ht.children)}else{var yt;const Jt=Yt(He.snapshot),un=null!==(yt=Jt?.get(e._Vd))&&void 0!==yt?yt:null;Ht.attachRef=null,Ht.route=He,Ht.resolver=un,Ht.injector=Jt,Ht.outlet&&Ht.outlet.activateWith(He,Ht.injector),this.activateChildRoutes(ne,null,Ht.children)}}else this.activateChildRoutes(ne,null,fe)}}class ti{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ei{constructor(ne,F){this.component=ne,this.route=F}}function kn(X,ne,F){const fe=X._root;return di(fe,ne?ne._root:null,F,[fe.value])}function qn(X,ne,F){return(Yt(ne)??F).get(X)}function di(X,ne,F,fe,He={canDeactivateChecks:[],canActivateChecks:[]}){const dt=Wt(ne);return X.children.forEach(yt=>{(function rn(X,ne,F,fe,He={canDeactivateChecks:[],canActivateChecks:[]}){const dt=X.value,yt=ne?ne.value:null,Ht=F?F.getContext(X.value.outlet):null;if(yt&&dt.routeConfig===yt.routeConfig){const Jt=function On(X,ne,F){if("function"==typeof F)return F(X,ne);switch(F){case"pathParamsChange":return!_e(X.url,ne.url);case"pathParamsOrQueryParamsChange":return!_e(X.url,ne.url)||!Y(X.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ar(X,ne)||!Y(X.queryParams,ne.queryParams);default:return!ar(X,ne)}}(yt,dt,dt.routeConfig.runGuardsAndResolvers);Jt?He.canActivateChecks.push(new ti(fe)):(dt.data=yt.data,dt._resolvedData=yt._resolvedData),di(X,ne,dt.component?Ht?Ht.children:null:F,fe,He),Jt&&Ht&&Ht.outlet&&Ht.outlet.isActivated&&He.canDeactivateChecks.push(new ei(Ht.outlet.component,yt))}else yt&&Ui(ne,Ht,He),He.canActivateChecks.push(new ti(fe)),di(X,null,dt.component?Ht?Ht.children:null:F,fe,He)})(yt,dt[yt.value.outlet],F,fe.concat([yt.value]),He),delete dt[yt.value.outlet]}),Fe(dt,(yt,Ht)=>Ui(yt,F.getContext(Ht),He)),He}function Ui(X,ne,F){const fe=Wt(X),He=X.value;Fe(fe,(dt,yt)=>{Ui(dt,He.component?ne?ne.children.getContext(yt):null:ne,F)}),F.canDeactivateChecks.push(new ei(He.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,He))}function Li(X){return"function"==typeof X}function gn(X){return X instanceof _.K||"EmptyError"===X?.name}const Qn=Symbol("INITIAL_VALUE");function Xn(){return(0,we.w)(X=>(0,V.a)(X.map(ne=>ne.pipe((0,Ge.q)(1),(0,ce.O)(Qn)))).pipe((0,Me.U)(ne=>{for(const F of ne)if(!0!==F){if(F===Qn)return Qn;if(!1===F||F instanceof s)return F}return!0}),(0,L.h)(ne=>ne!==Qn),(0,Ge.q)(1)))}function $r(X){return(0,te.z)((0,j.b)(ne=>{if(Ct(ne))throw Fr(0,ne)}),(0,Me.U)(ne=>!0===ne))}const Gr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ts(X,ne,F,fe,He){const dt=xa(X,ne,F);return dt.matched?function to(X,ne,F,fe){const He=ne.canMatch;if(!He||0===He.length)return(0,S.of)(!0);const dt=He.map(yt=>{const Ht=X.get(yt),Jt=function Ae(X){return X&&Li(X.canMatch)}(Ht)?Ht.canMatch(ne,F):Ht(ne,F);return be(Jt)});return(0,S.of)(dt).pipe(Xn(),$r())}(fe=yr(ne,fe),ne,F).pipe((0,Me.U)(yt=>!0===yt?dt:{...Gr})):(0,S.of)(dt)}function xa(X,ne,F){var fe;if(""===ne.path)return"full"===ne.pathMatch&&(X.hasChildren()||F.length>0)?{...Gr}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const dt=(ne.matcher||Je)(F,X,ne);if(!dt)return{...Gr};const yt={};Fe(dt.posParams,(Jt,un)=>{yt[un]=Jt.path});const Ht=dt.consumed.length>0?{...yt,...dt.consumed[dt.consumed.length-1].parameters}:yt;return{matched:!0,consumedSegments:dt.consumed,remainingSegments:F.slice(dt.consumed.length),parameters:Ht,positionalParamSegments:null!==(fe=dt.posParams)&&void 0!==fe?fe:{}}}function ua(X,ne,F,fe,He="corrected"){if(F.length>0&&function Xs(X,ne,F){return F.some(fe=>ha(X,ne,fe)&&Lt(fe)!==ct)}(X,F,fe)){const yt=new d(ne,function no(X,ne,F,fe){const He={};He[ct]=fe,fe._sourceSegment=X,fe._segmentIndexShift=ne.length;for(const dt of F)if(""===dt.path&&Lt(dt)!==ct){const yt=new d([],{});yt._sourceSegment=X,yt._segmentIndexShift=ne.length,He[Lt(dt)]=yt}return He}(X,ne,fe,new d(F,X.children)));return yt._sourceSegment=X,yt._segmentIndexShift=ne.length,{segmentGroup:yt,slicedSegments:[]}}if(0===F.length&&function ns(X,ne,F){return F.some(fe=>ha(X,ne,fe))}(X,F,fe)){const yt=new d(X.segments,function Ks(X,ne,F,fe,He,dt){const yt={};for(const Ht of fe)if(ha(X,F,Ht)&&!He[Lt(Ht)]){const Jt=new d([],{});Jt._sourceSegment=X,Jt._segmentIndexShift="legacy"===dt?X.segments.length:ne.length,yt[Lt(Ht)]=Jt}return{...He,...yt}}(X,ne,F,fe,X.children,He));return yt._sourceSegment=X,yt._segmentIndexShift=ne.length,{segmentGroup:yt,slicedSegments:F}}const dt=new d(X.segments,X.children);return dt._sourceSegment=X,dt._segmentIndexShift=ne.length,{segmentGroup:dt,slicedSegments:F}}function ha(X,ne,F){return(!(X.hasChildren()||ne.length>0)||"full"!==F.pathMatch)&&""===F.path}function yo(X,ne,F,fe){return!!(Lt(X)===fe||fe!==ct&&ha(ne,F,X))&&("**"===X.path||xa(ne,X,F).matched)}function io(X,ne,F){return 0===ne.length&&!X.children[F]}const xi=!1;class xr{constructor(ne){this.segmentGroup=ne||null}}class pi{constructor(ne){this.urlTree=ne}}function pa(X){return(0,oe._)(new xr(X))}function is(X){return(0,oe._)(new pi(X))}class as{constructor(ne,F,fe,He,dt){this.injector=ne,this.configLoader=F,this.urlSerializer=fe,this.urlTree=He,this.config=dt,this.allowRedirects=!0}apply(){const ne=ua(this.urlTree.root,[],[],this.config).segmentGroup,F=new d(ne.segments,ne.children);return this.expandSegmentGroup(this.injector,this.config,F,ct).pipe((0,Me.U)(dt=>this.createUrlTree(Nt(dt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,R.K)(dt=>{if(dt instanceof pi)return this.allowRedirects=!1,this.match(dt.urlTree);throw dt instanceof xr?this.noMatchError(dt):dt}))}match(ne){return this.expandSegmentGroup(this.injector,this.config,ne.root,ct).pipe((0,Me.U)(He=>this.createUrlTree(Nt(He),ne.queryParams,ne.fragment))).pipe((0,R.K)(He=>{throw He instanceof xr?this.noMatchError(He):He}))}noMatchError(ne){return new e.vHH(4002,xi)}createUrlTree(ne,F,fe){const He=mn(ne);return new s(He,F,fe)}expandSegmentGroup(ne,F,fe,He){return 0===fe.segments.length&&fe.hasChildren()?this.expandChildren(ne,F,fe).pipe((0,Me.U)(dt=>new d([],dt))):this.expandSegment(ne,fe,F,fe.segments,He,!0)}expandChildren(ne,F,fe){const He=[];for(const dt of Object.keys(fe.children))"primary"===dt?He.unshift(dt):He.push(dt);return(0,E.D)(He).pipe((0,xe.b)(dt=>{const yt=fe.children[dt],Ht=qt(F,dt);return this.expandSegmentGroup(ne,Ht,yt,dt).pipe((0,Me.U)(Jt=>({segment:Jt,outlet:dt})))}),v((dt,yt)=>(dt[yt.outlet]=yt.segment,dt),{}),ye())}expandSegment(ne,F,fe,He,dt,yt){return(0,E.D)(fe).pipe((0,xe.b)(Ht=>this.expandSegmentAgainstRoute(ne,F,fe,Ht,He,dt,yt).pipe((0,R.K)(un=>{if(un instanceof xr)return(0,S.of)(null);throw un}))),(0,he.P)(Ht=>!!Ht),(0,R.K)((Ht,Jt)=>{if(gn(Ht))return io(F,He,dt)?(0,S.of)(new d([],{})):pa(F);throw Ht}))}expandSegmentAgainstRoute(ne,F,fe,He,dt,yt,Ht){return yo(He,F,dt,yt)?void 0===He.redirectTo?this.matchSegmentAgainstRoute(ne,F,He,dt,yt):Ht&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt):pa(F):pa(F)}expandSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt){return"**"===He.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,fe,He,yt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,F,fe,He){const dt=this.applyRedirectCommands([],fe.redirectTo,{});return fe.redirectTo.startsWith("/")?is(dt):this.lineralizeSegments(fe,dt).pipe((0,Ze.z)(yt=>{const Ht=new d(yt,{});return this.expandSegment(ne,Ht,F,yt,He,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt){const{matched:Ht,consumedSegments:Jt,remainingSegments:un,positionalParamSegments:bn}=xa(F,He,dt);if(!Ht)return pa(F);const _n=this.applyRedirectCommands(Jt,He.redirectTo,bn);return He.redirectTo.startsWith("/")?is(_n):this.lineralizeSegments(He,_n).pipe((0,Ze.z)(xn=>this.expandSegment(ne,F,fe,xn.concat(un),yt,!1)))}matchSegmentAgainstRoute(ne,F,fe,He,dt){return"**"===fe.path?(ne=yr(fe,ne),fe.loadChildren?(fe._loadedRoutes?(0,S.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector}):this.configLoader.loadChildren(ne,fe)).pipe((0,Me.U)(Ht=>(fe._loadedRoutes=Ht.routes,fe._loadedInjector=Ht.injector,new d(He,{})))):(0,S.of)(new d(He,{}))):ts(F,fe,He,ne).pipe((0,we.w)(({matched:yt,consumedSegments:Ht,remainingSegments:Jt})=>{var un;return yt?(ne=null!==(un=fe._injector)&&void 0!==un?un:ne,this.getChildConfig(ne,fe,He).pipe((0,Ze.z)(_n=>{var xn;const ai=null!==(xn=_n.injector)&&void 0!==xn?xn:ne,oi=_n.routes,{segmentGroup:bi,slicedSegments:Ni}=ua(F,Ht,Jt,oi),qi=new d(bi.segments,bi.children);if(0===Ni.length&&qi.hasChildren())return this.expandChildren(ai,oi,qi).pipe((0,Me.U)(za=>new d(Ht,za)));if(0===oi.length&&0===Ni.length)return(0,S.of)(new d(Ht,{}));const vi=Lt(fe)===dt;return this.expandSegment(ai,qi,oi,Ni,vi?ct:dt,!0).pipe((0,Me.U)(ur=>new d(Ht.concat(ur.segments),ur.children)))}))):pa(F)}))}getChildConfig(ne,F,fe){return F.children?(0,S.of)({routes:F.children,injector:ne}):F.loadChildren?void 0!==F._loadedRoutes?(0,S.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function To(X,ne,F,fe){const He=ne.canLoad;if(void 0===He||0===He.length)return(0,S.of)(!0);const dt=He.map(yt=>{const Ht=X.get(yt),Jt=function wr(X){return X&&Li(X.canLoad)}(Ht)?Ht.canLoad(ne,F):Ht(ne,F);return be(Jt)});return(0,S.of)(dt).pipe(Xn(),$r())}(ne,F,fe).pipe((0,Ze.z)(He=>He?this.configLoader.loadChildren(ne,F).pipe((0,j.b)(dt=>{F._loadedRoutes=dt.routes,F._loadedInjector=dt.injector})):function el(X){return(0,oe._)(Yr(xi,3))}())):(0,S.of)({routes:[],injector:ne})}lineralizeSegments(ne,F){let fe=[],He=F.root;for(;;){if(fe=fe.concat(He.segments),0===He.numberOfChildren)return(0,S.of)(fe);if(He.numberOfChildren>1||!He.children[ct])return(0,oe._)(new e.vHH(4e3,xi));He=He.children[ct]}}applyRedirectCommands(ne,F,fe){return this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),ne,fe)}applyRedirectCreateUrlTree(ne,F,fe,He){const dt=this.createSegmentGroup(ne,F.root,fe,He);return new s(dt,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(ne,F){const fe={};return Fe(ne,(He,dt)=>{if("string"==typeof He&&He.startsWith(":")){const Ht=He.substring(1);fe[dt]=F[Ht]}else fe[dt]=He}),fe}createSegmentGroup(ne,F,fe,He){const dt=this.createSegments(ne,F.segments,fe,He);let yt={};return Fe(F.children,(Ht,Jt)=>{yt[Jt]=this.createSegmentGroup(ne,Ht,fe,He)}),new d(dt,yt)}createSegments(ne,F,fe,He){return F.map(dt=>dt.path.startsWith(":")?this.findPosParam(ne,dt,He):this.findOrReturn(dt,fe))}findPosParam(ne,F,fe){const He=fe[F.path.substring(1)];if(!He)throw new e.vHH(4001,xi);return He}findOrReturn(ne,F){let fe=0;for(const He of F){if(He.path===ne.path)return F.splice(fe),He;fe++}return ne}}class Da{}class nl{constructor(ne,F,fe,He,dt,yt,Ht,Jt){this.injector=ne,this.rootComponentType=F,this.config=fe,this.urlTree=He,this.url=dt,this.paramsInheritanceStrategy=yt,this.relativeLinkResolution=Ht,this.urlSerializer=Jt}recognize(){const ne=ua(this.urlTree.root,[],[],this.config.filter(F=>void 0===F.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,ct).pipe((0,Me.U)(F=>{if(null===F)return null;const fe=new mr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ct,this.rootComponentType,null,this.urlTree.root,-1,{}),He=new Et(fe,F),dt=new Vr(this.url,He);return this.inheritParamsAndData(dt._root),dt}))}inheritParamsAndData(ne){const F=ne.value,fe=Ei(F,this.paramsInheritanceStrategy);F.params=Object.freeze(fe.params),F.data=Object.freeze(fe.data),ne.children.forEach(He=>this.inheritParamsAndData(He))}processSegmentGroup(ne,F,fe,He){return 0===fe.segments.length&&fe.hasChildren()?this.processChildren(ne,F,fe):this.processSegment(ne,F,fe,fe.segments,He)}processChildren(ne,F,fe){return(0,E.D)(Object.keys(fe.children)).pipe((0,xe.b)(He=>{const dt=fe.children[He],yt=qt(F,He);return this.processSegmentGroup(ne,yt,dt,He)}),v((He,dt)=>He&&dt?(He.push(...dt),He):null),(0,G.o)(He=>null!==He),(0,q.d)(null),ye(),(0,Me.U)(He=>{if(null===He)return null;const dt=Mo(He);return function Zr(X){X.sort((ne,F)=>ne.value.outlet===ct?-1:F.value.outlet===ct?1:ne.value.outlet.localeCompare(F.value.outlet))}(dt),dt}))}processSegment(ne,F,fe,He,dt){return(0,E.D)(F).pipe((0,xe.b)(yt=>{var Ht;return this.processSegmentAgainstRoute(null!==(Ht=yt._injector)&&void 0!==Ht?Ht:ne,yt,fe,He,dt)}),(0,he.P)(yt=>!!yt),(0,R.K)(yt=>{if(gn(yt))return io(fe,He,dt)?(0,S.of)([]):(0,S.of)(null);throw yt}))}processSegmentAgainstRoute(ne,F,fe,He,dt){if(F.redirectTo||!yo(F,fe,He,dt))return(0,S.of)(null);let yt;if("**"===F.path){var Ht,Jt;const un=He.length>0?re(He).parameters:{},bn=oo(fe)+He.length,_n=new mr(He,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xo(F),Lt(F),null!==(Ht=null!==(Jt=F.component)&&void 0!==Jt?Jt:F._loadedComponent)&&void 0!==Ht?Ht:null,F,ji(fe),bn,rl(F),bn);yt=(0,S.of)({snapshot:_n,consumedSegments:[],remainingSegments:[]})}else yt=ts(fe,F,He,ne).pipe((0,Me.U)(({matched:un,consumedSegments:bn,remainingSegments:_n,parameters:xn})=>{var ai,oi;if(!un)return null;const bi=oo(fe)+bn.length;return{snapshot:new mr(bn,xn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xo(F),Lt(F),null!==(ai=null!==(oi=F.component)&&void 0!==oi?oi:F._loadedComponent)&&void 0!==ai?ai:null,F,ji(fe),bi,rl(F),bi),consumedSegments:bn,remainingSegments:_n}}));return yt.pipe((0,we.w)(un=>{var bn,_n;if(null===un)return(0,S.of)(null);const{snapshot:xn,consumedSegments:ai,remainingSegments:oi}=un;ne=null!==(bn=F._injector)&&void 0!==bn?bn:ne;const bi=null!==(_n=F._loadedInjector)&&void 0!==_n?_n:ne,Ni=function Sa(X){return X.children?X.children:X.loadChildren?X._loadedRoutes:[]}(F),{segmentGroup:qi,slicedSegments:vi}=ua(fe,ai,oi,Ni.filter(ur=>void 0===ur.redirectTo),this.relativeLinkResolution);if(0===vi.length&&qi.hasChildren())return this.processChildren(bi,Ni,qi).pipe((0,Me.U)(ur=>null===ur?null:[new Et(xn,ur)]));if(0===Ni.length&&0===vi.length)return(0,S.of)([new Et(xn,[])]);const Za=Lt(F)===dt;return this.processSegment(bi,Ni,qi,vi,Za?ct:dt).pipe((0,Me.U)(ur=>null===ur?null:[new Et(xn,ur)]))}))}}function il(X){const ne=X.value.routeConfig;return ne&&""===ne.path&&void 0===ne.redirectTo}function Mo(X){const ne=[],F=new Set;for(const fe of X){if(!il(fe)){ne.push(fe);continue}const He=ne.find(dt=>fe.value.routeConfig===dt.value.routeConfig);void 0!==He?(He.children.push(...fe.children),F.add(He)):ne.push(fe)}for(const fe of F){const He=Mo(fe.children);ne.push(new Et(fe.value,He))}return ne.filter(fe=>!F.has(fe))}function ji(X){let ne=X;for(;ne._sourceSegment;)ne=ne._sourceSegment;return ne}function oo(X){var ne;let F=X,fe=null!==(ne=F._segmentIndexShift)&&void 0!==ne?ne:0;for(;F._sourceSegment;){var He;F=F._sourceSegment,fe+=null!==(He=F._segmentIndexShift)&&void 0!==He?He:0}return fe-1}function xo(X){return X.data||{}}function rl(X){return X.resolve||{}}const ma=Symbol("RouteTitle");function Do(X){return"string"==typeof X.title||null===X.title}function Hr(X){return(0,we.w)(ne=>{const F=X(ne);return F?(0,E.D)(F).pipe((0,Me.U)(()=>ne)):(0,S.of)(ne)})}let Gi=(()=>{class X{buildTitle(F){let fe,He=F.root;for(;void 0!==He;){var dt;fe=null!==(dt=this.getResolvedTitleForRoute(He))&&void 0!==dt?dt:fe,He=He.children.find(yt=>yt.outlet===ct)}return fe}getResolvedTitleForRoute(F){return F.data[ma]}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return(0,e.f3M)(Dr)},providedIn:"root"}),X})(),Dr=(()=>{class X extends Gi{constructor(F){super(),this.title=F}updateTitle(F){const fe=this.buildTitle(F);void 0!==fe&&this.title.setTitle(fe)}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(Oe.Dx))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class al{}class So extends class ls{shouldDetach(ne){return!1}store(ne,F){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,F){return ne.routeConfig===F.routeConfig}}{}const tr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Kr=new e.OlP("ROUTES");let Oa=(()=>{class X{constructor(F,fe){this.injector=F,this.compiler=fe,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,S.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const fe=be(F.loadComponent()).pipe((0,j.b)(dt=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=dt}),(0,$.x)(()=>{this.componentLoaders.delete(F)})),He=new T(fe,()=>new le.x).pipe(C());return this.componentLoaders.set(F,He),He}loadChildren(F,fe){if(this.childrenLoaders.get(fe))return this.childrenLoaders.get(fe);if(fe._loadedRoutes)return(0,S.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(fe);const dt=this.loadModuleFactoryOrRoutes(fe.loadChildren).pipe((0,Me.U)(Ht=>{this.onLoadEndListener&&this.onLoadEndListener(fe);let Jt,un,bn=!1;Array.isArray(Ht)?un=Ht:(Jt=Ht.create(F).injector,un=ae(Jt.get(Kr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(pt),injector:Jt}}),(0,$.x)(()=>{this.childrenLoaders.delete(fe)})),yt=new T(dt,()=>new le.x).pipe(C());return this.childrenLoaders.set(fe,yt),yt}loadModuleFactoryOrRoutes(F){return be(F()).pipe((0,Ze.z)(fe=>fe instanceof e.YKP||Array.isArray(fe)?(0,S.of)(fe):(0,E.D)(this.compiler.compileModuleAsync(fe))))}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(e.zs3),e.LFG(e.Sil))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class Ha{}class co{shouldProcessUrl(ne){return!0}extract(ne){return ne}merge(ne,F){return ne}}function sl(X){throw X}function cs(X,ne,F){return ne.parse("/")}const ds={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function La(){var X,ne;const F=(0,e.f3M)(Vt),fe=(0,e.f3M)(Ki),He=(0,e.f3M)(de.Ye),dt=(0,e.f3M)(e.zs3),yt=(0,e.f3M)(e.Sil),Ht=null!==(X=(0,e.f3M)(Kr,{optional:!0}))&&void 0!==X?X:[],Jt=null!==(ne=(0,e.f3M)(tr,{optional:!0}))&&void 0!==ne?ne:{},un=(0,e.f3M)(Dr),bn=(0,e.f3M)(Gi,{optional:!0}),_n=(0,e.f3M)(Ha,{optional:!0}),xn=(0,e.f3M)(al,{optional:!0}),ai=new Ti(null,F,fe,He,dt,yt,ae(Ht));return _n&&(ai.urlHandlingStrategy=_n),xn&&(ai.routeReuseStrategy=xn),ai.titleStrategy=bn??un,function Io(X,ne){X.errorHandler&&(ne.errorHandler=X.errorHandler),X.malformedUriErrorHandler&&(ne.malformedUriErrorHandler=X.malformedUriErrorHandler),X.onSameUrlNavigation&&(ne.onSameUrlNavigation=X.onSameUrlNavigation),X.paramsInheritanceStrategy&&(ne.paramsInheritanceStrategy=X.paramsInheritanceStrategy),X.relativeLinkResolution&&(ne.relativeLinkResolution=X.relativeLinkResolution),X.urlUpdateStrategy&&(ne.urlUpdateStrategy=X.urlUpdateStrategy),X.canceledNavigationResolution&&(ne.canceledNavigationResolution=X.canceledNavigationResolution)}(Jt,ai),ai}let Ti=(()=>{class X{constructor(F,fe,He,dt,yt,Ht,Jt){this.rootComponentType=F,this.urlSerializer=fe,this.rootContexts=He,this.location=dt,this.config=Jt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new le.x,this.errorHandler=sl,this.malformedUriErrorHandler=cs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,S.of)(void 0),this.urlHandlingStrategy=new co,this.routeReuseStrategy=new So,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=yt.get(Oa),this.configLoader.onLoadEndListener=xn=>this.triggerEvent(new fr(xn)),this.configLoader.onLoadStartListener=xn=>this.triggerEvent(new ir(xn)),this.ngModule=yt.get(e.h0i),this.console=yt.get(e.c2e);const _n=yt.get(e.R0b);this.isNgZoneEnabled=_n instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Jt),this.currentUrlTree=function P(){return new s(new d([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wn(this.currentUrlTree,this.rootComponentType),this.transitions=new U.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 F;return null===(F=this.location.getState())||void 0===F?void 0:F.\u0275routerPageId}setupNavigations(F){const fe=this.events;return F.pipe((0,L.h)(He=>0!==He.id),(0,Me.U)(He=>({...He,extractedUrl:this.urlHandlingStrategy.extract(He.rawUrl)})),(0,we.w)(He=>{let dt=!1,yt=!1;return(0,S.of)(He).pipe((0,j.b)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,we.w)(Ht=>{const Jt=this.browserUrlTree.toString(),un=!this.navigated||Ht.extractedUrl.toString()!==Jt||Jt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return Po(Ht.source)&&(this.browserUrlTree=Ht.extractedUrl),(0,S.of)(Ht).pipe((0,we.w)(_n=>{const xn=this.transitions.getValue();return fe.next(new Ji(_n.id,this.serializeUrl(_n.extractedUrl),_n.source,_n.restoredState)),xn!==this.transitions.getValue()?ee.E:Promise.resolve(_n)}),function ro(X,ne,F,fe){return(0,we.w)(He=>function tl(X,ne,F,fe,He){return new as(X,ne,F,fe,He).apply()}(X,ne,F,He.extractedUrl,fe).pipe((0,Me.U)(dt=>({...He,urlAfterRedirects:dt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,j.b)(_n=>{this.currentNavigation={...this.currentNavigation,finalUrl:_n.urlAfterRedirects},He.urlAfterRedirects=_n.urlAfterRedirects}),function so(X,ne,F,fe,He,dt){return(0,Ze.z)(yt=>function ao(X,ne,F,fe,He,dt,yt="emptyOnly",Ht="legacy"){return new nl(X,ne,F,fe,He,yt,Ht,dt).recognize().pipe((0,we.w)(Jt=>null===Jt?function wo(X){return new c.y(ne=>ne.error(X))}(new Da):(0,S.of)(Jt)))}(X,ne,F,yt.urlAfterRedirects,fe.serialize(yt.urlAfterRedirects),fe,He,dt).pipe((0,Me.U)(Ht=>({...yt,targetSnapshot:Ht}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,j.b)(_n=>{if(He.targetSnapshot=_n.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!_n.extras.skipLocationChange){const ai=this.urlHandlingStrategy.merge(_n.urlAfterRedirects,_n.rawUrl);this.setBrowserUrl(ai,_n)}this.browserUrlTree=_n.urlAfterRedirects}const xn=new Fi(_n.id,this.serializeUrl(_n.extractedUrl),this.serializeUrl(_n.urlAfterRedirects),_n.targetSnapshot);fe.next(xn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:ai,source:oi,restoredState:bi,extras:Ni}=Ht,qi=new Ji(xn,this.serializeUrl(ai),oi,bi);fe.next(qi);const vi=wn(ai,this.rootComponentType).snapshot;return He={...Ht,targetSnapshot:vi,urlAfterRedirects:ai,extras:{...Ni,skipLocationChange:!1,replaceUrl:!1}},(0,S.of)(He)}return this.rawUrlTree=Ht.rawUrl,Ht.resolve(null),ee.E}),(0,j.b)(Ht=>{const Jt=new Hi(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot);this.triggerEvent(Jt)}),(0,Me.U)(Ht=>He={...Ht,guards:kn(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)}),function Bi(X,ne){return(0,Ze.z)(F=>{const{targetSnapshot:fe,currentSnapshot:He,guards:{canActivateChecks:dt,canDeactivateChecks:yt}}=F;return 0===yt.length&&0===dt.length?(0,S.of)({...F,guardsResult:!0}):function Rr(X,ne,F,fe){return(0,E.D)(X).pipe((0,Ze.z)(He=>function Eo(X,ne,F,fe,He){const dt=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!dt||0===dt.length)return(0,S.of)(!0);const yt=dt.map(Ht=>{const Jt=qn(Ht,ne,He);return be(function De(X){return X&&Li(X.canDeactivate)}(Jt)?Jt.canDeactivate(X,ne,F,fe):Jt(X,ne,F,fe)).pipe((0,he.P)())});return(0,S.of)(yt).pipe(Xn())}(He.component,He.route,F,ne,fe)),(0,he.P)(He=>!0!==He,!0))}(yt,fe,He,X).pipe((0,Ze.z)(Ht=>Ht&&function hi(X){return"boolean"==typeof X}(Ht)?function da(X,ne,F,fe){return(0,E.D)(ne).pipe((0,xe.b)(He=>(0,z.z)(function qs(X,ne){return null!==X&&ne&&ne(new rr(X)),(0,S.of)(!0)}(He.route.parent,fe),function Or(X,ne){return null!==X&&ne&&ne(new an(X)),(0,S.of)(!0)}(He.route,fe),function Qs(X,ne,F){const fe=ne[ne.length-1],dt=ne.slice(0,ne.length-1).reverse().map(yt=>function Ci(X){const ne=X.routeConfig?X.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:X,guards:ne}:null}(yt)).filter(yt=>null!==yt).map(yt=>(0,Q.P)(()=>{const Ht=yt.guards.map(Jt=>{const un=qn(Jt,yt.node,F);return be(function Ve(X){return X&&Li(X.canActivateChild)}(un)?un.canActivateChild(fe,X):un(fe,X)).pipe((0,he.P)())});return(0,S.of)(Ht).pipe(Xn())}));return(0,S.of)(dt).pipe(Xn())}(X,He.path,F),function es(X,ne,F){const fe=ne.routeConfig?ne.routeConfig.canActivate:null;if(!fe||0===fe.length)return(0,S.of)(!0);const He=fe.map(dt=>(0,Q.P)(()=>{const yt=qn(dt,ne,F);return be(function Mr(X){return X&&Li(X.canActivate)}(yt)?yt.canActivate(ne,X):yt(ne,X)).pipe((0,he.P)())}));return(0,S.of)(He).pipe(Xn())}(X,He.route,F))),(0,he.P)(He=>!0!==He,!0))}(fe,dt,X,ne):(0,S.of)(Ht)),(0,Me.U)(Ht=>({...F,guardsResult:Ht})))})}(this.ngModule.injector,Ht=>this.triggerEvent(Ht)),(0,j.b)(Ht=>{if(He.guardsResult=Ht.guardsResult,Ct(Ht.guardsResult))throw Fr(0,Ht.guardsResult);const Jt=new _i(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.triggerEvent(Jt)}),(0,L.h)(Ht=>!!Ht.guardsResult||(this.restoreHistory(Ht),this.cancelNavigationTransition(Ht,"",3),!1)),Hr(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,S.of)(Ht).pipe((0,j.b)(Jt=>{const un=new gi(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(un)}),(0,we.w)(Jt=>{let un=!1;return(0,S.of)(Jt).pipe(function os(X,ne){return(0,Ze.z)(F=>{const{targetSnapshot:fe,guards:{canActivateChecks:He}}=F;if(!He.length)return(0,S.of)(F);let dt=0;return(0,E.D)(He).pipe((0,xe.b)(yt=>function lo(X,ne,F,fe){const He=X.routeConfig,dt=X._resolve;return void 0!==He?.title&&!Do(He)&&(dt[ma]=He.title),function Pa(X,ne,F,fe){const He=function ss(X){return[...Object.keys(X),...Object.getOwnPropertySymbols(X)]}(X);if(0===He.length)return(0,S.of)({});const dt={};return(0,E.D)(He).pipe((0,Ze.z)(yt=>function Qr(X,ne,F,fe){const He=qn(X,ne,fe);return be(He.resolve?He.resolve(ne,F):He(ne,F))}(X[yt],ne,F,fe).pipe((0,he.P)(),(0,j.b)(Ht=>{dt[yt]=Ht}))),B(1),(0,se.h)(dt),(0,R.K)(yt=>gn(yt)?ee.E:(0,oe._)(yt)))}(dt,X,ne,fe).pipe((0,Me.U)(yt=>(X._resolvedData=yt,X.data=Ei(X,F).resolve,He&&Do(He)&&(X.data[ma]=He.title),null)))}(yt.route,fe,X,ne)),(0,j.b)(()=>dt++),B(1),(0,Ze.z)(yt=>dt===He.length?(0,S.of)(F):ee.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,j.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(Jt),this.cancelNavigationTransition(Jt,"",2))}}))}),(0,j.b)(Jt=>{const un=new Pr(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(un)}))}),Hr(Ht=>{const Jt=un=>{var bn;const _n=[];null!==(bn=un.routeConfig)&&void 0!==bn&&bn.loadComponent&&!un.routeConfig._loadedComponent&&_n.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,j.b)(xn=>{un.component=xn}),(0,Me.U)(()=>{})));for(const xn of un.children)_n.push(...Jt(xn));return _n};return(0,V.a)(Jt(Ht.targetSnapshot.root)).pipe((0,q.d)(),(0,Ge.q)(1))}),Hr(()=>this.afterPreactivation()),(0,Me.U)(Ht=>{const Jt=function or(X,ne,F){const fe=sr(X,ne._root,F?F._root:void 0);return new hn(fe,ne)}(this.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return He={...Ht,targetRouterState:Jt}}),(0,j.b)(Ht=>{this.currentUrlTree=Ht.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ht.urlAfterRedirects,Ht.rawUrl),this.routerState=Ht.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ht.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ht),this.browserUrlTree=Ht.urlAfterRedirects)}),((X,ne,F)=>(0,Me.U)(fe=>(new ii(ne,fe.targetRouterState,fe.currentRouterState,F).activate(X),fe)))(this.rootContexts,this.routeReuseStrategy,Ht=>this.triggerEvent(Ht)),(0,j.b)({next(){dt=!0},complete(){dt=!0}}),(0,$.x)(()=>{var Ht;dt||yt||this.cancelNavigationTransition(He,"",1),(null===(Ht=this.currentNavigation)||void 0===Ht?void 0:Ht.id)===He.id&&(this.currentNavigation=null)}),(0,R.K)(Ht=>{if(yt=!0,$i(Ht)){wi(Ht)||(this.navigated=!0,this.restoreHistory(He,!0));const un=new Yn(He.id,this.serializeUrl(He.extractedUrl),Ht.message,Ht.cancellationCode);if(fe.next(un),wi(Ht)){const bn=this.urlHandlingStrategy.merge(Ht.url,this.rawUrlTree),_n={skipLocationChange:He.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Po(He.source)};this.scheduleNavigation(bn,"imperative",null,_n,{resolve:He.resolve,reject:He.reject,promise:He.promise})}else He.resolve(!1)}else{var Jt;this.restoreHistory(He,!0);const un=new Vi(He.id,this.serializeUrl(He.extractedUrl),Ht,null!==(Jt=He.targetSnapshot)&&void 0!==Jt?Jt:void 0);fe.next(un);try{He.resolve(this.errorHandler(Ht))}catch(bn){He.reject(bn)}}return ee.E}))}))}resetRootComponentType(F){this.rootComponentType=F,this.routerState.root.component=this.rootComponentType}setTransition(F){this.transitions.next({...this.transitions.value,...F})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(F=>{const fe="popstate"===F.type?"popstate":"hashchange";"popstate"===fe&&setTimeout(()=>{var He;const dt={replaceUrl:!0},yt=null!==(He=F.state)&&void 0!==He&&He.navigationId?F.state:null;if(yt){const Jt={...yt};delete Jt.navigationId,delete Jt.\u0275routerPageId,0!==Object.keys(Jt).length&&(dt.state=Jt)}const Ht=this.parseUrl(F.url);this.scheduleNavigation(Ht,fe,yt,dt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(F){this.events.next(F)}resetConfig(F){this.config=F.map(pt),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(F,fe={}){const{relativeTo:He,queryParams:dt,fragment:yt,queryParamsHandling:Ht,preserveFragment:Jt}=fe,un=He||this.routerState.root,bn=Jt?this.currentUrlTree.fragment:yt;let _n=null;switch(Ht){case"merge":_n={...this.currentUrlTree.queryParams,...dt};break;case"preserve":_n=this.currentUrlTree.queryParams;break;default:_n=dt||null}return null!==_n&&(_n=this.removeEmptyProps(_n)),$t(un,this.currentUrlTree,F,_n,bn??null)}navigateByUrl(F,fe={skipLocationChange:!1}){const He=Ct(F)?F:this.parseUrl(F),dt=this.urlHandlingStrategy.merge(He,this.rawUrlTree);return this.scheduleNavigation(dt,"imperative",null,fe)}navigate(F,fe={skipLocationChange:!1}){return function Ba(X){for(let ne=0;ne{const dt=F[He];return null!=dt&&(fe[He]=dt),fe},{})}processNavigations(){this.navigations.subscribe(F=>{var fe;this.navigated=!0,this.lastSuccessfulId=F.id,this.currentPageId=F.targetPageId,this.events.next(new Gn(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(fe=this.titleStrategy)||void 0===fe||fe.updateTitle(this.routerState.snapshot),F.resolve(!0)},F=>{this.console.warn(`Unhandled Navigation Error: ${F}`)})}scheduleNavigation(F,fe,He,dt,yt){if(this.disposed)return Promise.resolve(!1);let Ht,Jt,un;yt?(Ht=yt.resolve,Jt=yt.reject,un=yt.promise):un=new Promise((oi,bi)=>{Ht=oi,Jt=bi});const bn=++this.navigationId;let _n;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(He=this.location.getState()),He&&He.\u0275routerPageId)_n=He.\u0275routerPageId;else if(dt.replaceUrl||dt.skipLocationChange){var xn;_n=null!==(xn=this.browserPageId)&&void 0!==xn?xn:0}else{var ai;_n=(null!==(ai=this.browserPageId)&&void 0!==ai?ai:0)+1}else _n=0;return this.setTransition({id:bn,targetPageId:_n,source:fe,restoredState:He,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:F,extras:dt,resolve:Ht,reject:Jt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(oi=>Promise.reject(oi))}setBrowserUrl(F,fe){const He=this.urlSerializer.serialize(F),dt={...fe.extras.state,...this.generateNgRouterState(fe.id,fe.targetPageId)};this.location.isCurrentPathEqualTo(He)||fe.extras.replaceUrl?this.location.replaceState(He,"",dt):this.location.go(He,"",dt)}restoreHistory(F,fe=!1){if("computed"===this.canceledNavigationResolution){var He,dt;const yt=this.currentPageId-F.targetPageId;"popstate"!==F.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(He=this.currentNavigation)||void 0===He?void 0:He.finalUrl)||0===yt?this.currentUrlTree===(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)&&0===yt&&(this.resetState(F),this.browserUrlTree=F.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(yt)}else"replace"===this.canceledNavigationResolution&&(fe&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=F.currentRouterState,this.currentUrlTree=F.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(F,fe,He){const dt=new Yn(F.id,this.serializeUrl(F.extractedUrl),fe,He);this.triggerEvent(dt),F.resolve(!1)}generateNgRouterState(F,fe){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:fe}:{navigationId:F}}}return X.\u0275fac=function(F){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:function(){return La()},providedIn:"root"}),X})();function Po(X){return"imperative"!==X}let Na=(()=>{class X{constructor(F,fe,He,dt,yt){this.router=F,this.route=fe,this.tabIndexAttribute=He,this.renderer=dt,this.el=yt,this.commands=null,this.onChanges=new le.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(F){if(null!=this.tabIndexAttribute)return;const fe=this.renderer,He=this.el.nativeElement;null!==F?fe.setAttribute(He,"tabindex",F):fe.removeAttribute(He,"tabindex")}ngOnChanges(F){this.onChanges.next(this)}set routerLink(F){null!=F?(this.commands=Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const F={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,F),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ti),e.Y36($n),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},X.\u0275dir=e.lG2({type:X,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(F,fe){1&F&&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]}),X})(),ka=(()=>{class X{constructor(F,fe,He){this.router=F,this.route=fe,this.locationStrategy=He,this.commands=null,this.href=null,this.onChanges=new le.x,this.subscription=F.events.subscribe(dt=>{dt instanceof Gn&&this.updateTargetUrlAndHref()})}set routerLink(F){this.commands=null!=F?Array.isArray(F)?F:[F]:null}ngOnChanges(F){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(F,fe,He,dt,yt){if(0!==F||fe||He||dt||yt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ht={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ht),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ti),e.Y36($n),e.Y36(de.S$))},X.\u0275dir=e.lG2({type:X,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(F,fe){1&F&&e.NdJ("click",function(dt){return fe.onClick(dt.button,dt.ctrlKey,dt.shiftKey,dt.altKey,dt.metaKey)}),2&F&&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]}),X})();class Ro{}let ps=(()=>{class X{preload(F,fe){return(0,S.of)(null)}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Va=(()=>{class X{constructor(F,fe,He,dt,yt){this.router=F,this.injector=He,this.preloadingStrategy=dt,this.loader=yt}setUpPreloading(){this.subscription=this.router.events.pipe((0,L.h)(F=>F instanceof Gn),(0,xe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,fe){const He=[];for(const Jt of fe){var dt,yt;Jt.providers&&!Jt._injector&&(Jt._injector=(0,e.MMx)(Jt.providers,F,`Route: ${Jt.path}`));const un=null!==(dt=Jt._injector)&&void 0!==dt?dt:F,bn=null!==(yt=Jt._loadedInjector)&&void 0!==yt?yt:un;if(Jt.loadChildren&&!Jt._loadedRoutes&&void 0===Jt.canLoad||Jt.loadComponent&&!Jt._loadedComponent)He.push(this.preloadConfig(un,Jt));else if(Jt.children||Jt._loadedRoutes){var Ht;He.push(this.processRoutes(bn,null!==(Ht=Jt.children)&&void 0!==Ht?Ht:Jt._loadedRoutes))}}return(0,E.D)(He).pipe((0,Ee.J)())}preloadConfig(F,fe){return this.preloadingStrategy.preload(fe,()=>{let He;He=fe.loadChildren&&void 0===fe.canLoad?this.loader.loadChildren(F,fe):(0,S.of)(null);const dt=He.pipe((0,Ze.z)(yt=>{var Ht;return null===yt?(0,S.of)(void 0):(fe._loadedRoutes=yt.routes,fe._loadedInjector=yt.injector,this.processRoutes(null!==(Ht=yt.injector)&&void 0!==Ht?Ht:F,yt.routes))}));if(fe.loadComponent&&!fe._loadedComponent){const yt=this.loader.loadComponent(fe);return(0,E.D)([dt,yt]).pipe((0,Ee.J)())}return dt})}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(Ti),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Ro),e.LFG(Oa))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const Fa=new e.OlP("");let _a=(()=>{class X{constructor(F,fe,He={}){this.router=F,this.viewportScroller=fe,this.options=He,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},He.scrollPositionRestoration=He.scrollPositionRestoration||"disabled",He.anchorScrolling=He.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(F=>{F instanceof Ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Gn&&(this.lastId=F.id,this.scheduleScrollEvent(F,this.router.parseUrl(F.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Bt&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,fe){this.router.triggerEvent(new Bt(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,fe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return X.\u0275fac=function(F){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const fs=new e.OlP("ROUTER_FORROOT_GUARD"),ho=new e.OlP(""),Aa=[de.Ye,{provide:Vt,useClass:on},{provide:Ti,useFactory:La},Ki,{provide:$n,useFactory:function Ul(X){return X.routerState.root},deps:[Ti]},Oa];function cl(){return new e.PXZ("Router",Ti)}let ni=(()=>{class X{constructor(F){}static forRoot(F,fe){return{ngModule:X,providers:[Aa,[],dl(F),{provide:fs,useFactory:zl,deps:[[Ti,new e.FiY,new e.tp0]]},{provide:tr,useValue:fe||{}},null!=fe&&fe.useHash?{provide:de.S$,useClass:de.Do}:{provide:de.S$,useClass:de.b0},{provide:Fa,useFactory:()=>{const X=(0,e.f3M)(Ti),ne=(0,e.f3M)(de.EM),F=(0,e.f3M)(tr);return F.scrollOffset&&ne.setOffset(F.scrollOffset),new _a(X,ne,F)}},null!=fe&&fe.preloadingStrategy?pl(fe.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:cl},null!=fe&&fe.initialNavigation?Ua(fe):[],[{provide:ul,useFactory:Wl},{provide:e.tb,multi:!0,useExisting:ul}]]}}static forChild(F){return{ngModule:X,providers:[dl(F)]}}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(fs,8))},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({}),X})();function zl(X){return"guarded"}function dl(X){return[{provide:Kr,multi:!0,useValue:X}]}function Wl(){const X=(0,e.f3M)(e.zs3);return ne=>{var F,fe;const He=X.get(e.z2F);if(ne!==He.components[0])return;const dt=X.get(Ti),yt=X.get(hl);1===X.get(ja)&&dt.initialNavigation(),null===(F=X.get(ho,null,e.XFs.Optional))||void 0===F||F.setUpPreloading(),null===(fe=X.get(Fa,null,e.XFs.Optional))||void 0===fe||fe.init(),dt.resetRootComponentType(He.componentTypes[0]),yt.next(),yt.complete()}}const ul=new e.OlP("");function Ua(X){return["disabled"===X.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const X=(0,e.f3M)(Ti);return()=>{X.setUpLocationChangeListener()}}},{provide:ja,useValue:2}]:[],"enabledBlocking"===X.initialNavigation?[{provide:ja,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:X=>{const ne=X.get(de.V_,Promise.resolve(null));let F=!1;return()=>ne.then(()=>new Promise(He=>{const dt=X.get(Ti),yt=X.get(hl);(function fe(He){X.get(Ti).events.pipe((0,L.h)(yt=>yt instanceof Gn||yt instanceof Yn||yt instanceof Vi),(0,Me.U)(yt=>yt instanceof Gn||yt instanceof Yn&&(0===yt.code||1===yt.code)&&null),(0,L.h)(yt=>null!==yt),(0,Ge.q)(1)).subscribe(()=>{He()})})(()=>{He(!0),F=!0}),dt.afterPreactivation=()=>(He(!0),F||yt.closed?(0,S.of)(void 0):yt),dt.initialNavigation()}))}}]:[]]}const hl=new e.OlP("",{factory:()=>new le.x}),ja=new e.OlP("",{providedIn:"root",factory:()=>1});function pl(X){return[Va,{provide:ho,useExisting:Va},{provide:Ro,useExisting:X}]}},89383:(Ye,pe,h)=>{"use strict";h.d(pe,{X$:()=>ce,Zw:()=>V,aw:()=>Ze,sK:()=>we});var e=h(94650),c=h(39646),A=h(45191),w=h(4128),g=h(97272),C=h(49770),T=h(95698),E=h(34782),S=h(54004),U=h(24351),_=h(63900);class V{}let z=(()=>{class he extends V{getTranslation(j){return(0,c.of)({})}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class Q{}let te=(()=>{class he{handle(j){return j.key}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();function oe(he,xe){if(he===xe)return!0;if(null===he||null===xe)return!1;if(he!=he&&xe!=xe)return!0;let G,se,$,j=typeof he;if(j==typeof xe&&"object"==j){if(!Array.isArray(he)){if(Array.isArray(xe))return!1;for(se in $=Object.create(null),he){if(!oe(he[se],xe[se]))return!1;$[se]=!0}for(se in xe)if(!(se in $)&&typeof xe[se]<"u")return!1;return!0}if(!Array.isArray(xe))return!1;if((G=he.length)==xe.length){for(se=0;se{le(xe[R])?R in he?j[R]=de(he[R],xe[R]):Object.assign(j,{[R]:xe[R]}):Object.assign(j,{[R]:xe[R]})}),j}class Te{}let v=(()=>{class he extends Te{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(j,R){let G;return G="string"==typeof j?this.interpolateString(j,R):"function"==typeof j?this.interpolateFunction(j,R):j,G}getValue(j,R){let G="string"==typeof R?R.split("."):[R];R="";do{R+=G.shift(),!ee(j)||!ee(j[R])||"object"!=typeof j[R]&&G.length?G.length?R+=".":j=void 0:(j=j[R],R="")}while(G.length);return j}interpolateFunction(j,R){return j(R)}interpolateString(j,R){return R?j.replace(this.templateMatcher,(G,se)=>{let $=this.getValue(R,se);return ee($)?$:G}):j}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class L{}let B=(()=>{class he extends L{compile(j,R){return j}compileTranslations(j,R){return j}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class W{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 q=new e.OlP("USE_STORE"),ue=new e.OlP("USE_DEFAULT_LANG"),ye=new e.OlP("DEFAULT_LANGUAGE"),Me=new e.OlP("USE_EXTEND");let we=(()=>{class he{constructor(j,R,G,se,$,Ee=!0,Oe=!1,ct=!1,Xe){this.store=j,this.currentLoader=R,this.compiler=G,this.parser=se,this.missingTranslationHandler=$,this.useDefaultLang=Ee,this.isolate=Oe,this.extend=ct,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Xe&&this.setDefaultLang(Xe)}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(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}setDefaultLang(j){if(j===this.defaultLang)return;let R=this.retrieveTranslations(j);typeof R<"u"?(null==this.defaultLang&&(this.defaultLang=j),R.pipe((0,T.q)(1)).subscribe(G=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,c.of)(this.translations[j]);let R=this.retrieveTranslations(j);return typeof R<"u"?(this.currentLang||(this.currentLang=j),R.pipe((0,T.q)(1)).subscribe(G=>{this.changeLang(j)}),R):(this.changeLang(j),(0,c.of)(this.translations[j]))}retrieveTranslations(j){let R;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),R=this._translationRequests[j]),R}getTranslation(j){this.pending=!0;const R=this.currentLoader.getTranslation(j).pipe((0,E.d)(1),(0,T.q)(1));return this.loadingTranslations=R.pipe((0,S.U)(G=>this.compiler.compileTranslations(G,j)),(0,E.d)(1),(0,T.q)(1)),this.loadingTranslations.subscribe({next:G=>{this.translations[j]=this.extend&&this.translations[j]?{...G,...this.translations[j]}:G,this.updateLangs(),this.pending=!1},error:G=>{this.pending=!1}}),R}setTranslation(j,R,G=!1){R=this.compiler.compileTranslations(R,j),this.translations[j]=(G||this.extend)&&this.translations[j]?de(this.translations[j],R):R,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(R=>{-1===this.langs.indexOf(R)&&this.langs.push(R)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,R,G){let se;if(R instanceof Array){let $={},Ee=!1;for(let Oe of R)$[Oe]=this.getParsedResult(j,Oe,G),(0,A.b)($[Oe])&&(Ee=!0);if(Ee){const Oe=R.map(ct=>(0,A.b)($[ct])?$[ct]:(0,c.of)($[ct]));return(0,w.D)(Oe).pipe((0,S.U)(ct=>{let Xe={};return ct.forEach((_t,Je)=>{Xe[R[Je]]=_t}),Xe}))}return $}if(j&&(se=this.parser.interpolate(this.parser.getValue(j,R),G)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],R),G)),typeof se>"u"){let $={key:R,translateService:this};typeof G<"u"&&($.interpolateParams=G),se=this.missingTranslationHandler.handle($)}return typeof se<"u"?se:R}get(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,U.b)(G=>(G=this.getParsedResult(G,j,R),(0,A.b)(G)?G:(0,c.of)(G))));{let G=this.getParsedResult(this.translations[this.currentLang],j,R);return(0,A.b)(G)?G:(0,c.of)(G)}}getStreamOnTranslationChange(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,R)),this.onTranslationChange.pipe((0,_.w)(G=>{const se=this.getParsedResult(G.translations,j,R);return"function"==typeof se.subscribe?se:(0,c.of)(se)})))}stream(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,R)),this.onLangChange.pipe((0,_.w)(G=>{const se=this.getParsedResult(G.translations,j,R);return(0,A.b)(se)?se:(0,c.of)(se)})))}instant(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');let G=this.getParsedResult(this.translations[this.currentLang],j,R);if((0,A.b)(G)){if(j instanceof Array){let se={};return j.forEach(($,Ee)=>{se[j[Ee]]=j[Ee]}),se}return j}return G}set(j,R,G=this.currentLang){this.translations[G][j]=this.compiler.compile(R,G),this.updateLangs(),this.onTranslationChange.emit({lang:G,translations:this.translations[G]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}}return he.\u0275fac=function(j){return new(j||he)(e.LFG(W),e.LFG(V),e.LFG(L),e.LFG(Te),e.LFG(Q),e.LFG(ue),e.LFG(q),e.LFG(Me),e.LFG(ye))},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),ce=(()=>{class he{constructor(j,R){this.translate=j,this._ref=R,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(j,R,G){let se=$=>{this.value=void 0!==$?$:j,this.lastKey=j,this._ref.markForCheck()};if(G){let $=this.translate.getParsedResult(G,j,R);(0,A.b)($.subscribe)?$.subscribe(se):se($)}this.translate.get(j,R).subscribe(se)}transform(j,...R){if(!j||!j.length)return j;if(oe(j,this.lastKey)&&oe(R,this.lastParams))return this.value;let G;if(ee(R[0])&&R.length)if("string"==typeof R[0]&&R[0].length){let se=R[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{G=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${R[0]}`)}}else"object"==typeof R[0]&&!Array.isArray(R[0])&&(G=R[0]);return this.lastKey=j,this.lastParams=R,this.updateValue(j,G),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,G,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return he.\u0275fac=function(j){return new(j||he)(e.Y36(we,16),e.Y36(e.sBO,16))},he.\u0275pipe=e.Yjl({name:"translate",type:he,pure:!1}),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),Ze=(()=>{class he{static forRoot(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:z},j.compiler||{provide:L,useClass:B},j.parser||{provide:Te,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:te},W,{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:Me,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},we]}}static forChild(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:z},j.compiler||{provide:L,useClass:B},j.parser||{provide:Te,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:te},{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:Me,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},we]}}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({}),he})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Ye extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Ye.\u0275fac=function(){let pe;return function(e){return(pe||(pe=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Ye)))(e||Ye)}}(),Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Ye{constructor(){this.data=new Map}getItem(h){return this.data.get(h)}removeItem(h){this.data.delete(h)}setItem(h,e){this.data.set(h,e)}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class ReceivedTokens{}class OAuthEvent{constructor(pe){this.type=pe}}class OAuthSuccessEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthInfoEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthErrorEvent extends OAuthEvent{constructor(pe,h,e=null){super(pe),this.reason=h,this.params=e}}function b64DecodeUnicode(Ye){const pe=Ye.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(pe).split("").map(function(h){return"%"+("00"+h.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Ye){return btoa(Ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(pe){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=h=>{location.href=h},pe&&Object.assign(this,pe)}}class WebHttpUrlEncodingCodec{encodeKey(pe){return encodeURIComponent(pe)}encodeValue(pe){return encodeURIComponent(pe)}decodeKey(pe){return decodeURIComponent(pe)}decodeValue(pe){return decodeURIComponent(pe)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(pe){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=h.inferHashAlgorithm(pe.idTokenHeader),c=yield h.calcHash(pe.accessToken,e),w=base64UrlEncode(c.substr(0,c.length/2)),g=pe.idTokenClaims.at_hash.replace(/=/g,"");return w!==g&&(console.error("exptected at_hash: "+w),console.error("actual at_hash: "+g)),w===g})()}inferHashAlgorithm(pe){let h=pe.alg;if(!h.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+h);return"sha-"+h.substr(2)}}let UrlHelperService=(()=>{class Ye{getHashFragmentParams(h){let e=h||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const c=e.indexOf("?");return e=e.substr(c>-1?c+1:1),this.parseQueryString(e)}parseQueryString(h){const e={};let c,A,w,g,C,T,E;if(null===h)return e;c=h.split("&");for(let S=0;S>6,A[g++]=128|63&C):C<55296||C>=57344?(A[g++]=224|C>>12,A[g++]=128|C>>6&63,A[g++]=128|63&C):(C=65536+((1023&C)<<10|1023&Ye.charCodeAt(++e)),A[g++]=240|C>>18,A[g++]=128|C>>12&63,A[g++]=128|C>>6&63,A[g++]=128|63&C);Ye=A}else{if("object"!==c)throw new Error(ERROR);if(null===Ye)throw new Error(ERROR);if(ARRAY_BUFFER&&Ye.constructor===ArrayBuffer)Ye=new Uint8Array(Ye);else if(!(Array.isArray(Ye)||ARRAY_BUFFER&&ArrayBuffer.isView(Ye)))throw new Error(ERROR)}Ye.length>64&&(Ye=new Sha256(pe,!0).update(Ye).array());var T=[],E=[];for(e=0;e<64;++e){var S=Ye[e]||0;T[e]=92^S,E[e]=54^S}Sha256.call(this,pe,h),this.update(E),this.oKeyPad=T,this.inner=!0,this.sharedMemory=h}Sha256.prototype.update=function(Ye){if(!this.finalized){var pe,h=typeof Ye;if("string"!==h){if("object"!==h)throw new Error(ERROR);if(null===Ye)throw new Error(ERROR);if(ARRAY_BUFFER&&Ye.constructor===ArrayBuffer)Ye=new Uint8Array(Ye);else if(!(Array.isArray(Ye)||ARRAY_BUFFER&&ArrayBuffer.isView(Ye)))throw new Error(ERROR);pe=!0}for(var e,A,c=0,w=Ye.length,g=this.blocks;c>2]|=Ye[c]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[A>>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=A-64,this.hash(),this.hashed=!0):this.start=A}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 Ye=this.blocks,pe=this.lastByteIndex;Ye[16]=this.block,Ye[pe>>2]|=EXTRA[3&pe],this.block=Ye[16],pe>=56&&(this.hashed||this.hash(),Ye[0]=this.block,Ye[16]=Ye[1]=Ye[2]=Ye[3]=Ye[4]=Ye[5]=Ye[6]=Ye[7]=Ye[8]=Ye[9]=Ye[10]=Ye[11]=Ye[12]=Ye[13]=Ye[14]=Ye[15]=0),Ye[14]=this.hBytes<<3|this.bytes>>>29,Ye[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var T,_,Q,te,oe,ee,Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=this.blocks;for(T=16;T<64;++T)C[T]=C[T-16]+(((_=C[T-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)+C[T-7]+(((_=C[T-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10)<<0;for(ee=pe&h,T=0;T<64;T+=4)this.first?(this.is224?(Q=300032,g=(_=C[0]-1413257819)-150054599<<0,e=_+24177077<<0):(Q=704751109,g=(_=C[0]-210244248)-1521486534<<0,e=_+143694565<<0),this.first=!1):(g=e+(_=g+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&A^~c&w)+K[T]+C[T])<<0,e=_+(((Ye>>>2|Ye<<30)^(Ye>>>13|Ye<<19)^(Ye>>>22|Ye<<10))+((Q=Ye&pe)^Ye&h^ee))<<0),w=h+(_=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&c^~g&A)+K[T+1]+C[T+1])<<0,h=_+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((te=e&Ye)^e&pe^Q))<<0,A=pe+(_=A+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&c)+K[T+2]+C[T+2])<<0,pe=_+(((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((oe=h&e)^h&Ye^te))<<0,c=Ye+(_=c+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&g)+K[T+3]+C[T+3])<<0,Ye=_+(((pe>>>2|pe<<30)^(pe>>>13|pe<<19)^(pe>>>22|pe<<10))+((ee=pe&h)^pe&e^oe))<<0;this.h0=this.h0+Ye<<0,this.h1=this.h1+pe<<0,this.h2=this.h2+h<<0,this.h3=this.h3+e<<0,this.h4=this.h4+c<<0,this.h5=this.h5+A<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=HEX_CHARS[Ye>>28&15]+HEX_CHARS[Ye>>24&15]+HEX_CHARS[Ye>>20&15]+HEX_CHARS[Ye>>16&15]+HEX_CHARS[Ye>>12&15]+HEX_CHARS[Ye>>8&15]+HEX_CHARS[Ye>>4&15]+HEX_CHARS[15&Ye]+HEX_CHARS[pe>>28&15]+HEX_CHARS[pe>>24&15]+HEX_CHARS[pe>>20&15]+HEX_CHARS[pe>>16&15]+HEX_CHARS[pe>>12&15]+HEX_CHARS[pe>>8&15]+HEX_CHARS[pe>>4&15]+HEX_CHARS[15&pe]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[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[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[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||(C+=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]),C},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=[Ye>>24&255,Ye>>16&255,Ye>>8&255,255&Ye,pe>>24&255,pe>>16&255,pe>>8&255,255&pe,h>>24&255,h>>16&255,h>>8&255,255&h,e>>24&255,e>>16&255,e>>8&255,255&e,c>>24&255,c>>16&255,c>>8&255,255&c,A>>24&255,A>>16&255,A>>8&255,255&A,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||C.push(g>>24&255,g>>16&255,g>>8&255,255&g),C},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Ye=new ArrayBuffer(this.is224?28:32),pe=new DataView(Ye);return pe.setUint32(0,this.h0),pe.setUint32(4,this.h1),pe.setUint32(8,this.h2),pe.setUint32(12,this.h3),pe.setUint32(16,this.h4),pe.setUint32(20,this.h5),pe.setUint32(24,this.h6),this.is224||pe.setUint32(28,this.h7),Ye},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Ye=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Ye),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(Ye){if("string"!=typeof Ye)throw new TypeError("expected string");var pe,h=Ye,e=new Uint8Array(h.length);for(pe=0;pe{class Ye{calcHash(h,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(h)))})()}toHashString2(h){let e="";for(let c of h)e+=String.fromCharCode(c);return e}toHashString(h){const e=new Uint8Array(h);let c="";for(let A of e)c+=String.fromCharCode(A);return c}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),OAuthService=(()=>{class Ye extends AuthConfig{constructor(h,e,c,A,w,g,C,T,E,S){super(),this.ngZone=h,this.http=e,this.config=w,this.urlHelper=g,this.logger=C,this.crypto=T,this.dateTimeService=S,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=E,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),A&&(this.tokenValidationHandler=A),w&&this.configure(w);try{c?this.setStorage(c):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(V){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",V)}if(this.checkLocalStorageAccessable()){var U,_;const V=null===(U=window)||void 0===U||null===(_=U.navigator)||void 0===_?void 0:_.userAgent;(V?.includes("MSIE ")||V?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const h="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(h,h),localStorage.removeItem(h),0))}catch{return!1}}configure(h){Object.assign(this,new AuthConfig,h),this.config=Object.assign({},new AuthConfig,h),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)(h=>"token_received"===h.type)).subscribe(h=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(h={},e,c=!0){let A=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?A=!0:"logout"===w.type&&(A=!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=>{A&&this.refreshInternal(h,c).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(h,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(h,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(h=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(h))}loadDiscoveryDocumentAndLogin(h=null){return this.loadDiscoveryDocumentAndTryLogin(h=h||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof h.state?h.state:""),!1))}debug(...h){this.showDebugInformation&&this.logger.debug.apply(this.logger,h)}validateUrlFromDiscoveryDocument(h){const e=[],c=this.validateUrlForHttps(h),A=this.validateUrlAgainstIssuer(h);return c||e.push("https for all urls required. Also for urls received by discovery."),A||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(h){if(!h)return!0;const e=h.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(h,e){if(!h)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(h))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(h){return!this.strictDiscoveryDocumentValidation||!h||h.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const h=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),c=this.calcTimeout(e,h);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)(c)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}setupIdTokenTimer(){const h=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),c=this.calcTimeout(e,h);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)(c)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}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(h,e){const c=this.dateTimeService.now();return Math.max(0,(e-h)*this.timeoutFactor-(c-h))}setStorage(h){this._storage=h,this.configChanged()}loadDiscoveryDocument(h=null){return new Promise((e,c)=>{h||((h=this.issuer||"").endsWith("/")||(h+="/"),h+=".well-known/openid-configuration"),this.validateUrlForHttps(h)?this.http.get(h).subscribe(A=>{if(!this.validateDiscoveryDocument(A))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void c("discovery_document_validation_error");this.loginUrl=A.authorization_endpoint,this.logoutUrl=A.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=A.grant_types_supported,this.issuer=A.issuer,this.tokenEndpoint=A.token_endpoint,this.userinfoEndpoint=A.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=A.jwks_uri,this.sessionCheckIFrameUrl=A.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(A),this.revocationEndpoint=A.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const C=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:A,jwks:w});this.eventsSubject.next(C),e(C)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),c(w)})},A=>{this.logger.error("error loading discovery document",A),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",A)),c(A)}):c("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((h,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(c=>{this.jwks=c,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),h(c)},c=>{this.logger.error("error loading jwks",c),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",c)),e(c)}):h(null)})}validateDiscoveryDocument(h){let e;return this.skipIssuerCheck||h.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(h.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!h.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: "+h.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(h,e,c).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((h,e)=>{const c=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:c,observe:"response",responseType:"text"}).subscribe(A=>{if(this.debug("userinfo received",JSON.stringify(A)),A.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(A.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")),h({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h(JSON.parse(A.body))},A=>{this.logger.error("error loading user info",A),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",A)),e(A)})})}fetchTokenUsingPasswordFlow(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:h,password:e},c)}fetchTokenUsingGrant(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",h).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))A=A.set(w,e[w]);return c=c.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,A,{headers:c}).subscribe(C=>{this.debug("tokenResponse",C),this.storeAccessTokenResponse(C.access_token,C.refresh_token,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C.scope,this.extractRecognizedCustomParameters(C)),this.oidc&&C.id_token&&this.processIdToken(C.id_token,C.access_token).then(T=>{this.storeIdToken(T),w(C)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(C)},C=>{this.logger.error("Error performing ${grantType} flow",C),this.eventsSubject.next(new OAuthErrorEvent("token_error",C)),g(C)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((h,e)=>{let c=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")),A=(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}`);A=A.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(c=c.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(c=c.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))c=c.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,c,{headers:A}).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")),h(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=h=>{const e=this.processMessageEventMessage(h);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(c=>this.debug("tryLogin during silent refresh failed",c))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(h={},e=!0){const c=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(h.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const A=this.document.getElementById(this.silentRefreshIFrameName);A&&this.document.body.removeChild(A),this.silentRefreshSubject=c.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,h).then(S=>{w.setAttribute("src",S),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const C=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>S instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),T=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_received"===S.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([C,T,E]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>{if(S instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===S.type||(S=new OAuthErrorEvent("silent_refresh_error",S)),this.eventsSubject.next(S),S;return"token_received"===S.type&&(S=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(S)),S})).toPromise()}initImplicitFlowInPopup(h){return this.initLoginFlowInPopup(h)}initLoginFlowInPopup(h){return h=h||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((c,A)=>{let C,g=null;h.windowRef?h.windowRef&&!h.windowRef.closed&&(g=h.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(h));const T=V=>{this.tryLogin({customHashFragment:V,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{S(),c(!0)},z=>{S(),A(z)})};g?C=window.setInterval(()=>{(!g||g.closed)&&(S(),A(new OAuthErrorEvent("popup_closed",{})))},500):A(new OAuthErrorEvent("popup_blocked",{}));const S=()=>{window.clearInterval(C),window.removeEventListener("storage",_),window.removeEventListener("message",U),null!==g&&g.close(),g=null},U=V=>{const z=this.processMessageEventMessage(V);z&&null!==z?(window.removeEventListener("storage",_),T(z)):console.log("false event firing")},_=V=>{"auth_hash"===V.key&&(window.removeEventListener("message",U),T(V.newValue))};window.addEventListener("message",U),window.addEventListener("storage",_)}))}calculatePopupFeatures(h){const e=h.height||470,c=h.width||500,A=window.screenLeft+(window.outerWidth-c)/2;return`location=no,toolbar=no,width=${c},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${A}`}processMessageEventMessage(h){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!h||!h.data||"string"!=typeof h.data)return;const c=h.data;return c.startsWith(e)?"#"+c.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=h=>{const e=h.origin.toLowerCase(),c=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),c.startsWith(e)){switch(h.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",h)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",c,"event",h)},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(h=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(h=>{this.debug("token refresh after session change worked")}).catch(h=>{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)(h=>"silently_refreshed"===h.type||"silent_refresh_timeout"===h.type||"silent_refresh_error"===h.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(h=>{"silently_refreshed"!==h.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 h=this.document.getElementById(this.sessionCheckIFrameName);h&&this.document.body.removeChild(h);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 h=this.document.getElementById(this.sessionCheckIFrameName);h||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),h.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(h="",e="",c="",A=!1,w={}){var g=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const C=g;let T;T=c||g.redirectUri;const E=yield g.createAndSaveNonce();if(h=h?E+g.config.nonceStateSeparator+encodeURIComponent(h):E,!g.requestAccessToken&&!g.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");g.responseType=g.config.responseType?g.config.responseType:g.oidc&&g.requestAccessToken?"id_token token":g.oidc&&!g.requestAccessToken?"id_token":"token";const S=C.loginUrl.indexOf("?")>-1?"&":"?";let U=C.scope;g.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let _=C.loginUrl+S+"response_type="+encodeURIComponent(C.responseType)+"&client_id="+encodeURIComponent(C.clientId)+"&state="+encodeURIComponent(h)+"&redirect_uri="+encodeURIComponent(T)+"&scope="+encodeURIComponent(U);if(g.responseType.includes("code")&&!g.disablePKCE){const[V,z]=yield g.createChallangeVerifierPairForPKCE();g.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",z):g._storage.setItem("PKCE_verifier",z),_+="&code_challenge="+V,_+="&code_challenge_method=S256"}e&&(_+="&login_hint="+encodeURIComponent(e)),C.resource&&(_+="&resource="+encodeURIComponent(C.resource)),C.oidc&&(_+="&nonce="+encodeURIComponent(E)),A&&(_+="&prompt=none");for(const V of Object.keys(w))_+="&"+encodeURIComponent(V)+"="+encodeURIComponent(w[V]);if(g.customQueryParams)for(const V of Object.getOwnPropertyNames(g.customQueryParams))_+="&"+V+"="+encodeURIComponent(g.customQueryParams[V]);return _})()}initImplicitFlowInternal(h="",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 c={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(c=e),this.createLoginUrl(h,A,null,!1,c).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(h="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(h,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(c=>"discovery_document_loaded"===c.type)).subscribe(c=>this.initImplicitFlowInternal(h,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(h){const e=this;if(h.onTokenReceived){const c={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};h.onTokenReceived(c)}}storeAccessTokenResponse(h,e,c,A,w){if(this._storage.setItem("access_token",h),A&&!Array.isArray(A)?this._storage.setItem("granted_scopes",JSON.stringify(A.split(" "))):A&&Array.isArray(A)&&this._storage.setItem("granted_scopes",JSON.stringify(A)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),c){const g=1e3*c,T=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+T)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,C)=>{this._storage.setItem(C,g)})}tryLogin(h=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(h).then(e=>!0):this.tryLoginImplicitFlow(h)}parseQueryString(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):{}}tryLoginCodeFlow(h=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const c=(h=h||{}).customHashFragment?h.customHashFragment.substring(1):window.location.search,A=e.getCodePartsFromUrl(c),w=A.code,g=A.state,C=A.session_state;if(!h.preventClearHashAfterLogin){const S=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,S)}let[T,E]=e.parseState(g);if(e.state=E,A.error){e.debug("error trying to login"),e.handleLoginError(h,A);const S=new OAuthErrorEvent("code_error",{},A);return e.eventsSubject.next(S),Promise.reject(S)}if(!h.disableNonceCheck){if(!T)return e.saveRequestedRoute(),Promise.resolve();if(!h.disableOAuth2StateCheck&&!e.validateNonce(T)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(U),Promise.reject(U)}return e.storeSessionState(C),w&&(yield e.getTokenFromCode(w,h),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const h=this._storage.getItem("requested_route");h&&history.replaceState(null,"",window.location.origin+h)}getCodePartsFromUrl(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(h,e){let c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",h).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let A;A=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),A?c=c.set("code_verifier",A):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(c,e)}fetchAndProcessToken(h,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let c=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const A=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+A)}return this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),new Promise((A,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,h,{headers:c}).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(C=>{this.storeIdToken(C),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g)}).catch(C=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",C)),console.error("Error validating tokens"),console.error(C),w(C)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(h=null){let e;e=(h=h||{}).customHashFragment?this.urlHelper.getHashFragmentParams(h.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const c=e.state;let[A,w]=this.parseState(c);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(h,e);const S=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(S),Promise.reject(S)}const g=e.access_token,C=e.id_token,T=e.session_state,E=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&&!h.disableOAuth2StateCheck&&!c||this.oidc&&!C)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!T&&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&&!h.disableNonceCheck&&!this.validateNonce(A)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,E),this.oidc?this.processIdToken(C,g,h.disableNonceCheck).then(S=>h.validationHandler?h.validationHandler({accessToken:g,idClaims:S.idTokenClaims,idToken:S.idToken,state:c}).then(U=>S):S).then(S=>(this.storeIdToken(S),this.storeSessionState(T),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(h),this.inImplicitFlow=!1,!0)).catch(S=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",S)),this.logger.error("Error validating tokens"),this.logger.error(S),Promise.reject(S))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(h),Promise.resolve(!0))}parseState(h){let e=h,c="";if(h){const A=h.indexOf(this.config.nonceStateSeparator);A>-1&&(e=h.substr(0,A),c=h.substr(A+this.config.nonceStateSeparator.length))}return[e,c]}validateNonce(h){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===h||(console.error("Validating access_token failed, wrong state/nonce.",e,h),!1)}storeIdToken(h){this._storage.setItem("id_token",h.idToken),this._storage.setItem("id_token_claims_obj",h.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+h.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(h){this._storage.setItem("session_state",h)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(h,e){h.onLoginError&&h.onLoginError(e),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(h=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:h}processIdToken(h,e,c=!1){const A=h.split("."),g=b64DecodeUnicode(this.padBase64(A[0])),C=JSON.parse(g),E=b64DecodeUnicode(this.padBase64(A[1])),S=JSON.parse(E);let U;if(U=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(S.aud)){if(S.aud.every(oe=>oe!==this.clientId)){const oe="Wrong audience: "+S.aud.join(",");return this.logger.warn(oe),Promise.reject(oe)}}else if(S.aud!==this.clientId){const oe="Wrong audience: "+S.aud;return this.logger.warn(oe),Promise.reject(oe)}if(!S.sub){const oe="No sub claim in id_token";return this.logger.warn(oe),Promise.reject(oe)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==S.sub){const oe=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${S.sub}`;return this.logger.warn(oe),Promise.reject(oe)}if(!S.iat){const oe="No iat claim in id_token";return this.logger.warn(oe),Promise.reject(oe)}if(!this.skipIssuerCheck&&S.iss!==this.issuer){const oe="Wrong issuer: "+S.iss;return this.logger.warn(oe),Promise.reject(oe)}if(!c&&S.nonce!==U){const oe="Wrong nonce: "+S.nonce;return this.logger.warn(oe),Promise.reject(oe)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!S.at_hash){const oe="An at_hash is needed!";return this.logger.warn(oe),Promise.reject(oe)}const _=this.dateTimeService.now(),V=1e3*S.iat,z=1e3*S.exp,Q=this.getClockSkewInMsec();if(V-Q>=_||z+Q<=_){const oe="Token has expired";return console.error(oe),console.error({now:_,issuedAtMSec:V,expiresAtMSec:z}),Promise.reject(oe)}const te={accessToken:e,idToken:h,jwks:this.jwks,idTokenClaims:S,idTokenHeader:C,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(te).then(oe=>({idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:z})):this.checkAtHash(te).then(oe=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!oe){const ee="Wrong at_hash";return this.logger.warn(ee),Promise.reject(ee)}return this.checkSignature(te).then(ee=>{const de={idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:z};return this.disableAtHashCheck?de:this.checkAtHash(te).then(Te=>{if(this.requestAccessToken&&!Te){const v="Wrong at_hash";return this.logger.warn(v),Promise.reject(v)}return de})})})}getIdentityClaims(){const h=this._storage.getItem("id_token_claims_obj");return h?JSON.parse(h):null}getGrantedScopes(){const h=this._storage.getItem("granted_scopes");return h?JSON.parse(h):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(h){for(;h.length%4!=0;)h+="=";return h}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 h=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(h&&parseInt(h,10)=0&&null!==this._storage.getItem(h)?JSON.parse(this._storage.getItem(h)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(h={},e=""){let c=!1;"boolean"==typeof h&&(c=h,h={});const A=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||c||!A&&!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(A)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});A&&(g=g.set("id_token_hint",A));const C=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";C&&(g=g.set("post_logout_redirect_uri",C),e&&(g=g.set("state",e)));for(let T in h)g=g.set(T,h[T]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const h=this;return this.createNonce().then(function(e){return h.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):h._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const h=this.document.getElementById(this.silentRefreshIFrameName);h&&h.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(h=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let c=45,A="";const w=typeof self>"u"?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(c);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(C=>e.charCodeAt(C%e.length)),A=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===c.type)).subscribe(c=>this.initCodeFlowInternal(h,e))}initCodeFlowInternal(h="",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 c={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(c=e),this.createLoginUrl(h,A,null,!1,c).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!h.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield h.createNonce();return[base64UrlEncode(yield h.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(h){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(c=>{h[c]&&e.set(c,JSON.stringify(h[c]))}),e}revokeTokenAndLogout(h={},e=!1){let c=this.revocationEndpoint,A=this.getAccessToken(),w=this.getRefreshToken();if(!A)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),C=(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}`);C=C.set("Authorization","Basic "+T)}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 T of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(T,this.customQueryParams[T]);return new Promise((T,E)=>{let S,U;if(A){let _=g.set("token",A).set("token_type_hint","access_token");S=this.http.post(c,_,{headers:C})}else S=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let _=g.set("token",w).set("token_type_hint","refresh_token");U=this.http.post(c,_,{headers:C})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(S=S.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__._)(_))),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__._)(_)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([S,U]).subscribe(_=>{this.logOut(h),T(_),this.logger.info("Token successfully revoked")},_=>{this.logger.error("Error revoking token",_),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",_)),E(_)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Ye.\u0275fac=function(h){return new(h||Ye)(_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))},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(pe){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(pe)}}let DefaultOAuthInterceptor=(()=>{class Ye{constructor(h,e,c){this.oAuthService=h,this.errorHandler=e,this.moduleConfig=c}checkUrl(h){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(h):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>h.toLowerCase().startsWith(e.toLowerCase()))}intercept(h,e){const c=h.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(c)?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__.z)(w=>{if(w){const C=h.headers.set("Authorization","Bearer "+w);h=h.clone({headers:C})}return e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(h)}}return Ye.\u0275fac=function(h){return new(h||Ye)(_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))},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class NullValidationHandler{validateSignature(pe){return Promise.resolve(null)}validateAtHash(pe){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Ye{static forRoot(h=null,e=NullValidationHandler){return{ngModule:Ye,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:h},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Ye}),Ye.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Ye})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Ye,pe,h)=>{"use strict";h.d(pe,{Co:()=>ae,nu:()=>Y});var e=h(29521),c=h(94650),A=h(24006),w=h(3238),g=h(59549),C=h(84385),T=h(61135),E=h(39646),S=h(39841),U=h(77579),_=h(63900),V=h(54004),z=h(68675),Q=h(91005),te=h(82722),oe=h(95698),ee=h(39300),le=h(18505),de=h(67376),Te=h(12687),v=h(56709),L=h(51572),B=h(4859),W=h(97392),q=h(36895),ue=h(10266);const ye=["searchSelectInput"],Me=["innerSelectSearch"];function we(re,Se){if(1&re){const Fe=c.EpF();c.TgZ(0,"mat-checkbox",9),c.NdJ("change",function(Ue){c.CHM(Fe);const P=c.oxw();return c.KtG(P._emitSelectAllBooleanToParent(Ue.checked))}),c.qZA()}if(2&re){const Fe=c.oxw();c.Q6J("color",null==Fe.matFormField?null:Fe.matFormField.color)("checked",Fe.toggleAllCheckboxChecked)("indeterminate",Fe.toggleAllCheckboxIndeterminate)("matTooltip",Fe.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Fe.toogleAllCheckboxTooltipPosition)}}function Ge(re,Se){1&re&&c._UZ(0,"mat-spinner",10)}function ce(re,Se){1&re&&c.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ze(re,Se){if(1&re&&(c.TgZ(0,"mat-icon",14),c._uU(1),c.qZA()),2&re){const Fe=c.oxw(2);c.Q6J("svgIcon",Fe.closeSvgIcon),c.xp6(1),c.hij(" ",Fe.closeSvgIcon?null:Fe.closeIcon," ")}}function he(re,Se){if(1&re){const Fe=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",function(){c.CHM(Fe);const Ue=c.oxw();return c.KtG(Ue._reset(!0))}),c.YNc(1,ce,1,0,"ng-content",12),c.YNc(2,Ze,2,2,"ng-template",null,13,c.W1O),c.qZA()}if(2&re){const Fe=c.MAs(3),be=c.oxw();c.xp6(1),c.Q6J("ngIf",be.clearIcon)("ngIfElse",Fe)}}function xe(re,Se){1&re&&c.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function j(re,Se){if(1&re&&c._uU(0),2&re){const Fe=c.oxw(2);c.Oqu(Fe.noEntriesFoundLabel)}}function R(re,Se){if(1&re&&(c.TgZ(0,"div",15),c.YNc(1,xe,1,0,"ng-content",12),c.YNc(2,j,1,1,"ng-template",null,16,c.W1O),c.qZA()),2&re){const Fe=c.MAs(3),be=c.oxw();c.xp6(1),c.Q6J("ngIf",be.noEntriesFound)("ngIfElse",Fe)}}const G=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],se=function(re,Se){return{"mat-select-search-inner-multiple":re,"mat-select-search-inner-toggle-all":Se}},$=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Ee=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275dir=c.lG2({type:re,selectors:[["","ngxMatSelectSearchClear",""]]}),re})();const Oe=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ct=new c.OlP("mat-selectsearch-default-options");let Je=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275dir=c.lG2({type:re,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),re})(),Y=(()=>{class re{constructor(Fe,be,Ue,P=null,H,i=null,o){this.matSelect=Fe,this.changeDetectorRef=be,this._viewportRuler=Ue,this.matOption=P,this.liveAnnouncer=H,this.matFormField=i,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new c.vpe,this.onTouched=f=>{},this._options$=new T.X(null),this.optionsList$=this._options$.pipe((0,_.w)(f=>f?f.changes.pipe((0,V.U)(l=>l.toArray()),(0,z.O)(f.toArray())):(0,E.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,V.U)(f=>f?f.length:0)),this._formControl=new A.NI(""),this._showNoEntriesFound$=(0,S.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,V.U)(([f,l])=>this.noEntriesFoundLabel&&f&&l===this.getOptionsLengthOffset())),this._onDestroy=new U.x,this.applyDefaultOptions(o)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Fe){this._options$.next(Fe)}get _options(){return this._options$.getValue()}applyDefaultOptions(Fe){if(Fe)for(const be of Oe)Fe.hasOwnProperty(be)&&(this[be]=Fe[be])}ngOnInit(){const Fe="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Fe):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Fe]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Fe]=!0):this.matSelect.panelClass=Fe,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,Q.g)(1),(0,te.R)(this._onDestroy)).subscribe(be=>{be?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,oe.q)(1)).pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,te.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let be=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ue=this._options.toArray(),P=Ue[this.getOptionsLengthOffset()],H=this.matSelect._keyManager;H&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(be,P)||!H.activeItem||!Ue.find(o=>this.matSelect.compareWith(o,H.activeItem)))&&H.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),be=P})})}),this._showNoEntriesFound$.pipe((0,te.R)(this._onDestroy)).subscribe(be=>{this.matOption&&(be?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,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Fe){this.toggleAll.emit(Fe)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Fe){(Fe.key&&1===Fe.key.length||Fe.keyCode>=e.A&&Fe.keyCode<=e.Z||Fe.keyCode>=e.xE&&Fe.keyCode<=e.aO||Fe.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Fe.keyCode===e.Sd||Fe.keyCode===e.uR))&&Fe.stopPropagation(),this.matSelect.multiple&&Fe.key&&Fe.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Fe.keyCode===e.hY&&this.value&&(this._reset(!0),Fe.stopPropagation())}_handleKeyup(Fe){if(Fe.keyCode===e.LH||Fe.keyCode===e.JH){const be=this.matSelect._getAriaActiveDescendant(),Ue=this._options.toArray().findIndex(P=>P.id===be);if(-1!==Ue){const P=this._options.toArray()[Ue];this.liveAnnouncer.announce(P.viewValue+" "+this.getAriaIndex(Ue)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Fe){return 0===this.getOptionsLengthOffset()?Fe+1:Fe}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Fe){this._lastExternalInputValue=Fe,this._formControl.setValue(Fe),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Fe){this._formControl.valueChanges.pipe((0,ee.h)(be=>be!==this._lastExternalInputValue),(0,le.b)(()=>this._lastExternalInputValue=void 0),(0,te.R)(this._onDestroy)).subscribe(Fe)}registerOnTouched(Fe){this.onTouched=Fe}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Fe=this.matSelect.panel.nativeElement,be=Fe.scrollTop;this.searchSelectInput.nativeElement.focus(),Fe.scrollTop=be}_reset(Fe){this._formControl.setValue(""),Fe&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,te.R)(this._onDestroy)).subscribe(Fe=>{let be=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Fe||!Array.isArray(Fe))&&(Fe=[]);const Ue=this.matSelect.options.map(P=>P.value);this.previousSelectedValues.forEach(P=>{!Fe.some(H=>this.matSelect.compareWith(H,P))&&!Ue.some(H=>this.matSelect.compareWith(H,P))&&(Fe.push(P),be=!0)})}this.previousSelectedValues=Fe,be&&this.matSelect._onChange(Fe)})):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 Fe=this.getMatOptionHeight(),be=this.matSelect._keyManager.activeItemIndex||0,Ue=(0,w.CB)(be,this.matSelect.options,this.matSelect.optionGroups),P=(this.matOption?-1:0)+Ue+be,H=this.matSelect.panel.nativeElement.scrollTop,i=this.innerSelectSearch.nativeElement.offsetHeight,o=Math.floor((256-i)/Fe),f=Math.round((H+i)/Fe)-1;f>=P?this.matSelect.panel.nativeElement.scrollTop=P*Fe:f+o<=P&&(this.matSelect.panel.nativeElement.scrollTop=(P+1)*Fe-(256-i))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let be,Fe=this.innerSelectSearch.nativeElement;for(;Fe=Fe.parentElement;)if(Fe.classList.contains("mat-select-panel")){be=Fe;break}be&&(this.innerSelectSearch.nativeElement.style.width=be.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return re.\u0275fac=function(Fe){return new(Fe||re)(c.Y36(C.gD),c.Y36(c.sBO),c.Y36(de.rL),c.Y36(w.ey,8),c.Y36(Te.Kd),c.Y36(g.KE,8),c.Y36(ct,8))},re.\u0275cmp=c.Xpm({type:re,selectors:[["ngx-mat-select-search"]],contentQueries:function(Fe,be,Ue){if(1&Fe&&(c.Suo(Ue,Ee,5),c.Suo(Ue,Je,5)),2&Fe){let P;c.iGM(P=c.CRH())&&(be.clearIcon=P.first),c.iGM(P=c.CRH())&&(be.noEntriesFound=P.first)}},viewQuery:function(Fe,be){if(1&Fe&&(c.Gf(ye,7,c.SBq),c.Gf(Me,7,c.SBq)),2&Fe){let Ue;c.iGM(Ue=c.CRH())&&(be.searchSelectInput=Ue.first),c.iGM(Ue=c.CRH())&&(be.innerSelectSearch=Ue.first)}},hostVars:2,hostBindings:function(Fe,be){2&Fe&&c.ekj("mat-select-search-inside-mat-option",be.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[c._Bn([{provide:A.JU,useExisting:(0,c.Gpc)(()=>re),multi:!0}])],ngContentSelectors:$,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Fe,be){1&Fe&&(c.F$t(G),c._UZ(0,"input",0),c.TgZ(1,"div",1,2),c.YNc(3,we,1,5,"mat-checkbox",3),c.TgZ(4,"input",4,5),c.NdJ("keydown",function(P){return be._handleKeydown(P)})("keyup",function(P){return be._handleKeyup(P)})("blur",function(){return be.onBlur()}),c.qZA(),c.YNc(6,Ge,1,0,"mat-spinner",6),c.YNc(7,he,4,2,"button",7),c.Hsn(8),c.qZA(),c.YNc(9,R,4,2,"div",8),c.ALo(10,"async")),2&Fe&&(c.xp6(1),c.Q6J("ngClass",c.WLB(11,se,be.matSelect.multiple,be._isToggleAllCheckboxVisible())),c.xp6(2),c.Q6J("ngIf",be._isToggleAllCheckboxVisible()),c.xp6(1),c.Q6J("type",be.type)("formControl",be._formControl)("placeholder",be.placeholderLabel),c.uIk("aria-label",be.ariaLabel),c.xp6(2),c.Q6J("ngIf",be.searching),c.xp6(1),c.Q6J("ngIf",!be.hideClearSearchButton&&be.value&&!be.searching),c.xp6(2),c.Q6J("ngIf",c.lcZ(10,9,be._showNoEntriesFound$)))},dependencies:[v.oG,L.Ou,B.lW,W.Hw,q.mk,q.O5,ue.gM,A.Fj,A.JJ,A.oH,q.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}),re})(),ae=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275mod=c.oAB({type:re}),re.\u0275inj=c.cJS({imports:[[q.ez,A.UX,B.ot,v.p9,W.Ps,L.Cq,ue.AV]]}),re})()},15861:(Ye,pe,h)=>{"use strict";function e(A,w,g,C,T,E,S){try{var U=A[E](S),_=U.value}catch(V){return void g(V)}U.done?w(_):Promise.resolve(_).then(C,T)}function c(A){return function(){var w=this,g=arguments;return new Promise(function(C,T){var E=A.apply(w,g);function S(_){e(E,C,T,S,U,"next",_)}function U(_){e(E,C,T,S,U,"throw",_)}S(void 0)})}}h.d(pe,{Z:()=>c})},4147:Ye=>{"use strict";Ye.exports={i8:"9.3.0"}}},Ye=>{Ye(Ye.s=33246)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.fd43b919f88b3efa.js b/dist/apps/admin-gui/runtime.4564a428908dbb54.js similarity index 92% rename from dist/apps/admin-gui/runtime.fd43b919f88b3efa.js rename to dist/apps/admin-gui/runtime.4564a428908dbb54.js index 2d077cfc3..fb7306e68 100644 --- a/dist/apps/admin-gui/runtime.fd43b919f88b3efa.js +++ b/dist/apps/admin-gui/runtime.4564a428908dbb54.js @@ -1 +1 @@ -(()=>{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{243:"3cb96387b1cb7424",323:"b4f3219efd392317",374:"44bee678b6d534bf",493:"2871d9551d589868",641:"2e882839e7971673",858:"0b6dd1686d5eb534",876:"892d40f55533ada3",958:"bcbf776bc83cdfbb",969:"fc54f7aaea7c7fb1"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{243:"61aa12a1ddc085e0",323:"921445e5664f4e15",374:"0e0b65c71ea9dd43",493:"2871d9551d589868",641:"2e882839e7971673",745:"c866a3fa6fa2c73f",858:"6f608c455faacd1b",958:"057f18dde8f792b3",969:"a7ec6fd3127a83f4"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c - + diff --git a/dist/apps/consolidator/main.44a67ed10c198d31.js b/dist/apps/consolidator/main.44a67ed10c198d31.js deleted file mode 100644 index dade3e094..000000000 --- a/dist/apps/consolidator/main.44a67ed10c198d31.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{8587:(F,z,x)=>{"use strict";var T=x(6895),h=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(o){W=W||document.createElement("a"),W.setAttribute("href",o);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new h.OlP("TRANSITION_ID"),U=[{provide:h.ip1,useFactory:function $(o,r,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let l=0;l{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const J=new h.OlP("EventManagerPlugins");let ie=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ge=(()=>{class o extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}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(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Ve(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/"},we=/%COMP%/g;function oe(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class o{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case h.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ie),h.LFG(ge),h.LFG(h.AFp))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(h.JOm.DashCase|h.JOm.Important)?r.style.setProperty(e,t,a&h.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&h.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(o){return"_ngcontent-%COMP%".replace(we,o)}(a+"-"+t.id),this.hostAttr=function Te(o){return"_nghost-%COMP%".replace(we,o)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class o extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Rn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oi={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Tr=(()=>{class o extends de{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,a){const l=o.parseEventName(t),c=o.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=o._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Rn.forEach(l=>{l!=a&&(0,oi[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{o.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Qe=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:T.bD},{provide:h.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ga(){return(0,h.RDi)(document),document},deps:[]}]),ui=new h.OlP(""),ma=[{provide:h.rWj,useClass:class te{addToWindow(r){h.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},h.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const a=h.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],Si=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function kn(){return new h.qLn},deps:[]},{provide:J,useClass:Ei,multi:!0,deps:[T.K0,h.R0b,h.Lbi]},{provide:J,useClass:Tr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,h.AFp]},{provide:h.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,h.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let _a=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:h.AFp,useValue:e.appId},{provide:G,useExisting:h.AFp},U]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ui,12))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[...Si,...ma],imports:[T.ez,h.hGG]}),o})(),Y=(()=>{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)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,h.LFG)(T.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let si=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):h.LFG(rt),t},providedIn:"root"}),o})(),rt=(()=>{class o extends si{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ie(o){return new rt(o.get(T.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),o})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new h.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let at=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",s=!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==a)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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Rt=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="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==a)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 s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"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 H="json";return f&&(H=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:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="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==a)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 s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"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 H="json";return f&&(H=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:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yl=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addApplicationMailForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/addApplicationMail/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addApplicationMailForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/addApplicationMail/v`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}approveApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkForSimilarRichIdentities(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/consolidate`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}consolidateIdentityUsingToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}copyFormFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}createApplicationFormInGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createApplicationFormInVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplicationMailForGroup(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteApplicationMailForVo(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationDataById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationsForGroup(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getApplicationsForVo(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/getApplicationsPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getConsolidatorToken(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForGroupWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForVoWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}rejectApplication(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendInvitation(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let s=new y.LE({encoder:this.encoder});null!=a&&(s=this.addToHttpParams(s,a,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"name")),null!=e&&(s=this.addToHttpParams(s,e,"email")),null!=t&&(s=this.addToHttpParams(s,t,"language"));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,a,l,c,n="body",i=!1,s){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 d=new y.LE({encoder:this.encoder});null!=a&&(d=this.addToHttpParams(d,a,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));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=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let N="json";return b&&(N=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,a,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=a&&(i=this.addToHttpParams(i,a,"groupId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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/registrarManager/sendInvitation/u-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendMessage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/sendMessage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setSendingEnabled(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/setSendingEnabled`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}submitApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/submitApplication`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateApplicationMail(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateApplicationMail`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateForm`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateFormItemData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateFormItemsData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateFormItems/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/registrarManager/updateFormItems/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}verifyApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Pr=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="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==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=a&&(s=this.addToHttpParams(s,a,"extLogin")),l&&l.forEach(N=>{s=this.addToHttpParams(s,N,"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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",s=!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!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.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/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),gn=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jl=(()=>{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:Oe,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(o,12),h.LFG(y.eN,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var dt=(()=>{return(o=dt||(dt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",dt;var o})();let rf=(()=>{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 a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){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(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),u=this.resolveAuthorization(n,s);a.set(l,{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 a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Ln.Xf)(o()).subscribe(r)})}var Kl=x(9635),_n=x(2843),ei=x(515),Nt=x(727),an=x(4482),zi=x(5403);function Ms(){return(0,an.e)((o,r)=>{let e=null;o._refCount++;const t=(0,zi.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const a=o._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class af extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,an.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,zi.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Ms()(this)}}var ze=x(4004),Bi=x(3900),Gt=x(5698),Aa=x(3269);function Vt(...o){const r=(0,Aa.yG)(o);return(0,an.e)((e,t)=>{(r?(0,kr.z)(o,e,r):(0,kr.z)(o,e)).subscribe(t)})}var vi=x(5577),on=x(590),Ui=x(4351),Ct=x(8505),M=x(262);function k(o,r,e,t,a){return(l,c)=>{let n=e,i=r,s=0;l.subscribe((0,zi.x)(c,d=>{const u=s++;i=n?o(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(o,r){return(0,an.e)(k(o,r,arguments.length>=2,!0))}function B(o){return o<=0?()=>ei.E:(0,an.e)((r,e)=>{let t=[];r.subscribe((0,zi.x)(e,a=>{t.push(a),o{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Xt.h)((a,l)=>o(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new Ss.K))}var Bt=x(9718);function Mt(o){return(0,an.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(o){return new Ft(o)}function be(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return o===r}function qt(o){return Array.prototype.concat.apply([],o)}function xa(o){return o.length>0?o[o.length-1]:null}function Ot(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function bn(o){return(0,h.CqO)(o)?o:(0,h.QGY)(o)?(0,wi.D)(Promise.resolve(o)):(0,De.of)(o)}const kC={exact:function jn(o,r,e){if(!sr(o.segments,r.segments)||!Zl(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!jn(o.children[t],r.children[t],e))return!1;return!0},subset:Ea},VC={exact:function Oi(o,r){return Pi(o,r)},subset:function sf(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Fn(o[e],r[e]))},ignored:()=>!0};function Hs(o,r,e){return kC[e.paths](o.root,r.root,e.matrixParams)&&VC[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ea(o,r,e){return Nn(o,r,r.segments,e)}function Nn(o,r,e,t){if(o.segments.length>e.length){const a=o.segments.slice(0,e.length);return!(!sr(a,e)||r.hasChildren()||!Zl(a,e,t))}if(o.segments.length===e.length){if(!sr(o.segments,e)||!Zl(o.segments,e,t))return!1;for(const a in r.children)if(!o.children[a]||!Ea(o.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,o.segments.length),l=e.slice(o.segments.length);return!!(sr(o.segments,a)&&Zl(o.segments,a,t)&&o.children[qe])&&Nn(o.children[qe],r,l,t)}}function Zl(o,r,e){return r.every((t,a)=>VC[e](o[a].parameters,t.parameters))}class Br{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return cf.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vo(this)}}class Ps{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function sr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let Xl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return new Yd},providedIn:"root"}),o})();class Yd{parse(r){const e=new ic(r);return new Br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Ao(r.root,!0)}`,t=function Jt(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(a=>`${Rs(e)}=${Rs(a)}`).join("&"):`${Rs(e)}=${Rs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function df(o){return encodeURI(o)}(r.fragment)}`:""}`}}const cf=new Yd;function vo(o){return o.segments.map(r=>Ri(r)).join("/")}function Ao(o,r){if(!o.hasChildren())return vo(o);if(r){const e=o.children[qe]?Ao(o.children[qe],!1):"",t=[];return Ot(o.children,(a,l)=>{l!==qe&&t.push(`${l}:${Ao(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function lf(o,r){let e=[];return Ot(o.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(o.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(o,(t,a)=>a===qe?[Ao(o.children[qe],!1)]:[`${a}:${Ao(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[qe]?`${vo(o)}/${e[0]}`:`${vo(o)}/(${e.join("//")})`}}function Qd(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rs(o){return Qd(o).replace(/%3B/gi,";")}function Is(o){return Qd(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ec(o){return decodeURIComponent(o)}function uf(o){return ec(o.replace(/\+/g,"%20"))}function Ri(o){return`${Is(o.path)}${function Or(o){return Object.keys(o).map(r=>`;${Is(r)}=${Is(o[r])}`).join("")}(o.parameters)}`}const hf=/^[^\/()?;=#]+/;function tc(o){const r=o.match(hf);return r?r[0]:""}const pf=/^[^=?&#]+/,OC=/^[^&#]+/;class ic{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=tc(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(r),new Ps(ec(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=tc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=tc(this.remaining);a&&(t=a,this.capture(t))}r[ec(e)]=ec(t)}parseQueryParam(r){const e=function BC(o){const r=o.match(pf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function LC(o){const r=o.match(OC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=uf(e),l=uf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=tc(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new h.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new h.vHH(4011,!1)}}function xo(o){return o.segments.length>0?new gt([],{[qe]:o}):o}function Sa(o){const r={};for(const t of Object.keys(o.children)){const l=Sa(o.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(o){if(1===o.numberOfChildren&&o.children[qe]){const r=o.children[qe];return new gt(o.segments.concat(r.segments),r.children)}return o}(new gt(o.segments,r))}function Lr(o){return o instanceof Br}function jC(o,r,e,t,a){if(0===e.length)return To(r.root,r.root,r.root,t,a);const l=function zC(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new NC(!0,0,o);let r=0,e=!1;const t=o.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new NC(e,r,t)}(e);return l.toRoot()?To(r.root,r.root,new gt([],{}),t,a):function c(i){const s=function mf(o,r,e,t){if(o.isAbsolute)return new cr(r.root,!0,0);if(-1===t)return new cr(e,e===r.root,0);return function Vs(o,r,e){let t=o,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new h.vHH(4005,!1);a=t.segments.length}return new cr(t,!1,a-l)}(e,t+(lr(o.commands[0])?0:1),o.numberOfDoubleDots)}(l,r,o.snapshot?._urlSegment,i),d=s.processChildren?zn(s.segmentGroup,s.index,l.commands):nc(s.segmentGroup,s.index,l.commands);return To(r.root,s.segmentGroup,d,t,a)}(o.snapshot?._lastPathIndex)}function lr(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Da(o){return"object"==typeof o&&null!=o&&o.outlets}function To(o,r,e,t,a){let c,l={};t&&Ot(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=o===r?e:ff(o,r,e);const n=xo(Sa(c));return new Br(n,l,a)}function ff(o,r,e){const t={};return Ot(o.children,(a,l)=>{t[l]=a===r?e:ff(a,r,e)}),new gt(o.segments,t)}class NC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&lr(t[0]))throw new h.vHH(4003,!1);const a=t.find(Da);if(a&&a!==xa(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function nc(o,r,e){if(o||(o=new gt([],{})),0===o.segments.length&&o.hasChildren())return zn(o,r,e);const t=function UC(o,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=o.segments[a],n=e[t];if(Da(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!GC(i,s,c))return l;t+=2}else{if(!GC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(o,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=nc(o.children[c],r,l))}),Ot(o.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(o.segments,a)}}function Fr(o,r,e){const t=o.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Fr(new gt([],{}),0,e))}),r}function Bs(o){const r={};return Ot(o,(e,t)=>r[t]=`${e}`),r}function GC(o,r,e){return o==e.path&&Pi(r,e.parameters)}class Un{constructor(r,e){this.id=r,this.url=e}}class rc extends Un{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jr extends Un{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ki extends Un{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bf extends Un{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Os extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Un{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ac extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oc extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Cf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ls{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Af{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=sc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=sc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=lc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return lc(r,this._root).map(e=>e.value)}}function sc(o,r){if(o===r.value)return r;for(const e of r.children){const t=sc(o,e);if(t)return t}return null}function lc(o,r){if(o===r.value)return[r];for(const e of r.children){const t=lc(o,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Eo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Af{constructor(r,e){super(r),this.snapshot=e,uc(this,r)}toString(){return this.snapshot.toString()}}function cc(o,r){const e=function $C(o,r){const c=new dr([],{},{},"",{},qe,r,null,o.root,-1,{});return new Ha("",new Gi(c,[]))}(o,r),t=new Yt([new Ps("",{})]),a=new Yt({}),l=new Yt({}),c=new Yt({}),n=new Yt(""),i=new Gn(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class Gn{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,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,ze.U)(r=>Qt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Qt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dc(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function So(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,s,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??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=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ha extends Af{constructor(r,e){super(e),this.url=r,uc(this,e)}toString(){return hc(this._root)}}function uc(o,r){r.value._routerState=o,r.children.forEach(e=>uc(o,e))}function hc(o){const r=o.children.length>0?` { ${o.children.map(hc).join(", ")} } `:"";return`${o.value}${r}`}function Nr(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Pi(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),Pi(r.params,e.params)||o.params.next(e.params),function ut(o,r){if(o.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||xf(o.parent,r.parent))}function At(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function U0(o,r,e){return r.children.map(t=>{for(const a of e.children)if(o.shouldReuseRoute(t.value,a.value.snapshot))return At(o,t,a);return At(o,t)})}(o,r,e);return new Gi(t,a)}{if(o.shouldAttach(r.value)){const l=o.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(o,n)),c}}const t=function G0(o){return new Gn(new Yt(o.url),new Yt(o.params),new Yt(o.queryParams),new Yt(o.fragment),new Yt(o.data),o.outlet,o.component,o)}(r.value),a=r.children.map(l=>At(o,l));return new Gi(t,a)}}const Tf="ngNavigationCancelingError";function QC(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=Lr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=JC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function JC(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[Tf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function KC(o){return ZC(o)&&Lr(o.url)}function ZC(o){return o&&o[Tf]}class js{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new pc,this.attachRef=null}}let pc=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new js,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iu=!1;let Kt=(()=>{class o{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Ns(o){return!!o.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=a.createComponent(s,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(pc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},o.\u0275dir=h.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Gn?this.route:r===pc?this.childContexts:this.parent.get(r,e)}}let XC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[Kt],encapsulation:2}),o})();function Ef(o,r){return o.providers&&!o._injector&&(o._injector=(0,h.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Mf(o){const r=o.children&&o.children.map(Mf),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=XC),e}function Cn(o){return o.outlet||qe}function au(o,r){const e=o.filter(t=>Cn(t)===r);return e.push(...o.filter(t=>Cn(t)!==r)),e}function qi(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Mo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new WC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new wf(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Nr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=qi(a.snapshot),i=n?.get(h._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class ny{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class zs{constructor(r,e){this.component=r,this.route=e}}function ry(o,r,e){const t=o._root;return Us(t,r?r._root:null,e,[t.value])}function fc(o,r,e){return(qi(r)??e).get(o)}function Us(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=Eo(r);return o.children.forEach(c=>{(function oy(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=o.value,c=r?r.value:null,n=e?e.getContext(o.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function sy(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!sr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!sr(o.url,r.url)||!Pi(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(o,r)||!Pi(o.queryParams,r.queryParams);default:return!xf(o,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new ny(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Us(o,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new zs(n.outlet.component,c))}else c&&Ra(r,n,a),a.canActivateChecks.push(new ny(t)),Us(o,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Ra(c,e.getContext(n),a)),a}function Ra(o,r,e){const t=Eo(o),a=o.value;Ot(t,(l,c)=>{Ra(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new zs(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Ur(o){return"function"==typeof o}function Ia(o){return o instanceof Ss.K||"EmptyError"===o?.name}const ur=Symbol("INITIAL_VALUE");function Do(){return(0,Bi.w)(o=>(0,Ir.a)(o.map(r=>r.pipe((0,Gt.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof Br)return e}return!0}),(0,Xt.h)(r=>r!==ur),(0,Gt.q)(1)))}function Ho(o){return(0,Kl.z)((0,Ct.b)(r=>{if(Lr(r))throw QC(0,r)}),(0,ze.U)(r=>!0===r))}const ka={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function If(o,r,e,t,a){const l=mc(o,r,e);return l.matched?function Rf(o,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function cy(o){return o&&Ur(o.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(t=Ef(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...ka})):(0,De.of)(l)}function mc(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...ka}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,o,r);if(!a)return{...ka};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function Gr(o,r,e,t,a="corrected"){if(e.length>0&&function py(o,r,e){return e.some(t=>hr(o,r,t)&&Cn(t)!==qe)}(o,e,t)){const c=new gt(r,function kf(o,r,e,t){const a={};a[qe]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=o,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(o,r,t,new gt(e,o.children)));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function fy(o,r,e){return e.some(t=>hr(o,r,t))}(o,e,t)){const c=new gt(o.segments,function _c(o,r,e,t,a,l){const c={};for(const n of t)if(hr(o,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===l?o.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(o,r,e,t,o.children,a));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(o.segments,o.children);return l._sourceSegment=o,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Po(o,r,e,t){return!!(Cn(o)===t||t!==qe&&hr(r,e,o))&&("**"===o.path||mc(r,o,e).matched)}function Vf(o,r,e){return 0===r.length&&!o.children[e]}const du=!1;class Ws{constructor(r){this.segmentGroup=r||null}}class Bf{constructor(r){this.urlTree=r}}function bc(o){return(0,_n._)(new Ws(o))}function Of(o){return(0,_n._)(new Bf(o))}class Lf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=Gr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(Sa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Bf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ws?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(Sa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Ws?this.noMatchError(a):a}))}noMatchError(r){return new h.vHH(4002,du)}createUrlTree(r,e,t){const a=xo(r);return new Br(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,wi.D)(a).pipe((0,Ui.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(r,e,t,a,l,c){return(0,wi.D)(t).pipe((0,Ui.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(s=>{if(s instanceof Ws)return(0,De.of)(null);throw s}))),(0,on.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ia(n))return Vf(e,a,l)?(0,De.of)(new gt([],{})):bc(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Po(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):bc(e):bc(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Of(l):this.lineralizeSegments(t,l).pipe((0,vi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=mc(e,a,l);if(!n)return bc(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?Of(u):this.lineralizeSegments(a,u).pipe((0,vi.z)(f=>this.expandSegment(r,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Ef(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):If(e,t,a,r).pipe((0,Bi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,vi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=Gr(e,n,i,f),N=new gt(b.segments,b.children);if(0===H.length&&N.hasChildren())return this.expandChildren(u,f,N).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,N,f,H,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):bc(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(o,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function Gs(o){return o&&Ur(o.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(r,e,t).pipe((0,vi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function my(o){return(0,_n._)(JC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new h.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new Br(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new h.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class $0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Gr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Ha(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=dc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,wi.D)(Object.keys(t.children)).pipe((0,Ui.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(o,r=!1){return(0,an.e)((e,t)=>{let a=0;e.subscribe((0,zi.x)(t,l=>{const c=o(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ue(),(0,ze.U)(a=>{if(null===a)return null;const l=wc(a);return function by(o){o.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,wi.D)(e).pipe((0,Ui.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,on.P)(c=>!!c),(0,M.K)(c=>{if(Ia(c))return Vf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Po(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?xa(a).parameters:{},i=zf(t)+a.length,s=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),i,vc(e),i);c=(0,De.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=If(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const u=zf(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),u,vc(e),u),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Bi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function jf(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Gr(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new Gi(i,[])]);const N=Cn(e)===l;return this.processSegment(u,f,b,H,N?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function yc(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function wc(o){const r=[],e=new Set;for(const t of o){if(!yc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=wc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Nf(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function zf(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ys(o){return o.data||{}}function vc(o){return o.resolve||{}}const Ac=Symbol("RouteTitle");function qf(o){return"string"==typeof o.title||null===o.title}function hu(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,wi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let qn=(()=>{class o{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[Ac]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return(0,h.f3M)(Ba)},providedIn:"root"}),o})(),Ba=(()=>{class o extends qn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Y))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Ay{}class Ty extends class xy{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new h.OlP("",{providedIn:"root",factory:()=>({})}),xc=new h.OlP("ROUTES");let fu=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new af(t,()=>new He.x).pipe(Ms());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(xc,[],h.XFs.Self|h.XFs.Optional)));return{routes:s.map(Mf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new af(l,()=>new He.x).pipe(Ms());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,vi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,De.of)(t):(0,wi.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(h.Sil))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Sy{}class My{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Q0(o){throw o}function Dy(o,r,e){return r.parse("/")}const Qs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$f={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Io(){const o=(0,h.f3M)(Xl),r=(0,h.f3M)(pc),e=(0,h.f3M)(T.Ye),t=(0,h.f3M)(h.zs3),a=(0,h.f3M)(h.Sil),l=(0,h.f3M)(xc,{optional:!0})??[],c=(0,h.f3M)(pu,{optional:!0})??{},n=(0,h.f3M)(Ba),i=(0,h.f3M)(qn,{optional:!0}),s=(0,h.f3M)(Sy,{optional:!0}),d=(0,h.f3M)(Ay,{optional:!0}),u=new ti(null,o,r,e,t,a,qt(l));return s&&(u.urlHandlingStrategy=s),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Wn(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(c,u),u}let ti=(()=>{class o{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,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.x,this.errorHandler=Q0,this.malformedUriErrorHandler=Dy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new My,this.routeReuseStrategy=new Ty,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Cf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new qC(f)),this.ngModule=c.get(h.h0i),this.console=c.get(h.c2e);const u=c.get(h.R0b);this.isNgZoneEnabled=u instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function z0(){return new Br(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cc(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Xt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Bi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Bi.w)(u=>{const f=this.transitions.getValue();return t.next(new rc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?ei.E:Promise.resolve(u)}),function _y(o,r,e,t){return(0,Bi.w)(a=>function Cc(o,r,e,t,a){return new Lf(o,r,e,t,a).apply()}(o,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Uf(o,r,e,t,a,l){return(0,vi.z)(c=>function Y0(o,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(o,r,e,t,a,c,n,l).recognize().pipe((0,Bi.w)(i=>null===i?function Ff(o){return new Vi.y(r=>r.error(o))}(new $0):(0,De.of)(i)))}(o,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"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 Os(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:N,extras:ae}=n,ke=new rc(f,this.serializeUrl(b),H,N);t.next(ke);const lt=cc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ei.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ry(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function li(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Hf(o,r,e,t){return(0,wi.D)(o).pipe((0,vi.z)(a=>function hy(o,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=fc(n,r,a);return bn(function ly(o){return o&&Ur(o.canDeactivate)}(i)?i.canDeactivate(o,r,e,t):i(o,r,e,t)).pipe((0,on.P)())});return(0,De.of)(c).pipe(Do())}(a.component,a.route,e,r,t)),(0,on.P)(a=>!0!==a,!0))}(c,t,a,o).pipe((0,vi.z)(n=>n&&function q0(o){return"boolean"==typeof o}(n)?function Pf(o,r,e,t){return(0,wi.D)(r).pipe((0,Ui.b)(a=>(0,kr.z)(function qs(o,r){return null!==o&&r&&r(new yf(o)),(0,De.of)(!0)}(a.route.parent,t),function lu(o,r){return null!==o&&r&&r(new vf(o)),(0,De.of)(!0)}(a.route,t),function uy(o,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function ay(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Vr(()=>{const n=c.guards.map(i=>{const s=fc(i,c.node,e);return bn(function gc(o){return o&&Ur(o.canActivateChild)}(s)?s.canActivateChild(t,o):s(t,o)).pipe((0,on.P)())});return(0,De.of)(n).pipe(Do())}));return(0,De.of)(l).pipe(Do())}(o,a.path,e),function dy(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Vr(()=>{const c=fc(l,r,e);return bn(function su(o){return o&&Ur(o.canActivate)}(c)?c.canActivate(r,o):c(r,o)).pipe((0,on.P)())}));return(0,De.of)(a).pipe(Do())}(o,a.route,e))),(0,on.P)(a=>!0!==a,!0))}(t,l,o,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Lr(n.guardsResult))throw QC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Xt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const s=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Bi.w)(i=>{let s=!1;return(0,De.of)(i).pipe(function Gf(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,wi.D)(a).pipe((0,Ui.b)(c=>function Va(o,r,e,t){const a=o.routeConfig,l=o._resolve;return void 0!==a?.title&&!qf(a)&&(l[Ac]=a.title),function yy(o,r,e,t){const a=function wy(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===a.length)return(0,De.of)({});const l={};return(0,wi.D)(a).pipe((0,vi.z)(c=>function vy(o,r,e,t){const a=fc(o,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(o[c],r,e,t).pipe((0,on.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ia(c)?ei.E:(0,_n._)(c)))}(l,o,r,t).pipe((0,ze.U)(c=>(o._resolvedData=c,o.data=dc(o,e).resolve,a&&qf(a)&&(o.data[Ac]=a.title),null)))}(c.route,t,o,r)),(0,Ct.b)(()=>l++),B(1),(0,vi.z)(c=>l===a.length?(0,De.of)(e):ei.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const s=new oc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),hu(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Ct.b)(u=>{s.component=u}),(0,ze.U)(()=>{})));for(const u of s.children)d.push(...i(u));return d};return(0,Ir.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function YC(o,r,e){const t=At(o,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.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,r,e)=>(0,ze.U)(t=>(new Mo(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,ZC(n)){KC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ki(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),KC(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new bf(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(s){a.reject(s)}}return ei.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Mf),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:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),jC(s,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Lr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Yf(o){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new jr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}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,a){const l=new Ki(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:function(){return Io()},providedIn:"root"}),o})();function gu(o){return"imperative"!==o}let mu=(()=>{class o{constructor(e,t,a){this.router=e,this.route=t,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(l=>{l instanceof jr&&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,a,l,c){if(0!==e||t||a||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ti),h.Y36(Gn),h.Y36(T.S$))},o.\u0275dir=h.lG2({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&h.uIk("target",t.target)("href",t.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),o})();class Ec{}let K0=(()=>{class o{preload(e,t){return(0,De.of)(null)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Hy=(()=>{class o{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Xt.h)(e=>e instanceof jr),(0,Ui.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,h.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,wi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,vi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,wi.D)([l,c]).pipe((0,mt.J)())}return l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ti),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Ec),h.LFG(fu))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const bu=new h.OlP("");let Py=(()=>{class o{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 rc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof jr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ls&&(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 Ls(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){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Kf=new h.OlP("ROUTER_FORROOT_GUARD"),Cu=new h.OlP(""),Sc=[T.Ye,{provide:Xl,useClass:Yd},{provide:ti,useFactory:Io},pc,{provide:Gn,useFactory:function Zf(o){return o.routerState.root},deps:[ti]},fu];function yu(){return new h.PXZ("Router",ti)}let Mc=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[Sc,[],vu(e),{provide:Kf,useFactory:wu,deps:[[ti,new h.FiY,new h.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:bu,useFactory:()=>{const o=(0,h.f3M)(ti),r=(0,h.f3M)(T.EM),e=(0,h.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Py(o,r,e)}},t?.preloadingStrategy?ng(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:yu},t?.initialNavigation?ky(t):[],[{provide:eg,useFactory:Iy},{provide:h.tb,multi:!0,useExisting:eg}]]}}static forChild(e){return{ngModule:o,providers:[vu(e)]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Kf,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();function wu(o){return"guarded"}function vu(o){return[{provide:xc,multi:!0,useValue:o}]}function Iy(){const o=(0,h.f3M)(h.zs3);return r=>{const e=o.get(h.z2F);if(r!==e.components[0])return;const t=o.get(ti),a=o.get(tg);1===o.get(ig)&&t.initialNavigation(),o.get(Cu,null,h.XFs.Optional)?.setUpPreloading(),o.get(bu,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const eg=new h.OlP("");function ky(o){return["disabled"===o.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const o=(0,h.f3M)(ti);return()=>{o.setUpLocationChangeListener()}}},{provide:ig,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:ig,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:o=>{const r=o.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=o.get(ti),c=o.get(tg);(function t(a){o.get(ti).events.pipe((0,Xt.h)(c=>c instanceof jr||c instanceof Ki||c instanceof bf),(0,ze.U)(c=>c instanceof jr||c instanceof Ki&&(0===c.code||1===c.code)&&null),(0,Xt.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const tg=new h.OlP("",{factory:()=>new He.x}),ig=new h.OlP("",{providedIn:"root",factory:()=>1});function ng(o){return[Hy,{provide:Cu,useExisting:Hy},{provide:Ec,useExisting:o}]}let Dc;try{Dc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Dc=!1}let Oa,ci=(()=>{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&&!Dc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.Lbi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Hc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ly(){if(Oa)return Oa;if("object"!=typeof document||!document)return Oa=new Set(Hc),Oa;let o=document.createElement("input");return Oa=new Set(Hc.filter(r=>(o.setAttribute("type",r),o.type===r))),Oa}let Ks,Zi,ko;function yn(o){return function xu(){if(null==Ks&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ks=!0}))}finally{Ks=Ks||!1}return Ks}()?o:!!o.capture}function Fy(){if(null==Zi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zi=!1,Zi;if("scrollBehavior"in document.documentElement.style)Zi=!0;else{const o=Element.prototype.scrollTo;Zi=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return Zi}function Vo(o){if(function jy(){if(null==ko){const o=typeof document<"u"?document.head:null;ko=!(!o||!o.createShadowRoot&&!o.attachShadow)}return ko}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bo(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function Ai(o){return o.composedPath?o.composedPath()[0]:o.target}function Pc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $n(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var tl=x(8372);function xg(o){return(0,Xt.h)((r,e)=>o<=e)}function Tg(o,r){return o===r}var Eg=x(5032);function ft(o){return(0,an.e)((r,e)=>{(0,Ln.Xf)(o).subscribe((0,zi.x)(e,()=>e.complete(),Eg.Z)),!e.closed&&r.subscribe(e)})}function it(o){return null!=o&&"false"!=`${o}`}function ln(o,r=0){return Sg(o)?Number(o):r}function Sg(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Mu(o){return Array.isArray(o)?o:[o]}function Wt(o){return null==o?"":"string"==typeof o?o:`${o}px`}function ni(o){return o instanceof h.SBq?o.nativeElement:o}let Du=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Mg=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ni(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,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:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Du))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),il=(()=>{class o{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new h.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,tl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Mg),h.Y36(h.SBq),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Oo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Du]}),o})();const nl=new Set;let Fa,Pu=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Dg(o){if(!nl.has(o))try{Fa||(Fa=document.createElement("style"),Fa.setAttribute("type","text/css"),document.head.appendChild(Fa)),Fa.sheet&&(Fa.sheet.insertRule(`@media ${o} {body{ }}`,0),nl.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Lo=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Hg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Hg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ir.a)(a);return l=(0,kr.z)(l.pipe((0,Gt.q)(1)),l.pipe(xg(1),(0,tl.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pu),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Hg(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Fo(o,r){return(o.getAttribute(r)||"").match(/\S+/g)||[]}const yw="cdk-describedby-message",rl="cdk-describedby-host";let Iu=0,kg=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(Vg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${rl}="${this._id}"]`);for(let t=0;t0!=a.indexOf(yw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function bw(o,r,e){const t=Fo(o,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(rl,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Ig(o,r,e){const a=Fo(o,r).filter(l=>l!=e.trim());a.length?o.setAttribute(r,a.join(" ")):o.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(rl)}_isElementDescribedByMessage(e,t){const a=Fo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function ku(o,r){return"string"==typeof o?`${r||""}/${o}`:o}function Vg(o,r){o.id||(o.id=`${yw}-${r}-${Iu++}`)}class Oc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,r instanceof h.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,tl.b)(r),(0,Xt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||$n(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Lc=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function vw(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 ww(o){try{return o.frameElement}catch{return null}}(function Sw(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function Og(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ew(o){return!function Aw(o){return function Tw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function Bg(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function xw(o){return function st(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||Vu(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Vu(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(o){if(!Vu(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Lg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(r)}}let Ou=(()=>{class o{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Lg(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Lc),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Yn(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function Fc(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new h.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},al=yn({passive:!0,capture:!0});let $T=(()=>{class o{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yn(c)?"keyboard":"mouse"),this._mostRecentTarget=Ai(c))},this._onTouchstart=c=>{Fc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(xg(1)),this.modalityChanged=this.modalityDetected.pipe(function mw(o,r=le.y){return o=o??Tg,(0,an.e)((e,t)=>{let a,l=!0;e.subscribe((0,zi.x)(t,c=>{const n=r(c);(l||!o(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,al),a.addEventListener("mousedown",this._onMousedown,al),a.addEventListener("touchstart",this._onTouchstart,al)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,al),document.removeEventListener("mousedown",this._onMousedown,al),document.removeEventListener("touchstart",this._onTouchstart,al))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Lu,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const jo=new h.OlP("cdk-focus-monitor-default-options"),jc=yn({passive:!0,capture:!0});let cn=(()=>{class o{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=Ai(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ni(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Vo(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new He.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ni(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ni(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=Ai(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(Lo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(zu,jg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,jg):2===t&&e.add(zu,Nu)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Nc=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Oo]}),o})();const Iw=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function kw(){return(0,h.f3M)(T.K0)}}),zg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Qn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Vw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?zg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Iw,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Fw=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function Gg(){return!0}});let We=(()=>{class o{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Pc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng),h.LFG(Fw,8),h.LFG(T.K0))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jr]}),o})();function ja(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=it(r)}}}function No(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=it(r)}}}function sl(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,h.f3M)(h.soG)}});class Xi{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new h.OlP("mat-date-formats"),Nw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(o,r){const e=Array(o);for(let t=0;t{class o extends Xi{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 Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(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 Yu(7,a=>this._format(t,new Date(2017,0,a+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,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}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(Nw.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,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qu,8),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const zw={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 $g=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:Wg}]}),o})(),Uw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:$u,useValue:zw}],imports:[$g]}),o})(),Gc=(()=>{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=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),zo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();class KT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Gw={enterDuration:225,exitDuration:150},Jg=yn({passive:!0}),qw=["mousedown","touchstart"],Ww=["mouseup","mouseleave","touchend","touchcancel"];class $w{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ni(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Gw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function XT(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,N=new KT(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",N.state=0,t.persistent||(this._mostRecentTransientRipple=N);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(N),lt=()=>this._destroyRipple(N);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(N,ae),(H||!s)&&this._finishRippleTransition(N),N}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Gw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ni(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(qw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ww),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=Yn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Jg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(qw.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}),this._pointerUpEventsRegistered&&Ww.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}))}}const Yw=new h.OlP("mat-ripple-global-options");let Na=(()=>{class o{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new $w(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ci),h.Y36(Yw,8),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),o})(),hi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Ju=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We]}),o})(),Ku=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,T.ez,We,Ju]}),o})();const qc=["mat-button",""],Uo=["*"],Wc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],cl=No(ja(fr(class{constructor(o){this._elementRef=o}})));let Zr=(()=>{class o extends cl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Wc)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 o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(cn),h.Y36(h.QbO,8))},o.\u0275cmp=h.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&&h.Gf(Na,5),2&e){let a;h.iGM(a=h.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:qc,ngContentSelectors:Uo,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Na],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),An=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();var Zu=x(1144),xn=x(576),Xu=x(3268);const eh=["addListener","removeListener"],ev=["addEventListener","removeEventListener"],rE=["on","off"];function $c(o,r,e,t){if((0,xn.m)(e)&&(t=e,e=void 0),t)return $c(o,r,e).pipe((0,Xu.Z)(t));const[a,l]=function im(o){return(0,xn.m)(o.addEventListener)&&(0,xn.m)(o.removeEventListener)}(o)?ev.map(c=>n=>o[c](r,n,e)):function tv(o){return(0,xn.m)(o.addListener)&&(0,xn.m)(o.removeListener)}(o)?eh.map(th(o,r)):function tm(o){return(0,xn.m)(o.on)&&(0,xn.m)(o.off)}(o)?rE.map(th(o,r)):[];if(!a&&(0,Zu.z)(o))return(0,vi.z)(c=>$c(c,r,e))((0,Ln.Xf)(o));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(o,r){return e=>t=>o[e](r,t)}var nm=x(4408);const xi={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=xi;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,o(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...o){const{delegate:r}=xi;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=xi;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var am=x(7565);const om=new class aE extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class rm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=xi.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(xi.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,lm=1;const Yc={};function cm(o){return o in Yc&&(delete Yc[o],!0)}const dm={setImmediate(o){const r=lm++;return Yc[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>cm(r)&&o()),r},clearImmediate(o){cm(o)}},{setImmediate:um,clearImmediate:iv}=dm,Qc={setImmediate(...o){const{delegate:r}=Qc;return(r?.setImmediate||um)(...o)},clearImmediate(o){const{delegate:r}=Qc;return(r?.clearImmediate||iv)(o)},delegate:void 0},nh=new class pm extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class hm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Qc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Qc.clearImmediate(e),r._scheduled=void 0)}});var Jc=x(4986),fm=x(2805);function rv(o,r=Jc.z){return function nv(o){return(0,an.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=a;a=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,zi.x)(e,s=>{t=!0,a=s,l||(0,Ln.Xf)(o(s)).subscribe(l=(0,zi.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,fm.H)(o,r))}let dl=(()=>{class o{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}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 Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(rv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Xt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ni(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>$c(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)(h.LFG(h.R0b),h.LFG(ci),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),qo=(()=>{class o{constructor(e,t,a){this._platform=e,this._change=new He.x,this._changeListener=l=>{this._change.next(l)},this._document=a,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:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(rv(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)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Ua=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jn,Jr,Jn]}),o})();class ul{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class hl extends ul{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class oh extends ul{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class uv extends ul{constructor(r){super(),this.element=r instanceof h.SBq?r.nativeElement:r}}class Ga{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof hl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof oh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof uv?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fE extends Ga{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let sh=(()=>{class o extends Ga{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),o})(),ea=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var $i=x(6451);const Zc=Fy();class hv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Zc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_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 pv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wm{enable(){}disable(){}attach(){}}function lh(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function vm(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class fv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();lh(e,[{width:t,height:a,bottom:a,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 gv=(()=>{class o{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new wm,this.close=c=>new pv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new hv(this._viewportRuler,this._document),this.reposition=c=>new fv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(dl),h.LFG(qo),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Wo{constructor(r){if(this.scrollStrategy=new wm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class pl{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Xc=(()=>{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)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mv=(()=>{class o extends Xc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kn=(()=>{class o extends Xc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=Ai(l)},this._clickListener=l=>{const c=Ai(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ta=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Pc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,$i.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ia="cdk-overlay-connected-position-bounding-box",ed=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ia),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ia),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="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:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Wa(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),s=this._getOffset(a,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),N=this._subtractOverflows(l.height,f,b),ae=H*N;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:N===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=qa(this._overlayRef.getConfig().minHeight),n=qa(this._overlayRef.getConfig().minWidth),s=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&s}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Wa(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),s=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?s||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vm(r,t),isOriginOutsideView:lh(r,t),isOverlayClipped:vm(e,t),isOverlayOutsideView:lh(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof h.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function qa(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(ed);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Wa(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 $a="cdk-global-overlay-wrapper";class Yo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add($a),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",N="";i?N="flex-start":"center"===d?(N="center",f?H=u:b=u):f?"left"===d||"end"===d?(N="flex-end",b=u):("right"===d||"start"===d)&&(N="flex-start",H=u):"left"===d||"start"===d?(N="flex-start",b=u):("right"===d||"end"===d)&&(N="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=s?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=N,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove($a),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Qo=(()=>{class o{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new Yo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qo),h.LFG(T.K0),h.LFG(ci),h.LFG(ta))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jo=0,Ti=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Wo(e);return c.direction=c.direction||this._directionality.value,new di(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Jo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new fE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(gv),h.LFG(ta),h.LFG(h._Vd),h.LFG(Qo),h.LFG(mv),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Qn),h.LFG(T.Ye),h.LFG(Kn),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Tm={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ti],useFactory:function xm(o){return()=>o.scrollStrategies.reposition()}};let Ya=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Ti,Tm],imports:[Jr,ea,Ua,Ua]}),o})();class ch{}const _r="*";function ri(o,r){return{type:7,name:o,definitions:r,options:{}}}function wt(o,r=null){return{type:4,styles:r,timings:o}}function Em(o,r=null){return{type:3,steps:o,options:r}}function dh(o,r=null){return{type:2,steps:o,options:r}}function Fe(o){return{type:6,styles:o,offset:null}}function pt(o,r,e){return{type:0,name:o,styles:r,options:e}}function _t(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Ko(o=null){return{type:9,options:o}}function Ja(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function td(o){Promise.resolve(null).then(o)}class Zo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){td(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class id{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?td(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Sm=["connectionContainer"],ph=["inputContainer"],fh=["label"];function vv(o,r){1&o&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function Mm(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&o){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Dm(o,r){if(1&o&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&o){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function Hm(o,r){1&o&&h.Hsn(0,3,["*ngSwitchCase","true"])}function Pm(o,r){1&o&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function Av(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.YNc(2,Dm,4,1,"ng-container",12),h.YNc(3,Hm,1,0,"ng-content",12),h.YNc(4,Pm,2,0,"span",22),h.qZA()}if(2&o){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Rm(o,r){1&o&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function Im(o,r){if(1&o&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function gh(o,r){if(1&o&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function mh(o,r){if(1&o&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function km(o,r){if(1&o&&(h.TgZ(0,"div",27),h.YNc(1,mh,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Vm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Om=0;const _h=new h.OlP("MatError");let Lm=(()=>{class o{constructor(e,t){this.id="mat-error-"+Om++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(h.$8M("aria-live"),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:_h,useExisting:o}])]}),o})();const Fm={transitionMessages:ri("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ml=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o}),o})(),jm=0;const Nm=new h.OlP("MatHint");let pi=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+jm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Nm,useExisting:o}])]}),o})(),rd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-label"]]}),o})(),xv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const Tv=new h.OlP("MatPrefix"),Sv=new h.OlP("MatSuffix");let bh=0;const Dv=No(class{constructor(o){this._elementRef=o}},"primary"),Um=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ch=new h.OlP("MatFormField");let Gm=(()=>{class o extends Dv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bh++,this._labelId="mat-form-field-label-"+bh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=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(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,$i.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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,$c(this._label.nativeElement,"transitionend").pipe((0,Gt.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,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.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,a=".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 d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Oo,We]}),o})();const Jm={provide:new h.OlP("mat-select-scroll-strategy"),deps:[Ti],useFactory:function ad(o){return()=>o.scrollStrategies.reposition()}};let is=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jm],imports:[T.ez,Ya,Ku,We,Jn,es,Ku,We]}),o})();const e_=["tooltip"],wh="tooltip-panel",i_=yn({passive:!0}),n_=new h.OlP("mat-tooltip-scroll-strategy"),jv={provide:n_,deps:[Ti],useFactory:function Fv(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Nv=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function zv(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Uv=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,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.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=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),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(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,a])=>{e.removeEventListener(t,a,i_)}),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 hl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.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(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${wh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!$n(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),ft(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:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${wh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&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,a])=>{this._elementRef.nativeElement.addEventListener(t,a,i_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275dir=h.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})(),r_=(()=>{class o extends Uv{constructor(e,t,a,l,c,n,i,s,d,u,f,b){super(e,t,a,l,c,n,i,s,d,u,f,b),this._tooltipComponent=qv}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(dl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(ci),h.Y36(kg),h.Y36(cn),h.Y36(n_),h.Y36(Qn,8),h.Y36(Nv,8),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),o})(),Gv=(()=>{class o{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o}),o})(),qv=(()=>{class o extends Gv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(Lo),h.Y36(h.QbO,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(e_,7),2&e){let a;h.iGM(a=h.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let a;h.ekj("mat-tooltip-handset",null==(a=h.lcZ(2,4,t._isHandset))?null:a.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),o})(),_l=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[jv],imports:[Nc,T.ez,Ya,We,We,Jn]}),o})(),od=(()=>{class o{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const o_={provide:od,deps:[[new h.FiY,new h.tp0,od]],useFactory:function a_(o){return o||new od}};let er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[o_],imports:[T.ez,An,is,_l,We]}),o})();var c_=x(1005);const tA=["mat-menu-item",""];function ns(o,r){1&o&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const iA=["*"];function vh(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._handleKeydown(a))})("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationDone(a))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&o){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ah={transformMenu:ri("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ri("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},IE=new h.OlP("MatMenuContent"),xh=new h.OlP("MAT_MENU_PANEL"),sd=fr(ja(class{}));let Ka=(()=>{class o extends sd{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class o{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+d_++}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(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!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 Oc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(e=>(0,$i.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(t=>(0,$i.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:$n(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)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(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)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275dir=h.lG2({type:o,contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,IE,5),h.Suo(a,Ka,5),h.Suo(a,Ka,4)),2&e){let l;h.iGM(l=h.CRH())&&(t.lazyContent=l.first),h.iGM(l=h.CRH())&&(t._allItems=l),h.iGM(l=h.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let a;h.iGM(a=h.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),aA=(()=>{class o extends rs{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:xh,useExisting:o}]),h.qOj],ngContentSelectors:iA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,vh,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ah.transformMenu,Ah.fadeInItems]},changeDetection:0}),o})();const Th=new h.OlP("mat-menu-scroll-strategy"),h_={provide:Th,deps:[Ti],useFactory:function u_(o){return()=>o.scrollStrategies.reposition()}},p_=yn({passive:!0});let sA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Fc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof rs?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,p_),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,p_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof rs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof rs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Xt.h)(a=>"void"===a.toState),(0,Gt.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Wo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Xt.h)(c=>c!==this._menuItemInstance),(0,Xt.h)(()=>this._menuOpen)):(0,De.of)();return(0,$i.T)(e,a,l,t)}_handleMousedown(e){Yn(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,Xt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,c_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof rs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,c_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new oh(e.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(Th),h.Y36(xh,8),h.Y36(Ka,10),h.Y36(Qn,8),h.Y36(cn),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),o})(),lA=(()=>{class o extends sA{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),o})(),na=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[h_],imports:[T.ez,We,hi,Ya,Jn,We]}),o})();var cA=x(4742),dA=x(1810);function Eh(...o){const r=(0,Aa.jO)(o),{args:e,keys:t}=(0,cA.D)(o),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{u||(u=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(s||l.next(t?(0,dA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var Cl=x(3099);const f_=["*"];let yl;function wl(o){return function g_(){if(void 0===yl&&(yl=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(yl=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return yl}()?.createHTML(o)||o}function as(o){return Error(`Unable to find icon with the name "${o}"`)}function m_(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function __(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Za{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let os=(()=>{class o{constructor(e,t,a,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Za(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(h.q3G.HTML,a);if(!c)throw __(a);const n=wl(c);return this._addSvgIconConfig(e,t,new Za("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Za(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(h.q3G.HTML,t);if(!l)throw __(t);const c=wl(l);return this._addSvgIconSetConfig(e,new Za("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw m_(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(ld(a)):this._loadSvgIconFromConfig(new Za(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>ld(l)))}getNamedSvgIcon(e,t=""){const a=Sh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(as(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(ld(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>ld(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Eh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw as(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(wl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(wl("")),a=e.attributes;for(let l=0;lwl(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,Cl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Sh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.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 a=0;ar?r.pathname+r.search:""}}}),fA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],C_=fA.map(o=>`[${o}]`).join(", "),cd=/^url\(['"]?#(.*?)['"]?\)$/;let ra=(()=>{class o extends pA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||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=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(C_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(cd):null;if(s){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(os),h.$8M("aria-hidden"),h.Y36(FE),h.Y36(h.qLn),h.Y36(LE,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:f_,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),o})(),yr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();function Tn(o){return!!o&&(o instanceof Vi.y||(0,xn.m)(o.lift)&&(0,xn.m)(o.subscribe))}var Al=x(6063);class gA extends He.x{constructor(r=1/0,e=1/0,t=Al.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew gA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class xl{}let w_=(()=>{class o extends xl{getTranslation(e){return(0,De.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Mh{}let Dh=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function dd(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let a,l,c,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),o){if(!dd(o[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=o.length)==r.length){for(l=0;l{oa(r[t])?t in o?e[t]=v_(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Tl{}let A_=(()=>{class o extends Tl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!aa(e)||!aa(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return aa(c)?c:a}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class El{}let x_=(()=>{class o extends El{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Hh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Ph=new h.OlP("USE_STORE"),Sl=new h.OlP("USE_DEFAULT_LANG"),Rh=new h.OlP("DEFAULT_LANGUAGE"),ud=new h.OlP("USE_EXTEND");let En=(()=>{class o{constructor(e,t,a,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(y_(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),y_(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?v_(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,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),Tn(c[i])&&(n=!0);return n?Eh(t.map(s=>Tn(c[s])?c[s]:(0,De.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ui.b)(a=>Tn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return Tn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return Tn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(Tn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Hh),h.LFG(xl),h.LFG(El),h.LFG(Tl),h.LFG(Mh),h.LFG(Sl),h.LFG(Ph),h.LFG(ud),h.LFG(Rh))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),en=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);Tn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(dd(e,this.lastKey)&&dd(t,this.lastParams))return this.value;let a;if(aa(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{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(h.sBO,16))},o.\u0275pipe=h.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ss=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},Hh,{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),hd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[er,na,yr,An,ss,T.ez]}),o})();function mA(o,r){}class Ml{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let T_=(()=>{class o extends Ga{constructor(e,t,a,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=Bo(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Bo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Bo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Ml),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(sh,7),2&e){let a;h.iGM(a=h.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,mA,0,0,"ng-template",0)},dependencies:[sh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Ih{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$n(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const E_=new h.OlP("DialogScrollStrategy"),_A=new h.OlP("DialogData"),bA=new h.OlP("DefaultDialogConfig"),yA={provide:E_,deps:[Ti],useFactory:function CA(o){return()=>o.scrollStrategies.block()}};let S_=0,kh=(()=>{class o{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(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}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+S_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Ih(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){Vh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Vh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Vh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Wo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Ih,useValue:t},{provide:di,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=T_;const i=new hl(n,a.viewContainerRef,h.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof h.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new oh(e,null,n,c))}else{const n=a.attachComponentPortal(new hl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:_A,useValue:e.data},{provide:Ih,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Qn,null,h.XFs.Optional))&&c.push({provide:Qn,useValue:{value:e.direction,change:(0,De.of)()}}),h.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(bA,8),h.LFG(o,12),h.LFG(ta),h.LFG(E_))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Vh(o,r){let e=o.length;for(;e--;)r(o[e])}let wA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[kh,yA],imports:[Ya,ea,Nc,ea]}),o})();function M_(o,r){}const ls={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vA={dialogContainer:ri("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Em([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ja("@*",Ko(),{optional:!0})]),ls),_t("* => void, * => exit",Em([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ja("@*",Ko(),{optional:!0})]),ls)])};class Dl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ls.params.enterAnimationDuration,this.exitAnimationDuration=ls.params.exitAnimationDuration}}let Bh=(()=>{class o extends T_{constructor(e,t,a,l,c,n,i,s){super(e,t,a,l,c,n,i,s),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),Oh=(()=>{class o extends Bh{constructor(e,t,a,l,c,n,i,s,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ls.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ls.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(h.sBO),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,M_,0,0,"ng-template",0)},dependencies:[sh],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[vA.dialogContainer]}}),o})();class Xa{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Xt.h)(a=>"opened"===a.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Xt.h)(a=>"closed"===a.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,$i.T)(this.backdropClick(),this.keydownEvents().pipe((0,Xt.h)(a=>27===a.keyCode&&!this.disableClose&&!$n(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Lh(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Xt.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const D_=new h.OlP("MatDialogData"),AA=new h.OlP("mat-dialog-default-options"),pd=new h.OlP("mat-dialog-scroll-strategy"),cs={provide:pd,deps:[Ti],useFactory:function H_(o){return()=>o.scrollStrategies.block()}};let P_=0,xA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(kh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),eo=(()=>{class o extends xA{constructor(e,t,a,l,c,n,i,s){super(e,t,l,n,i,c,Xa,Oh,D_,s)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(T.Ye,8),h.LFG(AA,8),h.LFG(pd),h.LFG(o,12),h.LFG(ta),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),R_=0,Fh=(()=>{class o{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function TA(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa,8),h.Y36(h.SBq),h.Y36(eo))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),ds=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),jh=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),us=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[eo,cs],imports:[wA,Ya,ea,We,We]}),o})();function V_(o,r){for(const e of o)if(e.namespace+":"+e.friendlyName===r)return e;return null}function hs(){const o=new Dl;return o.disableClose=!0,o.autoFocus=!1,o}x(4327),new Intl.Collator("cs",{numeric:!0});let fi=(()=>{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class o{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ti),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=function _d(o,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(o))return l}return""}("idphint",location.search.substring(1));n&&(c.idphint=n)}return{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,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Xt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).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 a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Xt.h)(e=>e instanceof jr)).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 a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(fi),h.LFG(eo),h.LFG(Gn),h.LFG(Hl.Ct))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lS=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.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&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ds,en]}),o})(),to=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hs();this.dialog.open(lS,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(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 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 a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(fi),h.LFG(rf),h.LFG(at),h.LFG(eo),h.LFG(ti))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Uh=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(os),h.LFG(si))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),Gh=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.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&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Fh,ds,jh,Zr,en]}),o})(),qh=(()=>{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=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(En))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),U_=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Gh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>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(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(qh),h.LFG(bd),h.LFG(fi),h.LFG(eo),h.LFG(to))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),$A=(()=>{class o{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,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 y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(bd),h.LFG(Pl),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),G_=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Gn),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Cd=(()=>{class o{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const a of e)if(a.newApps.admin===t||a.newApps.profile===t||a.newApps.pwdReset===t||a.newApps.consolidator===t||a.newApps.linker===t)return a;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=o.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wh=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},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)(h.Y36(h.Qsj),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o}),o})(),sa=(()=>{class o extends Wh{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,features:[h.qOj]}),o})();const Fi=new h.OlP("NgValueAccessor"),JA={provide:Fi,useExisting:(0,h.Gpc)(()=>bi),multi:!0},KA=new h.OlP("CompositionEventMode");let bi=(()=>{class o extends Wh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function W_(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(KA,8))},o.\u0275dir=h.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&&h.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:[h._Bn([JA]),h.qOj]}),o})();function la(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function $_(o){return null!=o&&"number"==typeof o.length}const Ci=new h.OlP("NgValidators"),io=new h.OlP("NgAsyncValidators"),Y_=/^(?=.{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 yd{static min(r){return function fs(o){return r=>{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return wd(r)}static requiredTrue(r){return function J_(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function Yh(o){return la(o.value)||Y_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function K_(o){return r=>la(r.value)||!$_(r.value)?null:r.value.length$_(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function no(o){if(!o)return vd;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(la(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return Zh(r)}static composeAsync(r){return ep(r)}}function wd(o){return la(o.value)?{required:!0}:null}function vd(o){return null}function Ad(o){return null!=o}function Qh(o){return(0,h.QGY)(o)?(0,wi.D)(o):o}function Jh(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Rl(o,r){return r.map(e=>e(o))}function ZA(o){return o.map(r=>function Kh(o){return!o.validate}(r)?r:e=>r.validate(e))}function Zh(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Jh(Rl(e,r))}}function Xh(o){return null!=o?Zh(ZA(o)):null}function ep(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Eh(Rl(e,r).map(Qh)).pipe((0,ze.U)(Jh))}}function ca(o){return null!=o?ep(ZA(o)):null}function X_(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function tp(o){return o._rawValidators}function xd(o){return o._rawAsyncValidators}function eb(o){return o?Array.isArray(o)?o:[o]:[]}function Td(o,r){return Array.isArray(o)?o.includes(r):o===r}function XA(o,r){const e=eb(r);return eb(o).forEach(a=>{Td(e,a)||e.push(a)}),e}function tb(o,r){return eb(r).filter(e=>!Td(o,e))}class ib{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Xh(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=ca(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class ji extends ib{get formDirective(){return null}get path(){return null}}class Sn extends ib{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let np=(()=>{class o extends class ip{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Sn,2))},o.\u0275dir=h.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),o})();const Sd="VALID",ro="INVALID",kl="PENDING",gs="DISABLED";function ms(o){return(_s(o)?o.validators:o)||null}function ap(o){return Array.isArray(o)?Xh(o):o||null}function Md(o,r){return(_s(r)?r.asyncValidators:o)||null}function sx(o){return Array.isArray(o)?ca(o):o||null}function _s(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class sp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=ap(this._rawValidators),this._composedAsyncValidatorFn=sx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Sd}get invalid(){return this.status===ro}get pending(){return this.status==kl}get disabled(){return this.status===gs}get enabled(){return this.status!==gs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=ap(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=sx(r)}addValidators(r){this.setValidators(XA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(XA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(tb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(tb(r,this._rawAsyncValidators))}hasValidator(r){return Td(this._rawValidators,r)}hasAsyncValidator(r){return Td(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=kl,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=gs,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Sd,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sd||this.status===kl)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?gs:Sd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Qh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?gs:this.errors?ro:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(ro)?ro:Sd}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){_s(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class ob extends sp{constructor(r,e,t){super(ms(e),Md(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function ab(o,r,e){o._forEachChild((t,a)=>{if(void 0===e[a])throw new h.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function op(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Hd(o,r){up(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function CS(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&hp(o,r)})}(o,r),function sb(o,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function dx(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&hp(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function cx(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function cp(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Pd(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function dp(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function up(o,r){const e=tp(o);null!==r.validator?o.setValidators(X_(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=xd(o);null!==r.asyncValidator?o.setAsyncValidators(X_(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const a=()=>o.updateValueAndValidity();dp(r._rawValidators,a),dp(r._rawAsyncValidators,a)}function Pd(o,r){let e=!1;if(null!==o){if(null!==r.validator){const a=tp(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,o.setValidators(l))}}if(null!==r.asyncValidator){const a=xd(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,o.setAsyncValidators(l))}}}const t=()=>{};return dp(r._rawValidators,t),dp(r._rawAsyncValidators,t),e}function hp(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function ux(o,r){up(o,r)}function cb(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const db={provide:ji,useExisting:(0,h.Gpc)(()=>bs)},Vl=(()=>Promise.resolve(null))();let bs=(()=>{class o extends ji{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new ob({},Xh(e),ca(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Hd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new ob({});ux(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,cb(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)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([db]),h.qOj]}),o})();function bp(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function ub(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const Cp=class extends sp{constructor(r=null,e,t){super(ms(e),Md(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_s(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ub(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){bp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){bp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){ub(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},fx={provide:Sn,useExisting:(0,h.Gpc)(()=>wp)},fb=(()=>Promise.resolve(null))();let wp=(()=>{class o extends Sn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new Cp,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=function mp(o,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===bi?e=l:function gp(o){return Object.getPrototypeOf(o.constructor)===sa}(l)?t=l:a=l}),a||t||e||null}(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),function fp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(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(){Hd(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){fb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,h.D6c)(t);fb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Dd(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ji,9),h.Y36(Ci,10),h.Y36(io,10),h.Y36(Fi,10),h.Y36(h.sBO,8))},o.\u0275dir=h.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:[h._Bn([fx]),h.qOj,h.TTD]}),o})(),_x=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rd=new h.OlP("NgModelWithFormControlWarning"),Id={provide:ji,useExisting:(0,h.Gpc)(()=>Cs)};let Cs=(()=>{class o extends ji{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Pd(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 Hd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){cp(e.control||null,e,!1),function _p(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,cb(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,a=this.form.get(e.path);t!==a&&(cp(t||null,e),(o=>o instanceof Cp)(a)&&(Hd(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ux(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Mn(o,r){return Pd(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){up(this.form,this),this._oldForm&&Pd(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Id]),h.qOj,h.TTD]}),o})(),ua=(()=>{class o{constructor(){this._validator=vd}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):vd,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=h.lG2({type:o,features:[h.TTD]}),o})();const vx={provide:Ci,useExisting:(0,h.Gpc)(()=>ys),multi:!0};let ys=(()=>{class o extends ua{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>wd}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.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&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([vx]),h.qOj]}),o})(),Hp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[_x]}),o})(),Pp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})(),Ol=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Rd,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})();const Dx=yn({passive:!0});let Hx=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ei.E;const t=ni(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new He.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,Dx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,Dx)}}),l}stopMonitoring(e){const t=ni(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.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)(h.LFG(ci),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Px=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rx=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),BS=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let OS=0;const Ix=sl(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let LS=(()=>{class o extends Ix{constructor(e,t,a,l,c,n,i,s,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=u,this._uid="mat-input-"+OS++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>Ly().has(H)),this._iOSKeyupListener=H=>{const N=H.target;!N.value&&0===N.selectionStart&&0===N.selectionEnd&&(N.setSelectionRange(1,1),N.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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(){return this._required??this.ngControl?.control?.hasValidator(yd.required)??!1}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ly().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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){BS.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)(h.Y36(h.SBq),h.Y36(ci),h.Y36(Sn,10),h.Y36(bs,8),h.Y36(Cs,8),h.Y36(Gc),h.Y36(Rx,10),h.Y36(Hx),h.Y36(h.R0b),h.Y36(Ch,8))},o.\u0275dir=h.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&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h._Bn([{provide:ml,useExisting:o}]),h.qOj,h.TTD]}),o})(),Rp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc],imports:[Px,es,We,Px,es]}),o})();function FS(o,r){1&o&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let jS=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,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 o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(En),h.Y36(bd),h.Y36(Rt),h.Y36(fi))},o.\u0275cmp=h.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&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(l){return t.subject=l}),h.qZA(),h.YNc(10,FS,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(l){return t.message=l}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const a=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",a.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",a.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,bi,np,ys,wp,Zr,Lm,Gm,pi,rd,LS,Fh,ds,jh,en],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),NS=(()=>{class o{transform(e,t,a){return e[`${a}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedText",type:o,pure:!0}),o})(),zS=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),p=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function g(o,r){if(1&o&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function m(o,r){if(1&o&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function _(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,g,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,m,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const C=function(o){return{"min-height":o}};function w(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,_,5,8,"div",5),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,C,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const v=function(o){return{color:o}};function E(o,r){if(1&o&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,v,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function S(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const a=h.oxw().$implicit,l=h.oxw(3);return h.KtG(l.openDialog(a.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function P(o,r){if(1&o&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,v,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function R(o,r){if(1&o&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function L(o,r){if(1&o&&(h.TgZ(0,"div",16),h.YNc(1,E,2,4,"i",17),h.YNc(2,S,3,8,"span",18),h.YNc(3,P,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,R,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(o){return{height:o}};function re(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,L,7,10,"div",15),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,X,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function me(o,r){if(1&o&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,w,2,4,"div",9),h.YNc(5,re,2,4,"div",9),h.qZA()),2&o){const e=r.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,v,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(o,r){if(1&o&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&o){const e=r.$implicit,t=r.index,a=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,v,a.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const Pe=function(o){return{background:o}};let je=(()=>{class o{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,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=hs();"reportIssue"===e&&(t.width="550px",this.dialog.open(jS,t))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(En),h.Y36(eo))},o.\u0275cmp=h.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&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,me,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,Ae,3,5,"span",5),h._uU(7," Version "),h.TgZ(8,"a",6),h._uU(9),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(8,Pe,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(10,v,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(12,v,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,NS,zS,p],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})();function Ze(o,r){if(1&o&&(h.TgZ(0,"div",8),h._UZ(1,"div",9),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}function ye(o,r){if(1&o&&(h.TgZ(0,"div",10),h._UZ(1,"div",11)(2,"mat-icon",12),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}const $e=function(o){return{color:o}};function bt(o,r){if(1&o&&(h.TgZ(0,"p",13),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(2,$e,e.textColor)),h.xp6(1),h.hij(" ",e.headerTitle," ")}}const jt=function(o,r){return{background:o,color:r}},so=function(o,r){return{"min-height":o,"background-color":r}};let Ip=(()=>{class o{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,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 o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(G_),h.Y36(En))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.YNc(1,Ze,2,1,"div",1),h.YNc(2,ye,3,1,"div",2),h.YNc(3,bt,2,4,"p",3),h.qZA(),h.TgZ(4,"div",4)(5,"div",5)(6,"div",6),h._UZ(7,"router-outlet"),h.qZA(),h.TgZ(8,"div",7),h._UZ(9,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.WLB(5,jt,t.headerBackgroundColor,t.headerTextColor)),h.xp6(1),h.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),h.xp6(1),h.Q6J("ngIf","publications"===t.application),h.xp6(1),h.Q6J("ngIf",!!t.headerTitle),h.xp6(2),h.Q6J("ngStyle",h.WLB(8,so,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,ra,Kt,je],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),o})();const Ll=function(o){return{color:o}};function kp(o,r){if(1&o&&(h.TgZ(0,"button",8),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",4),h._uU(3," apps "),h.qZA()()),2&o){const e=h.oxw(),t=h.MAs(2);h.Q6J("matMenuTriggerFor",t)("matTooltip",h.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),h.xp6(2),h.Q6J("ngStyle",h.VKq(5,Ll,e.iconColor))}}function Vp(o,r){if(1&o&&(h.TgZ(0,"span",9),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(6,Ll,e.textColor)),h.xp6(1),h.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function Bp(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"button",2),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onLogOut())}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&o&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"NAV.LOGOUT")," "))}let Op=(()=>{class o{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(h.YNc(0,kp,4,7,"button",0),h.TgZ(1,"mat-menu",null,1)(3,"button",2),h.NdJ("click",function(){return t.redirectToUrl()}),h.TgZ(4,"span"),h._uU(5),h.qZA()()(),h.TgZ(6,"button",3)(7,"mat-icon",4),h._uU(8," person "),h.qZA(),h.YNc(9,Vp,2,8,"span",5),h.qZA(),h.TgZ(10,"mat-menu",null,6),h.YNc(12,Bp,3,3,"button",7),h.qZA()),2&e){const a=h.MAs(11);h.Q6J("ngIf",t.url),h.xp6(5),h.Oqu(t.label),h.xp6(1),h.Q6J("matMenuTriggerFor",a),h.xp6(1),h.Q6J("ngStyle",h.VKq(6,Ll,t.iconColor)),h.xp6(2),h.Q6J("ngIf",null!==t.user),h.xp6(3),h.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,ra,aA,Ka,lA,Zr,r_,en],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),o})();function Lp(o,r){1&o&&(h.TgZ(0,"div",6)(1,"span",7),h._uU(2," ~ \u{1f5f2}\xa0 "),h.qZA(),h.TgZ(3,"span",8),h._uU(4," DEVEL "),h.qZA(),h.TgZ(5,"span",7),h._uU(6," \xa0\u{1f5f2} ~ "),h.qZA()())}const Fp=function(o,r){return{background:o,color:r}},jp=function(){return["/consolidate"]},uH=function(o){return{color:o}};let hH=(()=>{class o{constructor(e,t,a){this.storeService=e,this.sanitizer=t,this.otherApplicationService=a,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=this.storeService.getProperty("is_devel"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.profileLabel=this.storeService.getProperty("profile_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(Cd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:8,vars:20,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"a",1),h._UZ(2,"div",2),h.qZA(),h.TgZ(3,"p",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.YNc(6,Lp,7,0,"div",4),h._UZ(7,"perun-web-apps-header-menu",5),h.qZA()),2&e&&(h.Q6J("ngStyle",h.WLB(14,Fp,t.bgColor,t.textColor)),h.xp6(1),h.Q6J("routerLink",h.DdM(17,jp)),h.xp6(1),h.Q6J("innerHTML",t.logo,h.oJD),h.xp6(1),h.Q6J("ngStyle",h.VKq(18,uH,t.textColor)),h.xp6(1),h.hij(" ",h.lcZ(5,12,"HEADER.TITLE")," "),h.xp6(2),h.Q6J("ngIf",t.isDevel),h.xp6(1),h.Q6J("iconColor",t.iconColor)("label",t.profileLabel)("textColor",t.textColor)("logoutEnabled",t.logoutEnabled)("url",t.profileUrl)("user",t.principal.user))},dependencies:[T.O5,T.PC,mu,Op,en],styles:["#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}#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),o})();const pH=function(o){return{"background-color":o}};function fH(o,r){if(1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",1),h.TgZ(2,"div",2)(3,"div",3),h._UZ(4,"router-outlet"),h.qZA(),h.TgZ(5,"div",4),h._UZ(6,"perun-web-apps-footer"),h.qZA()()()),2&o){const e=h.oxw();h.xp6(2),h.Q6J("ngStyle",h.VKq(1,pH,e.contentBackgroundColor))}}function gH(o,r){1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-login-screen-base",5),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Q6J("application","consolidator")("headerTitle",h.lcZ(2,2,"HEADER.TITLE")))}let mH=(()=>{class o{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(h.YNc(0,fH,7,3,"div",0),h.YNc(1,gH,3,4,"div",0)),2&e&&(h.Q6J("ngIf",!t.isLoginScreenShow),h.xp6(1),h.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[T.O5,T.PC,Kt,Ip,je,hH,en],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),o})();function US(o){return new h.vHH(3e3,!1)}function KH(){return typeof window<"u"&&typeof window.document<"u"}function kx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ws(o){switch(o.length){case 0:return new Zo;case 1:return o[0];default:return new id(o)}}function GS(o,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&s||new Map;d.forEach((H,N)=>{let ae=N,ke=H;if("offset"!==N)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(N);break;case _r:ke=l.get(N);break;default:ke=r.normalizeStyleValue(N,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=u}),c.length)throw function FH(o){return new h.vHH(3502,!1)}();return n}function Vx(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&Bx(e,"start",o)));break;case"done":o.onDone(()=>t(e&&Bx(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&Bx(e,"destroy",o)))}}function Bx(o,r,e){const l=Ox(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),c=o._data;return null!=c&&(l._data=c),l}function Ox(o,r,e,t,a="",l=0,c){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Dn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function qS(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let Lx=(o,r)=>!1,WS=(o,r,e)=>[],$S=null;function Fx(o){const r=o.parentNode||o.host;return r===$S?null:r}(kx()||typeof Element<"u")&&(KH()?($S=(()=>document.documentElement)(),Lx=(o,r)=>{for(;r;){if(r===o)return!0;r=Fx(r)}return!1}):Lx=(o,r)=>o.contains(r),WS=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Fl=null,YS=!1;const QS=Lx,JS=WS;let KS=(()=>{class o{validateStyleProperty(e){return function XH(o){Fl||(Fl=function eP(){return typeof document<"u"?document.body:null}()||{},YS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function ZH(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Fl.style,!r&&YS&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return QS(e,t)}getParentElement(e){return Fx(e)}query(e,t,a){return JS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Zo(a,l)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),jx=(()=>{class o{}return o.NOOP=new KS,o})();const Nx="ng-enter",Rb="ng-leave",Ib="ng-trigger",kb=".ng-trigger",XS="ng-animating",zx=".ng-animating";function vs(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Ux(parseFloat(r[1]),r[2])}function Ux(o,r){return"s"===r?1e3*o:o}function Vb(o,r,e){return o.hasOwnProperty("duration")?o:function nP(o,r,e){let a,l=0,c="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(US()),{duration:0,delay:0,easing:""};a=Ux(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Ux(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else a=o;if(!e){let n=!1,i=r.length;a<0&&(r.push(function _H(){return new h.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function bH(){return new h.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,US())}return{duration:a,delay:l,easing:c}}(o,r,e)}function Np(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function eM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function As(o,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of o)r.set(t,a);return r}function iM(o,r,e){return e?r+":"+e+";":""}function nM(o){let r="";for(let e=0;e{const l=qx(a);e&&!e.has(a)&&e.set(a,o.style[l]),o.style[l]=t}),kx()&&nM(o))}function jl(o,r){o.style&&(r.forEach((e,t)=>{const a=qx(t);o.style[a]=""}),kx()&&nM(o))}function zp(o){return Array.isArray(o)?1==o.length?o[0]:dh(o):o}const Gx=new RegExp("{{\\s*(.+?)\\s*}}","g");function rM(o){let r=[];if("string"==typeof o){let e;for(;e=Gx.exec(o);)r.push(e[1]);Gx.lastIndex=0}return r}function Bb(o,r,e){const t=o.toString(),a=t.replace(Gx,(l,c)=>{let n=r[c];return null==n&&(e.push(function yH(o){return new h.vHH(3003,!1)}()),n=""),n.toString()});return a==t?o:a}function Ob(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const oP=/-+([a-z0-9])/g;function qx(o){return o.replace(oP,(...r)=>r[1].toUpperCase())}function sP(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function wH(o){return new h.vHH(3004,!1)}()}}function aM(o,r){return window.getComputedStyle(o)[r]}function pP(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function fP(o,r,e){if(":"==o[0]){const i=function gP(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void r.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function kH(o){return new h.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(oM(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(oM(c,a))}(t,e,r)):e.push(o),e}const Nb=new Set(["true","1"]),zb=new Set(["false","0"]);function oM(o,r){const e=Nb.has(o)||zb.has(o),t=Nb.has(r)||zb.has(r);return(a,l)=>{let c="*"==o||o==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?Nb.has(o):zb.has(o)),!n&&t&&"boolean"==typeof l&&(n=l?Nb.has(r):zb.has(r)),c&&n}}const mP=new RegExp("s*:selfs*,?","g");function Wx(o,r,e,t){return new _P(o).build(r,e,t)}class _P{constructor(r){this._driver=r}build(r,e,t){const a=new yP(e);return this._resetContextStyleTimingState(a),Hn(this,zp(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function AH(){return new h.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function xH(){return new h.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{rM(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(Ob(l.values()),e.errors.push(function TH(o,r){return new h.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,zp(r.animation),e);return{type:1,matchers:pP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function vP(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return $x(Vb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=$x(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Vb(e,r);return $x(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new h.vHH(3002,!1)):t.push(eM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function SH(o,r,e,t,a){return new h.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&s.set(i,{startTime:l,endTime:a}),e.options&&function aP(o,r,e){const t=r.params||{},a=rM(o);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function CH(o){return new h.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function MH(){return new h.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function wP(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=H+N.delay+zt,N.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Hn(this,zp(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function bP(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(mP,"")),o=o.replace(/@\*/g,kb).replace(/@\w+/g,e=>kb+"-"+e.slice(1)).replace(/:animating/g,zx),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,zp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function RH(){return new h.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Vb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,zp(r.animation),e),timings:t,options:null}}}class yP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(o){return o?(o=Np(o)).params&&(o.params=function CP(o){return o?Np(o):null}(o.params)):o={},o}function $x(o,r,e){return{duration:o,delay:r,easing:e}}function Yx(o,r,e,t,a,l,c=null,n=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const TP=new RegExp(":enter","g"),SP=new RegExp(":leave","g");function Qx(o,r,e,t,a,l=new Map,c=new Map,n,i,s=[]){return(new MP).buildKeyframes(o,r,e,t,a,l,c,n,i,s)}class MP{buildKeyframes(r,e,t,a,l,c,n,i,s,d=[]){s=s||new Ub;const u=new Jx(r,e,s,a,l,d,[]);u.options=i;const f=i.delay?vs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let N=b.length-1;N>=0;N--){const ae=b[N];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[Yx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?vs(t.duration):null,n=null!=t.delay?vs(t.delay):null;return 0!==c&&r.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Gb);const c=vs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?vs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Vb(e.params?Bb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?vs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,s);l&&u.delayNextStep(l),s===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const Gb={};class Jx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new qb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=vs(t.duration)),null!=t.delay&&(a.delay=vs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Bb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Jx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Gb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new DP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(TP,"."+this._enterClassName)).replace(SP,"."+this._leaveClassName);let s=this._driver.query(this.element,r,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function IH(o){return new h.vHH(3014,!1)}()),n}}class qb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new qb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function HP(o,r){const e=new Map;let t;return o.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else As(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const s=Bb(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const s=As(n,new Map,this._backFill);s.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||s.set("offset",i/this.duration),a.push(s)});const l=r.size?Ob(r.values()):[],c=e.size?Ob(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Yx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class DP extends qb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=As(r[0]);i.set("offset",0),l.push(i);const s=As(r[0]);s.set("offset",cM(n)),l.push(s);const d=r.length-1;for(let u=1;u<=d;u++){let f=As(r[u]);const b=f.get("offset");f.set("offset",cM((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Yx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function cM(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class Kx{}const PP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RP extends Kx{normalizePropertyName(r,e){return qx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(PP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function vH(o,r){return new h.vHH(3005,!1)}())}return c+l}}function dM(o,r,e,t,a,l,c,n,i,s,d,u,f){return{type:0,element:o,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:u,errors:f}}const Zx={};class uM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function IP(o,r,e,t,a){return o.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,s,d){const u=[],f=this.ast.options&&this.ast.options.params||Zx,H=this.buildStyles(t,n&&n.params||Zx,u),N=i&&i.params||Zx,ae=this.buildStyles(a,N,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,xr={params:kP(N,f),delay:this.ast.options?.delay},nr=d?[]:Qx(r,e,this.ast.animation,l,c,H,ae,xr,s,u);let tn=0;if(nr.forEach(po=>{tn=Math.max(po.duration+po.delay,tn)}),u.length)return dM(e,this._triggerName,t,a,zt,H,ae,[],[],lt,yt,tn,u);nr.forEach(po=>{const fo=po.element,PD=Dn(lt,fo,new Set);po.preStyleProps.forEach(Ul=>PD.add(Ul));const Kp=Dn(yt,fo,new Set);po.postStyleProps.forEach(Ul=>Kp.add(Ul)),fo!==e&&ke.add(fo)});const ho=Ob(ke.values());return dM(e,this._triggerName,t,a,zt,H,ae,nr,ho,lt,yt,tn)}}function kP(o,r){const e=Np(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class VP{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Np(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Bb(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class OP{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new VP(a.style,a.options&&a.options.params||{},t))}),hM(this.states,"true","1"),hM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new uM(r,a,this.states))}),this.fallbackTransition=function LP(o,r,e){return new uM(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function hM(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const FP=new Ub;class jP{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Wx(this._driver,e,t,[]);if(t.length)throw function jH(o){return new h.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=GS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=Qx(this._driver,e,l,Nx,Rb,new Map,new Map,t,FP,a),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function NH(){return new h.vHH(3300,!1)}()),c=[]),a.length)throw function zH(o){return new h.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const s=ws(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,s),s.onDestroy(()=>this.destroy(r)),this.players.push(s),s}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function UH(o){return new h.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Ox(e,"","","");return Vx(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);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(a[0]));break;case"destroy":this.destroy(r)}}}const pM="ng-animate-queued",Xx="ng-animate-disabled",qP=[],fM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},WP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class e0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function JP(o){return o??null}(t?r.value:r),t){const l=Np(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Up="void",t0=new e0(Up);class $P{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ir(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function GH(o,r){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function qH(o){return new h.vHH(3303,!1)}();if(!function KP(o){return"start"==o||"done"==o}(t))throw function WH(o,r){return new h.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(ir(r,Ib),ir(r,Ib+"-"+e),n.set(e,t0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function $H(o){return new h.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new n0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(ir(r,Ib),ir(r,Ib+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const s=new e0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=t0),s.value!==Up&&i.value===s.value){if(!function eR(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),ha(r,ke)})}return}const f=Dn(this._engine.playersByElement,r,[]);f.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy()});let b=l.matchTransition(i.value,s.value,r,s.params),H=!1;if(!b){if(!a)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(ir(r,pM),c.onStart(()=>{Od(r,pM)})),c.onDone(()=>{let N=this.players.indexOf(c);N>=0&&this.players.splice(N,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,kb,!0);t.forEach(a=>{if(a[tr])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(r,s,Up,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ws(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||t0,d=new e0(Up),u=new n0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:s,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[tr];(!l||l===fM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){ir(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Ox(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Vx(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class YP{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new $P(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if(Wb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!Wb(e))return;const l=e[tr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),ir(r,Xx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Od(r,Xx))}removeNode(r,e,t,a){if(Wb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[tr]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return Wb(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,kb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,zx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ws(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[tr];if(e&&e.setForRemoval){if(r[tr]=fM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Xx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ws(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function YH(o){return new h.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Xe=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=Nx+N++;H.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))});const ae=[],ke=new Set,lt=new Set;for(let Ge=0;Geke.add(xt)):lt.add(Xe))}const yt=new Map,zt=_M(f,Array.from(ke));zt.forEach((Ge,Xe)=>{const nt=Rb+N++;yt.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))}),r.push(()=>{b.forEach((Ge,Xe)=>{const nt=H.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),zt.forEach((Ge,Xe)=>{const nt=yt.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const xr=[],nr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Ii=nt.element;if(xr.push(xt),this.collectedEnterElements.length){const Yi=Ii[tr];if(Yi&&Yi.setForMove){if(Yi.previousTriggersValues&&Yi.previousTriggersValues.has(nt.triggerName)){const Gl=Yi.previousTriggersValues.get(nt.triggerName),rr=this.statesByElement.get(nt.element);if(rr&&rr.has(nt.triggerName)){const AC=rr.get(nt.triggerName);AC.value=Gl,rr.set(nt.triggerName,AC)}}return void xt.destroy()}}const fa=!u||!this.driver.containsElement(u,Ii),Pn=yt.get(Ii),Ts=H.get(Ii),ai=this._buildInstruction(nt,t,Ts,Pn,fa);if(ai.errors&&ai.errors.length)return void nr.push(ai);if(fa)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);const kD=[];ai.timelines.forEach(Yi=>{Yi.stretchStartingKeyframe=!0,this.disabledNodes.has(Yi.element)||kD.push(Yi)}),ai.timelines=kD,t.append(Ii,ai.timelines),c.push({instruction:ai,player:xt,element:Ii}),ai.queriedElements.forEach(Yi=>Dn(n,Yi,[]).push(xt)),ai.preStyleProps.forEach((Yi,Gl)=>{if(Yi.size){let rr=i.get(Gl);rr||i.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))}}),ai.postStyleProps.forEach((Yi,Gl)=>{let rr=s.get(Gl);rr||s.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))})});if(nr.length){const Ge=[];nr.forEach(Xe=>{Ge.push(function QH(o,r){return new h.vHH(3505,!1)}())}),xr.forEach(Xe=>Xe.destroy()),this.reportError(Ge)}const tn=new Map,ho=new Map;c.forEach(Ge=>{const Xe=Ge.element;t.has(Xe)&&(ho.set(Xe,Xe),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,tn))}),a.forEach(Ge=>{const Xe=Ge.element;this._getPreviousPlayers(Xe,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Dn(tn,Xe,[]).push(xt),xt.destroy()})});const po=ae.filter(Ge=>CM(Ge,i,s)),fo=new Map;mM(fo,this.driver,lt,s,_r).forEach(Ge=>{CM(Ge,i,s)&&po.push(Ge)});const Kp=new Map;b.forEach((Ge,Xe)=>{mM(Kp,this.driver,new Set(Ge),i,"!")}),po.forEach(Ge=>{const Xe=fo.get(Ge),nt=Kp.get(Ge);fo.set(Ge,new Map([...Array.from(Xe?.entries()??[]),...Array.from(nt?.entries()??[])]))});const Ul=[],RD=[],ID={};c.forEach(Ge=>{const{element:Xe,player:nt,instruction:xt}=Ge;if(t.has(Xe)){if(d.has(Xe))return nt.onDestroy(()=>ha(Xe,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void a.push(nt);let Ii=ID;if(ho.size>1){let Pn=Xe;const Ts=[];for(;Pn=Pn.parentNode;){const ai=ho.get(Pn);if(ai){Ii=ai;break}Ts.push(Pn)}Ts.forEach(ai=>ho.set(ai,Ii))}const fa=this._buildAnimation(nt.namespaceId,xt,tn,l,Kp,fo);if(nt.setRealPlayer(fa),Ii===ID)Ul.push(nt);else{const Pn=this.playersByElement.get(Ii);Pn&&Pn.length&&(nt.parentPlayer=ws(Pn)),a.push(nt)}}else jl(Xe,xt.fromStyles),nt.onDestroy(()=>ha(Xe,xt.toStyles)),RD.push(nt),d.has(Xe)&&a.push(nt)}),RD.forEach(Ge=>{const Xe=l.get(Ge.element);if(Xe&&Xe.length){const nt=ws(Xe);Ge.setRealPlayer(nt)}}),a.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!fa.destroyed);Ii.length?ZP(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Ul.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Xe=this.players.indexOf(Ge);this.players.splice(Xe,1)}),Ge.play()}),Ul}elementContainsData(r,e){let t=!1;const a=e[tr];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Up;n.forEach(s=>{s.queued||!i&&s.triggerName!=a||c.push(s)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,u=Dn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,u=new Set,f=e.timelines.map(H=>{const N=H.element;d.add(N);const ae=N[tr];if(ae&&ae.removedBeforeQueried)return new Zo(H.duration,H.delay);const ke=N!==i,lt=function XP(o){const r=[];return bM(o,r),r}((t.get(N)||qP).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===N),yt=l.get(N),zt=c.get(N),xr=GS(0,this._normalizer,0,H.keyframes,yt,zt),nr=this._buildPlayer(H,xr,lt);if(H.subTimeline&&a&&u.add(N),ke){const tn=new n0(r,n,N);tn.setRealPlayer(nr),s.push(tn)}return nr});s.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function QP(o,r,e){let t=o.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>ir(H,XS));const b=ws(f);return b.onDestroy(()=>{d.forEach(H=>Od(H,XS)),ha(i,e.toStyles)}),u.forEach(H=>{Dn(a,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Zo(r.duration,r.delay)}}class n0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Zo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Vx(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Wb(o){return o&&1===o.nodeType}function gM(o,r){const e=o.style.display;return o.style.display=r??"none",e}function mM(o,r,e,t,a){const l=[];e.forEach(i=>l.push(gM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(s,u,a);d.set(u,f),(!f||0==f.length)&&(s[tr]=WP,c.push(s))}),o.set(s,d)});let n=0;return e.forEach(i=>gM(i,l[n++])),c}function _M(o,r){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:a.has(s)?1:c(s),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function ir(o,r){o.classList?.add(r)}function Od(o,r){o.classList?.remove(r)}function ZP(o,r,e){ws(e).onDone(()=>o.processLeaveNode(r))}function bM(o,r){for(let e=0;ea.add(l)):r.set(o,t),e.delete(o),!0}class $b{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new YP(r,e,t),this._timelineEngine=new jP(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Wx(this._driver,l,i,[]);if(i.length)throw function LH(o,r){return new h.vHH(3404,!1)}();n=function BP(o,r,e){return new OP(o,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=qS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=qS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let iR=(()=>{class o{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=o.initialStylesByElement.get(e);l||o.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ha(this._element,this._initialStyles),this._endStyles&&(ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),ha(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function r0(o){let r=null;return o.forEach((e,t)=>{(function nR(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class yM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:aM(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class rR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return QS(r,e)}getParentElement(r){return Fx(r)}query(r,e,t){return JS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof yM);(function lP(o,r){return 0===o||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((H,N)=>s.set(N,H))});let u=function rP(o){return o.length?o[0]instanceof Map?o:o.map(r=>eM(r)):[]}(e).map(b=>As(b));u=function cP(o,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,aM(o,n)))}}return r}(r,u,s);const f=function tR(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=r0(r[0]),r.length>1&&(t=r0(r[r.length-1]))):r instanceof Map&&(e=r0(r)),e||t?new iR(o,e,t):null}(r,u);return new yM(r,u,i,f)}}let aR=(()=>{class o extends ch{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?dh(e):e;return wM(this._renderer,null,t,"register",[a]),new oR(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class oR extends class wv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new sR(this._id,r,e||{},this._renderer)}}class sR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return wM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function wM(o,r,e,t,a){return o.setProperty(r,`@@${e}:${t}`,a)}const vM="@.disabled";let lR=(()=>{class o{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new AM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new cR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG($b),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class AM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==vM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class cR extends AM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==vM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function dR(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function uR(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const xM=[{provide:ch,useClass:aR},{provide:Kx,useFactory:function pR(){return new RP}},{provide:$b,useClass:(()=>{class o extends $b{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(jx),h.LFG(Kx),h.LFG(h.z2F))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:h.FYo,useFactory:function fR(o,r,e){return new lR(o,r,e)},deps:[ue,$b,h.R0b]}],a0=[{provide:jx,useFactory:()=>new rR},{provide:h.QbO,useValue:"BrowserAnimations"},...xM],TM=[{provide:jx,useClass:KS},{provide:h.QbO,useValue:"NoopAnimations"},...xM];let gR=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?TM:a0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:a0,imports:[_a]}),o})(),MM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Qb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,Oo,MM,We,MM]}),o})();function Jb(o){return o&&"function"==typeof o.connect}class DM{applyChanges(r,e,t,a,l){r.forEachOperation((c,n,i)=>{let s,d;if(null==c.previousIndex){const u=t(c,n,i);s=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==i?(e.remove(n),d=3):(s=e.get(n),e.move(s,i),d=2);l&&l({context:s?.context,operation:d,record:c})})}detach(){}}const Gp=new h.OlP("_ViewRepeater"),PR=[[["caption"]],[["colgroup"],["col"]]],RR=["caption","colgroup, col"];function s0(o){return class extends o{constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(r){const e=this._sticky;this._sticky=it(r),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ld=new h.OlP("CDK_TABLE");let Fd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellDef",""]]}),o})(),jd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderCellDef",""]]}),o})(),Kb=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterCellDef",""]]}),o})();class BR{}const OR=s0(BR);let lo=(()=>{class o extends OR{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=it(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 o.\u0275fac=function(e){return new(e||o)(h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Fd,5),h.Suo(a,jd,5),h.Suo(a,Kb,5)),2&e){let l;h.iGM(l=h.CRH())&&(t.cell=l.first),h.iGM(l=h.CRH())&&(t.headerCell=l.first),h.iGM(l=h.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})();class l0{constructor(r,e){e.nativeElement.classList.add(...r._columnCssClassName)}}let c0=(()=>{class o extends l0{constructor(e,t){super(e,t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.qOj]}),o})(),d0=(()=>{class o extends l0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const a=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.qOj]}),o})();class RM{constructor(){this.tasks=[],this.endTasks=[]}}const u0=new h.OlP("_COALESCED_STYLE_SCHEDULER");let IM=(()=>{class o{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RM,this._getScheduleObservable().pipe(ft(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RM;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,wi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Gt.q)(1))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),h0=(()=>{class o{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 qp?e.headerCell.template:this instanceof Wp?e.footerCell.template:e.cell.template}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4))},o.\u0275dir=h.lG2({type:o,features:[h.TTD]}),o})();class LR extends h0{}const FR=s0(LR);let qp=(()=>{class o extends FR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})();class jR extends h0{}const NR=s0(jR);let Wp=(()=>{class o extends NR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})(),Zb=(()=>{class o extends h0{constructor(e,t,a){super(e,t),this._table=a}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.qOj]}),o})(),co=(()=>{class o{constructor(e){this._viewContainer=e,o.mostRecentCellOutlet=this}ngOnDestroy(){o.mostRecentCellOutlet===this&&(o.mostRecentCellOutlet=null)}}return o.mostRecentCellOutlet=null,o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellOutlet",""]]}),o})(),p0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),g0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),Xb=(()=>{class o{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["ng-template","cdkNoDataRow",""]]}),o})();const kM=["top","bottom","left","right"];class zR{constructor(r,e,t,a,l=!0,c=!0,n){this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=a,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=n,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(r,e){const t=[];for(const a of r)if(a.nodeType===a.ELEMENT_NODE){t.push(a);for(let l=0;l{for(const a of t)this._removeStickyStyle(a,e)})}updateStickyColumns(r,e,t,a=!0){if(!r.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=r[0],c=l.children.length,n=this._getCellWidths(l,a),i=this._getStickyStartColumnPositions(n,e),s=this._getStickyEndColumnPositions(n,t),d=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",H=f?"left":"right";for(const N of r)for(let ae=0;aee[ae]?N:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:n.slice(u).map((N,ae)=>t[ae+u]?N:null).reverse()}))})}stickRows(r,e,t){if(!this._isBrowser)return;const a="bottom"===t?r.slice().reverse():r,l="bottom"===t?e.slice().reverse():e,c=[],n=[],i=[];for(let d=0,u=0;d{for(let d=0;d{e.some(a=>!a)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(r,e){for(const a of e)r.style[a]="",r.classList.remove(this._borderCellCss[a]);kM.some(a=>-1===e.indexOf(a)&&r.style[a])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,e,t,a){r.classList.add(this._stickCellCss),a&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${t}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const a of kM)r.style[a]&&(t+=e[a]);return t?`${t}`:""}_getCellWidths(r,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],a=r.children;for(let l=0;l0;l--)e[l]&&(t[l]=a,a+=r[l]);return t}}const m0=new h.OlP("CDK_SPL");let eC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","rowOutlet",""]]}),o})(),tC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","headerRowOutlet",""]]}),o})(),iC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","footerRowOutlet",""]]}),o})(),nC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","noDataRowOutlet",""]]}),o})(),rC=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=c,this._platform=i,this._viewRepeater=s,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new h.vpe,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=n,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=it(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=it(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(ft(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(),Jb(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,(a,l,c)=>this._getEmbeddedViewArgs(a.item,c),a=>a.item.data,a=>{1===a.operation&&a.context&&this._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(a=>{t.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&h.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Gt.q)(1),ft(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),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...a],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let n=0;n{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=0;a{const n=a&&a.has(c)?a.get(c):[];if(n.length){const i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),aC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=aC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=aC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=aC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,n)=>c||!!n.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const a=this._headerRowDefs.reduce(e,!1);a&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||a||l}_switchDataSource(e){this._data=[],Jb(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;Jb(this.dataSource)?e=this.dataSource.connect(this):Tn(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,De.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(ft(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 a=Array.from(t.columns||[]).map(n=>this._columnDefsByName.get(n)),l=a.map(n=>n.sticky),c=a.map(n=>n.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let a=0;a!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&a.push(l)}return a}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,a,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,a);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let a of this._getCellTemplates(e))co.mostRecentCellOutlet&&co.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,a=e.length;t{const a=this._columnDefsByName.get(t);return e.extractCellTemplate(a)}):[]}_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 a of t){const l=this._document.createElement(a.tag);l.setAttribute("role","rowgroup");for(const c of a.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,a)=>t||a.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 zR(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,De.of)()).pipe(ft(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 a=this._noDataRowOutlet.viewContainer;if(t){const l=a.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else a.clear();this._isShowingNoDataRow=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.ZZ4),h.Y36(h.sBO),h.Y36(h.SBq),h.$8M("role"),h.Y36(Qn,8),h.Y36(T.K0),h.Y36(ci),h.Y36(Gp),h.Y36(u0),h.Y36(qo),h.Y36(m0,12),h.Y36(h.R0b,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Xb,5),h.Suo(a,lo,5),h.Suo(a,Zb,5),h.Suo(a,qp,5),h.Suo(a,Wp,5)),2&e){let l;h.iGM(l=h.CRH())&&(t._noDataRow=l.first),h.iGM(l=h.CRH())&&(t._contentColumnDefs=l),h.iGM(l=h.CRH())&&(t._contentRowDefs=l),h.iGM(l=h.CRH())&&(t._contentHeaderRowDefs=l),h.iGM(l=h.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(h.Gf(eC,7),h.Gf(tC,7),h.Gf(iC,7),h.Gf(nC,7)),2&e){let a;h.iGM(a=h.CRH())&&(t._rowOutlet=a.first),h.iGM(a=h.CRH())&&(t._headerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._footerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._noDataRowOutlet=a.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h._Bn([{provide:Ld,useExisting:o},{provide:Gp,useClass:DM},{provide:u0,useClass:IM},{provide:m0,useValue:null}])],ngContentSelectors:RR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(PR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})();function aC(o,r){return o.concat(Array.from(r))}let GR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Ua]}),o})();const qR=[[["caption"]],[["colgroup"],["col"]]],WR=["caption","colgroup, col"];let _0=(()=>{class o extends rC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h._Bn([{provide:Gp,useClass:DM},{provide:rC,useExisting:o},{provide:Ld,useExisting:o},{provide:u0,useClass:IM},{provide:m0,useValue:null}]),h.qOj],ngContentSelectors:WR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(qR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})(),oC=(()=>{class o extends Fd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matCellDef",""]],features:[h._Bn([{provide:Fd,useExisting:o}]),h.qOj]}),o})(),sC=(()=>{class o extends jd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderCellDef",""]],features:[h._Bn([{provide:jd,useExisting:o}]),h.qOj]}),o})(),lC=(()=>{class o extends lo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h._Bn([{provide:lo,useExisting:o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})(),cC=(()=>{class o extends c0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.qOj]}),o})(),dC=(()=>{class o extends d0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.qOj]}),o})(),BM=(()=>{class o extends qp{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h._Bn([{provide:qp,useExisting:o}]),h.qOj]}),o})(),b0=(()=>{class o extends Zb{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h._Bn([{provide:Zb,useExisting:o}]),h.qOj]}),o})(),OM=(()=>{class o extends p0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h._Bn([{provide:p0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),C0=(()=>{class o extends g0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h._Bn([{provide:g0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),uC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[GR,We,We]}),o})();class hC extends class nI extends class DR{}{constructor(r=[]){super(),this._renderData=new Yt([]),this._filter=new Yt(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const a=e[t];if(Sg(a)){const l=Number(a);return l<9007199254740991?l:a}return a},this.sortData=(e,t)=>{const a=t.active,l=t.direction;return a&&""!=l?e.sort((c,n)=>{let i=this.sortingDataAccessor(c,a),s=this.sortingDataAccessor(n,a);const d=typeof i,u=typeof s;d!==u&&("number"===d&&(i+=""),"number"===u&&(s+=""));let f=0;return null!=i&&null!=s?i>s?f=1:i{const a=Object.keys(e).reduce((c,n)=>c+e[n]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=a.indexOf(l)},this._data=new Yt(r),this._updateChangeSubscription()}get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}_updateChangeSubscription(){const r=this._sort?(0,$i.T)(this._sort.sortChange,this._sort.initialized):(0,De.of)(null),e=this._paginator?(0,$i.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,De.of)(null),a=(0,Ir.a)([this._data,this._filter]).pipe((0,ze.U)(([n])=>this._filterData(n))),l=(0,Ir.a)([a,r]).pipe((0,ze.U)(([n])=>this._orderData(n))),c=(0,Ir.a)([l,e]).pipe((0,ze.U)(([n])=>this._pageData(n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=c.subscribe(n=>this._renderData.next(n))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,a=Math.min(e.pageIndex,t);a!==e.pageIndex&&(e.pageIndex=a,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}let y0=(()=>{class o{constructor(){this.changes=new He.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aI={provide:y0,deps:[[new h.FiY,new h.tp0,y0]],useFactory:function rI(o){return o||new y0}};let w0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[aI],imports:[T.ez,We]}),o})();function oI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function sI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const cI=No(class{constructor(o){this._elementRef=o}},"primary"),dI=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function uI(){return{diameter:100}}});class Ar extends cI{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Ar._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ln(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ln(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ln(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Vo(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ar._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ar._diameters=new WeakMap,Ar.\u0275fac=function(r){return new(r||Ar)(h.Y36(h.SBq),h.Y36(ci),h.Y36(T.K0,8),h.Y36(h.QbO,8),h.Y36(dI),h.Y36(h.sBO),h.Y36(qo),h.Y36(h.R0b))},Ar.\u0275cmp=h.Xpm({type:Ar,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(h.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,oI,1,11,"circle",2),h.YNc(3,sI,1,9,"circle",3),h.qZA()),2&r&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let pC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,T.ez,We]}),o})(),A0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[yr,T.ez]}),o})();const NM=new h.OlP("mat-chips-default-options");let T0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc,{provide:NM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),o})();function E0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?o.setProperty(t,a,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Nd(o,r){const e=r?"":"none";E0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zM(o,r,e){E0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function fC(o,r){return r&&"none"!=r?o+" "+r:o}function UM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function S0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function M0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function D0(o,r,e){const{top:t,bottom:a,left:l,right:c}=o;return e>=t&&e<=a&&r>=l&&r<=c}function $p(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function GM(o,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:s}=o,d=i*r,u=s*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:M0(e)})})}handleScroll(r){const e=Ai(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&$p(s.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function WM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=s.x-d.x+this._passiveTransform.x,u.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new qM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=it(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ni(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ni(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,gC),e.addEventListener("touchstart",this._pointerDown,JM),e.addEventListener("dragstart",this._nativeDragStart,gC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ni(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Yp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),zM(t,!1,H0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Yp(e),l=!a&&0!==e.button,c=this._rootElement,n=Ai(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=a?Fc(e):Yn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=M0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){zM(this._rootElement,!0,H0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=ZM(c,this._document),this._previewRef=c,r.matchSize?XM(a,l):a.style.transform=mC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=WM(this._rootElement),XM(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return E0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},H0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function EI(o){const r=getComputedStyle(o),e=S0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=S0(r,"transition-duration"),c=S0(r,"transition-delay");return UM(l[a])+UM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||Ai(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=ZM(this._placeholderRef,this._document)):t=WM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Yp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Yp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(s-c);t=KM(t,n.left+l,n.right-(i-l)),a=KM(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,gC),r.removeEventListener("touchstart",this._pointerDown,JM),r.removeEventListener("dragstart",this._nativeDragStart,gC)}_applyRootElementTransform(r,e){const t=mC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=fC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=mC(r,e);this._preview.style.transform=fC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Yp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=Ai(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&$p(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Vo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ni(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function mC(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function KM(o,r,e){return Math.max(r,Math.min(e,o))}function Yp(o){return"t"===o.type[0]}function ZM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function XM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=mC(r.left,r.top)}function Qp(o,r){return Math.max(0,Math.min(r,o))}class PI{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),s=l[c],u=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),H=this._getSiblingOffsetPx(i,l,f),N=l.slice();return function HI(o,r,e){const t=Qp(r,o.length-1),a=Qp(e,o.length-1);if(t===a)return;const l=o[t],c=a{if(N[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:H,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=fC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),$p(ae.clientRect,0,yt)):(zt.style.transform=fC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),$p(ae.clientRect,yt,0))}),this._previousSwap.overlaps=D0(u,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let s=c[l];if(s===r&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ni(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{$p(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:M0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",s=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const s=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function TI(o=0,r=Jc.z){return o<0&&(o=0),(0,fm.H)(o,o,r)}(0,om).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ni(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new qM(t),this._sortStrategy=new PI(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ni(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!GM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||GM(c.clientRect,.05,r,e)&&([a,l]=function II(o,r,e,t){const a=iD(r,t),l=nD(r,e);let c=0,n=0;if(a){const i=o.scrollTop;1===a?i>0&&(c=1):o.scrollHeight-i>o.clientHeight&&(c=2)}if(l){const i=o.scrollLeft;1===l?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=iD(i,e),l=nD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ni(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ni(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ni(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&D0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!D0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ni(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Vo(ni(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function iD(o,r){const{top:e,bottom:t,height:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function nD(o,r){const{left:e,right:t,width:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const _C=yn({passive:!1,capture:!0});let kI=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},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,_C)})}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,_C)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"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:_C}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:_C}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,$i.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)(h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const VI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let BI=(()=>{class o{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=VI){return new DI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new RI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b),h.LFG(qo),h.LFG(kI))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),OI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[BI],imports:[Jn]}),o})(),rD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez]}),o})(),LI=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"userFullName",type:o,pure:!0}),o})(),FI=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const a=this.storage.get("custom_labels");if(a)for(const l of a)if(l.label===e)return l[t];return e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(fi,16))},o.\u0275pipe=h.Yjl({name:"customTranslate",type:o,pure:!0}),o})(),jI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),qI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),XI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[qI,We,We]}),o})(),ik=(()=>{class o{constructor(){this.changes=new He.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const hk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[Ti],useFactory:function uk(o){return()=>o.scrollStrategies.reposition()}};let V0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[ik,hk],imports:[T.ez,An,Ya,Nc,ea,We,Jn]}),o})(),Dk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();new h.OlP("mat-selectsearch-default-options");let kk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[[T.ez,Ol,An,Qb,yr,pC,_l]]}),o})(),uD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Vk=(()=>{class o{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=it(e)}get inset(){return this._inset}set inset(e){this._inset=it(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),h.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),o})(),B0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Bk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),pD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Bk,ea]}),o})(),gD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,We,zo,We]}),o})(),Fk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr]}),o})(),O0=(()=>{class o{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Jk={provide:O0,deps:[[new h.FiY,new h.tp0,O0]],useFactory:function Qk(o){return o||new O0}};let CD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jk,Gc],imports:[We,T.ez,ea,An,Fk,yr,hi,We]}),o})(),yD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Jn,Jn,We]}),o})(),vD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,hi,We,Ju,T.ez,zo,We,Ju,B0]}),o})(),AD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),m1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,ea,hi,Oo,Nc,We]}),o})(),xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),TD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[xD,hi,We,Oo,xD,We]}),o})(),L0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,uC,TD,T0,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,m1,TD,T0]}),o})(),D1=(()=>{class o extends Wg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const H1={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 ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:D1},{provide:$u,useValue:H1}],imports:[T.ez,Qb,uC,Pp,T0,OI,ss,Mc,w0,er,pC,A0,yr,na,An,_l,es,Ol,Rp,hi,rD,jI,XI,V0,Dk,Ku,is,kk,Ua,us,hd,L0]}),o})();function F1(o,r){1&o&&h._UZ(0,"mat-spinner",3)}function j1(o,r){1&o&&h._UZ(0,"th",15)}function N1(o,r){if(1&o&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.userExtSource.extSource.name," ")}}function z1(o,r){1&o&&h._UZ(0,"tr",17)}function U1(o,r){1&o&&h._UZ(0,"tr",18)}function G1(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"div",4)(2,"p"),h._uU(3),h.ALo(4,"translate"),h.ALo(5,"customTranslate"),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.TgZ(10,"table",6),h.ynx(11,7),h.YNc(12,j1,1,0,"th",8),h.YNc(13,N1,2,1,"td",9),h.BQk(),h.YNc(14,z1,1,0,"tr",10),h.YNc(15,U1,1,0,"tr",11),h.qZA()(),h.TgZ(16,"div",12)(17,"button",13),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onCancel())}),h._uU(18),h.ALo(19,"translate"),h.ALo(20,"customTranslate"),h.qZA(),h.TgZ(21,"button",14),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onSubmit())}),h._uU(22),h.ALo(23,"translate"),h.ALo(24,"customTranslate"),h.qZA()()()}if(2&o){const e=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,7,h.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),h.xp6(4),h.hij(" ",h.lcZ(8,11,h.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(3),h.hij(" ",h.lcZ(19,15,h.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),h.xp6(4),h.hij(" ",h.lcZ(23,19,h.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let q1=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=a,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(n=>this.successMessage=n)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new hC(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 o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(D_),h.Y36(Pr),h.Y36(En),h.Y36(bd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div"),h.YNc(5,F1,1,0,"mat-spinner",1),h.YNc(6,G1,25,23,"div",2),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,6,h.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),h.xp6(3),h.Tol(t.theme),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.O5,_0,sC,BM,lC,oC,b0,cC,dC,OM,C0,Fh,ds,jh,Zr,Ar,en,FI]}),o})(),RV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,An,yr,Mc,ED,ss,es,Ol,Rp,A0]}),o})(),IV=(()=>{class o{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"button",4),h.NdJ("click",function(){return t.startAuth()}),h._uU(7),h.ALo(8,"translate"),h.TgZ(9,"mat-icon"),h._uU(10," login "),h.qZA()()()()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Zr,ra,en],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),o})();const kV=new h.OlP("perun-api-service");class VV{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let BV=(()=>{class o{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function OV(o){return[hn(tinycolor(o).lighten(52),"50"),hn(tinycolor(o).lighten(37),"100"),hn(tinycolor(o).lighten(26),"200"),hn(tinycolor(o).lighten(12),"300"),hn(tinycolor(o).lighten(6),"400"),hn(tinycolor(o),"500"),hn(tinycolor(o).darken(6),"600"),hn(tinycolor(o).darken(12),"700"),hn(tinycolor(o).darken(18),"800"),hn(tinycolor(o).darken(24),"900"),hn(tinycolor(o).lighten(50).saturate(30),"A100"),hn(tinycolor(o).lighten(30).saturate(30),"A200"),hn(tinycolor(o).lighten(10).saturate(15),"A400"),hn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,s=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(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),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(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(fi),h.LFG(at),h.LFG(Y),h.LFG(gn))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function hn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let LV=(()=>{class o{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(to),h.LFG(BV),h.LFG(T.Ye))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),FV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[LI],imports:[T.ez,L0,ss,rD]}),o})(),jV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[ra,en],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),NV=(()=>{class o{constructor(e,t,a,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=a,this.dialog=l}openLinkerWindow(e,t){let a=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(a="http://localhost:4201/");let l=a+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const i=window.top,u=window.open(l,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`);let f;if(u){const H=hs();H.width="450px",H.panelClass="noBorderDialog",f=this.dialog.open(jV,H)}window.addEventListener("message",H=>{sessionStorage.setItem("linkedResult",H.data)});const b=setInterval(()=>{if(u.closed){clearInterval(b),f.close();const H=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(H)}},1e3)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Cd),h.LFG(fi),h.LFG(Hl.Ct),h.LFG(eo))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function zV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function UV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function GV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function qV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const WV=["*"];let $V=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:WV,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,zV,2,0,"mat-icon",1),h.YNc(2,UV,2,0,"mat-icon",1),h.YNc(3,GV,2,0,"mat-icon",1),h.YNc(4,qV,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[ra,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),HD=(()=>{class o{}return o.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",o.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",o.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",o.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",o.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",o.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",o.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",o.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",o.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",o.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",o.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",o.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",o.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",o.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",o.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",o.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",o.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",o.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",o.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",o.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",o.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",o.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",o.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",o.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",o.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",o.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",o.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",o})();function YV(o,r){1&o&&h._UZ(0,"mat-spinner",2)}function QV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function JV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function KV(o,r){if(1&o&&h._UZ(0,"img",18),2&o){const e=h.oxw(2);h.s9C("src",e.logo,h.LSH),h.Q6J("height",e.height)("width",e.width)}}function ZV(o,r){1&o&&h._UZ(0,"mat-icon",19)}function XV(o,r){1&o&&h._UZ(0,"mat-icon",20)}function eB(o,r){1&o&&h._UZ(0,"th",21)}function tB(o,r){if(1&o&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.name,": ")}}function iB(o,r){1&o&&h._UZ(0,"th",21)}function nB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Oqu(e.value)}}function rB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span"),h._uU(1),h.TgZ(2,"span",25),h.ALo(3,"translate"),h.TgZ(4,"button",26),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(4);return h.KtG(c.openDeleteDialog(l))}),h.TgZ(5,"mat-icon"),h._uU(6,"clear"),h.qZA()()(),h._UZ(7,"br"),h.qZA()}if(2&o){const e=r.$implicit,t=h.oxw(4);h.xp6(1),h.hij(" ",e," "),h.xp6(1),h.Q6J("matTooltip",h.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),h.xp6(2),h.Q6J("disabled",e.includes(t.idpProvider))}}function aB(o,r){if(1&o&&(h.TgZ(0,"span"),h.YNc(1,rB,8,6,"span",24),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Q6J("ngForOf",e.value)}}function oB(o,r){if(1&o&&(h.TgZ(0,"td",23),h.YNc(1,nB,2,1,"span",1),h.YNc(2,aB,2,1,"span",1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.Q6J("ngIf","Linked accounts"!==e.name),h.xp6(1),h.Q6J("ngIf","Linked accounts"===e.name)}}function sB(o,r){1&o&&h._UZ(0,"tr",27)}const lB=function(){return["name","value"]};function cB(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,QV,3,3,"span",3),h.YNc(2,JV,3,3,"span",3),h.TgZ(3,"div",4)(4,"div",5),h.YNc(5,KV,1,3,"img",6),h.YNc(6,ZV,1,0,"mat-icon",7),h.YNc(7,XV,1,0,"mat-icon",8),h.qZA(),h.TgZ(8,"div")(9,"h2",9),h._uU(10),h.qZA(),h._UZ(11,"mat-divider"),h.TgZ(12,"table",10),h.ynx(13,11),h.YNc(14,eB,1,0,"th",12),h.YNc(15,tB,2,1,"td",13),h.BQk(),h.ynx(16,14),h.YNc(17,iB,1,0,"th",12),h.YNc(18,oB,3,2,"td",15),h.BQk(),h.YNc(19,sB,1,0,"tr",16),h.qZA()()()()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("ngIf",e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.unknownIdentity),h.xp6(3),h.Q6J("ngIf",e.logo),h.xp6(1),h.Q6J("ngIf",!e.logo&&!e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.logo&&e.unknownIdentity),h.xp6(3),h.Oqu(e.idpProvider),h.xp6(2),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",h.DdM(8,lB))}}let dB=(()=>{class o{constructor(e,t,a,l,c){this.oauthService=e,this.userService=t,this.storeService=a,this.initService=l,this.dialog=c,this.idpProvider="",this.dataSource=new hC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new hC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(a=>{if(0!==a.attributes.length){const l=V_(a.attributes,HD.UES_SOURCE_IDP_NAME),c=V_(a.attributes,HD.UES_DEF_MAIL);l?.value&&e.push(`${l.value}${c?.value?" ("+c.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(a=>"Linked accounts"!==a.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new hC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const a=this.getUserLogin(e);null!=a&&""!==a&&this.info.push({name:"Login",value:a}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let a=e.info;for(const l of t)a=a[l],Array.isArray(a)&&(a=a[0]);return String(a)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const a=e.info.given_name,l=e.info.family_name;return a&&l?a+" "+l:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const a=e.info.nickname;return a&&""!==a?a:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(c=>c.attributes.forEach(n=>{"sourceIdPName"===n.baseFriendlyName&&e.includes(n.value)&&t.push(c)}));const a=hs();a.width="450px",a.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(q1,a).afterClosed().subscribe(c=>{c&&this.reloadAccounts()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Hl.Ct),h.Y36(Pr),h.Y36(fi),h.Y36(to),h.Y36(eo))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[h.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.YNc(1,YV,1,0,"mat-spinner",0),h.YNc(2,cB,20,9,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Vk,Zr,ra,_0,sC,lC,oC,b0,cC,dC,C0,Ar,r_,en],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),o})(),uB=(()=>{class o{transform(e){let t="";return e.forEach(a=>{const l=a.attributes;if(l){const c=l.sourceIdPName;c&&""!==c&&(t=t+c+", ")}}),t.slice(0,-2)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"similarIdentityFriendlyNamesString",type:o,pure:!0}),o})();function hB(o,r){1&o&&(h.TgZ(0,"perun-web-apps-alert",7),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function pB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",10)(1,"div",11),h._UZ(2,"mat-icon",12),h.TgZ(3,"div",13)(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",14),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"similarIdentityFriendlyNamesString"),h.qZA()()(),h.TgZ(10,"button",15),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(2);return h.KtG(c.openPopUp(l.identities))}),h._uU(11),h.ALo(12,"translate"),h.qZA()()}if(2&o){const e=r.$implicit;h.xp6(5),h.Oqu(e.email),h.xp6(2),h.AsE(" ",h.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",h.lcZ(9,6,e.identities)," "),h.xp6(4),h.hij(" ",h.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function fB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"h2"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"p"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,pB,13,10,"div",8),h.TgZ(8,"button",9),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.openPopUp([]))}),h._uU(9),h.ALo(10,"translate"),h.qZA()()}if(2&o){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),h.xp6(3),h.hij(" ",h.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),h.xp6(2),h.Q6J("ngForOf",e.similarIdentities),h.xp6(2),h.hij(" ",h.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function gB(o,r){1&o&&h._UZ(0,"mat-spinner",16)}let mB=(()=>{class o{constructor(e,t,a,l,c){this.storeService=e,this.initService=t,this.registrarService=a,this.router=l,this.openLinkerService=c,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(a=>{a.attributes.sourceIdPName&&t.push(a.extSource.name)}),this.openLinkerService.openLinkerWindow(a=>{"TOKEN_EXPIRED"===a?location.reload():"OK"===a?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===a&&this.router.navigate(["/result",a])},t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to),h.Y36(Yl),h.Y36(ti),h.Y36(NV))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,hB,3,3,"perun-web-apps-alert",2),h.TgZ(3,"div",3),h._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),h.TgZ(6,"div"),h.YNc(7,fB,11,10,"div",5),h.YNc(8,gB,1,0,"mat-spinner",6),h.qZA()()()()),2&e&&(h.xp6(2),h.Q6J("ngIf",t.unknownIdentity),h.xp6(2),h.Q6J("reloadData",t.reloadData),h.xp6(3),h.Q6J("ngIf",!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[T.sg,T.O5,Zr,ra,Ar,$V,dB,uB,en],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),o})();function _B(o,r){if(1&o&&(h.TgZ(0,"mat-icon",6),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",e.icon," ")}}function bB(o,r){1&o&&h._UZ(0,"mat-icon",7)}function CB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.supportMail," ")}}function yB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.userMail," ")}}function wB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,CB,2,1,"span",5),h.YNc(4,yB,2,1,"span",5),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),h.xp6(2),h.Q6J("ngIf","UNKNOWN_ERROR"===e.result),h.xp6(1),h.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.lnq(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",h.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const AB=function(o){return{"background-color":o}},xB=["*"];let TB=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[h.TTD],ngContentSelectors:xB,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0)(1,"div",1)(2,"div"),h.YNc(3,_B,2,1,"mat-icon",2),h.YNc(4,bB,1,0,"mat-icon",3),h.qZA(),h.TgZ(5,"div",4)(6,"h1"),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,wB,5,5,"h5",5),h.YNc(10,vB,4,7,"h5",5),h.qZA()(),h.Hsn(11),h.qZA()),2&e&&(h.Q6J("ngStyle",h.VKq(8,AB,t.color)),h.xp6(3),h.Q6J("ngIf","OK"!==t.result),h.xp6(1),h.Q6J("ngIf","OK"===t.result),h.xp6(3),h.hij(" ",h.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),h.xp6(2),h.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),h.xp6(1),h.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,ra,en],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();const EB=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:IV},{path:"consolidate",component:mB},{path:"result/:result",component:(()=>{class o{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Gn),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),h.NdJ("click",function(){return t.onClick()}),h._uU(4),h.ALo(5,"translate"),h.qZA()()()()),2&e&&(h.xp6(1),h.Q6J("result",t.linkerResult),h.xp6(3),h.hij(" ",h.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[Zr,TB,en],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),o})()}];let SB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Mc.forRoot(EB,{preloadingStrategy:K0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Mc]}),o})(),MB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,us,An,ss]}),o})();const DB={provide:y.TP,useExisting:(0,h.Gpc)(()=>U_),multi:!0};function HB(o){return new VV(o,"./assets/i18n/",".json")}function PB(o){const r={basePath:o.getProperty("api_url")};return new Oe(r)}const RB=o=>()=>o.loadConfigs();let IB=(()=>{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)(h.LFG(Uh),h.LFG(En))},o.\u0275mod=h.oAB({type:o,bootstrap:[mH]}),o.\u0275inj=h.cJS({providers:[Uh,{provide:h.ip1,useFactory:RB,multi:!0,deps:[LV]},{provide:Oe,useFactory:PB,deps:[fi]},U_,DB,{provide:kV,useClass:$A},{provide:Hl.Hy,useFactory:()=>localStorage}],imports:[_a,gR,y.JF,Jl,SB,L0,RV,yr,ED,A0,hd,MB,Hl.zr.forRoot(),FV,ss.forRoot({loader:{provide:xl,useFactory:HB,deps:[y.eN]}})]}),o})();(0,h.G48)(),Qe().bootstrapModule(IB).catch(o=>console.error(o))},1302:function(F,z,x){var T;!function(h,V){var O={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var V=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 O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.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},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}h.HMAC=j,h.hash=W,h.default=W,h.hmac=Q;var $=new Uint8Array(h.digestLength);h.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(z,[]))&&(F.exports=h)},9751:(F,z,x)=>{"use strict";x.d(z,{y:()=>Q});var T=x(930),h=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,h.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,z,x)=>{"use strict";x.d(z,{x:()=>W});var T=x(9751),h=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?h.Lc:(this.currentObservers=null,J.push(U),new h.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:h.Lc}}},930:(F,z,x)=>{"use strict";x.d(z,{Hp:()=>de,Lv:()=>te});var T=x(576),h=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends h.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,h.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,z,x)=>{"use strict";x.d(z,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,z,x)=>{"use strict";x.d(z,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,z,x)=>{"use strict";x.d(z,{a:()=>$});var T=x(9751),h=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,h.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,z,x)=>{"use strict";x.d(z,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function h(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,z,x)=>{"use strict";x.d(z,{E:()=>h});const h=new(x(9751).y)(I=>I.complete())},2076:(F,z,x)=>{"use strict";x.d(z,{D:()=>Ye});var T=x(8421),h=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,h.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,h.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,h.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,h.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,h.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new G.y(Te=>{let oe;return(0,h.f)(Te,Ee,()=>{oe=Se[U.h](),(0,h.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,z,x)=>{"use strict";x.d(z,{Xf:()=>ne});var T=x(655),h=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,h.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,z,x)=>{"use strict";x.d(z,{T:()=>j});var T=x(8189),h=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,h.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,z,x)=>{"use strict";x.d(z,{of:()=>V});var T=x(3269),h=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,h.D)(O,I)}},102:(F,z,x)=>{"use strict";x.d(z,{S:()=>j});var T=x(9751),h=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,h.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,z,x)=>{"use strict";x.d(z,{_:()=>V});var T=x(9751),h=x(576);function V(O,I){const j=(0,h.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,z,x)=>{"use strict";x.d(z,{H:()=>I});var T=x(9751),h=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=h.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,z,x)=>{"use strict";x.d(z,{x:()=>h});var T=x(930);function h(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,z,x)=>{"use strict";x.d(z,{K:()=>O});var T=x(8421),h=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,h.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,z,x)=>{"use strict";x.d(z,{b:()=>V});var T=x(5577),h=x(576);function V(O,I){return(0,h.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,z,x)=>{"use strict";x.d(z,{b:()=>O});var T=x(4986),h=x(4482),V=x(5403);function O(I,j=T.z){return(0,h.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Q.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,z,x)=>{"use strict";x.d(z,{d:()=>V});var T=x(4482),h=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,h.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,z,x)=>{"use strict";x.d(z,{g:()=>te});var T=x(4986),h=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,h.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,J=T.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,z,x)=>{"use strict";x.d(z,{P:()=>W});var T=x(6805),h=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,h.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,z,x)=>{"use strict";x.d(z,{U:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});var T=x(4004);function h(V){return(0,T.U)(()=>V)}},8189:(F,z,x)=>{"use strict";x.d(z,{J:()=>V});var T=x(5577),h=x(4671);function V(O=1/0){return(0,T.z)(h.y,O)}},5577:(F,z,x)=>{"use strict";x.d(z,{z:()=>Q});var T=x(4004),h=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,h.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,h.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,z,x)=>{"use strict";x.d(z,{B:()=>I});var T=x(8421),h=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new h.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,G,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,z,x)=>{"use strict";x.d(z,{w:()=>O});var T=x(8421),h=x(4482),V=x(5403);function O(I,j){return(0,h.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,z,x)=>{"use strict";x.d(z,{q:()=>O});var T=x(515),h=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,h.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,z,x)=>{"use strict";x.d(z,{b:()=>I});var T=x(576),h=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,h.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,z,x)=>{"use strict";x.d(z,{T:()=>O});var T=x(6805),h=x(4482),V=x(5403);function O(j=I){return(0,h.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,z,x)=>{"use strict";x.d(z,{V:()=>G});var T=x(4986),h=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,h.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Q(U)}},4408:(F,z,x)=>{"use strict";x.d(z,{o:()=>I});var T=x(727);class h extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends h{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,z,x)=>{"use strict";x.d(z,{v:()=>V});var T=x(6063);class h{constructor(I,j=h.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}h.now=T.l.now;class V extends h{constructor(I,j=h.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,z,x)=>{"use strict";x.d(z,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,z,x)=>{"use strict";x.d(z,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T={setTimeout(h,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(h,V,...O):setTimeout(h,V,...O)},clearTimeout(h){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});const h=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,z,x)=>{"use strict";x.d(z,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});const h=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,z,x)=>{"use strict";x.d(z,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),h=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,h.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,z,x)=>{"use strict";x.d(z,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:h,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&h(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,z,x)=>{"use strict";function T(h,V){if(h){const O=h.indexOf(V);0<=O&&h.splice(O,1)}}x.d(z,{P:()=>T})},3888:(F,z,x)=>{"use strict";function T(h){const O=h(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(z,{d:()=>T})},1810:(F,z,x)=>{"use strict";function T(h,V){return h.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(z,{n:()=>T})},2806:(F,z,x)=>{"use strict";x.d(z,{O:()=>O,x:()=>V});var T=x(2416);let h=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!h;if(j&&(h={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=h;if(h=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=I)}},9672:(F,z,x)=>{"use strict";function T(h,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?h.add(this.schedule(null,I)):this.unsubscribe()},I);if(h.add(W),!j)return W}x.d(z,{f:()=>T})},4671:(F,z,x)=>{"use strict";function T(h){return h}x.d(z,{y:()=>T})},1144:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(F,z,x)=>{"use strict";x.d(z,{D:()=>h});var T=x(576);function h(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,z,x)=>{"use strict";function T(h){return h instanceof Date&&!isNaN(h)}x.d(z,{q:()=>T})},576:(F,z,x)=>{"use strict";function T(h){return"function"==typeof h}x.d(z,{m:()=>T})},3670:(F,z,x)=>{"use strict";x.d(z,{c:()=>V});var T=x(8822),h=x(576);function V(O){return(0,h.m)(O[T.L])}},6495:(F,z,x)=>{"use strict";x.d(z,{T:()=>V});var T=x(2202),h=x(576);function V(O){return(0,h.m)(O?.[T.h])}},8239:(F,z,x)=>{"use strict";x.d(z,{t:()=>h});var T=x(576);function h(V){return(0,T.m)(V?.then)}},3260:(F,z,x)=>{"use strict";x.d(z,{L:()=>O,Q:()=>V});var T=x(655),h=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,h.m)(I?.getReader)}},3532:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});var T=x(576);function h(V){return V&&(0,T.m)(V.schedule)}},4482:(F,z,x)=>{"use strict";x.d(z,{A:()=>h,e:()=>V});var T=x(576);function h(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(h(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,z,x)=>{"use strict";x.d(z,{Z:()=>O});var T=x(4004);const{isArray:h}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return h(j)?I(...j):I(j)}(I,j))}},5032:(F,z,x)=>{"use strict";function T(){}x.d(z,{Z:()=>T})},9635:(F,z,x)=>{"use strict";x.d(z,{U:()=>V,z:()=>h});var T=x(4671);function h(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(2416),h=x(3410);function V(O){h.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,z,x)=>{"use strict";function T(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>T})},655:(F,z,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ei){try{Le(ue.next(Ei))}catch(Rn){ot(Rn)}}function It(Ei){try{Le(ue.throw(Ei))}catch(Rn){ot(Rn)}}function Le(Ei){Ei.done?Me(Ei.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ei.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(pn,oi){Me.push([Ut,Dt,pn,oi])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function It(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Ei):Rn(Me[0][2],Ut)}(ue[Ut](Dt))}catch(pn){Rn(Me[0][3],pn)}}function Le(Ut){Tt("next",Ut)}function Ei(Ut){Tt("throw",Ut)}function Rn(Ut,Dt){Ut(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(z,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,z,x)=>{"use strict";x.d(z,{Do:()=>Be,EM:()=>Aa,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>Yl,NF:()=>Ms,O5:()=>Hi,Ov:()=>nf,PC:()=>tf,RF:()=>Rr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ei,ez:()=>_n,mk:()=>Ql,n9:()=>Ji,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let h=null;function V(){return h}function I(M){h||(h=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Yl(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Ql=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,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 D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Pr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new Pr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),_i(Ue,ee)}});for(let ee=0,pe=B.length;ee{_i(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function _i(M,k){M.context.$implicit=k.item}let Hi=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new rn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Es("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Es("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class rn{constructor(){this.$implicit=null,this.ngIf=null}}function Es(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class va{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 Rr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new va(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Rr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),tf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class TC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class EC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const SC=new EC,MC=new TC;let nf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return SC;if((0,T.F4k)(D))return MC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ei="browser";function Ms(M){return M===ei}let Aa=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,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 D=function on(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=vi(this.window.history)||vi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function vi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,z,x)=>{"use strict";x.d(z,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),h=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeQi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Zt=Object.keys(Y.setParams).reduce((Qi,tt)=>Qi.set(tt,Y.setParams[tt]),Zt)),new Ee(q,ce,et,{params:Zt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Zt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Zt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Zt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(Q))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new h.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const go=/^\)\]\}',?\n/;let mo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),nn=function Ud(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:nn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:nn,url:Er}=Ne(),gi=null;204!==kt&&(gi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=gi?200:0);let Sr=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof gi){const Mr=gi;gi=gi.replace(go,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ba){gi=Mr,Sr&&(Sr=!1,gi={error:ba,text:gi})}}Sr?(ce.next(new fe({body:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0})),ce.complete()):ce.error(new ue({error:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0}))},Zt=Ht=>{const{url:kt}=Ne(),nn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(nn)};let vt=!1;const Qi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Zt),xe.addEventListener("timeout",Zt),xe.addEventListener("abort",Zt),q.reportProgress&&(xe.addEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Zt),xe.removeEventListener("abort",Zt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Zt),q.reportProgress&&(xe.removeEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.JF))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new h.OlP("XSRF_COOKIE_NAME"),kn=new h.OlP("XSRF_HEADER_NAME");class ga{}let _o=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.K0),h.LFG(h.Lbi),h.LFG(In))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(ga),h.LFG(kn))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ui=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(G),h.LFG(h.zs3))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),_a=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:ga,useClass:_o},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Me,{provide:Q,useClass:ui},mo,{provide:G,useExisting:mo}],imports:[_a.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,z,x)=>{"use strict";x.d(z,{$8M:()=>dc,$Z:()=>Lw,AFp:()=>ap,ALo:()=>jA,AaK:()=>Q,AsE:()=>Zm,BQk:()=>hh,CHM:()=>Pi,CRH:()=>sa,CZH:()=>ms,CqO:()=>Sm,D6c:()=>VS,DdM:()=>IA,Dn7:()=>UA,EJc:()=>Dd,EiD:()=>Zf,EpF:()=>Zo,F$t:()=>Rm,F4k:()=>nd,FYo:()=>$y,FiY:()=>Ho,G48:()=>wb,Gf:()=>QA,GfV:()=>Jy,GkF:()=>td,Gpc:()=>U,Hsn:()=>Im,Ikx:()=>s_,JOm:()=>pr,JVY:()=>xy,KtG:()=>Fn,L6k:()=>Ty,LAX:()=>pu,LFG:()=>li,LSH:()=>wu,Lbi:()=>ab,Lck:()=>xA,MAs:()=>dh,MMx:()=>ds,NdJ:()=>ph,O4$:()=>hf,OlP:()=>At,Oqu:()=>Km,PXZ:()=>fx,Q6J:()=>Fe,QGY:()=>id,QP$:()=>no,QbO:()=>_S,Qsj:()=>Yy,R0b:()=>un,RDi:()=>by,Rgc:()=>md,SBq:()=>Yr,Sil:()=>up,Suo:()=>Wh,TTD:()=>Yt,TgZ:()=>_t,Tol:()=>$m,Udp:()=>qm,VKq:()=>kA,WFA:()=>fh,WLB:()=>VA,XFs:()=>Qe,Xpm:()=>nn,Xts:()=>Au,Y36:()=>ol,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Hb,_Bn:()=>H_,_UZ:()=>Ko,_Vd:()=>La,_c5:()=>Hx,_uU:()=>Vv,aQg:()=>Pb,c2e:()=>bS,cJS:()=>oi,cg1:()=>vh,d8E:()=>l_,dDg:()=>ub,dqk:()=>ce,eBb:()=>Ey,eFA:()=>vp,ekj:()=>Wm,eoX:()=>Cp,f3M:()=>Pf,g9A:()=>op,h0i:()=>cs,hGG:()=>kS,hij:()=>yh,iGM:()=>YA,ifc:()=>q,ip1:()=>gs,kL8:()=>nA,kcU:()=>pf,lG2:()=>qd,lcZ:()=>NA,lnq:()=>Xm,lqb:()=>Ai,lri:()=>bs,mCW:()=>Qs,n5z:()=>tu,n_E:()=>Nh,oAB:()=>Mr,oJD:()=>Xf,oxw:()=>Pm,pB0:()=>Wf,q3G:()=>ii,qLn:()=>kc,qOj:()=>Zc,qZA:()=>uh,qzn:()=>Ba,rWj:()=>bp,s9C:()=>gh,sBO:()=>Ab,sIi:()=>pl,s_b:()=>zh,soG:()=>lp,tb:()=>sp,tp0:()=>ka,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xDo:()=>is,xi3:()=>zA,xp6:()=>Vu,ynx:()=>Ja,z2F:()=>Bl,z3N:()=>qn,zSh:()=>rg,zs3:()=>Yn});var T=x(7579),h=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function G(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function U(p){return p.__forward_ref__=U,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function It(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function oi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Tr(p){return ql(p,In)||ql(p,ga)}function ql(p,g){return p.hasOwnProperty(g)?p[g]:null}function mo(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(_o))?p[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ga=j({ngInjectableDef:j}),_o=j({ngInjectorDef:j});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 ui;function Si(p){const g=ui;return ui=p,g}function _a(p,g,m){const _=Tr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(p))}function fn(p){return{toString:p}.toString()}var yi=(()=>((yi=yi||{})[yi.OnPush=0]="OnPush",yi[yi.Default=1]="Default",yi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Zt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Qi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function nn(p){return fn(()=>{const m=!0===p.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===yi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+kt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=bo(p.inputs,_),C.outputs=bo(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Sr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Di).filter(Sr):null,C})}function gi(p){return Et(p)||Mi(p)}function Sr(p){return null!==p}function Mr(p){return fn(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function bo(p,g){if(null==p)return ct;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const qd=nn;function Wl(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Mi(p){return p[Zt]||null}function Di(p){return p[vt]||null}function Ni(p,g){const m=p[Qi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return m}function Hi(p){return Array.isArray(p)&&"object"==typeof p[1]}function rn(p){return Array.isArray(p)&&!0===p[1]}function Es(p){return 0!=(8&p.flags)}function va(p){return 2==(2&p.flags)}function Rr(p){return 1==(1&p.flags)}function Ji(p){return null!==p.template}function Xp(p){return 0!=(256&p[2])}function De(p,g){return p.hasOwnProperty(tt)?p[tt]:null}class He{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Yt(){return Ss}function Ss(p){return p.type.prototype.ngOnChanges&&(p.setInput=kr),Ir}function Ir(){const p=Ln(this),g=p?.current;if(g){const m=p.previous;if(m===ct)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function kr(p,g,m,_){const C=Ln(p)||function Vr(p,g){return p[Vi]=g}(p,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new He(S&&S.currentValue,g,v===ct),p[_]=g}Yt.ngInherit=!0;const Vi="__ngSimpleChanges__";function Ln(p){return p[Vi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function Aa(p,g){return ze(g[p])}function Vt(p,g){return ze(g[p.index])}function on(p,g){return p.data[g]}function Ui(p,g){return p[g]}function Ct(p,g){const m=g[p];return Hi(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(p){return le.lFrame.contextLView=p,p[8]}function Fn(p){return le.lFrame.contextLView=null,p}function qt(){let p=xa();for(;null!==p&&64===p.type;)p=p.parent;return p}function xa(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function bn(){return le.lFrame.isParent}function Ds(){le.lFrame.isParent=!1}function Oi(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function jn(){return le.lFrame.bindingIndex}function Ea(){return le.lFrame.bindingIndex++}function Nn(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,$d(g)}function $d(p){le.lFrame.currentDirectiveIndex=p}function sr(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function lf(){return le.lFrame.currentQueryIndex}function Xl(p){le.lFrame.currentQueryIndex=p}function Yd(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function cf(p,g,m){if(m&Qe.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=Ao();return _.currentTNode=g,_.lView=p,!0}function vo(p){const g=Ao(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function Ao(){const p=le.lFrame,g=null===p?null:p.child;return null===g?Qd(p):g}function Qd(p){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function Rs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const df=Rs;function Is(){const p=Rs();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 Ri(){return le.lFrame.selectedIndex}function Or(p){le.lFrame.selectedIndex=p}function Jt(){const p=le.lFrame;return on(p.tView,p.selectedIndex)}function hf(){le.lFrame.currentNamespace="svg"}function pf(){!function BC(){le.lFrame.currentNamespace=null}()}function ic(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function xo(p,g,m){Lr(p,g,3,m)}function Sa(p,g,m,_){(3&p[2])===m&&Lr(p,g,m,_)}function Jd(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function Lr(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ks{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function cr(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function Bs(p){const g=Zd;return Zd=p,g}let jr=0;const Ki={};function Os(p,g){const m=eu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,Xd(_.data,p),Xd(g,null),Xd(_.blueprint,null));const C=ac(p,g),w=p.injectorIndex;if(nc(C)){const v=zn(C),E=Fr(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function Xd(p,g){p.push(0,0,0,0,0,0,0,0,g)}function eu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function ac(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=Gn(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function oc(p,g,m){!function bf(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=jr++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Eo:g}(m);if("function"==typeof w){if(!cf(g,p,_))return _&Qe.Host?Cf(C,0,_):yf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{df()}}else if("number"==typeof w){let v=null,E=eu(p,g),S=-1,P=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?ac(p,g):g[E+8],-1!==S&&lc(_,!1)?(v=g[1],E=zn(S),g=Fr(S,g)):E=-1);-1!==E;){const R=g[1];if(sc(w,E,R.data)){const L=WC(E,g,m,v,_,P);if(L!==Ki)return L}S=g[E+8],-1!==S&&lc(_,g[1].data[E+8]===P)&&sc(w,E,g)?(v=R,E=zn(S),g=Fr(S,g)):E=-1}}return C}function WC(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Ls(E,v,m,null==_?va(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Fs(g,v,R,E):Ki}function Ls(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Ji(re)&&re.type===m)return S}return null}function Fs(p,g,m,_){let C=p[m];const w=g.data;if(function FC(p){return p instanceof ks}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=Bs(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Si(v.injectImpl):null;cf(p,_,Qe.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function LC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Ss(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Si(S),Bs(E),v.resolving=!1,df()}}return C}function sc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[tt]||cc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||cc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function cc(p){return ne(p)?()=>{const g=cc(te(p));return g&&g()}:De(p)}function Gn(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function dc(p){return function qC(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(gf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const dr="__parameters__";function Nr(p,g,m){return fn(()=>{const _=function hc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?zr(m,g):g(m))}function ey(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function ru(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Pa(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function iy(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function ou(p,g){const m=Mo(p,g);if(m>=0)return p[1|m]}function Mo(p,g){return function zs(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return yc}()?.createHTML(p)||p}function Uf(p){return function vc(){if(void 0===Ys&&(Ys=null,ce.trustedTypes))try{Ys=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Ys}()?.createHTML(p)||p}class Va{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yy extends Va{getTypeName(){return"HTML"}}class wy extends Va{getTypeName(){return"Style"}}class vy extends Va{getTypeName(){return"Script"}}class qf extends Va{getTypeName(){return"URL"}}class hu extends Va{getTypeName(){return"ResourceURL"}}function qn(p){return p instanceof Va?p.changingThisBreaksApplicationSecurity:p}function Ba(p,g){const m=function Ay(p){return p instanceof Va&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function xy(p){return new yy(p)}function Ty(p){return new wy(p)}function Ey(p){return new vy(p)}function pu(p){return new qf(p)}function Wf(p){return new hu(p)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ro(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class Sy{constructor(g){if(this.defaultDoc=g,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(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ro(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ro(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0Qs(g.trim())).join(", ")),this.buf.push(" ",v,'="',Cu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();_u.hasOwnProperty(m)&&!ti.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(Cu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const Z0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kf=/([^\#-~ |!])/g;function Cu(p){return p.replace(/&/g,"&").replace(Z0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Kf,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function Zf(p,g){let m=null;try{Sc=Sc||function xc(p){const g=new Sy(p);return function My(){try{return!!(new window.DOMParser).parseFromString(Ro(""),"text/html")}catch{return!1}}()?new fu(g):g}(p);let _=g?String(g):"";m=Sc.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=Sc.getInertBodyElement(_)}while(_!==w);return Ro((new qr).sanitizeChildren(yu(m)||m))}finally{if(m){const _=yu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function yu(p){return"content"in p&&function Mc(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ii=(()=>((ii=ii||{})[ii.NONE=0]="NONE",ii[ii.HTML=1]="HTML",ii[ii.STYLE=2]="STYLE",ii[ii.SCRIPT=3]="SCRIPT",ii[ii.URL=4]="URL",ii[ii.RESOURCE_URL=5]="RESOURCE_URL",ii))();function Xf(p){const g=Js();return g?Uf(g.sanitize(ii.HTML,p)||""):Ba(p,"HTML")?Uf(qn(p)):Zf(function jf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(p))}function wu(p){const g=Js();return g?g.sanitize(ii.URL,p)||"":Ba(p,"URL")?qn(p):Qs(he(p))}function Js(){const p=be();return p&&p[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),ng=new At("INJECTOR",-1),By=new At("INJECTOR_DEF_TYPES");class Dc{get(g,m=Gs){if(m===Gs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ci(...p){return{\u0275providers:Oy(0,p)}}function Oy(p,...g){const m=[],_=new Set;let C;return zr(g,w=>{const v=w;Hc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&Oa(C,m),m}function Oa(p,g){for(let m=0;m{g.push(w)})}}function Hc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=mo(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=mo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Hc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{zr(w.imports,R=>{Hc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&Oa(P,g)}if(!E){const P=De(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:By,useValue:C,multi:!0},{provide:Au,useValue:()=>li(C),multi:!0})}const S=w.providers;null==S||E||zr(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const Ks=j({provide:String,useValue:j});function xu(p){return null!==p&&"object"==typeof p&&Ks in p}function Zi(p){return"function"==typeof p}const rg=new At("Set Injector scope."),ko={},jy={};let Vo;function Bo(){return void 0===Vo&&(Vo=new Dc),Vo}class Ai{}class Pc extends Ai{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sg(g,v=>this.processProvider(v)),this.records.set(ng,Wr(void 0,this)),C.has("environment")&&this.records.set(Ai,Wr(void 0,this));const w=this.records.get(rg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(By.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Si(void 0);try{return g()}finally{ur(m),Si(_)}}get(g,m=Gs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Si(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Gy(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&Tr(g);E=S&&this.injectableDefInScope(S)?Wr(ag(g),ko):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?Bo():this.parent).get(g,m=_&Qe.Optional&&m===Gs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[gc]=v[gc]||[]).unshift(Q(g)),C)throw v;return function uy(p,g,m,_){const C=p[gc];throw g[Df]&&C.unshift(g[Df]),p.message=function hy(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(cy,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[gc]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Si(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Si(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Si(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Zi(g=te(g))?g:te(g&&g.provide);const _=function og(p){return xu(p)?Wr(void 0,p.useValue):Wr(Ny(p),ko)}(g);if(Zi(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Wr(void 0,ko,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===ko&&(m.value=jy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Uy(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ag(p){const g=Tr(p),m=null!==g?g.factory:De(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Tu(p){const g=p.length;if(g>0)throw Pa(g,"?"),new ie(204,!1);const m=function go(p){const g=p&&(p[In]||p[ga]);if(g){const m=function Ud(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);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.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function Ny(p,g,m){let _;if(Zi(p)){const C=te(p);return De(C)||ag(C)}if(xu(p))_=()=>te(p.useValue);else if(function Zs(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...lu(p.deps||[]));else if(function yn(p){return!(!p||!p.useExisting)}(p))_=()=>li(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function zy(p){return!!p.deps}(p))return De(C)||ag(C);_=()=>new C(...lu(p.deps))}return _}function Wr(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function eT(p){return!!p.\u0275providers}function sg(p,g){for(const m of p)Array.isArray(m)?sg(m,g):eT(m)?sg(m.\u0275providers,g):g(m)}class Ic{}class Wy{resolveComponentFactory(g){throw function tT(p){const g=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let La=(()=>{class p{}return p.NULL=new Wy,p})();function Eu(){return $r(qt(),be())}function $r(p,g){return new Yr(Vt(p,g))}let Yr=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Eu,p})();function nT(p){return p instanceof Yr?p.nativeElement:p}class $y{}let Yy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Qy(){const p=be(),m=Ct(qt().index,p);return(Hi(m)?m:p)[11]}(),p})(),rT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class Jy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const aT=new Jy("14.1.2"),lg={};function pg(p){return p.ngOriginalError}class kc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&pg(g);for(;m&&pg(m);)m=pg(m);return m||null}}const fg=new Map;let bT=0;const mg="__ngContext__";function Li(p,g){Hi(g)?(p[mg]=g[20],function yT(p){fg.set(p[20],p)}(g)):p[mg]=g}function Vc(p){const g=p[mg];return"number"==typeof g?function nw(p){return fg.get(p)||null}(g):g||null}function _g(p){const g=Vc(p);return g?Hi(g)?g:g.lView:null}const ST=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function Qr(p){return p instanceof Function?p():p}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Cg(p,g){return undefined(p,g)}function Bc(p){const g=p[3];return rn(g)?g[3]:g}function yg(p){return pw(p[13])}function wg(p){return pw(p[4])}function pw(p){for(;null!==p&&!rn(p);)p=p[4];return p}function el(p,g,m,_,C){if(null!=_){let w,v=!1;rn(_)?w=_:Hi(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?it(g,m,E):ft(g,m,E,C||null,!0):1===p&&null!==m?ft(g,m,E,C||null,!0):2===p?function Dg(p,g,m){const _=Wt(p,g);_&&function Sg(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Rg(p,g,m,_,C){const w=m[7];w!==ze(m)&&el(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=ru(p,10+g);!function OT(p,g){Lo(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $n(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Lo(p,g,m,3,null,null),function jT(p){let g=p[13];if(!g)return tl(p[1],p);for(;g;){let m=null;if(Hi(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Hi(g)&&tl(g[1],g),g=g[3];null===g&&(g=p),Hi(g)&&tl(g[1],g),m=g&&g[4]}g=m}}(g)}}function tl(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function mw(p,g){let m;if(null!=p&&null!=(m=p.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++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&rn(g[3])){m!==g[3]&&gw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function rw(p){fg.delete(p[20])}(g)}}function Tg(p,g,m){return function Eg(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(p,g.parent,m)}function ft(p,g,m,_,C){p.insertBefore(g,m,_,C)}function it(p,g,m){p.appendChild(g,m)}function ln(p,g,m,_,C){null!==_?ft(p,g,m,_,C):it(p,g,m)}function Wt(p,g){return p.parentNode(g)}function _w(p,g,m){return Mg(p,g,m)}let Mg=function Du(p,g,m){return 40&p.type?Vt(p,m):null};function Hu(p,g,m,_){const C=Tg(p,_,g),w=g[11],E=_w(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Cw(re,P,0)||2&_&&P!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(p){return 0==(1&p)}function UT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Bg(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Bg(w,C)),g}const st={};function Vu(p){Bu(ut(),be(),Ri()+p,!1)}function Bu(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&xo(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Sa(g,w,0,m)}Or(m)}function Dw(p,g=null,m=null,_){const C=Hw(p,g,m,_);return C.resolveInjectorInitializers(),C}function Hw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,ci(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Pc(w,g||Bo(),_||null,C)}let Yn=(()=>{class p{static create(m,_){if(Array.isArray(m))return Dw({name:""},_,m,"");{const C=m.name??"";return Dw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=Gs,p.NULL=new Dc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>li(ng)}),p.__NG_ELEMENT_ID__=-1,p})();function ol(p,g=Qe.Default){const m=be();return null===m?li(p,g):wf(qt(),m,te(p),g)}function Lw(){throw new Error("invalid")}function zc(p,g){return p<<17|g<<2}function vn(p){return p>>17&32767}function We(p){return 2|p}function Kr(p){return(131068&p)>>2}function qg(p,g){return-131069&p|g<<2}function ja(p){return 1|p}function Zw(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&Bu(p,g,22,!1),m(_,C)}finally{Or(w)}}function An(p,g,m){if(Es(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function dm(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function um(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function Qc(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&gm(m)}}function gm(p){for(let _=yg(p);null!==_;_=wg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];cl(v,w,v.template,w[8])}else w[5]>0&&gm(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&gm(C)}}function dE(p,g){const m=Ct(g,p),_=m[1];(function ov(p,g){for(let m=g.length;mPromise.resolve(null))();function cv(p){return p[7]||(p[7]=[])}function dv(p){return p.cleanup||(p.cleanup=[])}function Jn(p,g,m){return(null===p||Ji(p))&&(m=function Bi(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function Ua(p,g){const m=p[9],_=m?m.get(kc,null):null;_&&_.handleError(g)}function Cm(p,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}$n(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _m(p,g,m){const _=g[10];_.begin&&_.begin();try{cl(p,g,p.template,m)}catch(C){throw Ua(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FT(p,g){Lo(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class hE extends Kc{constructor(g){super(g),this._view=g}detectChanges(){lv(this._view)}checkNoChanges(){}get context(){return null}}class ul extends La{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new Ga(m,this.ngModule)}}function hl(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class uv{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,lg,_);return C!==lg||m===lg?C:this.parentInjector.get(g,m,_)}}class Ga extends Ic{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function xw(p){return p.map(Aw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return hl(this.componentDef.inputs)}get outputs(){return hl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof Ai?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new uv(g,w):g,E=v.get($y,null);if(null===E)throw new ie(407,!1);const S=v.get(rT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function $c(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Ag(E.createRenderer(null,this.componentDef),R,function oh(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function _E(p,g){return{components:[],scheduler:p||ST,clean:uE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=qc(null,me,re,X,null,null,E,P,S,v,null);let Pe,je;vo(Ae);try{const Ze=function mE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=Uo(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(rh(S,P,!0),null!==p&&(cr(C,p,P),null!==S.classes&&Fo(C,p,S.classes),null!==S.styles&&Ig(C,p,S.styles)));const R=_.createRenderer(p,g),L=qc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(oc(Os(S,m),v,g.type),um(v,S),hm(S,m.length,1)),dl(m,L),m[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)cr(P,L,["ng-version",aT.full]);else{const{attrs:ye,classes:$e}=function Tw(p){const g=[],m=[];let _=1,C=2;for(;_0&&Fo(P,L,$e.join(" "))}if(je=on(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Vs(C.hostAttrs,m=Vs(m,C.hostAttrs))}}(_)}function ym(p){return p===ct?{}:p===Ne?[]:p}function pv(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function wm(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function lh(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Wo=null;function $o(){if(!Wo){const p=ce.Symbol;if(p&&p.iterator)Wo=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function vv(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Hm(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=Hm(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const Pe=Ae.length;if(Pe)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function Av(p,g){let m=null;const _=function GT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}const pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rd(p){return p.substring(pi.key,pi.keyEnd)}function Ev(p,g){const m=pi.textEnd;return m===g?-1:(g=pi.keyEnd=function zm(p,g,m){for(;g32;)g++;return g}(p,pi.key=g,m),Xo(p,g,m))}function Xo(p,g,m){for(;g=0;m=Ev(g,m))qi(p,rd(g),!0)}function Zn(p,g,m,_){const C=be(),w=ut(),v=Nn(2);w.firstUpdatePass&&Rv(w,p,v,_),g!==st&&di(C,v,g)&&kv(w,w.data[Ri()],C,C[11],p,C[v+1]=function DE(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Q(qn(p)))),p}(g,m),_,v)}function Pv(p,g){return g>=p.expandoStartIndex}function Rv(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Ri()],v=Pv(p,m);Jm(w,_)&&null===g&&!v&&(g=!1),g=function AE(p,g,m,_){const C=sr(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=ts(m=Ym(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=Ym(C,p,g,m,_),null===w){let S=function xE(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Kr(_))return p[vn(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=Ym(null,p,g,S[1],_),S=ts(S,g.attrs,_),function TE(p,g,m,_){p[vn(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function EE(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=vn(p[E+1]);p[_+1]=zc(X,E),0!==X&&(p[X+1]=qg(p[X+1],_)),p[E+1]=function Fw(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=zc(E,0),0!==E&&(p[E+1]=qg(p[E+1],_)),E=_;else p[_+1]=zc(S,0),0===E?E=_:p[S+1]=qg(p[S+1],_),S=_;P&&(p[_+1]=We(p[_+1])),jm(p,R,_,!0),jm(p,R,_,!1),function vE(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&Mo(w,g)>=0&&(m[_+1]=ja(m[_+1]))}(g,R,p,_,w),v=zc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}function Ym(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(P&&!ad(re)&&(re=ou(S,_)),ad(re)&&(E=re,v))return E;const me=p[C+1];C=v?vn(me):Kr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function ad(p){return void 0!==p}function Jm(p,g){return 0!=(p.flags&(g?16:32))}function Vv(p,g=""){const m=be(),_=ut(),C=p+22,w=_.firstCreatePass?Uo(_,C,1,g,null):_.data[C],v=m[C]=function vg(p,g){return p.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function Km(p){return yh("",p,""),Km}function yh(p,g,m){const _=be(),C=Wa(_,p,g,m);return C!==st&&Xr(_,Ri(),C),yh}function Zm(p,g,m,_,C){const w=be(),v=function fl(p,g,m,_,C,w){const E=ia(p,jn(),m,C);return Nn(2),E?g+he(m)+_+he(C)+w:st}(w,p,g,m,_,C);return v!==st&&Xr(w,Ri(),v),Zm}function Xm(p,g,m,_,C,w,v){const E=be(),S=function gl(p,g,m,_,C,w,v,E){const P=ed(p,jn(),m,C,v);return Nn(3),P?g+he(m)+_+he(C)+w+he(v)+E:st}(E,p,g,m,_,C,w,v);return S!==st&&Xr(E,Ri(),S),Xm}function is(p,g,m,_,C,w,v,E,S,P,R){const L=be(),X=Yo(L,p,g,m,_,C,w,v,E,S,P,R);return X!==st&&Xr(L,Ri(),X),is}function s_(p,g,m){const _=be();return di(_,Ea(),g)&&xi(ut(),Jt(),_,p,g,_[11],m,!0),s_}function l_(p,g,m){const _=be();if(di(_,Ea(),g)){const w=ut(),v=Jt();xi(w,v,_,p,g,Jn(sr(w.data),v,_),m,!0)}return l_}const er=void 0;var tA=["en",[["a","p"],["AM","PM"],er],[["AM","PM"],er,er],[["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"]],er,[["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"]],er,[["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}",er,"{1} 'at' {0}",er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function c_(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ns={};function vh(p){const g=function kE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=rA(g);if(m)return m;const _=g.split("-")[0];if(m=rA(_),m)return m;if("en"===_)return tA;throw new ie(701,!1)}function nA(p){return vh(p)[Ke.PluralCase]}function rA(p){return p in ns||(ns[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),ns[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const bl="en-US";let d_=bl;function Bh(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(Zi(p)||!p.multi){const re=new ks(S,C,ol),me=Lh(E,g,C?R:R+X,L);-1===me?(oc(Os(P,v),w,E),Oh(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Lh(E,g,R+X,L),me=Lh(E,g,R,R+X),Ae=re>=0&&m[re],Pe=me>=0&&m[me];if(C&&!Pe||!C&&!Ae){oc(Os(P,v),w,E);const je=function UE(p,g,m,_,C){const w=new ks(p,m,ol);return w.multi=[],w.index=g,w.componentProviders=0,Xa(w,C,_&&!m),w}(C?AA:D_,m.length,C,_,S);!C&&Pe&&(m[me].providerFactory=je),Oh(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else Oh(w,p,re>-1?re:me,Xa(m[C?me:re],S,!C&&_));!C&&_&&Pe&&m[me].componentProviders++}}}function Oh(p,g,m,_){const C=Zi(g),w=function Fy(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Xa(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function Lh(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function D_(p,g,m,_){return pd(this.multi,[])}function AA(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Fs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),pd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(p,g,m){const _=ut();if(_.firstCreatePass){const C=Ji(p);Bh(m,_.data,_.blueprint,C,!0),Bh(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class cs{}class P_{}function xA(p,g){return new R_(p,g??null)}class R_ extends cs{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const _=Ni(g);this._bootstrapComponents=Qr(_.bootstrap),this._r3Injector=Hw(g,m,[{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class Fh extends cs{constructor(g,m,_){super(),this.componentFactoryResolver=new ul(this),this.instance=null;const C=new Pc([...g,{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],m||Bo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function ds(p,g,m=null){return new Fh(p,g,m).injector}function IA(p,g,m){const _=Oi()+p,C=be();return C[_]===st?Kn(C,_,m?g.call(m):g()):function ta(p,g){return p[g]}(C,_)}function kA(p,g,m,_){return B_(be(),Oi(),p,g,m,_)}function VA(p,g,m,_,C){return O_(be(),Oi(),p,g,m,_,C)}function fd(p,g){const m=p[g];return m===st?void 0:m}function B_(p,g,m,_,C,w){const v=g+m;return di(p,v,C)?Kn(p,v+1,w?_.call(w,C):_(C)):fd(p,v+1)}function O_(p,g,m,_,C,w,v){const E=g+m;return ia(p,E,C,w)?Kn(p,E+2,v?_.call(v,C,w):_(C,w)):fd(p,E+2)}function jA(p,g){const m=ut();let _;const C=p+22;m.firstCreatePass?(_=function eS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Si(ol);try{const E=Bs(!1),S=w();return Bs(E),function Em(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Si(v)}}function NA(p,g,m){const _=p+22,C=be(),w=Ui(C,_);return gd(C,_)?B_(C,Oi(),g,w.transform,m,w):w.transform(m)}function zA(p,g,m,_){const C=p+22,w=be(),v=Ui(w,C);return gd(w,C)?O_(w,Oi(),g,v.transform,m,_,v):v.transform(m,_)}function UA(p,g,m,_,C){const w=p+22,v=be(),E=Ui(v,w);return gd(v,w)?function L_(p,g,m,_,C,w,v,E){const S=g+m;return ed(p,S,C,w,v)?Kn(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):fd(p,S+3)}(v,Oi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function gd(p,g){return p[1].data[g].pure}function F_(p){return g=>{setTimeout(p,void 0,g)}}const wr=class iS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=F_(w),C&&(C=F_(C)),v&&(v=F_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof h.w0&&g.add(E),E}};function nS(){return this._results[$o()]()}class Nh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=$o(),_=Nh.prototype;_[m]||(_[m]=nS)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=sn(g);(this._changesDetected=!function Ef(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=aS,p})();const rS=md,j_=class extends rS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=qc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Wc(_,C,g),new Kc(C)}};function aS(){return _d(qt(),be())}function _d(p,g){return 4&p.type?new j_(g,p,$r(p,g)):null}let zh=(()=>{class p{}return p.__NG_ELEMENT_ID__=oS,p})();function oS(){return fi(qt(),be())}const sS=zh,qA=class extends sS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return $r(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=ac(this._hostTNode,this._hostLView);if(nc(g)){const m=Fr(g,this._hostLView),_=zn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=WA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Ns(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new Ga(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(Ai,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return rn(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new qA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function NT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=ro,this.reject=ro,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:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(li(gs,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const ap=new At("AppId",{providedIn:"root",factory:function Md(){return`${_s()}${_s()}${_s()}`}});function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const op=new At("Platform Initializer"),ab=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sp=new At("appBootstrapListener"),_S=new At("AnimationModuleType");let bS=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lp=new At("LocaleId",{providedIn:"root",factory:()=>Pf(lp,Qe.Optional|Qe.SkipSelf)||function lx(){return typeof $localize<"u"&&$localize.locale||bl}()}),Dd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class cx{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let up=(()=>{class p{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Qr(Ni(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new Ga(S)),v},[]);return new cx(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const yS=(()=>Promise.resolve(0))();function pp(p){typeof Zone>"u"?yS.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function lb(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function mp(p){const g=()=>{!function cb(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,_p(p),p.isCheckStableRunning=!0,gp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),_p(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return hx(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),db(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return hx(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),db(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,_p(p),gp(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,fp,ro,ro);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const fp={};function gp(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 _p(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function hx(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function db(p){p._nesting--,gp(p)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const bs=new At(""),bp=new At("");let yp,ub=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,yp||(function wS(p){yp=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),pp(()=>{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())pp(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Cp),li(bp))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),Cp=(()=>{class p{constructor(){this._applications=new Map}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 yp?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),vr=null;const px=new At("AllowMultipleToken"),hb=new At("PlatformDestroyListeners");class fx{constructor(g,m){this.name=g,this.token=m}}function vp(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ap();if(!v||v.injector.get(px,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function fb(p){if(vr&&!vr.get(px,!1))throw new ie(400,!1);vr=p;const g=p.get(xp);(function gb(p){const g=p.get(op,null);g&&g.forEach(m=>m())})(p)}(function mx(p=[],g){return Yn.create({name:g,providers:[{provide:rg,useValue:"platform"},{provide:hb,useValue:new Set([()=>vr=null])},...p]})}(E,_))}return function gx(p){const g=Ap();if(!g)throw new ie(401,!1);return g}()}}function Ap(){return vr?.get(xp)??null}let xp=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function _b(p,g){let m;return m="noop"===p?new Vl:("zone.js"===p?void 0:p)||new un(g),m}(_?.ngZone,function mb(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=Yn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(kc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Id(this._modules,E),P.unsubscribe()})}),function Rd(p,g,m){try{const _=m();return id(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(ms);return P.runInitializers(),P.donePromise.then(()=>(function rs(p){It(p,"Expected localeId to be defined"),"string"==typeof p&&(d_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(lp,bl)||bl),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=bb({},_);return function vS(p,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(hb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(li(Yn))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function bb(p,g){return Array.isArray(g)?g.reduce(bb,p):{...p,...g}}let Bl=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),pp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Ic;if(!this._injector.get(ms).done)throw!C&&no(m),new ie(405,false);let v;v=C?m:this._injector.get(La).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function pb(p){return p.isBoundToModule}(v)?void 0:this._injector.get(cs),P=v.create(Yn.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(bs,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Id(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);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;Id(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(sp,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Id(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Ai),li(kc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Id(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let kd=!0;function wb(){kd=!1}let Ab=(()=>{class p{}return p.__NG_ELEMENT_ID__=yx,p})();function yx(p){return function Tp(p,g,m){if(va(p)&&!m){const _=Ct(p.index,g);return new Kc(_,_)}return 47&p.type?new Kc(g[16],g):null}(qt(),be(),16==(16&p))}class Eb{constructor(){}supports(g){return pl(g)}create(g){return new Tx(g)}}const Sb=(p,g)=>g;class Tx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Sb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Mb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=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(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Ex),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ex),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Mb{constructor(g,m){this.item=g,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 PS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Ex{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new PS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sx(p,g,m){const _=p.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(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);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 Ol(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class Ol{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Db(){return new Hb([new Eb])}let Hb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Db()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Db}),p})();function Mx(){return new Pb([new Hp])}let Pb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Mx()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Mx}),p})();const Hx=vp(null,"core",[]);let kS=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(li(Bl))},p.\u0275mod=Mr({type:p}),p.\u0275inj=oi({}),p})();function VS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let z;return function(T){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{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 F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,T=null){super(z),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const z=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(z.idTokenHeader),h=yield x.calcHash(z.accessToken,T),O=base64UrlEncode(h.substr(0,h.length/2)),I=z.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const h=T.indexOf("?");return T=T.substr(h>-1?h+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let h,V,O,I,j,W,Q;if(null===x)return T;h=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==h)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(z,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,z,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var z,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);z=!0}for(var T,V,h=0,O=F.length,I=this.blocks;h>2]|=F[h]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>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=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,z=this.lastByteIndex;F[16]=this.block,F[z>>2]|=EXTRA[3&z],this.block=F[16],z>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=z&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&V^~h&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&z)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&h^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&z^J))<<0,V=z+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&h)+K[W+2]+j[W+2])<<0,z=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,h=F+(U=h+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((he=z&x)^z&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+h<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[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[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[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,h>>24&255,h>>16&255,h>>8&255,255&h,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),z=new DataView(F);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var z,x=F,T=new Uint8Array(x.length);for(z=0;z{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let h of x)T+=String.fromCharCode(h);return T}toHashString(x){const T=new Uint8Array(x);let h="";for(let V of T)h+=String.fromCharCode(V);return h}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,h,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{h?this.setStorage(h):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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,h=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,h).catch(I=>{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=[],h=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return h||T.push("https for all urls required. Also for urls received by discovery."),V||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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),h=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)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),h=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)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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 h=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(h-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,h)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),h(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),h(V)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),T(h)}):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,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},h)}fetchTokenUsingGrant(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:h}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,h,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}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(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const h=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=h.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((h,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),h(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,h=x.width||500,V=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const h=x.data;return h.startsWith(T)?"#"+h.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.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",h,"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="",h="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=h||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}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 h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const h={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(h)}}storeAccessTokenResponse(x,T,h,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const I=1e3*h,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}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){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(h),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.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 h=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 V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?h=h.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:h}).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(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const h=T.state;let[V,O]=this.parseState(h);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=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&&!x.disableOAuth2StateCheck&&!h||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:h}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),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&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,h="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),h=x.substr(V+this.config.nonceStateSeparator.length))}return[T,h]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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,h=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!h&&G.nonce!==$){const de="Wrong nonce: "+G.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&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}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 h=!1;"boolean"==typeof x&&(h=x,x={});const V=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||h||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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 h=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(h);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>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 h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{x[h]&&T.set(h,JSON.stringify(x[h]))}),T}revokeTokenAndLogout(x={},T=!1){let h=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(h,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(h,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,h){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=h}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 h=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,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 F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,z,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function h(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(z,{Z:()=>h})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=8587)}]); \ No newline at end of file diff --git a/dist/apps/consolidator/main.fbb16d98b4c7fbec.js b/dist/apps/consolidator/main.fbb16d98b4c7fbec.js new file mode 100644 index 000000000..d1800b5ab --- /dev/null +++ b/dist/apps/consolidator/main.fbb16d98b4c7fbec.js @@ -0,0 +1 @@ +(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{919:(F,z,x)=>{"use strict";var T=x(6895),u=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(o){W=W||document.createElement("a"),W.setAttribute("href",o);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new u.OlP("TRANSITION_ID"),U=[{provide:u.ip1,useFactory:function $(o,r,e){return()=>{e.get(u.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let l=0;l{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const J=new u.OlP("EventManagerPlugins");let ie=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),ge=(()=>{class o extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}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(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();function Ve(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/"},we=/%COMP%/g;function oe(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class o{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case u.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case u.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ie),u.LFG(ge),u.LFG(u.AFp))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(u.JOm.DashCase|u.JOm.Important)?r.style.setProperty(e,t,a&u.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&u.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(o){return"_ngcontent-%COMP%".replace(we,o)}(a+"-"+t.id),this.hostAttr=function Te(o){return"_nghost-%COMP%".replace(we,o)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class o extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const Pn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mn={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"},si={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Pr=(()=>{class o extends de{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,a){const l=o.parseEventName(t),c=o.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=o._normalizeKey(t.pop());let c="";if(Pn.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function Wl(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&mn.hasOwnProperty(r)&&(r=mn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Pn.forEach(l=>{l!=a&&(0,si[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{o.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const Qe=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:T.bD},{provide:u.g9A,useValue:function Rn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function wa(){return(0,u.RDi)(document),document},deps:[]}]),hi=new u.OlP(""),va=[{provide:u.rWj,useClass:class te{addToWindow(r){u.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},u.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(t=>{const a=u.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:u.lri,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]}],Ei=[{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function In(){return new u.qLn},deps:[]},{provide:J,useClass:Ti,multi:!0,deps:[T.K0,u.R0b,u.Lbi]},{provide:J,useClass:Pr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,u.AFp]},{provide:u.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,u.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let Aa=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:u.AFp,useValue:e.appId},{provide:G,useExisting:u.AFp},U]}}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(hi,12))},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[...Ei,...va],imports:[T.ez,u.hGG]}),o})(),Y=(()=>{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)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function ye(){return new Y((0,u.LFG)(T.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let li=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):u.LFG(rt),t},providedIn:"root"}),o})(),rt=(()=>{class o extends li{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case u.q3G.NONE:return t;case u.q3G.HTML:return(0,u.qzn)(t,"HTML")?(0,u.z3N)(t):(0,u.EiD)(this._doc,String(t)).toString();case u.q3G.STYLE:return(0,u.qzn)(t,"Style")?(0,u.z3N)(t):t;case u.q3G.SCRIPT:if((0,u.qzn)(t,"Script"))return(0,u.z3N)(t);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.qzn)(t,"URL")?(0,u.z3N)(t):(0,u.mCW)(String(t));case u.q3G.RESOURCE_URL:if((0,u.qzn)(t,"ResourceURL"))return(0,u.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,u.JVY)(e)}bypassSecurityTrustStyle(e){return(0,u.L6k)(e)}bypassSecurityTrustScript(e){return(0,u.eBb)(e)}bypassSecurityTrustUrl(e){return(0,u.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,u.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ie(o){return new rt(o.get(T.K0))}(u.LFG(u.zs3)),t},providedIn:"root"}),o})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new u.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let at=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",s=!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==a)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 y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=a&&(h=this.addToHttpParams(h,a,"complementaryObjectName")),l&&l.forEach(ke=>{h=this.addToHttpParams(h,ke,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=n&&(h=this.addToHttpParams(h,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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:N,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(ht,8),u.LFG(Oe,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Rt=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="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==a)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 s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=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:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="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==a)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 s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=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:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(ht,8),u.LFG(Oe,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ql=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addApplicationMailForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addApplicationMailForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}approveApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkForSimilarRichIdentities(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}consolidateIdentityUsingToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}copyFormFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyForm/groupToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyForm/groupToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyForm/voToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyForm/voToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyMails/groupToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyMails/groupToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyMails/voToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/copyMails/voToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}createApplicationFormInGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createApplicationFormInVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplicationMailForGroup(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/deleteApplicationMail/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteApplicationMailForVo(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/deleteApplicationMail/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationDataById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationsForGroup(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/getApplicationsForMember`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getApplicationsForVo(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getConsolidatorToken(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForGroupWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/getFormItems/group-type`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForVoWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/getFormItems/vo-type`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}rejectApplication(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/rejectApplication`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendInvitation(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let s=new y.LE({encoder:this.encoder});null!=a&&(s=this.addToHttpParams(s,a,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"name")),null!=e&&(s=this.addToHttpParams(s,e,"email")),null!=t&&(s=this.addToHttpParams(s,t,"language"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,a,l,c,n="body",i=!1,s){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 d=new y.LE({encoder:this.encoder});null!=a&&(d=this.addToHttpParams(d,a,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,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=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let N="json";return b&&(N=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,a,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=a&&(i=this.addToHttpParams(i,a,"groupId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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/registrarManager/sendInvitation/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendMessage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setSendingEnabled(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}submitApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateApplicationMail(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}verifyApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(ht,8),u.LFG(Oe,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Or=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){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 s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="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==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=a&&(s=this.addToHttpParams(s,a,"extLogin")),l&&l.forEach(N=>{s=this.addToHttpParams(s,N,"attrNames[]")});let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",s=!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 h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=a&&(h=this.addToHttpParams(h,a,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=n&&(h=this.addToHttpParams(h,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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:N,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.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/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));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:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=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:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(ht,8),u.LFG(Oe,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),on=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(ht,8),u.LFG(Oe,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kl=(()=>{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:Oe,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(o,12),u.LFG(y.eN,8))},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();var dt=(()=>{return(o=dt||(dt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",dt;var o})();let Zp=(()=>{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 a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){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(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),h=this.resolveAuthorization(n,s);a.set(l,{readAuth:d,manageAuth:h,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 a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,On.Xf)(o()).subscribe(r)})}var Zl=x(9635),ln=x(2843),ei=x(515),Nt=x(727),cn=x(4482),Ui=x(5403);function Es(){return(0,cn.e)((o,r)=>{let e=null;o._refCount++;const t=(0,Ui.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const a=o._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class Xp extends Hi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,cn.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ui.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Es()(this)}}var ze=x(4004),Pi=x(3900),Gt=x(5698),Da=x(3269);function Vt(...o){const r=(0,Da.yG)(o);return(0,cn.e)((e,t)=>{(r?(0,jr.z)(o,e,r):(0,jr.z)(o,e)).subscribe(t)})}var wi=x(5577),dn=x(590),Gi=x(4351),Ct=x(8505),M=x(262);function k(o,r,e,t,a){return(l,c)=>{let n=e,i=r,s=0;l.subscribe((0,Ui.x)(c,d=>{const h=s++;i=n?o(i,d,h):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(o,r){return(0,cn.e)(k(o,r,arguments.length>=2,!0))}function B(o){return o<=0?()=>ei.E:(0,cn.e)((r,e)=>{let t=[];r.subscribe((0,Ui.x)(e,a=>{t.push(a),o{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Xt.h)((a,l)=>o(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new Ao.K))}var Bt=x(9718);function Mt(o){return(0,cn.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(o){return new Ft(o)}function Ce(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return o===r}function qt(o){return Array.prototype.concat.apply([],o)}function Ha(o){return o.length>0?o[o.length-1]:null}function Ot(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function Cn(o){return(0,u.CqO)(o)?o:(0,u.QGY)(o)?(0,yi.D)(Promise.resolve(o)):(0,De.of)(o)}const LC={exact:function Fn(o,r,e){if(!cr(o.segments,r.segments)||!Xl(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!Fn(o.children[t],r.children[t],e))return!1;return!0},subset:Ra},FC={exact:function ji(o,r){return Ri(o,r)},subset:function ef(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Ln(o[e],r[e]))},ignored:()=>!0};function Ms(o,r,e){return LC[e.paths](o.root,r.root,e.matrixParams)&&FC[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ra(o,r,e){return jn(o,r,r.segments,e)}function jn(o,r,e,t){if(o.segments.length>e.length){const a=o.segments.slice(0,e.length);return!(!cr(a,e)||r.hasChildren()||!Xl(a,e,t))}if(o.segments.length===e.length){if(!cr(o.segments,e)||!Xl(o.segments,e,t))return!1;for(const a in r.children)if(!o.children[a]||!Ra(o.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,o.segments.length),l=e.slice(o.segments.length);return!!(cr(o.segments,a)&&Xl(o.segments,a,t)&&o.children[qe])&&jn(o.children[qe],r,l,t)}}function Xl(o,r,e){return r.every((t,a)=>FC[e](o[a].parameters,t.parameters))}class zr{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return nf.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xo(this)}}class Ds{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return Ii(this)}}function cr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let ec=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:function(){return new Kd},providedIn:"root"}),o})();class Kd{parse(r){const e=new nc(r);return new zr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${To(r.root,!0)}`,t=function Jt(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(a=>`${Hs(e)}=${Hs(a)}`).join("&"):`${Hs(e)}=${Hs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function rf(o){return encodeURI(o)}(r.fragment)}`:""}`}}const nf=new Kd;function xo(o){return o.segments.map(r=>Ii(r)).join("/")}function To(o,r){if(!o.hasChildren())return xo(o);if(r){const e=o.children[qe]?To(o.children[qe],!1):"",t=[];return Ot(o.children,(a,l)=>{l!==qe&&t.push(`${l}:${To(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function tf(o,r){let e=[];return Ot(o.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(o.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(o,(t,a)=>a===qe?[To(o.children[qe],!1)]:[`${a}:${To(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[qe]?`${xo(o)}/${e[0]}`:`${xo(o)}/(${e.join("//")})`}}function Zd(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hs(o){return Zd(o).replace(/%3B/gi,";")}function Ps(o){return Zd(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tc(o){return decodeURIComponent(o)}function af(o){return tc(o.replace(/\+/g,"%20"))}function Ii(o){return`${Ps(o.path)}${function Ur(o){return Object.keys(o).map(r=>`;${Ps(r)}=${Ps(o[r])}`).join("")}(o.parameters)}`}const sf=/^[^\/()?;=#]+/;function ic(o){const r=o.match(sf);return r?r[0]:""}const lf=/^[^=?&#]+/,NC=/^[^&#]+/;class nc{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=ic(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(r),new Ds(tc(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=ic(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=ic(this.remaining);a&&(t=a,this.capture(t))}r[tc(e)]=tc(t)}parseQueryParam(r){const e=function jC(o){const r=o.match(lf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function zC(o){const r=o.match(NC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=af(e),l=af(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ic(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new u.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new u.vHH(4011,!1)}}function Eo(o){return o.segments.length>0?new gt([],{[qe]:o}):o}function Ia(o){const r={};for(const t of Object.keys(o.children)){const l=Ia(o.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Xd(o){if(1===o.numberOfChildren&&o.children[qe]){const r=o.children[qe];return new gt(o.segments.concat(r.segments),r.children)}return o}(new gt(o.segments,r))}function Gr(o){return o instanceof zr}function GC(o,r,e,t,a){if(0===e.length)return So(r.root,r.root,r.root,t,a);const l=function WC(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new qC(!0,0,o);let r=0,e=!1;const t=o.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new qC(e,r,t)}(e);return l.toRoot()?So(r.root,r.root,new gt([],{}),t,a):function c(i){const s=function uf(o,r,e,t){if(o.isAbsolute)return new ur(r.root,!0,0);if(-1===t)return new ur(e,e===r.root,0);return function Is(o,r,e){let t=o,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new u.vHH(4005,!1);a=t.segments.length}return new ur(t,!1,a-l)}(e,t+(dr(o.commands[0])?0:1),o.numberOfDoubleDots)}(l,r,o.snapshot?._urlSegment,i),d=s.processChildren?Nn(s.segmentGroup,s.index,l.commands):rc(s.segmentGroup,s.index,l.commands);return So(r.root,s.segmentGroup,d,t,a)}(o.snapshot?._lastPathIndex)}function dr(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Va(o){return"object"==typeof o&&null!=o&&o.outlets}function So(o,r,e,t,a){let c,l={};t&&Ot(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=o===r?e:cf(o,r,e);const n=Eo(Ia(c));return new zr(n,l,a)}function cf(o,r,e){const t={};return Ot(o.children,(a,l)=>{t[l]=a===r?e:cf(a,r,e)}),new gt(o.segments,t)}class qC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&dr(t[0]))throw new u.vHH(4003,!1);const a=t.find(Va);if(a&&a!==Ha(t))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ur{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function rc(o,r,e){if(o||(o=new gt([],{})),0===o.segments.length&&o.hasChildren())return Nn(o,r,e);const t=function $C(o,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=o.segments[a],n=e[t];if(Va(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!YC(i,s,c))return l;t+=2}else{if(!YC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(o,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=rc(o.children[c],r,l))}),Ot(o.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(o.segments,a)}}function qr(o,r,e){const t=o.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=qr(new gt([],{}),0,e))}),r}function ks(o){const r={};return Ot(o,(e,t)=>r[t]=`${e}`),r}function YC(o,r,e){return o==e.path&&Ri(r,e.parameters)}class zn{constructor(r,e){this.id=r,this.url=e}}class ac extends zn{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wr extends zn{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xi extends zn{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class pf extends zn{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vs extends zn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iu extends zn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nu extends zn{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oc extends zn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sc extends zn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ff{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _f{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bs{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bf{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=lc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=lc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=cc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return cc(r,this._root).map(e=>e.value)}}function lc(o,r){if(o===r.value)return r;for(const e of r.children){const t=lc(o,e);if(t)return t}return null}function cc(o,r){if(o===r.value)return[r];for(const e of r.children){const t=cc(o,e);if(t.length)return t.unshift(r),t}return[]}class qi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class ru extends bf{constructor(r,e){super(r),this.snapshot=e,hc(this,r)}toString(){return this.snapshot.toString()}}function dc(o,r){const e=function KC(o,r){const c=new hr([],{},{},"",{},qe,r,null,o.root,-1,{});return new Ba("",new qi(c,[]))}(o,r),t=new Yt([new Ds("",{})]),a=new Yt({}),l=new Yt({}),c=new Yt({}),n=new Yt(""),i=new Un(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new ru(new qi(i,[]),e)}class Un{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,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,ze.U)(r=>Qt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Qt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uc(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function Do(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class hr{constructor(r,e,t,a,l,c,n,i,s,d,h,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,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=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ba extends bf{constructor(r,e){super(e),this.url=r,hc(this,e)}toString(){return pc(this._root)}}function hc(o,r){r.value._routerState=o,r.children.forEach(e=>hc(o,e))}function pc(o){const r=o.children.length>0?` { ${o.children.map(pc).join(", ")} } `:"";return`${o.value}${r}`}function $r(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Ri(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),Ri(r.params,e.params)||o.params.next(e.params),function ut(o,r){if(o.length!==r.length)return!1;for(let e=0;eRi(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||Cf(o.parent,r.parent))}function At(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function Z0(o,r,e){return r.children.map(t=>{for(const a of e.children)if(o.shouldReuseRoute(t.value,a.value.snapshot))return At(o,t,a);return At(o,t)})}(o,r,e);return new qi(t,a)}{if(o.shouldAttach(r.value)){const l=o.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(o,n)),c}}const t=function X0(o){return new Un(new Yt(o.url),new Yt(o.params),new Yt(o.queryParams),new Yt(o.fragment),new Yt(o.data),o.outlet,o.component,o)}(r.value),a=r.children.map(l=>At(o,l));return new qi(t,a)}}const yf="ngNavigationCancelingError";function XC(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=Gr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=ey(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function ey(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[yf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function ty(o){return iy(o)&&Gr(o.url)}function iy(o){return o&&o[yf]}class Ls{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new fc,this.attachRef=null}}let fc=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ls,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const au=!1;let Kt=(()=>{class o{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.attachEvents=new u.vpe,this.detachEvents=new u.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,au);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,au);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,au);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 u.vHH(4013,au);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new ou(e,n,a.injector);if(t&&function Fs(o){return!!o.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=a.createComponent(s,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(fc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},o.\u0275dir=u.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class ou{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Un?this.route:r===fc?this.childContexts:this.parent.get(r,e)}}let ny=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&u._UZ(0,"router-outlet")},dependencies:[Kt],encapsulation:2}),o})();function wf(o,r){return o.providers&&!o._injector&&(o._injector=(0,u.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Af(o){const r=o.children&&o.children.map(Af),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=ny),e}function yn(o){return o.outlet||qe}function lu(o,r){const e=o.filter(t=>yn(t)===r);return e.push(...o.filter(t=>yn(t)!==r)),e}function Wi(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Ho{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),$r(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=Mo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Mo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Mo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=Mo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new JC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new mf(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if($r(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),$r(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Wi(a.snapshot),i=n?.get(u._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class sy{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class js{constructor(r,e){this.component=r,this.route=e}}function ly(o,r,e){const t=o._root;return Ns(t,r?r._root:null,e,[t.value])}function gc(o,r,e){return(Wi(r)??e).get(o)}function Ns(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=Mo(r);return o.children.forEach(c=>{(function dy(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=o.value,c=r?r.value:null,n=e?e.getContext(o.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function uy(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!cr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!cr(o.url,r.url)||!Ri(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cf(o,r)||!Ri(o.queryParams,r.queryParams);default:return!Cf(o,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new sy(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Ns(o,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new js(n.outlet.component,c))}else c&&La(r,n,a),a.canActivateChecks.push(new sy(t)),Ns(o,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>La(c,e.getContext(n),a)),a}function La(o,r,e){const t=Mo(o),a=o.value;Ot(t,(l,c)=>{La(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new js(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Qr(o){return"function"==typeof o}function Fa(o){return o instanceof Ao.K||"EmptyError"===o?.name}const pr=Symbol("INITIAL_VALUE");function Po(){return(0,Pi.w)(o=>(0,Fr.a)(o.map(r=>r.pipe((0,Gt.q)(1),Vt(pr)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===pr)return pr;if(!1===e||e instanceof zr)return e}return!0}),(0,Xt.h)(r=>r!==pr),(0,Gt.q)(1)))}function Ro(o){return(0,Zl.z)((0,Ct.b)(r=>{if(Gr(r))throw XC(0,r)}),(0,ze.U)(r=>!0===r))}const ja={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mf(o,r,e,t,a){const l=_c(o,r,e);return l.matched?function Sf(o,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function py(o){return o&&Qr(o.canMatch)}(n)?n.canMatch(r,e):n(r,e);return Cn(i)});return(0,De.of)(l).pipe(Po(),Ro())}(t=wf(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...ja})):(0,De.of)(l)}function _c(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...ja}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||Ce)(e,o,r);if(!a)return{...ja};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function Jr(o,r,e,t,a="corrected"){if(e.length>0&&function _y(o,r,e){return e.some(t=>fr(o,r,t)&&yn(t)!==qe)}(o,e,t)){const c=new gt(r,function Df(o,r,e,t){const a={};a[qe]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&yn(l)!==qe){const c=new gt([],{});c._sourceSegment=o,c._segmentIndexShift=r.length,a[yn(l)]=c}return a}(o,r,t,new gt(e,o.children)));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function by(o,r,e){return e.some(t=>fr(o,r,t))}(o,e,t)){const c=new gt(o.segments,function bc(o,r,e,t,a,l){const c={};for(const n of t)if(fr(o,e,n)&&!a[yn(n)]){const i=new gt([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===l?o.segments.length:r.length,c[yn(n)]=i}return{...a,...c}}(o,r,e,t,o.children,a));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(o.segments,o.children);return l._sourceSegment=o,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function fr(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Io(o,r,e,t){return!!(yn(o)===t||t!==qe&&fr(r,e,o))&&("**"===o.path||_c(r,o,e).matched)}function Hf(o,r,e){return 0===r.length&&!o.children[e]}const pu=!1;class Gs{constructor(r){this.segmentGroup=r||null}}class Pf{constructor(r){this.urlTree=r}}function Cc(o){return(0,ln._)(new Gs(o))}function Rf(o){return(0,ln._)(new Pf(o))}class If{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=Jr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(Ia(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Pf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Gs?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(Ia(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Gs?this.noMatchError(a):a}))}noMatchError(r){return new u.vHH(4002,pu)}createUrlTree(r,e,t){const a=Eo(r);return new zr(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,yi.D)(a).pipe((0,Gi.b)(l=>{const c=t.children[l],n=lu(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(r,e,t,a,l,c){return(0,yi.D)(t).pipe((0,Gi.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(s=>{if(s instanceof Gs)return(0,De.of)(null);throw s}))),(0,dn.P)(n=>!!n),(0,M.K)((n,i)=>{if(Fa(n))return Hf(e,a,l)?(0,De.of)(new gt([],{})):Cc(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Io(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):Cc(e):Cc(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Rf(l):this.lineralizeSegments(t,l).pipe((0,wi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=_c(e,a,l);if(!n)return Cc(e);const h=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?Rf(h):this.lineralizeSegments(a,h).pipe((0,wi.z)(f=>this.expandSegment(r,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=wf(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):Mf(e,t,a,r).pipe((0,Pi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,wi.z)(d=>{const h=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=Jr(e,n,i,f),N=new gt(b.segments,b.children);if(0===H.length&&N.hasChildren())return this.expandChildren(h,f,N).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new gt(n,{}));const ae=yn(t)===l;return this.expandSegment(h,N,f,H,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):Cc(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function hu(o,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function zs(o){return o&&Qr(o.canLoad)}(n)?n.canLoad(r,e):n(r,e);return Cn(i)});return(0,De.of)(l).pipe(Po(),Ro())}(r,e,t).pipe((0,wi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function yy(o){return(0,ln._)(ey(pu,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,ln._)(new u.vHH(4e3,pu));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new zr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new u.vHH(4001,pu);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class iT{}class fu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Jr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new hr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new qi(t,e),l=new Ba(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=uc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,yi.D)(Object.keys(t.children)).pipe((0,Gi.b)(a=>{const l=t.children[a],c=lu(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(o,r=!1){return(0,cn.e)((e,t)=>{let a=0;e.subscribe((0,Ui.x)(t,l=>{const c=o(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ue(),(0,ze.U)(a=>{if(null===a)return null;const l=vc(a);return function vy(o){o.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,yi.D)(e).pipe((0,Gi.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,dn.P)(c=>!!c),(0,M.K)(c=>{if(Fa(c))return Hf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Io(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?Ha(a).parameters:{},i=Of(t)+a.length,s=new hr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),yn(e),e.component??e._loadedComponent??null,e,Bf(t),i,Ac(e),i);c=(0,De.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=Mf(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const h=Of(t)+i.length;return{snapshot:new hr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),yn(e),e.component??e._loadedComponent??null,e,Bf(t),h,Ac(e),h),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Pi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;r=e._injector??r;const h=e._loadedInjector??r,f=function Vf(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Jr(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new qi(i,[])]);const N=yn(e)===l;return this.processSegment(h,f,b,H,N?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]))}))}}function wc(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function vc(o){const r=[],e=new Set;for(const t of o){if(!wc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=vc(t.children);r.push(new qi(t.value,a))}return r.filter(t=>!e.has(t))}function Bf(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Of(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ws(o){return o.data||{}}function Ac(o){return o.resolve||{}}const xc=Symbol("RouteTitle");function jf(o){return"string"==typeof o.title||null===o.title}function gu(o){return(0,Pi.w)(r=>{const e=o(r);return e?(0,yi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let Gn=(()=>{class o{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[xc]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:function(){return(0,u.f3M)(za)},providedIn:"root"}),o})(),za=(()=>{class o extends Gn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Y))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Sy{}class Dy extends class My{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const mu=new u.OlP("",{providedIn:"root",factory:()=>({})}),Tc=new u.OlP("ROUTES");let _u=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Cn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new Xp(t,()=>new He.x).pipe(Es());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(Tc,[],u.XFs.Self|u.XFs.Optional)));return{routes:s.map(Af),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new Xp(l,()=>new He.x).pipe(Es());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Cn(e()).pipe((0,wi.z)(t=>t instanceof u.YKP||Array.isArray(t)?(0,De.of)(t):(0,yi.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.zs3),u.LFG(u.Sil))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Py{}class Ry{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function rT(o){throw o}function Iy(o,r,e){return r.parse("/")}const $s={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Vo(){const o=(0,u.f3M)(ec),r=(0,u.f3M)(fc),e=(0,u.f3M)(T.Ye),t=(0,u.f3M)(u.zs3),a=(0,u.f3M)(u.Sil),l=(0,u.f3M)(Tc,{optional:!0})??[],c=(0,u.f3M)(mu,{optional:!0})??{},n=(0,u.f3M)(za),i=(0,u.f3M)(Gn,{optional:!0}),s=(0,u.f3M)(Py,{optional:!0}),d=(0,u.f3M)(Sy,{optional:!0}),h=new ti(null,o,r,e,t,a,qt(l));return s&&(h.urlHandlingStrategy=s),d&&(h.routeReuseStrategy=d),h.titleStrategy=i??n,function qn(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(c,h),h}let ti=(()=>{class o{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,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.x,this.errorHandler=rT,this.malformedUriErrorHandler=Iy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new Ry,this.routeReuseStrategy=new Dy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(_u),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new ff(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new QC(f)),this.ngModule=c.get(u.h0i),this.console=c.get(u.c2e);const h=c.get(u.R0b);this.isNgZoneEnabled=h instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function K0(){return new zr(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dc(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Xt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Pi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Pi.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return bu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Pi.w)(h=>{const f=this.transitions.getValue();return t.next(new ac(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?ei.E:Promise.resolve(h)}),function wy(o,r,e,t){return(0,Pi.w)(a=>function yc(o,r,e,t,a){return new If(o,r,e,t,a).apply()}(o,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},a.urlAfterRedirects=h.urlAfterRedirects}),function Lf(o,r,e,t,a,l){return(0,wi.z)(c=>function nT(o,r,e,t,a,l,c="emptyOnly",n="legacy"){return new fu(o,r,e,t,a,c,n,l).recognize().pipe((0,Pi.w)(i=>null===i?function kf(o){return new Hi.y(r=>r.error(o))}(new iT):(0,De.of)(i)))}(o,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(h=>{if(a.targetSnapshot=h.targetSnapshot,"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 Vs(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:N,extras:ae}=n,ke=new ac(f,this.serializeUrl(b),H,N);t.next(ke);const lt=dc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ei.E}),(0,Ct.b)(n=>{const i=new iu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ly(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function ci(o,r){return(0,wi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Tf(o,r,e,t){return(0,yi.D)(o).pipe((0,wi.z)(a=>function my(o,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=gc(n,r,a);return Cn(function hy(o){return o&&Qr(o.canDeactivate)}(i)?i.canDeactivate(o,r,e,t):i(o,r,e,t)).pipe((0,dn.P)())});return(0,De.of)(c).pipe(Po())}(a.component,a.route,e,r,t)),(0,dn.P)(a=>!0!==a,!0))}(c,t,a,o).pipe((0,wi.z)(n=>n&&function eT(o){return"boolean"==typeof o}(n)?function Ef(o,r,e,t){return(0,yi.D)(r).pipe((0,Gi.b)(a=>(0,jr.z)(function Us(o,r){return null!==o&&r&&r(new gf(o)),(0,De.of)(!0)}(a.route.parent,t),function uu(o,r){return null!==o&&r&&r(new _f(o)),(0,De.of)(!0)}(a.route,t),function gy(o,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function cy(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Nr(()=>{const n=c.guards.map(i=>{const s=gc(i,c.node,e);return Cn(function mc(o){return o&&Qr(o.canActivateChild)}(s)?s.canActivateChild(t,o):s(t,o)).pipe((0,dn.P)())});return(0,De.of)(n).pipe(Po())}));return(0,De.of)(l).pipe(Po())}(o,a.path,e),function fy(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Nr(()=>{const c=gc(l,r,e);return Cn(function du(o){return o&&Qr(o.canActivate)}(c)?c.canActivate(r,o):c(r,o)).pipe((0,dn.P)())}));return(0,De.of)(a).pipe(Po())}(o,a.route,e))),(0,dn.P)(a=>!0!==a,!0))}(t,l,o,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Gr(n.guardsResult))throw XC(0,n.guardsResult);const i=new nu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Xt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),gu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const s=new oc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Pi.w)(i=>{let s=!1;return(0,De.of)(i).pipe(function Ff(o,r){return(0,wi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,yi.D)(a).pipe((0,Gi.b)(c=>function Na(o,r,e,t){const a=o.routeConfig,l=o._resolve;return void 0!==a?.title&&!jf(a)&&(l[xc]=a.title),function xy(o,r,e,t){const a=function Ty(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===a.length)return(0,De.of)({});const l={};return(0,yi.D)(a).pipe((0,wi.z)(c=>function Ey(o,r,e,t){const a=gc(o,r,t);return Cn(a.resolve?a.resolve(r,e):a(r,e))}(o[c],r,e,t).pipe((0,dn.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Fa(c)?ei.E:(0,ln._)(c)))}(l,o,r,t).pipe((0,ze.U)(c=>(o._resolvedData=c,o.data=uc(o,e).resolve,a&&jf(a)&&(o.data[xc]=a.title),null)))}(c.route,t,o,r)),(0,Ct.b)(()=>l++),B(1),(0,wi.z)(c=>l===a.length?(0,De.of)(e):ei.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const s=new sc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),gu(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Ct.b)(h=>{s.component=h}),(0,ze.U)(()=>{})));for(const h of s.children)d.push(...i(h));return d};return(0,Fr.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),gu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function ZC(o,r,e){const t=At(o,r._root,e?e._root:void 0);return new ru(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.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,r,e)=>(0,ze.U)(t=>(new Ho(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,iy(n)){ty(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Xi(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),ty(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||bu(a.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new pf(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(s){a.reject(s)}}return ei.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Af),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:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let h=null;switch(n){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),GC(s,this.currentUrlTree,e,h,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Gr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Uf(o){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Wr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),h=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:d,targetPageId:h,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}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,a){const l=new Xi(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){u.$Z()},o.\u0275prov=u.Yz7({token:o,factory:function(){return Vo()},providedIn:"root"}),o})();function bu(o){return"imperative"!==o}let Cu=(()=>{class o{constructor(e,t,a){this.router=e,this.route=t,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(l=>{l instanceof Wr&&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,a,l,c){if(0!==e||t||a||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,u.D6c)(this.skipLocationChange),replaceUrl:(0,u.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,u.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(ti),u.Y36(Un),u.Y36(T.S$))},o.\u0275dir=u.lG2({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&u.uIk("target",t.target)("href",t.href,u.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[u.TTD]}),o})();class Sc{}let oT=(()=>{class o{preload(e,t){return(0,De.of)(null)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ky=(()=>{class o{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Xt.h)(e=>e instanceof Wr),(0,Gi.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,u.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,yi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,wi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,yi.D)([l,c]).pipe((0,mt.J)())}return l})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ti),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(Sc),u.LFG(_u))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const wu=new u.OlP("");let Vy=(()=>{class o{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 ac?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bs&&(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 Bs(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){u.$Z()},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const Wf=new u.OlP("ROUTER_FORROOT_GUARD"),vu=new u.OlP(""),Mc=[T.Ye,{provide:ec,useClass:Kd},{provide:ti,useFactory:Vo},fc,{provide:Un,useFactory:function $f(o){return o.routerState.root},deps:[ti]},_u];function Au(){return new u.PXZ("Router",ti)}let Dc=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[Mc,[],Tu(e),{provide:Wf,useFactory:xu,deps:[[ti,new u.FiY,new u.tp0]]},{provide:mu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:wu,useFactory:()=>{const o=(0,u.f3M)(ti),r=(0,u.f3M)(T.EM),e=(0,u.f3M)(mu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Vy(o,r,e)}},t?.preloadingStrategy?Zf(t.preloadingStrategy):[],{provide:u.PXZ,multi:!0,useFactory:Au},t?.initialNavigation?Ly(t):[],[{provide:Qf,useFactory:Oy},{provide:u.tb,multi:!0,useExisting:Qf}]]}}static forChild(e){return{ngModule:o,providers:[Tu(e)]}}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Wf,8))},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();function xu(o){return"guarded"}function Tu(o){return[{provide:Tc,multi:!0,useValue:o}]}function Oy(){const o=(0,u.f3M)(u.zs3);return r=>{const e=o.get(u.z2F);if(r!==e.components[0])return;const t=o.get(ti),a=o.get(Jf);1===o.get(Kf)&&t.initialNavigation(),o.get(vu,null,u.XFs.Optional)?.setUpPreloading(),o.get(wu,null,u.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const Qf=new u.OlP("");function Ly(o){return["disabled"===o.initialNavigation?[{provide:u.ip1,multi:!0,useFactory:()=>{const o=(0,u.f3M)(ti);return()=>{o.setUpLocationChangeListener()}}},{provide:Kf,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:Kf,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:o=>{const r=o.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=o.get(ti),c=o.get(Jf);(function t(a){o.get(ti).events.pipe((0,Xt.h)(c=>c instanceof Wr||c instanceof Xi||c instanceof pf),(0,ze.U)(c=>c instanceof Wr||c instanceof Xi&&(0===c.code||1===c.code)&&null),(0,Xt.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Jf=new u.OlP("",{factory:()=>new He.x}),Kf=new u.OlP("",{providedIn:"root",factory:()=>1});function Zf(o){return[ky,{provide:vu,useExisting:ky},{provide:Sc,useExisting:o}]}let Hc;try{Hc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Hc=!1}let Ua,di=(()=>{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&&!Hc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.Lbi))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Pc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function zy(){if(Ua)return Ua;if("object"!=typeof document||!document)return Ua=new Set(Pc),Ua;let o=document.createElement("input");return Ua=new Set(Pc.filter(r=>(o.setAttribute("type",r),o.type===r))),Ua}let Qs,en,Bo;function wn(o){return function Su(){if(null==Qs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qs=!0}))}finally{Qs=Qs||!1}return Qs}()?o:!!o.capture}function Uy(){if(null==en){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return en=!1,en;if("scrollBehavior"in document.documentElement.style)en=!0;else{const o=Element.prototype.scrollTo;en=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return en}function Oo(o){if(function Gy(){if(null==Bo){const o=typeof document<"u"?document.head:null;Bo=!(!o||!o.createShadowRoot&&!o.attachShadow)}return Bo}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Lo(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function vi(o){return o.composedPath?o.composedPath()[0]:o.target}function Rc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Wn(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var Xs=x(8372);function Cg(o){return(0,Xt.h)((r,e)=>o<=e)}function yg(o,r){return o===r}var wg=x(5032);function ft(o){return(0,cn.e)((r,e)=>{(0,On.Xf)(o).subscribe((0,Ui.x)(e,()=>e.complete(),wg.Z)),!e.closed&&r.subscribe(e)})}function it(o){return null!=o&&"false"!=`${o}`}function hn(o,r=0){return vg(o)?Number(o):r}function vg(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Pu(o){return Array.isArray(o)?o:[o]}function Wt(o){return null==o?"":"string"==typeof o?o:`${o}px`}function ni(o){return o instanceof u.SBq?o.nativeElement:o}let Ru=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ag=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ni(e);return new Hi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,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:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Ru))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),el=(()=>{class o{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new u.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=hn(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,Xs.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(Ag),u.Y36(u.SBq),u.Y36(u.R0b))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Fo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[Ru]}),o})();const tl=new Set;let qa,ku=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Vu}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xg(o){if(!tl.has(o))try{qa||(qa=document.createElement("style"),qa.setAttribute("type","text/css"),document.head.appendChild(qa)),qa.sheet&&(qa.sheet.insertRule(`@media ${o} {body{ }}`,0),tl.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(di))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Vu(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let jo=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Tg(Pu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Tg(Pu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Fr.a)(a);return l=(0,jr.z)(l.pipe((0,Gt.q)(1)),l.pipe(Cg(1),(0,Xs.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Hi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ku),u.LFG(u.R0b))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Tg(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function No(o,r){return(o.getAttribute(r)||"").match(/\S+/g)||[]}const xw="cdk-describedby-message",il="cdk-describedby-host";let Bu=0,Dg=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Bu++,this._document=e,this._id=(0,u.f3M)(u.AFp)+"-"+Bu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=Ou(t,a);"string"!=typeof t?(Hg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=Ou(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${il}="${this._id}"]`);for(let t=0;t0!=a.indexOf(xw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function vw(o,r,e){const t=No(o,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(il,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Mg(o,r,e){const a=No(o,r).filter(l=>l!=e.trim());a.length?o.setAttribute(r,a.join(" ")):o.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(il)}_isElementDescribedByMessage(e,t){const a=No(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0),u.LFG(di))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ou(o,r){return"string"==typeof o?`${r||""}/${o}`:o}function Hg(o,r){o.id||(o.id=`${xw}-${r}-${Bu++}`)}class Lc extends class vn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,r instanceof u.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,Xs.b)(r),(0,Xt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||Wn(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof u.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Fc=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ew(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 Tw(o){try{return o.frameElement}catch{return null}}(function Pw(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Fu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Fu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function Rg(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Hw(o){return!function Sw(o){return function Dw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function Pg(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function Mw(o){return function st(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||Lu(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(di))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Lu(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Fu(o){if(!Lu(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Ig{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(r)}}let ju=(()=>{class o{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Ig(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Fc),u.LFG(u.R0b),u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function $n(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function jc(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Nu=new u.OlP("cdk-input-modality-detector-options"),zu={ignoreKeys:[18,17,224,91,16]},nl=wn({passive:!0,capture:!0});let iE=(()=>{class o{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next($n(c)?"keyboard":"mouse"),this._mostRecentTarget=vi(c))},this._onTouchstart=c=>{jc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(c))},this._options={...zu,...l},this.modalityDetected=this._modality.pipe(Cg(1)),this.modalityChanged=this.modalityDetected.pipe(function yw(o,r=le.y){return o=o??yg,(0,cn.e)((e,t)=>{let a,l=!0;e.subscribe((0,Ui.x)(t,c=>{const n=r(c);(l||!o(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,nl),a.addEventListener("mousedown",this._onMousedown,nl),a.addEventListener("touchstart",this._onTouchstart,nl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nl),document.removeEventListener("mousedown",this._onMousedown,nl),document.removeEventListener("touchstart",this._onTouchstart,nl))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(di),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(Nu,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const zo=new u.OlP("cdk-focus-monitor-default-options"),Nc=wn({passive:!0,capture:!0});let pn=(()=>{class o{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=vi(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ni(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Oo(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new He.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ni(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ni(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=vi(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,u.f3M)(jo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(qu,Vg,Gu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qu,Vg):2===t&&e.add(qu,Gu)}}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(di),u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),zc=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Bg))},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Fo]}),o})();const Ow=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function Lw(){return(0,u.f3M)(T.K0)}}),Og=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Yn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new u.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Fw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?Og.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Ow,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ia=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();const Uw=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function Fg(){return!0}});let We=(()=>{class o{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Rc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Bg),u.LFG(Uw,8),u.LFG(T.K0))},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[ia,ia]}),o})();function Wa(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=it(r)}}}function Uo(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function mr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=it(r)}}}function al(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Yu=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qu(){return(0,u.f3M)(u.soG)}});class tn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Ju=new u.OlP("mat-date-formats"),qw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ku(o,r){const e=Array(o);for(let t=0;t{class o extends tn{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 Ku(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ku(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 Ku(7,a=>this._format(t,new Date(2017,0,a+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,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}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(qw.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,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Yu,8),u.LFG(di))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const Ww={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 zg=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[{provide:tn,useClass:Ng}]}),o})(),$w=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[{provide:Ju,useValue:Ww}],imports:[zg]}),o})(),qc=(()=>{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=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Go=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})();class oE{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yw={enterDuration:225,exitDuration:150},qg=wn({passive:!0}),Qw=["mousedown","touchstart"],Jw=["mouseup","mouseleave","touchend","touchcancel"];class Kw{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ni(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Yw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function lE(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const h=window.getComputedStyle(d),b=h.transitionDuration,H="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,N=new oE(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",N.state=0,t.persistent||(this._mostRecentTransientRipple=N);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(N),lt=()=>this._destroyRipple(N);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(N,ae),(H||!s)&&this._finishRippleTransition(N),N}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Yw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ni(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Qw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Jw),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=$n(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,qg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Qw.forEach(r=>{this._triggerElement.removeEventListener(r,this,qg)}),this._pointerUpEventsRegistered&&Jw.forEach(r=>{this._triggerElement.removeEventListener(r,this,qg)}))}}const Zw=new u.OlP("mat-ripple-global-options");let $a=(()=>{class o{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Kw(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(di),u.Y36(Zw,8),u.Y36(u.QbO,8))},o.\u0275dir=u.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&u.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})(),pi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})(),Xu=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We]}),o})(),eh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[pi,T.ez,We,Xu]}),o})();const Wc=["mat-button",""],qo=["*"],$c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sl=Uo(Wa(mr(class{constructor(o){this._elementRef=o}})));let Qn=(()=>{class o extends sl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of $c)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 o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(pn),u.Y36(u.QbO,8))},o.\u0275cmp=u.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&&u.Gf($a,5),2&e){let a;u.iGM(a=u.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(u.uIk("disabled",t.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:Wc,ngContentSelectors:qo,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&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&e&&(u.xp6(2),u.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),u.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[$a],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),xn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[pi,We,We]}),o})();var th=x(1144),Tn=x(576),ih=x(3268);const nh=["addListener","removeListener"],rv=["addEventListener","removeEventListener"],pE=["on","off"];function Yc(o,r,e,t){if((0,Tn.m)(e)&&(t=e,e=void 0),t)return Yc(o,r,e).pipe((0,ih.Z)(t));const[a,l]=function Kg(o){return(0,Tn.m)(o.addEventListener)&&(0,Tn.m)(o.removeEventListener)}(o)?rv.map(c=>n=>o[c](r,n,e)):function av(o){return(0,Tn.m)(o.addListener)&&(0,Tn.m)(o.removeListener)}(o)?nh.map(rh(o,r)):function Jg(o){return(0,Tn.m)(o.on)&&(0,Tn.m)(o.off)}(o)?pE.map(rh(o,r)):[];if(!a&&(0,th.z)(o))return(0,wi.z)(c=>Yc(c,r,e))((0,On.Xf)(o));if(!a)throw new TypeError("Invalid event target");return new Hi.y(c=>{const n=(...i)=>c.next(1l(n)})}function rh(o,r){return e=>t=>o[e](r,t)}var Zg=x(4408);const Ai={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ai;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,o(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...o){const{delegate:r}=Ai;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=Ai;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var em=x(7565);const tm=new class fE extends em.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class Xg extends Zg.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Ai.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Ai.cancelAnimationFrame(e),r._scheduled=void 0)}});let ah,nm=1;const Qc={};function rm(o){return o in Qc&&(delete Qc[o],!0)}const am={setImmediate(o){const r=nm++;return Qc[r]=!0,ah||(ah=Promise.resolve()),ah.then(()=>rm(r)&&o()),r},clearImmediate(o){rm(o)}},{setImmediate:om,clearImmediate:ov}=am,Jc={setImmediate(...o){const{delegate:r}=Jc;return(r?.setImmediate||om)(...o)},clearImmediate(o){const{delegate:r}=Jc;return(r?.clearImmediate||ov)(o)},delegate:void 0},oh=new class lm extends em.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class sm extends Zg.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Jc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Jc.clearImmediate(e),r._scheduled=void 0)}});var Kc=x(4986),cm=x(2805);function lv(o,r=Kc.z){return function sv(o){return(0,cn.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=a;a=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ui.x)(e,s=>{t=!0,a=s,l||(0,On.Xf)(o(s)).subscribe(l=(0,Ui.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,cm.H)(o,r))}let ll=(()=>{class o{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}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 a=e>0?this._scrolled.pipe(lv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Xt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ni(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Yc(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)(u.LFG(u.R0b),u.LFG(di),u.LFG(T.K0,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),$o=(()=>{class o{constructor(e,t,a){this._platform=e,this._change=new He.x,this._changeListener=l=>{this._change.next(l)},this._document=a,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:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(lv(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)(u.LFG(di),u.LFG(u.R0b),u.LFG(T.K0,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),Qa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[ia,Jn,ia,Jn]}),o})();class cl{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class dl extends cl{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class ch extends cl{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class gv extends cl{constructor(r){super(),this.element=r instanceof u.SBq?r.nativeElement:r}}class Ja{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof dl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof ch?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof gv?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class AE extends Ja{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let dh=(()=>{class o extends Ja{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(T.K0))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),o})(),aa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();var Yi=x(6451);const Xc=Uy();class mv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Xc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Xc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_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 _v{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mm{enable(){}disable(){}attach(){}}function uh(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function _m(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class bv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();uh(e,[{width:t,height:a,bottom:a,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 Cv=(()=>{class o{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new mm,this.close=c=>new _v(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new mv(this._viewportRuler,this._document),this.reposition=c=>new bv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ll),u.LFG($o),u.LFG(u.R0b),u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Yo{constructor(r){if(this.scrollStrategy=new mm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class ul{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let ed=(()=>{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)(u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yv=(()=>{class o extends ed{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0),u.LFG(u.R0b,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kn=(()=>{class o extends ed{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=vi(l)},this._clickListener=l=>{const c=vi(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0),u.LFG(di),u.LFG(u.R0b,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),oa=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Pu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,Yi.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const sa="cdk-overlay-connected-position-bounding-box",td=/([A-Za-z%]+)$/;class fn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(sa),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&br(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sa),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="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:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Za(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),s=this._getOffset(a,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),N=this._subtractOverflows(l.height,f,b),ae=H*N;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:N===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=Ka(this._overlayRef.getConfig().minHeight),n=Ka(this._overlayRef.getConfig().minWidth),s=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&s}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Za(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),s=Math.max(l.left-t.left-r.x,0);let d=0,h=0;return d=a.width<=l.width?s||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)h=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,h=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(h=r.x-H/2)}return{top:c,left:h,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,br(this._boundingBox.style,a)}_resetBoundingBoxStyles(){br(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){br(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();br(t,this._getExactOverlayY(e,r,d)),br(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),br(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_m(r,t),isOriginOutsideView:uh(r,t),isOverlayClipped:_m(e,t),isOverlayOutsideView:uh(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Pu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof u.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function br(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function Ka(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(td);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Za(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 Xa="cdk-global-overlay-wrapper";class Jo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Xa),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",N="";i?N="flex-start":"center"===d?(N="center",f?H=h:b=h):f?"left"===d||"end"===d?(N="flex-end",b=h):("right"===d||"start"===d)&&(N="flex-start",H=h):"left"===d||"start"===d?(N="flex-start",b=h):("right"===d||"end"===d)&&(N="flex-end",H=h),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=s?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=N,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Xa),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ko=(()=>{class o{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new Jo}flexibleConnectedTo(e){return new fn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG($o),u.LFG(T.K0),u.LFG(di),u.LFG(oa))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zo=0,xi=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Yo(e);return c.direction=c.direction||this._directionality.value,new ui(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Zo++,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(u.z2F)),new AE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Cv),u.LFG(oa),u.LFG(u._Vd),u.LFG(Ko),u.LFG(yv),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(Yn),u.LFG(T.Ye),u.LFG(Kn),u.LFG(u.QbO,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const ym={provide:new u.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function Cm(o){return()=>o.scrollStrategies.reposition()}};let eo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[xi,ym],imports:[ia,aa,Qa,Qa]}),o})();class hh{}const Cr="*";function ri(o,r){return{type:7,name:o,definitions:r,options:{}}}function wt(o,r=null){return{type:4,styles:r,timings:o}}function wm(o,r=null){return{type:3,steps:o,options:r}}function ph(o,r=null){return{type:2,steps:o,options:r}}function Fe(o){return{type:6,styles:o,offset:null}}function pt(o,r,e){return{type:0,name:o,styles:r,options:e}}function _t(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Xo(o=null){return{type:9,options:o}}function io(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function id(o){Promise.resolve(null).then(o)}class es{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){id(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class nd{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?id(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const vm=["connectionContainer"],mh=["inputContainer"],_h=["label"];function Ev(o,r){1&o&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function Am(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.updateOutlineGap())}),u.Hsn(1,1),u.qZA()}if(2&o){const e=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function xm(o,r){if(1&o&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&o){const e=u.oxw(2);u.xp6(3),u.Oqu(e._control.placeholder)}}function Tm(o,r){1&o&&u.Hsn(0,3,["*ngSwitchCase","true"])}function Em(o,r){1&o&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function Sv(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.updateOutlineGap())}),u.YNc(2,xm,4,1,"ng-container",12),u.YNc(3,Tm,1,0,"ng-content",12),u.YNc(4,Em,2,0,"span",22),u.qZA()}if(2&o){const e=u.oxw();u.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),u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),u.uIk("for",e._control.id)("aria-owns",e._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Sm(o,r){1&o&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function Mm(o,r){if(1&o&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bh(o,r){if(1&o&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&o){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState)}}function Ch(o,r){if(1&o&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&o){const e=u.oxw(2);u.Q6J("id",e._hintLabelId),u.xp6(1),u.Oqu(e.hintLabel)}}function Dm(o,r){if(1&o&&(u.TgZ(0,"div",27),u.YNc(1,Ch,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&o){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",e.hintLabel)}}const Hm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Pm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Rm=0;const yh=new u.OlP("MatError");let Im=(()=>{class o{constructor(e,t){this.id="mat-error-"+Rm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(u.$8M("aria-live"),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("id",t.id)},inputs:{id:"id"},features:[u._Bn([{provide:yh,useExisting:o}])]}),o})();const km={transitionMessages:ri("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let fl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o}),o})(),Vm=0;const Bm=new u.OlP("MatHint");let fi=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+Vm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(u.uIk("id",t.id)("align",null),u.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:Bm,useExisting:o}])]}),o})(),ad=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o,selectors:[["mat-label"]]}),o})(),Mv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const Dv=new u.OlP("MatPrefix"),Pv=new u.OlP("MatSuffix");let wh=0;const Iv=Uo(class{constructor(o){this._elementRef=o}},"primary"),Lm=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vh=new u.OlP("MatFormField");let Fm=(()=>{class o extends Iv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+wh++,this._labelId="mat-form-field-label-"+wh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=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(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Yi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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,Yc(this._label.nativeElement,"transitionend").pipe((0,Gt.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,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.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,a=".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 d=t.querySelectorAll(`${a}, ${l}`);for(let h=0;h0?.75*H+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,We,Fo,We]}),o})();const qm={provide:new u.OlP("mat-select-scroll-strategy"),deps:[xi],useFactory:function od(o){return()=>o.scrollStrategies.reposition()}};let rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[qm],imports:[T.ez,eo,eh,We,Jn,is,eh,We]}),o})();const Qm=["tooltip"],xh="tooltip-panel",Km=wn({passive:!0}),Zm=new u.OlP("mat-tooltip-scroll-strategy"),Gv={provide:Zm,deps:[xi],useFactory:function Uv(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},qv=new u.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Wv(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let $v=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,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.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=hn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=hn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(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,a])=>{e.removeEventListener(t,a,Km)}),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 dl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.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(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${xh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Wn(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),ft(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:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${xh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&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,a])=>{this._elementRef.nativeElement.addEventListener(t,a,Km)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){u.$Z()},o.\u0275dir=u.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})(),Xm=(()=>{class o extends $v{constructor(e,t,a,l,c,n,i,s,d,h,f,b){super(e,t,a,l,c,n,i,s,d,h,f,b),this._tooltipComponent=Qv}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xi),u.Y36(u.SBq),u.Y36(ll),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(di),u.Y36(Dg),u.Y36(pn),u.Y36(Zm),u.Y36(Yn,8),u.Y36(qv,8),u.Y36(T.K0))},o.\u0275dir=u.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.qOj]}),o})(),Yv=(()=>{class o{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.sBO),u.Y36(u.QbO,8))},o.\u0275dir=u.lG2({type:o}),o})(),Qv=(()=>{class o extends Yv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.sBO),u.Y36(jo),u.Y36(u.QbO,8))},o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&u.Gf(Qm,7),2&e){let a;u.iGM(a=u.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&u.Udp("zoom",t.isVisible()?1:null)},features:[u.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(u.TgZ(0,"div",0,1),u.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),u.ALo(2,"async"),u._uU(3),u.qZA()),2&e){let a;u.ekj("mat-tooltip-handset",null==(a=u.lcZ(2,4,t._isHandset))?null:a.matches),u.Q6J("ngClass",t.tooltipClass),u.xp6(3),u.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),o})(),gl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[Gv],imports:[zc,T.ez,eo,We,We,Jn]}),o})(),sd=(()=>{class o{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const t_={provide:sd,deps:[[new u.FiY,new u.tp0,sd]],useFactory:function e_(o){return o||new sd}};let er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[t_],imports:[T.ez,xn,rs,gl,We]}),o})();var r_=x(1005);const aA=["mat-menu-item",""];function as(o,r){1&o&&(u.O4$(),u.TgZ(0,"svg",2),u._UZ(1,"polygon",3),u.qZA())}const oA=["*"];function Th(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"div",0),u.NdJ("keydown",function(a){u.CHM(e);const l=u.oxw();return u.KtG(l._handleKeydown(a))})("click",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationDone(a))}),u.TgZ(1,"div",1),u.Hsn(2),u.qZA()()}if(2&o){const e=u.oxw();u.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),u.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Eh={transformMenu:ri("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ri("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zE=new u.OlP("MatMenuContent"),Sh=new u.OlP("MAT_MENU_PANEL"),ld=mr(Wa(class{}));let no=(()=>{class o extends ld{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class o{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+a_++}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(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!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 Lc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Pi.w)(e=>(0,Yi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Pi.w)(t=>(0,Yi.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:Wn(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)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(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)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36($t),u.Y36(u.sBO))},o.\u0275dir=u.lG2({type:o,contentQueries:function(e,t,a){if(1&e&&(u.Suo(a,zE,5),u.Suo(a,no,5),u.Suo(a,no,4)),2&e){let l;u.iGM(l=u.CRH())&&(t.lazyContent=l.first),u.iGM(l=u.CRH())&&(t._allItems=l),u.iGM(l=u.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&u.Gf(u.Rgc,5),2&e){let a;u.iGM(a=u.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),cA=(()=>{class o extends os{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36($t),u.Y36(u.sBO))},o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&u.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u._Bn([{provide:Sh,useExisting:o}]),u.qOj],ngContentSelectors:oA,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&&(u.F$t(),u.YNc(0,Th,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Eh.transformMenu,Eh.fadeInItems]},changeDetection:0}),o})();const Mh=new u.OlP("mat-menu-scroll-strategy"),s_={provide:Mh,deps:[xi],useFactory:function o_(o){return()=>o.scrollStrategies.reposition()}},l_=wn({passive:!0});let uA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=h=>{jc(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof os?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,l_),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,l_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof os&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof os?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Xt.h)(a=>"void"===a.toState),(0,Gt.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Yo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,h]=[a,l],f=0;if(this.triggersSubmenu()){if(h=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:h,overlayY:c,offsetY:f},{originX:a,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:h,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Xt.h)(c=>c!==this._menuItemInstance),(0,Xt.h)(()=>this._menuOpen)):(0,De.of)();return(0,Yi.T)(e,a,l,t)}_handleMousedown(e){$n(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,Xt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,r_.g)(0,oh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof os&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,r_.g)(0,oh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ch(e.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xi),u.Y36(u.SBq),u.Y36(u.s_b),u.Y36(Mh),u.Y36(Sh,8),u.Y36(no,10),u.Y36(Yn,8),u.Y36(pn),u.Y36(u.R0b))},o.\u0275dir=u.lG2({type:o,hostVars:3,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&u.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),o})(),hA=(()=>{class o extends uA{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.qOj]}),o})(),la=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[s_],imports:[T.ez,We,pi,eo,Jn,We]}),o})();var pA=x(4742),fA=x(1810);function Dh(...o){const r=(0,Da.jO)(o),{args:e,keys:t}=(0,pA.D)(o),a=new Hi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{h||(h=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!h)&&(s||l.next(t?(0,fA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,ih.Z)(r)):a}var _l=x(3099);const c_=["*"];let bl;function Cl(o){return function d_(){if(void 0===bl&&(bl=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(bl=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return bl}()?.createHTML(o)||o}function ss(o){return Error(`Unable to find icon with the name "${o}"`)}function u_(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function h_(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class ro{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ls=(()=>{class o{constructor(e,t,a,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new ro(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(u.q3G.HTML,a);if(!c)throw h_(a);const n=Cl(c);return this._addSvgIconConfig(e,t,new ro("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new ro(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(u.q3G.HTML,t);if(!l)throw h_(t);const c=Cl(l);return this._addSvgIconSetConfig(e,new ro("",c,a))}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(u.q3G.RESOURCE_URL,e);if(!t)throw u_(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(cd(a)):this._loadSvgIconFromConfig(new ro(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>cd(l)))}getNamedSvgIcon(e,t=""){const a=Hh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,ln._)(ss(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(cd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>cd(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Dh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw ss(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(Cl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(Cl("")),a=e.attributes;for(let l=0;lCl(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,_l.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Hh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.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 a=0;ar?r.pathname+r.search:""}}}),bA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],f_=bA.map(o=>`[${o}]`).join(", "),dd=/^url\(['"]?#(.*?)['"]?\)$/;let vr=(()=>{class o extends _A{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||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=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(f_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(dd):null;if(s){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(ls),u.$8M("aria-hidden"),u.Y36(YE),u.Y36(u.qLn),u.Y36($E,8))},o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(u.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),u.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:[u.qOj],ngContentSelectors:c_,decls:1,vars:0,template:function(e,t){1&e&&(u.F$t(),u.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),o})(),Ar=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})();function En(o){return!!o&&(o instanceof Hi.y||(0,Tn.m)(o.lift)&&(0,Tn.m)(o.subscribe))}var wl=x(6063);class CA extends He.x{constructor(r=1/0,e=1/0,t=wl.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew CA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class vl{}let m_=(()=>{class o extends vl{getTranslation(e){return(0,De.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class Ph{}let Rh=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();function ud(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let a,l,c,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),o){if(!ud(o[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=o.length)==r.length){for(l=0;l{da(r[t])?t in o?e[t]=__(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Al{}let b_=(()=>{class o extends Al{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!ca(e)||!ca(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return ca(c)?c:a}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class xl{}let C_=(()=>{class o extends xl{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class Ih{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new u.vpe,this.onLangChange=new u.vpe,this.onDefaultLangChange=new u.vpe}}const kh=new u.OlP("USE_STORE"),Tl=new u.OlP("USE_DEFAULT_LANG"),Vh=new u.OlP("DEFAULT_LANGUAGE"),hd=new u.OlP("USE_EXTEND");let Sn=(()=>{class o{constructor(e,t,a,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new u.vpe,this._onLangChange=new u.vpe,this._onDefaultLangChange=new u.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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(g_(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),g_(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?__(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,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),En(c[i])&&(n=!0);return n?Dh(t.map(s=>En(c[s])?c[s]:(0,De.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((h,f)=>{d[t[f]]=h}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!ca(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Gi.b)(a=>En(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return En(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!ca(e)||!e.length)throw new Error('Parameter "key" required');return(0,jr.z)(Nr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Pi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!ca(e)||!e.length)throw new Error('Parameter "key" required');return(0,jr.z)(Nr(()=>this.get(e,t)),this.onLangChange.pipe((0,Pi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return En(l)?l:(0,De.of)(l)})))}instant(e,t){if(!ca(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(En(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Ih),u.LFG(vl),u.LFG(xl),u.LFG(Al),u.LFG(Ph),u.LFG(Tl),u.LFG(kh),u.LFG(hd),u.LFG(Vh))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),ki=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);En(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ud(e,this.lastKey)&&ud(t,this.lastParams))return this.value;let a;if(ca(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{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(Sn,16),u.Y36(u.sBO,16))},o.\u0275pipe=u.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),cs=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:vl,useClass:m_},e.compiler||{provide:xl,useClass:C_},e.parser||{provide:Al,useClass:b_},e.missingTranslationHandler||{provide:Ph,useClass:Rh},Ih,{provide:kh,useValue:e.isolate},{provide:Tl,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:Vh,useValue:e.defaultLanguage},Sn]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:vl,useClass:m_},e.compiler||{provide:xl,useClass:C_},e.parser||{provide:Al,useClass:b_},e.missingTranslationHandler||{provide:Ph,useClass:Rh},{provide:kh,useValue:e.isolate},{provide:Tl,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:Vh,useValue:e.defaultLanguage},Sn]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),pd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[er,la,Ar,xn,cs,T.ez]}),o})();function yA(o,r){}class El{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let y_=(()=>{class o extends Ja{constructor(e,t,a,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=Lo(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Lo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Lo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(ju),u.Y36(T.K0,8),u.Y36(El),u.Y36(Fc),u.Y36(u.R0b),u.Y36(ui),u.Y36(pn))},o.\u0275cmp=u.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&u.Gf(dh,7),2&e){let a;u.iGM(a=u.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&u.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,yA,0,0,"ng-template",0)},dependencies:[dh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Bh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Wn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const w_=new u.OlP("DialogScrollStrategy"),wA=new u.OlP("DialogData"),vA=new u.OlP("DefaultDialogConfig"),xA={provide:w_,deps:[xi],useFactory:function AA(o){return()=>o.scrollStrategies.block()}};let v_=0,Oh=(()=>{class o{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(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}open(e,t){(t={...this._defaultOptions||new El,...t}).id=t.id||"cdk-dialog-"+v_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Bh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){Lh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Lh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Lh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Yo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:El,useValue:a},{provide:Bh,useValue:t},{provide:ui,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=y_;const i=new dl(n,a.viewContainerRef,u.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof u.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new ch(e,null,n,c))}else{const n=a.attachComponentPortal(new dl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:wA,useValue:e.data},{provide:Bh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Yn,null,u.XFs.Optional))&&c.push({provide:Yn,useValue:{value:e.direction,change:(0,De.of)()}}),u.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(xi),u.LFG(u.zs3),u.LFG(vA,8),u.LFG(o,12),u.LFG(oa),u.LFG(w_))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();function Lh(o,r){let e=o.length;for(;e--;)r(o[e])}let TA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[Oh,xA],imports:[eo,aa,zc,aa]}),o})();function A_(o,r){}const ds={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},EA={dialogContainer:ri("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",wm([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),io("@*",Xo(),{optional:!0})]),ds),_t("* => void, * => exit",wm([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),io("@*",Xo(),{optional:!0})]),ds)])};class Sl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ds.params.enterAnimationDuration,this.exitAnimationDuration=ds.params.exitAnimationDuration}}let Fh=(()=>{class o extends y_{constructor(e,t,a,l,c,n,i,s){super(e,t,a,l,c,n,i,s),this._animationStateChanged=new u.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(ju),u.Y36(T.K0,8),u.Y36(Sl),u.Y36(Fc),u.Y36(u.R0b),u.Y36(ui),u.Y36(pn))},o.\u0275cmp=u.Xpm({type:o,selectors:[["ng-component"]],features:[u.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),jh=(()=>{class o extends Fh{constructor(e,t,a,l,c,n,i,s,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ds.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ds.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.SBq),u.Y36(ju),u.Y36(T.K0,8),u.Y36(Sl),u.Y36(Fc),u.Y36(u.R0b),u.Y36(ui),u.Y36(u.sBO),u.Y36(pn))},o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&u.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(u.Ikx("id",t._config.id),u.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),u.d8E("@dialogContainer",t._getAnimationState()))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,A_,0,0,"ng-template",0)},dependencies:[dh],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[EA.dialogContainer]}}),o})();class xr{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Xt.h)(a=>"opened"===a.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Xt.h)(a=>"closed"===a.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Yi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Xt.h)(a=>27===a.keyCode&&!this.disableClose&&!Wn(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Nh(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Xt.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const zh=new u.OlP("MatDialogData"),SA=new u.OlP("mat-dialog-default-options"),fd=new u.OlP("mat-dialog-scroll-strategy"),us={provide:fd,deps:[xi],useFactory:function x_(o){return()=>o.scrollStrategies.block()}};let T_=0,MA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,h){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(Oh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Sl,...t}).id=t.id||`${this._idPrefix}${T_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Sl,useValue:t},{provide:El,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){u.$Z()},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),ua=(()=>{class o extends MA{constructor(e,t,a,l,c,n,i,s){super(e,t,l,n,i,c,xr,jh,zh,s)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(xi),u.LFG(u.zs3),u.LFG(T.Ye,8),u.LFG(SA,8),u.LFG(fd),u.LFG(o,12),u.LFG(oa),u.LFG(u.QbO,8))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),E_=0,Ml=(()=>{class o{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+E_++}ngOnInit(){this._dialogRef||(this._dialogRef=function DA(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xr,8),u.Y36(u.SBq),u.Y36(ua))},o.\u0275dir=u.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&u.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),ha=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),Dl=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=u.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),hs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[ua,us],imports:[TA,eo,aa,We,We]}),o})();function D_(o,r){for(const e of o)if(e.namespace+":"+e.friendlyName===r)return e;return null}function Tr(){const o=new Sl;return o.disableClose=!0,o.autoFocus=!1,o}x(4327),new Intl.Collator("cs",{numeric:!0});let gi=(()=>{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],a=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?a:this.addMissingValuesToProperty(l,a)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const a of Object.keys(t))t[a]=this.addMissingValuesToProperty(e[a],t[a]);return t}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var ao=x(1214);let ps=(()=>{class o{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(ti),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=function bd(o,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(o))return l}return""}("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}startIdpFilterKeeper(){this.router.events.pipe((0,Xt.h)(e=>e instanceof Wr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.zs3),u.LFG(gi),u.LFG(ua),u.LFG(Un),u.LFG(ao.Ct))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),qh=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xr))},o.\u0275cmp=u.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&&(u.TgZ(0,"h2",0),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ha,ki]}),o})();var Wh=x(930);function $h(o,r){const e="object"==typeof r;return new Promise((t,a)=>{const l=new Wh.Hp({next:c=>{t(c),l.unsubscribe()},error:a,complete:()=>{e?t(r.defaultValue):a(new Ao.K)}});o.subscribe(l)})}function Yh(o,r){1&o&&(u.TgZ(0,"mat-icon",2),u._uU(1," info "),u.qZA())}function Qh(o,r){1&o&&(u.TgZ(0,"mat-icon",2),u._uU(1," warning "),u.qZA())}function ZA(o,r){1&o&&(u.TgZ(0,"mat-icon",2),u._uU(1," dangerous "),u.qZA())}function XA(o,r){1&o&&(u.TgZ(0,"mat-icon",2),u._uU(1," check_circle "),u.qZA())}const ex=["*"];let Jh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ex,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&&(u.F$t(),u.TgZ(0,"div",0),u.YNc(1,Yh,2,0,"mat-icon",1),u.YNc(2,Qh,2,0,"mat-icon",1),u.YNc(3,ZA,2,0,"mat-icon",1),u.YNc(4,XA,2,0,"mat-icon",1),u.Hsn(5),u.qZA()),2&e&&(u.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),u.xp6(1),u.Q6J("ngIf","info"===t.alert_type),u.xp6(1),u.Q6J("ngIf","warn"===t.alert_type),u.xp6(1),u.Q6J("ngIf","error"===t.alert_type),u.xp6(1),u.Q6J("ngIf","success"===t.alert_type))},dependencies:[vr,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),B_=(()=>{class o{constructor(e){this.dialogRef=e}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xr))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.qZA()(),u.TgZ(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),u.xp6(4),u.hij(" ",u.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),u.xp6(3),u.hij(" ",u.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Ml,ha,Dl,Qn,Jh,ki]}),o})(),Kh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),u._uU(3," info "),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u._uU(7),u.ALo(8,"translate"),u.qZA()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[vr,ki],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),O_=(()=>{class o{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(zh),u.Y36(xr))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.qZA()(),u.TgZ(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),u.xp6(4),u.hij(" ",u.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),u.xp6(3),u.hij(" ",u.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Ml,ha,Dl,Qn,Jh,ki]}),o})(),Cd=(()=>{class o{constructor(e,t,a,l){this.dialog=e,this.oauthService=t,this.authService=a,this.store=l}openMfaWindow(){let e=null,t=null;const a=Tr();a.width="450px";const l=this.dialog.open(B_,a);let c=!1;if(l.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),e=this.setupMfaWindow(),e){const i=Tr();i.width="450px",i.panelClass="noBorderDialog",t=this.dialog.open(Kh,i)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=Tr();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(O_,n)}return new Hi.y(n=>{const i=setInterval(()=>e?.closed?(clearInterval(i),t.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):c?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ua),u.LFG(ao.Ct),u.LFG(ps),u.LFG(gi))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fs=(()=>{class o{constructor(e,t,a,l,c,n,i,s){this.authService=e,this.oauthService=t,this.storeService=a,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return $h(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Tr();this.dialog.open(qh,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return $h(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const a={};return t.split("&").forEach(l=>{const c=l.split("=");a[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:a,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Xt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ps),u.LFG(ao.Ct),u.LFG(gi),u.LFG(Zp),u.LFG(at),u.LFG(ua),u.LFG(ti),u.LFG(Cd))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),L_=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ls),u.LFG(li))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),F_=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xr))},o.\u0275cmp=u.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&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div",2)(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.close()}),u._uU(9),u.ALo(10,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),u.xp6(3),u.hij(" ",u.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),u.xp6(5),u.hij(" ",u.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Ml,ha,Dl,Qn,ki]}),o})(),j_=(()=>{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=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new u.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,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Sn))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zh=(()=>{class o{constructor(e,t,a,l,c,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i}intercept(e,t){const a=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=Tr();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(F_,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}handleRequest(e,t){const a=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,M.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow().pipe((0,Pi.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,ln._)(()=>n)));{const i=this.formatErrors(c,e);return void 0===i?(0,ln._)(()=>c):(a&&this.notificator.showRPCError(i),(0,ln._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(ps),u.LFG(j_),u.LFG(yd),u.LFG(gi),u.LFG(ua),u.LFG(fs),u.LFG(Cd))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),ix=(()=>{class o{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("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 a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,ln._)(c)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(yd),u.LFG(ps),u.LFG(gi))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),gs=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(Un),u.LFG(gi))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),N_=(()=>{class o{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const a of e)if(a.newApps.admin===t||a.newApps.profile===t||a.newApps.pwdReset===t||a.newApps.consolidator===t||a.newApps.linker===t)return a;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=o.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(gi))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),nx=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},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)(u.Y36(u.Qsj),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o}),o})(),pa=(()=>{class o extends nx{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,features:[u.qOj]}),o})();const Vi=new u.OlP("NgValueAccessor"),Xh={provide:Vi,useExisting:(0,u.Gpc)(()=>wd),multi:!0},U_=new u.OlP("CompositionEventMode");let wd=(()=>{class o extends nx{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rx(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(U_,8))},o.\u0275dir=u.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&&u.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:[u._Bn([Xh]),u.qOj]}),o})();function nn(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function G_(o){return null!=o&&"number"==typeof o.length}const ai=new u.OlP("NgValidators"),Sr=new u.OlP("NgAsyncValidators"),q_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ms{static min(r){return function vd(o){return r=>{if(nn(r.value)||nn(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(nn(r.value)||nn(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return ep(r)}static requiredTrue(r){return function W_(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function tp(o){return nn(o.value)||q_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function oo(o){return r=>nn(r.value)||!G_(r.value)?null:r.value.lengthG_(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function ip(o){if(!o)return _s;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(nn(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return np(r)}static composeAsync(r){return K_(r)}}function ep(o){return nn(o.value)?{required:!0}:null}function _s(o){return null}function sx(o){return null!=o}function Y_(o){return(0,u.QGY)(o)?(0,yi.D)(o):o}function lx(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Q_(o,r){return r.map(e=>e(o))}function J_(o){return o.map(r=>function cx(o){return!o.validate}(r)?r:e=>r.validate(e))}function np(o){if(!o)return null;const r=o.filter(sx);return 0==r.length?null:function(e){return lx(Q_(e,r))}}function Ad(o){return null!=o?np(J_(o)):null}function K_(o){if(!o)return null;const r=o.filter(sx);return 0==r.length?null:function(e){return Dh(Q_(e,r).map(Y_)).pipe((0,ze.U)(lx))}}function xd(o){return null!=o?K_(J_(o)):null}function rp(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function Z_(o){return o._rawValidators}function X_(o){return o._rawAsyncValidators}function Td(o){return o?Array.isArray(o)?o:[o]:[]}function Ed(o,r){return Array.isArray(o)?o.includes(r):o===r}function ap(o,r){const e=Td(r);return Td(o).forEach(a=>{Ed(e,a)||e.push(a)}),e}function op(o,r){return Td(r).filter(e=>!Ed(o,e))}class sp{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Ad(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=xd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Bi extends sp{get formDirective(){return null}get path(){return null}}class tr extends sp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let ux=(()=>{class o extends class eb{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(tr,2))},o.\u0275dir=u.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&u.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[u.qOj]}),o})();const Pl="VALID",Md="INVALID",bs="PENDING",fa="DISABLED";function up(o){return(Dd(o)?o.validators:o)||null}function mx(o){return Array.isArray(o)?Ad(o):o||null}function ob(o,r){return(Dd(r)?r.asyncValidators:o)||null}function _x(o){return Array.isArray(o)?xd(o):o||null}function Dd(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class bx{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=mx(this._rawValidators),this._composedAsyncValidatorFn=_x(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Pl}get invalid(){return this.status===Md}get pending(){return this.status==bs}get disabled(){return this.status===fa}get enabled(){return this.status!==fa}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=mx(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=_x(r)}addValidators(r){this.setValidators(ap(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(ap(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(op(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(op(r,this._rawAsyncValidators))}hasValidator(r){return Ed(this._rawValidators,r)}hasAsyncValidator(r){return Ed(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=bs,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=fa,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Pl,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pl||this.status===bs)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fa:Pl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=bs,this._hasOwnPendingAsyncValidator=!0;const e=Y_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new u.vpe,this.statusChanges=new u.vpe}_calculateStatus(){return this._allControlsDisabled()?fa:this.errors?Md:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bs)?bs:this._anyControlsHaveStatus(Md)?Md:Pl}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Dd(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class hp extends bx{constructor(r,e,t){super(up(e),ob(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function lb(o,r,e){o._forEachChild((t,a)=>{if(void 0===e[a])throw new u.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function sb(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new u.vHH(1e3,"");if(!t[e])throw new u.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function so(o,r){Rl(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function vx(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&fp(o,r)})}(o,r),function cb(o,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function pp(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&fp(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function wx(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function Pd(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Rd(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Oi(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Rl(o,r){const e=Z_(o);null!==r.validator?o.setValidators(rp(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=X_(o);null!==r.asyncValidator?o.setAsyncValidators(rp(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const a=()=>o.updateValueAndValidity();Oi(r._rawValidators,a),Oi(r._rawAsyncValidators,a)}function Rd(o,r){let e=!1;if(null!==o){if(null!==r.validator){const a=Z_(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,o.setValidators(l))}}if(null!==r.asyncValidator){const a=X_(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,o.setAsyncValidators(l))}}}const t=()=>{};return Oi(r._rawValidators,t),Oi(r._rawAsyncValidators,t),e}function fp(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function db(o,r){Rl(o,r)}function mp(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const TS={provide:Bi,useExisting:(0,u.Gpc)(()=>Bl)},Vl=(()=>Promise.resolve(null))();let Bl=(()=>{class o extends Bi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new hp({},Ad(e),xd(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),so(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new hp({});db(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mp(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)(u.Y36(ai,10),u.Y36(Sr,10))},o.\u0275dir=u.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([TS]),u.qOj]}),o})();function hb(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function pb(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const _p=class extends bx{constructor(r=null,e,t){super(up(e),ob(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=pb(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){hb(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){hb(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){pb(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},Cb={provide:tr,useExisting:(0,u.Gpc)(()=>Cs)},bp=(()=>Promise.resolve(null))();let Cs=(()=>{class o extends tr{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new _p,this._registered=!1,this.update=new u.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=function kl(o,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===wd?e=l:function ga(o){return Object.getPrototypeOf(o.constructor)===pa}(l)?t=l:a=l}),a||t||e||null}(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),function Il(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(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(){so(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){bp.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,u.D6c)(t);bp.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Hd(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(Bi,9),u.Y36(ai,10),u.Y36(Sr,10),u.Y36(Vi,10),u.Y36(u.sBO,8))},o.\u0275dir=u.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:[u._Bn([Cb]),u.qOj,u.TTD]}),o})(),Mx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();const yp=new u.OlP("NgModelWithFormControlWarning"),SS={provide:Bi,useExisting:(0,u.Gpc)(()=>kd)};let kd=(()=>{class o extends Bi{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 u.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&&(Rd(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 so(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Pd(e.control||null,e,!1),function Mr(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,mp(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,a=this.form.get(e.path);t!==a&&(Pd(t||null,e),(o=>o instanceof _p)(a)&&(so(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);db(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function ub(o,r){return Rd(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Rl(this.form,this),this._oldForm&&Rd(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(ai,10),u.Y36(Sr,10))},o.\u0275dir=u.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([SS]),u.qOj,u.TTD]}),o})(),_a=(()=>{class o{constructor(){this._validator=_s}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):_s,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=u.lG2({type:o,features:[u.TTD]}),o})();const Pb={provide:ai,useExisting:(0,u.Gpc)(()=>Fl),multi:!0};let Fl=(()=>{class o extends _a{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=e=>ep}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.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&&u.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([Pb]),u.qOj]}),o})(),Vb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Mx]}),o})(),Sp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Vb]}),o})(),Ld=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:yp,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Vb]}),o})();const Nx=wn({passive:!0});let kS=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ei.E;const t=ni(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new He.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,Nx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,Nx)}}),l}stopMonitoring(e){const t=ni(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.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)(u.LFG(di),u.LFG(u.R0b))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),g=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})();const _=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),C=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let w=0;const v=al(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let E=(()=>{class o extends v{constructor(e,t,a,l,c,n,i,s,d,h){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+w++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>zy().has(H)),this._iOSKeyupListener=H=>{const N=H.target;!N.value&&0===N.selectionStart&&0===N.selectionEnd&&(N.setSelectionRange(1,1),N.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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=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(){return this._required??this.ngControl?.control?.hasValidator(ms.required)??!1}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&zy().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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){C.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)(u.Y36(u.SBq),u.Y36(di),u.Y36(tr,10),u.Y36(Bl,8),u.Y36(kd,8),u.Y36(qc),u.Y36(_,10),u.Y36(kS),u.Y36(u.R0b),u.Y36(vh,8))},o.\u0275dir=u.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&&u.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(u.Ikx("disabled",t.disabled)("required",t.required),u.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),u.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:[u._Bn([{provide:fl,useExisting:o}]),u.qOj,u.TTD]}),o})(),S=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[qc],imports:[g,is,We,g,is]}),o})();function P(o,r){1&o&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&o&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let R=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(xr),u.Y36(Sn),u.Y36(yd),u.Y36(Rt),u.Y36(gi))},o.\u0275cmp=u.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&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"input",2,3),u.NdJ("ngModelChange",function(l){return t.subject=l}),u.qZA(),u.YNc(10,P,3,3,"mat-error",4),u.qZA(),u.TgZ(11,"mat-form-field")(12,"mat-label"),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"textarea",5),u.NdJ("ngModelChange",function(l){return t.message=l}),u.ALo(16,"translate"),u._uU(17," "),u.qZA(),u.TgZ(18,"mat-hint"),u._uU(19),u.ALo(20,"translate"),u.qZA()()(),u.TgZ(21,"div",6)(22,"div",7)(23,"button",8),u.NdJ("click",function(){return t.close()}),u._uU(24),u.ALo(25,"translate"),u.qZA(),u.TgZ(26,"button",9),u.NdJ("click",function(){return t.sendBugReport()}),u._uU(27),u.ALo(28,"translate"),u.qZA()()()),2&e){const a=u.MAs(9);u.xp6(1),u.Oqu(u.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),u.xp6(5),u.Oqu(u.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),u.xp6(2),u.Q6J("ngModel",t.subject),u.xp6(2),u.Q6J("ngIf",a.invalid),u.xp6(3),u.Oqu(u.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),u.xp6(2),u.s9C("placeholder",u.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),u.Q6J("ngModel",t.message),u.xp6(4),u.Oqu(u.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),u.xp6(5),u.hij(" ",u.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),u.xp6(2),u.Q6J("disabled",a.invalid),u.xp6(1),u.hij(" ",u.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,wd,ux,Fl,Cs,Qn,Im,Fm,fi,ad,E,Ml,ha,Dl,ki],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),L=(()=>{class o{transform(e,t,a){return e[`${a}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=u.Yjl({name:"localisedText",type:o,pure:!0}),o})(),X=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=u.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),re=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=u.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function me(o,r){if(1&o&&(u.TgZ(0,"a",13),u.ALo(1,"localisedLink"),u._UZ(2,"img",14),u.ALo(3,"footerLogoPath"),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,2,e,t.language),u.LSH),u.xp6(2),u.s9C("src",u.lcZ(3,5,e.logo),u.LSH)}}function Ae(o,r){if(1&o&&(u.TgZ(0,"span"),u._UZ(1,"img",14),u.ALo(2,"footerLogoPath"),u.qZA()),2&o){const e=u.oxw().$implicit;u.xp6(1),u.s9C("src",u.lcZ(2,1,e.logo),u.LSH)}}function Pe(o,r){if(1&o&&(u.TgZ(0,"div"),u.YNc(1,me,4,7,"a",11),u.ALo(2,"localisedLink"),u.YNc(3,Ae,3,3,"span",12),u.ALo(4,"localisedLink"),u.qZA()),2&o){const e=r.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",u.xi3(2,2,e,t.language)),u.xp6(2),u.Q6J("ngIf",!u.xi3(4,5,e,t.language))}}const je=function(o){return{"min-height":o}};function Ze(o,r){if(1&o&&(u.TgZ(0,"div",10),u.YNc(1,Pe,5,8,"div",5),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,je,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}const be=function(o){return{color:o}};function $e(o,r){if(1&o&&(u.TgZ(0,"i",20),u._uU(1),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(2,be,t.linksTextColor)),u.xp6(1),u.hij(" ",e.icon," ")}}function bt(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"span",21),u.NdJ("click",function(){u.CHM(e);const a=u.oxw().$implicit,l=u.oxw(3);return u.KtG(l.openDialog(a.dialog))}),u._uU(1),u.ALo(2,"localisedText"),u.qZA()}if(2&o){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,be,t.linksTextColor)),u.xp6(1),u.hij("",u.Dn7(2,2,e,t.language,"label")," ")}}function jt(o,r){if(1&o&&(u.TgZ(0,"a",22),u.ALo(1,"localisedLink"),u._uU(2),u.ALo(3,"localisedText"),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,3,e,t.language),u.LSH)("ngStyle",u.VKq(10,be,t.linksTextColor)),u.xp6(2),u.Oqu(u.Dn7(3,6,e,t.language,"label"))}}function lo(o,r){if(1&o&&(u.TgZ(0,"span",10),u._uU(1),u.ALo(2,"localisedText"),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,be,t.linksTextColor)),u.xp6(1),u.Oqu(u.Dn7(2,2,e,t.language,"label"))}}function Mp(o,r){if(1&o&&(u.TgZ(0,"div",16),u.YNc(1,$e,2,4,"i",17),u.YNc(2,bt,3,8,"span",18),u.YNc(3,jt,4,12,"a",19),u.ALo(4,"localisedLink"),u.YNc(5,lo,3,8,"span",9),u.ALo(6,"localisedLink"),u.qZA()),2&o){const e=r.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",e.icon),u.xp6(1),u.Q6J("ngIf",e.dialog),u.xp6(1),u.Q6J("ngIf",u.xi3(4,4,e,t.language)&&!e.dialog),u.xp6(2),u.Q6J("ngIf",!u.xi3(6,7,e,t.language)&&!e.dialog)}}const Dp=function(o){return{height:o}};function Hp(o,r){if(1&o&&(u.TgZ(0,"div",10),u.YNc(1,Mp,7,10,"div",15),u.qZA()),2&o){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,Dp,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}function Pp(o,r){if(1&o&&(u.TgZ(0,"div",7)(1,"h6",8),u._uU(2),u.ALo(3,"localisedText"),u.qZA(),u.YNc(4,Ze,2,4,"div",9),u.YNc(5,Hp,2,4,"div",9),u.qZA()),2&o){const e=r.$implicit,t=u.oxw();u.ekj("my-auto",t.containsLogos),u.xp6(1),u.Q6J("ngStyle",u.VKq(10,be,t.headersTextColor)),u.xp6(1),u.hij(" ",u.Dn7(3,6,e,t.language,"title")," "),u.xp6(2),u.Q6J("ngIf",e.logos),u.xp6(1),u.Q6J("ngIf",e.elements&&!e.logos)}}function Rp(o,r){if(1&o&&(u.TgZ(0,"span")(1,"a",6),u._uU(2),u.qZA()()),2&o){const e=r.$implicit,t=r.index,a=u.oxw();u.xp6(1),u.Q6J("href",e.url,u.LSH)("ngStyle",u.VKq(3,be,a.copyrightTextColor)),u.xp6(1),u.Oqu(t?", "+e.name:e.name)}}const Ip=function(o){return{background:o}};let Fd=(()=>{class o{constructor(e,t,a,l,c){this.storeService=e,this.translateService=t,this.utilsService=a,this.dialog=l,this.authService=c,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",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.getProperty("footer").columns,this.guiVersion=x(4147).i8,this.authService.isLoggedIn()&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyrightItems}openDialog(e){const t=Tr();"reportIssue"===e&&(t.width="550px",this.dialog.open(R,t))}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi),u.Y36(Sn),u.Y36(on),u.Y36(ua),u.Y36(ps))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"footer",0)(1,"div",1),u.YNc(2,Pp,6,12,"div",2),u.qZA(),u._UZ(3,"hr",3),u.TgZ(4,"div",4),u._uU(5),u.YNc(6,Rp,3,5,"span",5),u._uU(7,", web application: "),u.TgZ(8,"a",6),u._uU(9),u.qZA(),u._uU(10,", server: "),u.TgZ(11,"a",6),u._uU(12),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.VKq(11,Ip,t.bgColor)),u.xp6(2),u.Q6J("ngForOf",t.footerColumns),u.xp6(2),u.Q6J("ngStyle",u.VKq(13,be,t.copyrightTextColor)),u.xp6(1),u.hij(" \xa9 ",t.currentYear," Copyright: "),u.xp6(1),u.Q6J("ngForOf",t.copyrightItems),u.xp6(2),u.Q6J("href",t.githubRepository,u.LSH)("ngStyle",u.VKq(15,be,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.guiVersion),u.xp6(2),u.Q6J("href",t.githubBackendRepository,u.LSH)("ngStyle",u.VKq(17,be,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,L,X,re],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})();function kp(o,r){if(1&o&&(u.TgZ(0,"div",8),u._UZ(1,"div",9),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}function Vp(o,r){if(1&o&&(u.TgZ(0,"div",10),u._UZ(1,"div",11)(2,"mat-icon",12),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}const hH=function(o){return{color:o}};function pH(o,r){if(1&o&&(u.TgZ(0,"p",13),u._uU(1),u.qZA()),2&o){const e=u.oxw();u.Q6J("ngStyle",u.VKq(2,hH,e.textColor)),u.xp6(1),u.hij(" ",e.headerTitle," ")}}const fH=function(o,r){return{background:o,color:r}},gH=function(o,r){return{"min-height":o,"background-color":r}};let mH=(()=>{class o{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi),u.Y36(li),u.Y36(gs),u.Y36(Sn))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.YNc(1,kp,2,1,"div",1),u.YNc(2,Vp,3,1,"div",2),u.YNc(3,pH,2,4,"p",3),u.qZA(),u.TgZ(4,"div",4)(5,"div",5)(6,"div",6),u._UZ(7,"router-outlet"),u.qZA(),u.TgZ(8,"div",7),u._UZ(9,"perun-web-apps-footer"),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.WLB(5,fH,t.headerBackgroundColor,t.headerTextColor)),u.xp6(1),u.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),u.xp6(1),u.Q6J("ngIf","publications"===t.application),u.xp6(1),u.Q6J("ngIf",!!t.headerTitle),u.xp6(2),u.Q6J("ngStyle",u.WLB(8,gH,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,vr,Kt,Fd],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),o})();const zx=function(o){return{color:o}};function _H(o,r){if(1&o&&(u.TgZ(0,"button",8),u.ALo(1,"translate"),u.TgZ(2,"mat-icon",4),u._uU(3," apps "),u.qZA()()),2&o){const e=u.oxw(),t=u.MAs(2);u.Q6J("matMenuTriggerFor",t)("matTooltip",u.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),u.xp6(2),u.Q6J("ngStyle",u.VKq(5,zx,e.iconColor))}}function bH(o,r){if(1&o&&(u.TgZ(0,"span",9),u._uU(1),u.qZA()),2&o){const e=u.oxw();u.Q6J("ngStyle",u.VKq(6,zx,e.textColor)),u.xp6(1),u.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function CH(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"button",2),u.NdJ("click",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.onLogOut())}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&o&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"NAV.LOGOUT")," "))}let yH=(()=>{class o{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(ps))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(u.YNc(0,_H,4,7,"button",0),u.TgZ(1,"mat-menu",null,1)(3,"button",2),u.NdJ("click",function(){return t.redirectToUrl()}),u.TgZ(4,"span"),u._uU(5),u.qZA()()(),u.TgZ(6,"button",3)(7,"mat-icon",4),u._uU(8," person "),u.qZA(),u.YNc(9,bH,2,8,"span",5),u.qZA(),u.TgZ(10,"mat-menu",null,6),u.YNc(12,CH,3,3,"button",7),u.qZA()),2&e){const a=u.MAs(11);u.Q6J("ngIf",t.url),u.xp6(5),u.Oqu(t.label),u.xp6(1),u.Q6J("matMenuTriggerFor",a),u.xp6(1),u.Q6J("ngStyle",u.VKq(6,zx,t.iconColor)),u.xp6(2),u.Q6J("ngIf",null!==t.user),u.xp6(3),u.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,vr,cA,no,hA,Qn,Xm,ki],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),o})();function wH(o,r){1&o&&(u.TgZ(0,"div",6)(1,"span",7),u._uU(2," ~ \u{1f5f2}\xa0 "),u.qZA(),u.TgZ(3,"span",8),u._uU(4," DEVEL "),u.qZA(),u.TgZ(5,"span",7),u._uU(6," \xa0\u{1f5f2} ~ "),u.qZA()())}const vH=function(o,r){return{background:o,color:r}},AH=function(){return["/consolidate"]},xH=function(o){return{color:o}};let TH=(()=>{class o{constructor(e,t,a){this.storeService=e,this.sanitizer=t,this.otherApplicationService=a,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=this.storeService.getProperty("is_devel"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.profileLabel=this.storeService.getProperty("profile_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi),u.Y36(li),u.Y36(N_))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:8,vars:20,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"a",1),u._UZ(2,"div",2),u.qZA(),u.TgZ(3,"p",3),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.YNc(6,wH,7,0,"div",4),u._UZ(7,"perun-web-apps-header-menu",5),u.qZA()),2&e&&(u.Q6J("ngStyle",u.WLB(14,vH,t.bgColor,t.textColor)),u.xp6(1),u.Q6J("routerLink",u.DdM(17,AH)),u.xp6(1),u.Q6J("innerHTML",t.logo,u.oJD),u.xp6(1),u.Q6J("ngStyle",u.VKq(18,xH,t.textColor)),u.xp6(1),u.hij(" ",u.lcZ(5,12,"HEADER.TITLE")," "),u.xp6(2),u.Q6J("ngIf",t.isDevel),u.xp6(1),u.Q6J("iconColor",t.iconColor)("label",t.profileLabel)("textColor",t.textColor)("logoutEnabled",t.logoutEnabled)("url",t.profileUrl)("user",t.principal.user))},dependencies:[T.O5,T.PC,Cu,yH,ki],styles:["#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}#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),o})();const EH=function(o){return{"background-color":o}};function SH(o,r){if(1&o&&(u.TgZ(0,"div"),u._UZ(1,"perun-web-apps-header",1),u.TgZ(2,"div",2)(3,"div",3),u._UZ(4,"router-outlet"),u.qZA(),u.TgZ(5,"div",4),u._UZ(6,"perun-web-apps-footer"),u.qZA()()()),2&o){const e=u.oxw();u.xp6(2),u.Q6J("ngStyle",u.VKq(1,EH,e.contentBackgroundColor))}}function MH(o,r){1&o&&(u.TgZ(0,"div"),u._UZ(1,"perun-web-apps-login-screen-base",5),u.ALo(2,"translate"),u.qZA()),2&o&&(u.xp6(1),u.Q6J("application","consolidator")("headerTitle",u.lcZ(2,2,"HEADER.TITLE")))}let DH=(()=>{class o{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi),u.Y36(fs))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(u.YNc(0,SH,7,3,"div",0),u.YNc(1,MH,3,4,"div",0)),2&e&&(u.Q6J("ngIf",!t.isLoginScreenShow),u.xp6(1),u.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[T.O5,T.PC,Kt,mH,Fd,TH,ki],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),o})();function VS(o){return new u.vHH(3e3,!1)}function dP(){return typeof window<"u"&&typeof window.document<"u"}function Ux(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ys(o){switch(o.length){case 0:return new es;case 1:return o[0];default:return new nd(o)}}function BS(o,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const h=d.get("offset"),f=h==i,b=f&&s||new Map;d.forEach((H,N)=>{let ae=N,ke=H;if("offset"!==N)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(N);break;case Cr:ke=l.get(N);break;default:ke=r.normalizeStyleValue(N,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=h}),c.length)throw function ZH(o){return new u.vHH(3502,!1)}();return n}function Gx(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&qx(e,"start",o)));break;case"done":o.onDone(()=>t(e&&qx(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&qx(e,"destroy",o)))}}function qx(o,r,e){const l=Wx(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),c=o._data;return null!=c&&(l._data=c),l}function Wx(o,r,e,t,a="",l=0,c){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Mn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function OS(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let $x=(o,r)=>!1,LS=(o,r,e)=>[],FS=null;function Yx(o){const r=o.parentNode||o.host;return r===FS?null:r}(Ux()||typeof Element<"u")&&(dP()?(FS=(()=>document.documentElement)(),$x=(o,r)=>{for(;r;){if(r===o)return!0;r=Yx(r)}return!1}):$x=(o,r)=>o.contains(r),LS=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let jl=null,jS=!1;const NS=$x,zS=LS;let US=(()=>{class o{validateStyleProperty(e){return function hP(o){jl||(jl=function pP(){return typeof document<"u"?document.body:null}()||{},jS=!!jl.style&&"WebkitAppearance"in jl.style);let r=!0;return jl.style&&!function uP(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in jl.style,!r&&jS&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in jl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return NS(e,t)}getParentElement(e){return Yx(e)}query(e,t,a){return zS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new es(a,l)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),Qx=(()=>{class o{}return o.NOOP=new US,o})();const Jx="ng-enter",Bb="ng-leave",Ob="ng-trigger",Lb=".ng-trigger",qS="ng-animating",Kx=".ng-animating";function ws(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Zx(parseFloat(r[1]),r[2])}function Zx(o,r){return"s"===r?1e3*o:o}function Fb(o,r,e){return o.hasOwnProperty("duration")?o:function mP(o,r,e){let a,l=0,c="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(VS()),{duration:0,delay:0,easing:""};a=Zx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Zx(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else a=o;if(!e){let n=!1,i=r.length;a<0&&(r.push(function HH(){return new u.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function PH(){return new u.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,VS())}return{duration:a,delay:l,easing:c}}(o,r,e)}function Bp(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function WS(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function vs(o,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of o)r.set(t,a);return r}function YS(o,r,e){return e?r+":"+e+";":""}function QS(o){let r="";for(let e=0;e{const l=e0(a);e&&!e.has(a)&&e.set(a,o.style[l]),o.style[l]=t}),Ux()&&QS(o))}function Nl(o,r){o.style&&(r.forEach((e,t)=>{const a=e0(t);o.style[a]=""}),Ux()&&QS(o))}function Op(o){return Array.isArray(o)?1==o.length?o[0]:ph(o):o}const Xx=new RegExp("{{\\s*(.+?)\\s*}}","g");function JS(o){let r=[];if("string"==typeof o){let e;for(;e=Xx.exec(o);)r.push(e[1]);Xx.lastIndex=0}return r}function jb(o,r,e){const t=o.toString(),a=t.replace(Xx,(l,c)=>{let n=r[c];return null==n&&(e.push(function IH(o){return new u.vHH(3003,!1)}()),n=""),n.toString()});return a==t?o:a}function Nb(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const CP=/-+([a-z0-9])/g;function e0(o){return o.replace(CP,(...r)=>r[1].toUpperCase())}function yP(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function kH(o){return new u.vHH(3004,!1)}()}}function KS(o,r){return window.getComputedStyle(o)[r]}function EP(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function SP(o,r,e){if(":"==o[0]){const i=function MP(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void r.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function $H(o){return new u.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(ZS(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(ZS(c,a))}(t,e,r)):e.push(o),e}const qb=new Set(["true","1"]),Wb=new Set(["false","0"]);function ZS(o,r){const e=qb.has(o)||Wb.has(o),t=qb.has(r)||Wb.has(r);return(a,l)=>{let c="*"==o||o==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?qb.has(o):Wb.has(o)),!n&&t&&"boolean"==typeof l&&(n=l?qb.has(r):Wb.has(r)),c&&n}}const DP=new RegExp("s*:selfs*,?","g");function t0(o,r,e,t){return new HP(o).build(r,e,t)}class HP{constructor(r){this._driver=r}build(r,e,t){const a=new IP(e);return this._resetContextStyleTimingState(a),Dn(this,Op(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function BH(){return new u.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function OH(){return new u.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{JS(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(Nb(l.values()),e.errors.push(function LH(o,r){return new u.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Dn(this,Op(r.animation),e);return{type:1,matchers:EP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:zl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Dn(this,t,e)),options:zl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Dn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:zl(r.options)}}visitAnimate(r,e){const t=function VP(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return n0(Fb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=n0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Fb(e,r);return n0(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===Cr?t.push(n):e.errors.push(new u.vHH(3002,!1)):t.push(WS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let h=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function jH(o,r,e,t,a){return new u.vHH(3010,!1)}()),h=!1),l=d.startTime),h&&s.set(i,{startTime:l,endTime:a}),e.options&&function bP(o,r,e){const t=r.params||{},a=JS(o);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function RH(o){return new u.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function NH(){return new u.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function kP(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=H+N.delay+zt,N.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Dn(this,Op(r.animation),e),options:zl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:zl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:zl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function PP(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(DP,"")),o=o.replace(/@\*/g,Lb).replace(/@\w+/g,e=>Lb+"-"+e.slice(1)).replace(/:animating/g,Kx),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Mn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Dn(this,Op(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:zl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function qH(){return new u.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Fb(r.timings,e.errors,!0);return{type:12,animation:Dn(this,Op(r.animation),e),timings:t,options:null}}}class IP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zl(o){return o?(o=Bp(o)).params&&(o.params=function RP(o){return o?Bp(o):null}(o.params)):o={},o}function n0(o,r,e){return{duration:o,delay:r,easing:e}}function r0(o,r,e,t,a,l,c=null,n=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class $b{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const LP=new RegExp(":enter","g"),jP=new RegExp(":leave","g");function a0(o,r,e,t,a,l=new Map,c=new Map,n,i,s=[]){return(new NP).buildKeyframes(o,r,e,t,a,l,c,n,i,s)}class NP{buildKeyframes(r,e,t,a,l,c,n,i,s,d=[]){s=s||new $b;const h=new o0(r,e,s,a,l,d,[]);h.options=i;const f=i.delay?ws(i.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,i),Dn(this,t,h);const b=h.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let N=b.length-1;N>=0;N--){const ae=b[N];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,h.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[r0(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?ws(t.duration):null,n=null!=t.delay?ws(t.delay):null;return 0!==c&&r.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Dn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Yb);const c=ws(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Dn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?ws(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Dn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Fb(e.params?jb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?ws(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const h=e.createSubContext(r.options,s);l&&h.delayNextStep(l),s===e.element&&(i=h.currentTimeline),Dn(this,r.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const h=d.currentTime;Dn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-h+(a.startTime-t.currentTimeline.startTime)}}const Yb={};class o0{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Qb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=ws(t.duration)),null!=t.delay&&(a.delay=ws(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=jb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new o0(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Yb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new zP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(LP,"."+this._enterClassName)).replace(jP,"."+this._leaveClassName);let s=this._driver.query(this.element,r,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function WH(o){return new u.vHH(3014,!1)}()),n}}class Qb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Qb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Cr),this._currentKeyframe.set(e,Cr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function UP(o,r){const e=new Map;let t;return o.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,Cr)}else vs(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const s=jb(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??Cr),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const s=vs(n,new Map,this._backFill);s.forEach((d,h)=>{"!"===d?r.add(h):d===Cr&&e.add(h)}),t||s.set("offset",i/this.duration),a.push(s)});const l=r.size?Nb(r.values()):[],c=e.size?Nb(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return r0(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class zP extends Qb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=vs(r[0]);i.set("offset",0),l.push(i);const s=vs(r[0]);s.set("offset",tM(n)),l.push(s);const d=r.length-1;for(let h=1;h<=d;h++){let f=vs(r[h]);const b=f.get("offset");f.set("offset",tM((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return r0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function tM(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class s0{}const GP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class qP extends s0{normalizePropertyName(r,e){return e0(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(GP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function VH(o,r){return new u.vHH(3005,!1)}())}return c+l}}function iM(o,r,e,t,a,l,c,n,i,s,d,h,f){return{type:0,element:o,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:h,errors:f}}const l0={};class nM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function WP(o,r,e,t,a){return o.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,s,d){const h=[],f=this.ast.options&&this.ast.options.params||l0,H=this.buildStyles(t,n&&n.params||l0,h),N=i&&i.params||l0,ae=this.buildStyles(a,N,h),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,Hr={params:$P(N,f),delay:this.ast.options?.delay},ar=d?[]:a0(r,e,this.ast.animation,l,c,H,ae,Hr,s,h);let rn=0;if(ar.forEach(fo=>{rn=Math.max(fo.duration+fo.delay,rn)}),h.length)return iM(e,this._triggerName,t,a,zt,H,ae,[],[],lt,yt,rn,h);ar.forEach(fo=>{const go=fo.element,AD=Mn(lt,go,new Set);fo.preStyleProps.forEach(Gl=>AD.add(Gl));const Wp=Mn(yt,go,new Set);fo.postStyleProps.forEach(Gl=>Wp.add(Gl)),go!==e&&ke.add(go)});const po=Nb(ke.values());return iM(e,this._triggerName,t,a,zt,H,ae,ar,po,lt,yt,rn)}}function $P(o,r){const e=Bp(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class YP{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Bp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=jb(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class JP{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new YP(a.style,a.options&&a.options.params||{},t))}),rM(this.states,"true","1"),rM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new nM(r,a,this.states))}),this.fallbackTransition=function KP(o,r,e){return new nM(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function rM(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const ZP=new $b;class XP{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=t0(this._driver,e,t,[]);if(t.length)throw function XH(o){return new u.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=BS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=a0(this._driver,e,l,Jx,Bb,new Map,new Map,t,ZP,a),c.forEach(d=>{const h=Mn(n,d.element,new Map);d.postStyleProps.forEach(f=>h.set(f,null))})):(a.push(function eP(){return new u.vHH(3300,!1)}()),c=[]),a.length)throw function tP(o){return new u.vHH(3504,!1)}();n.forEach((d,h)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(h,b,Cr))})});const s=ys(c.map(d=>{const h=n.get(d.element);return this._buildPlayer(d,new Map,h)}));return this._playersById.set(r,s),s.onDestroy(()=>this.destroy(r)),this.players.push(s),s}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function iP(o){return new u.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Wx(e,"","","");return Gx(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);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(a[0]));break;case"destroy":this.destroy(r)}}}const aM="ng-animate-queued",c0="ng-animate-disabled",rR=[],oM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},nr="__ng_removed";class d0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function cR(o){return o??null}(t?r.value:r),t){const l=Bp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Lp="void",u0=new d0(Lp);class oR{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,rr(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function nP(o,r){return new u.vHH(3302,!1)}();if(null==t||0==t.length)throw function rP(o){return new u.vHH(3303,!1)}();if(!function dR(o){return"start"==o||"done"==o}(t))throw function aP(o,r){return new u.vHH(3400,!1)}();const l=Mn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Mn(this._engine.statesByElement,r,new Map);return n.has(e)||(rr(r,Ob),rr(r,Ob+"-"+e),n.set(e,u0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function oP(o){return new u.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new h0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(rr(r,Ob),rr(r,Ob+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const s=new d0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=u0),s.value!==Lp&&i.value===s.value){if(!function pR(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{Nl(r,ae),ba(r,ke)})}return}const f=Mn(this._engine.playersByElement,r,[]);f.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy()});let b=l.matchTransition(i.value,s.value,r,s.params),H=!1;if(!b){if(!a)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(rr(r,aM),c.onStart(()=>{jd(r,aM)})),c.onDone(()=>{let N=this.players.indexOf(c);N>=0&&this.players.splice(N,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Lb,!0);t.forEach(a=>{if(a[nr])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(r,s,Lp,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ys(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||u0,d=new d0(Lp),h=new h0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:s,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[nr];(!l||l===oM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){rr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Wx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Gx(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class sR{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new oR(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if(Jb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!Jb(e))return;const l=e[nr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),rr(r,c0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),jd(r,c0))}removeNode(r,e,t,a){if(Jb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[nr]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return Jb(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Lb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,Kx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ys(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[nr];if(e&&e.setForRemoval){if(r[nr]=oM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(c0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),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?ys(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function sP(o){return new u.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new $b,a=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Xe=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=Jx+N++;H.set(Xe,nt),Ge.forEach(xt=>rr(xt,nt))});const ae=[],ke=new Set,lt=new Set;for(let Ge=0;Geke.add(xt)):lt.add(Xe))}const yt=new Map,zt=cM(f,Array.from(ke));zt.forEach((Ge,Xe)=>{const nt=Bb+N++;yt.set(Xe,nt),Ge.forEach(xt=>rr(xt,nt))}),r.push(()=>{b.forEach((Ge,Xe)=>{const nt=H.get(Xe);Ge.forEach(xt=>jd(xt,nt))}),zt.forEach((Ge,Xe)=>{const nt=yt.get(Xe);Ge.forEach(xt=>jd(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Hr=[],ar=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Li=nt.element;if(Hr.push(xt),this.collectedEnterElements.length){const Ji=Li[nr];if(Ji&&Ji.setForMove){if(Ji.previousTriggersValues&&Ji.previousTriggersValues.has(nt.triggerName)){const ql=Ji.previousTriggersValues.get(nt.triggerName),or=this.statesByElement.get(nt.element);if(or&&or.has(nt.triggerName)){const SC=or.get(nt.triggerName);SC.value=ql,or.set(nt.triggerName,SC)}}return void xt.destroy()}}const ya=!h||!this.driver.containsElement(h,Li),Hn=yt.get(Li),xs=H.get(Li),oi=this._buildInstruction(nt,t,xs,Hn,ya);if(oi.errors&&oi.errors.length)return void ar.push(oi);if(ya)return xt.onStart(()=>Nl(Li,oi.fromStyles)),xt.onDestroy(()=>ba(Li,oi.toStyles)),void a.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>Nl(Li,oi.fromStyles)),xt.onDestroy(()=>ba(Li,oi.toStyles)),void a.push(xt);const ED=[];oi.timelines.forEach(Ji=>{Ji.stretchStartingKeyframe=!0,this.disabledNodes.has(Ji.element)||ED.push(Ji)}),oi.timelines=ED,t.append(Li,oi.timelines),c.push({instruction:oi,player:xt,element:Li}),oi.queriedElements.forEach(Ji=>Mn(n,Ji,[]).push(xt)),oi.preStyleProps.forEach((Ji,ql)=>{if(Ji.size){let or=i.get(ql);or||i.set(ql,or=new Set),Ji.forEach((SC,Y0)=>or.add(Y0))}}),oi.postStyleProps.forEach((Ji,ql)=>{let or=s.get(ql);or||s.set(ql,or=new Set),Ji.forEach((SC,Y0)=>or.add(Y0))})});if(ar.length){const Ge=[];ar.forEach(Xe=>{Ge.push(function lP(o,r){return new u.vHH(3505,!1)}())}),Hr.forEach(Xe=>Xe.destroy()),this.reportError(Ge)}const rn=new Map,po=new Map;c.forEach(Ge=>{const Xe=Ge.element;t.has(Xe)&&(po.set(Xe,Xe),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,rn))}),a.forEach(Ge=>{const Xe=Ge.element;this._getPreviousPlayers(Xe,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Mn(rn,Xe,[]).push(xt),xt.destroy()})});const fo=ae.filter(Ge=>uM(Ge,i,s)),go=new Map;lM(go,this.driver,lt,s,Cr).forEach(Ge=>{uM(Ge,i,s)&&fo.push(Ge)});const Wp=new Map;b.forEach((Ge,Xe)=>{lM(Wp,this.driver,new Set(Ge),i,"!")}),fo.forEach(Ge=>{const Xe=go.get(Ge),nt=Wp.get(Ge);go.set(Ge,new Map([...Array.from(Xe?.entries()??[]),...Array.from(nt?.entries()??[])]))});const Gl=[],xD=[],TD={};c.forEach(Ge=>{const{element:Xe,player:nt,instruction:xt}=Ge;if(t.has(Xe)){if(d.has(Xe))return nt.onDestroy(()=>ba(Xe,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void a.push(nt);let Li=TD;if(po.size>1){let Hn=Xe;const xs=[];for(;Hn=Hn.parentNode;){const oi=po.get(Hn);if(oi){Li=oi;break}xs.push(Hn)}xs.forEach(oi=>po.set(oi,Li))}const ya=this._buildAnimation(nt.namespaceId,xt,rn,l,Wp,go);if(nt.setRealPlayer(ya),Li===TD)Gl.push(nt);else{const Hn=this.playersByElement.get(Li);Hn&&Hn.length&&(nt.parentPlayer=ys(Hn)),a.push(nt)}}else Nl(Xe,xt.fromStyles),nt.onDestroy(()=>ba(Xe,xt.toStyles)),xD.push(nt),d.has(Xe)&&a.push(nt)}),xD.forEach(Ge=>{const Xe=l.get(Ge.element);if(Xe&&Xe.length){const nt=ys(Xe);Ge.setRealPlayer(nt)}}),a.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ya.destroyed);Li.length?uR(this,Xe,Li):this.processLeaveNode(Xe)}return ae.length=0,Gl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Xe=this.players.indexOf(Ge);this.players.splice(Xe,1)}),Ge.play()}),Gl}elementContainsData(r,e){let t=!1;const a=e[nr];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Lp;n.forEach(s=>{s.queued||!i&&s.triggerName!=a||c.push(s)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,h=Mn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),h.push(b)})}Nl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,h=new Set,f=e.timelines.map(H=>{const N=H.element;d.add(N);const ae=N[nr];if(ae&&ae.removedBeforeQueried)return new es(H.duration,H.delay);const ke=N!==i,lt=function hR(o){const r=[];return dM(o,r),r}((t.get(N)||rR).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===N),yt=l.get(N),zt=c.get(N),Hr=BS(0,this._normalizer,0,H.keyframes,yt,zt),ar=this._buildPlayer(H,Hr,lt);if(H.subTimeline&&a&&h.add(N),ke){const rn=new h0(r,n,N);rn.setRealPlayer(ar),s.push(rn)}return ar});s.forEach(H=>{Mn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function lR(o,r,e){let t=o.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>rr(H,qS));const b=ys(f);return b.onDestroy(()=>{d.forEach(H=>jd(H,qS)),ba(i,e.toStyles)}),h.forEach(H=>{Mn(a,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new es(r.duration,r.delay)}}class h0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new es,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Gx(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Mn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Jb(o){return o&&1===o.nodeType}function sM(o,r){const e=o.style.display;return o.style.display=r??"none",e}function lM(o,r,e,t,a){const l=[];e.forEach(i=>l.push(sM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(h=>{const f=r.computeStyle(s,h,a);d.set(h,f),(!f||0==f.length)&&(s[nr]=aR,c.push(s))}),o.set(s,d)});let n=0;return e.forEach(i=>sM(i,l[n++])),c}function cM(o,r){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:a.has(s)?1:c(s),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function rr(o,r){o.classList?.add(r)}function jd(o,r){o.classList?.remove(r)}function uR(o,r,e){ys(e).onDone(()=>o.processLeaveNode(r))}function dM(o,r){for(let e=0;ea.add(l)):r.set(o,t),e.delete(o),!0}class Kb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new sR(r,e,t),this._timelineEngine=new XP(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=t0(this._driver,l,i,[]);if(i.length)throw function KH(o,r){return new u.vHH(3404,!1)}();n=function QP(o,r,e){return new JP(o,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=OS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=OS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let gR=(()=>{class o{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=o.initialStylesByElement.get(e);l||o.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ba(this._element,this._initialStyles),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(Nl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nl(this._element,this._endStyles),this._endStyles=null),ba(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function p0(o){let r=null;return o.forEach((e,t)=>{(function mR(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class hM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:KS(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _R{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return NS(r,e)}getParentElement(r){return Yx(r)}query(r,e,t){return zS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof hM);(function wP(o,r){return 0===o||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((H,N)=>s.set(N,H))});let h=function _P(o){return o.length?o[0]instanceof Map?o:o.map(r=>WS(r)):[]}(e).map(b=>vs(b));h=function vP(o,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,KS(o,n)))}}return r}(r,h,s);const f=function fR(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=p0(r[0]),r.length>1&&(t=p0(r[r.length-1]))):r instanceof Map&&(e=p0(r)),e||t?new gR(o,e,t):null}(r,h);return new hM(r,h,i,f)}}let bR=(()=>{class o extends hh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:u.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?ph(e):e;return pM(this._renderer,null,t,"register",[a]),new CR(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.FYo),u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class CR extends class Tv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new yR(this._id,r,e||{},this._renderer)}}class yR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return pM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function pM(o,r,e,t,a){return o.setProperty(r,`@@${e}:${t}`,a)}const fM="@.disabled";let wR=(()=>{class o{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new gM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new vR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.FYo),u.LFG(Kb),u.LFG(u.R0b))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();class gM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==fM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class vR extends gM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==fM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function AR(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function xR(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const mM=[{provide:hh,useClass:bR},{provide:s0,useFactory:function ER(){return new qP}},{provide:Kb,useClass:(()=>{class o extends Kb{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0),u.LFG(Qx),u.LFG(s0),u.LFG(u.z2F))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:u.FYo,useFactory:function SR(o,r,e){return new wR(o,r,e)},deps:[ue,Kb,u.R0b]}],f0=[{provide:Qx,useFactory:()=>new _R},{provide:u.QbO,useValue:"BrowserAnimations"},...mM],_M=[{provide:Qx,useClass:US},{provide:u.QbO,useValue:"NoopAnimations"},...mM];let MR=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?_M:f0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:f0,imports:[Aa]}),o})(),yM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),Xb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[pi,We,Fo,yM,We,yM]}),o})();function eC(o){return o&&"function"==typeof o.connect}class wM{applyChanges(r,e,t,a,l){r.forEachOperation((c,n,i)=>{let s,d;if(null==c.previousIndex){const h=t(c,n,i);s=e.createEmbeddedView(h.templateRef,h.context,h.index),d=1}else null==i?(e.remove(n),d=3):(s=e.get(n),e.move(s,i),d=2);l&&l({context:s?.context,operation:d,record:c})})}detach(){}}const Fp=new u.OlP("_ViewRepeater"),GR=[[["caption"]],[["colgroup"],["col"]]],qR=["caption","colgroup, col"];function m0(o){return class extends o{constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(r){const e=this._sticky;this._sticky=it(r),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}}}const Nd=new u.OlP("CDK_TABLE");let zd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkCellDef",""]]}),o})(),Ud=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkHeaderCellDef",""]]}),o})(),tC=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkFooterCellDef",""]]}),o})();class QR{}const JR=m0(QR);let co=(()=>{class o extends JR{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=it(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 o.\u0275fac=function(e){return new(e||o)(u.Y36(Nd,8))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,a){if(1&e&&(u.Suo(a,zd,5),u.Suo(a,Ud,5),u.Suo(a,tC,5)),2&e){let l;u.iGM(l=u.CRH())&&(t.cell=l.first),u.iGM(l=u.CRH())&&(t.headerCell=l.first),u.iGM(l=u.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),u.qOj]}),o})();class _0{constructor(r,e){e.nativeElement.classList.add(...r._columnCssClassName)}}let b0=(()=>{class o extends _0{constructor(e,t){super(e,t)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(co),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),o})(),C0=(()=>{class o extends _0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const a=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(co),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),o})();class xM{constructor(){this.tasks=[],this.endTasks=[]}}const y0=new u.OlP("_COALESCED_STYLE_SCHEDULER");let TM=(()=>{class o{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new xM,this._getScheduleObservable().pipe(ft(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new xM;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,yi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Gt.q)(1))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(u.R0b))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})(),w0=(()=>{class o{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 jp?e.headerCell.template:this instanceof Np?e.footerCell.template:e.cell.template}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},o.\u0275dir=u.lG2({type:o,features:[u.TTD]}),o})();class KR extends w0{}const ZR=m0(KR);let jp=(()=>{class o extends ZR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Nd,8))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),o})();class XR extends w0{}const eI=m0(XR);let Np=(()=>{class o extends eI{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Nd,8))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),o})(),iC=(()=>{class o extends w0{constructor(e,t,a){super(e,t),this._table=a}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Nd,8))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),o})(),uo=(()=>{class o{constructor(e){this._viewContainer=e,o.mostRecentCellOutlet=this}ngOnDestroy(){o.mostRecentCellOutlet===this&&(o.mostRecentCellOutlet=null)}}return o.mostRecentCellOutlet=null,o.\u0275fac=function(e){return new(e||o)(u.Y36(u.s_b))},o.\u0275dir=u.lG2({type:o,selectors:[["","cdkCellOutlet",""]]}),o})(),v0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,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&&u.GkF(0,0)},dependencies:[uo],encapsulation:2}),o})(),x0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[uo],encapsulation:2}),o})(),nC=(()=>{class o{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.Rgc))},o.\u0275dir=u.lG2({type:o,selectors:[["ng-template","cdkNoDataRow",""]]}),o})();const EM=["top","bottom","left","right"];class tI{constructor(r,e,t,a,l=!0,c=!0,n){this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=a,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=n,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(r,e){const t=[];for(const a of r)if(a.nodeType===a.ELEMENT_NODE){t.push(a);for(let l=0;l{for(const a of t)this._removeStickyStyle(a,e)})}updateStickyColumns(r,e,t,a=!0){if(!r.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=r[0],c=l.children.length,n=this._getCellWidths(l,a),i=this._getStickyStartColumnPositions(n,e),s=this._getStickyEndColumnPositions(n,t),d=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",H=f?"left":"right";for(const N of r)for(let ae=0;aee[ae]?N:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:n.slice(h).map((N,ae)=>t[ae+h]?N:null).reverse()}))})}stickRows(r,e,t){if(!this._isBrowser)return;const a="bottom"===t?r.slice().reverse():r,l="bottom"===t?e.slice().reverse():e,c=[],n=[],i=[];for(let d=0,h=0;d{for(let d=0;d{e.some(a=>!a)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(r,e){for(const a of e)r.style[a]="",r.classList.remove(this._borderCellCss[a]);EM.some(a=>-1===e.indexOf(a)&&r.style[a])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,e,t,a){r.classList.add(this._stickCellCss),a&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${t}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const a of EM)r.style[a]&&(t+=e[a]);return t?`${t}`:""}_getCellWidths(r,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],a=r.children;for(let l=0;l0;l--)e[l]&&(t[l]=a,a+=r[l]);return t}}const T0=new u.OlP("CDK_SPL");let rC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.s_b),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["","rowOutlet",""]]}),o})(),aC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.s_b),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["","headerRowOutlet",""]]}),o})(),oC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.s_b),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["","footerRowOutlet",""]]}),o})(),sC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.s_b),u.Y36(u.SBq))},o.\u0275dir=u.lG2({type:o,selectors:[["","noDataRowOutlet",""]]}),o})(),lC=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=c,this._platform=i,this._viewRepeater=s,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new u.vpe,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=n,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=it(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=it(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(ft(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(),eC(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,(a,l,c)=>this._getEmbeddedViewArgs(a.item,c),a=>a.item.data,a=>{1===a.operation&&a.context&&this._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(a=>{t.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Gt.q)(1),ft(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),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...a],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let n=0;n{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=0;a{const n=a&&a.has(c)?a.get(c):[];if(n.length){const i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),cC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=cC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=cC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=cC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,n)=>c||!!n.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const a=this._headerRowDefs.reduce(e,!1);a&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||a||l}_switchDataSource(e){this._data=[],eC(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;eC(this.dataSource)?e=this.dataSource.connect(this):En(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,De.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(ft(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 a=Array.from(t.columns||[]).map(n=>this._columnDefsByName.get(n)),l=a.map(n=>n.sticky),c=a.map(n=>n.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let a=0;a!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&a.push(l)}return a}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,a,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,a);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let a of this._getCellTemplates(e))uo.mostRecentCellOutlet&&uo.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,a=e.length;t{const a=this._columnDefsByName.get(t);return e.extractCellTemplate(a)}):[]}_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 a of t){const l=this._document.createElement(a.tag);l.setAttribute("role","rowgroup");for(const c of a.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,a)=>t||a.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 tI(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,De.of)()).pipe(ft(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 a=this._noDataRowOutlet.viewContainer;if(t){const l=a.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else a.clear();this._isShowingNoDataRow=t}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(Yn,8),u.Y36(T.K0),u.Y36(di),u.Y36(Fp),u.Y36(y0),u.Y36($o),u.Y36(T0,12),u.Y36(u.R0b,8))},o.\u0275cmp=u.Xpm({type:o,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,a){if(1&e&&(u.Suo(a,nC,5),u.Suo(a,co,5),u.Suo(a,iC,5),u.Suo(a,jp,5),u.Suo(a,Np,5)),2&e){let l;u.iGM(l=u.CRH())&&(t._noDataRow=l.first),u.iGM(l=u.CRH())&&(t._contentColumnDefs=l),u.iGM(l=u.CRH())&&(t._contentRowDefs=l),u.iGM(l=u.CRH())&&(t._contentHeaderRowDefs=l),u.iGM(l=u.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(u.Gf(rC,7),u.Gf(aC,7),u.Gf(oC,7),u.Gf(sC,7)),2&e){let a;u.iGM(a=u.CRH())&&(t._rowOutlet=a.first),u.iGM(a=u.CRH())&&(t._headerRowOutlet=a.first),u.iGM(a=u.CRH())&&(t._footerRowOutlet=a.first),u.iGM(a=u.CRH())&&(t._noDataRowOutlet=a.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:Nd,useExisting:o},{provide:Fp,useClass:wM},{provide:y0,useClass:TM},{provide:T0,useValue:null}])],ngContentSelectors:qR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(u.F$t(GR),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[rC,aC,oC,sC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})();function cC(o,r){return o.concat(Array.from(r))}let nI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Qa]}),o})();const rI=[[["caption"]],[["colgroup"],["col"]]],aI=["caption","colgroup, col"];let E0=(()=>{class o extends lC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:Fp,useClass:wM},{provide:lC,useExisting:o},{provide:Nd,useExisting:o},{provide:y0,useClass:TM},{provide:T0,useValue:null}]),u.qOj],ngContentSelectors:aI,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(u.F$t(rI),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[rC,aC,oC,sC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})(),dC=(()=>{class o extends zd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:zd,useExisting:o}]),u.qOj]}),o})(),uC=(()=>{class o extends Ud{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:Ud,useExisting:o}]),u.qOj]}),o})(),hC=(()=>{class o extends co{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:co,useExisting:o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),u.qOj]}),o})(),pC=(()=>{class o extends b0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),o})(),fC=(()=>{class o extends C0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),o})(),MM=(()=>{class o extends jp{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:jp,useExisting:o}]),u.qOj]}),o})(),S0=(()=>{class o extends iC{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275dir=u.lG2({type:o,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:iC,useExisting:o}]),u.qOj]}),o})(),DM=(()=>{class o extends v0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:v0,useExisting:o}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[uo],encapsulation:2}),o})(),M0=(()=>{class o extends x0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:x0,useExisting:o}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[uo],encapsulation:2}),o})(),gC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[nI,We,We]}),o})();class mC extends class mI extends class zR{}{constructor(r=[]){super(),this._renderData=new Yt([]),this._filter=new Yt(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const a=e[t];if(vg(a)){const l=Number(a);return l<9007199254740991?l:a}return a},this.sortData=(e,t)=>{const a=t.active,l=t.direction;return a&&""!=l?e.sort((c,n)=>{let i=this.sortingDataAccessor(c,a),s=this.sortingDataAccessor(n,a);const d=typeof i,h=typeof s;d!==h&&("number"===d&&(i+=""),"number"===h&&(s+=""));let f=0;return null!=i&&null!=s?i>s?f=1:i{const a=Object.keys(e).reduce((c,n)=>c+e[n]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=a.indexOf(l)},this._data=new Yt(r),this._updateChangeSubscription()}get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}_updateChangeSubscription(){const r=this._sort?(0,Yi.T)(this._sort.sortChange,this._sort.initialized):(0,De.of)(null),e=this._paginator?(0,Yi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,De.of)(null),a=(0,Fr.a)([this._data,this._filter]).pipe((0,ze.U)(([n])=>this._filterData(n))),l=(0,Fr.a)([a,r]).pipe((0,ze.U)(([n])=>this._orderData(n))),c=(0,Fr.a)([l,e]).pipe((0,ze.U)(([n])=>this._pageData(n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=c.subscribe(n=>this._renderData.next(n))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,a=Math.min(e.pageIndex,t);a!==e.pageIndex&&(e.pageIndex=a,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}let D0=(()=>{class o{constructor(){this.changes=new He.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const bI={provide:D0,deps:[[new u.FiY,new u.tp0,D0]],useFactory:function _I(o){return o||new D0}};let H0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[bI],imports:[T.ez,We]}),o})();function CI(o,r){if(1&o&&(u.O4$(),u._UZ(0,"circle",4)),2&o){const e=u.oxw(),t=u.MAs(1);u.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)),u.uIk("r",e._getCircleRadius())}}function yI(o,r){if(1&o&&(u.O4$(),u._UZ(0,"circle",4)),2&o){const e=u.oxw(),t=u.MAs(1);u.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),u.uIk("r",e._getCircleRadius())}}const vI=Uo(class{constructor(o){this._elementRef=o}},"primary"),AI=new u.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function xI(){return{diameter:100}}});class Dr extends vI{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Dr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=hn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=hn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,hn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Oo(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Dr._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Dr._diameters=new WeakMap,Dr.\u0275fac=function(r){return new(r||Dr)(u.Y36(u.SBq),u.Y36(di),u.Y36(T.K0,8),u.Y36(u.QbO,8),u.Y36(AI),u.Y36(u.sBO),u.Y36($o),u.Y36(u.R0b))},Dr.\u0275cmp=u.Xpm({type:Dr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(u.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),u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[u.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(u.O4$(),u.TgZ(0,"svg",0,1),u.YNc(2,CI,1,11,"circle",2),u.YNc(3,yI,1,9,"circle",3),u.qZA()),2&r&&(u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.Q6J("ngSwitch","indeterminate"===e.mode),u.uIk("viewBox",e._getViewBox()),u.xp6(2),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let _C=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,T.ez,We]}),o})(),R0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Ar,T.ez]}),o})();const IM=new u.OlP("mat-chips-default-options");let k0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[qc,{provide:IM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),o})();function V0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?o.setProperty(t,a,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Gd(o,r){const e=r?"":"none";V0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function kM(o,r,e){V0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function bC(o,r){return r&&"none"!=r?o+" "+r:o}function VM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function B0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function O0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function L0(o,r,e){const{top:t,bottom:a,left:l,right:c}=o;return e>=t&&e<=a&&r>=l&&r<=c}function zp(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function BM(o,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:s}=o,d=i*r,h=s*r;return t>a-h&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:O0(e)})})}handleScroll(r){const e=vi(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&zp(s.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function LM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-d.x+this._passiveTransform.x,h.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new OM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=it(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Gd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ni(t)),this._handles.forEach(t=>Gd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ni(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,CC),e.addEventListener("touchstart",this._pointerDown,zM),e.addEventListener("dragstart",this._nativeDragStart,CC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ni(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Gd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Gd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Up(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),kM(t,!1,F0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Up(e),l=!a&&0!==e.button,c=this._rootElement,n=vi(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=a?jc(e):$n(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=O0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){kM(this._rootElement,!0,F0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=GM(c,this._document),this._previewRef=c,r.matchSize?qM(a,l):a.style.transform=yC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=LM(this._rootElement),qM(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return V0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},F0),Gd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function FI(o){const r=getComputedStyle(o),e=B0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=B0(r,"transition-duration"),c=B0(r,"transition-delay");return VM(l[a])+VM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||vi(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=GM(this._placeholderRef,this._document)):t=LM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Up(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Up(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,h=n.bottom-(s-c);t=UM(t,n.left+l,n.right-(i-l)),a=UM(a,d,h)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Gd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,CC),r.removeEventListener("touchstart",this._pointerDown,zM),r.removeEventListener("dragstart",this._nativeDragStart,CC)}_applyRootElementTransform(r,e){const t=yC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=bC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=yC(r,e);this._preview.style.transform=bC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Up(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=vi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&zp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Oo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ni(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function yC(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function UM(o,r,e){return Math.max(r,Math.min(e,o))}function Up(o){return"t"===o.type[0]}function GM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function qM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=yC(r.left,r.top)}function Gp(o,r){return Math.max(0,Math.min(r,o))}class GI{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),s=l[c],h=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,h,f),H=this._getSiblingOffsetPx(i,l,f),N=l.slice();return function UI(o,r,e){const t=Gp(r,o.length-1),a=Gp(e,o.length-1);if(t===a)return;const l=o[t],c=a{if(N[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:H,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=bC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),zp(ae.clientRect,0,yt)):(zt.style.transform=bC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),zp(ae.clientRect,yt,0))}),this._previousSwap.overlaps=L0(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let s=c[l];if(s===r&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ni(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{zp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:O0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",s=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const s=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function LI(o=0,r=Kc.z){return o<0&&(o=0),(0,cm.H)(o,o,r)}(0,tm).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ni(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new OM(t),this._sortStrategy=new GI(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ni(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!BM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||BM(c.clientRect,.05,r,e)&&([a,l]=function WI(o,r,e,t){const a=YM(r,t),l=QM(r,e);let c=0,n=0;if(a){const i=o.scrollTop;1===a?i>0&&(c=1):o.scrollHeight-i>o.clientHeight&&(c=2)}if(l){const i=o.scrollLeft;1===l?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=YM(i,e),l=QM(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ni(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ni(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ni(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&L0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!L0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ni(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Oo(ni(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function YM(o,r){const{top:e,bottom:t,height:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function QM(o,r){const{left:e,right:t,width:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const wC=wn({passive:!1,capture:!0});let $I=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,wC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,wC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"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:wC}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:wC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Yi.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)(u.LFG(u.R0b),u.LFG(T.K0))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const YI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let QI=(()=>{class o{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=YI){return new zI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new qI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(T.K0),u.LFG(u.R0b),u.LFG($o),u.LFG($I))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),JI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[QI],imports:[Jn]}),o})(),JM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez]}),o})(),KI=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=u.Yjl({name:"userFullName",type:o,pure:!0}),o})(),ZI=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const a=this.storage.getProperty("custom_labels");if(a)for(const l of a)if(l.label===e)return l[t];return e}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(Sn,16),u.Y36(gi,16))},o.\u0275pipe=u.Yjl({name:"customTranslate",type:o,pure:!0}),o})(),XI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),rk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),hk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[rk,We,We]}),o})(),gk=(()=>{class o{constructor(){this.changes=new He.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Tk={provide:new u.OlP("mat-datepicker-scroll-strategy"),deps:[xi],useFactory:function xk(o){return()=>o.scrollStrategies.reposition()}};let G0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[gk,Tk],imports:[T.ez,xn,eo,zc,aa,We,Jn]}),o})(),zk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[pi,We,We]}),o})();new u.OlP("mat-selectsearch-default-options");let $k=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[[T.ez,Ld,xn,Xb,Ar,_C,gl]]}),o})(),nD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})(),Yk=(()=>{class o{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=it(e)}get inset(){return this._inset}set inset(e){this._inset=it(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(u.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),u.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),o})(),q0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})(),Qk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),aD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,We,Qk,aa]}),o})(),sD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Go,We,Go,We]}),o})(),Zk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[ia]}),o})(),W0=(()=>{class o{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const d1={provide:W0,deps:[[new u.FiY,new u.tp0,W0]],useFactory:function c1(o){return o||new W0}};let uD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[d1,qc],imports:[We,T.ez,aa,xn,Zk,Ar,pi,We]}),o})(),hD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,We,Jn,Jn,We]}),o})(),fD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Go,pi,We,Xu,T.ez,Go,We,Xu,q0]}),o})(),gD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[We,We]}),o})(),D1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,We,aa,pi,Fo,zc,We]}),o})(),mD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({}),o})(),_D=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[mD,pi,We,Fo,mD,We]}),o})(),$0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,nD,q0,aD,xn,sD,Xb,Ar,gC,hs,_C,is,S,Qa,Sp,Ld,uD,G0,$w,hD,fD,la,gD,H0,er,gl,rs,pi,gC,_D,k0,nD,q0,aD,xn,sD,Xb,Ar,gC,hs,_C,is,S,Qa,Sp,Ld,uD,G0,$w,hD,fD,la,gD,H0,er,gl,rs,pi,D1,_D,k0]}),o})(),z1=(()=>{class o extends Ng{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=u.n5z(o)))(t||o)}}(),o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac}),o})();const U1={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 o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[{provide:tn,useClass:z1},{provide:Ju,useValue:U1}],imports:[T.ez,Xb,gC,Sp,k0,JI,cs,Dc,H0,er,_C,R0,Ar,la,xn,gl,is,Ld,S,pi,JM,XI,hk,G0,zk,eh,rs,$k,Qa,hs,pd,$0]}),o})();function Z1(o,r){1&o&&u._UZ(0,"mat-spinner",3)}function X1(o,r){1&o&&u._UZ(0,"th",15)}function eV(o,r){if(1&o&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&o){const e=r.$implicit;u.xp6(1),u.hij(" ",e.userExtSource.extSource.name," ")}}function tV(o,r){1&o&&u._UZ(0,"tr",17)}function iV(o,r){1&o&&u._UZ(0,"tr",18)}function nV(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"div")(1,"div",4)(2,"p"),u._uU(3),u.ALo(4,"translate"),u.ALo(5,"customTranslate"),u.qZA(),u.TgZ(6,"div",5),u._uU(7),u.ALo(8,"translate"),u.ALo(9,"customTranslate"),u.qZA(),u.TgZ(10,"table",6),u.ynx(11,7),u.YNc(12,X1,1,0,"th",8),u.YNc(13,eV,2,1,"td",9),u.BQk(),u.YNc(14,tV,1,0,"tr",10),u.YNc(15,iV,1,0,"tr",11),u.qZA()(),u.TgZ(16,"div",12)(17,"button",13),u.NdJ("click",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.onCancel())}),u._uU(18),u.ALo(19,"translate"),u.ALo(20,"customTranslate"),u.qZA(),u.TgZ(21,"button",14),u.NdJ("click",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.onSubmit())}),u._uU(22),u.ALo(23,"translate"),u.ALo(24,"customTranslate"),u.qZA()()()}if(2&o){const e=u.oxw();u.xp6(3),u.hij(" ",u.lcZ(4,7,u.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),u.xp6(4),u.hij(" ",u.lcZ(8,11,u.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),u.xp6(3),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(3),u.hij(" ",u.lcZ(19,15,u.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),u.xp6(4),u.hij(" ",u.lcZ(23,19,u.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let rV=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=a,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(n=>this.successMessage=n)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new mC(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 o.\u0275fac=function(e){return new(e||o)(u.Y36(xr),u.Y36(zh),u.Y36(Or),u.Y36(Sn),u.Y36(yd))},o.\u0275cmp=u.Xpm({type:o,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&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.TgZ(4,"div"),u.YNc(5,Z1,1,0,"mat-spinner",1),u.YNc(6,nV,25,23,"div",2),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,6,u.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),u.xp6(3),u.Tol(t.theme),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},dependencies:[T.O5,E0,uC,MM,hC,dC,S0,pC,fC,DM,M0,Ml,ha,Dl,Qn,Dr,ki,ZI]}),o})(),KV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,xn,Ar,Dc,bD,cs,is,Ld,S,R0]}),o})(),ZV=(()=>{class o{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(ps),u.Y36(ti))},o.\u0275cmp=u.Xpm({type:o,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&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"button",4),u.NdJ("click",function(){return t.startAuth()}),u._uU(7),u.ALo(8,"translate"),u.TgZ(9,"mat-icon"),u._uU(10," login "),u.qZA()()()()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Qn,vr,ki],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),o})();const XV=new u.OlP("perun-api-service");class eB{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let tB=(()=>{class o{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function iB(o){return[gn(tinycolor(o).lighten(52),"50"),gn(tinycolor(o).lighten(37),"100"),gn(tinycolor(o).lighten(26),"200"),gn(tinycolor(o).lighten(12),"300"),gn(tinycolor(o).lighten(6),"400"),gn(tinycolor(o),"500"),gn(tinycolor(o).darken(6),"600"),gn(tinycolor(o).darken(12),"700"),gn(tinycolor(o).darken(18),"800"),gn(tinycolor(o).darken(24),"900"),gn(tinycolor(o).lighten(50).saturate(30),"A100"),gn(tinycolor(o).lighten(30).saturate(30),"A200"),gn(tinycolor(o).lighten(10).saturate(15),"A400"),gn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,s=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(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),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.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(y.eN),u.LFG(gi),u.LFG(at),u.LFG(Y),u.LFG(on))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function gn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let nB=(()=>{class o{constructor(e,t,a,l){this.initAuthService=e,this.appConfigService=t,this.location=a,this.mfaHandlerService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig())):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(fs),u.LFG(tB),u.LFG(T.Ye),u.LFG(Cd))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),rB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({providers:[KI],imports:[T.ez,$0,cs,JM]}),o})(),aB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),u._uU(3," info "),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u._uU(7),u.ALo(8,"translate"),u.qZA()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[vr,ki],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),oB=(()=>{class o{constructor(e,t,a,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=a,this.dialog=l}openLinkerWindow(e,t){let a=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(a="http://localhost:4201/");let l=a+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const i=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`);let f;if(h){const H=Tr();H.width="450px",H.panelClass="noBorderDialog",f=this.dialog.open(aB,H)}window.addEventListener("message",H=>{sessionStorage.setItem("linkedResult",H.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const H=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(H)}},1e3)}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(N_),u.LFG(gi),u.LFG(ao.Ct),u.LFG(ua))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),vD=(()=>{class o{}return o.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",o.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",o.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",o.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",o.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",o.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",o.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",o.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",o.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",o.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",o.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",o.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",o.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",o.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",o.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",o.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",o.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",o.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",o.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",o.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",o.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",o.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",o.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",o.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",o.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",o.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",o.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",o})();function sB(o,r){1&o&&u._UZ(0,"mat-spinner",2)}function lB(o,r){1&o&&(u.TgZ(0,"span",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&o&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function cB(o,r){1&o&&(u.TgZ(0,"span",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&o&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function dB(o,r){if(1&o&&u._UZ(0,"img",18),2&o){const e=u.oxw(2);u.s9C("src",e.logo,u.LSH),u.Q6J("height",e.height)("width",e.width)}}function uB(o,r){1&o&&u._UZ(0,"mat-icon",19)}function hB(o,r){1&o&&u._UZ(0,"mat-icon",20)}function pB(o,r){1&o&&u._UZ(0,"th",21)}function fB(o,r){if(1&o&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&o){const e=r.$implicit;u.xp6(1),u.hij(" ",e.name,": ")}}function gB(o,r){1&o&&u._UZ(0,"th",21)}function mB(o,r){if(1&o&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&o){const e=u.oxw().$implicit;u.xp6(1),u.Oqu(e.value)}}function _B(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"span"),u._uU(1),u.TgZ(2,"span",25),u.ALo(3,"translate"),u.TgZ(4,"button",26),u.NdJ("click",function(){const l=u.CHM(e).$implicit,c=u.oxw(4);return u.KtG(c.openDeleteDialog(l))}),u.TgZ(5,"mat-icon"),u._uU(6,"clear"),u.qZA()()(),u._UZ(7,"br"),u.qZA()}if(2&o){const e=r.$implicit,t=u.oxw(4);u.xp6(1),u.hij(" ",e," "),u.xp6(1),u.Q6J("matTooltip",u.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),u.xp6(2),u.Q6J("disabled",e.includes(t.idpProvider))}}function bB(o,r){if(1&o&&(u.TgZ(0,"span"),u.YNc(1,_B,8,6,"span",24),u.qZA()),2&o){const e=u.oxw().$implicit;u.xp6(1),u.Q6J("ngForOf",e.value)}}function CB(o,r){if(1&o&&(u.TgZ(0,"td",23),u.YNc(1,mB,2,1,"span",1),u.YNc(2,bB,2,1,"span",1),u.qZA()),2&o){const e=r.$implicit;u.xp6(1),u.Q6J("ngIf","Linked accounts"!==e.name),u.xp6(1),u.Q6J("ngIf","Linked accounts"===e.name)}}function yB(o,r){1&o&&u._UZ(0,"tr",27)}const wB=function(){return["name","value"]};function vB(o,r){if(1&o&&(u.TgZ(0,"div"),u.YNc(1,lB,3,3,"span",3),u.YNc(2,cB,3,3,"span",3),u.TgZ(3,"div",4)(4,"div",5),u.YNc(5,dB,1,3,"img",6),u.YNc(6,uB,1,0,"mat-icon",7),u.YNc(7,hB,1,0,"mat-icon",8),u.qZA(),u.TgZ(8,"div")(9,"h2",9),u._uU(10),u.qZA(),u._UZ(11,"mat-divider"),u.TgZ(12,"table",10),u.ynx(13,11),u.YNc(14,pB,1,0,"th",12),u.YNc(15,fB,2,1,"td",13),u.BQk(),u.ynx(16,14),u.YNc(17,gB,1,0,"th",12),u.YNc(18,CB,3,2,"td",15),u.BQk(),u.YNc(19,yB,1,0,"tr",16),u.qZA()()()()),2&o){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.unknownIdentity),u.xp6(1),u.Q6J("ngIf",!e.unknownIdentity),u.xp6(3),u.Q6J("ngIf",e.logo),u.xp6(1),u.Q6J("ngIf",!e.logo&&!e.unknownIdentity),u.xp6(1),u.Q6J("ngIf",!e.logo&&e.unknownIdentity),u.xp6(3),u.Oqu(e.idpProvider),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(7),u.Q6J("matRowDefColumns",u.DdM(8,wB))}}let AB=(()=>{class o{constructor(e,t,a,l,c){this.oauthService=e,this.userService=t,this.storeService=a,this.initService=l,this.dialog=c,this.idpProvider="",this.dataSource=new mC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new mC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(a=>{if(0!==a.attributes.length){const l=D_(a.attributes,vD.UES_SOURCE_IDP_NAME),c=D_(a.attributes,vD.UES_DEF_MAIL);l?.value&&e.push(`${l.value}${c?.value?" ("+c.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(a=>"Linked accounts"!==a.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new mC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const a=this.getUserLogin(e);null!=a&&""!==a&&this.info.push({name:"Login",value:a}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let a=e.info;for(const l of t)a=a[l],Array.isArray(a)&&(a=a[0]);return String(a)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const a=e.info.given_name,l=e.info.family_name;return a&&l?a+" "+l:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const a=e.info.nickname;return a&&""!==a?a:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(c=>c.attributes.forEach(n=>{"sourceIdPName"===n.baseFriendlyName&&e.includes(n.value)&&t.push(c)}));const a=Tr();a.width="450px",a.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(rV,a).afterClosed().subscribe(c=>{c&&this.reloadAccounts()})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(ao.Ct),u.Y36(Or),u.Y36(gi),u.Y36(fs),u.Y36(ua))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[u.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.YNc(1,sB,1,0,"mat-spinner",0),u.YNc(2,vB,20,9,"div",1),u.qZA()),2&e&&(u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Yk,Qn,vr,E0,uC,hC,dC,S0,pC,fC,M0,Dr,Xm,ki],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),o})(),xB=(()=>{class o{transform(e){let t="";return e.forEach(a=>{const l=a.attributes;if(l){const c=l.sourceIdPName;c&&""!==c&&(t=t+c+", ")}}),t.slice(0,-2)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=u.Yjl({name:"similarIdentityFriendlyNamesString",type:o,pure:!0}),o})();function TB(o,r){1&o&&(u.TgZ(0,"perun-web-apps-alert",7),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&o&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function EB(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"div",10)(1,"div",11),u._UZ(2,"mat-icon",12),u.TgZ(3,"div",13)(4,"div"),u._uU(5),u.qZA(),u.TgZ(6,"div",14),u._uU(7),u.ALo(8,"translate"),u.ALo(9,"similarIdentityFriendlyNamesString"),u.qZA()()(),u.TgZ(10,"button",15),u.NdJ("click",function(){const l=u.CHM(e).$implicit,c=u.oxw(2);return u.KtG(c.openPopUp(l.identities))}),u._uU(11),u.ALo(12,"translate"),u.qZA()()}if(2&o){const e=r.$implicit;u.xp6(5),u.Oqu(e.email),u.xp6(2),u.AsE(" ",u.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",u.lcZ(9,6,e.identities)," "),u.xp6(4),u.hij(" ",u.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function SB(o,r){if(1&o){const e=u.EpF();u.TgZ(0,"div")(1,"h2"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"p"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.YNc(7,EB,13,10,"div",8),u.TgZ(8,"button",9),u.NdJ("click",function(){u.CHM(e);const a=u.oxw();return u.KtG(a.openPopUp([]))}),u._uU(9),u.ALo(10,"translate"),u.qZA()()}if(2&o){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),u.xp6(3),u.hij(" ",u.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),u.xp6(2),u.Q6J("ngForOf",e.similarIdentities),u.xp6(2),u.hij(" ",u.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function MB(o,r){1&o&&u._UZ(0,"mat-spinner",16)}let DB=(()=>{class o{constructor(e,t,a,l,c){this.storeService=e,this.initService=t,this.registrarService=a,this.router=l,this.openLinkerService=c,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(a=>{a.attributes.sourceIdPName&&t.push(a.extSource.name)}),this.openLinkerService.openLinkerWindow(a=>{"TOKEN_EXPIRED"===a?location.reload():"OK"===a?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===a&&this.router.navigate(["/result",a])},t)}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi),u.Y36(fs),u.Y36(Ql),u.Y36(ti),u.Y36(oB))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,TB,3,3,"perun-web-apps-alert",2),u.TgZ(3,"div",3),u._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),u.TgZ(6,"div"),u.YNc(7,SB,11,10,"div",5),u.YNc(8,MB,1,0,"mat-spinner",6),u.qZA()()()()),2&e&&(u.xp6(2),u.Q6J("ngIf",t.unknownIdentity),u.xp6(2),u.Q6J("reloadData",t.reloadData),u.xp6(3),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading))},dependencies:[T.sg,T.O5,Qn,vr,Dr,Jh,AB,xB,ki],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),o})();function HB(o,r){if(1&o&&(u.TgZ(0,"mat-icon",6),u._uU(1),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.hij(" ",e.icon," ")}}function PB(o,r){1&o&&u._UZ(0,"mat-icon",7)}function RB(o,r){if(1&o&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&o){const e=u.oxw(2);u.xp6(1),u.hij(" ",e.supportMail," ")}}function IB(o,r){if(1&o&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&o){const e=u.oxw(2);u.xp6(1),u.hij(" ",e.userMail," ")}}function kB(o,r){if(1&o&&(u.TgZ(0,"h5"),u._uU(1),u.ALo(2,"translate"),u.YNc(3,RB,2,1,"span",5),u.YNc(4,IB,2,1,"span",5),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.hij(" ",u.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),u.xp6(2),u.Q6J("ngIf","UNKNOWN_ERROR"===e.result),u.xp6(1),u.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function VB(o,r){if(1&o&&(u.TgZ(0,"h5"),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&o){const e=u.oxw();u.xp6(1),u.lnq(" ",u.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",u.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const BB=function(o){return{"background-color":o}},OB=["*"];let LB=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(gi))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[u.TTD],ngContentSelectors:OB,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1)(2,"div"),u.YNc(3,HB,2,1,"mat-icon",2),u.YNc(4,PB,1,0,"mat-icon",3),u.qZA(),u.TgZ(5,"div",4)(6,"h1"),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.YNc(9,kB,5,5,"h5",5),u.YNc(10,VB,4,7,"h5",5),u.qZA()(),u.Hsn(11),u.qZA()),2&e&&(u.Q6J("ngStyle",u.VKq(8,BB,t.color)),u.xp6(3),u.Q6J("ngIf","OK"!==t.result),u.xp6(1),u.Q6J("ngIf","OK"===t.result),u.xp6(3),u.hij(" ",u.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),u.xp6(2),u.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),u.xp6(1),u.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,vr,ki],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();const FB=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:ZV},{path:"consolidate",component:DB},{path:"result/:result",component:(()=>{class o{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return o.\u0275fac=function(e){return new(e||o)(u.Y36(Un),u.Y36(ti))},o.\u0275cmp=u.Xpm({type:o,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),u.NdJ("click",function(){return t.onClick()}),u._uU(4),u.ALo(5,"translate"),u.qZA()()()()),2&e&&(u.xp6(1),u.Q6J("result",t.linkerResult),u.xp6(3),u.hij(" ",u.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[Qn,LB,ki],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),o})()}];let jB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[Dc.forRoot(FB,{preloadingStrategy:oT,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Dc]}),o})(),NB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[T.ez,hs,xn,cs]}),o})();const zB={provide:y.TP,useExisting:(0,u.Gpc)(()=>Zh),multi:!0};function UB(o){return new eB(o,"./assets/i18n/",".json")}function GB(o){const r={basePath:o.getProperty("api_url")};return new Oe(r)}const qB=o=>()=>o.loadConfigs();let WB=(()=>{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)(u.LFG(L_),u.LFG(Sn))},o.\u0275mod=u.oAB({type:o,bootstrap:[DH]}),o.\u0275inj=u.cJS({providers:[L_,{provide:u.ip1,useFactory:qB,multi:!0,deps:[nB]},{provide:Oe,useFactory:GB,deps:[gi]},Zh,zB,{provide:XV,useClass:ix},{provide:ao.Hy,useFactory:()=>localStorage}],imports:[Aa,MR,y.JF,Kl,jB,$0,KV,Ar,bD,R0,pd,NB,ao.zr.forRoot(),rB,cs.forRoot({loader:{provide:vl,useFactory:UB,deps:[y.eN]}})]}),o})();(0,u.G48)(),Qe().bootstrapModule(WB).catch(o=>console.error(o))},1302:function(F,z,x){var T;!function(u,V){var O={};!function(u){"use strict";u.__esModule=!0,u.digestLength=32,u.blockSize=64;var V=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 O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=u.digestLength,this.blockSize=u.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 ne.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},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}u.HMAC=j,u.hash=W,u.default=W,u.hmac=Q;var $=new Uint8Array(u.digestLength);u.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(z,[]))&&(F.exports=u)},9751:(F,z,x)=>{"use strict";x.d(z,{y:()=>Q});var T=x(930),u=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,u.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,z,x)=>{"use strict";x.d(z,{x:()=>W});var T=x(9751),u=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?u.Lc:(this.currentObservers=null,J.push(U),new u.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:u.Lc}}},930:(F,z,x)=>{"use strict";x.d(z,{Hp:()=>de,Lv:()=>te});var T=x(576),u=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends u.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,u.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,z,x)=>{"use strict";x.d(z,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,z,x)=>{"use strict";x.d(z,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,z,x)=>{"use strict";x.d(z,{a:()=>$});var T=x(9751),u=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,u.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,z,x)=>{"use strict";x.d(z,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function u(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,z,x)=>{"use strict";x.d(z,{E:()=>u});const u=new(x(9751).y)(I=>I.complete())},2076:(F,z,x)=>{"use strict";x.d(z,{D:()=>Ye});var T=x(8421),u=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,u.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,u.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,u.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,u.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,u.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new G.y(Te=>{let oe;return(0,u.f)(Te,Ee,()=>{oe=Se[U.h](),(0,u.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,z,x)=>{"use strict";x.d(z,{Xf:()=>ne});var T=x(655),u=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,u.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,z,x)=>{"use strict";x.d(z,{T:()=>j});var T=x(8189),u=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,u.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,z,x)=>{"use strict";x.d(z,{of:()=>V});var T=x(3269),u=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,u.D)(O,I)}},102:(F,z,x)=>{"use strict";x.d(z,{S:()=>j});var T=x(9751),u=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,u.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,z,x)=>{"use strict";x.d(z,{_:()=>V});var T=x(9751),u=x(576);function V(O,I){const j=(0,u.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,z,x)=>{"use strict";x.d(z,{H:()=>I});var T=x(9751),u=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=u.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,z,x)=>{"use strict";x.d(z,{x:()=>u});var T=x(930);function u(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,z,x)=>{"use strict";x.d(z,{K:()=>O});var T=x(8421),u=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,u.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,z,x)=>{"use strict";x.d(z,{b:()=>V});var T=x(5577),u=x(576);function V(O,I){return(0,u.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,z,x)=>{"use strict";x.d(z,{b:()=>O});var T=x(4986),u=x(4482),V=x(5403);function O(I,j=T.z){return(0,u.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Q.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,z,x)=>{"use strict";x.d(z,{d:()=>V});var T=x(4482),u=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,u.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,z,x)=>{"use strict";x.d(z,{g:()=>te});var T=x(4986),u=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,u.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,J=T.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,u.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,z,x)=>{"use strict";x.d(z,{P:()=>W});var T=x(6805),u=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,u.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,z,x)=>{"use strict";x.d(z,{U:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,u.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,z,x)=>{"use strict";x.d(z,{h:()=>u});var T=x(4004);function u(V){return(0,T.U)(()=>V)}},8189:(F,z,x)=>{"use strict";x.d(z,{J:()=>V});var T=x(5577),u=x(4671);function V(O=1/0){return(0,T.z)(u.y,O)}},5577:(F,z,x)=>{"use strict";x.d(z,{z:()=>Q});var T=x(4004),u=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,u.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,u.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,z,x)=>{"use strict";x.d(z,{B:()=>I});var T=x(8421),u=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new u.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,G,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,z,x)=>{"use strict";x.d(z,{w:()=>O});var T=x(8421),u=x(4482),V=x(5403);function O(I,j){return(0,u.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,z,x)=>{"use strict";x.d(z,{q:()=>O});var T=x(515),u=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,u.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,z,x)=>{"use strict";x.d(z,{b:()=>I});var T=x(576),u=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,u.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,z,x)=>{"use strict";x.d(z,{T:()=>O});var T=x(6805),u=x(4482),V=x(5403);function O(j=I){return(0,u.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,z,x)=>{"use strict";x.d(z,{V:()=>G});var T=x(4986),u=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,u.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Q(U)}},4408:(F,z,x)=>{"use strict";x.d(z,{o:()=>I});var T=x(727);class u extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends u{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,z,x)=>{"use strict";x.d(z,{v:()=>V});var T=x(6063);class u{constructor(I,j=u.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}u.now=T.l.now;class V extends u{constructor(I,j=u.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,z,x)=>{"use strict";x.d(z,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,z,x)=>{"use strict";x.d(z,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T={setTimeout(u,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(u,V,...O):setTimeout(u,V,...O)},clearTimeout(u){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(u)},delegate:void 0}},2202:(F,z,x)=>{"use strict";x.d(z,{h:()=>u});const u=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,z,x)=>{"use strict";x.d(z,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,z,x)=>{"use strict";x.d(z,{K:()=>u});const u=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,z,x)=>{"use strict";x.d(z,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),u=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,u.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,z,x)=>{"use strict";x.d(z,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:u,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&u(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,z,x)=>{"use strict";function T(u,V){if(u){const O=u.indexOf(V);0<=O&&u.splice(O,1)}}x.d(z,{P:()=>T})},3888:(F,z,x)=>{"use strict";function T(u){const O=u(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(z,{d:()=>T})},1810:(F,z,x)=>{"use strict";function T(u,V){return u.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(z,{n:()=>T})},2806:(F,z,x)=>{"use strict";x.d(z,{O:()=>O,x:()=>V});var T=x(2416);let u=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!u;if(j&&(u={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=u;if(u=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=I)}},9672:(F,z,x)=>{"use strict";function T(u,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?u.add(this.schedule(null,I)):this.unsubscribe()},I);if(u.add(W),!j)return W}x.d(z,{f:()=>T})},4671:(F,z,x)=>{"use strict";function T(u){return u}x.d(z,{y:()=>T})},1144:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(F,z,x)=>{"use strict";x.d(z,{D:()=>u});var T=x(576);function u(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,z,x)=>{"use strict";function T(u){return u instanceof Date&&!isNaN(u)}x.d(z,{q:()=>T})},576:(F,z,x)=>{"use strict";function T(u){return"function"==typeof u}x.d(z,{m:()=>T})},3670:(F,z,x)=>{"use strict";x.d(z,{c:()=>V});var T=x(8822),u=x(576);function V(O){return(0,u.m)(O[T.L])}},6495:(F,z,x)=>{"use strict";x.d(z,{T:()=>V});var T=x(2202),u=x(576);function V(O){return(0,u.m)(O?.[T.h])}},8239:(F,z,x)=>{"use strict";x.d(z,{t:()=>u});var T=x(576);function u(V){return(0,T.m)(V?.then)}},3260:(F,z,x)=>{"use strict";x.d(z,{L:()=>O,Q:()=>V});var T=x(655),u=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,u.m)(I?.getReader)}},3532:(F,z,x)=>{"use strict";x.d(z,{K:()=>u});var T=x(576);function u(V){return V&&(0,T.m)(V.schedule)}},4482:(F,z,x)=>{"use strict";x.d(z,{A:()=>u,e:()=>V});var T=x(576);function u(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(u(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,z,x)=>{"use strict";x.d(z,{Z:()=>O});var T=x(4004);const{isArray:u}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return u(j)?I(...j):I(j)}(I,j))}},5032:(F,z,x)=>{"use strict";function T(){}x.d(z,{Z:()=>T})},9635:(F,z,x)=>{"use strict";x.d(z,{U:()=>V,z:()=>u});var T=x(4671);function u(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(2416),u=x(3410);function V(O){u.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,z,x)=>{"use strict";function T(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>T})},655:(F,z,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ti){try{Le(ue.next(Ti))}catch(Pn){ot(Pn)}}function It(Ti){try{Le(ue.throw(Ti))}catch(Pn){ot(Pn)}}function Le(Ti){Ti.done?Me(Ti.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ti.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(mn,si){Me.push([Ut,Dt,mn,si])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function It(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Ti):Pn(Me[0][2],Ut)}(ue[Ut](Dt))}catch(mn){Pn(Me[0][3],mn)}}function Le(Ut){Tt("next",Ut)}function Ti(Ut){Tt("throw",Ut)}function Pn(Ut,Dt){Ut(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(z,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,z,x)=>{"use strict";x.d(z,{Do:()=>Be,EM:()=>Da,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>Ql,NF:()=>Es,O5:()=>Di,Ov:()=>Kp,PC:()=>Jp,RF:()=>Lr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ei,ez:()=>ln,mk:()=>Jl,n9:()=>Zi,q:()=>V,sg:()=>on,w_:()=>j});var T=x(4650);let u=null;function V(){return u}function I(M){u||(u=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Ql(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Jl=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,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 D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Or{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 on=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new Or(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),bi(Ue,ee)}});for(let ee=0,pe=B.length;ee{bi(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function bi(M,k){M.context.$implicit=k.item}let Di=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Ts("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Ts("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class sn{constructor(){this.$implicit=null,this.ngIf=null}}function Ts(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Ma{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 Lr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Ma(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Lr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),Jp=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class DC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class HC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const PC=new HC,RC=new DC;let Kp=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return PC;if((0,T.F4k)(D))return RC;throw function bn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),ln=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ei="browser";function Es(M){return M===ei}let Da=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,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 D=function dn(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,z,x)=>{"use strict";x.d(z,{JF:()=>$d,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),u=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(ye){return encodeURIComponent(ye).replace(J,(Y,q)=>ie[q]??Y)}function he(ye){return`${ye}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(ye,Y){const q=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function ve(ye){return typeof Blob<"u"&&ye instanceof Blob}function Ye(ye){return typeof FormData<"u"&&ye instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeKi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Zt=Object.keys(Y.setParams).reduce((Ki,tt)=>Ki.set(tt,Y.setParams[tt]),Zt)),new Ee(q,ce,et,{params:Zt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(ye,Y){return{body:Y,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Me=(()=>{class ye{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Zt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Zt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Zt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return ye.\u0275fac=function(q){return new(q||ye)(u.LFG(Q))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new u.OlP("HTTP_INTERCEPTORS");let It=(()=>{class ye{intercept(q,ce){return ce.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const mo=/^\)\]\}',?\n/;let _o=(()=>{class ye{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),an=function Wd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:an}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:an,url:Rr}=Ne(),mi=null;204!==kt&&(mi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=mi?200:0);let Ir=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof mi){const kr=mi;mi=mi.replace(mo,"");try{mi=""!==mi?JSON.parse(mi):null}catch(xa){mi=kr,Ir&&(Ir=!1,mi={error:xa,text:mi})}}Ir?(ce.next(new fe({body:mi,headers:Ht,status:kt,statusText:an,url:Rr||void 0})),ce.complete()):ce.error(new ue({error:mi,headers:Ht,status:kt,statusText:an,url:Rr||void 0}))},Zt=Ht=>{const{url:kt}=Ne(),an=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(an)};let vt=!1;const Ki=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Zt),xe.addEventListener("timeout",Zt),xe.addEventListener("abort",Zt),q.reportProgress&&(xe.addEventListener("progress",Ki),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Zt),xe.removeEventListener("abort",Zt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Zt),q.reportProgress&&(xe.removeEventListener("progress",Ki),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return ye.\u0275fac=function(q){return new(q||ye)(u.LFG(T.JF))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Rn=new u.OlP("XSRF_COOKIE_NAME"),In=new u.OlP("XSRF_HEADER_NAME");class wa{}let bo=(()=>{class ye{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return ye.\u0275fac=function(q){return new(q||ye)(u.LFG(T.K0),u.LFG(u.Lbi),u.LFG(Rn))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Qe=(()=>{class ye{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)(u.LFG(wa),u.LFG(In))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),hi=(()=>{class ye{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)(u.LFG(G),u.LFG(u.zs3))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Aa=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:ye,providers:[q.cookieName?{provide:Rn,useValue:q.cookieName}:[],q.headerName?{provide:In,useValue:q.headerName}:[]]}}}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275mod=u.oAB({type:ye}),ye.\u0275inj=u.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:wa,useClass:bo},{provide:Rn,useValue:"XSRF-TOKEN"},{provide:In,useValue:"X-XSRF-TOKEN"}]}),ye})(),$d=(()=>{class ye{}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275mod=u.oAB({type:ye}),ye.\u0275inj=u.cJS({providers:[Me,{provide:Q,useClass:hi},_o,{provide:G,useExisting:_o}],imports:[Aa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(F,z,x)=>{"use strict";x.d(z,{$8M:()=>uc,$Z:()=>zw,AFp:()=>px,ALo:()=>GA,AaK:()=>Q,AsE:()=>$m,BQk:()=>gh,CHM:()=>Ri,CRH:()=>tx,CZH:()=>dp,CqO:()=>vm,D6c:()=>Sp,DdM:()=>OA,Dn7:()=>$A,EJc:()=>up,EiD:()=>$f,EpF:()=>es,F$t:()=>Sm,F4k:()=>rd,FYo:()=>Ky,FiY:()=>Ro,G48:()=>Dx,Gf:()=>Cd,GfV:()=>ew,GkF:()=>id,Gpc:()=>U,Hsn:()=>Mm,Ikx:()=>i_,JOm:()=>gr,JVY:()=>My,KtG:()=>Ln,L6k:()=>Dy,LAX:()=>mu,LFG:()=>ci,LSH:()=>xu,Lbi:()=>gx,Lck:()=>MA,MAs:()=>ph,MMx:()=>ha,NdJ:()=>mh,O4$:()=>sf,OlP:()=>At,Oqu:()=>Wm,PXZ:()=>Bl,Q6J:()=>Fe,QGY:()=>nd,QP$:()=>nn,QbO:()=>Pl,Qsj:()=>Zy,R0b:()=>Oi,RDi:()=>vy,Rgc:()=>_d,SBq:()=>ea,Sil:()=>sb,Suo:()=>fs,TTD:()=>Yt,TgZ:()=>_t,Tol:()=>zm,Udp:()=>jm,VKq:()=>LA,WFA:()=>_h,WLB:()=>FA,XFs:()=>Qe,Xpm:()=>an,Xts:()=>Eu,Y36:()=>rl,YKP:()=>T_,YNc:()=>wt,Yjl:()=>$l,Yz7:()=>Dt,ZZ4:()=>Ep,_Bn:()=>x_,_UZ:()=>Xo,_Vd:()=>Ga,_c5:()=>PS,_uU:()=>Fv,aQg:()=>Od,c2e:()=>Md,cJS:()=>si,cg1:()=>Th,d8E:()=>n_,dDg:()=>xx,dqk:()=>ce,eBb:()=>Hy,eFA:()=>fb,ekj:()=>Nm,eoX:()=>gp,f3M:()=>Ef,g9A:()=>nb,h0i:()=>us,hGG:()=>Vb,hij:()=>Ah,iGM:()=>O_,ifc:()=>q,ip1:()=>hx,kL8:()=>sA,kcU:()=>lf,lG2:()=>Yd,lcZ:()=>qA,lnq:()=>Ym,lqb:()=>vi,lri:()=>ub,mCW:()=>$s,n5z:()=>ru,n_E:()=>Uh,oAB:()=>kr,oJD:()=>Yf,oxw:()=>Em,pB0:()=>Nf,q3G:()=>ii,qLn:()=>Vc,qOj:()=>Xc,qZA:()=>fh,qzn:()=>za,rWj:()=>Ax,s9C:()=>bh,sBO:()=>yp,sIi:()=>ul,s_b:()=>Gh,soG:()=>fa,tb:()=>rb,tp0:()=>ja,uIk:()=>br,vHH:()=>ie,vpe:()=>Er,wAp:()=>Ke,xDo:()=>rs,xi3:()=>WA,xp6:()=>Lu,ynx:()=>io,z2F:()=>Cs,z3N:()=>Gn,zSh:()=>Xf,zs3:()=>$n});var T=x(7579),u=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function G(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function U(p){return p.__forward_ref__=U,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function It(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function si(p){return{providers:p.providers||[],imports:p.imports||[]}}function Pr(p){return Wl(p,Rn)||Wl(p,wa)}function Wl(p,g){return p.hasOwnProperty(g)?p[g]:null}function _o(p){return p&&(p.hasOwnProperty(In)||p.hasOwnProperty(bo))?p[In]:null}const Rn=j({\u0275prov:j}),In=j({\u0275inj:j}),wa=j({ngInjectableDef:j}),bo=j({ngInjectorDef:j});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 hi;function Ei(p){const g=hi;return hi=p,g}function Aa(p,g,m){const _=Pr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(p))}function _n(p){return{toString:p}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Zt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Ki=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function an(p){return _n(()=>{const m=!0===p.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+kt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=Co(p.inputs,_),C.outputs=Co(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(mi).filter(Ir):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Mi).filter(Ir):null,C})}function mi(p){return Et(p)||Si(p)}function Ir(p){return null!==p}function kr(p){return _n(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function Co(p,g){if(null==p)return ct;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const Yd=an;function $l(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Si(p){return p[Zt]||null}function Mi(p){return p[vt]||null}function zi(p,g){const m=p[Ki]||null;if(!m&&!0===g)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return m}function Di(p){return Array.isArray(p)&&"object"==typeof p[1]}function sn(p){return Array.isArray(p)&&!0===p[1]}function Ts(p){return 0!=(8&p.flags)}function Ma(p){return 2==(2&p.flags)}function Lr(p){return 1==(1&p.flags)}function Zi(p){return null!==p.template}function Yp(p){return 0!=(256&p[2])}function De(p,g){return p.hasOwnProperty(tt)?p[tt]:null}class He{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Yt(){return Ao}function Ao(p){return p.type.prototype.ngOnChanges&&(p.setInput=jr),Fr}function Fr(){const p=On(this),g=p?.current;if(g){const m=p.previous;if(m===ct)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function jr(p,g,m,_){const C=On(p)||function Nr(p,g){return p[Hi]=g}(p,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new He(S&&S.currentValue,g,v===ct),p[_]=g}Yt.ngInherit=!0;const Hi="__ngSimpleChanges__";function On(p){return p[Hi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function Da(p,g){return ze(g[p])}function Vt(p,g){return ze(g[p.index])}function dn(p,g){return p.data[g]}function Gi(p,g){return p[g]}function Ct(p,g){const m=g[p];return Di(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Zd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function Ce(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Ri(p){return le.lFrame.contextLView=p,p[8]}function Ln(p){return le.lFrame.contextLView=null,p}function qt(){let p=Ha();for(;null!==p&&64===p.type;)p=p.parent;return p}function Ha(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function Cn(){return le.lFrame.isParent}function Ss(){le.lFrame.isParent=!1}function ji(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function Fn(){return le.lFrame.bindingIndex}function Ra(){return le.lFrame.bindingIndex++}function jn(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,Jd(g)}function Jd(p){le.lFrame.currentDirectiveIndex=p}function cr(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function tf(){return le.lFrame.currentQueryIndex}function ec(p){le.lFrame.currentQueryIndex=p}function Kd(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function nf(p,g,m){if(m&Qe.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Kd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=To();return _.currentTNode=g,_.lView=p,!0}function xo(p){const g=To(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function To(){const p=le.lFrame,g=null===p?null:p.child;return null===g?Zd(p):g}function Zd(p){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function Hs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const rf=Hs;function Ps(){const p=Hs();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 Ii(){return le.lFrame.selectedIndex}function Ur(p){le.lFrame.selectedIndex=p}function Jt(){const p=le.lFrame;return dn(p.tView,p.selectedIndex)}function sf(){le.lFrame.currentNamespace="svg"}function lf(){!function jC(){le.lFrame.currentNamespace=null}()}function nc(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function Eo(p,g,m){Gr(p,g,3,m)}function Ia(p,g,m,_){(3&p[2])===m&&Gr(p,g,m,_)}function Xd(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function Gr(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Rs{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function ur(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let tu=!0;function ks(p){const g=tu;return tu=p,g}let Wr=0;const Xi={};function Vs(p,g){const m=nu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,iu(_.data,p),iu(g,null),iu(_.blueprint,null));const C=oc(p,g),w=p.injectorIndex;if(rc(C)){const v=Nn(C),E=qr(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function iu(p,g){p.push(0,0,0,0,0,0,0,0,g)}function nu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function oc(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=Un(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function sc(p,g,m){!function pf(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=Wr++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Mo:g}(m);if("function"==typeof w){if(!nf(g,p,_))return _&Qe.Host?ff(C,0,_):gf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{rf()}}else if("number"==typeof w){let v=null,E=nu(p,g),S=-1,P=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?oc(p,g):g[E+8],-1!==S&&cc(_,!1)?(v=g[1],E=Nn(S),g=qr(S,g)):E=-1);-1!==E;){const R=g[1];if(lc(w,E,R.data)){const L=JC(E,g,m,v,_,P);if(L!==Xi)return L}S=g[E+8],-1!==S&&cc(_,g[1].data[E+8]===P)&&lc(w,E,g)?(v=R,E=Nn(S),g=qr(S,g)):E=-1}}return C}function JC(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Bs(E,v,m,null==_?Ma(E)&&tu:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Os(g,v,R,E):Xi}function Bs(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Zi(re)&&re.type===m)return S}return null}function Os(p,g,m,_){let C=p[m];const w=g.data;if(function UC(p){return p instanceof Rs}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=ks(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ei(v.injectImpl):null;nf(p,_,Qe.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function zC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Ao(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Ei(S),ks(E),v.resolving=!1,rf()}}return C}function lc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[tt]||dc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||dc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function dc(p){return ne(p)?()=>{const g=dc(te(p));return g&&g()}:De(p)}function Un(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function uc(p){return function QC(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(df(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const hr="__parameters__";function $r(p,g,m){return _n(()=>{const _=function pc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(hr)?S[hr]:Object.defineProperty(S,hr,{value:[]})[hr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function un(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?Yr(m,g):g(m))}function ry(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function su(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Oa(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function oy(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function cu(p,g){const m=Ho(p,g);if(m>=0)return p[1|m]}function Ho(p,g){return function js(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return wc}()?.createHTML(p)||p}function Lf(p){return function Ac(){if(void 0===Ws&&(Ws=null,ce.trustedTypes))try{Ws=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Ws}()?.createHTML(p)||p}class Na{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xy extends Na{getTypeName(){return"HTML"}}class Ty extends Na{getTypeName(){return"Style"}}class Ey extends Na{getTypeName(){return"Script"}}class jf extends Na{getTypeName(){return"URL"}}class gu extends Na{getTypeName(){return"ResourceURL"}}function Gn(p){return p instanceof Na?p.changingThisBreaksApplicationSecurity:p}function za(p,g){const m=function Sy(p){return p instanceof Na&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function My(p){return new xy(p)}function Dy(p){return new Ty(p)}function Hy(p){return new Ey(p)}function mu(p){return new jf(p)}function Nf(p){return new gu(p)}class _u{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(ko(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class Py{constructor(g){if(this.defaultDoc=g,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(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=ko(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=ko(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0$s(g.trim())).join(", ")),this.buf.push(" ",v,'="',vu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();yu.hasOwnProperty(m)&&!ti.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(vu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const sT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wf=/([^\#-~ |!])/g;function vu(p){return p.replace(/&/g,"&").replace(sT,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Wf,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Mc;function $f(p,g){let m=null;try{Mc=Mc||function Tc(p){const g=new Py(p);return function Ry(){try{return!!(new window.DOMParser).parseFromString(ko(""),"text/html")}catch{return!1}}()?new _u(g):g}(p);let _=g?String(g):"";m=Mc.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=Mc.getInertBodyElement(_)}while(_!==w);return ko((new Kr).sanitizeChildren(Au(m)||m))}finally{if(m){const _=Au(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Au(p){return"content"in p&&function Dc(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ii=(()=>((ii=ii||{})[ii.NONE=0]="NONE",ii[ii.HTML=1]="HTML",ii[ii.STYLE=2]="STYLE",ii[ii.SCRIPT=3]="SCRIPT",ii[ii.URL=4]="URL",ii[ii.RESOURCE_URL=5]="RESOURCE_URL",ii))();function Yf(p){const g=Ys();return g?Lf(g.sanitize(ii.HTML,p)||""):za(p,"HTML")?Lf(Gn(p)):$f(function Vf(){return void 0!==fu?fu:typeof document<"u"?document:void 0}(),he(p))}function xu(p){const g=Ys();return g?g.sanitize(ii.URL,p)||"":za(p,"URL")?Gn(p):$s(he(p))}function Ys(){const p=Ce();return p&&p[12]}const Eu=new At("ENVIRONMENT_INITIALIZER"),Zf=new At("INJECTOR",-1),jy=new At("INJECTOR_DEF_TYPES");class Hc{get(g,m=zs){if(m===zs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function di(...p){return{\u0275providers:Ny(0,p)}}function Ny(p,...g){const m=[],_=new Set;let C;return Yr(g,w=>{const v=w;Pc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&Ua(C,m),m}function Ua(p,g){for(let m=0;m{g.push(w)})}}function Pc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=_o(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=_o(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Pc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Yr(w.imports,R=>{Pc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&Ua(P,g)}if(!E){const P=De(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:jy,useValue:C,multi:!0},{provide:Eu,useValue:()=>ci(C),multi:!0})}const S=w.providers;null==S||E||Yr(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const Qs=j({provide:String,useValue:j});function Su(p){return null!==p&&"object"==typeof p&&Qs in p}function en(p){return"function"==typeof p}const Xf=new At("Set Injector scope."),Bo={},Gy={};let Oo;function Lo(){return void 0===Oo&&(Oo=new Hc),Oo}class vi{}class Rc extends vi{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ig(g,v=>this.processProvider(v)),this.records.set(Zf,Zr(void 0,this)),C.has("environment")&&this.records.set(vi,Zr(void 0,this));const w=this.records.get(Xf);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(jy.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=pr(this),_=Ei(void 0);try{return g()}finally{pr(m),Ei(_)}}get(g,m=zs,_=Qe.Default){this.assertNotDestroyed();const C=pr(this),w=Ei(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Yy(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&Pr(g);E=S&&this.injectableDefInScope(S)?Zr(eg(g),Bo):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?Lo():this.parent).get(g,m=_&Qe.Optional&&m===zs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[mc]=v[mc]||[]).unshift(Q(g)),C)throw v;return function gy(p,g,m,_){const C=p[mc];throw g[xf]&&C.unshift(g[xf]),p.message=function my(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(py,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[mc]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Ei(w),pr(C)}}resolveInjectorInitializers(){const g=pr(this),m=Ei(void 0);try{const _=this.get(Eu.multi,Ne,Qe.Self);for(const C of _)C()}finally{pr(g),Ei(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=en(g=te(g))?g:te(g&&g.provide);const _=function tg(p){return Su(p)?Zr(void 0,p.useValue):Zr(qy(p),Bo)}(g);if(en(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Zr(void 0,Bo,!0),C.factory=()=>uu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Bo&&(m.value=Gy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function $y(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function eg(p){const g=Pr(p),m=null!==g?g.factory:De(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Mu(p){const g=p.length;if(g>0)throw Oa(g,"?"),new ie(204,!1);const m=function mo(p){const g=p&&(p[Rn]||p[wa]);if(g){const m=function Wd(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);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.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function qy(p,g,m){let _;if(en(p)){const C=te(p);return De(C)||eg(C)}if(Su(p))_=()=>te(p.useValue);else if(function Js(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...uu(p.deps||[]));else if(function wn(p){return!(!p||!p.useExisting)}(p))_=()=>ci(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function Wy(p){return!!p.deps}(p))return De(C)||eg(C);_=()=>new C(...uu(p.deps))}return _}function Zr(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function cT(p){return!!p.\u0275providers}function ig(p,g){for(const m of p)Array.isArray(m)?ig(m,g):cT(m)?ig(m.\u0275providers,g):g(m)}class kc{}class Jy{resolveComponentFactory(g){throw function dT(p){const g=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let Ga=(()=>{class p{}return p.NULL=new Jy,p})();function Du(){return Xr(qt(),Ce())}function Xr(p,g){return new ea(Vt(p,g))}let ea=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Du,p})();function hT(p){return p instanceof ea?p.nativeElement:p}class Ky{}let Zy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Xy(){const p=Ce(),m=Ct(qt().index,p);return(Di(m)?m:p)[11]}(),p})(),pT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class ew{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const fT=new ew("14.1.2"),ng={};function lg(p){return p.ngOriginalError}class Vc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&lg(g);for(;m&&lg(m);)m=lg(m);return m||null}}const cg=new Map;let ST=0;const ug="__ngContext__";function Ni(p,g){Di(g)?(p[ug]=g[20],function DT(p){cg.set(p[20],p)}(g)):p[ug]=g}function Bc(p){const g=p[ug];return"number"==typeof g?function sw(p){return cg.get(p)||null}(g):g||null}function hg(p){const g=Bc(p);return g?Di(g)?g:g.lView:null}const BT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function ta(p){return p instanceof Function?p():p}var gr=(()=>((gr=gr||{})[gr.Important=1]="Important",gr[gr.DashCase=2]="DashCase",gr))();function fg(p,g){return undefined(p,g)}function Oc(p){const g=p[3];return sn(g)?g[3]:g}function gg(p){return _w(p[13])}function mg(p){return _w(p[4])}function _w(p){for(;null!==p&&!sn(p);)p=p[4];return p}function Zs(p,g,m,_,C){if(null!=_){let w,v=!1;sn(_)?w=_:Di(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?it(g,m,E):ft(g,m,E,C||null,!0):1===p&&null!==m?ft(g,m,E,C||null,!0):2===p?function xg(p,g,m){const _=Wt(p,g);_&&function vg(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Sg(p,g,m,_,C){const w=m[7];w!==ze(m)&&Zs(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=su(p,10+g);!function WT(p,g){jo(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Wn(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&jo(p,g,m,3,null,null),function QT(p){let g=p[13];if(!g)return Xs(p[1],p);for(;g;){let m=null;if(Di(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Di(g)&&Xs(g[1],g),g=g[3];null===g&&(g=p),Di(g)&&Xs(g[1],g),m=g&&g[4]}g=m}}(g)}}function Xs(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function yw(p,g){let m;if(null!=p&&null!=(m=p.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++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&sn(g[3])){m!==g[3]&&Cw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function lw(p){cg.delete(p[20])}(g)}}function yg(p,g,m){return function wg(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(p,g.parent,m)}function ft(p,g,m,_,C){p.insertBefore(g,m,_,C)}function it(p,g,m){p.appendChild(g,m)}function hn(p,g,m,_,C){null!==_?ft(p,g,m,_,C):it(p,g,m)}function Wt(p,g){return p.parentNode(g)}function ww(p,g,m){return Ag(p,g,m)}let Ag=function Ru(p,g,m){return 40&p.type?Vt(p,m):null};function Iu(p,g,m,_){const C=yg(p,_,g),w=g[11],E=ww(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Aw(re,P,0)||2&_&&P!==X){if(vn(_))return!1;v=!0}}}}else{if(!v&&!vn(_)&&!vn(S))return!1;if(v&&vn(S))continue;v=!1,_=S|1&_}}return vn(_)||v}function vn(p){return 0==(1&p)}function ZT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!vn(v)&&(g+=Pg(w,C),C=""),_=v,w=w||!vn(_);m++}return""!==C&&(g+=Pg(w,C)),g}const st={};function Lu(p){Fu(ut(),Ce(),Ii()+p,!1)}function Fu(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&Eo(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Ia(g,w,0,m)}Ur(m)}function Iw(p,g=null,m=null,_){const C=kw(p,g,m,_);return C.resolveInjectorInitializers(),C}function kw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,di(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Rc(w,g||Lo(),_||null,C)}let $n=(()=>{class p{static create(m,_){if(Array.isArray(m))return Iw({name:""},_,m,"");{const C=m.name??"";return Iw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=zs,p.NULL=new Hc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>ci(Zf)}),p.__NG_ELEMENT_ID__=-1,p})();function rl(p,g=Qe.Default){const m=Ce();return null===m?ci(p,g):mf(qt(),m,te(p),g)}function zw(){throw new Error("invalid")}function Uc(p,g){return p<<17|g<<2}function An(p){return p>>17&32767}function We(p){return 2|p}function na(p){return(131068&p)>>2}function jg(p,g){return-131069&p|g<<2}function Wa(p){return 1|p}function iv(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&Fu(p,g,22,!1),m(_,C)}finally{Ur(w)}}function xn(p,g,m){if(Ts(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function am(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function om(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function Jc(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&dm(m)}}function dm(p){for(let _=gg(p);null!==_;_=mg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];sl(v,w,v.template,w[8])}else w[5]>0&&dm(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&dm(C)}}function CE(p,g){const m=Ct(g,p),_=m[1];(function dv(p,g){for(let m=g.length;mPromise.resolve(null))();function pv(p){return p[7]||(p[7]=[])}function fv(p){return p.cleanup||(p.cleanup=[])}function Jn(p,g,m){return(null===p||Zi(p))&&(m=function Pi(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function Qa(p,g){const m=p[9],_=m?m.get(Vc,null):null;_&&_.handleError(g)}function fm(p,g,m,_,C){for(let w=0;w-1&&(Hu(g,_),su(m,_))}this._attachedToViewContainer=!1}Wn(this._lView[1],this._lView)}onDestroy(g){rh(this._lView[1],this._lView,null,g)}markForCheck(){um(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function hm(p,g,m){const _=g[10];_.begin&&_.begin();try{sl(p,g,p.template,m)}catch(C){throw Qa(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YT(p,g){jo(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class wE extends Zc{constructor(g){super(g),this._view=g}detectChanges(){hv(this._view)}checkNoChanges(){}get context(){return null}}class cl extends Ga{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new Ja(m,this.ngModule)}}function dl(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class gv{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,ng,_);return C!==ng||m===ng?C:this.parentInjector.get(g,m,_)}}class Ja extends kc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function Mw(p){return p.map(Sw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof vi?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new gv(g,w):g,E=v.get(Ky,null);if(null===E)throw new ie(407,!1);const S=v.get(pT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function Yc(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):bg(E.createRenderer(null,this.componentDef),R,function ch(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function EE(p,g){return{components:[],scheduler:p||BT,clean:yE,playerHandler:g||null,flags:0}}(),me=nh(0,null,null,1,0,null,null,null,null,null),Ae=Wc(null,me,re,X,null,null,E,P,S,v,null);let Pe,je;xo(Ae);try{const Ze=function TE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=qo(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(sh(S,P,!0),null!==p&&(ur(C,p,P),null!==S.classes&&No(C,p,S.classes),null!==S.styles&&Mg(C,p,S.styles)));const R=_.createRenderer(p,g),L=Wc(m,ih(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(sc(Vs(S,m),v,g.type),om(v,S),sm(S,m.length,1)),ll(m,L),m[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)ur(P,L,["ng-version",fT.full]);else{const{attrs:be,classes:$e}=function Dw(p){const g=[],m=[];let _=1,C=2;for(;_0&&No(P,L,$e.join(" "))}if(je=dn(me,22),void 0!==m){const be=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Is(C.hostAttrs,m=Is(m,C.hostAttrs))}}(_)}function gm(p){return p===ct?{}:p===Ne?[]:p}function _v(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function mm(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function uh(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Yo=null;function Qo(){if(!Yo){const p=ce.Symbol;if(p&&p.iterator)Yo=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function Ev(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Tm(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,be,Ze,Ze+1)}}else w=Tm(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const Pe=Ae.length;if(Pe)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function Sv(p,g){let m=null;const _=function XT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ad(p){return p.substring(fi.key,fi.keyEnd)}function Hv(p,g){const m=fi.textEnd;return m===g?-1:(g=fi.keyEnd=function Om(p,g,m){for(;g32;)g++;return g}(p,fi.key=g,m),ts(p,g,m))}function ts(p,g,m){for(;g=0;m=Hv(g,m))Wi(p,ad(g),!0)}function Zn(p,g,m,_){const C=Ce(),w=ut(),v=jn(2);w.firstUpdatePass&&Bv(w,p,v,_),g!==st&&ui(C,v,g)&&Lv(w,w.data[Ii()],C,C[11],p,C[v+1]=function LE(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Q(Gn(p)))),p}(g,m),_,v)}function Vv(p,g){return g>=p.expandoStartIndex}function Bv(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Ii()],v=Vv(p,m);qm(w,_)&&null===g&&!v&&(g=!1),g=function RE(p,g,m,_){const C=cr(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=ns(m=Um(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=Um(C,p,g,m,_),null===w){let S=function IE(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==na(_))return p[An(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=Um(null,p,g,S[1],_),S=ns(S,g.attrs,_),function kE(p,g,m,_){p[An(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function VE(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=An(p[E+1]);p[_+1]=Uc(X,E),0!==X&&(p[X+1]=jg(p[X+1],_)),p[E+1]=function Uw(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=Uc(E,0),0!==E&&(p[E+1]=jg(p[E+1],_)),E=_;else p[_+1]=Uc(S,0),0===E?E=_:p[S+1]=jg(p[S+1],_),S=_;P&&(p[_+1]=We(p[_+1])),Vm(p,R,_,!0),Vm(p,R,_,!1),function PE(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&Ho(w,g)>=0&&(m[_+1]=Wa(m[_+1]))}(g,R,p,_,w),v=Uc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}function Um(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?cu(X,_):R===_?X:void 0;if(P&&!od(re)&&(re=cu(S,_)),od(re)&&(E=re,v))return E;const me=p[C+1];C=v?An(me):na(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=cu(S,_))}return E}function od(p){return void 0!==p}function qm(p,g){return 0!=(p.flags&(g?16:32))}function Fv(p,g=""){const m=Ce(),_=ut(),C=p+22,w=_.firstCreatePass?qo(_,C,1,g,null):_.data[C],v=m[C]=function _g(p,g){return p.createText(g)}(m[11],g);Iu(_,m,v,w),Ot(w,!1)}function Wm(p){return Ah("",p,""),Wm}function Ah(p,g,m){const _=Ce(),C=Za(_,p,g,m);return C!==st&&ra(_,Ii(),C),Ah}function $m(p,g,m,_,C){const w=Ce(),v=function hl(p,g,m,_,C,w){const E=sa(p,Fn(),m,C);return jn(2),E?g+he(m)+_+he(C)+w:st}(w,p,g,m,_,C);return v!==st&&ra(w,Ii(),v),$m}function Ym(p,g,m,_,C,w,v){const E=Ce(),S=function pl(p,g,m,_,C,w,v,E){const P=td(p,Fn(),m,C,v);return jn(3),P?g+he(m)+_+he(C)+w+he(v)+E:st}(E,p,g,m,_,C,w,v);return S!==st&&ra(E,Ii(),S),Ym}function rs(p,g,m,_,C,w,v,E,S,P,R){const L=Ce(),X=Jo(L,p,g,m,_,C,w,v,E,S,P,R);return X!==st&&ra(L,Ii(),X),rs}function i_(p,g,m){const _=Ce();return ui(_,Ra(),g)&&Ai(ut(),Jt(),_,p,g,_[11],m,!0),i_}function n_(p,g,m){const _=Ce();if(ui(_,Ra(),g)){const w=ut(),v=Jt();Ai(w,v,_,p,g,Jn(cr(w.data),v,_),m,!0)}return n_}const er=void 0;var aA=["en",[["a","p"],["AM","PM"],er],[["AM","PM"],er,er],[["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"]],er,[["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"]],er,[["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}",er,"{1} 'at' {0}",er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function r_(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let as={};function Th(p){const g=function UE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=lA(g);if(m)return m;const _=g.split("-")[0];if(m=lA(_),m)return m;if("en"===_)return aA;throw new ie(701,!1)}function sA(p){return Th(p)[Ke.PluralCase]}function lA(p){return p in as||(as[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),as[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const ml="en-US";let a_=ml;function Fh(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(en(p)||!p.multi){const re=new Rs(S,C,rl),me=Nh(E,g,C?R:R+X,L);-1===me?(sc(Vs(P,v),w,E),jh(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Nh(E,g,R+X,L),me=Nh(E,g,R,R+X),Ae=re>=0&&m[re],Pe=me>=0&&m[me];if(C&&!Pe||!C&&!Ae){sc(Vs(P,v),w,E);const je=function ZE(p,g,m,_,C){const w=new Rs(p,m,rl);return w.multi=[],w.index=g,w.componentProviders=0,xr(w,C,_&&!m),w}(C?SA:zh,m.length,C,_,S);!C&&Pe&&(m[me].providerFactory=je),jh(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else jh(w,p,re>-1?re:me,xr(m[C?me:re],S,!C&&_));!C&&_&&Pe&&m[me].componentProviders++}}}function jh(p,g,m,_){const C=en(g),w=function Uy(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function xr(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function Nh(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function zh(p,g,m,_){return fd(this.multi,[])}function SA(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Os(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),fd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Sl(p,g,m){const _=ut();if(_.firstCreatePass){const C=Zi(p);Fh(m,_.data,_.blueprint,C,!0),Fh(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class us{}class T_{}function MA(p,g){return new E_(p,g??null)}class E_ extends us{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const _=zi(g);this._bootstrapComponents=ta(_.bootstrap),this._r3Injector=kw(g,m,[{provide:us,useValue:this},{provide:Ga,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class S_ extends T_{constructor(g){super(),this.moduleType=g}create(g){return new E_(this.moduleType,g)}}class Ml extends us{constructor(g,m,_){super(),this.componentFactoryResolver=new cl(this),this.instance=null;const C=new Rc([...g,{provide:us,useValue:this},{provide:Ga,useValue:this.componentFactoryResolver}],m||Lo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function ha(p,g,m=null){return new Ml(p,g,m).injector}function OA(p,g,m){const _=ji()+p,C=Ce();return C[_]===st?Kn(C,_,m?g.call(m):g()):function oa(p,g){return p[g]}(C,_)}function LA(p,g,m,_){return H_(Ce(),ji(),p,g,m,_)}function FA(p,g,m,_,C){return P_(Ce(),ji(),p,g,m,_,C)}function gd(p,g){const m=p[g];return m===st?void 0:m}function H_(p,g,m,_,C,w){const v=g+m;return ui(p,v,C)?Kn(p,v+1,w?_.call(w,C):_(C)):gd(p,v+1)}function P_(p,g,m,_,C,w,v){const E=g+m;return sa(p,E,C,w)?Kn(p,E+2,v?_.call(v,C,w):_(C,w)):gd(p,E+2)}function GA(p,g){const m=ut();let _;const C=p+22;m.firstCreatePass?(_=function cS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Ei(rl);try{const E=ks(!1),S=w();return ks(E),function wm(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,Ce(),C,S),S}finally{Ei(v)}}function qA(p,g,m){const _=p+22,C=Ce(),w=Gi(C,_);return md(C,_)?H_(C,ji(),g,w.transform,m,w):w.transform(m)}function WA(p,g,m,_){const C=p+22,w=Ce(),v=Gi(w,C);return md(w,C)?P_(w,ji(),g,v.transform,m,_,v):v.transform(m,_)}function $A(p,g,m,_,C){const w=p+22,v=Ce(),E=Gi(v,w);return md(v,w)?function R_(p,g,m,_,C,w,v,E){const S=g+m;return td(p,S,C,w,v)?Kn(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):gd(p,S+3)}(v,ji(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function md(p,g){return p[1].data[g].pure}function I_(p){return g=>{setTimeout(p,void 0,g)}}const Er=class uS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=I_(w),C&&(C=I_(C)),v&&(v=I_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof u.w0&&g.add(E),E}};function hS(){return this._results[Qo()]()}class Uh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Qo(),_=Uh.prototype;_[m]||(_[m]=hS)}get changes(){return this._changes||(this._changes=new Er)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=un(g);(this._changesDetected=!function wf(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=fS,p})();const pS=_d,k_=class extends pS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=Wc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),$c(_,C,g),new Zc(C)}};function fS(){return bd(qt(),Ce())}function bd(p,g){return 4&p.type?new k_(g,p,Xr(p,g)):null}let Gh=(()=>{class p{}return p.__NG_ELEMENT_ID__=gS,p})();function gS(){return KA(qt(),Ce())}const mS=Gh,QA=class extends mS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return Xr(this._hostTNode,this._hostLView)}get injector(){return new qi(this._hostTNode,this._hostLView)}get parentInjector(){const g=oc(this._hostTNode,this._hostLView);if(rc(g)){const m=qr(g,this._hostLView),_=Nn(g);return new qi(m[1].data[_+8],m)}return new qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=JA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Fs(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new Ja(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(vi,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return sn(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new QA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function JT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=cp,this.reject=cp,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:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(ci(hx,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const px=new At("AppId",{providedIn:"root",factory:function fx(){return`${Sd()}${Sd()}${Sd()}`}});function Sd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nb=new At("Platform Initializer"),gx=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),rb=new At("appBootstrapListener"),Pl=new At("AnimationModuleType");let Md=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const fa=new At("LocaleId",{providedIn:"root",factory:()=>Ef(fa,Qe.Optional|Qe.SkipSelf)||function bs(){return typeof $localize<"u"&&$localize.locale||ml}()}),up=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Dd{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let sb=(()=>{class p{compileModuleSync(m){return new S_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=ta(zi(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new Ja(S)),v},[]);return new Dd(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Hd=(()=>Promise.resolve(0))();function so(p){typeof Zone>"u"?Hd.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Oi{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Er(!1),this.onMicrotaskEmpty=new Er(!1),this.onStable=new Er(!1),this.onError=new Er(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function Pd(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function vx(p){const g=()=>{!function Rd(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,pp(p),p.isCheckStableRunning=!0,Rl(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),pp(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return fp(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),cb(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return fp(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),cb(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,pp(p),Rl(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Oi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Oi.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,wx,cp,cp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const wx={};function Rl(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 pp(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function fp(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function cb(p){p._nesting--,Rl(p)}class db{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Er,this.onMicrotaskEmpty=new Er,this.onStable=new Er,this.onError=new Er}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const ub=new At(""),Ax=new At("");let Il,xx=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Il||(function AS(p){Il=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Oi.assertNotInAngularZone(),so(()=>{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())so(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(ci(Oi),ci(gp),ci(Ax))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),gp=(()=>{class p{constructor(){this._applications=new Map}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 Il?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),ga=null;const mp=new At("AllowMultipleToken"),kl=new At("PlatformDestroyListeners");class Bl{constructor(g,m){this.name=g,this.token=m}}function fb(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=mb();if(!v||v.injector.get(mp,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function hb(p){if(ga&&!ga.get(mp,!1))throw new ie(400,!1);ga=p;const g=p.get(Ex);(function _p(p){const g=p.get(nb,null);g&&g.forEach(m=>m())})(p)}(function Tx(p=[],g){return $n.create({name:g,providers:[{provide:Xf,useValue:"platform"},{provide:kl,useValue:new Set([()=>ga=null])},...p]})}(E,_))}return function gb(p){const g=mb();if(!g)throw new ie(401,!1);return g}()}}function mb(){return ga?.get(Ex)??null}let Ex=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function bb(p,g){let m;return m="noop"===p?new db:("zone.js"===p?void 0:p)||new Oi(g),m}(_?.ngZone,function _b(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:Oi,useValue:C}];return C.run(()=>{const v=$n.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Vc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Id(this._modules,E),P.unsubscribe()})}),function Cb(p,g,m){try{const _=m();return nd(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(dp);return P.runInitializers(),P.donePromise.then(()=>(function os(p){It(p,"Expected localeId to be defined"),"string"==typeof p&&(a_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(fa,ml)||ml),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=bp({},_);return function xS(p,g,m){const _=new S_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Cs);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(kl,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(ci($n))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function bp(p,g){return Array.isArray(g)?g.reduce(bp,p):{...p,...g}}let Cs=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{Oi.assertNotInAngularZone(),so(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{Oi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof kc;if(!this._injector.get(dp).done)throw!C&&nn(m),new ie(405,false);let v;v=C?m:this._injector.get(Ga).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function Vl(p){return p.isBoundToModule}(v)?void 0:this._injector.get(us),P=v.create($n.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(ub,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Id(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);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;Id(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(rb,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Id(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(ci(Oi),ci(vi),ci(Vc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Id(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let vb=!0;function Dx(){vb=!1}let yp=(()=>{class p{}return p.__NG_ELEMENT_ID__=Px,p})();function Px(p){return function Ab(p,g,m){if(Ma(p)&&!m){const _=Ct(p.index,g);return new Zc(_,_)}return 47&p.type?new Zc(g[16],g):null}(qt(),Ce(),16==(16&p))}class _a{constructor(){}supports(g){return ul(g)}create(g){return new Db(g)}}const Bx=(p,g)=>g;class Db{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Bx}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Ox(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=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(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Pb),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pb),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Ox{constructor(g,m){this.item=g,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 Hb{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Pb{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new Hb,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rb(p,g,m){const _=p.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(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);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 Lx(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class Lx{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Tp(){return new Ep([new _a])}let Ep=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Tp()),deps:[[p,new ja,new Ro]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Tp}),p})();function Ib(){return new Od([new Fl])}let Od=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Ib()),deps:[[p,new ja,new Ro]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Ib}),p})();const PS=fb(null,"core",[]);let Vb=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(ci(Cs))},p.\u0275mod=kr({type:p}),p.\u0275inj=si({}),p})();function Sp(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let z;return function(T){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{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 F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,T=null){super(z),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const z=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(z.idTokenHeader),u=yield x.calcHash(z.accessToken,T),O=base64UrlEncode(u.substr(0,u.length/2)),I=z.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const u=T.indexOf("?");return T=T.substr(u>-1?u+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let u,V,O,I,j,W,Q;if(null===x)return T;u=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==u)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(z,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,z,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var z,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);z=!0}for(var T,V,u=0,O=F.length,I=this.blocks;u>2]|=F[u]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>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=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,z=this.lastByteIndex;F[16]=this.block,F[z>>2]|=EXTRA[3&z],this.block=F[16],z>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=z&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&V^~u&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&z)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&u^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&z^J))<<0,V=z+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&u)+K[W+2]+j[W+2])<<0,z=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,u=F+(U=u+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((he=z&x)^z&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+u<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[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[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[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[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,u>>24&255,u>>16&255,u>>8&255,255&u,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),z=new DataView(F);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var z,x=F,T=new Uint8Array(x.length);for(z=0;z{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let u of x)T+=String.fromCharCode(u);return T}toHashString(x){const T=new Uint8Array(x);let u="";for(let V of T)u+=String.fromCharCode(V);return u}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,u,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{u?this.setStorage(u):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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,u=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,u).catch(I=>{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=[],u=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return u||T.push("https for all urls required. Also for urls received by discovery."),V||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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),u=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)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),u=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)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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 u=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(u-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,u)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void u("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),u(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),u(V)}):u("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(u=>{this.jwks=u,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(u)},u=>{this.logger.error("error loading jwks",u),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",u)),T(u)}):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,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,u).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 u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:u,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},u)}fetchTokenUsingGrant(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return u=u.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:u}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let u=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")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(u=u.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(u=u.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))u=u.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,u,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}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(u=>this.debug("tryLogin during silent refresh failed",u))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const u=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=u.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((u,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),u(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,u=x.width||500,V=window.screenLeft+(window.outerWidth-u)/2;return`location=no,toolbar=no,width=${u},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const u=x.data;return u.startsWith(T)?"#"+u.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),u=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),u.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",u,"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="",u="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=u||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}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 u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"discovery_document_loaded"===u.type)).subscribe(u=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const u={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(u)}}storeAccessTokenResponse(x,T,u,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),u){const I=1e3*u,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}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){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const u=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(u),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.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 u=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 V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?u=u.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(u,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:u}).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(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const u=T.state;let[V,O]=this.parseState(u);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=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&&!x.disableOAuth2StateCheck&&!u||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:u}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),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&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,u="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),u=x.substr(V+this.config.nonceStateSeparator.length))}return[T,u]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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,u=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!u&&G.nonce!==$){const de="Wrong nonce: "+G.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&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}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 u=!1;"boolean"==typeof x&&(u=x,x={});const V=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||u||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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 u=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(u);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===u.type)).subscribe(u=>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 u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(u=>{x[u]&&T.set(u,JSON.stringify(x[u]))}),T}revokeTokenAndLogout(x={},T=!1){let u=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(u,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(u,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,u){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=u}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 u=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(u)?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)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,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 F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,z,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function u(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(z,{Z:()=>u})},4147:F=>{"use strict";F.exports={i8:"9.4.0"}}},F=>{F(F.s=919)}]); \ No newline at end of file diff --git a/dist/apps/linker/assets/config/defaultConfig.json b/dist/apps/linker/assets/config/defaultConfig.json index 39c89cbe7..5128c59f9 100644 --- a/dist/apps/linker/assets/config/defaultConfig.json +++ b/dist/apps/linker/assets/config/defaultConfig.json @@ -12,6 +12,9 @@ "oauth_response_type": "code", "oauth_offline_access_consent_prompt": true }, + "mfa": { + "url_en": "https://mfa.id.muni.cz/" + }, "application": "Linker", "document_title": "Linker", "support_mail": "perun@cesnet.cz", diff --git a/dist/apps/linker/assets/i18n/en.json b/dist/apps/linker/assets/i18n/en.json index c016d9efe..8f66806cc 100644 --- a/dist/apps/linker/assets/i18n/en.json +++ b/dist/apps/linker/assets/i18n/en.json @@ -13,10 +13,28 @@ "SIGN_IN": "Sign in", "TEXT": "You must sign in to continue." }, - "SESSION_EXPIRATION": { - "TITLE": "Session expiration", - "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "COMPONENTS": { + "SESSION_EXPIRATION": { + "TITLE": "Session expiration", + "DESCRIPTION": "Your session has expired. Please sign in to continue.", + "SIGN_IN": "Sign in" + }, + "MFA_REQUIRED_DIALOG": { + "TITLE": "Step-up authentication required", + "INFO": "To perform this action you need to execute step-up authentication.", + "CANCEL": "Cancel", + "STEP_UP": "Step-up authentication" + }, + "NO_MFA_TOKEN": { + "TITLE": "No MFA token", + "INFO": "You need to have at least one active MFA token. Please manage your MFA tokens.", + "CANCEL": "Cancel", + "MANAGE_TOKENS": "Manage tokens" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modal window is opened.", + "MODAL_WARNING": "Please check your browser settings if no modal window is open." + } } }, "CONSOLIDATOR": { diff --git a/dist/apps/linker/index.html b/dist/apps/linker/index.html index fcd764aef..a44552830 100644 --- a/dist/apps/linker/index.html +++ b/dist/apps/linker/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/linker/main.f8060792658f8d0a.js b/dist/apps/linker/main.f8060792658f8d0a.js deleted file mode 100644 index 4b9c9e35d..000000000 --- a/dist/apps/linker/main.f8060792658f8d0a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{4957:(F,N,x)=>{"use strict";var T=x(6895),g=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new g.OlP("TRANSITION_ID"),U=[{provide:g.ip1,useFactory:function $(s,r,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const X=new g.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}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,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function Be(s){(0,T.q)().remove(s)}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/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new Dt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case g.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ie),g.LFG(ge),g.LFG(g.AFp))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Ie{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Oe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(vt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(vt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,o){if(o){e=o+":"+e;const l=Oe[o];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const o=Oe[t];o?r.removeAttributeNS(o,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,o){o&(g.JOm.DashCase|g.JOm.Important)?r.style.setProperty(e,t,o&g.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&g.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function vt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class Dt extends Ie{constructor(r,e,t,o){super(r),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Se(s){return"_ngcontent-%COMP%".replace(we,s)}(o+"-"+t.id),this.hostAttr=function Ee(s){return"_nghost-%COMP%".replace(we,s)}(o+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Ie{constructor(r,e,t,o){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Rn=["alt","control","meta","shift"],xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},yn={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"},ai={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Mr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,o){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=s._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function Ol(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&yn.hasOwnProperty(r)&&(r=yn[r]))}return xt[r]||r}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Rn.forEach(l=>{l!=o&&(0,ai[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{s.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ye=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ta(){return(0,g.RDi)(document),document},deps:[]}]),li=new g.OlP(""),ia=[{provide:g.rWj,useClass:class te{addToWindow(r){g.dqk.getAngularTestability=(t,o=!0)=>{const l=r.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},g.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const o=g.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:g.lri,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]}],Ti=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function kn(){return new g.qLn},deps:[]},{provide:X,useClass:xi,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:X,useClass:Mr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,g.AFp]},{provide:g.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[X,g.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let na=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},U]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(li,12))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[...Ti,...ia],imports:[T.ez,g.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let mi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):g.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends mi{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.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ke(s){return new nt(s.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),s})();var gt=x(2076),Pe=x(9646),Me=x(7579);class Lt extends Me.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=x(6805),or=x(9841),Vi=x(7272),Je=x(9751),Vn=x(8421);function en(s){return new Je.y(r=>{(0,Vn.Xf)(s()).subscribe(r)})}var aa=x(9635),yi=x(2843),Ft=x(515),Yt=x(727),ci=x(4482),jt=x(5403);function vn(){return(0,ci.e)((s,r)=>{let e=null;s._refCount++;const t=(0,jt.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const o=s._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class ns extends Je.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Yt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,jt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Yt.w0.EMPTY)}return r}refCount(){return vn()(this)}}var Ne=x(4004),Gi=x(3900),ii=x(5698),oa=x(3269);function Bi(...s){const r=(0,oa.yG)(s);return(0,ci.e)((e,t)=>{(r?(0,Vi.z)(s,e,r):(0,Vi.z)(s,e)).subscribe(t)})}var qt=x(9300),di=x(5577),Mi=x(590),It=x(4351),Wt=x(8505),St=x(262);function tn(s,r,e,t,o){return(l,c)=>{let n=e,i=r,a=0;l.subscribe((0,jt.x)(c,d=>{const u=a++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function sa(s,r){return(0,ci.e)(tn(s,r,arguments.length>=2,!0))}function Bn(s){return s<=0?()=>Ft.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,jt.x)(e,o=>{t.push(o),s{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var sr=x(8068),Di=x(6590),Fl=x(4671);function kp(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,qt.h)((o,l)=>s(o,l,t)):Fl.y,Bn(1),e?(0,Di.d)(r):(0,sr.T)(()=>new Rt.K))}var Pd=x(9718);function la(s){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var rs=x(8189);const ut="primary";class on{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ca(s){return new on(s)}function Vp(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===o)}return s===r}function Id(s){return Array.prototype.concat.apply([],s)}function kd(s){return s.length>0?s[s.length-1]:null}function _i(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function On(s){return(0,g.CqO)(s)?s:(0,g.QGY)(s)?(0,gt.D)(Promise.resolve(s)):(0,Pe.of)(s)}const Op={exact:function Nl(s,r,e){if(!cr(s.segments,r.segments)||!Ka(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Nl(s.children[t],r.children[t],e))return!1;return!0},subset:os},Vd={exact:function lr(s,r){return An(s,r)},subset:function Ja(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Rd(s[e],r[e]))},ignored:()=>!0};function Bd(s,r,e){return Op[e.paths](s.root,r.root,e.matrixParams)&&Vd[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function os(s,r,e){return zl(s,r,r.segments,e)}function zl(s,r,e,t){if(s.segments.length>e.length){const o=s.segments.slice(0,e.length);return!(!cr(o,e)||r.hasChildren()||!Ka(o,e,t))}if(s.segments.length===e.length){if(!cr(s.segments,e)||!Ka(s.segments,e,t))return!1;for(const o in r.children)if(!s.children[o]||!os(s.children[o],r.children[o],t))return!1;return!0}{const o=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(cr(s.segments,o)&&Ka(s.segments,o,t)&&s.children[ut])&&zl(s.children[ut],r,l,t)}}function Ka(s,r,e){return r.every((t,o)=>Vd[e](s[o].parameters,t.parameters))}class sn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return ls.serialize(this)}}class lt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,_i(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xa(this)}}class da{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ca(this.parameters)),this._parameterMap}toString(){return eo(this)}}function cr(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Za=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return new ss},providedIn:"root"}),s})();class ss{parse(r){const e=new ce(r);return new sn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${cs(r.root,!0)}`,t=function Li(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(o=>`${ds(e)}=${ds(o)}`).join("&"):`${ds(e)}=${ds(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Vb(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ls=new ss;function Xa(s){return s.segments.map(r=>eo(r)).join("/")}function cs(s,r){if(!s.hasChildren())return Xa(s);if(r){const e=s.children[ut]?cs(s.children[ut],!1):"",t=[];return _i(s.children,(o,l)=>{l!==ut&&t.push(`${l}:${cs(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Oi(s,r){let e=[];return _i(s.children,(t,o)=>{o===ut&&(e=e.concat(r(t,o)))}),_i(s.children,(t,o)=>{o!==ut&&(e=e.concat(r(t,o)))}),e}(s,(t,o)=>o===ut?[cs(s.children[ut],!1)]:[`${o}:${cs(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[ut]?`${Xa(s)}/${e[0]}`:`${Xa(s)}/(${e.join("//")})`}}function Qt(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ds(s){return Qt(s).replace(/%3B/gi,";")}function Rr(s){return Qt(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(s){return decodeURIComponent(s)}function us(s){return wi(s.replace(/\+/g,"%20"))}function eo(s){return`${Rr(s.path)}${function ua(s){return Object.keys(s).map(r=>`;${Rr(r)}=${Rr(s[r])}`).join("")}(s.parameters)}`}const M=/^[^\/()?;=#]+/;function k(s){const r=s.match(M);return r?r[0]:""}const D=/^[^=?&#]+/,ee=/^[^&#]+/;class ce{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ut]=new lt(r,e)),t}parseSegment(){const r=k(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(r),new da(wi(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=k(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=k(this.remaining);o&&(t=o,this.capture(t))}r[wi(e)]=wi(t)}parseQueryParam(r){const e=function B(s){const r=s.match(D);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function pe(s){const r=s.match(ee);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=us(e),l=us(t);if(r.hasOwnProperty(o)){let c=r[o];Array.isArray(c)||(c=[c],r[o]=c),c.push(l)}else r[o]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=k(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new g.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=ut);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[ut]:new lt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new g.vHH(4011,!1)}}function Ue(s){return s.segments.length>0?new lt([],{[ut]:s}):s}function Mt(s){const r={};for(const t of Object.keys(s.children)){const l=Mt(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function kt(s){if(1===s.numberOfChildren&&s.children[ut]){const r=s.children[ut];return new lt(s.segments.concat(r.segments),r.children)}return s}(new lt(s.segments,r))}function Ct(s){return s instanceof sn}function be(s,r,e,t,o){if(0===e.length)return qi(r.root,r.root,r.root,t,o);const l=function dr(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new ha(!0,0,s);let r=0,e=!1;const t=s.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return _i(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ha(e,r,t)}(e);return l.toRoot()?qi(r.root,r.root,new lt([],{}),t,o):function c(i){const a=function Ld(s,r,e,t){if(s.isAbsolute)return new Fi(r.root,!0,0);if(-1===t)return new Fi(e,e===r.root,0);return function Bb(s,r,e){let t=s,o=r,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new g.vHH(4005,!1);o=t.segments.length}return new Fi(t,!1,o-l)}(e,t+(rt(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=a.processChildren?Ir(a.segmentGroup,a.index,l.commands):Lp(a.segmentGroup,a.index,l.commands);return qi(r.root,a.segmentGroup,d,t,o)}(s.snapshot?._lastPathIndex)}function rt(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function xn(s){return"object"==typeof s&&null!=s&&s.outlets}function qi(s,r,e,t,o){let c,l={};t&&_i(t,(i,a)=>{l[a]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:$t(s,r,e);const n=Ue(Mt(c));return new sn(n,l,o)}function $t(s,r,e){const t={};return _i(s.children,(o,l)=>{t[l]=o===r?e:$t(o,r,e)}),new lt(s.segments,t)}class ha{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&rt(t[0]))throw new g.vHH(4003,!1);const o=t.find(xn);if(o&&o!==kd(t))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Fi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Lp(s,r,e){if(s||(s=new lt([],{})),0===s.segments.length&&s.hasChildren())return Ir(s,r,e);const t=function ji(s,r,e){let t=0,o=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=s.segments[o],n=e[t];if(xn(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ln(i,a,c))return l;t+=2}else{if(!Ln(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(s,r,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=Lp(s.children[c],r,l))}),_i(s.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new lt(s.segments,o)}}function Tn(s,r,e){const t=s.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Tn(new lt([],{}),0,e))}),r}function pa(s){const r={};return _i(s,(e,t)=>r[t]=`${e}`),r}function Ln(s,r,e){return s==e.path&&An(r,e.parameters)}class ur{constructor(r,e){this.id=r,this.url=e}}class Gl extends ur{constructor(r,e,t="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kr extends ur{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ql extends ur{constructor(r,e,t,o){super(r,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wl extends ur{constructor(r,e,t,o){super(r,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fd extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jp extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jd extends ur{constructor(r,e,t,o,l){super(r,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lb extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Np extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nd{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zp{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Up{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gp{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qp{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wp{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hi{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Fn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Fn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=Nt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return Nt(r,this._root).map(e=>e.value)}}function Fn(s,r){if(s===r.value)return r;for(const e of r.children){const t=Fn(s,e);if(t)return t}return null}function Nt(s,r){if(s===r.value)return[r];for(const e of r.children){const t=Nt(s,e);if(t.length)return t.unshift(r),t}return[]}class jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function to(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class Ud extends Hi{constructor(r,e){super(r),this.snapshot=e,Ql(this,r)}toString(){return this.snapshot.toString()}}function $p(s,r){const e=function jb(s,r){const c=new fa([],{},{},"",{},ut,r,null,s.root,-1,{});return new Yl("",new jn(c,[]))}(s,r),t=new Lt([new da("",{})]),o=new Lt({}),l=new Lt({}),c=new Lt({}),n=new Lt(""),i=new Vr(t,o,c,n,l,ut,r,e.root);return i.snapshot=e.root,new Ud(new jn(i,[]),e)}class Vr{constructor(r,e,t,o,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,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,Ne.U)(r=>ca(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ne.U)(r=>ca(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hs(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function $l(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class fa{constructor(r,e,t,o,l,c,n,i,a,d,u,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._correctedLastPathIndex=p??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=ca(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yl extends Hi{constructor(r,e){super(e),this.url=r,Ql(this,e)}toString(){return Yp(this._root)}}function Ql(s,r){r.value._routerState=s,r.children.forEach(e=>Ql(s,e))}function Yp(s){const r=s.children.length>0?` { ${s.children.map(Yp).join(", ")} } `:"";return`${s.value}${r}`}function Nn(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,An(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),An(r.params,e.params)||s.params.next(e.params),function Bp(s,r){if(s.length!==r.length)return!1;for(let e=0;eAn(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||ga(s.parent,r.parent))}function ps(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const o=function fs(s,r,e){return r.children.map(t=>{for(const o of e.children)if(s.shouldReuseRoute(t.value,o.value.snapshot))return ps(s,t,o);return ps(s,t)})}(s,r,e);return new jn(t,o)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>ps(s,n)),c}}const t=function Gd(s){return new Vr(new Lt(s.url),new Lt(s.params),new Lt(s.queryParams),new Lt(s.fragment),new Lt(s.data),s.outlet,s.component,s)}(r.value),o=r.children.map(l=>ps(s,l));return new jn(t,o)}}const qd="ngNavigationCancelingError";function Qp(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Ct(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=zb(!1,0,r);return o.url=e,o.navigationBehaviorOptions=t,o}function zb(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[qd]=!0,t.cancellationCode=r,e&&(t.url=e),t}function Ub(s){return gs(s)&&Ct(s.url)}function gs(s){return s&&s[qd]}class Jp{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new io,this.attachRef=null}}let io=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jp,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const ma=!1;let Jl=(()=>{class s{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,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=o||ut,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,ma);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,ma);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,ma);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 g.vHH(4013,ma);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new Kp(e,n,o.injector);if(t&&function no(s){return!!s.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(c);this.activated=o.createComponent(a,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(io),g.Y36(g.s_b),g.$8M("name"),g.Y36(g.sBO),g.Y36(g.lqb))},s.\u0275dir=g.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class Kp{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Vr?this.route:r===io?this.childContexts:this.parent.get(r,e)}}let Zp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl],encapsulation:2}),s})();function _a(s,r){return s.providers&&!s._injector&&(s._injector=(0,g.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function ba(s){const r=s.children&&s.children.map(ba),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ut&&(e.component=Zp),e}function Wi(s){return s.outlet||ut}function Zl(s,r){const e=s.filter(t=>Wi(t)===r);return e.push(...s.filter(t=>Wi(t)!==r)),e}function ms(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $b{constructor(r,e,t,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),_i(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new zd(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Gp(r.value.snapshot))}activateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(Nn(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nn(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=ms(o.snapshot),i=n?.get(g._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class $d{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class _s{constructor(r,e){this.component=r,this.route=e}}function ef(s,r,e){const t=s._root;return Br(t,r?r._root:null,e,[t.value])}function ec(s,r,e){return(ms(r)??e).get(s)}function Br(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=to(r);return s.children.forEach(c=>{(function bs(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function Yb(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!cr(s.url,r.url);case"pathParamsOrQueryParamsChange":return!cr(s.url,r.url)||!An(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ga(s,r)||!An(s.queryParams,r.queryParams);default:return!ga(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new $d(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Br(s,r,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new _s(n.outlet.component,c))}else c&&ro(r,n,o),o.canActivateChecks.push(new $d(t)),Br(s,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),_i(l,(c,n)=>ro(c,e.getContext(n),o)),o}function ro(s,r,e){const t=to(s),o=s.value;_i(t,(l,c)=>{ro(l,o.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new _s(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function ao(s){return"function"==typeof s}function Or(s){return s instanceof Rt.K||"EmptyError"===s?.name}const hr=Symbol("INITIAL_VALUE");function Ca(){return(0,Gi.w)(s=>(0,or.a)(s.map(r=>r.pipe((0,ii.q)(1),Bi(hr)))).pipe((0,Ne.U)(r=>{for(const e of r)if(!0!==e){if(e===hr)return hr;if(!1===e||e instanceof sn)return e}return!0}),(0,qt.h)(r=>r!==hr),(0,ii.q)(1)))}function Zb(s){return(0,aa.z)((0,Wt.b)(r=>{if(Ct(r))throw Qp(0,r)}),(0,Ne.U)(r=>!0===r))}const sf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function co(s,r,e,t,o){const l=lf(s,r,e);return l.matched?function ox(s,r,e,t){const o=r.canMatch;if(!o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function rf(s){return s&&ao(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(t=_a(r,t),r,e).pipe((0,Ne.U)(c=>!0===c?l:{...sf})):(0,Pe.of)(l)}function lf(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...sf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Vp)(e,s,r);if(!o)return{...sf};const l={};_i(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function Jd(s,r,e,t,o="corrected"){if(e.length>0&&function Cs(s,r,e){return e.some(t=>tc(s,r,t)&&Wi(t)!==ut)}(s,e,t)){const c=new lt(r,function Kd(s,r,e,t){const o={};o[ut]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Wi(l)!==ut){const c=new lt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,o[Wi(l)]=c}return o}(s,r,t,new lt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function sx(s,r,e){return e.some(t=>tc(s,r,t))}(s,e,t)){const c=new lt(s.segments,function ui(s,r,e,t,o,l){const c={};for(const n of t)if(tc(s,e,n)&&!o[Wi(n)]){const i=new lt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Wi(n)]=i}return{...o,...c}}(s,r,e,t,s.children,o));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new lt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function tc(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function $i(s,r,e,t){return!!(Wi(s)===t||t!==ut&&tc(r,e,s))&&("**"===s.path||lf(r,s,e).matched)}function Un(s,r,e){return 0===r.length&&!s.children[e]}const ys=!1;class ya{constructor(r){this.segmentGroup=r||null}}class uo{constructor(r){this.urlTree=r}}function ho(s){return(0,yi._)(new ya(s))}function cf(s){return(0,yi._)(new uo(s))}class df{constructor(r,e,t,o,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const r=Jd(this.urlTree.root,[],[],this.config).segmentGroup,e=new lt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ut).pipe((0,Ne.U)(l=>this.createUrlTree(Mt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,St.K)(l=>{if(l instanceof uo)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof ya?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ut).pipe((0,Ne.U)(o=>this.createUrlTree(Mt(o),r.queryParams,r.fragment))).pipe((0,St.K)(o=>{throw o instanceof ya?this.noMatchError(o):o}))}noMatchError(r){return new g.vHH(4002,ys)}createUrlTree(r,e,t){const o=Ue(r);return new sn(o,e,t)}expandSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,Ne.U)(l=>new lt([],l))):this.expandSegment(r,t,e,t.segments,o,!0)}expandChildren(r,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,gt.D)(o).pipe((0,It.b)(l=>{const c=t.children[l],n=Zl(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,Ne.U)(i=>({segment:i,outlet:l})))}),sa((l,c)=>(l[c.outlet]=c.segment,l),{}),kp())}expandSegment(r,e,t,o,l,c){return(0,gt.D)(t).pipe((0,It.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,o,l,c).pipe((0,St.K)(a=>{if(a instanceof ya)return(0,Pe.of)(null);throw a}))),(0,Mi.P)(n=>!!n),(0,St.K)((n,i)=>{if(Or(n))return Un(e,o,l)?(0,Pe.of)(new lt([],{})):ho(e);throw n}))}expandSegmentAgainstRoute(r,e,t,o,l,c,n){return $i(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c):ho(e):ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?cf(l):this.lineralizeSegments(t,l).pipe((0,di.z)(c=>{const n=new lt(c,{});return this.expandSegment(r,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:a,positionalParamSegments:d}=lf(e,o,l);if(!n)return ho(e);const u=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?cf(u):this.lineralizeSegments(o,u).pipe((0,di.z)(p=>this.expandSegment(r,e,t,p.concat(a),c,!1)))}matchSegmentAgainstRoute(r,e,t,o,l){return"**"===t.path?(r=_a(t,r),t.loadChildren?(t._loadedRoutes?(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,Ne.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new lt(o,{})))):(0,Pe.of)(new lt(o,{}))):co(e,t,o,r).pipe((0,Gi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,o).pipe((0,di.z)(d=>{const u=d.injector??r,p=d.routes,{segmentGroup:b,slicedSegments:H}=Jd(e,n,i,p),z=new lt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,p,z).pipe((0,Ne.U)(mt=>new lt(n,mt)));if(0===p.length&&0===H.length)return(0,Pe.of)(new lt(n,{}));const ae=Wi(t)===l;return this.expandSegment(u,z,p,H,ae?ut:l,!0).pipe((0,Ne.U)(ot=>new lt(n.concat(ot.segments),ot.children)))})):ho(e)))}getChildConfig(r,e,t){return e.children?(0,Pe.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,Pe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function ax(s,r,e,t){const o=r.canLoad;if(void 0===o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function Qb(s){return s&&ao(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(r,e,t).pipe((0,di.z)(o=>o?this.configLoader.loadChildren(r,e).pipe((0,Wt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function lx(s){return(0,yi._)(zb(ys,3))}())):(0,Pe.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Pe.of)(t);if(o.numberOfChildren>1||!o.children[ut])return(0,yi._)(new g.vHH(4e3,ys));o=o.children[ut]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,o){const l=this.createSegmentGroup(r,e.root,t,o);return new sn(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return _i(r,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(r,e,t,o){const l=this.createSegments(r,e.segments,t,o);let c={};return _i(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,o)}),new lt(l,c)}createSegments(r,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,o):this.findOrReturn(l,t))}findPosParam(r,e,t){const o=t[e.path.substring(1)];if(!o)throw new g.vHH(4001,ys);return o}findOrReturn(r,e){let t=0;for(const o of e){if(o.path===r.path)return e.splice(t),o;t++}return r}}class fo{}class eC{constructor(r,e,t,o,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Jd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ut).pipe((0,Ne.U)(e=>{if(null===e)return null;const t=new fa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jn(t,e),l=new Yl(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=hs(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,o)}processChildren(r,e,t){return(0,gt.D)(Object.keys(t.children)).pipe((0,It.b)(o=>{const l=t.children[o],c=Zl(e,o);return this.processSegmentGroup(r,c,l,o)}),sa((o,l)=>o&&l?(o.push(...l),o):null),function jl(s,r=!1){return(0,ci.e)((e,t)=>{let o=0;e.subscribe((0,jt.x)(t,l=>{const c=s(l,o++);(c||r)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,Di.d)(null),kp(),(0,Ne.U)(o=>{if(null===o)return null;const l=hf(o);return function tC(s){s.sort((r,e)=>r.value.outlet===ut?-1:e.value.outlet===ut?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,o,l){return(0,gt.D)(e).pipe((0,It.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,o,l)),(0,Mi.P)(c=>!!c),(0,St.K)(c=>{if(Or(c))return Un(t,o,l)?(0,Pe.of)([]):(0,Pe.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,o,l){if(e.redirectTo||!$i(e,t,o,l))return(0,Pe.of)(null);let c;if("**"===e.path){const n=o.length>0?kd(o).parameters:{},i=ws(t)+o.length,a=new fa(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),i,nc(e),i);c=(0,Pe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else c=co(t,e,o,r).pipe((0,Ne.U)(({matched:n,consumedSegments:i,remainingSegments:a,parameters:d})=>{if(!n)return null;const u=ws(t)+i.length;return{snapshot:new fa(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),u,nc(e),u),consumedSegments:i,remainingSegments:a}}));return c.pipe((0,Gi.w)(n=>{if(null===n)return(0,Pe.of)(null);const{snapshot:i,consumedSegments:a,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,p=function iC(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Jd(t,a,d,p.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,p,b).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]));if(0===p.length&&0===H.length)return(0,Pe.of)([new jn(i,[])]);const z=Wi(e)===l;return this.processSegment(u,p,b,H,z?ut:l).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]))}))}}function nC(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function hf(s){const r=[],e=new Set;for(const t of s){if(!nC(t)){r.push(t);continue}const o=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):r.push(t)}for(const t of e){const o=hf(t.children);r.push(new jn(t.value,o))}return r.filter(t=>!e.has(t))}function ic(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function ws(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function go(s){return s.data||{}}function nc(s){return s.resolve||{}}const Zd=Symbol("RouteTitle");function ff(s){return"string"==typeof s.title||null===s.title}function Jt(s){return(0,Gi.w)(r=>{const e=s(r);return e?(0,gt.D)(e).pipe((0,Ne.U)(()=>r)):(0,Pe.of)(r)})}let Xd=(()=>{class s{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===ut);return t}getResolvedTitleForRoute(e){return e.data[Zd]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return(0,g.f3M)(eu)},providedIn:"root"}),s})(),eu=(()=>{class s extends Xd{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Y))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class tu{}class lC extends class As{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const iu=new g.OlP("",{providedIn:"root",factory:()=>({})}),wa=new g.OlP("ROUTES");let oc=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Pe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=On(e.loadComponent()).pipe((0,Wt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),la(()=>{this.componentLoaders.delete(e)})),o=new ns(t,()=>new Me.x).pipe(vn());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Ne.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,a,d=!1;Array.isArray(n)?a=n:(i=n.create(e).injector,a=Id(i.get(wa,[],g.XFs.Self|g.XFs.Optional)));return{routes:a.map(ba),injector:i}}),la(()=>{this.childrenLoaders.delete(t)})),c=new ns(l,()=>new Me.x).pipe(vn());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return On(e()).pipe((0,di.z)(t=>t instanceof g.YKP||Array.isArray(t)?(0,Pe.of)(t):(0,gt.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(g.Sil))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class xs{}class dC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Es(s){throw s}function sc(s,r,e){return r.parse("/")}const gf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function va(){const s=(0,g.f3M)(Za),r=(0,g.f3M)(io),e=(0,g.f3M)(T.Ye),t=(0,g.f3M)(g.zs3),o=(0,g.f3M)(g.Sil),l=(0,g.f3M)(wa,{optional:!0})??[],c=(0,g.f3M)(iu,{optional:!0})??{},n=(0,g.f3M)(eu),i=(0,g.f3M)(Xd,{optional:!0}),a=(0,g.f3M)(xs,{optional:!0}),d=(0,g.f3M)(tu,{optional:!0}),u=new Kt(null,s,r,e,t,o,Id(l));return a&&(u.urlHandlingStrategy=a),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function hC(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let Kt=(()=>{class s{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=Es,this.malformedUriErrorHandler=sc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Pe.of)(void 0),this.urlHandlingStrategy=new dC,this.routeReuseStrategy=new lC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(oc),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new zp(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Nd(p)),this.ngModule=c.get(g.h0i),this.console=c.get(g.c2e);const u=c.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function as(){return new sn(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$p(this.currentUrlTree,this.rootComponentType),this.transitions=new Lt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,qt.h)(o=>0!==o.id),(0,Ne.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Gi.w)(o=>{let l=!1,c=!1;return(0,Pe.of)(o).pipe((0,Wt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Gi.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return fC(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Pe.of)(n).pipe((0,Gi.w)(u=>{const p=this.transitions.getValue();return t.next(new Gl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Ft.E:Promise.resolve(u)}),function nn(s,r,e,t){return(0,Gi.w)(o=>function cx(s,r,e,t,o){return new df(s,r,e,t,o).apply()}(s,r,e,o.extractedUrl,t).pipe((0,Ne.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function rc(s,r,e,t,o,l){return(0,di.z)(c=>function uf(s,r,e,t,o,l,c="emptyOnly",n="legacy"){return new eC(s,r,e,t,o,c,n,l).recognize().pipe((0,Gi.w)(i=>null===i?function dx(s){return new Je.y(r=>r.error(s))}(new fo):(0,Pe.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,Ne.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(u=>{if(o.targetSnapshot=u.targetSnapshot,"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 p=new Fd(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,Ve=new Gl(p,this.serializeUrl(b),H,z);t.next(Ve);const ot=$p(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ot,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Pe.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ft.E}),(0,Wt.b)(n=>{const i=new jp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Ne.U)(n=>o={...n,guards:ef(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function Qd(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Pe.of)({...e,guardsResult:!0}):function lo(s,r,e,t){return(0,gt.D)(s).pipe((0,di.z)(o=>function rx(s,r,e,t,o){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Pe.of)(!0);const c=l.map(n=>{const i=ec(n,r,o);return On(function Jb(s){return s&&ao(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,Mi.P)())});return(0,Pe.of)(c).pipe(Ca())}(o.component,o.route,e,r,t)),(0,Mi.P)(o=>!0!==o,!0))}(c,t,o,s).pipe((0,di.z)(n=>n&&function oo(s){return"boolean"==typeof s}(n)?function tx(s,r,e,t){return(0,gt.D)(r).pipe((0,It.b)(o=>(0,Vi.z)(function Ht(s,r){return null!==s&&r&&r(new Up(s)),(0,Pe.of)(!0)}(o.route.parent,t),function Kb(s,r){return null!==s&&r&&r(new qp(s)),(0,Pe.of)(!0)}(o.route,t),function nx(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function tf(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>en(()=>{const n=c.guards.map(i=>{const a=ec(i,c.node,e);return On(function Yd(s){return s&&ao(s.canActivateChild)}(a)?a.canActivateChild(t,s):a(t,s)).pipe((0,Mi.P)())});return(0,Pe.of)(n).pipe(Ca())}));return(0,Pe.of)(l).pipe(Ca())}(s,o.path,e),function ix(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Pe.of)(!0);const o=t.map(l=>en(()=>{const c=ec(l,r,e);return On(function nf(s){return s&&ao(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,Mi.P)())}));return(0,Pe.of)(o).pipe(Ca())}(s,o.route,e))),(0,Mi.P)(o=>!0!==o,!0))}(t,l,s,r):(0,Pe.of)(n)),(0,Ne.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Wt.b)(n=>{if(o.guardsResult=n.guardsResult,Ct(n.guardsResult))throw Qp(0,n.guardsResult);const i=new jd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,qt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Jt(n=>{if(n.guards.canActivateChecks.length)return(0,Pe.of)(n).pipe((0,Wt.b)(i=>{const a=new Lb(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,Gi.w)(i=>{let a=!1;return(0,Pe.of)(i).pipe(function oC(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Pe.of)(e);let l=0;return(0,gt.D)(o).pipe((0,It.b)(c=>function sC(s,r,e,t){const o=s.routeConfig,l=s._resolve;return void 0!==o?.title&&!ff(o)&&(l[Zd]=o.title),function pf(s,r,e,t){const o=function vs(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===o.length)return(0,Pe.of)({});const l={};return(0,gt.D)(o).pipe((0,di.z)(c=>function mo(s,r,e,t){const o=ec(s,r,t);return On(o.resolve?o.resolve(r,e):o(r,e))}(s[c],r,e,t).pipe((0,Mi.P)(),(0,Wt.b)(n=>{l[c]=n}))),Bn(1),(0,Pd.h)(l),(0,St.K)(c=>Or(c)?Ft.E:(0,yi._)(c)))}(l,s,r,t).pipe((0,Ne.U)(c=>(s._resolvedData=c,s.data=hs(s,e).resolve,o&&ff(o)&&(s.data[Zd]=o.title),null)))}(c.route,t,s,r)),(0,Wt.b)(()=>l++),Bn(1),(0,di.z)(c=>l===o.length?(0,Pe.of)(e):Ft.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Wt.b)(i=>{const a=new Np(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Jt(n=>{const i=a=>{const d=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,Wt.b)(u=>{a.component=u}),(0,Ne.U)(()=>{})));for(const u of a.children)d.push(...i(u));return d};return(0,or.a)(i(n.targetSnapshot.root)).pipe((0,Di.d)(),(0,ii.q)(1))}),Jt(()=>this.afterPreactivation()),(0,Ne.U)(n=>{const i=function Nb(s,r,e){const t=ps(s,r._root,e?e._root:void 0);return new Ud(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,Wt.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)}),((s,r,e)=>(0,Ne.U)(t=>(new $b(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Wt.b)({next(){l=!0},complete(){l=!0}}),la(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,St.K)(n=>{if(c=!0,gs(n)){Ub(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new ql(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),Ub(n)){const a=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fC(o.source)};this.scheduleNavigation(a,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new Wl(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(a){o.reject(a)}}return Ft.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ba),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:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),be(a,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=Ct(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function pC(s){for(let r=0;r{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new kr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,a;c?(n=c.resolve,i=c.reject,a=c.promise):a=new Promise((p,b)=>{n=p,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),u=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}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,o){const l=new ql(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:function(){return va()},providedIn:"root"}),s})();function fC(s){return"imperative"!==s}class mf{}let au=(()=>{class s{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(e=>e instanceof kr),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,g.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,gt.D)(o).pipe((0,rs.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Pe.of)(null);const l=o.pipe((0,di.z)(c=>null===c?(0,Pe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,gt.D)([l,c]).pipe((0,rs.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Kt),g.LFG(g.Sil),g.LFG(g.lqb),g.LFG(mf),g.LFG(oc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _f=new g.OlP("");let bf=(()=>{class s{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Gl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof kr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wp&&(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 Wp(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _C=new g.OlP("ROUTER_FORROOT_GUARD"),cc=new g.OlP(""),bC=[T.Ye,{provide:Za,useClass:ss},{provide:Kt,useFactory:va},io,{provide:Vr,useFactory:function Cf(s){return s.routerState.root},deps:[Kt]},oc];function dc(){return new g.PXZ("Router",Kt)}let _o=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[bC,[],Ss(e),{provide:_C,useFactory:px,deps:[[Kt,new g.FiY,new g.tp0]]},{provide:iu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_f,useFactory:()=>{const s=(0,g.f3M)(Kt),r=(0,g.f3M)(T.EM),e=(0,g.f3M)(iu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new bf(s,r,e)}},t?.preloadingStrategy?xC(t.preloadingStrategy):[],{provide:g.PXZ,multi:!0,useFactory:dc},t?.initialNavigation?yf(t):[],[{provide:su,useFactory:ou},{provide:g.tb,multi:!0,useExisting:su}]]}}static forChild(e){return{ngModule:s,providers:[Ss(e)]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(_C,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();function px(s){return"guarded"}function Ss(s){return[{provide:wa,multi:!0,useValue:s}]}function ou(){const s=(0,g.f3M)(g.zs3);return r=>{const e=s.get(g.z2F);if(r!==e.components[0])return;const t=s.get(Kt),o=s.get(Lr);1===s.get(lu)&&t.initialNavigation(),s.get(cc,null,g.XFs.Optional)?.setUpPreloading(),s.get(_f,null,g.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const su=new g.OlP("");function yf(s){return["disabled"===s.initialNavigation?[{provide:g.ip1,multi:!0,useFactory:()=>{const s=(0,g.f3M)(Kt);return()=>{s.setUpLocationChangeListener()}}},{provide:lu,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lu,useValue:0},{provide:g.ip1,multi:!0,deps:[g.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(o=>{const l=s.get(Kt),c=s.get(Lr);(function t(o){s.get(Kt).events.pipe((0,qt.h)(c=>c instanceof kr||c instanceof ql||c instanceof Wl),(0,Ne.U)(c=>c instanceof kr||c instanceof ql&&(0===c.code||1===c.code)&&null),(0,qt.h)(c=>null!==c),(0,ii.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Pe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Lr=new g.OlP("",{factory:()=>new Me.x}),lu=new g.OlP("",{providedIn:"root",factory:()=>1});function xC(s){return[au,{provide:cc,useExisting:au},{provide:mf,useExisting:s}]}let Co=(()=>{class s{constructor(){this.title="linker"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl]}),s})();var Ms=x(1214);let cu;try{cu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cu=!1}let yo,hi=(()=>{class s{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&&!cu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.Lbi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function du(){if(yo)return yo;if("object"!=typeof document||!document)return yo=new Set(vf),yo;let s=document.createElement("input");return yo=new Set(vf.filter(r=>(s.setAttribute("type",r),s.type===r))),yo}let Ds,wo,pc;function Gn(s){return function TC(){if(null==Ds&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ds=!0}))}finally{Ds=Ds||!1}return Ds}()?s:!!s.capture}function EC(){if(null==wo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wo=!1,wo;if("scrollBehavior"in document.documentElement.style)wo=!0;else{const s=Element.prototype.scrollTo;wo=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return wo}function jr(s){if(function qn(){if(null==pc){const s=typeof document<"u"?document.head:null;pc=!(!s||!s.createShadowRoot&&!s.attachShadow)}return pc}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function fc(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function ln(s){return s.composedPath?s.composedPath()[0]:s.target}function gc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function pr(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Ac=x(8372);function xc(s){return(0,qt.h)((r,e)=>s<=e)}function Rs(s,r){return s===r}var mu=x(5032);function zt(s){return(0,ci.e)((r,e)=>{(0,Vn.Xf)(s).subscribe((0,jt.x)(e,()=>e.complete(),mu.Z)),!e.closed&&r.subscribe(e)})}function ct(s){return null!=s&&"false"!=`${s}`}function cn(s,r=0){return function KC(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Is(s){return Array.isArray(s)?s:[s]}function oi(s){return null==s?"":"string"==typeof s?s:`${s}px`}function Zt(s){return s instanceof g.SBq?s.nativeElement:s}let qf=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ZC=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Je.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,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:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(qf))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_u=(()=>{class s{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cn(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,Ac.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(ZC),g.Y36(g.SBq),g.Y36(g.R0b))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),ks=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[qf]}),s})();const xa=new Set;let Yi,XC=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aT}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ey(s){if(!xa.has(s))try{Yi||(Yi=document.createElement("style"),Yi.setAttribute("type","text/css"),document.head.appendChild(Yi)),Yi.sheet&&(Yi.sheet.insertRule(`@media ${s} {body{ }}`,0),xa.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function aT(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let oT=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bu(Is(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=bu(Is(e)).map(c=>this._registerQuery(c).observable);let l=(0,or.a)(o);return l=(0,Vi.z)(l.pipe((0,ii.q)(1)),l.pipe(xc(1),(0,Ac.b)(0))),l.pipe((0,Ne.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Je.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Bi(t),(0,Ne.U)(({matches:c})=>({query:e,matches:c})),zt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(XC),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function bu(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Vs=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Cu(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ay(s){try{return s.frameElement}catch{return null}}(function vu(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===yu(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=yu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function wu(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function eg(s){return!function sy(s){return function cy(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function oy(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function ly(s){return function dy(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Xf(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Xf(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function yu(s){if(!Xf(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class uy{constructor(r,e,t,o,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(r)}}let Au=(()=>{class s{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new uy(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Vs),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function tg(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function To(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const my=new g.OlP("cdk-input-modality-detector-options"),ig={ignoreKeys:[18,17,224,91,16]},Ea=Gn({passive:!0,capture:!0});let Tu=(()=>{class s{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Lt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ln(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(tg(c)?"keyboard":"mouse"),this._mostRecentTarget=ln(c))},this._onTouchstart=c=>{To(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ln(c))},this._options={...ig,...l},this.modalityDetected=this._modality.pipe(xc(1)),this.modalityChanged=this.modalityDetected.pipe(function Pi(s,r=Fl.y){return s=s??Rs,(0,ci.e)((e,t)=>{let o,l=!0;e.subscribe((0,jt.x)(t,c=>{const n=r(c);(l||!s(o,n))&&(l=!1,o=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ea),o.addEventListener("mousedown",this._onMousedown,Ea),o.addEventListener("touchstart",this._onTouchstart,Ea)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ea),document.removeEventListener("mousedown",this._onMousedown,Ea),document.removeEventListener("touchstart",this._onTouchstart,Ea))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(my,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const rg=new g.OlP("cdk-focus-monitor-default-options"),Eo=Gn({passive:!0,capture:!0});let dn=(()=>{class s{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Me.x,this._rootNodeFocusAndBlurListener=n=>{for(let a=ln(n);a;a=a.parentElement)"focus"===n.type?this._onFocus(n,a):this._onBlur(n,a)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=Zt(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Pe.of)(null);const l=jr(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Me.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Zt(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=Zt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=ln(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Eo)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(zt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Eo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,g.f3M)(oT).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Mu,Su,ag),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Mu,Su):2===t&&e.add(Mu,ag)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),So=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[ks]}),s})();const og=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function cT(){return(0,g.f3M)(T.K0)}}),sg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nr=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new g.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Cy(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?sg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(og,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const Ay=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function vy(){return!0}});let Ae=(()=>{class s{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!gc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du),g.LFG(Ay,8),g.LFG(T.K0))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Mo]}),s})();function Sc(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ct(r)}}}function Sa(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function zr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ct(r)}}}function Hu(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Sy=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function mT(){return(0,g.f3M)(g.soG)}});class hn{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),o=this.isValid(e);return t&&o?!this.compareDate(r,e):t==o}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Os=new g.OlP("mat-date-formats"),Ma=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Pu(s,r){const e=Array(s);for(let t=0;t{class s extends hn{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 Pu(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Pu(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 Pu(7,o=>this._format(t,new Date(2017,0,o+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,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}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(Ma.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,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Sy,8),g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ru={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 My=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:Mc}]}),s})(),Dy=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:Os,useValue:Ru}],imports:[My]}),s})(),Dc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Pc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();class Do{constructor(r,e,t,o=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ug={enterDuration:225,exitDuration:150},Ho=Gn({passive:!0}),pg=["mousedown","touchstart"],Iu=["mouseup","mouseleave","touchend","touchcancel"];class fg{constructor(r,e,t,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...ug,...t.animation};t.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function Py(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+o*o)}(r,e,o),n=r-o.left,i=e-o.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new Do(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(a||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ve=()=>this._finishRippleTransition(z),ot=()=>this._destroyRipple(z);d.addEventListener("transitionend",Ve),d.addEventListener("transitioncancel",ot),ae={onTransitionEnd:Ve,onTransitionCancel:ot}}),this._activeRipples.set(z,ae),(H||!a)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...ug,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(pg))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Iu),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=tg(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Ho)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(pg.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}),this._pointerUpEventsRegistered&&Iu.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}))}}const gg=new g.OlP("mat-ripple-global-options");let Da=(()=>{class s{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new fg(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(hi),g.Y36(gg,8),g.Y36(g.QbO,8))},s.\u0275dir=g.lG2({type:s,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"]}),s})(),pn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae]}),s})(),Rc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,T.ez,Ae,ku]}),s})();const By=["mat-button",""],Bu=["*"],Cg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lu=Sa(Sc(zr(class{constructor(s){this._elementRef=s}})));let yg=(()=>{class s extends Lu{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Cg)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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(dn),g.Y36(g.QbO,8))},s.\u0275cmp=g.Xpm({type:s,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(Da,5),2&e){let o;g.iGM(o=g.CRH())&&(t.ripple=o.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:By,ngContentSelectors:Bu,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)(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()))},dependencies:[Da],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),fr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();var Ic=x(1144),fn=x(576),kc=x(3268);const Fu=["addListener","removeListener"],ju=["addEventListener","removeEventListener"],bT=["on","off"];function Fs(s,r,e,t){if((0,fn.m)(e)&&(t=e,e=void 0),t)return Fs(s,r,e).pipe((0,kc.Z)(t));const[o,l]=function vg(s){return(0,fn.m)(s.addEventListener)&&(0,fn.m)(s.removeEventListener)}(s)?ju.map(c=>n=>s[c](r,n,e)):function Ly(s){return(0,fn.m)(s.addListener)&&(0,fn.m)(s.removeListener)}(s)?Fu.map(wg(s,r)):function Fy(s){return(0,fn.m)(s.on)&&(0,fn.m)(s.off)}(s)?bT.map(wg(s,r)):[];if(!o&&(0,Ic.z)(s))return(0,di.z)(c=>Fs(c,r,e))((0,Vn.Xf)(s));if(!o)throw new TypeError("Invalid event target");return new Je.y(c=>{const n=(...i)=>c.next(1l(n)})}function wg(s,r){return e=>t=>s[e](r,t)}var jy=x(4408);const js={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=js;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=r(l=>{e=void 0,s(l)});return new Yt.w0(()=>e?.(o))},requestAnimationFrame(...s){const{delegate:r}=js;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=js;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var Nu=x(7565);const xg=new class Ag extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class CT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=js.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(js.cancelAnimationFrame(e),r._scheduled=void 0)}});let Eg,yT=1;const zu={};function Ny(s){return s in zu&&(delete zu[s],!0)}const wT={setImmediate(s){const r=yT++;return zu[r]=!0,Eg||(Eg=Promise.resolve()),Eg.then(()=>Ny(r)&&s()),r},clearImmediate(s){Ny(s)}},{setImmediate:vT,clearImmediate:AT}=wT,Uu={setImmediate(...s){const{delegate:r}=Uu;return(r?.setImmediate||vT)(...s)},clearImmediate(s){const{delegate:r}=Uu;return(r?.clearImmediate||AT)(s)},delegate:void 0};new class Gr extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class xT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Uu.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(Uu.clearImmediate(e),r._scheduled=void 0)}});var qu=x(4986),$u=x(2805);function Ns(s,r=qu.z){return function Wu(s){return(0,ci.e)((r,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const a=o;o=null,e.next(a)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,jt.x)(e,a=>{t=!0,o=a,l||(0,Vn.Xf)(s(a)).subscribe(l=(0,jt.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,$u.H)(s,r))}let Uy=(()=>{class s{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}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 Je.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Ns(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Pe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,qt.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=Zt(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Fs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(hi),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$n=(()=>{class s{constructor(e,t,o){this._platform=e,this._change=new Me.x,this._changeListener=l=>{this._change.next(l)},this._document=o,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:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ns(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 s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),qr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Yn,Mo,Yn]}),s})();class Oc{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Qu extends Oc{constructor(r,e,t,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class Qi extends Oc{constructor(r,e,t,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Rg extends Oc{constructor(r){super(),this.element=r instanceof g.SBq?r.nativeElement:r}}class Ju{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Qu?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Qi?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Rg?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Yy extends Ju{constructor(r,e,t,o,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(r.injector||this._defaultInjector||g.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Ku=(()=>{class s extends Ju{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),s})(),gr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var mr=x(6451);const kg=EC();class Jy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=oi(-this._previousScrollPosition.left),r.style.top=oi(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),kg&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kg&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_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 Vg{constructor(r,e,t,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Bg{enable(){}disable(){}attach(){}}function gn(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Lc(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class Zy{constructor(r,e,t,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();gn(e,[{width:t,height:o,bottom:o,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 Xy=(()=>{class s{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Bg,this.close=c=>new Vg(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new Jy(this._viewportRuler,this._document),this.reposition=c=>new Zy(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Uy),g.LFG($n),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class ew{constructor(r){if(this.scrollStrategy=new Bg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class iw{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Lg=(()=>{class s{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 s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),nw=(()=>{class s extends Lg{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s extends Lg{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=ln(l)},this._clickListener=l=>{const c=ln(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const d=i[a];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(hi),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Po=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||gc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=oi(this._config.width),r.height=oi(this._config.height),r.minWidth=oi(this._config.minWidth),r.minHeight=oi(this._config.minHeight),r.maxWidth=oi(this._config.maxWidth),r.maxHeight=oi(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const o=Is(e||[]).filter(l=>!!l);o.length&&(t?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(zt((0,mr.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Zu="cdk-overlay-connected-position-bounding-box",Xu=/([A-Za-z%]+)$/;class Fg{constructor(r,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Me.x,this._resizeSubscription=Yt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Zu),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,o,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let o,l;if("center"==t.originX)o=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(r,e,t){let o,l;return o="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:r.x+o,y:r.y+l}}_getOverlayFit(r,e,t,o){const l=jc(e);let{x:c,y:n}=r,i=this._getOffset(o,"x"),a=this._getOffset(o,"y");i&&(c+=i),a&&(n+=a);let p=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,p,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=rw(this._overlayRef.getConfig().minHeight),n=rw(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=o)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=jc(e),l=this._viewportRect,c=Math.max(r.x+o.width-l.width,0),n=Math.max(r.y+o.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=o.width<=l.width?a||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)p=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:p,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=oi(t.height),o.top=oi(t.top),o.bottom=oi(t.bottom),o.width=oi(t.width),o.left=oi(t.left),o.right=oi(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=oi(l)),c&&(o.maxWidth=oi(c))}this._lastBoundingBoxSize=t,Ro(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Ro(t,this._getExactOverlayY(e,r,d)),Ro(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=oi(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=oi(c.maxWidth):l&&(t.maxWidth="")),Ro(this._pane.style,t)}_getExactOverlayY(r,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=oi(l.y),o}_getExactOverlayX(r,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=oi(l.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Lc(r,t),isOriginOutsideView:gn(r,t),isOverlayClipped:Lc(e,t),isOverlayOutsideView:gn(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,o)=>t-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Is(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof g.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Ro(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function rw(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xu);return e&&"px"!==e?null:parseFloat(r)}return s||null}function jc(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const eh="cdk-global-overlay-wrapper";class jg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(eh),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",p?H=u:b=u):p?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(eh),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ng=(()=>{class s{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new jg}flexibleConnectedTo(e){return new Fg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG($n),g.LFG(T.K0),g.LFG(hi),g.LFG(Po))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zg=0,mn=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u,p,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ew(e);return c.direction=c.direction||this._directionality.value,new Us(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+zg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new Yy(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xy),g.LFG(Po),g.LFG(g._Vd),g.LFG(Ng),g.LFG(nw),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(Nr),g.LFG(T.Ye),g.LFG(Fc),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const ih={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[mn],useFactory:function aw(s){return()=>s.scrollStrategies.reposition()}};let Pa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[mn,ih],imports:[Mo,gr,qr,qr]}),s})();class Ug{}const _r="*";function si(s,r){return{type:7,name:s,definitions:r,options:{}}}function yt(s,r=null){return{type:4,styles:r,timings:s}}function ow(s,r=null){return{type:3,steps:s,options:r}}function Gg(s,r=null){return{type:2,steps:s,options:r}}function je(s){return{type:6,styles:s,offset:null}}function ht(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Io(s=null){return{type:9,options:s}}function ko(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function qg(s){Promise.resolve(null).then(s)}class qs{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Wg{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,o=0;const l=this.players.length;0==l?qg(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const lw=["connectionContainer"],Uc=["inputContainer"],Ia=["label"];function UT(s,r){1&s&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Ws(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&s){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function cw(s,r){if(1&s&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&s){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function dw(s,r){1&s&&g.Hsn(0,3,["*ngSwitchCase","true"])}function rh(s,r){1&s&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function uw(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.YNc(2,cw,4,1,"ng-container",12),g.YNc(3,dw,1,0,"ng-content",12),g.YNc(4,rh,2,0,"span",22),g.qZA()}if(2&s){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 Qn(s,r){1&s&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function $s(s,r){if(1&s&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Ri(s,r){if(1&s&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ka(s,r){if(1&s&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Gc(s,r){if(1&s&&(g.TgZ(0,"div",27),g.YNc(1,ka,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const _n=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ah=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Vo=new g.OlP("MatError"),Bo={transitionMessages:si("transitionMessages",[ht("enter",je({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let br=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s}),s})();const $g=new g.OlP("MatHint");let oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-label"]]}),s})(),Yg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const Qg=new g.OlP("MatPrefix"),Jg=new g.OlP("MatSuffix");let sh=0;const mw=Sa(class{constructor(s){this._elementRef=s}},"primary"),Zg=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lh=new g.OlP("MatFormField");let Xg=(()=>{class s extends mw{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+sh++,this._labelId="mat-form-field-label-"+sh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(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(Bi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(zt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,mr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Bi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Bi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(zt(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,Fs(this._label.nativeElement,"transitionend").pipe((0,ii.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,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.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,o=".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 d=t.querySelectorAll(`${o}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,ks,Ae]}),s})();const ph={provide:new g.OlP("mat-select-scroll-strategy"),deps:[mn],useFactory:function om(s){return()=>s.scrollStrategies.reposition()}};let el=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[ph],imports:[T.ez,Pa,Rc,Ae,Yn,Cr,Rc,Ae]}),s})();const Iw={provide:new g.OlP("mat-tooltip-scroll-strategy"),deps:[mn],useFactory:function cm(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}};let il=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Iw],imports:[So,T.ez,Pa,Ae,Ae,Yn]}),s})(),bn=(()=>{class s{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lw={provide:bn,deps:[[new g.FiY,new g.tp0,bn]],useFactory:function Ow(s){return s||new bn}};let Wc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Lw],imports:[T.ez,fr,el,il,Ae]}),s})();const Jw={provide:new g.OlP("mat-menu-scroll-strategy"),deps:[mn],useFactory:function wm(s){return()=>s.scrollStrategies.reposition()}};let Yc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Jw],imports:[T.ez,Ae,pn,Pa,Yn,Ae]}),s})();var Kw=x(4742),Zw=x(1810);function mh(...s){const r=(0,oa.jO)(s),{args:e,keys:t}=(0,Kw.D)(s),o=new Je.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,a=c;for(let d=0;d{u||(u=!0,a--),n[d]=p},()=>i--,void 0,()=>{(!i||!u)&&(a||l.next(t?(0,Zw.n)(t,n):n),l.complete())}))}});return r?o.pipe((0,kc.Z)(r)):o}var vm=x(3099),y=x(529);const Xw=["*"];let Qc;function nl(s){return function ev(){if(void 0===Qc&&(Qc=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Qc=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Qc}()?.createHTML(s)||s}function Am(s){return Error(`Unable to find icon with the name "${s}"`)}function xm(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function _h(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class $r{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Oo=(()=>{class s{constructor(e,t,o,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","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new $r(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(g.q3G.HTML,o);if(!c)throw _h(o);const n=nl(c);return this._addSvgIconConfig(e,t,new $r("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new $r(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(g.q3G.HTML,t);if(!l)throw _h(t);const c=nl(l);return this._addSvgIconSetConfig(e,new $r("",c,o))}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 xm(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Pe.of)(rl(o)):this._loadSvgIconFromConfig(new $r(e,null)).pipe((0,Wt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Ne.U)(l=>rl(l)))}getNamedSvgIcon(e,t=""){const o=bh(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,yi._)(Am(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Pe.of)(rl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Ne.U)(t=>rl(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Pe.of)(o):mh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,St.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,Pe.of)(null)})))).pipe((0,Ne.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Am(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Ne.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Pe.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(nl(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(nl("")),o=e.attributes;for(let l=0;lnl(a)),la(()=>this._inProgressUrlFetches.delete(c)),(0,vm.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(bh(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.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 o=0;or?r.pathname+r.search:""}}}),Mm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nv=Mm.map(s=>`[${s}]`).join(", "),Lo=/^url\(['"]?#(.*?)['"]?\)$/;let rv=(()=>{class s extends Sm{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Yt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(nv),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(Lo):null;if(a){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,ii.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Oo),g.$8M("aria-hidden"),g.Y36(yh),g.Y36(g.qLn),g.Y36(Ch,8))},s.\u0275cmp=g.Xpm({type:s,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:Xw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),s})(),Sn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();function wr(s){return!!s&&(s instanceof Je.y||(0,fn.m)(s.lift)&&(0,fn.m)(s.subscribe))}var Dm=x(6063);class Hm extends Me.x{constructor(r=1/0,e=1/0,t=Dm.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew Hm(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class qe{}let Pm=(()=>{class s extends qe{getTranslation(e){return(0,Pe.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class wh{}let Rm=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function vr(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let o,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!vr(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=s.length)==r.length){for(l=0;l{Fo(r[t])?t in s?e[t]=al(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Bt{}let ov=(()=>{class s extends Bt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Yr(c)?c:o}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class ol{}let vh=(()=>{class s extends ol{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Im{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 Jc=new g.OlP("USE_STORE"),Kc=new g.OlP("USE_DEFAULT_LANG"),Zc=new g.OlP("DEFAULT_LANGUAGE"),Xc=new g.OlP("USE_EXTEND");let sl=(()=>{class s{constructor(e,t,o,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Pe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Pe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(av(1),(0,ii.q)(1));return this.loadingTranslations=t.pipe((0,Ne.U)(o=>this.compiler.compileTranslations(o,e)),av(1),(0,ii.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?al(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,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),wr(c[i])&&(n=!0);return n?mh(t.map(a=>wr(c[a])?c[a]:(0,Pe.of)(c[a]))).pipe((0,Ne.U)(a=>{let d={};return a.forEach((u,p)=>{d[t[p]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,It.b)(o=>wr(o=this.getParsedResult(o,e,t))?o:(0,Pe.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return wr(o)?o:(0,Pe.of)(o)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Pe.of)(l)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onLangChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return wr(l)?l:(0,Pe.of)(l)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(wr(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Im),g.LFG(qe),g.LFG(ol),g.LFG(Bt),g.LFG(wh),g.LFG(Kc),g.LFG(Jc),g.LFG(Xc),g.LFG(Zc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ll=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);wr(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(vr(e,this.lastKey)&&vr(t,this.lastParams))return this.value;let o;if(Yr(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{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(sl,16),g.Y36(g.sBO,16))},s.\u0275pipe=g.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Zn=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},Im,{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),km=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Wc,Yc,Sn,fr,Zn,T.ez]}),s})();function sv(s,r){}class ed{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let xh=(()=>{class s extends Ju{constructor(e,t,o,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=fc(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=fc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ed),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&g.Gf(Ku,7),2&e){let o;g.iGM(o=g.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&g.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,sv,0,0,"ng-template",0)},dependencies:[Ku],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class td{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!pr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Th=new g.OlP("DialogScrollStrategy"),lv=new g.OlP("DialogData"),cl=new g.OlP("DefaultDialogConfig"),cv={provide:Th,deps:[mn],useFactory:function dl(s){return()=>s.scrollStrategies.block()}};let dv=0,Vm=(()=>{class s{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(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}open(e,t){(t={...this._defaultOptions||new ed,...t}).id=t.id||"cdk-dialog-"+dv++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new td(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){id(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){id(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),id(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ew({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:ed,useValue:o},{provide:td,useValue:t},{provide:Us,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=xh;const i=new Qu(n,o.viewContainerRef,g.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof g.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new Qi(e,null,n,c))}else{const n=o.attachComponentPortal(new Qu(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:lv,useValue:e.data},{provide:td,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(Nr,null,g.XFs.Optional))&&c.push({provide:Nr,useValue:{value:e.direction,change:(0,Pe.of)()}}),g.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(cl,8),g.LFG(s,12),g.LFG(Po),g.LFG(Th))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function id(s,r){let e=s.length;for(;e--;)r(s[e])}let Bm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Vm,cv],imports:[Pa,gr,So,gr]}),s})();function Om(s,r){}const jo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Lm={dialogContainer:si("dialogContainer",[ht("void, exit",je({opacity:0,transform:"scale(0.7)"})),ht("enter",je({transform:"none"})),_t("* => enter",ow([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),ko("@*",Io(),{optional:!0})]),jo),_t("* => void, * => exit",ow([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),ko("@*",Io(),{optional:!0})]),jo)])};class ul{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=jo.params.enterAnimationDuration,this.exitAnimationDuration=jo.params.exitAnimationDuration}}let uv=(()=>{class s extends xh{constructor(e,t,o,l,c,n,i,a){super(e,t,o,l,c,n,i,a),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),lE=(()=>{class s extends uv{constructor(e,t,o,l,c,n,i,a,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||jo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||jo.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(g.sBO),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(g.Ikx("id",t._config.id),g.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._getAnimationState()))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,Om,0,0,"ng-template",0)},dependencies:[Ku],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Lm.dialogContainer]}}),s})();class nd{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,qt.h)(o=>"opened"===o.state),(0,ii.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,qt.h)(o=>"closed"===o.state),(0,ii.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,mr.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(o=>27===o.keyCode&&!this.disableClose&&!pr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function cE(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,qt.h)(e=>"closing"===e.state),(0,ii.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const dE=new g.OlP("MatDialogData"),Fm=new g.OlP("mat-dialog-default-options"),hl=new g.OlP("mat-dialog-scroll-strategy"),jm={provide:hl,deps:[mn],useFactory:function hv(s){return()=>s.scrollStrategies.block()}};let pl=0,pv=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(void 0))),this._scrollStrategy=n,this._dialog=t.get(Vm)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new ul,...t}).id=t.id||`${this._idPrefix}${pl++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ul,useValue:t},{provide:ed,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),No=(()=>{class s extends pv{constructor(e,t,o,l,c,n,i,a){super(e,t,l,n,i,c,nd,lE,dE,a)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(Fm,8),g.LFG(hl),g.LFG(s,12),g.LFG(Po),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),fv=0,Nm=(()=>{class s{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+fv++}ngOnInit(){this._dialogRef||(this._dialogRef=function gv(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd,8),g.Y36(g.SBq),g.Y36(No))},s.\u0275dir=g.lG2({type:s,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"]}),s})(),rd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),zm=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),Ar=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[No,jm],imports:[Bm,Pa,gr,Ae,Ae]}),s})();function Eh(){const s=new ul;return s.disableClose=!0,s.autoFocus=!1,s}function ml(s,r){const e=r.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class Xt{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ei=new g.OlP("basePath");class et{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let _l=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",a=!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==o)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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=o&&(u=this.addToHttpParams(u,o,"complementaryObjectName")),l&&l.forEach(Ve=>{u=this.addToHttpParams(u,Ve,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,p=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(p=p.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(p=p.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(p=p.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:p,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="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==o)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 a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="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==o)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 a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Xm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new y.LE({encoder:this.encoder});null!=o&&(a=this.addToHttpParams(a,o,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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/registrarManager/sendInvitation/u-g`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mh=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),i_=(()=>{class s{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:s,providers:[{provide:et,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(s,12),g.LFG(y.eN,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let n_=(()=>{class s{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 o=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of o)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,o){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(o.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);o.set(l,{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 o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let o=null;for(const l of t)l&&!o&&(o=l[e]);return o}get(...e){let t;if(""!==this.branding){const o=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=ml("idphint",location.search.substring(1));n&&(c.idphint=n)}return{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,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(o=>o?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,qt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).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 o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,qt.h)(e=>e instanceof kr)).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 o of t)if(e.startsWith(o))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(o=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!o||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(Qr),g.LFG(No),g.LFG(Vr),g.LFG(Ms.Ct))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),KE=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,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"))},dependencies:[rd,ll]}),s})(),ld=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.storeService=t,this.authResolver=o,this.authzService=l,this.dialog=c,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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Eh();this.dialog.open(KE,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(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 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 o of e){const l=o.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Qr),g.LFG(n_),g.LFG(_l),g.LFG(No),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ih=(()=>{class s{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Oo),g.LFG(mi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),kh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,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)(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),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")," "))},dependencies:[Nm,rd,zm,yg,ll]}),s})(),Vh=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),a_=(()=>{class s{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,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(sl))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),o_=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const o=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Eh();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(kh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{la(()=>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(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,yi._)(n):l?void this.notificator.showRPCError(i):(0,yi._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Vh),g.LFG(a_),g.LFG(Qr),g.LFG(No),g.LFG(ld))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),eA=(()=>{class s{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,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 y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,St.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,St.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,yi._)(c)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(a_),g.LFG(Rh),g.LFG(Qr))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Bh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez]}),s})(),Oh=(()=>{class s{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=g.Yjl({name:"userFullName",type:s,pure:!0}),s})();function sA(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){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 nS(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){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 d_=Sa(class{constructor(s){this._elementRef=s}},"primary"),yl=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function lA(){return{diameter:100}}});class Xn extends d_{constructor(r,e,t,o,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Yt.w0.EMPTY,this.mode="determinate";const a=Xn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=cn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=cn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,cn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=jr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Xn._diameters;let o=t.get(r);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),o||(o=new Set,t.set(r,o)),o.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Xn._diameters=new WeakMap,Xn.\u0275fac=function(r){return new(r||Xn)(g.Y36(g.SBq),g.Y36(hi),g.Y36(T.K0,8),g.Y36(g.QbO,8),g.Y36(yl),g.Y36(g.sBO),g.Y36($n),g.Y36(g.R0b))},Xn.\u0275cmp=g.Xpm({type:Xn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(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(r,e){1&r&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,sA,1,11,"circle",2),g.YNc(3,nS,1,9,"circle",3),g.qZA()),2&r&&(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))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let wl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,T.ez,Ae]}),s})();const u_=Gn({passive:!0});let zo=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ft.E;const t=Zt(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new Me.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,u_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,u_)}}),l}stopMonitoring(e){const t=Zt(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fh=(()=>{class s{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=cn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=cn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ct(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(()=>{Fs(this._getWindow(),"resize").pipe(Ns(16),zt(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||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_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,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,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:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(g.R0b),g.Y36(T.K0,8))},s.\u0275dir=g.lG2({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&g.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),s})(),jh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Nh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq))},s.\u0275dir=g.lG2({type:s}),s})(),er=(()=>{class s extends Nh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275dir=g.lG2({type:s,features:[g.qOj]}),s})();const Ai=new g.OlP("NgValueAccessor"),cA={provide:Ai,useExisting:(0,g.Gpc)(()=>cd),multi:!0},Uo=new g.OlP("CompositionEventMode");let cd=(()=>{class s extends Nh{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function h_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(Uo,8))},s.\u0275dir=g.lG2({type:s,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(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:[g._Bn([cA]),g.qOj]}),s})();function tr(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function dA(s){return null!=s&&"number"==typeof s.length}const fi=new g.OlP("NgValidators"),Ba=new g.OlP("NgAsyncValidators"),uA=/^(?=.{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 Uh{static min(r){return function f_(s){return r=>{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return function qh(s){return tr(s.value)?{required:!0}:null}(r)}static requiredTrue(r){return function g_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Wh(s){return tr(s.value)||uA.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function $h(s){return r=>tr(r.value)||!dA(r.value)?null:r.value.lengthdA(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function __(s){if(!s)return vl;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(tr(t.value))return null;const o=t.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return w_(r)}static composeAsync(r){return Kh(r)}}function vl(s){return null}function b_(s){return null!=s}function Yh(s){return(0,g.QGY)(s)?(0,gt.D)(s):s}function Qh(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Jh(s,r){return r.map(e=>e(s))}function y_(s){return s.map(r=>function C_(s){return!s.validate}(r)?r:e=>r.validate(e))}function w_(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return Qh(Jh(e,r))}}function v_(s){return null!=s?w_(y_(s)):null}function Kh(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return mh(Jh(e,r).map(Yh)).pipe((0,Ne.U)(Qh))}}function A_(s){return null!=s?Kh(y_(s)):null}function hA(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function pA(s){return s._rawValidators}function fA(s){return s._rawAsyncValidators}function x_(s){return s?Array.isArray(s)?s:[s]:[]}function Zh(s,r){return Array.isArray(s)?s.includes(r):s===r}function gA(s,r){const e=x_(r);return x_(s).forEach(o=>{Zh(e,o)||e.push(o)}),e}function mA(s,r){return x_(r).filter(e=>!Zh(s,e))}class Al{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=v_(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=A_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Ki extends Al{get formDirective(){return null}get path(){return null}}class Mn extends Al{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let CA=(()=>{class s extends class xl{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Mn,2))},s.\u0275dir=g.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[g.qOj]}),s})();const Go="VALID",tp="INVALID",Ii="PENDING",Tl="DISABLED";function El(s){return(qo(s)?s.validators:s)||null}function M_(s){return Array.isArray(s)?v_(s):s||null}function zi(s,r){return(qo(r)?r.asyncValidators:s)||null}function D_(s){return Array.isArray(s)?A_(s):s||null}function qo(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class pd{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=M_(this._rawValidators),this._composedAsyncValidatorFn=D_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Go}get invalid(){return this.status===tp}get pending(){return this.status==Ii}get disabled(){return this.status===Tl}get enabled(){return this.status!==Tl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=M_(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=D_(r)}addValidators(r){this.setValidators(gA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(gA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(mA(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(mA(r,this._rawAsyncValidators))}hasValidator(r){return Zh(this._rawValidators,r)}hasAsyncValidator(r){return Zh(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ii,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Tl,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Go,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Go||this.status===Ii)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tl:Go}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ii,this._hasOwnPendingAsyncValidator=!0;const e=Yh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?Tl:this.errors?tp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ii)?Ii:this._anyControlsHaveStatus(tp)?tp:Go}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){qo(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class fd extends pd{constructor(r,e,t){super(El(e),zi(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function P_(s,r,e){s._forEachChild((t,o)=>{if(void 0===e[o])throw new g.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function H_(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[e])throw new g.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const o=this.controls[t];o&&o.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,o)=>{t.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Wo(s,r){_d(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function Tr(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&SA(s,r)})}(s,r),function MA(s,r){const e=(t,o)=>{r.valueAccessor.writeValue(t),o&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function EA(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&SA(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function Jr(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function md(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Yo(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function $o(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function _d(s,r){const e=pA(s);null!==r.validator?s.setValidators(hA(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=fA(s);null!==r.asyncValidator?s.setAsyncValidators(hA(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const o=()=>s.updateValueAndValidity();$o(r._rawValidators,o),$o(r._rawAsyncValidators,o)}function Yo(s,r){let e=!1;if(null!==s){if(null!==r.validator){const o=pA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.validator);l.length!==o.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const o=fA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.asyncValidator);l.length!==o.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return $o(r._rawValidators,t),$o(r._rawAsyncValidators,t),e}function SA(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function I_(s,r){_d(s,r)}function RA(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const kA={provide:Ki,useExisting:(0,g.Gpc)(()=>Jo)},Qo=(()=>Promise.resolve(null))();let Jo=(()=>{class s extends Ki{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new fd({},v_(e),A_(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Qo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Wo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path),o=new fd({});I_(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Qo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,RA(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 s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([kA]),g.qOj]}),s})();function Ml(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function Dl(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const np=class extends pd{constructor(r=null,e,t){super(El(e),zi(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Dl(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Ml(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Ml(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){Dl(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},VA={provide:Mn,useExisting:(0,g.Gpc)(()=>N_)},j_=(()=>Promise.resolve(null))();let N_=(()=>{class s extends Mn{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new np,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=function Sl(s,r){if(!r)return null;let e,t,o;return Array.isArray(r),r.forEach(l=>{l.constructor===cd?e=l:function V_(s){return Object.getPrototypeOf(s.constructor)===er}(l)?t=l:o=l}),o||t||e||null}(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),function ip(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(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(){Wo(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){j_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,g.D6c)(t);j_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function gd(s,r){return[...r.path,s]}(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Ki,9),g.Y36(fi,10),g.Y36(Ba,10),g.Y36(Ai,10),g.Y36(g.sBO,8))},s.\u0275dir=g.lG2({type:s,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([VA]),g.qOj,g.TTD]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const bd=new g.OlP("NgModelWithFormControlWarning"),LA={provide:Ki,useExisting:(0,g.Gpc)(()=>Oa)};let Oa=(()=>{class s extends Ki{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&&(Yo(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 Wo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){md(e.control||null,e,!1),function B_(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,RA(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,o=this.form.get(e.path);t!==o&&(md(t||null,e),(s=>s instanceof np)(o)&&(Wo(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);I_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function DA(s,r){return Yo(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_d(this.form,this),this._oldForm&&Yo(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([LA]),g.qOj,g.TTD]}),s})(),h=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Hl]}),s})(),f=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})(),m=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:bd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})();const J=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),re=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let me=0;const xe=Hu(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let Re=(()=>{class s extends xe{constructor(e,t,o,l,c,n,i,a,d,u){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+me++,this.focused=!1,this.stateChanges=new Me.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>du().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,b=p.nodeName.toLowerCase();this._inputValueAccessor=i||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Uh.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&du().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=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){re.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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(Mn,10),g.Y36(Jo,8),g.Y36(Oa,8),g.Y36(Dc),g.Y36(J,10),g.Y36(zo),g.Y36(g.R0b),g.Y36(lh,8))},s.\u0275dir=g.lG2({type:s,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:br,useExisting:s}]),g.qOj,g.TTD]}),s})(),Fe=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc],imports:[jh,Cr,Ae,jh,Cr]}),s})();function Ke(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function ye(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function We(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function ft(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const Ot=["*"];let La=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Ot,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,Ke,2,0,"mat-icon",1),g.YNc(2,ye,2,0,"mat-icon",1),g.YNc(3,We,2,0,"mat-icon",1),g.YNc(4,ft,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))},dependencies:[rv,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fp(s,r){1&s&&g._UZ(0,"mat-spinner",7)}function gp(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-form-field",10)(5,"textarea",11),g.NdJ("ngModelChange",function(o){g.CHM(e);const l=g.oxw();return g.KtG(l.message=o)}),g.ALo(6,"translate"),g.qZA()()()}if(2&s){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),g.xp6(3),g.s9C("placeholder",g.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),g.Q6J("ngModel",e.message)}}let mp=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.storeService=t,this.authzService=o,this.oAuthStorage=l,this.rtMessages=c,this.userFullNamePipe=n,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",ml("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(o=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,o.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const o=this.storeService.getProperty("config");let l=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return l=l.concat("\n\n"),l=l.concat("Information about users: \n\n"),l=l.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),l=l.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),l=l.concat("Perun instance: "+o+"\n"),l=l.concat("Sended from new Consolidator Gui, version: ",x(4147).i8),l.split("\n").join("\n ")}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd),g.Y36(Qr),g.Y36(_l),g.Y36(Ms.Hy),g.Y36(Zm),g.Y36(Oh))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(g.TgZ(0,"div")(1,"div",0)(2,"h1",1),g._uU(3),g.ALo(4,"translate"),g.qZA()(),g.YNc(5,fp,1,0,"mat-spinner",2),g.YNc(6,gp,7,7,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return t.onCancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",6),g.NdJ("click",function(){return t.onSend()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()()),2&e&&(g.xp6(3),g.hij(" ",g.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[T.O5,yg,Nm,rd,zm,Xn,Xg,Fh,Re,cd,CA,N_,La,ll]}),s})();function _p(s,r){if(1&s&&(g.TgZ(0,"mat-icon",6),g._uU(1),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",e.icon," ")}}function bp(s,r){1&s&&g._UZ(0,"mat-icon",7)}function Cp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.supportMail," ")}}function yp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.userMail," ")}}function wp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.YNc(3,Cp,2,1,"span",5),g.YNc(4,yp,2,1,"span",5),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),g.xp6(2),g.Q6J("ngIf","UNKNOWN_ERROR"===e.result),g.xp6(1),g.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"translate"),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.lnq(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",g.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const iH=function(s){return{"background-color":s}},nH=["*"];let rH=(()=>{class s{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Qr))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[g.TTD],ngContentSelectors:nH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"div"),g.YNc(3,_p,2,1,"mat-icon",2),g.YNc(4,bp,1,0,"mat-icon",3),g.qZA(),g.TgZ(5,"div",4)(6,"h1"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.YNc(9,wp,5,5,"h5",5),g.YNc(10,vp,4,7,"h5",5),g.qZA()(),g.Hsn(11),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,iH,t.color)),g.xp6(3),g.Q6J("ngIf","OK"!==t.result),g.xp6(1),g.Q6J("ngIf","OK"===t.result),g.xp6(3),g.hij(" ",g.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),g.xp6(2),g.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),g.xp6(1),g.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,rv,ll],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),s})();function aH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.loginAgain())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function oH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.sendMessageToSupport())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function sH(s,r){1&s&&(g.TgZ(0,"div",7),g._UZ(1,"mat-spinner",8),g.qZA())}const lH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class s{constructor(e,t,o){this.route=e,this.dialog=t,this.oauthService=o,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,o="yes";for(;""!==o;)t++,o=ml("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=Eh();e.width="1000px",this.dialog.open(mp,e).afterClosed().subscribe(o=>{!0===o?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===o&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Vr),g.Y36(No),g.Y36(Ms.Ct))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),g.NdJ("click",function(){return t.closeWindow()}),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.YNc(6,aH,3,3,"button",4),g.YNc(7,oH,3,3,"button",4),g.qZA()(),g.YNc(8,sH,2,0,"div",5),g.qZA()),2&e&&(g.xp6(1),g.Q6J("result",t.linkerResult),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),g.xp6(2),g.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),g.xp6(1),g.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),g.xp6(1),g.Q6J("ngIf",t.loading))},dependencies:[T.O5,yg,Xn,rH,ll],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),s})()}];let cH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[_o.forRoot(lH),_o]}),s})();class dH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let uH=(()=>{class s{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function hH(s){return[Cn(tinycolor(s).lighten(52),"50"),Cn(tinycolor(s).lighten(37),"100"),Cn(tinycolor(s).lighten(26),"200"),Cn(tinycolor(s).lighten(12),"300"),Cn(tinycolor(s).lighten(6),"400"),Cn(tinycolor(s),"500"),Cn(tinycolor(s).darken(6),"600"),Cn(tinycolor(s).darken(12),"700"),Cn(tinycolor(s).darken(18),"800"),Cn(tinycolor(s).darken(24),"900"),Cn(tinycolor(s).lighten(50).saturate(30),"A100"),Cn(tinycolor(s).lighten(30).saturate(30),"A200"),Cn(tinycolor(s).lighten(10).saturate(15),"A400"),Cn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,a=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(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),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(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(Qr),g.LFG(_l),g.LFG(Y),g.LFG(Mh))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Cn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let pH=(()=>{class s{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=ml("formerToken",e);return new Promise(o=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"]),o()})},l=>{let n="UNKNOWN_ERROR";switch(l.error.name){case"InvalidTokenException":case"ExpiredTokenException":n="TOKEN_EXPIRED";break;case"IdentityUnknownException":n="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":n="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":n="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":n="IDENTITY_LINKED"}this.router.navigate(["/result",n],{queryParamsHandling:"merge"}),o()})})}consolidatePreviousLogins(e,t){return new Promise(o=>{const l=ml("formerToken"+e.toString(),t);null==l||""===l?o():this.registrarService.consolidate({accessToken:l}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())})})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xm),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),fH=(()=>{class s{constructor(e,t,o,l){this.initAuthService=e,this.appConfigService=t,this.location=o,this.linkIdentitiesService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate()):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ld),g.LFG(uH),g.LFG(T.Ye),g.LFG(pH))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const gH=new g.OlP("perun-api-service");let ES=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Q_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,ks,DS,Ae,DS]}),s})(),XA=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),PS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,DH,gr]}),s})(),IS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,Ae,Pc,Ae]}),s})(),RH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo]}),s})(),e0=(()=>{class s{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const UH={provide:e0,deps:[[new g.FiY,new g.tp0,e0]],useFactory:function zH(s){return s||new e0}};let OS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[UH,Dc],imports:[Ae,T.ez,gr,fr,RH,Sn,pn,Ae]}),s})(),rP=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[qr]}),s})(),ob=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[rP,Ae,Ae]}),s})(),xP=(()=>{class s{constructor(){this.changes=new Me.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const kP={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[mn],useFactory:function IP(s){return()=>s.scrollStrategies.reposition()}};let p0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[xP,kP],imports:[T.ez,fr,Pa,So,gr,Ae,Yn]}),s})(),XS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,Yn,Yn,Ae]}),s})(),tM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,pn,Ae,ku,T.ez,Pc,Ae,ku,XA]}),s})(),iM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),f0=(()=>{class s{constructor(){this.changes=new Me.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const eR={provide:f0,deps:[[new g.FiY,new g.tp0,f0]],useFactory:function XP(s){return s||new f0}};let g0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[eR],imports:[T.ez,Ae]}),s})(),aR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,gr,pn,ks,So,Ae]}),s})(),nM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),rM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[nM,pn,Ae,ks,nM,Ae]}),s})();const lM=new g.OlP("mat-chips-default-options");let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc,{provide:lM,useValue:{separatorKeyCodes:[13]}}],imports:[Ae]}),s})(),b0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,ob,rM,_0,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,aR,rM,_0]}),s})(),C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Sn,T.ez]}),s})();function y0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const o=r[t];o?s.setProperty(t,o,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Td(s,r){const e=r?"":"none";y0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function cM(s,r,e){y0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function db(s,r){return r&&"none"!=r?s+" "+r:s}function dM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function w0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function v0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function A0(s,r,e){const{top:t,bottom:o,left:l,right:c}=s;return e>=t&&e<=o&&r>=l&&r<=c}function Ep(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function uM(s,r,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:a}=s,d=i*r,u=a*r;return t>o-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:v0(e)})})}handleScroll(r){const e=ln(r),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const a=this.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Ep(a.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function pM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-d.x+this._passiveTransform.x,u.y=a.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new hM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ct(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Td(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>Td(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,ub),e.addEventListener("touchstart",this._pointerDown,_M),e.addEventListener("dragstart",this._nativeDragStart,ub)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Td(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Td(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Sp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),cM(t,!1,x0),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=Sp(e),l=!o&&0!==e.button,c=this._rootElement,n=ln(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=o?To(e):tg(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const p=c.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=v0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){cM(this._rootElement,!0,x0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(r),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,o),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let o;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),o=CM(c,this._document),this._previewRef=c,r.matchSize?yM(o,l):o.style.transform=hb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=pM(this._rootElement),yM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return y0(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},x0),Td(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function PR(s){const r=getComputedStyle(s),e=w0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=w0(r,"transition-duration"),c=w0(r,"transition-delay");return dM(l[o])+dM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||ln(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=CM(this._placeholderRef,this._document)):t=pM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():r,c=Sp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Sp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:a}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(a-c);t=bM(t,n.left+l,n.right-(i-l)),o=bM(o,d,u)}return{x:t,y:o}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Td(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,ub),r.removeEventListener("touchstart",this._pointerDown,_M),r.removeEventListener("dragstart",this._nativeDragStart,ub)}_applyRootElementTransform(r,e){const t=hb(r,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=db(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=hb(r,e);this._preview.style.transform=db(o,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Sp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=ln(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ep(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function hb(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function bM(s,r,e){return Math.max(r,Math.min(e,s))}function Sp(s){return"t"===s.type[0]}function CM(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function yM(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=hb(r.left,r.top)}function Mp(s,r){return Math.max(0,Math.min(r,s))}class BR{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),a=l[c],u=a.clientRect,p=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,p),H=this._getSiblingOffsetPx(i,l,p),z=l.slice();return function VR(s,r,e){const t=Mp(r,s.length-1),o=Mp(e,s.length-1);if(t===o)return;const l=s[t],c=o{if(z[Ve]===ae)return;const ot=ae.drag===r,mt=ot?b:H,Ut=ot?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=mt,n?(Ut.style.transform=db(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Ep(ae.clientRect,0,mt)):(Ut.style.transform=db(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Ep(ae.clientRect,mt,0))}),this._previousSwap.overlaps=A0(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(r,e,t):o,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Zt(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Ep(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:v0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const o="horizontal"===this.orientation;let l=o?e.left-r.left:e.top-r.top;return-1===t&&(l+=o?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const o="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",a=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(o){const a=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Yt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function HR(s=0,r=qu.z){return s<0&&(s=0),(0,$u.H)(s,s,r)}(0,xg).pipe(zt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new hM(t),this._sortStrategy=new BR(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===r.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,o){if(this.sortingDisabled||!this._clientRect||!uM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||uM(c.clientRect,.05,r,e)&&([o,l]=function LR(s,r,e,t){const o=AM(r,t),l=xM(r,e);let c=0,n=0;if(o){const i=s.scrollTop;1===o?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=AM(i,e),l=xM(i,r),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&A0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(o=>o._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!A0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=Zt(this.element);return o===l||l.contains(o)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=jr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function AM(s,r){const{top:e,bottom:t,height:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function xM(s,r){const{left:e,right:t,width:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const pb=Gn({passive:!1,capture:!0});let FR=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},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,pb)})}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,pb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"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:pb}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:pb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Je.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,mr.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const jR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let NR=(()=>{class s{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=jR){return new kR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new OR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG($n),g.LFG(FR))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[NR],imports:[Yn]}),s})(),UR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),YR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[YR,Ae,Ae]}),s})(),gI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();new g.OlP("mat-selectsearch-default-options");let yI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[[T.ez,m,fr,Q_,Sn,wl,il]]}),s})(),wI=(()=>{class s extends Mc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const vI={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 MM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:wI},{provide:Os,useValue:vI}],imports:[T.ez,Q_,ob,f,_0,zR,Zn,_o,g0,Wc,wl,C0,Sn,Yc,fr,il,Cr,m,Fe,pn,Bh,UR,iI,p0,gI,Rc,el,yI,qr,Ar,km,b0]}),s})(),Ik=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,fr,Sn,_o,MM,Zn,Cr,m,Fe,C0]}),s})(),Vk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ar,fr,Zn]}),s})(),Bk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Oh],imports:[T.ez,b0,Zn,Bh]}),s})();function IM(s){return new g.vHH(3e3,!1)}function b1(){return typeof window<"u"&&typeof window.document<"u"}function D0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Xo(s){switch(s.length){case 0:return new qs;case 1:return s[0];default:return new Wg(s)}}function kM(s,r,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.get("offset"),p=u==i,b=p&&a||new Map;d.forEach((H,z)=>{let ae=z,Ve=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),Ve){case"!":Ve=o.get(z);break;case _r:Ve=l.get(z);break;default:Ve=r.normalizeStyleValue(z,ae,Ve,c)}b.set(ae,Ve)}),p||n.push(b),a=b,i=u}),c.length)throw function o1(s){return new g.vHH(3502,!1)}();return n}function H0(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&P0(e,"start",s)));break;case"done":s.onDone(()=>t(e&&P0(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&P0(e,"destroy",s)))}}function P0(s,r,e){const l=R0(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function R0(s,r,e,t,o="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Dn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function VM(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let I0=(s,r)=>!1,BM=(s,r,e)=>[],OM=null;function k0(s){const r=s.parentNode||s.host;return r===OM?null:r}(D0()||typeof Element<"u")&&(b1()?(OM=(()=>document.documentElement)(),I0=(s,r)=>{for(;r;){if(r===s)return!0;r=k0(r)}return!1}):I0=(s,r)=>s.contains(r),BM=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Rl=null,LM=!1;const FM=I0,jM=BM;let NM=(()=>{class s{validateStyleProperty(e){return function y1(s){Rl||(Rl=function w1(){return typeof document<"u"?document.body:null}()||{},LM=!!Rl.style&&"WebkitAppearance"in Rl.style);let r=!0;return Rl.style&&!function C1(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Rl.style,!r&&LM&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Rl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return FM(e,t)}getParentElement(e){return k0(e)}query(e,t,o){return jM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new qs(o,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),V0=(()=>{class s{}return s.NOOP=new NM,s})();const B0="ng-enter",mb="ng-leave",_b="ng-trigger",bb=".ng-trigger",UM="ng-animating",O0=".ng-animating";function es(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:L0(parseFloat(r[1]),r[2])}function L0(s,r){return"s"===r?1e3*s:s}function Cb(s,r,e){return s.hasOwnProperty("duration")?s:function x1(s,r,e){let o,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(IM()),{duration:0,delay:0,easing:""};o=L0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=L0(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else o=s;if(!e){let n=!1,i=r.length;o<0&&(r.push(function Ok(){return new g.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function Lk(){return new g.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,IM())}return{duration:o,delay:l,easing:c}}(s,r,e)}function Hp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GM(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ts(s,r=new Map,e){if(e)for(let[t,o]of e)r.set(t,o);for(let[t,o]of s)r.set(t,o);return r}function WM(s,r,e){return e?r+":"+e+";":""}function $M(s){let r="";for(let e=0;e{const l=j0(o);e&&!e.has(o)&&e.set(o,s.style[l]),s.style[l]=t}),D0()&&$M(s))}function Il(s,r){s.style&&(r.forEach((e,t)=>{const o=j0(t);s.style[o]=""}),D0()&&$M(s))}function Pp(s){return Array.isArray(s)?1==s.length?s[0]:Gg(s):s}const F0=new RegExp("{{\\s*(.+?)\\s*}}","g");function YM(s){let r=[];if("string"==typeof s){let e;for(;e=F0.exec(s);)r.push(e[1]);F0.lastIndex=0}return r}function yb(s,r,e){const t=s.toString(),o=t.replace(F0,(l,c)=>{let n=r[c];return null==n&&(e.push(function jk(s){return new g.vHH(3003,!1)}()),n=""),n.toString()});return o==t?s:o}function wb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const S1=/-+([a-z0-9])/g;function j0(s){return s.replace(S1,(...r)=>r[1].toUpperCase())}function M1(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function Nk(s){return new g.vHH(3004,!1)}()}}function QM(s,r){return window.getComputedStyle(s)[r]}function k1(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function V1(s,r,e){if(":"==s[0]){const i=function B1(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function e1(s){return new g.vHH(3015,!1)}()),r;const o=t[1],l=t[2],c=t[3];r.push(JM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&r.push(JM(c,o))}(t,e,r)):e.push(s),e}const Tb=new Set(["true","1"]),Eb=new Set(["false","0"]);function JM(s,r){const e=Tb.has(s)||Eb.has(s),t=Tb.has(r)||Eb.has(r);return(o,l)=>{let c="*"==s||s==o,n="*"==r||r==l;return!c&&e&&"boolean"==typeof o&&(c=o?Tb.has(s):Eb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?Tb.has(r):Eb.has(r)),c&&n}}const O1=new RegExp("s*:selfs*,?","g");function N0(s,r,e,t){return new L1(s).build(r,e,t)}class L1{constructor(r){this._driver=r}build(r,e,t){const o=new N1(e);return this._resetContextStyleTimingState(o),Hn(this,Pp(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function Uk(){return new g.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function Gk(){return new g.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{YM(i).forEach(a=>{c.hasOwnProperty(a)||l.add(a)})})}),l.size&&(wb(l.values()),e.errors.push(function qk(s,r){return new g.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,Pp(r.animation),e);return{type:1,matchers:k1(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:kl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:kl(r.options)}}visitGroup(r,e){const t=e.currentTime;let o=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:kl(r.options)}}visitAnimate(r,e){const t=function U1(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return z0(Cb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=z0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=Cb(e,r);return z0(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let o,l=r.styles?r.styles:je({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=je(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of o)"string"==typeof n?n===_r?t.push(n):e.errors.push(new g.vHH(3002,!1)):t.push(GM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const a=e.collectedStyles.get(e.currentQuerySelector),d=a.get(i);let u=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function $k(s,r,e,t,o){return new g.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&a.set(i,{startTime:l,endTime:o}),e.options&&function E1(s,r,e){const t=r.params||{},o=YM(s);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function Fk(s){return new g.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Yk(){return new g.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(Ve=>{const ot=this._makeStyleAst(Ve,e);let mt=null!=ot.offset?ot.offset:function z1(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(ot.styles),Ut=0;return null!=mt&&(l++,Ut=ot.offset=mt),i=i||Ut<0||Ut>1,n=n||Ut0&&l{const mt=p>0?ot==b?1:p*ot:c[ot],Ut=mt*ae;e.currentTime=H+z.delay+Ut,z.duration=Ut,this._validateStyleAst(Ve,e),Ve.offset=mt,t.styles.push(Ve)}),t}visitReference(r,e){return{type:8,animation:Hn(this,Pp(r.animation),e),options:kl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:kl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:kl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function F1(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(O1,"")),s=s.replace(/@\*/g,bb).replace(/@\w+/g,e=>bb+"-"+e.slice(1)).replace(/:animating/g,O0),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,Pp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:kl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function Zk(){return new g.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Cb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,Pp(r.animation),e),timings:t,options:null}}}class N1{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kl(s){return s?(s=Hp(s)).params&&(s.params=function j1(s){return s?Hp(s):null}(s.params)):s={},s}function z0(s,r,e){return{duration:s,delay:r,easing:e}}function U0(s,r,e,t,o,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class Sb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const W1=new RegExp(":enter","g"),Y1=new RegExp(":leave","g");function G0(s,r,e,t,o,l=new Map,c=new Map,n,i,a=[]){return(new Q1).buildKeyframes(s,r,e,t,o,l,c,n,i,a)}class Q1{buildKeyframes(r,e,t,o,l,c,n,i,a,d=[]){a=a||new Sb;const u=new q0(r,e,a,o,l,d,[]);u.options=i;const p=i.delay?es(i.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[U0(e,[],[],[],0,p,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?es(t.duration):null,n=null!=t.delay?es(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let o=e;const l=r.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Mb);const c=es(l.delay);o.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let o=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?es(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Cb(e.params?yb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,o=r.options||{},l=o.delay?es(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Mb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,o=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=o.currentTime-u+(o.startTime-t.currentTimeline.startTime)}}const Mb={};class q0{constructor(r,e,t,o,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Db(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let o=this.options;null!=t.duration&&(o.duration=es(t.duration)),null!=t.delay&&(o.delay=es(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=yb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return r}createSubContext(r=null,e,t){const o=e||this.element,l=new q0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Mb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new J1(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,o,l,c){let n=[];if(o&&n.push(this.element),r.length>0){r=(r=r.replace(W1,"."+this._enterClassName)).replace(Y1,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(function Xk(s){return new g.vHH(3014,!1)}()),n}}class Db{constructor(r,e,t,o){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Db(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function K1(s,r){const e=new Map;let t;return s.forEach(o=>{if("*"===o){t=t||r.keys();for(let l of t)e.set(l,_r)}else ts(o,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const a=yb(i,l,t);this._pendingStyles.set(n,a),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const a=ts(n,new Map,this._backFill);a.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||a.set("offset",i/this.duration),o.push(a)});const l=r.size?wb(r.values()):[],c=e.size?wb(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return U0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class J1 extends Db{constructor(r,e,t,o,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ts(r[0]);i.set("offset",0),l.push(i);const a=ts(r[0]);a.set("offset",XM(n)),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let p=ts(r[u]);const b=p.get("offset");p.set("offset",XM((e+b*t)/c)),l.push(p)}t=c,e=0,o="",r=l}return U0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function XM(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class W0{}const Z1=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class X1 extends W0{normalizePropertyName(r,e){return j0(r)}normalizeStyleValue(r,e,t,o){let l="";const c=t.toString().trim();if(Z1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function zk(s,r){return new g.vHH(3005,!1)}())}return c+l}}function eD(s,r,e,t,o,l,c,n,i,a,d,u,p){return{type:0,element:s,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:p}}const $0={};class tD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,o){return function eV(s,r,e,t,o){return s.some(l=>l(r,e,t,o))}(this.ast.matchers,r,e,t,o)}buildStyles(r,e,t){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,t):new Map}build(r,e,t,o,l,c,n,i,a,d){const u=[],p=this.ast.options&&this.ast.options.params||$0,H=this.buildStyles(t,n&&n.params||$0,u),z=i&&i.params||$0,ae=this.buildStyles(o,z,u),Ve=new Set,ot=new Map,mt=new Map,Ut="void"===o,Sr={params:tV(z,p),delay:this.ast.options?.delay},rr=d?[]:G0(r,e,this.ast.animation,l,c,H,ae,Sr,a,u);let rn=0;if(rr.forEach(Ua=>{rn=Math.max(Ua.duration+Ua.delay,rn)}),u.length)return eD(e,this._triggerName,t,o,Ut,H,ae,[],[],ot,mt,rn,u);rr.forEach(Ua=>{const Ga=Ua.element,mD=Dn(ot,Ga,new Set);Ua.preStyleProps.forEach(Vl=>mD.add(Vl));const Ip=Dn(mt,Ga,new Set);Ua.postStyleProps.forEach(Vl=>Ip.add(Vl)),Ga!==e&&Ve.add(Ga)});const za=wb(Ve.values());return eD(e,this._triggerName,t,o,Ut,H,ae,rr,za,ot,mt,rn)}}function tV(s,r){const e=Hp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class iV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,o=Hp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=yb(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class rV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new iV(o.style,o.options&&o.options.params||{},t))}),iD(this.states,"true","1"),iD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new tD(r,o,this.states))}),this.fallbackTransition=function aV(s,r,e){return new tD(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,o){return this.transitionFactories.find(c=>c.match(r,e,t,o))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function iD(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const oV=new Sb;class sV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=N0(this._driver,e,t,[]);if(t.length)throw function s1(s){return new g.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const o=r.element,l=kM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(o,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const o=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=G0(this._driver,e,l,B0,mb,new Map,new Map,t,oV,o),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(o.push(function l1(){return new g.vHH(3300,!1)}()),c=[]),o.length)throw function c1(s){return new g.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((p,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const a=Xo(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,a),a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function d1(s){return new g.vHH(3301,!1)}();return e}listen(r,e,t,o){const l=R0(e,"","","");return H0(this._getPlayer(r),t,l,o),()=>{}}command(r,e,t,o){if("register"==t)return void this.register(r,o[0]);if("create"==t)return void this.create(r,e,o[0]||{});const l=this._getPlayer(r);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(o[0]));break;case"destroy":this.destroy(r)}}}const nD="ng-animate-queued",Y0="ng-animate-disabled",hV=[],rD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class Q0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function _V(s){return s??null}(t?r.value:r),t){const l=Hp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const Rp="void",J0=new Q0(Rp);class fV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,nr(e,this._hostClassName)}listen(r,e,t,o){if(!this._triggers.has(e))throw function u1(s,r){return new g.vHH(3302,!1)}();if(null==t||0==t.length)throw function h1(s){return new g.vHH(3303,!1)}();if(!function bV(s){return"start"==s||"done"==s}(t))throw function p1(s,r){return new g.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(nr(r,_b),nr(r,_b+"-"+e),n.set(e,J0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function f1(s){return new g.vHH(3401,!1)}();return e}trigger(r,e,t,o=!0){const l=this._getTrigger(e),c=new K0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(nr(r,_b),nr(r,_b+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const a=new Q0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n.set(e,a),i||(i=J0),a.value!==Rp&&i.value===a.value){if(!function wV(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let o=0;o{Il(r,ae),Xr(r,Ve)})}return}const p=Dn(this._engine.playersByElement,r,[]);p.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:H}),H||(nr(r,nD),c.onStart(()=>{Sd(r,nD)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let Ve=ae.indexOf(c);Ve>=0&&ae.splice(Ve,1)}}),this.players.push(c),p.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,bb,!0);t.forEach(o=>{if(o[ir])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,t,o){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,a)=>{if(c.set(a,i.value),this._triggers.has(a)){const d=this.trigger(r,a,Rp,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&Xo(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,a=t.get(c)||J0,d=new Q0(Rp),u=new K0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)o=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[ir];(!l||l===rD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){nr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=R0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,H0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class gV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new fV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const a=t.indexOf(i);t.splice(a+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return o.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let o=this._namespaceLookup[r];o&&o.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,o){if(Hb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(r,e,t,o){if(!Hb(e))return;const l=e[ir];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),nr(r,Y0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Sd(r,Y0))}removeNode(r,e,t,o){if(Hb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,t,o,l){this.collectedLeaveElements.push(e),e[ir]={namespaceId:r,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,o,l){return Hb(e)?this._fetchNamespace(r).listen(e,t,o,l):()=>{}}_buildInstruction(r,e,t,o,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,o,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,bb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,O0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Xo(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[ir];if(e&&e.setForRemoval){if(r[ir]=rD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Y0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),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?Xo(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(r){throw function g1(s){return new g.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Sb,o=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ze=this.driver.query(Ge,".ng-animate-queued",!0);for(let it=0;it{const it=B0+z++;H.set(Ze,it),Ge.forEach(wt=>nr(wt,it))});const ae=[],Ve=new Set,ot=new Set;for(let Ge=0;GeVe.add(wt)):ot.add(Ze))}const mt=new Map,Ut=sD(p,Array.from(Ve));Ut.forEach((Ge,Ze)=>{const it=mb+z++;mt.set(Ze,it),Ge.forEach(wt=>nr(wt,it))}),r.push(()=>{b.forEach((Ge,Ze)=>{const it=H.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),Ut.forEach((Ge,Ze)=>{const it=mt.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Sr=[],rr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(it=>{const wt=it.player,ki=it.element;if(Sr.push(wt),this.collectedEnterElements.length){const Zi=ki[ir];if(Zi&&Zi.setForMove){if(Zi.previousTriggersValues&&Zi.previousTriggersValues.has(it.triggerName)){const Bl=Zi.previousTriggersValues.get(it.triggerName),ar=this.statesByElement.get(it.element);if(ar&&ar.has(it.triggerName)){const Ib=ar.get(it.triggerName);Ib.value=Bl,ar.set(it.triggerName,Ib)}}return void wt.destroy()}}const ea=!u||!this.driver.containsElement(u,ki),Pn=mt.get(ki),is=H.get(ki),ri=this._buildInstruction(it,t,is,Pn,ea);if(ri.errors&&ri.errors.length)return void rr.push(ri);if(ea)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);if(it.isFallbackTransition)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);const CD=[];ri.timelines.forEach(Zi=>{Zi.stretchStartingKeyframe=!0,this.disabledNodes.has(Zi.element)||CD.push(Zi)}),ri.timelines=CD,t.append(ki,ri.timelines),c.push({instruction:ri,player:wt,element:ki}),ri.queriedElements.forEach(Zi=>Dn(n,Zi,[]).push(wt)),ri.preStyleProps.forEach((Zi,Bl)=>{if(Zi.size){let ar=i.get(Bl);ar||i.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))}}),ri.postStyleProps.forEach((Zi,Bl)=>{let ar=a.get(Bl);ar||a.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))})});if(rr.length){const Ge=[];rr.forEach(Ze=>{Ge.push(function m1(s,r){return new g.vHH(3505,!1)}())}),Sr.forEach(Ze=>Ze.destroy()),this.reportError(Ge)}const rn=new Map,za=new Map;c.forEach(Ge=>{const Ze=Ge.element;t.has(Ze)&&(za.set(Ze,Ze),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,rn))}),o.forEach(Ge=>{const Ze=Ge.element;this._getPreviousPlayers(Ze,!1,Ge.namespaceId,Ge.triggerName,null).forEach(wt=>{Dn(rn,Ze,[]).push(wt),wt.destroy()})});const Ua=ae.filter(Ge=>cD(Ge,i,a)),Ga=new Map;oD(Ga,this.driver,ot,a,_r).forEach(Ge=>{cD(Ge,i,a)&&Ua.push(Ge)});const Ip=new Map;b.forEach((Ge,Ze)=>{oD(Ip,this.driver,new Set(Ge),i,"!")}),Ua.forEach(Ge=>{const Ze=Ga.get(Ge),it=Ip.get(Ge);Ga.set(Ge,new Map([...Array.from(Ze?.entries()??[]),...Array.from(it?.entries()??[])]))});const Vl=[],_D=[],bD={};c.forEach(Ge=>{const{element:Ze,player:it,instruction:wt}=Ge;if(t.has(Ze)){if(d.has(Ze))return it.onDestroy(()=>Xr(Ze,wt.toStyles)),it.disabled=!0,it.overrideTotalTime(wt.totalTime),void o.push(it);let ki=bD;if(za.size>1){let Pn=Ze;const is=[];for(;Pn=Pn.parentNode;){const ri=za.get(Pn);if(ri){ki=ri;break}is.push(Pn)}is.forEach(ri=>za.set(ri,ki))}const ea=this._buildAnimation(it.namespaceId,wt,rn,l,Ip,Ga);if(it.setRealPlayer(ea),ki===bD)Vl.push(it);else{const Pn=this.playersByElement.get(ki);Pn&&Pn.length&&(it.parentPlayer=Xo(Pn)),o.push(it)}}else Il(Ze,wt.fromStyles),it.onDestroy(()=>Xr(Ze,wt.toStyles)),_D.push(it),d.has(Ze)&&o.push(it)}),_D.forEach(Ge=>{const Ze=l.get(Ge.element);if(Ze&&Ze.length){const it=Xo(Ze);Ge.setRealPlayer(it)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ea.destroyed);ki.length?CV(this,Ze,ki):this.processLeaveNode(Ze)}return ae.length=0,Vl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ze=this.players.indexOf(Ge);this.players.splice(Ze,1)}),Ge.play()}),Vl}elementContainsData(r,e){let t=!1;const o=e[ir];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Rp;n.forEach(a=>{a.queued||!i&&a.triggerName!=o||c.push(a)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Dn(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Il(l,e.fromStyles)}_buildAnimation(r,e,t,o,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,p=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[ir];if(ae&&ae.removedBeforeQueried)return new qs(H.duration,H.delay);const Ve=z!==i,ot=function yV(s){const r=[];return lD(s,r),r}((t.get(z)||hV).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===z),mt=l.get(z),Ut=c.get(z),Sr=kM(0,this._normalizer,0,H.keyframes,mt,Ut),rr=this._buildPlayer(H,Sr,ot);if(H.subTimeline&&o&&u.add(z),Ve){const rn=new K0(r,n,z);rn.setRealPlayer(rr),a.push(rn)}return rr});a.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function mV(s,r,e){let t=s.get(r);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>nr(H,UM));const b=Xo(p);return b.onDestroy(()=>{d.forEach(H=>Sd(H,UM)),Xr(i,e.toStyles)}),u.forEach(H=>{Dn(o,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new qs(r.duration,r.delay)}}class K0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new qs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>H0(r,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Hb(s){return s&&1===s.nodeType}function aD(s,r){const e=s.style.display;return s.style.display=r??"none",e}function oD(s,r,e,t,o){const l=[];e.forEach(i=>l.push(aD(i)));const c=[];t.forEach((i,a)=>{const d=new Map;i.forEach(u=>{const p=r.computeStyle(a,u,o);d.set(u,p),(!p||0==p.length)&&(a[ir]=pV,c.push(a))}),s.set(a,d)});let n=0;return e.forEach(i=>aD(i,l[n++])),c}function sD(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const o=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:o.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function nr(s,r){s.classList?.add(r)}function Sd(s,r){s.classList?.remove(r)}function CV(s,r,e){Xo(e).onDone(()=>s.processLeaveNode(r))}function lD(s,r){for(let e=0;eo.add(l)):r.set(s,t),e.delete(s),!0}class Pb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new gV(r,e,t),this._timelineEngine=new sV(r,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(r,e,t,o,l){const c=r+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=N0(this._driver,l,i,[]);if(i.length)throw function a1(s,r){return new g.vHH(3404,!1)}();n=function nV(s,r,e){return new rV(s,r,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,o){this._transitionEngine.insertNode(r,e,t,o)}onRemove(r,e,t,o){this._transitionEngine.removeNode(r,e,o||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,o){if("@"==t.charAt(0)){const[l,c]=VM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(r,e,t,o)}listen(r,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=VM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,o,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let AV=(()=>{class s{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xr(this._element,this._initialStyles),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Il(this._element,this._endStyles),this._endStyles=null),Xr(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function Z0(s){let r=null;return s.forEach((e,t)=>{(function xV(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class dD{constructor(r,e,t,o){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&r.set(o,this._finished?t:QM(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class TV{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return FM(r,e)}getParentElement(r){return k0(r)}query(r,e,t){return jM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const a=new Map,d=c.filter(b=>b instanceof dD);(function D1(s,r){return 0===s||0===r})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>a.set(z,H))});let u=function T1(s){return s.length?s[0]instanceof Map?s:s.map(r=>GM(r)):[]}(e).map(b=>ts(b));u=function H1(s,r,e){if(e.size&&r.length){let t=r[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,QM(s,n)))}}return r}(r,u,a);const p=function vV(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=Z0(r[0]),r.length>1&&(t=Z0(r[r.length-1]))):r instanceof Map&&(e=Z0(r)),e||t?new AV(s,e,t):null}(r,u);return new dD(r,u,i,p)}}let EV=(()=>{class s extends Ug{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 o=Array.isArray(e)?Gg(e):e;return uD(this._renderer,null,t,"register",[o]),new SV(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class SV extends class Gs{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new MV(this._id,r,e||{},this._renderer)}}class MV{constructor(r,e,t,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return uD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function uD(s,r,e,t,o){return s.setProperty(r,`@@${e}:${t}`,o)}const hD="@.disabled";let DV=(()=>{class s{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new pD("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new HV(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(Pb),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class pD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,o=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,o){this.delegate.setAttribute(r,e,t,o)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,o){this.delegate.setStyle(r,e,t,o)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==hD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class HV extends pD{constructor(r,e,t,o){super(e,t,o),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const o=function PV(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function RV(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const fD=[{provide:Ug,useClass:EV},{provide:W0,useFactory:function kV(){return new X1}},{provide:Pb,useClass:(()=>{class s extends Pb{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(V0),g.LFG(W0),g.LFG(g.z2F))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:g.FYo,useFactory:function VV(s,r,e){return new DV(s,r,e)},deps:[ue,Pb,g.R0b]}],X0=[{provide:V0,useFactory:()=>new TV},{provide:g.QbO,useValue:"BrowserAnimations"},...fD],gD=[{provide:V0,useClass:NM},{provide:g.QbO,useValue:"NoopAnimations"},...fD];let BV=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?gD:X0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:X0,imports:[na]}),s})();const OV={provide:y.TP,useExisting:(0,g.Gpc)(()=>o_),multi:!0};function LV(s){return new dH(s,"./assets/i18n/",".json")}function FV(s){const r={basePath:s.getProperty("api_url")};return new et(r)}const jV=s=>()=>s.loadConfigs();let NV=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Ih),g.LFG(sl))},s.\u0275mod=g.oAB({type:s,bootstrap:[Co]}),s.\u0275inj=g.cJS({providers:[Ih,{provide:g.ip1,useFactory:jV,multi:!0,deps:[fH]},{provide:et,useFactory:FV,deps:[Qr]},o_,OV,{provide:gH,useClass:eA},{provide:Ms.Hy,useFactory:()=>localStorage}],imports:[na,BV,y.JF,i_,cH,b0,Ik,Sn,MM,C0,km,Vk,Ms.zr.forRoot(),Bk,Zn.forRoot({loader:{provide:qe,useFactory:LV,deps:[y.eN]}})]}),s})();(0,g.G48)(),Ye().bootstrapModule(NV).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(g,V){var O={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var V=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 O(ne,X,ie,de,he){for(var ge,Be,Oe,we,_e,ve,$e,De,Se,Ee,oe,se,fe;he>=64;){for(ge=X[0],Be=X[1],Oe=X[2],we=X[3],_e=X[4],ve=X[5],$e=X[6],De=X[7],Ee=0;Ee<16;Ee++)ne[Ee]=(255&ie[oe=de+4*Ee])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Ee=16;Ee<64;Ee++)ne[Ee]=((se=((Se=ne[Ee-2])>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10)+ne[Ee-7]|0)+((fe=((Se=ne[Ee-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+ne[Ee-16]|0);for(Ee=0;Ee<64;Ee++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&$e)|0)+(De+(V[Ee]+ne[Ee]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Be^ge&Oe^Be&Oe)|0,De=$e,$e=ve,ve=_e,_e=we+se|0,we=Oe,Oe=Be,Be=ge,ge=se+fe|0;X[0]+=ge,X[1]+=Be,X[2]+=Oe,X[3]+=we,X[4]+=_e,X[5]+=ve,X[6]+=$e,X[7]+=De,de+=64,he-=64}return de}var I=function(){function ne(){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 ne.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},ne.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,X,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;return this},ne.prototype.finish=function(X){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Be=ie%64<56?64:128;this.buffer[de]=128;for(var Oe=de+1;Oe>>24&255,this.buffer[Be-7]=he>>>16&255,this.buffer[Be-6]=he>>>8&255,this.buffer[Be-5]=he>>>0&255,this.buffer[Be-4]=ge>>>24&255,this.buffer[Be-3]=ge>>>16&255,this.buffer[Be-2]=ge>>>8&255,this.buffer[Be-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Oe=0;Oe<8;Oe++)X[4*Oe+0]=this.state[Oe]>>>24&255,X[4*Oe+1]=this.state[Oe]>>>16&255,X[4*Oe+2]=this.state[Oe]>>>8&255,X[4*Oe+3]=this.state[Oe]>>>0&255;return this},ne.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},ne.prototype._saveState=function(X){for(var ie=0;iethis.blockSize)(new I).update(X).finish(ie).clean();else for(var de=0;de1&&X.update(ne),ie&&X.update(ie),X.update(de),X.finish(ne),de[0]++}g.HMAC=j,g.hash=W,g.default=W,g.hmac=Q;var $=new Uint8Array(g.digestLength);g.hkdf=function U(ne,X,ie,de){void 0===X&&(X=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(X,ne),Be=new j(ge),Oe=new Uint8Array(Be.digestLength),we=Oe.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Be[1]=$e>>>16&255,Be[2]=$e>>>8&255,Be[3]=$e>>>0&255,he.reset(),he.update(X),he.update(Be),he.finish(we);for(var De=0;De=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,X=document.createElement("a");X.download=U=U||$.name||"download",X.rel="noopener","string"==typeof $?(X.href=$,X.origin===location.origin?j(X):I(X.href)?O($,U,te):j(X,X.target="_blank")):(X.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(X.href)},4e4),setTimeout(function(){j(X)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var X="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||X&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Oe=he.result;Oe=de?Oe:Oe.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Oe:location=Oe,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Be=ge.createObjectURL($);ne?ne.location=Be:location.href=Be,ne=null,setTimeout(function(){ge.revokeObjectURL(Be)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(N,[]))&&(F.exports=g)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),g=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(X){X&&(this._subscribe=X)}lift(X){const ie=new te;return ie.source=this,ie.operator=X,ie}subscribe(X,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,g.Nn)(te)}(X)?X:new T.Hp(X,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Be}=this;he.add(ge?ge.call(he,Be):Be?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(X){try{return this._subscribe(X)}catch(ie){X.error(ie)}}forEach(X,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Be=>{try{X(Be)}catch(Oe){he(Oe),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(X){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(X)}[V.L](){return this}pipe(...X){return(0,O.U)(X)(this)}toPromise(X){return new(X=G(X))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),g=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:X}=this;return te||ne?g.Lc:(this.currentObservers=null,X.push(U),new g.w0(()=>{this.currentObservers=null,(0,I.P)(X,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:X}=this;te?U.error(ne):X&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:g.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),g=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends g.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Nn)(_e)&&_e.add(this)):this.destination=Oe}static create(_e,ve,$e){return new de(_e,ve,$e)}next(_e){this.isStopped?Be(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Be(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Be(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function X(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch($e){he($e)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch($e){he($e)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,$e){let De;if(super(),(0,T.m)(_e)||!_e)De={next:_e??void 0,error:ve??void 0,complete:$e??void 0};else{let Se;this&&V.v.useDeprecatedNextContext?(Se=Object.create(_e),Se.unsubscribe=()=>this.unsubscribe(),De={next:_e.next&&X(_e.next,Se),error:_e.error&&X(_e.error,Se),complete:_e.complete&&X(_e.complete,Se)}):De=_e}this.destination=new ie(De)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Be(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Oe={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const X of U)X.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(X){$=X instanceof V?X.errors:[X]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const X of ne)try{Q(X)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),g=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const X=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,g.D)(ne);if(0===de.length)return(0,V.D)([],X);const ge=new T.y(function U(ne,X,ie=O.y){return de=>{te(X,()=>{const{length:he}=ne,ge=new Array(he);let Be=he,Oe=he;for(let we=0;we{const _e=(0,V.D)(ne[we],X);let ve=!1;_e.subscribe((0,Q.x)(de,$e=>{ge[we]=$e,ve||(ve=!0,Oe--),Oe||de.next(ie(ge.slice()))},()=>{--Be||de.complete()}))},de)},de)}}(de,X,he?Be=>(0,W.n)(he,Be):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,X,ie){ne?(0,G.f)(ie,ne,X):X()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function g(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>g});const g=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>$e});var T=x(8421),g=x(9672),V=x(4482),O=x(5403);function I(De,Se=0){return(0,V.e)((Ee,oe)=>{Ee.subscribe((0,O.x)(oe,se=>(0,g.f)(oe,De,()=>oe.next(se),Se),()=>(0,g.f)(oe,De,()=>oe.complete(),Se),se=>(0,g.f)(oe,De,()=>oe.error(se),Se)))})}function j(De,Se=0){return(0,V.e)((Ee,oe)=>{oe.add(De.schedule(()=>Ee.subscribe(oe),Se))})}var G=x(9751),U=x(2202),te=x(576);function X(De,Se){if(!De)throw new Error("Iterable cannot be null");return new G.y(Ee=>{(0,g.f)(Ee,Se,()=>{const oe=De[Symbol.asyncIterator]();(0,g.f)(Ee,Se,()=>{oe.next().then(se=>{se.done?Ee.complete():Ee.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Be=x(2206),Oe=x(4532),we=x(3260);function $e(De,Se){return Se?function ve(De,Se){if(null!=De){if((0,ie.c)(De))return function W(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,he.z)(De))return function $(De,Se){return new G.y(Ee=>{let oe=0;return Se.schedule(function(){oe===De.length?Ee.complete():(Ee.next(De[oe++]),Ee.closed||this.schedule())})})}(De,Se);if((0,de.t)(De))return function Q(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,Be.D)(De))return X(De,Se);if((0,ge.T)(De))return function ne(De,Se){return new G.y(Ee=>{let oe;return(0,g.f)(Ee,Se,()=>{oe=De[U.h](),(0,g.f)(Ee,Se,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Ee.error(ue)}fe?Ee.complete():Ee.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(De,Se);if((0,we.L)(De))return function _e(De,Se){return X((0,we.Q)(De),Se)}(De,Se)}throw(0,Oe.z)(De)}(De,Se):(0,T.Xf)(De)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),g=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function X(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,g.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Be(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Oe(we,_e){var ve,$e,De,Se;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!($e=yield ve.next()).done;)if(_e.next($e.value),_e.closed)return}catch(Ee){De={error:Ee}}finally{try{$e&&!$e.done&&(Se=ve.return)&&(yield Se.call(ve))}finally{if(De)throw De.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),g=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,g.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),g=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,g.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),g=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,g.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),g=x(576);function V(O,I){const j=(0,g.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),g=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=g.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>g});var T=x(930);function g(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),g=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,g.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),g=x(576);function V(O,I){return(0,g.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),g=x(4482),V=x(5403);function O(I,j=T.z){return(0,g.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const X=$;$=null,Q.next(X)}};function ne(){const X=U+I,ie=j.now();if(ie{$=X,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),g=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,g.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),g=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,X){return X?ie=>(0,g.z)(X.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,X)=>{ne.subscribe((0,I.x)(X,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,X=T.z){const ie=(0,U.H)(ne,X);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),g=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,g.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});var T=x(4004);function g(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),g=x(4671);function V(O=1/0){return(0,T.z)(g.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),g=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((X,ie)=>$(te,X,ne,ie))((0,g.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,X,ie,de){const he=[];let ge=0,Be=0,Oe=!1;const we=()=>{Oe&&!he.length&&!ge&&$.complete()},_e=$e=>ge{X&&$.next($e),ge++;let De=!1;(0,g.Xf)(U($e,Be++)).subscribe((0,I.x)($,Se=>{ne?.(Se),X?_e(Se):$.next(Se)},()=>{De=!0},void 0,()=>{if(De)try{for(ge--;he.length&&geve(Se)):ve(Se)}we()}catch(Se){$.error(Se)}}))};return G.subscribe((0,I.x)($,_e,()=>{Oe=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),g=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new g.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,X,ie,de=0,he=!1,ge=!1;const Be=()=>{X?.unsubscribe(),X=void 0},Oe=()=>{Be(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Oe(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Be();const $e=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(X=j(we,U))}),$e.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:De=>$e.next(De),error:De=>{ge=!0,Be(),X=j(Oe,G,De),$e.error(De)},complete:()=>{he=!0,Be(),X=j(Oe,$),$e.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),g=x(4482),V=x(5403);function O(I,j){return(0,g.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let X=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,X++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),g=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,g.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),g=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,g.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,X=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,X),U.next(X)},()=>{var X;ne=!1,null===(X=G.complete)||void 0===X||X.call(G),U.complete()},X=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,X),U.error(X)},()=>{var X,ie;ne&&(null===(X=G.unsubscribe)||void 0===X||X.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),g=x(4482),V=x(5403);function O(j=I){return(0,g.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>G});var T=x(4986),g=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:X,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,g.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==X)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Be)=>{let Oe,we,_e=null,ve=0;const $e=De=>{we=(0,W.f)(Be,de,()=>{try{Oe.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Be)}catch(Se){Be.error(Se)}},De)};Oe=ge.subscribe((0,j.x)(Be,De=>{we?.unsubscribe(),ve++,Be.next(_e=De),X>0&&$e(X)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&$e(null!=ne?"number"==typeof ne?ne:+ne-de.now():X)})}function $(U){throw new Q(U)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class g extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends g{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class g{constructor(I,j=g.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}g.now=T.l.now;class V extends g{constructor(I,j=g.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(g,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(g,V,...O):setTimeout(g,V,...O)},clearTimeout(g){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(g)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});const g=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),g=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,g.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:g,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&g(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(g,V){if(g){const O=g.indexOf(V);0<=O&&g.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(g){const O=g(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(g,V){return g.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let g=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!g;if(j&&(g={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=g;if(g=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=I)}},9672:(F,N,x)=>{"use strict";function T(g,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?g.add(this.schedule(null,I)):this.unsubscribe()},I);if(g.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(g){return g}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>g});var T=x(576);function g(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(g)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(g){return"function"==typeof g}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),g=x(576);function V(O){return(0,g.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),g=x(576);function V(O){return(0,g.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>g});var T=x(576);function g(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),g=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,g.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});var T=x(576);function g(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>g,e:()=>V});var T=x(576);function g(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(g(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:g}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return g(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>g});var T=x(4671);function g(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),g=x(3410);function V(O){g.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,at){function vt(xi){try{Le(ue.next(xi))}catch(Rn){at(Rn)}}function Dt(xi){try{Le(ue.throw(xi))}catch(Rn){at(Rn)}}function Le(xi){xi.done?He(xi.value):function Ie(He){return He instanceof fe?He:new fe(function(at){at(He)})}(xi.value).then(vt,Dt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ue=fe.apply(oe,se||[]),He=[];return Ie={},at("next"),at("throw"),at("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function at(Gt){ue[Gt]&&(Ie[Gt]=function(xt){return new Promise(function(yn,ai){He.push([Gt,xt,yn,ai])>1||vt(Gt,xt)})})}function vt(Gt,xt){try{!function Dt(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,xi):Rn(He[0][2],Gt)}(ue[Gt](xt))}catch(yn){Rn(He[0][3],yn)}}function Le(Gt){vt("next",Gt)}function xi(Gt){vt("throw",Gt)}function Rn(Gt,xt){Gt(xt),He.shift(),He.length&&vt(He[0][0],He[0][1])}}function Oe(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(at){return new Promise(function(vt,Dt){!function Ie(He,at,vt,Dt){Promise.resolve(Dt).then(function(Le){He({value:Le,done:vt})},at)}(vt,Dt,(at=oe[He](at)).done,at.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Oe,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Oe,EM:()=>Rr,HT:()=>I,JF:()=>Li,K0:()=>W,Mx:()=>Gi,NF:()=>Xa,O5:()=>St,PC:()=>la,RF:()=>sr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Be,bD:()=>Oi,ez:()=>cr,n9:()=>Di,q:()=>V,w_:()=>j});var T=x(4650);let g=null;function V(){return g}function I(M){g||(g=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function X(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Be)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return X(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Oe=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=X(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie($e(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,$e(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=X,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function $e(M){return M.replace(/\/index.html$/,"")}function Gi(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let St=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new tn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){sa("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){sa("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class tn{constructor(){this.$implicit=null,this.ngIf=null}}function sa(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Bn{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 sr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Bn(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(sr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),la=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),ce=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ee,ce)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),cr=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Oi="browser";function Xa(M){return M===Oi}let Rr=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new wi((0,T.LFG)(W),window)}),M})();class wi{constructor(k,D){this.document=k,this.window=D,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 D=function eo(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const ce=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(ce)return ce}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function us(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Li{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Dd,LE:()=>ge,TP:()=>vt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Oe});var T=x(6895),g=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const le=q.indexOf(":");if(le>0){const Te=q.slice(0,le),Xe=Te.toLowerCase(),st=q.slice(le+1).trim();this.maybeSetNormalizedName(Te,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(st):this.headers.set(Xe,[st])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let le=Y[q];const Te=q.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(Te,le),this.maybeSetNormalizedName(q,Te))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let le=Y.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Y.name,q);const Te=("a"===Y.op?this.headers.get(q):void 0)||[];Te.push(...le),this.headers.set(q,Te);break;case"d":const Xe=Y.value;if(Xe){let st=this.headers.get(q);if(!st)return;st=st.filter(ze=>-1===Xe.indexOf(ze)),0===st.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,st)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const X=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(X,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Te=>{const Xe=Te.indexOf("="),[st,ze]=-1==Xe?[Y.decodeKey(Te),""]:[Y.decodeKey(Te.slice(0,Xe)),Y.decodeValue(Te.slice(Xe+1))],Qe=q.get(st)||[];Qe.push(ze),q.set(st,Qe)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const le=Y.fromObject[q],Te=Array.isArray(le)?le.map(he):[he(le)];this.map.set(q,Te)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(le=>{const Te=Y[le];Array.isArray(Te)?Te.forEach(Xe=>{q.push({param:le,value:Xe,op:"a"})}):q.push({param:le,value:Te,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(le=>q+"="+this.encoder.encodeValue(le)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let le=this.map.get(Y.param)||[];const Te=le.indexOf(he(Y.value));-1!==Te&&le.splice(Te,1),le.length>0?this.map.set(Y.param,le):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Oe{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function $e(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Se{constructor(Y,q,le,Te){let Xe;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==le?le:null,Xe=Te):Xe=le,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new $),this.context||(this.context=new Oe),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=q;else{const ze=q.indexOf("?");this.urlWithParams=q+(-1===ze?"?":zeXi.set(tt,Y.setHeaders[tt]),Qe)),Y.setParams&&(ti=Object.keys(Y.setParams).reduce((Xi,tt)=>Xi.set(tt,Y.setParams[tt]),ti)),new Se(q,le,Xe,{params:ti,headers:Qe,context:bt,reportProgress:ze,responseType:Te,withCredentials:st})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class oe{constructor(Y,q=200,le="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||le,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Ee.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Ee.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Ie(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,le,Te={}){let Xe;if(q instanceof Se)Xe=q;else{let Qe,ti;Qe=Te.headers instanceof $?Te.headers:new $(Te.headers),Te.params&&(ti=Te.params instanceof ge?Te.params:new ge({fromObject:Te.params})),Xe=new Se(q,le,void 0!==Te.body?Te.body:null,{headers:Qe,context:Te.context,params:ti,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const st=(0,V.of)(Xe).pipe((0,I.b)(Qe=>this.handler.handle(Qe)));if(q instanceof Se||"events"===Te.observe)return st;const ze=st.pipe((0,j.h)(Qe=>Qe instanceof fe));switch(Te.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Qe.body}));case"blob":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof Blob))throw new Error("Response is not a Blob.");return Qe.body}));case"text":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&"string"!=typeof Qe.body)throw new Error("Response is not a string.");return Qe.body}));default:return ze.pipe((0,W.U)(Qe=>Qe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(q,le={}){return this.request("DELETE",q,le)}get(q,le={}){return this.request("GET",q,le)}head(q,le={}){return this.request("HEAD",q,le)}jsonp(q,le){return this.request("JSONP",q,{params:(new ge).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,le={}){return this.request("OPTIONS",q,le)}patch(q,le,Te={}){return this.request("PATCH",q,Ie(Te,le))}post(q,le,Te={}){return this.request("POST",q,Ie(Te,le))}put(q,le,Te={}){return this.request("PUT",q,Ie(Te,le))}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(Q))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class at{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const vt=new g.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ce{intercept(q,le){return le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const qa=/^\)\]\}',?\n/;let Wa=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(le=>{const Te=this.xhrFactory.build();if(Te.open(q.method,q.urlWithParams),q.withCredentials&&(Te.withCredentials=!0),q.headers.forEach((Tt,Pt)=>Te.setRequestHeader(Tt,Pt.join(","))),q.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Tt=q.detectContentTypeHeader();null!==Tt&&Te.setRequestHeader("Content-Type",Tt)}if(q.responseType){const Tt=q.responseType.toLowerCase();Te.responseType="json"!==Tt?Tt:"text"}const Xe=q.serializeBody();let st=null;const ze=()=>{if(null!==st)return st;const Tt=Te.statusText||"OK",Pt=new $(Te.getAllResponseHeaders()),an=function Md(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Te)||q.url;return st=new se({headers:Pt,status:Te.status,statusText:Tt,url:an}),st},Qe=()=>{let{headers:Tt,status:Pt,statusText:an,url:Dr}=ze(),gi=null;204!==Pt&&(gi=typeof Te.response>"u"?Te.responseText:Te.response),0===Pt&&(Pt=gi?200:0);let Hr=Pt>=200&&Pt<300;if("json"===q.responseType&&"string"==typeof gi){const Pr=gi;gi=gi.replace(qa,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ra){gi=Pr,Hr&&(Hr=!1,gi={error:ra,text:gi})}}Hr?(le.next(new fe({body:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0})),le.complete()):le.error(new ue({error:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0}))},ti=Tt=>{const{url:Pt}=ze(),an=new ue({error:Tt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Pt||void 0});le.error(an)};let bt=!1;const Xi=Tt=>{bt||(le.next(ze()),bt=!0);let Pt={type:Ee.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),"text"===q.responseType&&!!Te.responseText&&(Pt.partialText=Te.responseText),le.next(Pt)},tt=Tt=>{let Pt={type:Ee.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),le.next(Pt)};return Te.addEventListener("load",Qe),Te.addEventListener("error",ti),Te.addEventListener("timeout",ti),Te.addEventListener("abort",ti),q.reportProgress&&(Te.addEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.addEventListener("progress",tt)),Te.send(Xe),le.next({type:Ee.Sent}),()=>{Te.removeEventListener("error",ti),Te.removeEventListener("abort",ti),Te.removeEventListener("load",Qe),Te.removeEventListener("timeout",ti),q.reportProgress&&(Te.removeEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.removeEventListener("progress",tt)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.JF))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new g.OlP("XSRF_COOKIE_NAME"),kn=new g.OlP("XSRF_HEADER_NAME");class ta{}let $a=(()=>{class Ce{constructor(q,le,Te){this.doc=q,this.platform=le,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(In))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Ye=(()=>{class Ce{constructor(q,le){this.tokenService=q,this.headerName=le}intercept(q,le){const Te=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Te.startsWith("http://")||Te.startsWith("https://"))return le.handle(q);const Xe=this.tokenService.getToken();return null!==Xe&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,Xe)})),le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(ta),g.LFG(kn))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),li=(()=>{class Ce{constructor(q,le){this.backend=q,this.injector=le,this.chain=null}handle(q){if(null===this.chain){const le=this.injector.get(vt,[]);this.chain=le.reduceRight((Te,Xe)=>new at(Te,Xe),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(G),g.LFG(g.zs3))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),na=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Ye,useClass:Dt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[Ye,{provide:vt,useExisting:Ye,multi:!0},{provide:ta,useClass:$a},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Dd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[He,{provide:Q,useClass:li},Wa,{provide:G,useExisting:Wa}],imports:[na.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>af,$Z:()=>ky,AFp:()=>_A,ALo:()=>Kv,AaK:()=>Q,BQk:()=>hh,CHM:()=>xn,CRH:()=>nA,CZH:()=>xl,CqO:()=>Cw,D6c:()=>hp,EJc:()=>cS,EiD:()=>Sf,EpF:()=>_w,F$t:()=>om,F4k:()=>bw,FYo:()=>UC,FiY:()=>wa,G48:()=>fS,Gf:()=>Oh,GfV:()=>GC,GkF:()=>tm,Gpc:()=>U,Hsn:()=>Tw,Ikx:()=>Ch,JOm:()=>En,JVY:()=>cu,KtG:()=>qi,L6k:()=>hi,LAX:()=>yo,LFG:()=>Jt,LSH:()=>Df,Lbi:()=>ud,Lck:()=>PE,MAs:()=>Xg,MMx:()=>ad,NdJ:()=>nm,O4$:()=>jn,OlP:()=>Ht,Oqu:()=>_m,PXZ:()=>I_,Q6J:()=>Cr,QGY:()=>im,QP$:()=>zo,QbO:()=>yA,Qsj:()=>Ox,R0b:()=>zi,RDi:()=>bC,Rgc:()=>sd,SBq:()=>wc,Sil:()=>S_,Suo:()=>iA,TTD:()=>Ja,TgZ:()=>ch,Udp:()=>pm,VKq:()=>Km,WFA:()=>rm,XFs:()=>Ye,Xpm:()=>an,Xts:()=>Hf,Y36:()=>Ls,YKP:()=>Rv,YNc:()=>Zg,Yjl:()=>Ll,Yz7:()=>xt,ZZ4:()=>dp,_Bn:()=>Pv,_UZ:()=>dh,_Vd:()=>yc,_c5:()=>WA,_uU:()=>qw,aQg:()=>Er,c2e:()=>sS,cJS:()=>ai,cg1:()=>Sn,d8E:()=>yh,dDg:()=>gd,dqk:()=>le,eBb:()=>fx,eFA:()=>PA,ekj:()=>fm,eoX:()=>Wo,f3M:()=>eu,g9A:()=>dd,h0i:()=>gl,hGG:()=>$A,hij:()=>gh,iGM:()=>Bh,ifc:()=>q,ip1:()=>Mn,kL8:()=>Dm,kcU:()=>Ud,lG2:()=>Hd,lcZ:()=>Zv,lnq:()=>bm,lqb:()=>Ao,lri:()=>R_,mCW:()=>hc,n5z:()=>nf,n_E:()=>Dh,oAB:()=>Pr,oxw:()=>Aw,pB0:()=>vf,q3G:()=>ni,qLn:()=>vc,qOj:()=>Io,qZA:()=>qc,qzn:()=>Co,rWj:()=>TA,s9C:()=>ph,sBO:()=>F_,sIi:()=>Ws,s_b:()=>Ph,soG:()=>ep,tb:()=>T_,tp0:()=>xs,uIk:()=>ah,vHH:()=>ie,vpe:()=>xr,wAp:()=>qe,xp6:()=>xy,ynx:()=>uh,z2F:()=>Ml,z3N:()=>Fr,zSh:()=>If,zs3:()=>Ma});var T=x(7579),g=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let f in h)if(h[f]===j)return f;throw Error("Could not find renamed property on target object.")}function W(h,f){for(const m in f)f.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=f[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const m=f.indexOf("\n");return-1===m?f:f.substring(0,m)}function G(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const $=j({__forward_ref__:j});function U(h){return h.__forward_ref__=U,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===U}class ie extends Error{constructor(f,m){super(function de(h,f){return`NG0${Math.abs(h)}${f?": "+f.trim():""}`}(f,m)),this.code=f}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,f){throw new ie(-201,!1)}function Dt(h,f){null==h&&function Le(h,f,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${f} <=Actual]`))}(f,h,null,"!=")}function xt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ai(h){return{providers:h.providers||[],imports:h.imports||[]}}function Mr(h){return Ol(h,In)||Ol(h,ta)}function Ol(h,f){return h.hasOwnProperty(f)?h[f]:null}function Wa(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty($a))?h[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ta=j({ngInjectableDef:j}),$a=j({ngInjectorDef:j});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 li;function Ti(h){const f=li;return li=h,f}function na(h,f,m){const _=Mr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==f?f:void _e(Q(h))}function wn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),st={},ze=[],Qe=j({\u0275cmp:j}),ti=j({\u0275dir:j}),bt=j({\u0275pipe:j}),Xi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Tt=j({__NG_ELEMENT_ID__:j});let Pt=0;function an(h){return wn(()=>{const m=!0===h.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||ze,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+Pt++,styles:h.styles||ze,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=Ya(h.inputs,_),C.outputs=Ya(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Hr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Si).filter(Hr):null,C})}function gi(h){return At(h)||Ei(h)}function Hr(h){return null!==h}function Pr(h){return wn(()=>({type:h.type,bootstrap:h.bootstrap||ze,declarations:h.declarations||ze,imports:h.imports||ze,exports:h.exports||ze,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Ya(h,f){if(null==h)return st;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]=_,f&&(f[C]=w)}return m}const Hd=an;function Ll(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function At(h){return h[Qe]||null}function Ei(h){return h[ti]||null}function Si(h){return h[bt]||null}function Ui(h,f){const m=h[Xi]||null;if(!m&&!0===f)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function St(h){return Array.isArray(h)&&"object"==typeof h[1]}function tn(h){return Array.isArray(h)&&!0===h[1]}function sa(h){return 0!=(8&h.flags)}function Bn(h){return 2==(2&h.flags)}function sr(h){return 1==(1&h.flags)}function Di(h){return null!==h.template}function Fl(h){return 0!=(256&h[2])}function lr(h,f){return h.hasOwnProperty(tt)?h[tt]:null}class Nl{constructor(f,m,_){this.previousValue=f,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Ja(){return os}function os(h){return h.type.prototype.ngOnChanges&&(h.setInput=Ka),zl}function zl(){const h=lt(this),f=h?.current;if(f){const m=h.previous;if(m===st)h.previous=f;else for(let _ in f)m[_]=f[_];h.current=null,this.ngOnChanges(f)}}function Ka(h,f,m,_){const C=lt(h)||function da(h,f){return h[sn]=f}(h,{previous:st,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Nl(S&&S.currentValue,f,v===st),h[_]=f}Ja.ngInherit=!0;const sn="__ngSimpleChanges__";function lt(h){return h[sn]||null}function Qt(h){for(;Array.isArray(h);)h=h[0];return h}function Rr(h,f){return Qt(f[h])}function wi(h,f){return Qt(f[h.index])}function eo(h,f){return h.data[f]}function ua(h,f){return h[f]}function Li(h,f){const m=f[h];return St(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,f){return null==f?null:h[f]}function ee(h){h[18]=0}function pe(h,f){h[5]+=f;let m=h,_=h[3];for(;null!==_&&(1===f&&1===m[5]||-1===f&&0===m[5]);)_[5]+=f,m=_,_=_[3]}const ce={lFrame:Up(null),bindingsEnabled:!0};function bi(){return ce.bindingsEnabled}function be(){return ce.lFrame.lView}function rt(){return ce.lFrame.tView}function xn(h){return ce.lFrame.contextLView=h,h[8]}function qi(h){return ce.lFrame.contextLView=null,h}function $t(){let h=ha();for(;null!==h&&64===h.type;)h=h.parent;return h}function ha(){return ce.lFrame.currentTNode}function Fi(h,f){const m=ce.lFrame;m.currentTNode=h,m.isParent=f}function Od(){return ce.lFrame.isParent}function Ld(){ce.lFrame.isParent=!1}function ji(){const h=ce.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function pa(){return ce.lFrame.bindingIndex++}function Ln(h){const f=ce.lFrame,m=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,m}function kr(h,f){const m=ce.lFrame;m.bindingIndex=m.bindingRootIndex=h,Wl(f)}function Wl(h){ce.lFrame.currentDirectiveIndex=h}function Fd(h){const f=ce.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function jp(){return ce.lFrame.currentQueryIndex}function jd(h){ce.lFrame.currentQueryIndex=h}function Lb(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function Np(h,f,m){if(m&Ye.SkipSelf){let C=f,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Lb(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;f=C,h=w}const _=ce.lFrame=zp();return _.currentTNode=f,_.lView=h,!0}function Nd(h){const f=zp(),m=h[1];ce.lFrame=f,f.currentTNode=m.firstChild,f.lView=h,f.tView=m,f.contextLView=h,f.bindingIndex=m.bindingStartIndex,f.inI18n=!1}function zp(){const h=ce.lFrame,f=null===h?null:h.child;return null===f?Up(h):f}function Up(h){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:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function Gp(){const h=ce.lFrame;return ce.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const qp=Gp;function zd(){const h=Gp();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 Hi(){return ce.lFrame.selectedIndex}function Fn(h){ce.lFrame.selectedIndex=h}function Nt(){const h=ce.lFrame;return eo(h.tView,h.selectedIndex)}function jn(){ce.lFrame.currentNamespace="svg"}function Ud(){!function $p(){ce.lFrame.currentNamespace=null}()}function hs(h,f){for(let m=f.directiveStart,_=f.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),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 $l(h,f,m){Ql(h,f,3,m)}function fa(h,f,m,_){(3&h[2])===m&&Ql(h,f,m,_)}function Yl(h,f){let m=h[2];(3&m)===f&&(m&=2047,m+=1,h[2]=m)}function Ql(h,f,m,_){const w=_??-1,v=f.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else f[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===f){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ga{constructor(f,m,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function gs(h,f,m){let _=0;for(;_f){v=w-1;break}}}for(;w>16}(h),_=f;for(;m>0;)_=_[15],m--;return _}let Xp=!0;function Wd(h){const f=Xp;return Xp=h,f}let qb=0;const zn={};function ba(h,f){const m=Zl(h,f);if(-1!==m)return m;const _=f[1];_.firstCreatePass&&(h.injectorIndex=f.length,Wi(_.data,h),Wi(f,null),Wi(_.blueprint,null));const C=ms(h,f),w=h.injectorIndex;if(Kp(C)){const v=no(C),E=_a(C,f),S=E[1].data;for(let P=0;P<8;P++)f[w+P]=E[v+P]|S[v+P]}return f[w+8]=C,w}function Wi(h,f){h.push(0,0,0,0,0,0,0,0,f)}function Zl(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function ms(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=f;for(;null!==C;){if(_=rf(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function Xl(h,f,m){!function Wb(h,f,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Tt)&&(_=m[Tt]),null==_&&(_=m[Tt]=qb++);const C=255&_;f.data[h+(C>>5)]|=1<=0?255&f:Qb:f}(m);if("function"==typeof w){if(!Np(f,h,_))return _&Ye.Host?$d(C,0,_):_s(f,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;_e()}finally{qp()}}else if("number"==typeof w){let v=null,E=Zl(h,f),S=-1,P=_&Ye.Host?f[16][6]:null;for((-1===E||_&Ye.SkipSelf)&&(S=-1===E?ms(h,f):f[E+8],-1!==S&&ao(_,!1)?(v=f[1],E=no(S),f=_a(S,f)):E=-1);-1!==E;){const R=f[1];if(ro(w,E,R.data)){const L=ec(E,f,m,v,_,P);if(L!==zn)return L}S=f[E+8],-1!==S&&ao(_,f[1].data[E+8]===P)&&ro(w,E,f)?(v=R,E=no(S),f=_a(S,f)):E=-1}}return C}function ec(h,f,m,_,C,w){const v=f[1],E=v.data[h+8],R=Br(E,v,m,null==_?Bn(E)&&Xp:_!=v&&0!=(3&E.type),C&Ye.Host&&w===E);return null!==R?bs(f,v,R,E):zn}function Br(h,f,m,_,C){const w=h.providerIndexes,v=f.data,E=1048575&w,S=h.directiveStart,R=w>>20,J=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Di(re)&&re.type===m)return S}return null}function bs(h,f,m,_){let C=h[m];const w=f.data;if(function Nb(h){return h instanceof ga}(C)){const v=C;v.resolving&&function Be(h,f){const m=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=Wd(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ti(v.injectImpl):null;Np(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),f.firstCreatePass&&m>=_.directiveStart&&function Vr(h,f,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=f.type.prototype;if(_){const v=os(f);(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],f)}finally{null!==S&&Ti(S),Wd(E),v.resolving=!1,qp()}}return C}function ro(h,f,m){return!!(m[f+(h>>5)]&1<{const f=h.prototype.constructor,m=f[tt]||Yd(f),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||Yd(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function Yd(h){return ne(h)?()=>{const f=Yd(te(h));return f&&f()}:lr(h)}function rf(h){const f=h[1],m=f.type;return 2===m?f.declTNode:1===m?h[6]:null}function af(h){return function $b(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(Jp(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===f)return m[C+1];C+=2}}}return null}($t(),h)}const Or="__parameters__";function lo(h,f,m){return wn(()=>{const _=function Qd(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(f);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Or)?S[Or]:Object.defineProperty(S,Or,{value:[]})[Or];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Ht{constructor(f,m){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=xt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $i(h,f){void 0===f&&(f=h);for(let m=0;mArray.isArray(m)?Un(m,f):f(m))}function ys(h,f,m){f>=h.length?h.push(m):h.splice(f,0,m)}function ya(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function uo(h,f){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function Xb(h,f,m,_){let C=h.length;if(C==f)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>f;)h[C]=h[C-2],C--;h[f]=m,h[f+1]=_}}(h,_,f,m)),_}function po(h,f){const m=fo(h,f);if(m>=0)return h[1|m]}function fo(h,f){return function uf(h,f,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<f?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return dc}()?.createHTML(h)||h}class Lr{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wC extends Lr{getTypeName(){return"HTML"}}class lu extends Lr{getTypeName(){return"Style"}}class vC extends Lr{getTypeName(){return"Script"}}class AC extends Lr{getTypeName(){return"URL"}}class xC extends Lr{getTypeName(){return"ResourceURL"}}function Fr(h){return h instanceof Lr?h.changingThisBreaksApplicationSecurity:h}function Co(h,f){const m=function Ms(h){return h instanceof Lr&&h.getTypeName()||null}(h);if(null!=m&&m!==f){if("ResourceURL"===m&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===f}function cu(h){return new wC(h)}function hi(h){return new lu(h)}function fx(h){return new vC(h)}function yo(h){return new AC(h)}function vf(h){return new xC(h)}class Ds{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const m=(new window.DOMParser).parseFromString(bo(f),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(f):(m.removeChild(m.firstChild),m)}catch{return null}}}class TC{constructor(f){if(this.defaultDoc=f,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(f){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=bo(f),m;const _=this.inertDocument.createElement("body");return _.innerHTML=bo(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const m=f.attributes;for(let C=m.length-1;0hc(f.trim())).join(", ")),this.buf.push(" ",v,'="',DC(S),'"')}var h;return this.buf.push(">"),!0}endElement(f){const m=f.nodeName.toLowerCase();xf.hasOwnProperty(m)&&!fc.hasOwnProperty(m)&&(this.buf.push(""))}chars(f){this.buf.push(DC(f))}checkClobberedElement(f,m){if(m&&(f.compareDocumentPosition(m)&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 m}}const Ef=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bx=/([^\#-~ |!])/g;function DC(h){return h.replace(/&/g,"&").replace(Ef,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(bx,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let _c;function Sf(h,f){let m=null;try{_c=_c||function du(h){const f=new TC(h);return function Gn(){try{return!!(new window.DOMParser).parseFromString(bo(""),"text/html")}catch{return!1}}()?new Ds(f):f}(h);let _=f?String(f):"";m=_c.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=_c.getInertBodyElement(_)}while(_!==w);return bo((new Tf).sanitizeChildren(hu(m)||m))}finally{if(m){const _=hu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function hu(h){return"content"in h&&function Mf(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Df(h){const f=function bc(){const h=be();return h&&h[12]}();return f?f.sanitize(ni.URL,h)||"":Co(h,"URL")?Fr(h):hc(he(h))}const Hf=new Ht("ENVIRONMENT_INITIALIZER"),IC=new Ht("INJECTOR",-1),Pf=new Ht("INJECTOR_DEF_TYPES");class kC{get(f,m=go){if(m===go){const _=new Error(`NullInjectorError: No provider for ${Q(f)}!`);throw _.name="NullInjectorError",_}return m}}function Ax(...h){return{\u0275providers:VC(0,h)}}function VC(h,...f){const m=[],_=new Set;let C;return Un(f,w=>{const v=w;Cc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&BC(C,m),m}function BC(h,f){for(let m=0;m{f.push(w)})}}function Cc(h,f,m,_){if(!(h=te(h)))return!1;let C=null,w=Wa(h);const v=!w&&At(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=Wa(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Cc(P,f,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Un(w.imports,R=>{Cc(R,f,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&BC(P,f)}if(!E){const P=lr(C)||(()=>new C);f.push({provide:C,useFactory:P,deps:ze},{provide:Pf,useValue:C,multi:!0},{provide:Hf,useValue:()=>Jt(C),multi:!0})}const S=w.providers;null==S||E||Un(S,R=>{f.push(R)})}}return C!==h&&void 0!==h.providers}const xx=j({provide:String,useValue:j});function Rf(h){return null!==h&&"object"==typeof h&&xx in h}function vo(h){return"function"==typeof h}const If=new Ht("Set Injector scope."),fu={},Ex={};let kf;function gu(){return void 0===kf&&(kf=new kC),kf}class Ao{}class FC extends Ao{constructor(f,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bf(f,v=>this.processProvider(v)),this.records.set(IC,Hs(void 0,this)),C.has("environment")&&this.records.set(Ao,Hs(void 0,this));const w=this.records.get(If);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Pf.multi,ze,Ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const m=mo(this),_=Ti(void 0);try{return f()}finally{mo(m),Ti(_)}}get(f,m=go,_=Ye.Default){this.assertNotDestroyed();const C=mo(this),w=Ti(void 0);try{if(!(_&Ye.SkipSelf)){let E=this.records.get(f);if(void 0===E){const S=function Px(h){return"function"==typeof h||"object"==typeof h&&h instanceof Ht}(f)&&Mr(f);E=S&&this.injectableDefInScope(S)?Hs(Vf(f),fu):null,this.records.set(f,E)}if(null!=E)return this.hydrate(f,E)}return(_&Ye.Self?gu():this.parent).get(f,m=_&Ye.Optional&&m===go?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[rc]=v[rc]||[]).unshift(Q(f)),C)throw v;return function cC(h,f,m,_){const C=h[rc];throw f[pf]&&C.unshift(f[pf]),h.message=function iu(h,f,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(f);if(Array.isArray(f))C=f.map(Q).join(" -> ");else if("object"==typeof f){let w=[];for(let v in f)if(f.hasOwnProperty(v)){let E=f[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(oC,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[rc]=null,h}(v,f,"R3InjectorError",this.source)}throw v}finally{Ti(w),mo(C)}}resolveInjectorInitializers(){const f=mo(this),m=Ti(void 0);try{const _=this.get(Hf.multi,ze,Ye.Self);for(const C of _)C()}finally{mo(f),Ti(m)}}toString(){const f=[],m=this.records;for(const _ of m.keys())f.push(Q(_));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(f){let m=vo(f=te(f))?f:te(f&&f.provide);const _=function Mx(h){return Rf(h)?Hs(void 0,h.useValue):Hs(jC(h),fu)}(f);if(vo(f)||!0!==f.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Hs(void 0,fu,!0),C.factory=()=>tu(C.multi),this.records.set(m,C)),m=f,C.multi.push(f)}this.records.set(m,_)}hydrate(f,m){return m.value===fu&&(m.value=Ex,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Hx(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(f){if(!f.providedIn)return!1;const m=te(f.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Vf(h){const f=Mr(h),m=null!==f?f.factory:lr(h);if(null!==m)return m;if(h instanceof Ht)throw new ie(204,!1);if(h instanceof Function)return function Sx(h){const f=h.length;if(f>0)throw uo(f,"?"),new ie(204,!1);const m=function qa(h){const f=h&&(h[In]||h[ta]);if(f){const m=function Md(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[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.`),f}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function jC(h,f,m){let _;if(vo(h)){const C=te(h);return lr(C)||Vf(C)}if(Rf(h))_=()=>te(h.useValue);else if(function LC(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...tu(h.deps||[]));else if(function OC(h){return!(!h||!h.useExisting)}(h))_=()=>Jt(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function Dx(h){return!!h.deps}(h))return lr(C)||Vf(C);_=()=>new C(...tu(h.deps))}return _}function Hs(h,f,m=!1){return{factory:h,value:f,multi:m?[]:void 0}}function Rx(h){return!!h.\u0275providers}function Bf(h,f){for(const m of h)Array.isArray(m)?Bf(m,f):Rx(m)?Bf(m.\u0275providers,f):f(m)}class Of{}class kx{resolveComponentFactory(f){throw function Ix(h){const f=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let yc=(()=>{class h{}return h.NULL=new kx,h})();function Vx(){return Ps($t(),be())}function Ps(h,f){return new wc(wi(h,f))}let wc=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Vx,h})();function Bx(h){return h instanceof wc?h.nativeElement:h}class UC{}let Ox=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Lx(){const h=be(),m=Li($t().index,h);return(St(m)?m:h)[11]}(),h})(),Fx=(()=>{class h{}return h.\u0275prov=xt({token:h,providedIn:"root",factory:()=>null}),h})();class GC{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const jx=new GC("14.1.2"),Lf={};function Uf(h){return h.ngOriginalError}class vc{constructor(){this._console=console}handleError(f){const m=this._findOriginalError(f);this._console.error("ERROR",f),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(f){let m=f&&Uf(f);for(;m&&Uf(m);)m=Uf(m);return m||null}}const Gf=new Map;let Zx=0;const xc="__ngContext__";function Pi(h,f){St(f)?(h[xc]=f[20],function eT(h){Gf.set(h[20],h)}(f)):h[xc]=f}function Rs(h){const f=h[xc];return"number"==typeof f?function JC(h){return Gf.get(h)||null}(f):f||null}function mu(h){const f=Rs(h);return f?St(f)?f:f.lView:null}const ZC=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(le))();function Yi(h){return h instanceof Function?h():h}var En=(()=>((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();function $f(h,f){return undefined(h,f)}function Tc(h){const f=h[3];return tn(f)?f[3]:f}function Qf(h){return Kf(h[13])}function Jf(h){return Kf(h[4])}function Kf(h){for(;null!==h&&!tn(h);)h=h[4];return h}function Ta(h,f,m,_,C){if(null!=_){let w,v=!1;tn(_)?w=_:St(_)&&(v=!0,_=_[0]);const E=Qt(_);0===h&&null!==m?null==C?fy(f,m,E):xo(f,m,E,C||null,!0):1===h&&null!==m?xo(f,m,E,C||null,!0):2===h?function rg(h,f,m){const _=To(h,f);_&&function sT(h,f,m,_){h.removeChild(f,m,_)}(h,_,f,m)}(f,E,v):3===h&&f.destroyNode(E),null!=w&&function ag(h,f,m,_,C){const w=m[7];w!==Qt(m)&&Ta(f,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ya(h,10+f);!function oy(h,f){dn(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function eg(h,f){if(!(128&f[2])){const m=f[11];m.destroyNode&&dn(h,f,m,3,null,null),function cy(h){let f=h[13];if(!f)return vu(h[1],h);for(;f;){let m=null;if(St(f))m=f[13];else{const _=f[10];_&&(m=_)}if(!m){for(;f&&!f[4]&&f!==h;)St(f)&&vu(f[1],f),f=f[3];null===f&&(f=h),St(f)&&vu(f[1],f),m=f&&f[4]}f=m}}(f)}}function vu(h,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function Au(h,f){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++)(0,_[w])();f[7]=null}}(h,f),1===f[1].type&&f[11].destroy();const m=f[17];if(null!==m&&tn(f[3])){m!==f[3]&&yu(m,f);const _=f[19];null!==_&&_.detachView(h)}!function tT(h){Gf.delete(h[20])}(f)}}function hy(h,f,m){return function py(h,f,m){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return wi(_,m)}(h,f.parent,m)}function xo(h,f,m,_,C){h.insertBefore(f,m,_,C)}function fy(h,f,m){h.appendChild(f,m)}function gy(h,f,m,_,C){null!==_?xo(h,f,m,_,C):fy(h,f,m)}function To(h,f){return h.parentNode(f)}function ig(h,f,m){return Ea(h,f,m)}let Ea=function xu(h,f,m){return 40&h.type?wi(h,m):null};function Ec(h,f,m,_){const C=hy(h,_,f),w=f[11],E=ig(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?J:null;if(re&&-1!==og(re,P,0)||2&_&&P!==J){if(un(_))return!1;v=!0}}}}else{if(!v&&!un(_)&&!un(S))return!1;if(v&&un(S))continue;v=!1,_=S|1&_}}return un(_)||v}function un(h){return 0==(1&h)}function uT(h,f,m,_){if(null===f)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!un(v)&&(f+=cg(w,C),C=""),_=v,w=w||!un(_);m++}return""!==C&&(f+=cg(w,C)),f}const Ae={};function xy(h){Ty(rt(),be(),Hi()+h,!1)}function Ty(h,f,m,_){if(!_)if(3==(3&f[2])){const w=h.preOrderCheckHooks;null!==w&&$l(f,w,m)}else{const w=h.preOrderHooks;null!==w&&fa(f,w,0,m)}Fn(m)}function hn(h,f=null,m=null,_){const C=Os(h,f,m,_);return C.resolveInjectorInitializers(),C}function Os(h,f=null,m=null,_,C=new Set){const w=[m||ze,Ax(h)];return _=_||("object"==typeof h?void 0:Q(h)),new FC(w,f||gu(),_||null,C)}let Ma=(()=>{class h{static create(m,_){if(Array.isArray(m))return hn({name:""},_,m,"");{const C=m.name??"";return hn({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=go,h.NULL=new kC,h.\u0275prov=xt({token:h,providedIn:"any",factory:()=>Jt(IC)}),h.__NG_ELEMENT_ID__=-1,h})();function Ls(h,f=Ye.Default){const m=be();return null===m?Jt(h,f):ef($t(),m,te(h),f)}function ky(){throw new Error("invalid")}function Vu(h,f){return h<<17|f<<2}function Wn(h){return h>>17&32767}function Bu(h){return 2|h}function Ur(h){return(131068&h)>>2}function Ou(h,f){return-131069&h|f<<2}function Lu(h){return 1|h}function Mg(h,f){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Ty(h,f,22,!1),m(_,C)}finally{Fn(w)}}function qy(h,f,m){if(sa(f)){const C=f.directiveEnd;for(let w=f.directiveStart;w0;){const m=h[--f];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gr(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function mr(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function Jy(h,f,m){if(m){if(f.exportAs)for(let _=0;_0&&Og(m)}}function Og(h){for(let _=Qf(h);null!==_;_=Jf(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];Bc(v,w,v.template,w[8])}else w[5]>0&&Og(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Og(C)}}function Lg(h,f){const m=Li(f,h),_=m[1];(function nw(h,f){for(let m=f.length;mPromise.resolve(null))();function eh(h){return h[7]||(h[7]=[])}function jg(h){return h.cleanup||(h.cleanup=[])}function Ng(h,f,m){return(null===h||Di(h))&&(m=function ds(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[f.index])),m[11]}function zg(h,f){const m=h[9],_=m?m.get(vc,null):null;_&&_.handleError(f)}function mn(h,f,m,_,C){for(let w=0;w-1&&(wu(f,_),ya(m,_))}this._attachedToViewContainer=!1}eg(this._lView[1],this._lView)}onDestroy(f){Wy(this._lView[1],this._lView,null,f)}markForCheck(){Po(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Xu(h,f,m){const _=f[10];_.begin&&_.begin();try{Bc(h,f,h.template,m)}catch(C){throw zg(f,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ly(h,f){dn(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=f}}class aw extends zc{constructor(f){super(f),this._view=f}detectChanges(){Fg(this._view)}checkNoChanges(){}get context(){return null}}class ih extends yc{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const m=At(f);return new Gs(m,this.ngModule)}}function Pa(h){const f=[];for(let m in h)h.hasOwnProperty(m)&&f.push({propName:h[m],templateName:m});return f}class Ug{constructor(f,m){this.injector=f,this.parentInjector=m}get(f,m,_){const C=this.injector.get(f,Lf,_);return C!==Lf||m===Lf?C:this.parentInjector.get(f,m,_)}}class Gs extends Of{constructor(f,m){super(),this.componentDef=f,this.ngModule=m,this.componentType=f.type,this.selector=function vy(h){return h.map(wy).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Pa(this.componentDef.inputs)}get outputs(){return Pa(this.componentDef.outputs)}create(f,m,_,C){let w=(C=C||this.ngModule)instanceof Ao?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new Ug(f,w):f,E=v.get(UC,null);if(null===E)throw new ie(407,!1);const S=v.get(Fx,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function RT(h,f,m){return h.selectRootElement(f,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Cu(E.createRenderer(null,this.componentDef),R,function jT(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(R)),J=this.componentDef.onPush?288:272,re=function ht(h,f){return{components:[],scheduler:h||ZC,clean:FT,playerHandler:f||null,flags:0}}(),me=qr(0,null,null,1,0,null,null,null,null,null),xe=Vc(null,me,re,J,null,null,E,P,S,v,null);let Re,Fe;Nd(xe);try{const Ke=function Gg(h,f,m,_,C,w){const v=m[1];m[22]=h;const S=$n(v,22,2,"#host",null),P=S.mergedAttrs=f.hostAttrs;null!==P&&(Nc(S,P,!0),null!==h&&(gs(C,h,P),null!==S.classes&&So(C,h,S.classes),null!==S.styles&&Du(C,h,S.styles)));const R=_.createRenderer(h,f),L=Vc(m,Yn(f),null,f.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(Xl(ba(S,m),v,f.type),mr(v,S),Ky(S,m.length,1)),Fc(m,L),m[22]=L}(L,this.componentDef,xe,E,P);if(L)if(_)gs(P,L,["ng-version",jx.full]);else{const{attrs:ye,classes:We}=function Ay(h){const f=[],m=[];let _=1,C=2;for(;_0&&So(P,L,We.join(" "))}if(Fe=eo(me,22),void 0!==m){const ye=Fe.projection=[];for(let We=0;We=0;_--){const C=h[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ma(C.hostAttrs,m=ma(m,C.hostAttrs))}}(_)}function ko(h){return h===st?{}:h===ze?[]:h}function zT(h,f){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{f(_,C),m(_,C)}:f}function qg(h,f){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{f(_,C,w),m(_,C,w)}:f}function qs(h,f){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{f(_,C),m(_,C)}:f}let Uc=null;function Ia(){if(!Uc){const h=le.Symbol;if(h&&h.iterator)Uc=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(Qt(ft[_.index])):_.index;let We=null;if(!E&&S&&(We=function am(h,f,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,f,C,_.index)),null!==We)(We.__ngLastListenerFn__||We).__ngNextListenerFn__=w,We.__ngLastListenerFn__=w,re=!1;else{w=vw(_,f,L,w,!1);const ft=m.listen(Fe,C,w);J.push(w,ft),R&&R.push(C,ye,Ke,Ke+1)}}else w=vw(_,f,L,w,!1);const me=_.outputs;let xe;if(re&&null!==me&&(xe=me[C])){const Re=xe.length;if(Re)for(let Fe=0;Fe0;)f=f[15],h--;return f}(h,ce.lFrame.contextLView))[8]}(h)}function xw(h,f){let m=null;const _=function hT(h){const f=h.attrs;if(null!=f){const m=f.indexOf(5);if(0==(1&m))return f[m+1]}return null}(h);for(let C=0;C=0}function pm(h,f,m){return Jn(h,f,m,!1),pm}function fm(h,f){return Jn(h,f,null,!0),fm}function Jn(h,f,m,_){const C=be(),w=rt(),v=Ln(2);w.firstUpdatePass&&function jw(h,f,m,_){const C=h.data;if(null===C[m+1]){const w=C[Hi()],v=function Fw(h,f){return f>=h.expandoStartIndex}(h,m);(function Gw(h,f){return 0!=(h.flags&(f?16:32))})(w,_)&&null===f&&!v&&(f=!1),f=function ZT(h,f,m,_){const C=Fd(h);let w=_?f.residualClasses:f.residualStyles;if(null===C)0===(_?f.classBindings:f.styleBindings)&&(m=$c(m=gm(null,h,f,m,_),f.attrs,_),w=null);else{const v=f.directiveStylingLast;if(-1===v||h[v]!==C)if(m=gm(C,h,f,m,_),null===w){let S=function Wc(h,f,m){const _=m?f.classBindings:f.styleBindings;if(0!==Ur(_))return h[Wn(_)]}(h,f,_);void 0!==S&&Array.isArray(S)&&(S=gm(null,h,f,S[1],_),S=$c(S,f.attrs,_),function XT(h,f,m,_){h[Wn(m?f.classBindings:f.styleBindings)]=_}(h,f,_,S))}else w=function eE(h,f,m){let _;const C=f.directiveEnd;for(let w=1+f.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Wn(h[E+1]);h[_+1]=Vu(J,E),0!==J&&(h[J+1]=Ou(h[J+1],_)),h[E+1]=function By(h,f){return 131071&h|f<<17}(h[E+1],_)}else h[_+1]=Vu(E,0),0!==E&&(h[E+1]=Ou(h[E+1],_)),E=_;else h[_+1]=Vu(S,0),0===E?E=_:h[S+1]=Ou(h[S+1],_),S=_;P&&(h[_+1]=Bu(h[_+1])),Rw(h,R,_,!0),Rw(h,R,_,!1),function $T(h,f,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof f&&fo(w,f)>=0&&(m[_+1]=Lu(m[_+1]))}(f,R,h,_,w),v=Vu(E,S),w?f.classBindings=v:f.styleBindings=v}(C,w,f,m,v,_)}}(w,h,v,_),f!==Ae&&Ri(C,v,f)&&function zw(h,f,m,_,C,w,v,E){if(!(3&f.type))return;const S=h.data,P=S[E+1];fh(function Cg(h){return 1==(1&h)}(P)?Uw(S,f,m,C,Ur(P),v):void 0)||(fh(w)||function Rc(h){return 2==(2&h)}(P)&&(w=Uw(S,null,m,C,E,v)),function Mu(h,f,m,_,C){if(f)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:En.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=En.Important),h.setStyle(m,_,C,w))}}(_,v,Rr(Hi(),m),C,w))}(w,w.data[Hi()],C,C[11],h,C[v+1]=function iE(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=Q(Fr(h)))),h}(f,m),_,v)}function gm(h,f,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let J=m[C+1];J===Ae&&(J=L?ze:void 0);let re=L?po(J,_):R===_?J:void 0;if(P&&!fh(re)&&(re=po(S,_)),fh(re)&&(E=re,v))return E;const me=h[C+1];C=v?Wn(me):Ur(me)}if(null!==f){let S=w?f.residualClasses:f.residualStyles;null!=S&&(E=po(S,_))}return E}function fh(h){return void 0!==h}function qw(h,f=""){const m=be(),_=rt(),C=h+22,w=_.firstCreatePass?$n(_,C,1,f,null):_.data[C],v=m[C]=function Zf(h,f){return h.createText(f)}(m[11],f);Ec(_,m,v,w),Fi(w,!1)}function _m(h){return gh("",h,""),_m}function gh(h,f,m){const _=be(),C=Vo(_,h,f,m);return C!==Ae&&Wr(_,Hi(),C),gh}function bm(h,f,m,_,C,w,v){const E=be(),S=Bo(E,h,f,m,_,C,w,v);return S!==Ae&&Wr(E,Hi(),S),bm}function Ch(h,f,m){const _=be();return Ri(_,pa(),f)&&Qi(rt(),Nt(),_,h,f,_[11],m,!0),Ch}function yh(h,f,m){const _=be();if(Ri(_,pa(),f)){const w=rt(),v=Nt();Qi(w,v,_,h,f,Ng(Fd(w.data),v,_),m,!0)}return yh}const Va=void 0;var nv=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["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"]],Va,[["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"]],Va,[["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}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mm(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let Lo={};function Sn(h){const f=function Pm(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=Hm(f);if(m)return m;const _=f.split("-")[0];if(m=Hm(_),m)return m;if("en"===_)return nv;throw new ie(701,!1)}function Dm(h){return Sn(h)[qe.PluralCase]}function Hm(h){return h in Lo||(Lo[h]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[h]),Lo[h]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const vr="en-US";let ol=vr;function qm(h,f,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(vo(h)||!h.multi){const re=new ga(S,C,Ls),me=$m(E,f,C?R:R+J,L);-1===me?(Xl(ba(P,v),w,E),Wm(w,h,f.length),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=$m(E,f,R+J,L),me=$m(E,f,R,R+J),xe=re>=0&&m[re],Re=me>=0&&m[me];if(C&&!Re||!C&&!xe){Xl(ba(P,v),w,E);const Fe=function HE(h,f,m,_,C){const w=new ga(h,m,Ls);return w.multi=[],w.index=f,w.componentProviders=0,Hv(w,C,_&&!m),w}(C?DE:ME,m.length,C,_,S);!C&&Re&&(m[me].providerFactory=Fe),Wm(w,h,f.length,0),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Fe),v.push(Fe)}else Wm(w,h,re>-1?re:me,Hv(m[C?me:re],S,!C&&_));!C&&_&&Re&&m[me].componentProviders++}}}function Wm(h,f,m,_){const C=vo(f),w=function Tx(h){return!!h.useClass}(f);if(C||w){const S=(w?te(f.useClass):f).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&f.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Hv(h,f,m){return m&&h.componentProviders++,h.multi.push(f)-1}function $m(h,f,m,_){for(let C=m;C<_;C++)if(f[C]===h)return C;return-1}function ME(h,f,m,_){return Sh(this.multi,[])}function DE(h,f,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=bs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),Sh(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Eh(h,f,m){const _=rt();if(_.firstCreatePass){const C=Di(h);qm(m,_.data,_.blueprint,C,!0),qm(f,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,f)}}class gl{}class Rv{}function PE(h,f){return new Iv(h,f??null)}class Iv extends gl{constructor(f,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ih(this);const _=Ui(f);this._bootstrapComponents=Yi(_.bootstrap),this._r3Injector=Os(f,m,[{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],Q(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Ym extends Rv{constructor(f){super(),this.moduleType=f}create(f){return new Iv(this.moduleType,f)}}class RE extends gl{constructor(f,m,_){super(),this.componentFactoryResolver=new ih(this),this.instance=null;const C=new FC([...f,{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],m||gu(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function ad(h,f,m=null){return new RE(h,f,m).injector}function Km(h,f,m,_){return e_(be(),ji(),h,f,m,_)}function e_(h,f,m,_,C,w){const v=f+m;return Ri(h,v,C)?function Qn(h,f,m){return h[f]=m}(h,v+1,w?_.call(w,C):_(C)):function bl(h,f){const m=h[f];return m===Ae?void 0:m}(h,v+1)}function Kv(h,f){const m=rt();let _;const C=h+22;m.firstCreatePass?(_=function FE(h,f){if(f)for(let m=f.length-1;m>=0;m--){const _=f[m];if(h===_.name)return _}}(f,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=lr(_.type)),v=Ti(Ls);try{const E=Wd(!1),S=w();return Wd(E),function lh(h,f,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),f[m]=_}(m,be(),C,S),S}finally{Ti(v)}}function Zv(h,f,m){const _=h+22,C=be(),w=ua(C,_);return function od(h,f){return h[1].data[f].pure}(C,_)?e_(C,ji(),f,w.transform,m,w):w.transform(m)}function t_(h){return f=>{setTimeout(h,void 0,f)}}const xr=class GE extends T.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,m,_){let C=f,w=m||(()=>null),v=_;if(f&&"object"==typeof f){const S=f;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=t_(w),C&&(C=t_(C)),v&&(v=t_(v)));const E=super.subscribe({next:C,error:w,complete:v});return f instanceof g.w0&&f.add(E),E}};function qE(){return this._results[Ia()]()}class Dh{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 m=Ia(),_=Dh.prototype;_[m]||(_[m]=qE)}get changes(){return this._changes||(this._changes=new xr)}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,m){return this._results.reduce(f,m)}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,m){const _=this;_.dirty=!1;const C=$i(f);(this._changesDetected=!function tc(h,f,m){if(h.length!==f.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=YE,h})();const WE=sd,$E=class extends WE{constructor(f,m,_){super(),this._declarationLView=f,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(f,m){const _=this._declarationTContainer.tViews,C=Vc(this._declarationLView,_,f,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Yu(_,C,f),new zc(C)}};function YE(){return Hh($t(),be())}function Hh(h,f){return 4&h.type?new $E(f,h,Ps(h,f)):null}let Ph=(()=>{class h{}return h.__NG_ELEMENT_ID__=QE,h})();function QE(){return n_($t(),be())}const JE=Ph,Xv=class extends JE{constructor(f,m,_){super(),this._lContainer=f,this._hostTNode=m,this._hostLView=_}get element(){return Ps(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){const f=ms(this._hostTNode,this._hostLView);if(Kp(f)){const m=_a(f,this._hostLView),_=no(f);return new oo(m[1].data[_+8],m)}return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const m=i_(this._lContainer);return null!==m&&m[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=f.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(f,m,_,C,w){const v=f&&!function Cs(h){return"function"==typeof h}(f);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?f:new Gs(At(f)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const J=(v?P:this.parentInjector).get(Ao,null);J&&(w=J)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(f,m){const _=f._lView,C=_[1];if(function D(h){return tn(h[3])}(_)){const R=this.indexOf(f);if(-1!==R)this.detach(R);else{const L=_[3],J=new Xv(L,L[6],L[3]);J.detach(J.indexOf(f))}}const w=this._adjustIndex(m),v=this._lContainer;!function dy(h,f,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=f),_0)_.push(v[E/2]);else{const P=w[E+1],R=f[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=Al,this.reject=Al,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:E,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)(Jt(Mn,8))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const _A=new Ht("AppId",{providedIn:"root",factory:function bA(){return`${Xh()}${Xh()}${Xh()}`}});function Xh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dd=new Ht("Platform Initializer"),ud=new Ht("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),T_=new Ht("appBootstrapListener"),yA=new Ht("AnimationModuleType");let sS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const ep=new Ht("LocaleId",{providedIn:"root",factory:()=>eu(ep,Ye.Optional|Ye.SkipSelf)||function lS(){return typeof $localize<"u"&&$localize.locale||vr}()}),cS=new Ht("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class wA{constructor(f,m){this.ngModuleFactory=f,this.componentFactories=m}}let S_=(()=>{class h{compileModuleSync(m){return new Ym(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Yi(Ui(m).declarations).reduce((v,E)=>{const S=At(E);return S&&v.push(new Gs(S)),v},[]);return new wA(_,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=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Tl=(()=>Promise.resolve(0))();function El(h){typeof Zone>"u"?Tl.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class zi{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function M_(){let h=le.requestAnimationFrame,f=le.cancelAnimationFrame;if(typeof Zone<"u"&&h&&f){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function P_(h){const f=()=>{!function H_(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(le,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,pd(h),h.isCheckStableRunning=!0,qo(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),pd(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return fd(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&f(),xA(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return fd(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&f(),xA(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,pd(h),qo(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(zi.isInAngularZone())throw new ie(909,!1)}run(f,m,_){return this._inner.run(f,m,_)}runTask(f,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,f,D_,Al,Al);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(f,m,_){return this._inner.runGuarded(f,m,_)}runOutsideAngular(f){return this._outer.run(f)}}const D_={};function qo(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 pd(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function fd(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function xA(h){h._nesting--,qo(h)}class uS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(f,m,_){return f.apply(m,_)}runGuarded(f,m,_){return f.apply(m,_)}runOutsideAngular(f){return f()}runTask(f,m,_,C){return f.apply(m,_)}}const R_=new Ht(""),TA=new Ht("");let $o,gd=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$o||(function md(h){$o=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zi.assertNotInAngularZone(),El(()=>{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())El(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Wo),Jt(TA))},h.\u0275prov=xt({token:h,factory:h.\u0275fac}),h})(),Wo=(()=>{class h{constructor(){this._applications=new Map}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 $o?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Jr=null;const _d=new Ht("AllowMultipleToken"),Yo=new Ht("PlatformDestroyListeners");class I_{constructor(f,m){this.name=f,this.token=m}}function PA(h,f,m=[]){const _=`Platform: ${f}`,C=new Ht(_);return(w=[])=>{let v=Sl();if(!v||v.injector.get(_d,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function DA(h){if(Jr&&!Jr.get(_d,!1))throw new ie(400,!1);Jr=h;const f=h.get(B_);(function k_(h){const f=h.get(dd,null);f&&f.forEach(m=>m())})(h)}(function V_(h=[],f){return Ma.create({name:f,providers:[{provide:If,useValue:"platform"},{provide:Yo,useValue:new Set([()=>Jr=null])},...h]})}(E,_))}return function ip(h){const f=Sl();if(!f)throw new ie(401,!1);return f}()}}function Sl(){return Jr?.get(B_)??null}let B_=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function kA(h,f){let m;return m="noop"===h?new uS:("zone.js"===h?void 0:h)||new zi(f),m}(_?.ngZone,function IA(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:zi,useValue:C}];return C.run(()=>{const v=Ma.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(vc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Dl(this._modules,E),P.unsubscribe()})}),function Qo(h,f,m){try{const _=m();return im(_)?_.catch(C=>{throw f.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw f.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(xl);return P.runInitializers(),P.donePromise.then(()=>(function vh(h){Dt(h,"Expected localeId to be defined"),"string"==typeof h&&(ol=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(ep,vr)||vr),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=Jo({},_);return function EA(h,f,m){const _=new Ym(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Ml);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(Yo,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ma))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Jo(h,f){return Array.isArray(f)?f.reduce(Jo,h):{...h,...f}}let Ml=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{zi.assertNotInAngularZone(),El(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{zi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Of;if(!this._injector.get(xl).done)throw!C&&zo(m),new ie(405,false);let v;v=C?m:this._injector.get(yc).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function MA(h){return h.isBoundToModule}(v)?void 0:this._injector.get(gl),P=v.create(Ma.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(R_,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Dl(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);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;Dl(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(T_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Dl(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Ao),Jt(vc))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Dl(h,f){const m=h.indexOf(f);m>-1&&h.splice(m,1)}let O_=!0;function fS(){O_=!1}let F_=(()=>{class h{}return h.__NG_ELEMENT_ID__=VA,h})();function VA(h){return function j_(h,f,m){if(Bn(h)&&!m){const _=Li(h.index,f);return new zc(_,_)}return 47&h.type?new zc(f[16],f):null}($t(),be(),16==(16&h))}class sp{constructor(){}supports(f){return Ws(f)}create(f){return new q_(f)}}const jA=(h,f)=>f;class q_{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||jA}forEachItem(f){let m;for(m=this._itHead;null!==m;m=m._next)f(m)}forEachOperation(f){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex<$_(_,C,w)?m:_,E=$_(v,C,w),S=v.currentIndex;if(v===_)C--,_=_._nextRemoved;else if(m=m._next,null==v.previousIndex)C++;else{w||(w=[]);const P=E-C,R=S-C;if(P!=R){for(let J=0;J{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),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,m,_,C){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._reinsertAfter(f,w,C)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._moveAfter(f,w,C)):f=this._addAfter(new NA(m,_),w,C),f}_verifyReinsertion(f,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?f=this._reinsertAfter(w,f._prev,C):f.currentIndex!=C&&(f.currentIndex=C,this._addToMoves(f,C)),f}_truncate(f){for(;null!==f;){const m=f._next;this._addToRemovals(this._unlink(f)),f=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(f,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const C=f._prevRemoved,w=f._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(f,m,_),this._addToMoves(f,_),f}_moveAfter(f,m,_){return this._unlink(f),this._insertAfter(f,m,_),this._addToMoves(f,_),f}_addAfter(f,m,_){return this._insertAfter(f,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,m,_){const C=null===m?this._itHead:m._next;return f._next=C,f._prev=m,null===C?this._itTail=f:C._prev=f,null===m?this._itHead=f:m._next=f,null===this._linkedRecords&&(this._linkedRecords=new W_),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 m=f._prev,_=f._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,f}_addToMoves(f,m){return f.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W_),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,m){return f.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class NA{constructor(f,m){this.item=f,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 lp{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,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const m=f._prevDup,_=f._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class W_{constructor(){this.map=new Map}put(f){const m=f.trackById;let _=this.map.get(m);_||(_=new lp,this.map.set(m,_)),_.add(f)}get(f,m){const C=this.map.get(f);return C?C.get(f,m):null}remove(f){const m=f.trackById;return this.map.get(m).remove(f)&&this.map.delete(m),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $_(h,f,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(f,m){if(f){const _=f._prev;return m._next=f,m._prev=_,f._prev=m,_&&(_._next=m),f===this._mapHead&&(this._mapHead=m),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(f,m){if(this._records.has(f)){const C=this._records.get(f);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 wS(f);return this._records.set(f,_),_.currentValue=m,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,m){Object.is(m,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=m,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,m){f instanceof Map?f.forEach(m):Object.keys(f).forEach(_=>m(f[_],_))}}class wS{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 yd(){return new dp([new sp])}let dp=(()=>{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,_||yd()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:yd}),h})();function up(){return new Er([new cp])}let Er=(()=>{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,_||up()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:up}),h})();const WA=PA(null,"core",[]);let $A=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ml))},h.\u0275mod=Pr({type:h}),h.\u0275inj=ai({}),h})();function hp(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{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 F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){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},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),g=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(g.substr(0,g.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||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(x){const T={};let g,V,O,I,j,W,Q;if(null===x)return T;g=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==g)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,g=0,O=F.length,I=this.blocks;g>2]|=F[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>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=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,X,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(X=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(X=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&V^~g&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((X=F&N)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^X))<<0,V=N+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&g)+K[W+2]+j[W+2])<<0,N=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,g=F+(U=g+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[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[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[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let g of x)T+=String.fromCharCode(g);return T}toHashString(x){const T=new Uint8Array(x);let g="";for(let V of T)g+=String.fromCharCode(V);return g}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,g,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{g?this.setStorage(g):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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,g=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,g).catch(I=>{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=[],g=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return g||T.push("https for all urls required. Also for urls received by discovery."),V||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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=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)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=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)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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 g=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(g-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,g)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),g(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),g(V)}):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((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):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,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,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((x,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(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},g)}fetchTokenUsingGrant(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:g}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,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")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}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 O of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,g,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}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(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const g=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=g.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((g,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,g=x.width||500,V=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const g=x.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.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",g,"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="",g="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=g||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}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 g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(g)}}storeAccessTokenResponse(x,T,g,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}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){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const g=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(g),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.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 g=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 V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?g=g.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(x,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 V=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{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(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[V,O]=this.parseState(g);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=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&&!x.disableOAuth2StateCheck&&!g||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),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&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,g="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),g=x.substr(V+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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,g=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!g&&G.nonce!==$){const de="Wrong nonce: "+G.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&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,X=this.getClockSkewInMsec();if(te-X>=U||ne+X<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Be={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Be:this.checkAtHash(ie).then(Oe=>{if(this.requestAccessToken&&!Oe){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}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 g=!1;"boolean"==typeof x&&(g=x,x={});const V=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||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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 g=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(g);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>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 g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{x[g]&&T.set(g,JSON.stringify(x[g]))}),T}revokeTokenAndLogout(x={},T=!1){let g=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(g,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(g,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,g){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=g}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 g=x.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)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,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 F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function g(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(N,{Z:()=>g})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=4957)}]); \ No newline at end of file diff --git a/dist/apps/linker/main.f81b393c45831e9e.js b/dist/apps/linker/main.f81b393c45831e9e.js new file mode 100644 index 000000000..e4ba2a34f --- /dev/null +++ b/dist/apps/linker/main.f81b393c45831e9e.js @@ -0,0 +1 @@ +(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{4586:(F,N,x)=>{"use strict";var E=x(6895),g=x(4650);class V extends E.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,E.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,E.Mx)(document.cookie,r)}}let W,I=null;const G=new g.OlP("TRANSITION_ID"),U=[{provide:g.ip1,useFactory:function $(s,r,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,E.q)(),o=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const J=new g.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),me=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}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,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function Be(s){(0,E.q)().remove(s)}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/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new Dt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case g.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ie),g.LFG(me),g.LFG(g.AFp))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Ie{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Oe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(vt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(vt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,o){if(o){e=o+":"+e;const l=Oe[o];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const o=Oe[t];o?r.removeAttributeNS(o,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,o){o&(g.JOm.DashCase|g.JOm.Important)?r.style.setProperty(e,t,o&g.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&g.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function vt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class Dt extends Ie{constructor(r,e,t,o){super(r),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Se(s){return"_ngcontent-%COMP%".replace(we,s)}(o+"-"+t.id),this.hostAttr=function Ee(s){return"_nghost-%COMP%".replace(we,s)}(o+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Ie{constructor(r,e,t,o){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Rn=["alt","control","meta","shift"],xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},yn={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"},ai={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Mr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,o){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,E.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=s._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function kl(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&yn.hasOwnProperty(r)&&(r=yn[r]))}return xt[r]||r}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Rn.forEach(l=>{l!=o&&(0,ai[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{s.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ye=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:E.bD},{provide:g.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:E.K0,useFactory:function ta(){return(0,g.RDi)(document),document},deps:[]}]),li=new g.OlP(""),ia=[{provide:g.rWj,useClass:class te{addToWindow(r){g.dqk.getAngularTestability=(t,o=!0)=>{const l=r.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},g.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const o=g.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,E.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:g.lri,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]}],xi=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function kn(){return new g.qLn},deps:[]},{provide:J,useClass:Ai,multi:!0,deps:[E.K0,g.R0b,g.Lbi]},{provide:J,useClass:Mr,multi:!0,deps:[E.K0]},{provide:ue,useClass:ue,deps:[ie,me,g.AFp]},{provide:g.FYo,useExisting:ue},{provide:he,useExisting:me},{provide:me,useClass:me,deps:[E.K0]},{provide:ie,useClass:ie,deps:[J,g.R0b]},{provide:E.JF,useClass:ne,deps:[]},[]];let na=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},U]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(li,12))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[...xi,...ia],imports:[E.ez,g.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,g.LFG)(E.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let mi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):g.LFG(it),t},providedIn:"root"}),s})(),it=(()=>{class s extends mi{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.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ke(s){return new it(s.get(E.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),s})();var gt=x(2076),Pe=x(9646),Me=x(7579);class Ot extends Me.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Ht=x(6805),or=x(9841),Ii=x(7272),Qe=x(9751),Vn=x(8421);function Zi(s){return new Qe.y(r=>{(0,Vn.Xf)(s()).subscribe(r)})}var aa=x(9635),_i=x(2843),Lt=x(515),Yt=x(727),ci=x(4482),Ft=x(5403);function vn(){return(0,ci.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Ft.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const o=s._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class rs extends Qe.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Yt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ft.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Yt.w0.EMPTY)}return r}refCount(){return vn()(this)}}var je=x(4004),ki=x(3900),ii=x(5698),oa=x(3269);function Vi(...s){const r=(0,oa.yG)(s);return(0,ci.e)((e,t)=>{(r?(0,Ii.z)(s,e,r):(0,Ii.z)(s,e)).subscribe(t)})}var qt=x(9300),di=x(5577),Si=x(590),It=x(4351),Wt=x(8505),Et=x(262);function Xi(s,r,e,t,o){return(l,c)=>{let n=e,i=r,a=0;l.subscribe((0,Ft.x)(c,d=>{const u=a++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function sa(s,r){return(0,ci.e)(Xi(s,r,arguments.length>=2,!0))}function Bn(s){return s<=0?()=>Lt.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,Ft.x)(e,o=>{t.push(o),s{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var sr=x(8068),Mi=x(6590),Bl=x(4671);function $p(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,qt.h)((o,l)=>s(o,l,t)):Bl.y,Bn(1),e?(0,Mi.d)(r):(0,sr.T)(()=>new Ht.K))}var jd=x(9718);function la(s){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var as=x(8189);const ut="primary";class an{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ca(s){return new an(s)}function Yp(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===o)}return s===r}function zd(s){return Array.prototype.concat.apply([],s)}function Ud(s){return s.length>0?s[s.length-1]:null}function bi(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function On(s){return(0,g.CqO)(s)?s:(0,g.QGY)(s)?(0,gt.D)(Promise.resolve(s)):(0,Pe.of)(s)}const Jp={exact:function Ll(s,r,e){if(!cr(s.segments,r.segments)||!Xa(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Ll(s.children[t],r.children[t],e))return!1;return!0},subset:ss},Gd={exact:function lr(s,r){return An(s,r)},subset:function Za(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Nd(s[e],r[e]))},ignored:()=>!0};function qd(s,r,e){return Jp[e.paths](s.root,r.root,e.matrixParams)&&Gd[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function ss(s,r,e){return Fl(s,r,r.segments,e)}function Fl(s,r,e,t){if(s.segments.length>e.length){const o=s.segments.slice(0,e.length);return!(!cr(o,e)||r.hasChildren()||!Xa(o,e,t))}if(s.segments.length===e.length){if(!cr(s.segments,e)||!Xa(s.segments,e,t))return!1;for(const o in r.children)if(!s.children[o]||!ss(s.children[o],r.children[o],t))return!1;return!0}{const o=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(cr(s.segments,o)&&Xa(s.segments,o,t)&&s.children[ut])&&Fl(s.children[ut],r,l,t)}}function Xa(s,r,e){return r.every((t,o)=>Gd[e](s[o].parameters,t.parameters))}class on{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return cs.serialize(this)}}class lt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,bi(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return to(this)}}class da{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ca(this.parameters)),this._parameterMap}toString(){return io(this)}}function cr(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let eo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return new ls},providedIn:"root"}),s})();class ls{parse(r){const e=new ce(r);return new on(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${ds(r.root,!0)}`,t=function Oi(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(o=>`${us(e)}=${us(o)}`).join("&"):`${us(e)}=${us(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Nb(s){return encodeURI(s)}(r.fragment)}`:""}`}}const cs=new ls;function to(s){return s.segments.map(r=>io(r)).join("/")}function ds(s,r){if(!s.hasChildren())return to(s);if(r){const e=s.children[ut]?ds(s.children[ut],!1):"",t=[];return bi(s.children,(o,l)=>{l!==ut&&t.push(`${l}:${ds(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Bi(s,r){let e=[];return bi(s.children,(t,o)=>{o===ut&&(e=e.concat(r(t,o)))}),bi(s.children,(t,o)=>{o!==ut&&(e=e.concat(r(t,o)))}),e}(s,(t,o)=>o===ut?[ds(s.children[ut],!1)]:[`${o}:${ds(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[ut]?`${to(s)}/${e[0]}`:`${to(s)}/(${e.join("//")})`}}function Qt(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function us(s){return Qt(s).replace(/%3B/gi,";")}function Rr(s){return Qt(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(s){return decodeURIComponent(s)}function hs(s){return wi(s.replace(/\+/g,"%20"))}function io(s){return`${Rr(s.path)}${function ua(s){return Object.keys(s).map(r=>`;${Rr(r)}=${Rr(s[r])}`).join("")}(s.parameters)}`}const M=/^[^\/()?;=#]+/;function k(s){const r=s.match(M);return r?r[0]:""}const D=/^[^=?&#]+/,ee=/^[^&#]+/;class ce{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ut]=new lt(r,e)),t}parseSegment(){const r=k(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(r),new da(wi(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=k(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=k(this.remaining);o&&(t=o,this.capture(t))}r[wi(e)]=wi(t)}parseQueryParam(r){const e=function B(s){const r=s.match(D);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function pe(s){const r=s.match(ee);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=hs(e),l=hs(t);if(r.hasOwnProperty(o)){let c=r[o];Array.isArray(c)||(c=[c],r[o]=c),c.push(l)}else r[o]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=k(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new g.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=ut);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[ut]:new lt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new g.vHH(4011,!1)}}function Ue(s){return s.segments.length>0?new lt([],{[ut]:s}):s}function Mt(s){const r={};for(const t of Object.keys(s.children)){const l=Mt(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function kt(s){if(1===s.numberOfChildren&&s.children[ut]){const r=s.children[ut];return new lt(s.segments.concat(r.segments),r.children)}return s}(new lt(s.segments,r))}function Ct(s){return s instanceof on}function be(s,r,e,t,o){if(0===e.length)return Gi(r.root,r.root,r.root,t,o);const l=function dr(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new ha(!0,0,s);let r=0,e=!1;const t=s.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return bi(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ha(e,r,t)}(e);return l.toRoot()?Gi(r.root,r.root,new lt([],{}),t,o):function c(i){const a=function $d(s,r,e,t){if(s.isAbsolute)return new Li(r.root,!0,0);if(-1===t)return new Li(e,e===r.root,0);return function zb(s,r,e){let t=s,o=r,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new g.vHH(4005,!1);o=t.segments.length}return new Li(t,!1,o-l)}(e,t+(nt(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=a.processChildren?Ir(a.segmentGroup,a.index,l.commands):Kp(a.segmentGroup,a.index,l.commands);return Gi(r.root,a.segmentGroup,d,t,o)}(s.snapshot?._lastPathIndex)}function nt(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function xn(s){return"object"==typeof s&&null!=s&&s.outlets}function Gi(s,r,e,t,o){let c,l={};t&&bi(t,(i,a)=>{l[a]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:$t(s,r,e);const n=Ue(Mt(c));return new on(n,l,o)}function $t(s,r,e){const t={};return bi(s.children,(o,l)=>{t[l]=o===r?e:$t(o,r,e)}),new lt(s.segments,t)}class ha{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&nt(t[0]))throw new g.vHH(4003,!1);const o=t.find(xn);if(o&&o!==Ud(t))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Li{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Kp(s,r,e){if(s||(s=new lt([],{})),0===s.segments.length&&s.hasChildren())return Ir(s,r,e);const t=function Fi(s,r,e){let t=0,o=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=s.segments[o],n=e[t];if(xn(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ln(i,a,c))return l;t+=2}else{if(!Ln(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(s,r,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=Kp(s.children[c],r,l))}),bi(s.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new lt(s.segments,o)}}function Tn(s,r,e){const t=s.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Tn(new lt([],{}),0,e))}),r}function pa(s){const r={};return bi(s,(e,t)=>r[t]=`${e}`),r}function Ln(s,r,e){return s==e.path&&An(r,e.parameters)}class ur{constructor(r,e){this.id=r,this.url=e}}class Nl extends ur{constructor(r,e,t="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kr extends ur{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zl extends ur{constructor(r,e,t,o){super(r,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ul extends ur{constructor(r,e,t,o){super(r,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yd extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xp extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qd extends ur{constructor(r,e,t,o,l){super(r,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gb extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ef extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jd{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class af{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kd{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sf{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Di{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Fn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Fn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=jt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return jt(r,this._root).map(e=>e.value)}}function Fn(s,r){if(s===r.value)return r;for(const e of r.children){const t=Fn(s,e);if(t)return t}return null}function jt(s,r){if(s===r.value)return[r];for(const e of r.children){const t=jt(s,e);if(t.length)return t.unshift(r),t}return[]}class jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function no(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class Zd extends Di{constructor(r,e){super(r),this.snapshot=e,Wl(this,r)}toString(){return this.snapshot.toString()}}function lf(s,r){const e=function Wb(s,r){const c=new fa([],{},{},"",{},ut,r,null,s.root,-1,{});return new ql("",new jn(c,[]))}(s,r),t=new Ot([new da("",{})]),o=new Ot({}),l=new Ot({}),c=new Ot({}),n=new Ot(""),i=new Vr(t,o,c,n,l,ut,r,e.root);return i.snapshot=e.root,new Zd(new jn(i,[]),e)}class Vr{constructor(r,e,t,o,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,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,je.U)(r=>ca(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,je.U)(r=>ca(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ps(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function Gl(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class fa{constructor(r,e,t,o,l,c,n,i,a,d,u,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._correctedLastPathIndex=p??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=ca(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ql extends Di{constructor(r,e){super(e),this.url=r,Wl(this,e)}toString(){return cf(this._root)}}function Wl(s,r){r.value._routerState=s,r.children.forEach(e=>Wl(s,e))}function cf(s){const r=s.children.length>0?` { ${s.children.map(cf).join(", ")} } `:"";return`${s.value}${r}`}function Nn(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,An(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),An(r.params,e.params)||s.params.next(e.params),function Qp(s,r){if(s.length!==r.length)return!1;for(let e=0;eAn(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||ga(s.parent,r.parent))}function fs(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const o=function gs(s,r,e){return r.children.map(t=>{for(const o of e.children)if(s.shouldReuseRoute(t.value,o.value.snapshot))return fs(s,t,o);return fs(s,t)})}(s,r,e);return new jn(t,o)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>fs(s,n)),c}}const t=function Xd(s){return new Vr(new Ot(s.url),new Ot(s.params),new Ot(s.queryParams),new Ot(s.fragment),new Ot(s.data),s.outlet,s.component,s)}(r.value),o=r.children.map(l=>fs(s,l));return new jn(t,o)}}const eu="ngNavigationCancelingError";function df(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Ct(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=Yb(!1,0,r);return o.url=e,o.navigationBehaviorOptions=t,o}function Yb(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[eu]=!0,t.cancellationCode=r,e&&(t.url=e),t}function Qb(s){return ms(s)&&Ct(s.url)}function ms(s){return s&&s[eu]}class uf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ro,this.attachRef=null}}let ro=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new uf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const ma=!1;let $l=(()=>{class s{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,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=o||ut,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,ma);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,ma);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,ma);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 g.vHH(4013,ma);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new hf(e,n,o.injector);if(t&&function ao(s){return!!s.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(c);this.activated=o.createComponent(a,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(ro),g.Y36(g.s_b),g.$8M("name"),g.Y36(g.sBO),g.Y36(g.lqb))},s.\u0275dir=g.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class hf{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Vr?this.route:r===ro?this.childContexts:this.parent.get(r,e)}}let pf=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[$l],encapsulation:2}),s})();function _a(s,r){return s.providers&&!s._injector&&(s._injector=(0,g.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function ba(s){const r=s.children&&s.children.map(ba),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ut&&(e.component=pf),e}function qi(s){return s.outlet||ut}function Ql(s,r){const e=s.filter(t=>qi(t)===r);return e.push(...s.filter(t=>qi(t)!==r)),e}function _s(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Xb{constructor(r,e,t,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const o=no(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),bi(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=no(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=no(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const o=no(e);r.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new Kd(l.value.snapshot))}),r.children.length&&this.forwardEvent(new rf(r.value.snapshot))}activateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(Nn(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nn(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=_s(o.snapshot),i=n?.get(g._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class iu{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class bs{constructor(r,e){this.component=r,this.route=e}}function gf(s,r,e){const t=s._root;return Br(t,r?r._root:null,e,[t.value])}function Kl(s,r,e){return(_s(r)??e).get(s)}function Br(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=no(r);return s.children.forEach(c=>{(function Cs(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function eC(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!cr(s.url,r.url);case"pathParamsOrQueryParamsChange":return!cr(s.url,r.url)||!An(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ga(s,r)||!An(s.queryParams,r.queryParams);default:return!ga(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new iu(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Br(s,r,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new bs(n.outlet.component,c))}else c&&oo(r,n,o),o.canActivateChecks.push(new iu(t)),Br(s,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),bi(l,(c,n)=>oo(c,e.getContext(n),o)),o}function oo(s,r,e){const t=no(s),o=s.value;bi(t,(l,c)=>{oo(l,o.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new bs(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function so(s){return"function"==typeof s}function Or(s){return s instanceof Ht.K||"EmptyError"===s?.name}const hr=Symbol("INITIAL_VALUE");function Ca(){return(0,ki.w)(s=>(0,or.a)(s.map(r=>r.pipe((0,ii.q)(1),Vi(hr)))).pipe((0,je.U)(r=>{for(const e of r)if(!0!==e){if(e===hr)return hr;if(!1===e||e instanceof on)return e}return!0}),(0,qt.h)(r=>r!==hr),(0,ii.q)(1)))}function rC(s){return(0,aa.z)((0,Wt.b)(r=>{if(Ct(r))throw df(0,r)}),(0,je.U)(r=>!0===r))}const yf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(s,r,e,t,o){const l=wf(s,r,e);return l.matched?function ux(s,r,e,t){const o=r.canMatch;if(!o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function bf(s){return s&&so(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),rC())}(t=_a(r,t),r,e).pipe((0,je.U)(c=>!0===c?l:{...yf})):(0,Pe.of)(l)}function wf(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...yf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Yp)(e,s,r);if(!o)return{...yf};const l={};bi(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function au(s,r,e,t,o="corrected"){if(e.length>0&&function ys(s,r,e){return e.some(t=>Zl(s,r,t)&&qi(t)!==ut)}(s,e,t)){const c=new lt(r,function ou(s,r,e,t){const o={};o[ut]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&qi(l)!==ut){const c=new lt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,o[qi(l)]=c}return o}(s,r,t,new lt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function hx(s,r,e){return e.some(t=>Zl(s,r,t))}(s,e,t)){const c=new lt(s.segments,function ui(s,r,e,t,o,l){const c={};for(const n of t)if(Zl(s,e,n)&&!o[qi(n)]){const i=new lt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[qi(n)]=i}return{...o,...c}}(s,r,e,t,s.children,o));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new lt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Zl(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Wi(s,r,e,t){return!!(qi(s)===t||t!==ut&&Zl(r,e,s))&&("**"===s.path||wf(r,s,e).matched)}function Un(s,r,e){return 0===r.length&&!s.children[e]}const ws=!1;class ya{constructor(r){this.segmentGroup=r||null}}class po{constructor(r){this.urlTree=r}}function fo(s){return(0,_i._)(new ya(s))}function vf(s){return(0,_i._)(new po(s))}class Af{constructor(r,e,t,o,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const r=au(this.urlTree.root,[],[],this.config).segmentGroup,e=new lt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ut).pipe((0,je.U)(l=>this.createUrlTree(Mt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(l=>{if(l instanceof po)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof ya?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ut).pipe((0,je.U)(o=>this.createUrlTree(Mt(o),r.queryParams,r.fragment))).pipe((0,Et.K)(o=>{throw o instanceof ya?this.noMatchError(o):o}))}noMatchError(r){return new g.vHH(4002,ws)}createUrlTree(r,e,t){const o=Ue(r);return new on(o,e,t)}expandSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,je.U)(l=>new lt([],l))):this.expandSegment(r,t,e,t.segments,o,!0)}expandChildren(r,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,gt.D)(o).pipe((0,It.b)(l=>{const c=t.children[l],n=Ql(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,je.U)(i=>({segment:i,outlet:l})))}),sa((l,c)=>(l[c.outlet]=c.segment,l),{}),$p())}expandSegment(r,e,t,o,l,c){return(0,gt.D)(t).pipe((0,It.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,o,l,c).pipe((0,Et.K)(a=>{if(a instanceof ya)return(0,Pe.of)(null);throw a}))),(0,Si.P)(n=>!!n),(0,Et.K)((n,i)=>{if(Or(n))return Un(e,o,l)?(0,Pe.of)(new lt([],{})):fo(e);throw n}))}expandSegmentAgainstRoute(r,e,t,o,l,c,n){return Wi(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c):fo(e):fo(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?vf(l):this.lineralizeSegments(t,l).pipe((0,di.z)(c=>{const n=new lt(c,{});return this.expandSegment(r,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:a,positionalParamSegments:d}=wf(e,o,l);if(!n)return fo(e);const u=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?vf(u):this.lineralizeSegments(o,u).pipe((0,di.z)(p=>this.expandSegment(r,e,t,p.concat(a),c,!1)))}matchSegmentAgainstRoute(r,e,t,o,l){return"**"===t.path?(r=_a(t,r),t.loadChildren?(t._loadedRoutes?(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,je.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new lt(o,{})))):(0,Pe.of)(new lt(o,{}))):ho(e,t,o,r).pipe((0,ki.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,o).pipe((0,di.z)(d=>{const u=d.injector??r,p=d.routes,{segmentGroup:b,slicedSegments:H}=au(e,n,i,p),z=new lt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,p,z).pipe((0,je.U)(mt=>new lt(n,mt)));if(0===p.length&&0===H.length)return(0,Pe.of)(new lt(n,{}));const ae=qi(t)===l;return this.expandSegment(u,z,p,H,ae?ut:l,!0).pipe((0,je.U)(ot=>new lt(n.concat(ot.segments),ot.children)))})):fo(e)))}getChildConfig(r,e,t){return e.children?(0,Pe.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,Pe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function dx(s,r,e,t){const o=r.canLoad;if(void 0===o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function tC(s){return s&&so(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),rC())}(r,e,t).pipe((0,di.z)(o=>o?this.configLoader.loadChildren(r,e).pipe((0,Wt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function px(s){return(0,_i._)(Yb(ws,3))}())):(0,Pe.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Pe.of)(t);if(o.numberOfChildren>1||!o.children[ut])return(0,_i._)(new g.vHH(4e3,ws));o=o.children[ut]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,o){const l=this.createSegmentGroup(r,e.root,t,o);return new on(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return bi(r,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(r,e,t,o){const l=this.createSegments(r,e.segments,t,o);let c={};return bi(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,o)}),new lt(l,c)}createSegments(r,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,o):this.findOrReturn(l,t))}findPosParam(r,e,t){const o=t[e.path.substring(1)];if(!o)throw new g.vHH(4001,ws);return o}findOrReturn(r,e){let t=0;for(const o of e){if(o.path===r.path)return e.splice(t),o;t++}return r}}class mo{}class oC{constructor(r,e,t,o,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=au(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ut).pipe((0,je.U)(e=>{if(null===e)return null;const t=new fa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jn(t,e),l=new ql(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=ps(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,o)}processChildren(r,e,t){return(0,gt.D)(Object.keys(t.children)).pipe((0,It.b)(o=>{const l=t.children[o],c=Ql(e,o);return this.processSegmentGroup(r,c,l,o)}),sa((o,l)=>o&&l?(o.push(...l),o):null),function Ol(s,r=!1){return(0,ci.e)((e,t)=>{let o=0;e.subscribe((0,Ft.x)(t,l=>{const c=s(l,o++);(c||r)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,Mi.d)(null),$p(),(0,je.U)(o=>{if(null===o)return null;const l=Tf(o);return function sC(s){s.sort((r,e)=>r.value.outlet===ut?-1:e.value.outlet===ut?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,o,l){return(0,gt.D)(e).pipe((0,It.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,o,l)),(0,Si.P)(c=>!!c),(0,Et.K)(c=>{if(Or(c))return Un(t,o,l)?(0,Pe.of)([]):(0,Pe.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,o,l){if(e.redirectTo||!Wi(e,t,o,l))return(0,Pe.of)(null);let c;if("**"===e.path){const n=o.length>0?Ud(o).parameters:{},i=vs(t)+o.length,a=new fa(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_o(e),qi(e),e.component??e._loadedComponent??null,e,Xl(t),i,ec(e),i);c=(0,Pe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else c=ho(t,e,o,r).pipe((0,je.U)(({matched:n,consumedSegments:i,remainingSegments:a,parameters:d})=>{if(!n)return null;const u=vs(t)+i.length;return{snapshot:new fa(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_o(e),qi(e),e.component??e._loadedComponent??null,e,Xl(t),u,ec(e),u),consumedSegments:i,remainingSegments:a}}));return c.pipe((0,ki.w)(n=>{if(null===n)return(0,Pe.of)(null);const{snapshot:i,consumedSegments:a,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,p=function lC(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=au(t,a,d,p.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,p,b).pipe((0,je.U)(ae=>null===ae?null:[new jn(i,ae)]));if(0===p.length&&0===H.length)return(0,Pe.of)([new jn(i,[])]);const z=qi(e)===l;return this.processSegment(u,p,b,H,z?ut:l).pipe((0,je.U)(ae=>null===ae?null:[new jn(i,ae)]))}))}}function cC(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Tf(s){const r=[],e=new Set;for(const t of s){if(!cC(t)){r.push(t);continue}const o=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):r.push(t)}for(const t of e){const o=Tf(t.children);r.push(new jn(t.value,o))}return r.filter(t=>!e.has(t))}function Xl(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function vs(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function _o(s){return s.data||{}}function ec(s){return s.resolve||{}}const su=Symbol("RouteTitle");function Sf(s){return"string"==typeof s.title||null===s.title}function Jt(s){return(0,ki.w)(r=>{const e=s(r);return e?(0,gt.D)(e).pipe((0,je.U)(()=>r)):(0,Pe.of)(r)})}let lu=(()=>{class s{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===ut);return t}getResolvedTitleForRoute(e){return e.data[su]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return(0,g.f3M)(cu)},providedIn:"root"}),s})(),cu=(()=>{class s extends lu{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Y))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class du{}class fC extends class xs{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const uu=new g.OlP("",{providedIn:"root",factory:()=>({})}),wa=new g.OlP("ROUTES");let nc=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Pe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=On(e.loadComponent()).pipe((0,Wt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),la(()=>{this.componentLoaders.delete(e)})),o=new rs(t,()=>new Me.x).pipe(vn());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,je.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,a,d=!1;Array.isArray(n)?a=n:(i=n.create(e).injector,a=zd(i.get(wa,[],g.XFs.Self|g.XFs.Optional)));return{routes:a.map(ba),injector:i}}),la(()=>{this.childrenLoaders.delete(t)})),c=new rs(l,()=>new Me.x).pipe(vn());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return On(e()).pipe((0,di.z)(t=>t instanceof g.YKP||Array.isArray(t)?(0,Pe.of)(t):(0,gt.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(g.Sil))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Ts{}class mC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Ss(s){throw s}function rc(s,r,e){return r.parse("/")}const Mf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_C={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function va(){const s=(0,g.f3M)(eo),r=(0,g.f3M)(ro),e=(0,g.f3M)(E.Ye),t=(0,g.f3M)(g.zs3),o=(0,g.f3M)(g.Sil),l=(0,g.f3M)(wa,{optional:!0})??[],c=(0,g.f3M)(uu,{optional:!0})??{},n=(0,g.f3M)(cu),i=(0,g.f3M)(lu,{optional:!0}),a=(0,g.f3M)(Ts,{optional:!0}),d=(0,g.f3M)(du,{optional:!0}),u=new Kt(null,s,r,e,t,o,zd(l));return a&&(u.urlHandlingStrategy=a),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function bC(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let Kt=(()=>{class s{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=Ss,this.malformedUriErrorHandler=rc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Pe.of)(void 0),this.urlHandlingStrategy=new mC,this.routeReuseStrategy=new fC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(nc),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new tf(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Jd(p)),this.ngModule=c.get(g.h0i),this.console=c.get(g.c2e);const u=c.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function os(){return new on(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lf(this.currentUrlTree,this.rootComponentType),this.transitions=new Ot({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,qt.h)(o=>0!==o.id),(0,je.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,ki.w)(o=>{let l=!1,c=!1;return(0,Pe.of)(o).pipe((0,Wt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ki.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return yC(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Pe.of)(n).pipe((0,ki.w)(u=>{const p=this.transitions.getValue();return t.next(new Nl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Lt.E:Promise.resolve(u)}),function en(s,r,e,t){return(0,ki.w)(o=>function fx(s,r,e,t,o){return new Af(s,r,e,t,o).apply()}(s,r,e,o.extractedUrl,t).pipe((0,je.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function tc(s,r,e,t,o,l){return(0,di.z)(c=>function xf(s,r,e,t,o,l,c="emptyOnly",n="legacy"){return new oC(s,r,e,t,o,c,n,l).recognize().pipe((0,ki.w)(i=>null===i?function gx(s){return new Qe.y(r=>r.error(s))}(new mo):(0,Pe.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,je.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(u=>{if(o.targetSnapshot=u.targetSnapshot,"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 p=new Yd(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,Ve=new Nl(p,this.serializeUrl(b),H,z);t.next(Ve);const ot=lf(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ot,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Pe.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Lt.E}),(0,Wt.b)(n=>{const i=new Xp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,je.U)(n=>o={...n,guards:gf(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function ru(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Pe.of)({...e,guardsResult:!0}):function uo(s,r,e,t){return(0,gt.D)(s).pipe((0,di.z)(o=>function cx(s,r,e,t,o){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Pe.of)(!0);const c=l.map(n=>{const i=Kl(n,r,o);return On(function iC(s){return s&&so(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,Si.P)())});return(0,Pe.of)(c).pipe(Ca())}(o.component,o.route,e,r,t)),(0,Si.P)(o=>!0!==o,!0))}(c,t,o,s).pipe((0,di.z)(n=>n&&function lo(s){return"boolean"==typeof s}(n)?function ox(s,r,e,t){return(0,gt.D)(r).pipe((0,It.b)(o=>(0,Ii.z)(function Pt(s,r){return null!==s&&r&&r(new nf(s)),(0,Pe.of)(!0)}(o.route.parent,t),function nC(s,r){return null!==s&&r&&r(new af(s)),(0,Pe.of)(!0)}(o.route,t),function lx(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function mf(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Zi(()=>{const n=c.guards.map(i=>{const a=Kl(i,c.node,e);return On(function nu(s){return s&&so(s.canActivateChild)}(a)?a.canActivateChild(t,s):a(t,s)).pipe((0,Si.P)())});return(0,Pe.of)(n).pipe(Ca())}));return(0,Pe.of)(l).pipe(Ca())}(s,o.path,e),function sx(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Pe.of)(!0);const o=t.map(l=>Zi(()=>{const c=Kl(l,r,e);return On(function _f(s){return s&&so(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,Si.P)())}));return(0,Pe.of)(o).pipe(Ca())}(s,o.route,e))),(0,Si.P)(o=>!0!==o,!0))}(t,l,s,r):(0,Pe.of)(n)),(0,je.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Wt.b)(n=>{if(o.guardsResult=n.guardsResult,Ct(n.guardsResult))throw df(0,n.guardsResult);const i=new Qd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,qt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Jt(n=>{if(n.guards.canActivateChecks.length)return(0,Pe.of)(n).pipe((0,Wt.b)(i=>{const a=new Gb(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,ki.w)(i=>{let a=!1;return(0,Pe.of)(i).pipe(function hC(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Pe.of)(e);let l=0;return(0,gt.D)(o).pipe((0,It.b)(c=>function pC(s,r,e,t){const o=s.routeConfig,l=s._resolve;return void 0!==o?.title&&!Sf(o)&&(l[su]=o.title),function Ef(s,r,e,t){const o=function As(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===o.length)return(0,Pe.of)({});const l={};return(0,gt.D)(o).pipe((0,di.z)(c=>function bo(s,r,e,t){const o=Kl(s,r,t);return On(o.resolve?o.resolve(r,e):o(r,e))}(s[c],r,e,t).pipe((0,Si.P)(),(0,Wt.b)(n=>{l[c]=n}))),Bn(1),(0,jd.h)(l),(0,Et.K)(c=>Or(c)?Lt.E:(0,_i._)(c)))}(l,s,r,t).pipe((0,je.U)(c=>(s._resolvedData=c,s.data=ps(s,e).resolve,o&&Sf(o)&&(s.data[su]=o.title),null)))}(c.route,t,s,r)),(0,Wt.b)(()=>l++),Bn(1),(0,di.z)(c=>l===o.length?(0,Pe.of)(e):Lt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Wt.b)(i=>{const a=new ef(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Jt(n=>{const i=a=>{const d=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,Wt.b)(u=>{a.component=u}),(0,je.U)(()=>{})));for(const u of a.children)d.push(...i(u));return d};return(0,or.a)(i(n.targetSnapshot.root)).pipe((0,Mi.d)(),(0,ii.q)(1))}),Jt(()=>this.afterPreactivation()),(0,je.U)(n=>{const i=function $b(s,r,e){const t=fs(s,r._root,e?e._root:void 0);return new Zd(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,Wt.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)}),((s,r,e)=>(0,je.U)(t=>(new Xb(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Wt.b)({next(){l=!0},complete(){l=!0}}),la(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,Et.K)(n=>{if(c=!0,ms(n)){Qb(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new zl(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),Qb(n)){const a=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yC(o.source)};this.scheduleNavigation(a,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new Ul(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(a){o.reject(a)}}return Lt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ba),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:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),be(a,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=Ct(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function CC(s){for(let r=0;r{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new kr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,a;c?(n=c.resolve,i=c.reject,a=c.promise):a=new Promise((p,b)=>{n=p,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),u=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}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,o){const l=new zl(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:function(){return va()},providedIn:"root"}),s})();function yC(s){return"imperative"!==s}class Df{}let fu=(()=>{class s{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(e=>e instanceof kr),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,g.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,gt.D)(o).pipe((0,as.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Pe.of)(null);const l=o.pipe((0,di.z)(c=>null===c?(0,Pe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,gt.D)([l,c]).pipe((0,as.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Kt),g.LFG(g.Sil),g.LFG(g.lqb),g.LFG(Df),g.LFG(nc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Hf=new g.OlP("");let Pf=(()=>{class s{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof kr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new sf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const AC=new g.OlP("ROUTER_FORROOT_GUARD"),oc=new g.OlP(""),xC=[E.Ye,{provide:eo,useClass:ls},{provide:Kt,useFactory:va},ro,{provide:Vr,useFactory:function Rf(s){return s.routerState.root},deps:[Kt]},nc];function sc(){return new g.PXZ("Router",Kt)}let Co=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[xC,[],Ms(e),{provide:AC,useFactory:bx,deps:[[Kt,new g.FiY,new g.tp0]]},{provide:uu,useValue:t||{}},t?.useHash?{provide:E.S$,useClass:E.Do}:{provide:E.S$,useClass:E.b0},{provide:Hf,useFactory:()=>{const s=(0,g.f3M)(Kt),r=(0,g.f3M)(E.EM),e=(0,g.f3M)(uu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Pf(s,r,e)}},t?.preloadingStrategy?HC(t.preloadingStrategy):[],{provide:g.PXZ,multi:!0,useFactory:sc},t?.initialNavigation?If(t):[],[{provide:mu,useFactory:gu},{provide:g.tb,multi:!0,useExisting:mu}]]}}static forChild(e){return{ngModule:s,providers:[Ms(e)]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(AC,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();function bx(s){return"guarded"}function Ms(s){return[{provide:wa,multi:!0,useValue:s}]}function gu(){const s=(0,g.f3M)(g.zs3);return r=>{const e=s.get(g.z2F);if(r!==e.components[0])return;const t=s.get(Kt),o=s.get(Lr);1===s.get(_u)&&t.initialNavigation(),s.get(oc,null,g.XFs.Optional)?.setUpPreloading(),s.get(Hf,null,g.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const mu=new g.OlP("");function If(s){return["disabled"===s.initialNavigation?[{provide:g.ip1,multi:!0,useFactory:()=>{const s=(0,g.f3M)(Kt);return()=>{s.setUpLocationChangeListener()}}},{provide:_u,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:_u,useValue:0},{provide:g.ip1,multi:!0,deps:[g.zs3],useFactory:s=>{const r=s.get(E.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(o=>{const l=s.get(Kt),c=s.get(Lr);(function t(o){s.get(Kt).events.pipe((0,qt.h)(c=>c instanceof kr||c instanceof zl||c instanceof Ul),(0,je.U)(c=>c instanceof kr||c instanceof zl&&(0===c.code||1===c.code)&&null),(0,qt.h)(c=>null!==c),(0,ii.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Pe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Lr=new g.OlP("",{factory:()=>new Me.x}),_u=new g.OlP("",{providedIn:"root",factory:()=>1});function HC(s){return[fu,{provide:oc,useExisting:fu},{provide:Df,useExisting:s}]}let wo=(()=>{class s{constructor(){this.title="linker"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[$l]}),s})();var xa=x(1214);let bu;try{bu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bu=!1}let vo,hi=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,E.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&&!bu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.Lbi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Vf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Cu(){if(vo)return vo;if("object"!=typeof document||!document)return vo=new Set(Vf),vo;let s=document.createElement("input");return vo=new Set(Vf.filter(r=>(s.setAttribute("type",r),s.type===r))),vo}let Ds,Ao,dc;function Gn(s){return function PC(){if(null==Ds&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ds=!0}))}finally{Ds=Ds||!1}return Ds}()?s:!!s.capture}function RC(){if(null==Ao){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ao=!1,Ao;if("scrollBehavior"in document.documentElement.style)Ao=!0;else{const s=Element.prototype.scrollTo;Ao=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Ao}function jr(s){if(function qn(){if(null==dc){const s=typeof document<"u"?document.head:null;dc=!(!s||!s.createShadowRoot&&!s.attachShadow)}return dc}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function uc(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function sn(s){return s.composedPath?s.composedPath()[0]:s.target}function hc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function pr(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var yc=x(8372);function wc(s){return(0,qt.h)((r,e)=>s<=e)}function Rs(s,r){return s===r}var Tu=x(5032);function Nt(s){return(0,ci.e)((r,e)=>{(0,Vn.Xf)(s).subscribe((0,Ft.x)(e,()=>e.complete(),Tu.Z)),!e.closed&&r.subscribe(e)})}function ct(s){return null!=s&&"false"!=`${s}`}function ln(s,r=0){return function ny(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Is(s){return Array.isArray(s)?s:[s]}function oi(s){return null==s?"":"string"==typeof s?s:`${s}px`}function Zt(s){return s instanceof g.SBq?s.nativeElement:s}let rg=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ry=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Qe.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,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:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(rg))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Eu=(()=>{class s{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(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,yc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(ry),g.Y36(g.SBq),g.Y36(g.R0b))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),ks=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[rg]}),s})();const Ta=new Set;let $i,ay=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):dT}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function oy(s){if(!Ta.has(s))try{$i||($i=document.createElement("style"),$i.setAttribute("type","text/css"),document.head.appendChild($i)),$i.sheet&&($i.sheet.insertRule(`@media ${s} {body{ }}`,0),Ta.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function dT(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let uT=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Su(Is(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=Su(Is(e)).map(c=>this._registerQuery(c).observable);let l=(0,or.a)(o);return l=(0,Ii.z)(l.pipe((0,ii.q)(1)),l.pipe(wc(1),(0,yc.b)(0))),l.pipe((0,je.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Qe.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vi(t),(0,je.U)(({matches:c})=>({query:e,matches:c})),Nt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ay),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Su(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Vs=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Mu(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function uy(s){try{return s.frameElement}catch{return null}}(function Pu(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Du(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=Du(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function Hu(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function pg(s){return!function py(s){return function gy(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function hy(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function fy(s){return function my(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||hg(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function hg(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Du(s){if(!hg(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class _y{constructor(r,e,t,o,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(r)}}let Ru=(()=>{class s{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new _y(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Vs),g.LFG(g.R0b),g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function fg(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function So(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const vy=new g.OlP("cdk-input-modality-detector-options"),gg={ignoreKeys:[18,17,224,91,16]},Sa=Gn({passive:!0,capture:!0});let ku=(()=>{class s{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ot(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=sn(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fg(c)?"keyboard":"mouse"),this._mostRecentTarget=sn(c))},this._onTouchstart=c=>{So(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=sn(c))},this._options={...gg,...l},this.modalityDetected=this._modality.pipe(wc(1)),this.modalityChanged=this.modalityDetected.pipe(function Hi(s,r=Bl.y){return s=s??Rs,(0,ci.e)((e,t)=>{let o,l=!0;e.subscribe((0,Ft.x)(t,c=>{const n=r(c);(l||!s(o,n))&&(l=!1,o=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Sa),o.addEventListener("mousedown",this._onMousedown,Sa),o.addEventListener("touchstart",this._onTouchstart,Sa)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Sa),document.removeEventListener("mousedown",this._onMousedown,Sa),document.removeEventListener("touchstart",this._onTouchstart,Sa))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(E.K0),g.LFG(vy,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const _g=new g.OlP("cdk-focus-monitor-default-options"),Mo=Gn({passive:!0,capture:!0});let cn=(()=>{class s{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Me.x,this._rootNodeFocusAndBlurListener=n=>{for(let a=sn(n);a;a=a.parentElement)"focus"===n.type?this._onFocus(n,a):this._onBlur(n,a)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=Zt(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Pe.of)(null);const l=jr(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Me.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Zt(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=Zt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=sn(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Mo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mo)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Nt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Mo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,g.f3M)(uT).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Ou,Bu,bg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Ou,Bu):2===t&&e.add(Ou,bg)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Do=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Lu))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[ks]}),s})();const Cg=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function fT(){return(0,g.f3M)(E.K0)}}),yg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nr=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new g.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Ty(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?yg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Cg,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ho=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const Dy=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function My(){return!0}});let xe=(()=>{class s{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!hc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Lu),g.LFG(Dy,8),g.LFG(E.K0))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ho,Ho]}),s})();function xc(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ct(r)}}}function Ma(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function zr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ct(r)}}}function Fu(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Iy=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function wT(){return(0,g.f3M)(g.soG)}});class un{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),o=this.isValid(e);return t&&o?!this.compareDate(r,e):t==o}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Os=new g.OlP("mat-date-formats"),Da=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ju(s,r){const e=Array(s);for(let t=0;t{class s extends un{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return ju(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ju(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 ju(7,o=>this._format(t,new Date(2017,0,o+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,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}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(Da.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,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Iy,8),g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Nu={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 ky=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:un,useClass:Tc}]}),s})(),Vy=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:Os,useValue:Nu}],imports:[ky]}),s})(),Ec=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})();class Po{constructor(r,e,t,o=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const xg={enterDuration:225,exitDuration:150},Ro=Gn({passive:!0}),Eg=["mousedown","touchstart"],zu=["mouseup","mouseleave","touchend","touchcancel"];class Sg{constructor(r,e,t,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...xg,...t.animation};t.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function Oy(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+o*o)}(r,e,o),n=r-o.left,i=e-o.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new Po(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(a||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ve=()=>this._finishRippleTransition(z),ot=()=>this._destroyRipple(z);d.addEventListener("transitionend",Ve),d.addEventListener("transitioncancel",ot),ae={onTransitionEnd:Ve,onTransitionCancel:ot}}),this._activeRipples.set(z,ae),(H||!a)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...xg,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Eg))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(zu),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=fg(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Ro)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Eg.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ro)}),this._pointerUpEventsRegistered&&zu.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ro)}))}}const Mg=new g.OlP("mat-ripple-global-options");let Ha=(()=>{class s{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Sg(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(hi),g.Y36(Mg,8),g.Y36(g.QbO,8))},s.\u0275dir=g.lG2({type:s,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"]}),s})(),hn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})(),Uu=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe]}),s})(),Dc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[hn,E.ez,xe,Uu]}),s})();const zy=["mat-button",""],qu=["*"],Rg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],$u=Ma(xc(zr(class{constructor(s){this._elementRef=s}})));let Hc=(()=>{class s extends $u{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Rg)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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(cn),g.Y36(g.QbO,8))},s.\u0275cmp=g.Xpm({type:s,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(Ha,5),2&e){let o;g.iGM(o=g.CRH())&&(t.ripple=o.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:zy,ngContentSelectors:qu,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)(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()))},dependencies:[Ha],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),fr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[hn,xe,xe]}),s})();var Pc=x(1144),pn=x(576),Rc=x(3268);const Yu=["addListener","removeListener"],Qu=["addEventListener","removeEventListener"],AT=["on","off"];function Fs(s,r,e,t){if((0,pn.m)(e)&&(t=e,e=void 0),t)return Fs(s,r,e).pipe((0,Rc.Z)(t));const[o,l]=function kg(s){return(0,pn.m)(s.addEventListener)&&(0,pn.m)(s.removeEventListener)}(s)?Qu.map(c=>n=>s[c](r,n,e)):function Gy(s){return(0,pn.m)(s.addListener)&&(0,pn.m)(s.removeListener)}(s)?Yu.map(Ig(s,r)):function qy(s){return(0,pn.m)(s.on)&&(0,pn.m)(s.off)}(s)?AT.map(Ig(s,r)):[];if(!o&&(0,Pc.z)(s))return(0,di.z)(c=>Fs(c,r,e))((0,Vn.Xf)(s));if(!o)throw new TypeError("Invalid event target");return new Qe.y(c=>{const n=(...i)=>c.next(1l(n)})}function Ig(s,r){return e=>t=>s[e](r,t)}var Wy=x(4408);const js={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=js;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=r(l=>{e=void 0,s(l)});return new Yt.w0(()=>e?.(o))},requestAnimationFrame(...s){const{delegate:r}=js;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=js;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var Ju=x(7565);const Bg=new class Vg extends Ju.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class xT extends Wy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=js.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(js.cancelAnimationFrame(e),r._scheduled=void 0)}});let Lg,TT=1;const Ku={};function $y(s){return s in Ku&&(delete Ku[s],!0)}const ET={setImmediate(s){const r=TT++;return Ku[r]=!0,Lg||(Lg=Promise.resolve()),Lg.then(()=>$y(r)&&s()),r},clearImmediate(s){$y(s)}},{setImmediate:ST,clearImmediate:MT}=ET,Zu={setImmediate(...s){const{delegate:r}=Zu;return(r?.setImmediate||ST)(...s)},clearImmediate(s){const{delegate:r}=Zu;return(r?.clearImmediate||MT)(s)},delegate:void 0};new class Gr extends Ju.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class DT extends Wy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Zu.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(Zu.clearImmediate(e),r._scheduled=void 0)}});var eh=x(4986),ih=x(2805);function Ns(s,r=eh.z){return function th(s){return(0,ci.e)((r,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const a=o;o=null,e.next(a)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ft.x)(e,a=>{t=!0,o=a,l||(0,Vn.Xf)(s(a)).subscribe(l=(0,Ft.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,ih.H)(s,r))}let Qy=(()=>{class s{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Qe.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Ns(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Pe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,qt.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=Zt(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Fs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(hi),g.LFG(E.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$n=(()=>{class s{constructor(e,t,o){this._platform=e,this._change=new Me.x,this._changeListener=l=>{this._change.next(l)},this._document=o,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:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ns(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 s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(E.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),qr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ho,Yn,Ho,Yn]}),s})();class Vc{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class rh extends Vc{constructor(r,e,t,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class Yi extends Vc{constructor(r,e,t,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Gg extends Vc{constructor(r){super(),this.element=r instanceof g.SBq?r.nativeElement:r}}class ah{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof rh?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Yi?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Gg?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ew extends ah{constructor(r,e,t,o,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(r.injector||this._defaultInjector||g.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let oh=(()=>{class s extends ah{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(E.K0))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),s})(),gr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var mr=x(6451);const Wg=RC();class iw{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=oi(-this._previousScrollPosition.left),r.style.top=oi(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Wg&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wg&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_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 $g{constructor(r,e,t,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Yg{enable(){}disable(){}attach(){}}function fn(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Bc(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class rw{constructor(r,e,t,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();fn(e,[{width:t,height:o,bottom:o,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 aw=(()=>{class s{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Yg,this.close=c=>new $g(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new iw(this._viewportRuler,this._document),this.reposition=c=>new rw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Qy),g.LFG($n),g.LFG(g.R0b),g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class ow{constructor(r){if(this.scrollStrategy=new Yg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class lw{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Jg=(()=>{class s{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 s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),cw=(()=>{class s extends Jg{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Oc=(()=>{class s extends Jg{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=sn(l)},this._clickListener=l=>{const c=sn(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const d=i[a];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0),g.LFG(hi),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Io=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||hc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=oi(this._config.width),r.height=oi(this._config.height),r.minWidth=oi(this._config.minWidth),r.minHeight=oi(this._config.minHeight),r.maxWidth=oi(this._config.maxWidth),r.maxHeight=oi(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const o=Is(e||[]).filter(l=>!!l);o.length&&(t?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(Nt((0,mr.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const sh="cdk-overlay-connected-position-bounding-box",lh=/([A-Za-z%]+)$/;class Kg{constructor(r,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Me.x,this._resizeSubscription=Yt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(sh),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,o,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.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(sh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let o,l;if("center"==t.originX)o=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(r,e,t){let o,l;return o="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:r.x+o,y:r.y+l}}_getOverlayFit(r,e,t,o){const l=Lc(e);let{x:c,y:n}=r,i=this._getOffset(o,"x"),a=this._getOffset(o,"y");i&&(c+=i),a&&(n+=a);let p=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,p,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=dw(this._overlayRef.getConfig().minHeight),n=dw(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=o)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=Lc(e),l=this._viewportRect,c=Math.max(r.x+o.width-l.width,0),n=Math.max(r.y+o.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=o.width<=l.width?a||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)p=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:p,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=oi(t.height),o.top=oi(t.top),o.bottom=oi(t.bottom),o.width=oi(t.width),o.left=oi(t.left),o.right=oi(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=oi(l)),c&&(o.maxWidth=oi(c))}this._lastBoundingBoxSize=t,ko(this._boundingBox.style,o)}_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(r,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();ko(t,this._getExactOverlayY(e,r,d)),ko(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=oi(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=oi(c.maxWidth):l&&(t.maxWidth="")),ko(this._pane.style,t)}_getExactOverlayY(r,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=oi(l.y),o}_getExactOverlayX(r,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=oi(l.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Bc(r,t),isOriginOutsideView:fn(r,t),isOverlayClipped:Bc(e,t),isOverlayOutsideView:fn(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,o)=>t-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Is(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof g.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function ko(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function dw(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(lh);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Lc(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const ch="cdk-global-overlay-wrapper";class Zg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(ch),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",p?H=u:b=u):p?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(ch),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Xg=(()=>{class s{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new Zg}flexibleConnectedTo(e){return new Kg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG($n),g.LFG(E.K0),g.LFG(hi),g.LFG(Io))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),em=0,gn=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u,p,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ow(e);return c.direction=c.direction||this._directionality.value,new Us(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+em++,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 ew(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(aw),g.LFG(Io),g.LFG(g._Vd),g.LFG(Xg),g.LFG(cw),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(E.K0),g.LFG(Nr),g.LFG(E.Ye),g.LFG(Oc),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const uh={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[gn],useFactory:function uw(s){return()=>s.scrollStrategies.reposition()}};let Ra=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[gn,uh],imports:[Ho,gr,qr,qr]}),s})();class tm{}const _r="*";function si(s,r){return{type:7,name:s,definitions:r,options:{}}}function yt(s,r=null){return{type:4,styles:r,timings:s}}function hw(s,r=null){return{type:3,steps:s,options:r}}function im(s,r=null){return{type:2,steps:s,options:r}}function Fe(s){return{type:6,styles:s,offset:null}}function ht(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Vo(s=null){return{type:9,options:s}}function Bo(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function nm(s){Promise.resolve(null).then(s)}class qs{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){nm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class rm{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,o=0;const l=this.players.length;0==l?nm(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const fw=["connectionContainer"],Nc=["inputContainer"],ka=["label"];function YT(s,r){1&s&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Ws(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&s){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function gw(s,r){if(1&s&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&s){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function mw(s,r){1&s&&g.Hsn(0,3,["*ngSwitchCase","true"])}function ph(s,r){1&s&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function _w(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.YNc(2,gw,4,1,"ng-container",12),g.YNc(3,mw,1,0,"ng-content",12),g.YNc(4,ph,2,0,"span",22),g.qZA()}if(2&s){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 Qn(s,r){1&s&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function $s(s,r){if(1&s&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Pi(s,r){if(1&s&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function Va(s,r){if(1&s&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function zc(s,r){if(1&s&&(g.TgZ(0,"div",27),g.YNc(1,Va,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const mn=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],fh=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Oo=new g.OlP("MatError"),Lo={transitionMessages:si("transitionMessages",[ht("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let br=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s}),s})();const am=new g.OlP("MatHint");let gh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-label"]]}),s})(),om=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const sm=new g.OlP("MatPrefix"),lm=new g.OlP("MatSuffix");let mh=0;const vw=Ma(class{constructor(s){this._elementRef=s}},"primary"),dm=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_h=new g.OlP("MatFormField");let um=(()=>{class s extends vw{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+mh++,this._labelId="mat-form-field-label-"+mh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(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(Vi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Nt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Nt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,mr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Nt(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,Fs(this._label.nativeElement,"transitionend").pipe((0,ii.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,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.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,o=".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 d=t.querySelectorAll(`${o}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,xe,ks,xe]}),s})();const vh={provide:new g.OlP("mat-select-scroll-strategy"),deps:[gn],useFactory:function bm(s){return()=>s.scrollStrategies.reposition()}};let el=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[vh],imports:[E.ez,Ra,Dc,xe,Yn,Cr,Dc,xe]}),s})();const Fw={provide:new g.OlP("mat-tooltip-scroll-strategy"),deps:[gn],useFactory:function wm(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}};let il=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Fw],imports:[Do,E.ez,Ra,xe,xe,Yn]}),s})(),_n=(()=>{class s{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Gw={provide:_n,deps:[[new g.FiY,new g.tp0,_n]],useFactory:function Uw(s){return s||new _n}};let Gc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Gw],imports:[E.ez,fr,el,il,xe]}),s})();const iv={provide:new g.OlP("mat-menu-scroll-strategy"),deps:[gn],useFactory:function Im(s){return()=>s.scrollStrategies.reposition()}};let Wc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[iv],imports:[E.ez,xe,hn,Ra,Yn,xe]}),s})();var nv=x(4742),rv=x(1810);function Th(...s){const r=(0,oa.jO)(s),{args:e,keys:t}=(0,nv.D)(s),o=new Qe.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,a=c;for(let d=0;d{u||(u=!0,a--),n[d]=p},()=>i--,void 0,()=>{(!i||!u)&&(a||l.next(t?(0,rv.n)(t,n):n),l.complete())}))}});return r?o.pipe((0,Rc.Z)(r)):o}var km=x(3099),y=x(529);const av=["*"];let $c;function nl(s){return function ov(){if(void 0===$c&&($c=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&($c=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return $c}()?.createHTML(s)||s}function Vm(s){return Error(`Unable to find icon with the name "${s}"`)}function Bm(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function Eh(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class $r{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Fo=(()=>{class s{constructor(e,t,o,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","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new $r(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(g.q3G.HTML,o);if(!c)throw Eh(o);const n=nl(c);return this._addSvgIconConfig(e,t,new $r("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new $r(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(g.q3G.HTML,t);if(!l)throw Eh(t);const c=nl(l);return this._addSvgIconSetConfig(e,new $r("",c,o))}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 Bm(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Pe.of)(rl(o)):this._loadSvgIconFromConfig(new $r(e,null)).pipe((0,Wt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,je.U)(l=>rl(l)))}getNamedSvgIcon(e,t=""){const o=Sh(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_i._)(Vm(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Pe.of)(rl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,je.U)(t=>rl(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Pe.of)(o):Th(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,Et.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,Pe.of)(null)})))).pipe((0,je.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Vm(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,je.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Pe.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(nl(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(nl("")),o=e.attributes;for(let l=0;lnl(a)),la(()=>this._inProgressUrlFetches.delete(c)),(0,km.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(Sh(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.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 o=0;or?r.pathname+r.search:""}}}),jm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cv=jm.map(s=>`[${s}]`).join(", "),jo=/^url\(['"]?#(.*?)['"]?\)$/;let Nm=(()=>{class s extends Fm{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Yt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(cv),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(jo):null;if(a){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,ii.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Fo),g.$8M("aria-hidden"),g.Y36(Dh),g.Y36(g.qLn),g.Y36(Mh,8))},s.\u0275cmp=g.Xpm({type:s,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:av,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),s})(),Sn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})();function wr(s){return!!s&&(s instanceof Qe.y||(0,pn.m)(s.lift)&&(0,pn.m)(s.subscribe))}var zm=x(6063);class Um extends Me.x{constructor(r=1/0,e=1/0,t=zm.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew Um(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class qe{}let Gm=(()=>{class s extends qe{getTranslation(e){return(0,Pe.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Hh{}let qm=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function vr(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let o,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!vr(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=s.length)==r.length){for(l=0;l{No(r[t])?t in s?e[t]=al(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Bt{}let uv=(()=>{class s extends Bt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Yr(c)?c:o}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class ol{}let Ph=(()=>{class s extends ol{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Wm{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 Yc=new g.OlP("USE_STORE"),Qc=new g.OlP("USE_DEFAULT_LANG"),Jc=new g.OlP("DEFAULT_LANGUAGE"),Kc=new g.OlP("USE_EXTEND");let sl=(()=>{class s{constructor(e,t,o,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Pe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Pe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(dv(1),(0,ii.q)(1));return this.loadingTranslations=t.pipe((0,je.U)(o=>this.compiler.compileTranslations(o,e)),dv(1),(0,ii.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?al(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,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),wr(c[i])&&(n=!0);return n?Th(t.map(a=>wr(c[a])?c[a]:(0,Pe.of)(c[a]))).pipe((0,je.U)(a=>{let d={};return a.forEach((u,p)=>{d[t[p]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,It.b)(o=>wr(o=this.getParsedResult(o,e,t))?o:(0,Pe.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return wr(o)?o:(0,Pe.of)(o)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ii.z)(Zi(()=>this.get(e,t)),this.onTranslationChange.pipe((0,ki.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Pe.of)(l)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ii.z)(Zi(()=>this.get(e,t)),this.onLangChange.pipe((0,ki.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return wr(l)?l:(0,Pe.of)(l)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(wr(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Wm),g.LFG(qe),g.LFG(ol),g.LFG(Bt),g.LFG(Hh),g.LFG(Qc),g.LFG(Yc),g.LFG(Kc),g.LFG(Jc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Qr=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);wr(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(vr(e,this.lastKey)&&vr(t,this.lastParams))return this.value;let o;if(Yr(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{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(sl,16),g.Y36(g.sBO,16))},s.\u0275pipe=g.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Zn=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Gm},e.compiler||{provide:ol,useClass:Ph},e.parser||{provide:Bt,useClass:uv},e.missingTranslationHandler||{provide:Hh,useClass:qm},Wm,{provide:Yc,useValue:e.isolate},{provide:Qc,useValue:e.useDefaultLang},{provide:Kc,useValue:e.extend},{provide:Jc,useValue:e.defaultLanguage},sl]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Gm},e.compiler||{provide:ol,useClass:Ph},e.parser||{provide:Bt,useClass:uv},e.missingTranslationHandler||{provide:Hh,useClass:qm},{provide:Yc,useValue:e.isolate},{provide:Qc,useValue:e.useDefaultLang},{provide:Kc,useValue:e.extend},{provide:Jc,useValue:e.defaultLanguage},sl]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),$m=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Gc,Wc,Sn,fr,Zn,E.ez]}),s})();function hv(s,r){}class Zc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Ih=(()=>{class s extends ah{constructor(e,t,o,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=uc(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=uc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=uc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Ru),g.Y36(E.K0,8),g.Y36(Zc),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(cn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&g.Gf(oh,7),2&e){let o;g.iGM(o=g.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&g.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,hv,0,0,"ng-template",0)},dependencies:[oh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class Xc{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!pr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const kh=new g.OlP("DialogScrollStrategy"),pv=new g.OlP("DialogData"),ll=new g.OlP("DefaultDialogConfig"),fv={provide:kh,deps:[gn],useFactory:function cl(s){return()=>s.scrollStrategies.block()}};let gv=0,Ym=(()=>{class s{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Zi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vi(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}open(e,t){(t={...this._defaultOptions||new Zc,...t}).id=t.id||"cdk-dialog-"+gv++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Xc(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){ed(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){ed(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),ed(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ow({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:Zc,useValue:o},{provide:Xc,useValue:t},{provide:Us,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=Ih;const i=new rh(n,o.viewContainerRef,g.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof g.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new Yi(e,null,n,c))}else{const n=o.attachComponentPortal(new rh(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:pv,useValue:e.data},{provide:Xc,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(Nr,null,g.XFs.Optional))&&c.push({provide:Nr,useValue:{value:e.direction,change:(0,Pe.of)()}}),g.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(gn),g.LFG(g.zs3),g.LFG(ll,8),g.LFG(s,12),g.LFG(Io),g.LFG(kh))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function ed(s,r){let e=s.length;for(;e--;)r(s[e])}let Qm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Ym,fv],imports:[Ra,gr,Do,gr]}),s})();function Jm(s,r){}const zo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Km={dialogContainer:si("dialogContainer",[ht("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),ht("enter",Fe({transform:"none"})),_t("* => enter",hw([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Bo("@*",Vo(),{optional:!0})]),zo),_t("* => void, * => exit",hw([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Bo("@*",Vo(),{optional:!0})]),zo)])};class dl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=zo.params.enterAnimationDuration,this.exitAnimationDuration=zo.params.exitAnimationDuration}}let mv=(()=>{class s extends Ih{constructor(e,t,o,l,c,n,i,a){super(e,t,o,l,c,n,i,a),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Ru),g.Y36(E.K0,8),g.Y36(dl),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(cn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),pE=(()=>{class s extends mv{constructor(e,t,o,l,c,n,i,a,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||zo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||zo.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Ru),g.Y36(E.K0,8),g.Y36(dl),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(g.sBO),g.Y36(cn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(g.Ikx("id",t._config.id),g.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._getAnimationState()))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,Jm,0,0,"ng-template",0)},dependencies:[oh],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Km.dialogContainer]}}),s})();class Uo{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,qt.h)(o=>"opened"===o.state),(0,ii.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,qt.h)(o=>"closed"===o.state),(0,ii.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,mr.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(o=>27===o.keyCode&&!this.disableClose&&!pr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function fE(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,qt.h)(e=>"closing"===e.state),(0,ii.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const _v=new g.OlP("MatDialogData"),Zm=new g.OlP("mat-dialog-default-options"),ul=new g.OlP("mat-dialog-scroll-strategy"),Xm={provide:ul,deps:[gn],useFactory:function bv(s){return()=>s.scrollStrategies.block()}};let hl=0,Cv=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Zi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vi(void 0))),this._scrollStrategy=n,this._dialog=t.get(Ym)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new dl,...t}).id=t.id||`${this._idPrefix}${hl++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:dl,useValue:t},{provide:Zc,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Oa=(()=>{class s extends Cv{constructor(e,t,o,l,c,n,i,a){super(e,t,l,n,i,c,Uo,pE,_v,a)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(gn),g.LFG(g.zs3),g.LFG(E.Ye,8),g.LFG(Zm,8),g.LFG(ul),g.LFG(s,12),g.LFG(Io),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),yv=0,td=(()=>{class s{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+yv++}ngOnInit(){this._dialogRef||(this._dialogRef=function wv(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Uo,8),g.Y36(g.SBq),g.Y36(Oa))},s.\u0275dir=g.lG2({type:s,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"]}),s})(),Go=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),id=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),Ar=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Oa,Xm],imports:[Qm,Ra,gr,xe,xe]}),s})();function qo(){const s=new dl;return s.disableClose=!0,s.autoFocus=!1,s}function gl(s,r){const e=r.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class Xt{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ei=new g.OlP("basePath");class rt{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let ml=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new rt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",a=!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==o)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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=o&&(u=this.addToHttpParams(u,o,"complementaryObjectName")),l&&l.forEach(Ve=>{u=this.addToHttpParams(u,Ve,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,p=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(p=p.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(p=p.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(p=p.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:p,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(rt,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),c_=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new rt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="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==o)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 a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!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==o)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!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="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==o)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 a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(rt,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),d_=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new rt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");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 a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new y.LE({encoder:this.encoder});null!=o&&(a=this.addToHttpParams(a,o,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));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 p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=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/registrarManager/sendInvitation/u-g`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(rt,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Bh=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new rt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(rt,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),jh=(()=>{class s{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:s,providers:[{provide:rt,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(s,12),g.LFG(y.eN,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let sA=(()=>{class s{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 o=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of o)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,o){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(o.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);o.set(l,{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 o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],o=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?o:this.addMissingValuesToProperty(l,o)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const o of Object.keys(t))t[o]=this.addMissingValuesToProperty(e[o],t[o]);return t}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Nh=(()=>{class s{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=gl("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}startIdpFilterKeeper(){this.router.events.pipe((0,qt.h)(e=>e instanceof kr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(Tr),g.LFG(Oa),g.LFG(Vr),g.LFG(xa.Ct))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zh=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Uo))},s.\u0275cmp=g.Xpm({type:s,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"))},dependencies:[Go,Qr]}),s})();var Uh=x(930);function Gh(s,r){const e="object"==typeof r;return new Promise((t,o)=>{const l=new Uh.Hp({next:c=>{t(c),l.unsubscribe()},error:o,complete:()=>{e?t(r.defaultValue):o(new Ht.K)}});s.subscribe(l)})}function qh(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function Wh(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function lA(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function cA(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const dA=["*"];let $h=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:dA,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,qh,2,0,"mat-icon",1),g.YNc(2,Wh,2,0,"mat-icon",1),g.YNc(3,lA,2,0,"mat-icon",1),g.YNc(4,cA,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))},dependencies:[Nm,E.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})(),f_=(()=>{class s{constructor(e){this.dialogRef=e}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Uo))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.cancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",5),g.NdJ("click",function(){return t.submit()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),g.xp6(4),g.hij(" ",g.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),g.xp6(4),g.hij(" ",g.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[td,Go,id,Hc,$h,Qr]}),s})(),Yh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),g._uU(3," info "),g.qZA(),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div"),g._uU(7),g.ALo(8,"translate"),g.qZA()()),2&e&&(g.xp6(4),g.hij(" ",g.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),g.xp6(3),g.hij(" ",g.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Nm,Qr],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),s})(),g_=(()=>{class s{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(_v),g.Y36(Uo))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.cancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",5),g.NdJ("click",function(){return t.submit()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),g.xp6(4),g.hij(" ",g.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),g.xp6(4),g.hij(" ",g.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[td,Go,id,Hc,$h,Qr]}),s})(),od=(()=>{class s{constructor(e,t,o,l){this.dialog=e,this.oauthService=t,this.authService=o,this.store=l}openMfaWindow(){let e=null,t=null;const o=qo();o.width="450px";const l=this.dialog.open(f_,o);let c=!1;if(l.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),e=this.setupMfaWindow(),e){const i=qo();i.width="450px",i.panelClass="noBorderDialog",t=this.dialog.open(Yh,i)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=qo();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(g_,n)}return new Qe.y(n=>{const i=setInterval(()=>e?.closed?(clearInterval(i),t.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):c?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Oa),g.LFG(xa.Ct),g.LFG(Nh),g.LFG(Tr))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qh=(()=>{class s{constructor(e,t,o,l,c,n,i,a){this.authService=e,this.oauthService=t,this.storeService=o,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Gh(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=qo();this.dialog.open(zh,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Gh(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const o={};return t.split("&").forEach(l=>{const c=l.split("=");o[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:o,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,qt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Nh),g.LFG(xa.Ct),g.LFG(Tr),g.LFG(sA),g.LFG(ml),g.LFG(Oa),g.LFG(Kt),g.LFG(od))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),m_=(()=>{class s{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Fo),g.LFG(mi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),__=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Uo))},s.\u0275cmp=g.Xpm({type:s,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)(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),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")," "))},dependencies:[td,Go,id,Hc,Qr]}),s})(),b_=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),C_=(()=>{class s{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,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(sl))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Jh=(()=>{class s{constructor(e,t,o,l,c,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i}intercept(e,t){const o=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=qo();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(__,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{la(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}handleRequest(e,t){const o=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,Et.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow().pipe((0,ki.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,_i._)(()=>n)));{const i=this.formatErrors(c,e);return void 0===i?(0,_i._)(()=>c):(o&&this.notificator.showRPCError(i),(0,_i._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Nh),g.LFG(b_),g.LFG(C_),g.LFG(Tr),g.LFG(Oa),g.LFG(Qh),g.LFG(od))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),hA=(()=>{class s{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("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 o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,Et.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,Et.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,_i._)(c)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(C_),g.LFG(Nh),g.LFG(Tr))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),y_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez]}),s})(),pA=(()=>{class s{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=g.Yjl({name:"userFullName",type:s,pure:!0}),s})();function _A(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){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 Kh(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){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 cd=Ma(class{constructor(s){this._elementRef=s}},"primary"),Zh=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function aS(){return{diameter:100}}});class Xn extends cd{constructor(r,e,t,o,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Yt.w0.EMPTY,this.mode="determinate";const a=Xn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ln(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ln(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ln(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=jr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Xn._diameters;let o=t.get(r);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),o||(o=new Set,t.set(r,o)),o.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Xn._diameters=new WeakMap,Xn.\u0275fac=function(r){return new(r||Xn)(g.Y36(g.SBq),g.Y36(hi),g.Y36(E.K0,8),g.Y36(g.QbO,8),g.Y36(Zh),g.Y36(g.sBO),g.Y36($n),g.Y36(g.R0b))},Xn.\u0275cmp=g.Xpm({type:Xn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(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(r,e){1&r&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,_A,1,11,"circle",2),g.YNc(3,Kh,1,9,"circle",3),g.qZA()),2&r&&(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))},dependencies:[E.RF,E.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let yl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,E.ez,xe]}),s})();const x_=Gn({passive:!0});let T_=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Lt.E;const t=Zt(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new Me.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,x_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,x_)}}),l}stopMonitoring(e){const t=Zt(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),oS=(()=>{class s{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ln(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ct(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(()=>{Fs(this._getWindow(),"resize").pipe(Ns(16),Nt(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||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_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,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,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:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(g.R0b),g.Y36(E.K0,8))},s.\u0275dir=g.lG2({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&g.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),s})(),S_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),bA=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq))},s.\u0275dir=g.lG2({type:s}),s})(),La=(()=>{class s extends bA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275dir=g.lG2({type:s,features:[g.qOj]}),s})();const Ni=new g.OlP("NgValueAccessor"),M_={provide:Ni,useExisting:(0,g.Gpc)(()=>vl),multi:!0},D_=new g.OlP("CompositionEventMode");let vl=(()=>{class s extends bA{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yA(){const s=(0,E.q)()?(0,E.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(D_,8))},s.\u0275dir=g.lG2({type:s,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(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:[g._Bn([M_]),g.qOj]}),s})();function Jr(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function ep(s){return null!=s&&"number"==typeof s.length}const fi=new g.OlP("NgValidators"),Er=new g.OlP("NgAsyncValidators"),H_=/^(?=.{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 dd{static min(r){return function tp(s){return r=>{if(Jr(r.value)||Jr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Jr(r.value)||Jr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return function R_(s){return Jr(s.value)?{required:!0}:null}(r)}static requiredTrue(r){return function vA(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function ip(s){return Jr(s.value)||H_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function AA(s){return r=>Jr(r.value)||!ep(r.value)?null:r.value.lengthep(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function TA(s){if(!s)return np;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(Jr(t.value))return null;const o=t.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return rp(r)}static composeAsync(r){return ap(r)}}function np(s){return null}function EA(s){return null!=s}function SA(s){return(0,g.QGY)(s)?(0,gt.D)(s):s}function MA(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function DA(s,r){return r.map(e=>e(s))}function HA(s){return s.map(r=>function ud(s){return!s.validate}(r)?r:e=>r.validate(e))}function rp(s){if(!s)return null;const r=s.filter(EA);return 0==r.length?null:function(e){return MA(DA(e,r))}}function Wo(s){return null!=s?rp(HA(s)):null}function ap(s){if(!s)return null;const r=s.filter(EA);return 0==r.length?null:function(e){return Th(DA(e,r).map(SA)).pipe((0,je.U)(MA))}}function hd(s){return null!=s?ap(HA(s)):null}function PA(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function pd(s){return s._rawValidators}function op(s){return s._rawAsyncValidators}function sp(s){return s?Array.isArray(s)?s:[s]:[]}function Al(s,r){return Array.isArray(s)?s.includes(r):s===r}function RA(s,r){const e=sp(r);return sp(s).forEach(o=>{Al(e,o)||e.push(o)}),e}function I_(s,r){return sp(r).filter(e=>!Al(s,e))}class k_{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Wo(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=hd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class zi extends k_{get formDirective(){return null}get path(){return null}}class tn extends k_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let IA=(()=>{class s extends class V_{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(tn,2))},s.\u0275dir=g.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[g.qOj]}),s})();const $o="VALID",_d="INVALID",Fa="PENDING",Yo="DISABLED";function up(s){return(Mn(s)?s.validators:s)||null}function hp(s){return Array.isArray(s)?Wo(s):s||null}function pp(s,r){return(Mn(r)?r.asyncValidators:s)||null}function bd(s){return Array.isArray(s)?hd(s):s||null}function Mn(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class tr{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=hp(this._rawValidators),this._composedAsyncValidatorFn=bd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===$o}get invalid(){return this.status===_d}get pending(){return this.status==Fa}get disabled(){return this.status===Yo}get enabled(){return this.status!==Yo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=hp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=bd(r)}addValidators(r){this.setValidators(RA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(RA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(I_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(I_(r,this._rawAsyncValidators))}hasValidator(r){return Al(this._rawValidators,r)}hasAsyncValidator(r){return Al(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Fa,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Yo,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=$o,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$o||this.status===Fa)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yo:$o}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Fa,this._hasOwnPendingAsyncValidator=!0;const e=SA(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?Yo:this.errors?_d:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fa)?Fa:this._anyControlsHaveStatus(_d)?_d:$o}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Mn(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class gp extends tr{constructor(r,e,t){super(up(e),pp(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function Cd(s,r,e){s._forEachChild((t,o)=>{if(void 0===e[o])throw new g.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function fp(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[e])throw new g.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const o=this.controls[t];o&&o.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,o)=>{t.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Qo(s,r){wd(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function bp(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&Cp(s,r)})}(s,r),function NA(s,r){const e=(t,o)=>{r.valueAccessor.writeValue(t),o&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function L_(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&Cp(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function jA(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function mp(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),_p(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function xl(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function wd(s,r){const e=pd(s);null!==r.validator?s.setValidators(PA(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=op(s);null!==r.asyncValidator?s.setAsyncValidators(PA(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const o=()=>s.updateValueAndValidity();xl(r._rawValidators,o),xl(r._rawAsyncValidators,o)}function _p(s,r){let e=!1;if(null!==s){if(null!==r.validator){const o=pd(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.validator);l.length!==o.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const o=op(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.asyncValidator);l.length!==o.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return xl(r._rawValidators,t),xl(r._rawAsyncValidators,t),e}function Cp(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function yp(s,r){wd(s,r)}function zA(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const N_={provide:zi,useExisting:(0,g.Gpc)(()=>El)},Tl=(()=>Promise.resolve(null))();let El=(()=>{class s extends zi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new gp({},Wo(e),hd(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Tl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Qo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Tl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Tl.then(()=>{const t=this._findContainer(e.path),o=new gp({});yp(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Tl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Tl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,zA(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 s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Er,10))},s.\u0275dir=g.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([N_]),g.qOj]}),s})();function z_(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function UA(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const GA=class extends tr{constructor(r=null,e,t){super(up(e),pp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Mn(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=UA(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){z_(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){z_(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){UA(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},G_={provide:tn,useExisting:(0,g.Gpc)(()=>Sl)},xd=(()=>Promise.resolve(null))();let Sl=(()=>{class s extends tn{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new GA,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=function Ap(s,r){if(!r)return null;let e,t,o;return Array.isArray(r),r.forEach(l=>{l.constructor===vl?e=l:function j_(s){return Object.getPrototypeOf(s.constructor)===La}(l)?t=l:o=l}),o||t||e||null}(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),function Ad(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(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(){Qo(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){xd.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,g.D6c)(t);xd.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function yd(s,r){return[...r.path,s]}(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(zi,9),g.Y36(fi,10),g.Y36(Er,10),g.Y36(Ni,10),g.Y36(g.sBO,8))},s.\u0275dir=g.lG2({type:s,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([G_]),g.qOj,g.TTD]}),s})(),$A=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const Ep=new g.OlP("NgModelWithFormControlWarning"),Y_={provide:zi,useExisting:(0,g.Gpc)(()=>Jo)};let Jo=(()=>{class s extends zi{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&&(_p(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 Qo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){mp(e.control||null,e,!1),function pS(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,zA(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,o=this.form.get(e.path);t!==o&&(mp(t||null,e),(s=>s instanceof GA)(o)&&(Qo(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);yp(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function F_(s,r){return _p(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wd(this.form,this),this._oldForm&&_p(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Er,10))},s.\u0275dir=g.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([Y_]),g.qOj,g.TTD]}),s})(),re=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[$A]}),s})(),ge=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[re]}),s})(),ve=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:Ep,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[re]}),s})();const Dd=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),Hp=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Pp=0;const Rp=Fu(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let Ip=(()=>{class s extends Rp{constructor(e,t,o,l,c,n,i,a,d,u){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+Pp++,this.focused=!1,this.stateChanges=new Me.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>Cu().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,b=p.nodeName.toLowerCase();this._inputValueAccessor=i||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(dd.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Cu().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=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Hp.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 s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(tn,10),g.Y36(El,8),g.Y36(Jo,8),g.Y36(Ec),g.Y36(Dd,10),g.Y36(T_),g.Y36(g.R0b),g.Y36(_h,8))},s.\u0275dir=g.lG2({type:s,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:br,useExisting:s}]),g.qOj,g.TTD]}),s})(),Zo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Ec],imports:[S_,Cr,xe,S_,Cr]}),s})();function kp(s,r){1&s&&g._UZ(0,"mat-spinner",7)}function Vp(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-form-field",10)(5,"textarea",11),g.NdJ("ngModelChange",function(o){g.CHM(e);const l=g.oxw();return g.KtG(l.message=o)}),g.ALo(6,"translate"),g.qZA()()()}if(2&s){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),g.xp6(3),g.s9C("placeholder",g.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),g.Q6J("ngModel",e.message)}}let iH=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.storeService=t,this.authzService=o,this.oAuthStorage=l,this.rtMessages=c,this.userFullNamePipe=n,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",gl("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(o=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,o.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const o=this.storeService.getProperty("config");let l=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return l=l.concat("\n\n"),l=l.concat("Information about users: \n\n"),l=l.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),l=l.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),l=l.concat("Perun instance: "+o+"\n"),l=l.concat("Sended from new Consolidator Gui, version: ",x(4147).i8),l.split("\n").join("\n ")}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Uo),g.Y36(Tr),g.Y36(ml),g.Y36(xa.Hy),g.Y36(c_),g.Y36(pA))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(g.TgZ(0,"div")(1,"div",0)(2,"h1",1),g._uU(3),g.ALo(4,"translate"),g.qZA()(),g.YNc(5,kp,1,0,"mat-spinner",2),g.YNc(6,Vp,7,7,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return t.onCancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",6),g.NdJ("click",function(){return t.onSend()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()()),2&e&&(g.xp6(3),g.hij(" ",g.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[E.O5,Hc,td,Go,id,Xn,um,oS,Ip,vl,IA,Sl,$h,Qr]}),s})();function nH(s,r){if(1&s&&(g.TgZ(0,"mat-icon",6),g._uU(1),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",e.icon," ")}}function rH(s,r){1&s&&g._UZ(0,"mat-icon",7)}function aH(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.supportMail," ")}}function oH(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.userMail," ")}}function sH(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.YNc(3,aH,2,1,"span",5),g.YNc(4,oH,2,1,"span",5),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),g.xp6(2),g.Q6J("ngIf","UNKNOWN_ERROR"===e.result),g.xp6(1),g.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function lH(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"translate"),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.lnq(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",g.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const cH=function(s){return{"background-color":s}},dH=["*"];let uH=(()=>{class s{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Tr))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[g.TTD],ngContentSelectors:dH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"div"),g.YNc(3,nH,2,1,"mat-icon",2),g.YNc(4,rH,1,0,"mat-icon",3),g.qZA(),g.TgZ(5,"div",4)(6,"h1"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.YNc(9,sH,5,5,"h5",5),g.YNc(10,lH,4,7,"h5",5),g.qZA()(),g.Hsn(11),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,cH,t.color)),g.xp6(3),g.Q6J("ngIf","OK"!==t.result),g.xp6(1),g.Q6J("ngIf","OK"===t.result),g.xp6(3),g.hij(" ",g.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),g.xp6(2),g.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),g.xp6(1),g.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[E.O5,E.PC,Nm,Qr],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),s})();function hH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.loginAgain())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function pH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.sendMessageToSupport())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function fH(s,r){1&s&&(g.TgZ(0,"div",7),g._UZ(1,"mat-spinner",8),g.qZA())}const gH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class s{constructor(e,t,o){this.route=e,this.dialog=t,this.oauthService=o,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,o="yes";for(;""!==o;)t++,o=gl("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=qo();e.width="1000px",this.dialog.open(iH,e).afterClosed().subscribe(o=>{!0===o?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===o&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Vr),g.Y36(Oa),g.Y36(xa.Ct))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),g.NdJ("click",function(){return t.closeWindow()}),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.YNc(6,hH,3,3,"button",4),g.YNc(7,pH,3,3,"button",4),g.qZA()(),g.YNc(8,fH,2,0,"div",5),g.qZA()),2&e&&(g.xp6(1),g.Q6J("result",t.linkerResult),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),g.xp6(2),g.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),g.xp6(1),g.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),g.xp6(1),g.Q6J("ngIf",t.loading))},dependencies:[E.O5,Hc,Xn,uH,Qr],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),s})()}];let mH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Co.forRoot(gH),Co]}),s})();class _H{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let bH=(()=>{class s{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function CH(s){return[Cn(tinycolor(s).lighten(52),"50"),Cn(tinycolor(s).lighten(37),"100"),Cn(tinycolor(s).lighten(26),"200"),Cn(tinycolor(s).lighten(12),"300"),Cn(tinycolor(s).lighten(6),"400"),Cn(tinycolor(s),"500"),Cn(tinycolor(s).darken(6),"600"),Cn(tinycolor(s).darken(12),"700"),Cn(tinycolor(s).darken(18),"800"),Cn(tinycolor(s).darken(24),"900"),Cn(tinycolor(s).lighten(50).saturate(30),"A100"),Cn(tinycolor(s).lighten(30).saturate(30),"A200"),Cn(tinycolor(s).lighten(10).saturate(15),"A400"),Cn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,a=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(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),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.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(Tr),g.LFG(ml),g.LFG(Y),g.LFG(Bh))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Cn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let yH=(()=>{class s{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=gl("formerToken",e);return new Promise(o=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"]),o()})},l=>{let n="UNKNOWN_ERROR";switch(l.name){case"InvalidTokenException":case"ExpiredTokenException":n="TOKEN_EXPIRED";break;case"IdentityUnknownException":n="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":n="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":n="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":n="IDENTITY_LINKED"}this.router.navigate(["/result",n],{queryParamsHandling:"merge"}),o()})})}consolidatePreviousLogins(e,t){return new Promise(o=>{const l=gl("formerToken"+e.toString(),t);null==l||""===l?o():this.registrarService.consolidate({accessToken:l}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())})})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(d_),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),wH=(()=>{class s{constructor(e,t,o,l,c){this.initAuthService=e,this.appConfigService=t,this.location=o,this.linkIdentitiesService=l,this.mfaHandlerService=c}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate())):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Qh),g.LFG(bH),g.LFG(E.Ye),g.LFG(yH),g.LFG(od))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vH=new g.OlP("perun-api-service");let ES=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})(),DS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),tb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[hn,xe,ks,DS,xe,DS]}),s})(),a0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})(),BH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),PS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,xe,BH,gr]}),s})(),IS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mc,xe,Mc,xe]}),s})(),FH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ho]}),s})(),o0=(()=>{class s{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const JH={provide:o0,deps:[[new g.FiY,new g.tp0,o0]],useFactory:function QH(s){return s||new o0}};let OS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[JH,Ec],imports:[xe,E.ez,gr,fr,FH,Sn,hn,xe]}),s})(),uP=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[qr]}),s})(),hb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[uP,xe,xe]}),s})(),PP=(()=>{class s{constructor(){this.changes=new Me.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const NP={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[gn],useFactory:function jP(s){return()=>s.scrollStrategies.reposition()}};let b0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[PP,NP],imports:[E.ez,fr,Ra,Do,gr,xe,Yn]}),s})(),XS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,xe,Yn,Yn,xe]}),s})(),tM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mc,hn,xe,Uu,E.ez,Mc,xe,Uu,a0]}),s})(),iM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[xe,xe]}),s})(),C0=(()=>{class s{constructor(){this.changes=new Me.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const sR={provide:C0,deps:[[new g.FiY,new g.tp0,C0]],useFactory:function oR(s){return s||new C0}};let y0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[sR],imports:[E.ez,xe]}),s})(),hR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,xe,gr,hn,ks,Do,xe]}),s})(),nM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),rM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[nM,hn,xe,ks,nM,xe]}),s})();const lM=new g.OlP("mat-chips-default-options");let v0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Ec,{provide:lM,useValue:{separatorKeyCodes:[13]}}],imports:[xe]}),s})(),A0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,ES,a0,PS,fr,IS,tb,Sn,hb,Ar,yl,Cr,Zo,qr,ge,ve,OS,b0,Vy,XS,tM,Wc,iM,y0,Gc,il,el,hn,hb,rM,v0,ES,a0,PS,fr,IS,tb,Sn,hb,Ar,yl,Cr,Zo,qr,ge,ve,OS,b0,Vy,XS,tM,Wc,iM,y0,Gc,il,el,hn,hR,rM,v0]}),s})(),x0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Sn,E.ez]}),s})();function T0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const o=r[t];o?s.setProperty(t,o,e?.has(t)?"important":""):s.removeProperty(t)}return s}function kd(s,r){const e=r?"":"none";T0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function cM(s,r,e){T0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function mb(s,r){return r&&"none"!=r?s+" "+r:s}function dM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function E0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function S0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function M0(s,r,e){const{top:t,bottom:o,left:l,right:c}=s;return e>=t&&e<=o&&r>=l&&r<=c}function Fp(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function uM(s,r,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:a}=s,d=i*r,u=a*r;return t>o-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:S0(e)})})}handleScroll(r){const e=sn(r),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const a=this.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Fp(a.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function pM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-d.x+this._passiveTransform.x,u.y=a.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new hM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ct(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>kd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>kd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,_b),e.addEventListener("touchstart",this._pointerDown,_M),e.addEventListener("dragstart",this._nativeDragStart,_b)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),kd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),kd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){jp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),cM(t,!1,D0),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=jp(e),l=!o&&0!==e.button,c=this._rootElement,n=sn(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=o?So(e):fg(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const p=c.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=S0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){cM(this._rootElement,!0,D0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(r),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,o),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let o;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),o=CM(c,this._document),this._previewRef=c,r.matchSize?yM(o,l):o.style.transform=bb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=pM(this._rootElement),yM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return T0(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},D0),kd(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function LR(s){const r=getComputedStyle(s),e=E0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=E0(r,"transition-duration"),c=E0(r,"transition-delay");return dM(l[o])+dM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||sn(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=CM(this._placeholderRef,this._document)):t=pM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():r,c=jp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=jp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:a}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(a-c);t=bM(t,n.left+l,n.right-(i-l)),o=bM(o,d,u)}return{x:t,y:o}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,kd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,_b),r.removeEventListener("touchstart",this._pointerDown,_M),r.removeEventListener("dragstart",this._nativeDragStart,_b)}_applyRootElementTransform(r,e){const t=bb(r,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=mb(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=bb(r,e);this._preview.style.transform=mb(o,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:jp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=sn(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Fp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function bb(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function bM(s,r,e){return Math.max(r,Math.min(e,s))}function jp(s){return"t"===s.type[0]}function CM(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function yM(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=bb(r.left,r.top)}function Np(s,r){return Math.max(0,Math.min(r,s))}class UR{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),a=l[c],u=a.clientRect,p=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,p),H=this._getSiblingOffsetPx(i,l,p),z=l.slice();return function zR(s,r,e){const t=Np(r,s.length-1),o=Np(e,s.length-1);if(t===o)return;const l=s[t],c=o{if(z[Ve]===ae)return;const ot=ae.drag===r,mt=ot?b:H,Ut=ot?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=mt,n?(Ut.style.transform=mb(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Fp(ae.clientRect,0,mt)):(Ut.style.transform=mb(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Fp(ae.clientRect,mt,0))}),this._previousSwap.overlaps=M0(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(r,e,t):o,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Zt(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Fp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:S0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const o="horizontal"===this.orientation;let l=o?e.left-r.left:e.top-r.top;return-1===t&&(l+=o?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const o="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",a=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(o){const a=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Yt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function OR(s=0,r=eh.z){return s<0&&(s=0),(0,ih.H)(s,s,r)}(0,Bg).pipe(Nt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new hM(t),this._sortStrategy=new UR(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===r.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,o){if(this.sortingDisabled||!this._clientRect||!uM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||uM(c.clientRect,.05,r,e)&&([o,l]=function qR(s,r,e,t){const o=AM(r,t),l=xM(r,e);let c=0,n=0;if(o){const i=s.scrollTop;1===o?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=AM(i,e),l=xM(i,r),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&M0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(o=>o._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!M0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=Zt(this.element);return o===l||l.contains(o)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=jr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function AM(s,r){const{top:e,bottom:t,height:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function xM(s,r){const{left:e,right:t,width:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const Cb=Gn({passive:!1,capture:!0});let WR=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},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,Cb)})}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,Cb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"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:Cb}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:Cb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Qe.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,mr.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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const $R={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let YR=(()=>{class s{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=$R){return new NR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new GR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0),g.LFG(g.R0b),g.LFG($n),g.LFG(WR))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),QR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[YR],imports:[Yn]}),s})(),JR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),tI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),cI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[tI,xe,xe]}),s})(),vI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[hn,xe,xe]}),s})();new g.OlP("mat-selectsearch-default-options");let SI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[[E.ez,ve,fr,tb,Sn,yl,il]]}),s})(),MI=(()=>{class s extends Tc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const DI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:un,useClass:MI},{provide:Os,useValue:DI}],imports:[E.ez,tb,hb,ge,v0,QR,Zn,Co,y0,Gc,yl,x0,Sn,Wc,fr,il,Cr,ve,Zo,hn,y_,JR,cI,b0,vI,Dc,el,SI,qr,Ar,$m,A0]}),s})(),Wk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,fr,Sn,Co,MM,Zn,Cr,ve,Zo,x0]}),s})(),Yk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[E.ez,Ar,fr,Zn]}),s})(),Qk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[pA],imports:[E.ez,A0,Zn,y_]}),s})();function IM(s){return new g.vHH(3e3,!1)}function P1(){return typeof window<"u"&&typeof window.document<"u"}function k0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function es(s){switch(s.length){case 0:return new qs;case 1:return s[0];default:return new rm(s)}}function kM(s,r,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.get("offset"),p=u==i,b=p&&a||new Map;d.forEach((H,z)=>{let ae=z,Ve=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),Ve){case"!":Ve=o.get(z);break;case _r:Ve=l.get(z);break;default:Ve=r.normalizeStyleValue(z,ae,Ve,c)}b.set(ae,Ve)}),p||n.push(b),a=b,i=u}),c.length)throw function C1(s){return new g.vHH(3502,!1)}();return n}function V0(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&B0(e,"start",s)));break;case"done":s.onDone(()=>t(e&&B0(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&B0(e,"destroy",s)))}}function B0(s,r,e){const l=O0(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function O0(s,r,e,t,o="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Dn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function VM(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let L0=(s,r)=>!1,BM=(s,r,e)=>[],OM=null;function F0(s){const r=s.parentNode||s.host;return r===OM?null:r}(k0()||typeof Element<"u")&&(P1()?(OM=(()=>document.documentElement)(),L0=(s,r)=>{for(;r;){if(r===s)return!0;r=F0(r)}return!1}):L0=(s,r)=>s.contains(r),BM=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Dl=null,LM=!1;const FM=L0,jM=BM;let NM=(()=>{class s{validateStyleProperty(e){return function I1(s){Dl||(Dl=function k1(){return typeof document<"u"?document.body:null}()||{},LM=!!Dl.style&&"WebkitAppearance"in Dl.style);let r=!0;return Dl.style&&!function R1(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Dl.style,!r&&LM&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Dl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return FM(e,t)}getParentElement(e){return F0(e)}query(e,t,o){return jM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new qs(o,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),j0=(()=>{class s{}return s.NOOP=new NM,s})();const N0="ng-enter",vb="ng-leave",Ab="ng-trigger",xb=".ng-trigger",UM="ng-animating",z0=".ng-animating";function ts(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:U0(parseFloat(r[1]),r[2])}function U0(s,r){return"s"===r?1e3*s:s}function Tb(s,r,e){return s.hasOwnProperty("duration")?s:function O1(s,r,e){let o,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(IM()),{duration:0,delay:0,easing:""};o=U0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=U0(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else o=s;if(!e){let n=!1,i=r.length;o<0&&(r.push(function Jk(){return new g.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function Kk(){return new g.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,IM())}return{duration:o,delay:l,easing:c}}(s,r,e)}function Up(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GM(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function is(s,r=new Map,e){if(e)for(let[t,o]of e)r.set(t,o);for(let[t,o]of s)r.set(t,o);return r}function WM(s,r,e){return e?r+":"+e+";":""}function $M(s){let r="";for(let e=0;e{const l=q0(o);e&&!e.has(o)&&e.set(o,s.style[l]),s.style[l]=t}),k0()&&$M(s))}function Hl(s,r){s.style&&(r.forEach((e,t)=>{const o=q0(t);s.style[o]=""}),k0()&&$M(s))}function Gp(s){return Array.isArray(s)?1==s.length?s[0]:im(s):s}const G0=new RegExp("{{\\s*(.+?)\\s*}}","g");function YM(s){let r=[];if("string"==typeof s){let e;for(;e=G0.exec(s);)r.push(e[1]);G0.lastIndex=0}return r}function Eb(s,r,e){const t=s.toString(),o=t.replace(G0,(l,c)=>{let n=r[c];return null==n&&(e.push(function Xk(s){return new g.vHH(3003,!1)}()),n=""),n.toString()});return o==t?s:o}function Sb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const j1=/-+([a-z0-9])/g;function q0(s){return s.replace(j1,(...r)=>r[1].toUpperCase())}function N1(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function e1(s){return new g.vHH(3004,!1)}()}}function QM(s,r){return window.getComputedStyle(s)[r]}function $1(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function Y1(s,r,e){if(":"==s[0]){const i=function Q1(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function f1(s){return new g.vHH(3015,!1)}()),r;const o=t[1],l=t[2],c=t[3];r.push(JM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&r.push(JM(c,o))}(t,e,r)):e.push(s),e}const Pb=new Set(["true","1"]),Rb=new Set(["false","0"]);function JM(s,r){const e=Pb.has(s)||Rb.has(s),t=Pb.has(r)||Rb.has(r);return(o,l)=>{let c="*"==s||s==o,n="*"==r||r==l;return!c&&e&&"boolean"==typeof o&&(c=o?Pb.has(s):Rb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?Pb.has(r):Rb.has(r)),c&&n}}const J1=new RegExp("s*:selfs*,?","g");function W0(s,r,e,t){return new K1(s).build(r,e,t)}class K1{constructor(r){this._driver=r}build(r,e,t){const o=new eV(e);return this._resetContextStyleTimingState(o),Hn(this,Gp(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function n1(){return new g.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function r1(){return new g.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{YM(i).forEach(a=>{c.hasOwnProperty(a)||l.add(a)})})}),l.size&&(Sb(l.values()),e.errors.push(function a1(s,r){return new g.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,Gp(r.animation),e);return{type:1,matchers:$1(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Pl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:Pl(r.options)}}visitGroup(r,e){const t=e.currentTime;let o=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:Pl(r.options)}}visitAnimate(r,e){const t=function iV(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return $0(Tb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=$0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=Tb(e,r);return $0(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let o,l=r.styles?r.styles:Fe({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=Fe(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of o)"string"==typeof n?n===_r?t.push(n):e.errors.push(new g.vHH(3002,!1)):t.push(GM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const a=e.collectedStyles.get(e.currentQuerySelector),d=a.get(i);let u=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function s1(s,r,e,t,o){return new g.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&a.set(i,{startTime:l,endTime:o}),e.options&&function F1(s,r,e){const t=r.params||{},o=YM(s);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function Zk(s){return new g.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function l1(){return new g.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(Ve=>{const ot=this._makeStyleAst(Ve,e);let mt=null!=ot.offset?ot.offset:function tV(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(ot.styles),Ut=0;return null!=mt&&(l++,Ut=ot.offset=mt),i=i||Ut<0||Ut>1,n=n||Ut0&&l{const mt=p>0?ot==b?1:p*ot:c[ot],Ut=mt*ae;e.currentTime=H+z.delay+Ut,z.duration=Ut,this._validateStyleAst(Ve,e),Ve.offset=mt,t.styles.push(Ve)}),t}visitReference(r,e){return{type:8,animation:Hn(this,Gp(r.animation),e),options:Pl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Pl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Pl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function Z1(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(J1,"")),s=s.replace(/@\*/g,xb).replace(/@\w+/g,e=>xb+"-"+e.slice(1)).replace(/:animating/g,z0),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,Gp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Pl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function h1(){return new g.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Tb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,Gp(r.animation),e),timings:t,options:null}}}class eV{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Pl(s){return s?(s=Up(s)).params&&(s.params=function X1(s){return s?Up(s):null}(s.params)):s={},s}function $0(s,r,e){return{duration:s,delay:r,easing:e}}function Y0(s,r,e,t,o,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class Ib{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const aV=new RegExp(":enter","g"),sV=new RegExp(":leave","g");function Q0(s,r,e,t,o,l=new Map,c=new Map,n,i,a=[]){return(new lV).buildKeyframes(s,r,e,t,o,l,c,n,i,a)}class lV{buildKeyframes(r,e,t,o,l,c,n,i,a,d=[]){a=a||new Ib;const u=new J0(r,e,a,o,l,d,[]);u.options=i;const p=i.delay?ts(i.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[Y0(e,[],[],[],0,p,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?ts(t.duration):null,n=null!=t.delay?ts(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let o=e;const l=r.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=kb);const c=ts(l.delay);o.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let o=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?ts(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Tb(e.params?Eb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,o=r.options||{},l=o.delay?ts(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,o=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=o.currentTime-u+(o.startTime-t.currentTimeline.startTime)}}const kb={};class J0{constructor(r,e,t,o,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Vb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let o=this.options;null!=t.duration&&(o.duration=ts(t.duration)),null!=t.delay&&(o.delay=ts(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Eb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return r}createSubContext(r=null,e,t){const o=e||this.element,l=new J0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=kb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new cV(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,o,l,c){let n=[];if(o&&n.push(this.element),r.length>0){r=(r=r.replace(aV,"."+this._enterClassName)).replace(sV,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(function p1(s){return new g.vHH(3014,!1)}()),n}}class Vb{constructor(r,e,t,o){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Vb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function dV(s,r){const e=new Map;let t;return s.forEach(o=>{if("*"===o){t=t||r.keys();for(let l of t)e.set(l,_r)}else is(o,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const a=Eb(i,l,t);this._pendingStyles.set(n,a),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const a=is(n,new Map,this._backFill);a.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||a.set("offset",i/this.duration),o.push(a)});const l=r.size?Sb(r.values()):[],c=e.size?Sb(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return Y0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class cV extends Vb{constructor(r,e,t,o,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=is(r[0]);i.set("offset",0),l.push(i);const a=is(r[0]);a.set("offset",XM(n)),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let p=is(r[u]);const b=p.get("offset");p.set("offset",XM((e+b*t)/c)),l.push(p)}t=c,e=0,o="",r=l}return Y0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function XM(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class K0{}const uV=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class hV extends K0{normalizePropertyName(r,e){return q0(r)}normalizeStyleValue(r,e,t,o){let l="";const c=t.toString().trim();if(uV.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function t1(s,r){return new g.vHH(3005,!1)}())}return c+l}}function eD(s,r,e,t,o,l,c,n,i,a,d,u,p){return{type:0,element:s,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:p}}const Z0={};class tD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,o){return function pV(s,r,e,t,o){return s.some(l=>l(r,e,t,o))}(this.ast.matchers,r,e,t,o)}buildStyles(r,e,t){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,t):new Map}build(r,e,t,o,l,c,n,i,a,d){const u=[],p=this.ast.options&&this.ast.options.params||Z0,H=this.buildStyles(t,n&&n.params||Z0,u),z=i&&i.params||Z0,ae=this.buildStyles(o,z,u),Ve=new Set,ot=new Map,mt=new Map,Ut="void"===o,Sr={params:fV(z,p),delay:this.ast.options?.delay},rr=d?[]:Q0(r,e,this.ast.animation,l,c,H,ae,Sr,a,u);let nn=0;if(rr.forEach(qa=>{nn=Math.max(qa.duration+qa.delay,nn)}),u.length)return eD(e,this._triggerName,t,o,Ut,H,ae,[],[],ot,mt,nn,u);rr.forEach(qa=>{const Wa=qa.element,mD=Dn(ot,Wa,new Set);qa.preStyleProps.forEach(Rl=>mD.add(Rl));const Wp=Dn(mt,Wa,new Set);qa.postStyleProps.forEach(Rl=>Wp.add(Rl)),Wa!==e&&Ve.add(Wa)});const Ga=Sb(Ve.values());return eD(e,this._triggerName,t,o,Ut,H,ae,rr,Ga,ot,mt,nn)}}function fV(s,r){const e=Up(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class gV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,o=Up(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Eb(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class _V{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new gV(o.style,o.options&&o.options.params||{},t))}),iD(this.states,"true","1"),iD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new tD(r,o,this.states))}),this.fallbackTransition=function bV(s,r,e){return new tD(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,o){return this.transitionFactories.find(c=>c.match(r,e,t,o))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function iD(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const CV=new Ib;class yV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=W0(this._driver,e,t,[]);if(t.length)throw function y1(s){return new g.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const o=r.element,l=kM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(o,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const o=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=Q0(this._driver,e,l,N0,vb,new Map,new Map,t,CV,o),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(o.push(function w1(){return new g.vHH(3300,!1)}()),c=[]),o.length)throw function v1(s){return new g.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((p,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const a=es(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,a),a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function A1(s){return new g.vHH(3301,!1)}();return e}listen(r,e,t,o){const l=O0(e,"","","");return V0(this._getPlayer(r),t,l,o),()=>{}}command(r,e,t,o){if("register"==t)return void this.register(r,o[0]);if("create"==t)return void this.create(r,e,o[0]||{});const l=this._getPlayer(r);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(o[0]));break;case"destroy":this.destroy(r)}}}const nD="ng-animate-queued",X0="ng-animate-disabled",TV=[],rD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class ex{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function HV(s){return s??null}(t?r.value:r),t){const l=Up(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const qp="void",tx=new ex(qp);class SV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,nr(e,this._hostClassName)}listen(r,e,t,o){if(!this._triggers.has(e))throw function x1(s,r){return new g.vHH(3302,!1)}();if(null==t||0==t.length)throw function T1(s){return new g.vHH(3303,!1)}();if(!function PV(s){return"start"==s||"done"==s}(t))throw function E1(s,r){return new g.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(nr(r,Ab),nr(r,Ab+"-"+e),n.set(e,tx)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function S1(s){return new g.vHH(3401,!1)}();return e}trigger(r,e,t,o=!0){const l=this._getTrigger(e),c=new ix(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(nr(r,Ab),nr(r,Ab+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const a=new ex(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n.set(e,a),i||(i=tx),a.value!==qp&&i.value===a.value){if(!function kV(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let o=0;o{Hl(r,ae),Xr(r,Ve)})}return}const p=Dn(this._engine.playersByElement,r,[]);p.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:H}),H||(nr(r,nD),c.onStart(()=>{Bd(r,nD)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let Ve=ae.indexOf(c);Ve>=0&&ae.splice(Ve,1)}}),this.players.push(c),p.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,xb,!0);t.forEach(o=>{if(o[ir])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,t,o){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,a)=>{if(c.set(a,i.value),this._triggers.has(a)){const d=this.trigger(r,a,qp,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&es(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,a=t.get(c)||tx,d=new ex(qp),u=new ix(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)o=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[ir];(!l||l===rD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){nr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=O0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,V0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class MV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new SV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const a=t.indexOf(i);t.splice(a+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return o.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let o=this._namespaceLookup[r];o&&o.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,o){if(Bb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(r,e,t,o){if(!Bb(e))return;const l=e[ir];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),nr(r,X0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Bd(r,X0))}removeNode(r,e,t,o){if(Bb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,t,o,l){this.collectedLeaveElements.push(e),e[ir]={namespaceId:r,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,o,l){return Bb(e)?this._fetchNamespace(r).listen(e,t,o,l):()=>{}}_buildInstruction(r,e,t,o,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,o,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,xb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,z0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return es(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[ir];if(e&&e.setForRemoval){if(r[ir]=rD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(X0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?es(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(r){throw function M1(s){return new g.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ib,o=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ke=this.driver.query(Ge,".ng-animate-queued",!0);for(let tt=0;tt{const tt=N0+z++;H.set(Ke,tt),Ge.forEach(wt=>nr(wt,tt))});const ae=[],Ve=new Set,ot=new Set;for(let Ge=0;GeVe.add(wt)):ot.add(Ke))}const mt=new Map,Ut=sD(p,Array.from(Ve));Ut.forEach((Ge,Ke)=>{const tt=vb+z++;mt.set(Ke,tt),Ge.forEach(wt=>nr(wt,tt))}),r.push(()=>{b.forEach((Ge,Ke)=>{const tt=H.get(Ke);Ge.forEach(wt=>Bd(wt,tt))}),Ut.forEach((Ge,Ke)=>{const tt=mt.get(Ke);Ge.forEach(wt=>Bd(wt,tt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Sr=[],rr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(tt=>{const wt=tt.player,Ri=tt.element;if(Sr.push(wt),this.collectedEnterElements.length){const Ji=Ri[ir];if(Ji&&Ji.setForMove){if(Ji.previousTriggersValues&&Ji.previousTriggersValues.has(tt.triggerName)){const Il=Ji.previousTriggersValues.get(tt.triggerName),ar=this.statesByElement.get(tt.element);if(ar&&ar.has(tt.triggerName)){const Fb=ar.get(tt.triggerName);Fb.value=Il,ar.set(tt.triggerName,Fb)}}return void wt.destroy()}}const ea=!u||!this.driver.containsElement(u,Ri),Pn=mt.get(Ri),ns=H.get(Ri),ri=this._buildInstruction(tt,t,ns,Pn,ea);if(ri.errors&&ri.errors.length)return void rr.push(ri);if(ea)return wt.onStart(()=>Hl(Ri,ri.fromStyles)),wt.onDestroy(()=>Xr(Ri,ri.toStyles)),void o.push(wt);if(tt.isFallbackTransition)return wt.onStart(()=>Hl(Ri,ri.fromStyles)),wt.onDestroy(()=>Xr(Ri,ri.toStyles)),void o.push(wt);const CD=[];ri.timelines.forEach(Ji=>{Ji.stretchStartingKeyframe=!0,this.disabledNodes.has(Ji.element)||CD.push(Ji)}),ri.timelines=CD,t.append(Ri,ri.timelines),c.push({instruction:ri,player:wt,element:Ri}),ri.queriedElements.forEach(Ji=>Dn(n,Ji,[]).push(wt)),ri.preStyleProps.forEach((Ji,Il)=>{if(Ji.size){let ar=i.get(Il);ar||i.set(Il,ar=new Set),Ji.forEach((Fb,ax)=>ar.add(ax))}}),ri.postStyleProps.forEach((Ji,Il)=>{let ar=a.get(Il);ar||a.set(Il,ar=new Set),Ji.forEach((Fb,ax)=>ar.add(ax))})});if(rr.length){const Ge=[];rr.forEach(Ke=>{Ge.push(function D1(s,r){return new g.vHH(3505,!1)}())}),Sr.forEach(Ke=>Ke.destroy()),this.reportError(Ge)}const nn=new Map,Ga=new Map;c.forEach(Ge=>{const Ke=Ge.element;t.has(Ke)&&(Ga.set(Ke,Ke),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,nn))}),o.forEach(Ge=>{const Ke=Ge.element;this._getPreviousPlayers(Ke,!1,Ge.namespaceId,Ge.triggerName,null).forEach(wt=>{Dn(nn,Ke,[]).push(wt),wt.destroy()})});const qa=ae.filter(Ge=>cD(Ge,i,a)),Wa=new Map;oD(Wa,this.driver,ot,a,_r).forEach(Ge=>{cD(Ge,i,a)&&qa.push(Ge)});const Wp=new Map;b.forEach((Ge,Ke)=>{oD(Wp,this.driver,new Set(Ge),i,"!")}),qa.forEach(Ge=>{const Ke=Wa.get(Ge),tt=Wp.get(Ge);Wa.set(Ge,new Map([...Array.from(Ke?.entries()??[]),...Array.from(tt?.entries()??[])]))});const Rl=[],_D=[],bD={};c.forEach(Ge=>{const{element:Ke,player:tt,instruction:wt}=Ge;if(t.has(Ke)){if(d.has(Ke))return tt.onDestroy(()=>Xr(Ke,wt.toStyles)),tt.disabled=!0,tt.overrideTotalTime(wt.totalTime),void o.push(tt);let Ri=bD;if(Ga.size>1){let Pn=Ke;const ns=[];for(;Pn=Pn.parentNode;){const ri=Ga.get(Pn);if(ri){Ri=ri;break}ns.push(Pn)}ns.forEach(ri=>Ga.set(ri,Ri))}const ea=this._buildAnimation(tt.namespaceId,wt,nn,l,Wp,Wa);if(tt.setRealPlayer(ea),Ri===bD)Rl.push(tt);else{const Pn=this.playersByElement.get(Ri);Pn&&Pn.length&&(tt.parentPlayer=es(Pn)),o.push(tt)}}else Hl(Ke,wt.fromStyles),tt.onDestroy(()=>Xr(Ke,wt.toStyles)),_D.push(tt),d.has(Ke)&&o.push(tt)}),_D.forEach(Ge=>{const Ke=l.get(Ge.element);if(Ke&&Ke.length){const tt=es(Ke);Ge.setRealPlayer(tt)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ea.destroyed);Ri.length?RV(this,Ke,Ri):this.processLeaveNode(Ke)}return ae.length=0,Rl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ke=this.players.indexOf(Ge);this.players.splice(Ke,1)}),Ge.play()}),Rl}elementContainsData(r,e){let t=!1;const o=e[ir];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==qp;n.forEach(a=>{a.queued||!i&&a.triggerName!=o||c.push(a)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Dn(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Hl(l,e.fromStyles)}_buildAnimation(r,e,t,o,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,p=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[ir];if(ae&&ae.removedBeforeQueried)return new qs(H.duration,H.delay);const Ve=z!==i,ot=function IV(s){const r=[];return lD(s,r),r}((t.get(z)||TV).map(nn=>nn.getRealPlayer())).filter(nn=>!!nn.element&&nn.element===z),mt=l.get(z),Ut=c.get(z),Sr=kM(0,this._normalizer,0,H.keyframes,mt,Ut),rr=this._buildPlayer(H,Sr,ot);if(H.subTimeline&&o&&u.add(z),Ve){const nn=new ix(r,n,z);nn.setRealPlayer(rr),a.push(nn)}return rr});a.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function DV(s,r,e){let t=s.get(r);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>nr(H,UM));const b=es(p);return b.onDestroy(()=>{d.forEach(H=>Bd(H,UM)),Xr(i,e.toStyles)}),u.forEach(H=>{Dn(o,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new qs(r.duration,r.delay)}}class ix{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new qs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>V0(r,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Bb(s){return s&&1===s.nodeType}function aD(s,r){const e=s.style.display;return s.style.display=r??"none",e}function oD(s,r,e,t,o){const l=[];e.forEach(i=>l.push(aD(i)));const c=[];t.forEach((i,a)=>{const d=new Map;i.forEach(u=>{const p=r.computeStyle(a,u,o);d.set(u,p),(!p||0==p.length)&&(a[ir]=EV,c.push(a))}),s.set(a,d)});let n=0;return e.forEach(i=>aD(i,l[n++])),c}function sD(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const o=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:o.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function nr(s,r){s.classList?.add(r)}function Bd(s,r){s.classList?.remove(r)}function RV(s,r,e){es(e).onDone(()=>s.processLeaveNode(r))}function lD(s,r){for(let e=0;eo.add(l)):r.set(s,t),e.delete(s),!0}class Ob{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new MV(r,e,t),this._timelineEngine=new yV(r,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(r,e,t,o,l){const c=r+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=W0(this._driver,l,i,[]);if(i.length)throw function b1(s,r){return new g.vHH(3404,!1)}();n=function mV(s,r,e){return new _V(s,r,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,o){this._transitionEngine.insertNode(r,e,t,o)}onRemove(r,e,t,o){this._transitionEngine.removeNode(r,e,o||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,o){if("@"==t.charAt(0)){const[l,c]=VM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(r,e,t,o)}listen(r,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=VM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,o,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let BV=(()=>{class s{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xr(this._element,this._initialStyles),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Hl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hl(this._element,this._endStyles),this._endStyles=null),Xr(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function nx(s){let r=null;return s.forEach((e,t)=>{(function OV(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class dD{constructor(r,e,t,o){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&r.set(o,this._finished?t:QM(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class LV{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return FM(r,e)}getParentElement(r){return F0(r)}query(r,e,t){return jM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const a=new Map,d=c.filter(b=>b instanceof dD);(function z1(s,r){return 0===s||0===r})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>a.set(z,H))});let u=function L1(s){return s.length?s[0]instanceof Map?s:s.map(r=>GM(r)):[]}(e).map(b=>is(b));u=function U1(s,r,e){if(e.size&&r.length){let t=r[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,QM(s,n)))}}return r}(r,u,a);const p=function VV(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=nx(r[0]),r.length>1&&(t=nx(r[r.length-1]))):r instanceof Map&&(e=nx(r)),e||t?new BV(s,e,t):null}(r,u);return new dD(r,u,i,p)}}let FV=(()=>{class s extends tm{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 o=Array.isArray(e)?im(e):e;return uD(this._renderer,null,t,"register",[o]),new jV(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(E.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class jV extends class Gs{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new NV(this._id,r,e||{},this._renderer)}}class NV{constructor(r,e,t,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return uD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function uD(s,r,e,t,o){return s.setProperty(r,`@@${e}:${t}`,o)}const hD="@.disabled";let zV=(()=>{class s{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new pD("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new UV(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(Ob),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class pD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,o=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,o){this.delegate.setAttribute(r,e,t,o)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,o){this.delegate.setStyle(r,e,t,o)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==hD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class UV extends pD{constructor(r,e,t,o){super(e,t,o),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const o=function GV(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function qV(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const fD=[{provide:tm,useClass:FV},{provide:K0,useFactory:function $V(){return new hV}},{provide:Ob,useClass:(()=>{class s extends Ob{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(E.K0),g.LFG(j0),g.LFG(K0),g.LFG(g.z2F))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:g.FYo,useFactory:function YV(s,r,e){return new zV(s,r,e)},deps:[ue,Ob,g.R0b]}],rx=[{provide:j0,useFactory:()=>new LV},{provide:g.QbO,useValue:"BrowserAnimations"},...fD],gD=[{provide:j0,useClass:NM},{provide:g.QbO,useValue:"NoopAnimations"},...fD];let QV=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?gD:rx}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:rx,imports:[na]}),s})();const JV={provide:y.TP,useExisting:(0,g.Gpc)(()=>Jh),multi:!0};function KV(s){return new _H(s,"./assets/i18n/",".json")}function ZV(s){const r={basePath:s.getProperty("api_url")};return new rt(r)}const XV=s=>()=>s.loadConfigs();let eB=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(m_),g.LFG(sl))},s.\u0275mod=g.oAB({type:s,bootstrap:[wo]}),s.\u0275inj=g.cJS({providers:[m_,{provide:g.ip1,useFactory:XV,multi:!0,deps:[wH]},{provide:rt,useFactory:ZV,deps:[Tr]},Jh,JV,{provide:vH,useClass:hA},{provide:xa.Hy,useFactory:()=>localStorage}],imports:[na,QV,y.JF,jh,mH,A0,Wk,Sn,MM,x0,$m,Yk,xa.zr.forRoot(),Qk,Zn.forRoot({loader:{provide:qe,useFactory:KV,deps:[y.eN]}})]}),s})();(0,g.G48)(),Ye().bootstrapModule(eB).catch(s=>console.error(s))},1302:function(F,N,x){var E;!function(g,V){var O={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var V=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 O(ne,J,ie,de,he){for(var me,Be,Oe,we,_e,Ae,$e,De,Se,Ee,oe,se,fe;he>=64;){for(me=J[0],Be=J[1],Oe=J[2],we=J[3],_e=J[4],Ae=J[5],$e=J[6],De=J[7],Ee=0;Ee<16;Ee++)ne[Ee]=(255&ie[oe=de+4*Ee])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Ee=16;Ee<64;Ee++)ne[Ee]=((se=((Se=ne[Ee-2])>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10)+ne[Ee-7]|0)+((fe=((Se=ne[Ee-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+ne[Ee-16]|0);for(Ee=0;Ee<64;Ee++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&Ae^~_e&$e)|0)+(De+(V[Ee]+ne[Ee]|0)|0)|0,fe=((me>>>2|me<<30)^(me>>>13|me<<19)^(me>>>22|me<<10))+(me&Be^me&Oe^Be&Oe)|0,De=$e,$e=Ae,Ae=_e,_e=we+se|0,we=Oe,Oe=Be,Be=me,me=se+fe|0;J[0]+=me,J[1]+=Be,J[2]+=Oe,J[3]+=we,J[4]+=_e,J[5]+=Ae,J[6]+=$e,J[7]+=De,de+=64,he-=64}return de}var I=function(){function ne(){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 ne.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},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,me=ie<<3,Be=ie%64<56?64:128;this.buffer[de]=128;for(var Oe=de+1;Oe>>24&255,this.buffer[Be-7]=he>>>16&255,this.buffer[Be-6]=he>>>8&255,this.buffer[Be-5]=he>>>0&255,this.buffer[Be-4]=me>>>24&255,this.buffer[Be-3]=me>>>16&255,this.buffer[Be-2]=me>>>8&255,this.buffer[Be-1]=me>>>0&255,O(this.temp,this.state,this.buffer,0,Be),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},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}g.HMAC=j,g.hash=W,g.default=W,g.hmac=Q;var $=new Uint8Array(g.digestLength);g.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),me=Q(J,ne),Be=new j(me),Oe=new Uint8Array(Be.digestLength),we=Oe.length,_e=new Uint8Array(de),Ae=0;Ae>>24&255,Be[1]=$e>>>16&255,Be[2]=$e>>>8&255,Be[3]=$e>>>0&255,he.reset(),he.update(J),he.update(Be),he.finish(we);for(var De=0;De=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Oe=he.result;Oe=de?Oe:Oe.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Oe:location=Oe,ne=null},he.readAsDataURL($)}else{var me=W.URL||W.webkitURL,Be=me.createObjectURL($);ne?ne.location=Be:location.href=Be,ne=null,setTimeout(function(){me.revokeObjectURL(Be)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(N,[]))&&(F.exports=g)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var E=x(930),g=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof E.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,g.Nn)(te)}(J)?J:new E.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:me,source:Be}=this;he.add(me?me.call(he,Be):Be?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const me=new E.Hp({next:Be=>{try{J(Be)}catch(Oe){he(Oe),me.unsubscribe()}},error:he,complete:de});this.subscribe(me)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(me=>he=me,me=>de(me),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var E=x(9751),g=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends E.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?g.Lc:(this.currentObservers=null,J.push(U),new g.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new E.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:g.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var E=x(576),g=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,Ae){return{kind:we,value:_e,error:Ae}}var $=x(3410),U=x(2806);class te extends g.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Nn)(_e)&&_e.add(this)):this.destination=Oe}static create(_e,Ae,$e){return new de(_e,Ae,$e)}next(_e){this.isStopped?Be(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Be(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Be(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:Ae}=this;if(Ae.next)try{Ae.next(_e)}catch($e){he($e)}}error(_e){const{partialObserver:Ae}=this;if(Ae.error)try{Ae.error(_e)}catch($e){he($e)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(Ae){he(Ae)}}}class de extends te{constructor(_e,Ae,$e){let De;if(super(),(0,E.m)(_e)||!_e)De={next:_e??void 0,error:Ae??void 0,complete:$e??void 0};else{let Se;this&&V.v.useDeprecatedNextContext?(Se=Object.create(_e),Se.unsubscribe=()=>this.unsubscribe(),De={next:_e.next&&J(_e.next,Se),error:_e.error&&J(_e.error,Se),complete:_e.complete&&J(_e.complete,Se)}):De=_e}this.destination=new ie(De)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Be(we,_e){const{onStoppedNotification:Ae}=V.v;Ae&&$.z.setTimeout(()=>Ae(we,_e))}const Oe={closed:!0,next:I.Z,error:function me(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var E=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,E.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,E.m)(G.remove)&&(0,E.m)(G.add)&&(0,E.m)(G.unsubscribe)}function Q(G){(0,E.m)(G)?G():G.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>E});const E={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var E=x(9751),g=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,g.D)(ne);if(0===de.length)return(0,V.D)([],J);const me=new E.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,me=new Array(he);let Be=he,Oe=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let Ae=!1;_e.subscribe((0,Q.x)(de,$e=>{me[we]=$e,Ae||(Ae=!0,Oe--),Oe||de.next(ie(me.slice()))},()=>{--Be||de.complete()}))},de)},de)}}(de,J,he?Be=>(0,W.n)(he,Be):O.y));return ie?me.pipe((0,I.Z)(ie)):me}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var E=x(8189),V=x(3269),O=x(2076);function I(...j){return function g(){return(0,E.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>g});const g=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>$e});var E=x(8421),g=x(9672),V=x(4482),O=x(5403);function I(De,Se=0){return(0,V.e)((Ee,oe)=>{Ee.subscribe((0,O.x)(oe,se=>(0,g.f)(oe,De,()=>oe.next(se),Se),()=>(0,g.f)(oe,De,()=>oe.complete(),Se),se=>(0,g.f)(oe,De,()=>oe.error(se),Se)))})}function j(De,Se=0){return(0,V.e)((Ee,oe)=>{oe.add(De.schedule(()=>Ee.subscribe(oe),Se))})}var G=x(9751),U=x(2202),te=x(576);function J(De,Se){if(!De)throw new Error("Iterable cannot be null");return new G.y(Ee=>{(0,g.f)(Ee,Se,()=>{const oe=De[Symbol.asyncIterator]();(0,g.f)(Ee,Se,()=>{oe.next().then(se=>{se.done?Ee.complete():Ee.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),me=x(6495),Be=x(2206),Oe=x(4532),we=x(3260);function $e(De,Se){return Se?function Ae(De,Se){if(null!=De){if((0,ie.c)(De))return function W(De,Se){return(0,E.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,he.z)(De))return function $(De,Se){return new G.y(Ee=>{let oe=0;return Se.schedule(function(){oe===De.length?Ee.complete():(Ee.next(De[oe++]),Ee.closed||this.schedule())})})}(De,Se);if((0,de.t)(De))return function Q(De,Se){return(0,E.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,Be.D)(De))return J(De,Se);if((0,me.T)(De))return function ne(De,Se){return new G.y(Ee=>{let oe;return(0,g.f)(Ee,Se,()=>{oe=De[U.h](),(0,g.f)(Ee,Se,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Ee.error(ue)}fe?Ee.complete():Ee.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(De,Se);if((0,we.L)(De))return function _e(De,Se){return J((0,we.Q)(De),Se)}(De,Se)}throw(0,Oe.z)(De)}(De,Se):(0,E.Xf)(De)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var E=x(655),g=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const Ae=we[te.L]();if((0,$.m)(Ae.subscribe))return Ae.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,g.z)(we))return function ie(we){return new O.y(_e=>{for(let Ae=0;Ae{we.then(Ae=>{_e.closed||(_e.next(Ae),_e.complete())},Ae=>_e.error(Ae)).then(null,U.h)})}(we);if((0,j.D)(we))return me(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const Ae of we)if(_e.next(Ae),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Be(we){return me((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function me(we){return new O.y(_e=>{(function Oe(we,_e){var Ae,$e,De,Se;return(0,E.mG)(this,void 0,void 0,function*(){try{for(Ae=(0,E.KL)(we);!($e=yield Ae.next()).done;)if(_e.next($e.value),_e.closed)return}catch(Ee){De={error:Ee}}finally{try{$e&&!$e.done&&(Se=Ae.return)&&(yield Se.call(Ae))}finally{if(De)throw De.error}}_e.complete()})})(we,_e).catch(Ae=>_e.error(Ae))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var E=x(8189),g=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,g.Xf)($[0]):(0,E.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var E=x(3269),g=x(2076);function V(...O){const I=(0,E.yG)(O);return(0,g.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var E=x(9751),g=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,g.Xf)(Q[0]):new E.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var E=x(9751),g=x(576);function V(O,I){const j=(0,g.m)(O)?O:()=>O,W=Q=>Q.error(j());return new E.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var E=x(9751),g=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=g.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new E.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>g});var E=x(930);function g(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends E.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var E=x(8421),g=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,g.x)(W,void 0,void 0,U=>{$=(0,E.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var E=x(5577),g=x(576);function V(O,I){return(0,g.m)(I)?(0,E.z)(O,I,1):(0,E.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var E=x(4986),g=x(4482),V=x(5403);function O(I,j=E.z){return(0,g.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Q.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var E=x(4482),g=x(5403);function V(O){return(0,E.e)((I,j)=>{let W=!1;I.subscribe((0,g.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var E=x(4986),g=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,g.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,J=E.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var E=x(4482),g=x(5403);function V(O,I){return(0,E.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var E=x(6805),g=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,g.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new E.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var E=x(4482),g=x(5403);function V(O,I){return(0,E.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});var E=x(4004);function g(V){return(0,E.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var E=x(5577),g=x(4671);function V(O=1/0){return(0,E.z)(g.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var E=x(4004),g=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,E.U)((J,ie)=>$(te,J,ne,ie))((0,g.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let me=0,Be=0,Oe=!1;const we=()=>{Oe&&!he.length&&!me&&$.complete()},_e=$e=>me{J&&$.next($e),me++;let De=!1;(0,g.Xf)(U($e,Be++)).subscribe((0,I.x)($,Se=>{ne?.(Se),J?_e(Se):$.next(Se)},()=>{De=!0},void 0,()=>{if(De)try{for(me--;he.length&&meAe(Se)):Ae(Se)}we()}catch(Se){$.error(Se)}}))};return G.subscribe((0,I.x)($,_e,()=>{Oe=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var E=x(8421),g=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new g.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,me=!1;const Be=()=>{J?.unsubscribe(),J=void 0},Oe=()=>{Be(),ne=ie=void 0,he=me=!1},we=()=>{const _e=ne;Oe(),_e?.unsubscribe()};return(0,O.e)((_e,Ae)=>{de++,!me&&!he&&Be();const $e=ie=ie??Q();Ae.add(()=>{de--,0===de&&!me&&!he&&(J=j(we,U))}),$e.subscribe(Ae),!ne&&de>0&&(ne=new V.Hp({next:De=>$e.next(De),error:De=>{me=!0,Be(),J=j(Oe,G,De),$e.error(De)},complete:()=>{he=!0,Be(),J=j(Oe,$),$e.complete()}}),(0,E.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var E=x(8421),g=x(4482),V=x(5403);function O(I,j){return(0,g.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,E.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var E=x(515),g=x(4482),V=x(5403);function O(I){return I<=0?()=>E.E:(0,g.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var E=x(576),g=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,E.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,g.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var E=x(6805),g=x(4482),V=x(5403);function O(j=I){return(0,g.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new E.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>G});var E=x(4986),g=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??E.z,meta:he=null}=(0,g.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((me,Be)=>{let Oe,we,_e=null,Ae=0;const $e=De=>{we=(0,W.f)(Be,de,()=>{try{Oe.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:Ae})).subscribe(Be)}catch(Se){Be.error(Se)}},De)};Oe=me.subscribe((0,j.x)(Be,De=>{we?.unsubscribe(),Ae++,Be.next(_e=De),J>0&&$e(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!Ae&&$e(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Q(U)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var E=x(727);class g extends E.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends g{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var E=x(6063);class g{constructor(I,j=g.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}g.now=E.l.now;class V extends g{constructor(I,j=g.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var E=x(4408);const V=new(x(7565).v)(E.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>E});const E={now:()=>(E.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>E});const E={setTimeout(g,V,...O){const{delegate:I}=E;return I?.setTimeout?I.setTimeout(g,V,...O):setTimeout(g,V,...O)},clearTimeout(g){const{delegate:V}=E;return(V?.clearTimeout||clearTimeout)(g)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});const g=function E(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>E});const E="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});const g=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var E=x(576),g=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,E.m)(V(W))?W.pop():void 0}function I(W){return(0,g.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:E}=Array,{getPrototypeOf:g,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(E(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&g(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function E(g,V){if(g){const O=g.indexOf(V);0<=O&&g.splice(O,1)}}x.d(N,{P:()=>E})},3888:(F,N,x)=>{"use strict";function E(g){const O=g(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>E})},1810:(F,N,x)=>{"use strict";function E(g,V){return g.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>E})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var E=x(2416);let g=null;function V(I){if(E.v.useDeprecatedSynchronousErrorHandling){const j=!g;if(j&&(g={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=g;if(g=null,W)throw Q}}else I()}function O(I){E.v.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=I)}},9672:(F,N,x)=>{"use strict";function E(g,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?g.add(this.schedule(null,I)):this.unsubscribe()},I);if(g.add(W),!j)return W}x.d(N,{f:()=>E})},4671:(F,N,x)=>{"use strict";function E(g){return g}x.d(N,{y:()=>E})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>E});const E=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>g});var E=x(576);function g(V){return Symbol.asyncIterator&&(0,E.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function E(g){return g instanceof Date&&!isNaN(g)}x.d(N,{q:()=>E})},576:(F,N,x)=>{"use strict";function E(g){return"function"==typeof g}x.d(N,{m:()=>E})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var E=x(8822),g=x(576);function V(O){return(0,g.m)(O[E.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var E=x(2202),g=x(576);function V(O){return(0,g.m)(O?.[E.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>g});var E=x(576);function g(V){return(0,E.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var E=x(655),g=x(576);function V(I){return(0,E.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,E.qq)(W.read());if(G)return yield(0,E.qq)(void 0);yield yield(0,E.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,g.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});var E=x(576);function g(V){return V&&(0,E.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>g,e:()=>V});var E=x(576);function g(O){return(0,E.m)(O?.lift)}function V(O){return I=>{if(g(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var E=x(4004);const{isArray:g}=Array;function O(I){return(0,E.U)(j=>function V(I,j){return g(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function E(){}x.d(N,{Z:()=>E})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>g});var E=x(4671);function g(...O){return V(O)}function V(O){return 0===O.length?E.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var E=x(2416),g=x(3410);function V(O){g.z.setTimeout(()=>{const{onUnhandledError:I}=E.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function E(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>E})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,at){function vt(Ai){try{Le(ue.next(Ai))}catch(Rn){at(Rn)}}function Dt(Ai){try{Le(ue.throw(Ai))}catch(Rn){at(Rn)}}function Le(Ai){Ai.done?He(Ai.value):function Ie(He){return He instanceof fe?He:new fe(function(at){at(He)})}(Ai.value).then(vt,Dt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function me(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ue=fe.apply(oe,se||[]),He=[];return Ie={},at("next"),at("throw"),at("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function at(Gt){ue[Gt]&&(Ie[Gt]=function(xt){return new Promise(function(yn,ai){He.push([Gt,xt,yn,ai])>1||vt(Gt,xt)})})}function vt(Gt,xt){try{!function Dt(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,Ai):Rn(He[0][2],Gt)}(ue[Gt](xt))}catch(yn){Rn(He[0][3],yn)}}function Le(Gt){vt("next",Gt)}function Ai(Gt){vt("throw",Gt)}function Rn(Gt,xt){Gt(xt),He.shift(),He.length&&vt(He[0][0],He[0][1])}}function Oe(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(at){return new Promise(function(vt,Dt){!function Ie(He,at,vt,Dt){Promise.resolve(Dt).then(function(Le){He({value:Le,done:vt})},at)}(vt,Dt,(at=oe[He](at)).done,at.value)})}}}x.d(N,{FC:()=>me,KL:()=>Oe,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Oe,EM:()=>Rr,HT:()=>I,JF:()=>Oi,K0:()=>W,Mx:()=>ki,NF:()=>to,O5:()=>Et,PC:()=>la,RF:()=>sr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Be,bD:()=>Bi,ez:()=>cr,n9:()=>Mi,q:()=>V,w_:()=>j});var E=x(4650);let g=null;function V(){return g}function I(M){g||(g=M)}class j{}const W=new E.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=E.Yz7({token:M,factory:function(){return function G(){return(0,E.LFG)(U)}()},providedIn:"platform"}),M})();const $=new E.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(E.LFG(W))},M.\u0275prov=E.Yz7({token:M,factory:function(){return function ne(){return new U((0,E.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=E.Yz7({token:M,factory:function(){return(0,E.f3M)(Be)},providedIn:"root"}),M})();const me=new E.OlP("appBaseHref");let Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,E.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(E.LFG(Q),E.LFG(me,8))},M.\u0275prov=E.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Oe=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(E.LFG(Q),E.LFG(me,8))},M.\u0275prov=E.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new E.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie($e(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function Ae(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,$e(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(E.LFG(he))},M.\u0275prov=E.Yz7({token:M,factory:function(){return function _e(){return new we((0,E.LFG)(he))}()},providedIn:"root"}),M})();function $e(M){return M.replace(/\/index.html$/,"")}function ki(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Et=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new Xi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){sa("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){sa("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(E.Y36(E.s_b),E.Y36(E.Rgc))},M.\u0275dir=E.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class Xi{constructor(){this.$implicit=null,this.ngIf=null}}function sa(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,E.AaK)(k)}'.`)}class Bn{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 sr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Bn(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(sr,9))},M.\u0275dir=E.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),la=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),ce=-1===ee.indexOf("-")?void 0:E.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ee,ce)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(E.Y36(E.SBq),E.Y36(E.aQg),E.Y36(E.Qsj))},M.\u0275dir=E.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),cr=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=E.oAB({type:M}),M.\u0275inj=E.cJS({}),M})();const Bi="browser";function to(M){return M===Bi}let Rr=(()=>{class M{}return M.\u0275prov=(0,E.Yz7)({token:M,providedIn:"root",factory:()=>new wi((0,E.LFG)(W),window)}),M})();class wi{constructor(k,D){this.document=k,this.window=D,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 D=function io(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const ce=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(ce)return ce}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=hs(this.window.history)||hs(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function hs(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Oi{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Ld,LE:()=>me,TP:()=>vt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Oe});var E=x(6895),g=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const le=q.indexOf(":");if(le>0){const Te=q.slice(0,le),Xe=Te.toLowerCase(),st=q.slice(le+1).trim();this.maybeSetNormalizedName(Te,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(st):this.headers.set(Xe,[st])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let le=Y[q];const Te=q.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(Te,le),this.maybeSetNormalizedName(q,Te))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let le=Y.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Y.name,q);const Te=("a"===Y.op?this.headers.get(q):void 0)||[];Te.push(...le),this.headers.set(q,Te);break;case"d":const Xe=Y.value;if(Xe){let st=this.headers.get(q);if(!st)return;st=st.filter(ze=>-1===Xe.indexOf(ze)),0===st.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,st)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class me{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Te=>{const Xe=Te.indexOf("="),[st,ze]=-1==Xe?[Y.decodeKey(Te),""]:[Y.decodeKey(Te.slice(0,Xe)),Y.decodeValue(Te.slice(Xe+1))],Je=q.get(st)||[];Je.push(ze),q.set(st,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const le=Y.fromObject[q],Te=Array.isArray(le)?le.map(he):[he(le)];this.map.set(q,Te)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(le=>{const Te=Y[le];Array.isArray(Te)?Te.forEach(Xe=>{q.push({param:le,value:Xe,op:"a"})}):q.push({param:le,value:Te,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(le=>q+"="+this.encoder.encodeValue(le)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new me({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let le=this.map.get(Y.param)||[];const Te=le.indexOf(he(Y.value));-1!==Te&&le.splice(Te,1),le.length>0?this.map.set(Y.param,le):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Oe{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function Ae(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function $e(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Se{constructor(Y,q,le,Te){let Xe;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==le?le:null,Xe=Te):Xe=le,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new $),this.context||(this.context=new Oe),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=q;else{const ze=q.indexOf("?");this.urlWithParams=q+(-1===ze?"?":zeKi.set(et,Y.setHeaders[et]),Je)),Y.setParams&&(ti=Object.keys(Y.setParams).reduce((Ki,et)=>Ki.set(et,Y.setParams[et]),ti)),new Se(q,le,Xe,{params:ti,headers:Je,context:bt,reportProgress:ze,responseType:Te,withCredentials:st})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class oe{constructor(Y,q=200,le="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||le,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Ee.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Ee.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Ie(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,le,Te={}){let Xe;if(q instanceof Se)Xe=q;else{let Je,ti;Je=Te.headers instanceof $?Te.headers:new $(Te.headers),Te.params&&(ti=Te.params instanceof me?Te.params:new me({fromObject:Te.params})),Xe=new Se(q,le,void 0!==Te.body?Te.body:null,{headers:Je,context:Te.context,params:ti,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const st=(0,V.of)(Xe).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Se||"events"===Te.observe)return st;const ze=st.pipe((0,j.h)(Je=>Je instanceof fe));switch(Te.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return ze.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return ze.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return ze.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return ze.pipe((0,W.U)(Je=>Je.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(q,le={}){return this.request("DELETE",q,le)}get(q,le={}){return this.request("GET",q,le)}head(q,le={}){return this.request("HEAD",q,le)}jsonp(q,le){return this.request("JSONP",q,{params:(new me).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,le={}){return this.request("OPTIONS",q,le)}patch(q,le,Te={}){return this.request("PATCH",q,Ie(Te,le))}post(q,le,Te={}){return this.request("POST",q,Ie(Te,le))}put(q,le,Te={}){return this.request("PUT",q,Ie(Te,le))}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(Q))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class at{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const vt=new g.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ce{intercept(q,le){return le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const $a=/^\)\]\}',?\n/;let Ya=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(le=>{const Te=this.xhrFactory.build();if(Te.open(q.method,q.urlWithParams),q.withCredentials&&(Te.withCredentials=!0),q.headers.forEach((Tt,Rt)=>Te.setRequestHeader(Tt,Rt.join(","))),q.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Tt=q.detectContentTypeHeader();null!==Tt&&Te.setRequestHeader("Content-Type",Tt)}if(q.responseType){const Tt=q.responseType.toLowerCase();Te.responseType="json"!==Tt?Tt:"text"}const Xe=q.serializeBody();let st=null;const ze=()=>{if(null!==st)return st;const Tt=Te.statusText||"OK",Rt=new $(Te.getAllResponseHeaders()),rn=function Od(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Te)||q.url;return st=new se({headers:Rt,status:Te.status,statusText:Tt,url:rn}),st},Je=()=>{let{headers:Tt,status:Rt,statusText:rn,url:Dr}=ze(),gi=null;204!==Rt&&(gi=typeof Te.response>"u"?Te.responseText:Te.response),0===Rt&&(Rt=gi?200:0);let Hr=Rt>=200&&Rt<300;if("json"===q.responseType&&"string"==typeof gi){const Pr=gi;gi=gi.replace($a,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ra){gi=Pr,Hr&&(Hr=!1,gi={error:ra,text:gi})}}Hr?(le.next(new fe({body:gi,headers:Tt,status:Rt,statusText:rn,url:Dr||void 0})),le.complete()):le.error(new ue({error:gi,headers:Tt,status:Rt,statusText:rn,url:Dr||void 0}))},ti=Tt=>{const{url:Rt}=ze(),rn=new ue({error:Tt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Rt||void 0});le.error(rn)};let bt=!1;const Ki=Tt=>{bt||(le.next(ze()),bt=!0);let Rt={type:Ee.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Rt.total=Tt.total),"text"===q.responseType&&!!Te.responseText&&(Rt.partialText=Te.responseText),le.next(Rt)},et=Tt=>{let Rt={type:Ee.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Rt.total=Tt.total),le.next(Rt)};return Te.addEventListener("load",Je),Te.addEventListener("error",ti),Te.addEventListener("timeout",ti),Te.addEventListener("abort",ti),q.reportProgress&&(Te.addEventListener("progress",Ki),null!==Xe&&Te.upload&&Te.upload.addEventListener("progress",et)),Te.send(Xe),le.next({type:Ee.Sent}),()=>{Te.removeEventListener("error",ti),Te.removeEventListener("abort",ti),Te.removeEventListener("load",Je),Te.removeEventListener("timeout",ti),q.reportProgress&&(Te.removeEventListener("progress",Ki),null!==Xe&&Te.upload&&Te.upload.removeEventListener("progress",et)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(E.JF))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new g.OlP("XSRF_COOKIE_NAME"),kn=new g.OlP("XSRF_HEADER_NAME");class ta{}let Qa=(()=>{class Ce{constructor(q,le,Te){this.doc=q,this.platform=le,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,E.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(E.K0),g.LFG(g.Lbi),g.LFG(In))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Ye=(()=>{class Ce{constructor(q,le){this.tokenService=q,this.headerName=le}intercept(q,le){const Te=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Te.startsWith("http://")||Te.startsWith("https://"))return le.handle(q);const Xe=this.tokenService.getToken();return null!==Xe&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,Xe)})),le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(ta),g.LFG(kn))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),li=(()=>{class Ce{constructor(q,le){this.backend=q,this.injector=le,this.chain=null}handle(q){if(null===this.chain){const le=this.injector.get(vt,[]);this.chain=le.reduceRight((Te,Xe)=>new at(Te,Xe),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(G),g.LFG(g.zs3))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),na=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Ye,useClass:Dt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[Ye,{provide:vt,useExisting:Ye,multi:!0},{provide:ta,useClass:Qa},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Ld=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[He,{provide:Q,useClass:li},Ya,{provide:G,useExisting:Ya}],imports:[na.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>Cf,$Z:()=>jy,AFp:()=>ap,ALo:()=>nA,AaK:()=>Q,BQk:()=>wh,CHM:()=>xn,CRH:()=>uA,CZH:()=>Wo,CqO:()=>Tw,D6c:()=>XA,EJc:()=>V_,EiD:()=>jf,EpF:()=>Aw,F$t:()=>bm,F4k:()=>xw,FYo:()=>QC,FiY:()=>wa,G48:()=>Ap,Gf:()=>od,GfV:()=>JC,GkF:()=>pm,Gpc:()=>U,Hsn:()=>Pw,Ikx:()=>Mh,JOm:()=>En,JVY:()=>bu,KtG:()=>Gi,L6k:()=>hi,LAX:()=>vo,LFG:()=>Jt,LSH:()=>zf,Lbi:()=>sp,Lck:()=>VE,MAs:()=>um,MMx:()=>nd,NdJ:()=>gm,O4$:()=>jn,OlP:()=>Pt,Oqu:()=>Dm,PXZ:()=>FA,Q6J:()=>Cr,QGY:()=>fm,QP$:()=>Cl,QbO:()=>I_,Qsj:()=>zx,R0b:()=>bn,RDi:()=>xC,Rgc:()=>ad,SBq:()=>bc,Sil:()=>lp,Suo:()=>Qh,TTD:()=>Za,TgZ:()=>bh,Udp:()=>Tm,VKq:()=>l_,WFA:()=>mm,XFs:()=>Ye,Xpm:()=>rn,Xts:()=>Uf,Y36:()=>Ls,YKP:()=>Lv,YNc:()=>dm,Yjl:()=>Vl,Yz7:()=>xt,ZZ4:()=>Md,_Bn:()=>Ov,_UZ:()=>Ch,_Vd:()=>_c,_c5:()=>ZA,_uU:()=>Kw,aQg:()=>Dp,c2e:()=>k_,cJS:()=>ai,cg1:()=>Sn,d8E:()=>Dh,dDg:()=>up,dqk:()=>le,eBb:()=>Cx,eFA:()=>xl,ekj:()=>Em,eoX:()=>hp,f3M:()=>cu,g9A:()=>op,h0i:()=>fl,hGG:()=>Z_,hij:()=>xh,iGM:()=>g_,ifc:()=>q,ip1:()=>rp,kL8:()=>zm,kcU:()=>Zd,lG2:()=>Fd,lcZ:()=>rA,lnq:()=>Hm,lqb:()=>To,lri:()=>Fa,mCW:()=>cc,n5z:()=>_f,n_E:()=>Oh,oAB:()=>Pr,oxw:()=>Dw,pB0:()=>Vf,q3G:()=>ni,qLn:()=>Cc,qOj:()=>Vo,qZA:()=>Uc,qzn:()=>wo,rWj:()=>Yo,s9C:()=>vh,sBO:()=>Tl,sIi:()=>Ws,s_b:()=>Fh,soG:()=>tn,tb:()=>Al,tp0:()=>Ts,uIk:()=>fh,vHH:()=>ie,vpe:()=>xr,wAp:()=>qe,xp6:()=>Hy,ynx:()=>yh,z2F:()=>wp,z3N:()=>Fr,zSh:()=>Wf,zs3:()=>Da});var E=x(7579),g=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let f in h)if(h[f]===j)return f;throw Error("Could not find renamed property on target object.")}function W(h,f){for(const m in f)f.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=f[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const m=f.indexOf("\n");return-1===m?f:f.substring(0,m)}function G(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const $=j({__forward_ref__:j});function U(h){return h.__forward_ref__=U,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===U}class ie extends Error{constructor(f,m){super(function de(h,f){return`NG0${Math.abs(h)}${f?": "+f.trim():""}`}(f,m)),this.code=f}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,f){throw new ie(-201,!1)}function Dt(h,f){null==h&&function Le(h,f,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${f} <=Actual]`))}(f,h,null,"!=")}function xt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ai(h){return{providers:h.providers||[],imports:h.imports||[]}}function Mr(h){return kl(h,In)||kl(h,ta)}function kl(h,f){return h.hasOwnProperty(f)?h[f]:null}function Ya(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty(Qa))?h[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ta=j({ngInjectableDef:j}),Qa=j({ngInjectorDef:j});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 li;function xi(h){const f=li;return li=h,f}function na(h,f,m){const _=Mr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==f?f:void _e(Q(h))}function wn(h){return{toString:h}.toString()}var yi=(()=>((yi=yi||{})[yi.OnPush=0]="OnPush",yi[yi.Default=1]="Default",yi))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),st={},ze=[],Je=j({\u0275cmp:j}),ti=j({\u0275dir:j}),bt=j({\u0275pipe:j}),Ki=j({\u0275mod:j}),et=j({\u0275fac:j}),Tt=j({__NG_ELEMENT_ID__:j});let Rt=0;function rn(h){return wn(()=>{const m=!0===h.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===yi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||ze,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+Rt++,styles:h.styles||ze,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=Ja(h.inputs,_),C.outputs=Ja(h.outputs),v&&v.forEach(T=>T(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Hr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Ei).filter(Hr):null,C})}function gi(h){return At(h)||Ti(h)}function Hr(h){return null!==h}function Pr(h){return wn(()=>({type:h.type,bootstrap:h.bootstrap||ze,declarations:h.declarations||ze,imports:h.imports||ze,exports:h.exports||ze,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Ja(h,f){if(null==h)return st;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]=_,f&&(f[C]=w)}return m}const Fd=rn;function Vl(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function At(h){return h[Je]||null}function Ti(h){return h[ti]||null}function Ei(h){return h[bt]||null}function Ui(h,f){const m=h[Ki]||null;if(!m&&!0===f)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function Et(h){return Array.isArray(h)&&"object"==typeof h[1]}function Xi(h){return Array.isArray(h)&&!0===h[1]}function sa(h){return 0!=(8&h.flags)}function Bn(h){return 2==(2&h.flags)}function sr(h){return 1==(1&h.flags)}function Mi(h){return null!==h.template}function Bl(h){return 0!=(256&h[2])}function lr(h,f){return h.hasOwnProperty(et)?h[et]:null}class Ll{constructor(f,m,_){this.previousValue=f,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Za(){return ss}function ss(h){return h.type.prototype.ngOnChanges&&(h.setInput=Xa),Fl}function Fl(){const h=lt(this),f=h?.current;if(f){const m=h.previous;if(m===st)h.previous=f;else for(let _ in f)m[_]=f[_];h.current=null,this.ngOnChanges(f)}}function Xa(h,f,m,_){const C=lt(h)||function da(h,f){return h[on]=f}(h,{previous:st,current:null}),w=C.current||(C.current={}),v=C.previous,T=this.declaredInputs[m],S=v[T];w[T]=new Ll(S&&S.currentValue,f,v===st),h[_]=f}Za.ngInherit=!0;const on="__ngSimpleChanges__";function lt(h){return h[on]||null}function Qt(h){for(;Array.isArray(h);)h=h[0];return h}function Rr(h,f){return Qt(f[h])}function wi(h,f){return Qt(f[h.index])}function io(h,f){return h.data[f]}function ua(h,f){return h[f]}function Oi(h,f){const m=f[h];return Et(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,f){return null==f?null:h[f]}function ee(h){h[18]=0}function pe(h,f){h[5]+=f;let m=h,_=h[3];for(;null!==_&&(1===f&&1===m[5]||-1===f&&0===m[5]);)_[5]+=f,m=_,_=_[3]}const ce={lFrame:nf(null),bindingsEnabled:!0};function Ci(){return ce.bindingsEnabled}function be(){return ce.lFrame.lView}function nt(){return ce.lFrame.tView}function xn(h){return ce.lFrame.contextLView=h,h[8]}function Gi(h){return ce.lFrame.contextLView=null,h}function $t(){let h=ha();for(;null!==h&&64===h.type;)h=h.parent;return h}function ha(){return ce.lFrame.currentTNode}function Li(h,f){const m=ce.lFrame;m.currentTNode=h,m.isParent=f}function Wd(){return ce.lFrame.isParent}function $d(){ce.lFrame.isParent=!1}function Fi(){const h=ce.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function pa(){return ce.lFrame.bindingIndex++}function Ln(h){const f=ce.lFrame,m=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,m}function kr(h,f){const m=ce.lFrame;m.bindingIndex=m.bindingRootIndex=h,Ul(f)}function Ul(h){ce.lFrame.currentDirectiveIndex=h}function Yd(h){const f=ce.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function Xp(){return ce.lFrame.currentQueryIndex}function Qd(h){ce.lFrame.currentQueryIndex=h}function Gb(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function ef(h,f,m){if(m&Ye.SkipSelf){let C=f,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Gb(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;f=C,h=w}const _=ce.lFrame=tf();return _.currentTNode=f,_.lView=h,!0}function Jd(h){const f=tf(),m=h[1];ce.lFrame=f,f.currentTNode=m.firstChild,f.lView=h,f.tView=m,f.contextLView=h,f.bindingIndex=m.bindingStartIndex,f.inI18n=!1}function tf(){const h=ce.lFrame,f=null===h?null:h.child;return null===f?nf(h):f}function nf(h){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:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function rf(){const h=ce.lFrame;return ce.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const af=rf;function Kd(){const h=rf();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 Di(){return ce.lFrame.selectedIndex}function Fn(h){ce.lFrame.selectedIndex=h}function jt(){const h=ce.lFrame;return io(h.tView,h.selectedIndex)}function jn(){ce.lFrame.currentNamespace="svg"}function Zd(){!function lf(){ce.lFrame.currentNamespace=null}()}function ps(h,f){for(let m=f.directiveStart,_=f.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:T,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),T&&((h.contentHooks||(h.contentHooks=[])).push(m,T),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,T)),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 Gl(h,f,m){Wl(h,f,3,m)}function fa(h,f,m,_){(3&h[2])===m&&Wl(h,f,m,_)}function ql(h,f){let m=h[2];(3&m)===f&&(m&=2047,m+=1,h[2]=m)}function Wl(h,f,m,_){const w=_??-1,v=f.length-1;let T=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else f[S]<0&&(h[18]+=65536),(T>11>16&&(3&h[2])===f){h[2]+=2048;try{w.call(T)}finally{}}}else try{w.call(T)}finally{}}class ga{constructor(f,m,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function ms(h,f,m){let _=0;for(;_f){v=w-1;break}}}for(;w>16}(h),_=f;for(;m>0;)_=_[15],m--;return _}let ff=!0;function tu(h){const f=ff;return ff=h,f}let Kb=0;const zn={};function ba(h,f){const m=Ql(h,f);if(-1!==m)return m;const _=f[1];_.firstCreatePass&&(h.injectorIndex=f.length,qi(_.data,h),qi(f,null),qi(_.blueprint,null));const C=_s(h,f),w=h.injectorIndex;if(hf(C)){const v=ao(C),T=_a(C,f),S=T[1].data;for(let P=0;P<8;P++)f[w+P]=T[v+P]|S[v+P]}return f[w+8]=C,w}function qi(h,f){h.push(0,0,0,0,0,0,0,0,f)}function Ql(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function _s(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=f;for(;null!==C;){if(_=bf(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function Jl(h,f,m){!function Zb(h,f,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Tt)&&(_=m[Tt]),null==_&&(_=m[Tt]=Kb++);const C=255&_;f.data[h+(C>>5)]|=1<=0?255&f:tC:f}(m);if("function"==typeof w){if(!ef(f,h,_))return _&Ye.Host?iu(C,0,_):bs(f,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;_e()}finally{af()}}else if("number"==typeof w){let v=null,T=Ql(h,f),S=-1,P=_&Ye.Host?f[16][6]:null;for((-1===T||_&Ye.SkipSelf)&&(S=-1===T?_s(h,f):f[T+8],-1!==S&&so(_,!1)?(v=f[1],T=ao(S),f=_a(S,f)):T=-1);-1!==T;){const R=f[1];if(oo(w,T,R.data)){const L=Kl(T,f,m,v,_,P);if(L!==zn)return L}S=f[T+8],-1!==S&&so(_,f[1].data[T+8]===P)&&oo(w,T,f)?(v=R,T=ao(S),f=_a(S,f)):T=-1}}return C}function Kl(h,f,m,_,C,w){const v=f[1],T=v.data[h+8],R=Br(T,v,m,null==_?Bn(T)&&ff:_!=v&&0!=(3&T.type),C&Ye.Host&&w===T);return null!==R?Cs(f,v,R,T):zn}function Br(h,f,m,_,C){const w=h.providerIndexes,v=f.data,T=1048575&w,S=h.directiveStart,R=w>>20,X=C?T+R:h.directiveEnd;for(let re=_?T:T+R;re=S&&ge.type===m)return re}if(C){const re=v[S];if(re&&Mi(re)&&re.type===m)return S}return null}function Cs(h,f,m,_){let C=h[m];const w=f.data;if(function $b(h){return h instanceof ga}(C)){const v=C;v.resolving&&function Be(h,f){const m=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function me(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const T=tu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?xi(v.injectImpl):null;ef(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),f.firstCreatePass&&m>=_.directiveStart&&function Vr(h,f,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=f.type.prototype;if(_){const v=ss(f);(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],f)}finally{null!==S&&xi(S),tu(T),v.resolving=!1,af()}}return C}function oo(h,f,m){return!!(m[f+(h>>5)]&1<{const f=h.prototype.constructor,m=f[et]||nu(f),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[et]||nu(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function nu(h){return ne(h)?()=>{const f=nu(te(h));return f&&f()}:lr(h)}function bf(h){const f=h[1],m=f.type;return 2===m?f.declTNode:1===m?h[6]:null}function Cf(h){return function Xb(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(uf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===f)return m[C+1];C+=2}}}return null}($t(),h)}const Or="__parameters__";function uo(h,f,m){return wn(()=>{const _=function ru(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(f);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return T.annotation=v,T;function T(S,P,R){const L=S.hasOwnProperty(Or)?S[Or]:Object.defineProperty(S,Or,{value:[]})[Or];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Pt{constructor(f,m){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=xt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Wi(h,f){void 0===f&&(f=h);for(let m=0;mArray.isArray(m)?Un(m,f):f(m))}function ws(h,f,m){f>=h.length?h.push(m):h.splice(f,0,m)}function ya(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function po(h,f){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function aC(h,f,m,_){let C=h.length;if(C==f)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>f;)h[C]=h[C-2],C--;h[f]=m,h[f+1]=_}}(h,_,f,m)),_}function go(h,f){const m=mo(h,f);if(m>=0)return h[1|m]}function mo(h,f){return function xf(h,f,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<f?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return sc}()?.createHTML(h)||h}class Lr{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class SC extends Lr{getTypeName(){return"HTML"}}class _u extends Lr{getTypeName(){return"Style"}}class MC extends Lr{getTypeName(){return"Script"}}class DC extends Lr{getTypeName(){return"URL"}}class HC extends Lr{getTypeName(){return"ResourceURL"}}function Fr(h){return h instanceof Lr?h.changingThisBreaksApplicationSecurity:h}function wo(h,f){const m=function xa(h){return h instanceof Lr&&h.getTypeName()||null}(h);if(null!=m&&m!==f){if("ResourceURL"===m&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===f}function bu(h){return new SC(h)}function hi(h){return new _u(h)}function Cx(h){return new MC(h)}function vo(h){return new DC(h)}function Vf(h){return new HC(h)}class Ds{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const m=(new window.DOMParser).parseFromString(yo(f),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(f):(m.removeChild(m.firstChild),m)}catch{return null}}}class PC{constructor(f){if(this.defaultDoc=f,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(f){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=yo(f),m;const _=this.inertDocument.createElement("body");return _.innerHTML=yo(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const m=f.attributes;for(let C=m.length-1;0cc(f.trim())).join(", ")),this.buf.push(" ",v,'="',VC(S),'"')}var h;return this.buf.push(">"),!0}endElement(f){const m=f.nodeName.toLowerCase();Of.hasOwnProperty(m)&&!uc.hasOwnProperty(m)&&(this.buf.push(""))}chars(f){this.buf.push(VC(f))}checkClobberedElement(f,m){if(m&&(f.compareDocumentPosition(m)&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 m}}const Ff=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ax=/([^\#-~ |!])/g;function VC(h){return h.replace(/&/g,"&").replace(Ff,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(Ax,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let fc;function jf(h,f){let m=null;try{fc=fc||function Cu(h){const f=new PC(h);return function Gn(){try{return!!(new window.DOMParser).parseFromString(yo(""),"text/html")}catch{return!1}}()?new Ds(f):f}(h);let _=f?String(f):"";m=fc.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=fc.getInertBodyElement(_)}while(_!==w);return yo((new Lf).sanitizeChildren(wu(m)||m))}finally{if(m){const _=wu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function wu(h){return"content"in h&&function Nf(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function zf(h){const f=function gc(){const h=be();return h&&h[12]}();return f?f.sanitize(ni.URL,h)||"":wo(h,"URL")?Fr(h):cc(he(h))}const Uf=new Pt("ENVIRONMENT_INITIALIZER"),FC=new Pt("INJECTOR",-1),Gf=new Pt("INJECTOR_DEF_TYPES");class jC{get(f,m=_o){if(m===_o){const _=new Error(`NullInjectorError: No provider for ${Q(f)}!`);throw _.name="NullInjectorError",_}return m}}function Mx(...h){return{\u0275providers:NC(0,h)}}function NC(h,...f){const m=[],_=new Set;let C;return Un(f,w=>{const v=w;mc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&zC(C,m),m}function zC(h,f){for(let m=0;m{f.push(w)})}}function mc(h,f,m,_){if(!(h=te(h)))return!1;let C=null,w=Ya(h);const v=!w&&At(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=Ya(S),!w)return!1;C=S}const T=_.has(C);if(v){if(T)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)mc(P,f,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!T){let P;_.add(C);try{Un(w.imports,R=>{mc(R,f,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&zC(P,f)}if(!T){const P=lr(C)||(()=>new C);f.push({provide:C,useFactory:P,deps:ze},{provide:Gf,useValue:C,multi:!0},{provide:Uf,useValue:()=>Jt(C),multi:!0})}const S=w.providers;null==S||T||Un(S,R=>{f.push(R)})}}return C!==h&&void 0!==h.providers}const Dx=j({provide:String,useValue:j});function qf(h){return null!==h&&"object"==typeof h&&Dx in h}function xo(h){return"function"==typeof h}const Wf=new Pt("Set Injector scope."),Au={},Px={};let $f;function xu(){return void 0===$f&&($f=new jC),$f}class To{}class qC extends To{constructor(f,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qf(f,v=>this.processProvider(v)),this.records.set(FC,Hs(void 0,this)),C.has("environment")&&this.records.set(To,Hs(void 0,this));const w=this.records.get(Wf);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Gf.multi,ze,Ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const m=bo(this),_=xi(void 0);try{return f()}finally{bo(m),xi(_)}}get(f,m=_o,_=Ye.Default){this.assertNotDestroyed();const C=bo(this),w=xi(void 0);try{if(!(_&Ye.SkipSelf)){let T=this.records.get(f);if(void 0===T){const S=function Bx(h){return"function"==typeof h||"object"==typeof h&&h instanceof Pt}(f)&&Mr(f);T=S&&this.injectableDefInScope(S)?Hs(Yf(f),Au):null,this.records.set(f,T)}if(null!=T)return this.hydrate(f,T)}return(_&Ye.Self?xu():this.parent).get(f,m=_&Ye.Optional&&m===_o?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[tc]=v[tc]||[]).unshift(Q(f)),C)throw v;return function gC(h,f,m,_){const C=h[tc];throw f[Ef]&&C.unshift(f[Ef]),h.message=function uu(h,f,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(f);if(Array.isArray(f))C=f.map(Q).join(" -> ");else if("object"==typeof f){let w=[];for(let v in f)if(f.hasOwnProperty(v)){let T=f[v];w.push(v+":"+("string"==typeof T?JSON.stringify(T):Q(T)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(hC,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[tc]=null,h}(v,f,"R3InjectorError",this.source)}throw v}finally{xi(w),bo(C)}}resolveInjectorInitializers(){const f=bo(this),m=xi(void 0);try{const _=this.get(Uf.multi,ze,Ye.Self);for(const C of _)C()}finally{bo(f),xi(m)}}toString(){const f=[],m=this.records;for(const _ of m.keys())f.push(Q(_));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(f){let m=xo(f=te(f))?f:te(f&&f.provide);const _=function Ix(h){return qf(h)?Hs(void 0,h.useValue):Hs(WC(h),Au)}(f);if(xo(f)||!0!==f.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Hs(void 0,Au,!0),C.factory=()=>du(C.multi),this.records.set(m,C)),m=f,C.multi.push(f)}this.records.set(m,_)}hydrate(f,m){return m.value===Au&&(m.value=Px,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Vx(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(f){if(!f.providedIn)return!1;const m=te(f.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Yf(h){const f=Mr(h),m=null!==f?f.factory:lr(h);if(null!==m)return m;if(h instanceof Pt)throw new ie(204,!1);if(h instanceof Function)return function Rx(h){const f=h.length;if(f>0)throw po(f,"?"),new ie(204,!1);const m=function $a(h){const f=h&&(h[In]||h[ta]);if(f){const m=function Od(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[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.`),f}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function WC(h,f,m){let _;if(xo(h)){const C=te(h);return lr(C)||Yf(C)}if(qf(h))_=()=>te(h.useValue);else if(function GC(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...du(h.deps||[]));else if(function UC(h){return!(!h||!h.useExisting)}(h))_=()=>Jt(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function kx(h){return!!h.deps}(h))return lr(C)||Yf(C);_=()=>new C(...du(h.deps))}return _}function Hs(h,f,m=!1){return{factory:h,value:f,multi:m?[]:void 0}}function Ox(h){return!!h.\u0275providers}function Qf(h,f){for(const m of h)Array.isArray(m)?Qf(m,f):Ox(m)?Qf(m.\u0275providers,f):f(m)}class Jf{}class Fx{resolveComponentFactory(f){throw function Lx(h){const f=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let _c=(()=>{class h{}return h.NULL=new Fx,h})();function jx(){return Ps($t(),be())}function Ps(h,f){return new bc(wi(h,f))}let bc=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=jx,h})();function Nx(h){return h instanceof bc?h.nativeElement:h}class QC{}let zx=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Ux(){const h=be(),m=Oi($t().index,h);return(Et(m)?m:h)[11]}(),h})(),Gx=(()=>{class h{}return h.\u0275prov=xt({token:h,providedIn:"root",factory:()=>null}),h})();class JC{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const qx=new JC("14.1.2"),Kf={};function ig(h){return h.ngOriginalError}class Cc{constructor(){this._console=console}handleError(f){const m=this._findOriginalError(f);this._console.error("ERROR",f),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(f){let m=f&&ig(f);for(;m&&ig(m);)m=ig(m);return m||null}}const ng=new Map;let nT=0;const wc="__ngContext__";function Hi(h,f){Et(f)?(h[wc]=f[20],function aT(h){ng.set(h[20],h)}(f)):h[wc]=f}function Rs(h){const f=h[wc];return"number"==typeof f?function iy(h){return ng.get(h)||null}(f):f||null}function Tu(h){const f=Rs(h);return f?Et(f)?f:f.lView:null}const ry=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(le))();function $i(h){return h instanceof Function?h():h}var En=(()=>((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();function og(h,f){return undefined(h,f)}function vc(h){const f=h[3];return Xi(f)?f[3]:f}function lg(h){return dg(h[13])}function cg(h){return dg(h[4])}function dg(h){for(;null!==h&&!Xi(h);)h=h[4];return h}function Ea(h,f,m,_,C){if(null!=_){let w,v=!1;Xi(_)?w=_:Et(_)&&(v=!0,_=_[0]);const T=Qt(_);0===h&&null!==m?null==C?yy(f,m,T):Eo(f,m,T,C||null,!0):1===h&&null!==m?Eo(f,m,T,C||null,!0):2===h?function _g(h,f,m){const _=So(h,f);_&&function hT(h,f,m,_){h.removeChild(f,m,_)}(h,_,f,m)}(f,T,v):3===h&&f.destroyNode(T),null!=w&&function bg(h,f,m,_,C){const w=m[7];w!==Qt(m)&&Ea(f,h,_,w,C);for(let T=10;T0&&(h[m-1][4]=_[4]);const w=ya(h,10+f);!function hy(h,f){cn(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function pg(h,f){if(!(128&f[2])){const m=f[11];m.destroyNode&&cn(h,f,m,3,null,null),function gy(h){let f=h[13];if(!f)return Pu(h[1],h);for(;f;){let m=null;if(Et(f))m=f[13];else{const _=f[10];_&&(m=_)}if(!m){for(;f&&!f[4]&&f!==h;)Et(f)&&Pu(f[1],f),f=f[3];null===f&&(f=h),Et(f)&&Pu(f[1],f),m=f&&f[4]}f=m}}(f)}}function Pu(h,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function Ru(h,f){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++)(0,_[w])();f[7]=null}}(h,f),1===f[1].type&&f[11].destroy();const m=f[17];if(null!==m&&Xi(f[3])){m!==f[3]&&Du(m,f);const _=f[19];null!==_&&_.detachView(h)}!function oT(h){ng.delete(h[20])}(f)}}function by(h,f,m){return function Cy(h,f,m){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return wi(_,m)}(h,f.parent,m)}function Eo(h,f,m,_,C){h.insertBefore(f,m,_,C)}function yy(h,f,m){h.appendChild(f,m)}function wy(h,f,m,_,C){null!==_?Eo(h,f,m,_,C):yy(h,f,m)}function So(h,f){return h.parentNode(f)}function gg(h,f,m){return Sa(h,f,m)}let Sa=function Iu(h,f,m){return 40&h.type?wi(h,m):null};function Ac(h,f,m,_){const C=by(h,_,f),w=f[11],T=gg(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Cg(re,P,0)||2&_&&P!==X){if(dn(_))return!1;v=!0}}}}else{if(!v&&!dn(_)&&!dn(S))return!1;if(v&&dn(S))continue;v=!1,_=S|1&_}}return dn(_)||v}function dn(h){return 0==(1&h)}function mT(h,f,m,_){if(null===f)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+T+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!dn(v)&&(f+=vg(w,C),C=""),_=v,w=w||!dn(_);m++}return""!==C&&(f+=vg(w,C)),f}const xe={};function Hy(h){Py(nt(),be(),Di()+h,!1)}function Py(h,f,m,_){if(!_)if(3==(3&f[2])){const w=h.preOrderCheckHooks;null!==w&&Gl(f,w,m)}else{const w=h.preOrderHooks;null!==w&&fa(f,w,0,m)}Fn(m)}function un(h,f=null,m=null,_){const C=Os(h,f,m,_);return C.resolveInjectorInitializers(),C}function Os(h,f=null,m=null,_,C=new Set){const w=[m||ze,Mx(h)];return _=_||("object"==typeof h?void 0:Q(h)),new qC(w,f||xu(),_||null,C)}let Da=(()=>{class h{static create(m,_){if(Array.isArray(m))return un({name:""},_,m,"");{const C=m.name??"";return un({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=_o,h.NULL=new jC,h.\u0275prov=xt({token:h,providedIn:"any",factory:()=>Jt(FC)}),h.__NG_ELEMENT_ID__=-1,h})();function Ls(h,f=Ye.Default){const m=be();return null===m?Jt(h,f):gf($t(),m,te(h),f)}function jy(){throw new Error("invalid")}function Gu(h,f){return h<<17|f<<2}function Wn(h){return h>>17&32767}function qu(h){return 2|h}function Ur(h){return(131068&h)>>2}function Wu(h,f){return-131069&h|f<<2}function $u(h){return 1|h}function jg(h,f){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Py(h,f,22,!1),m(_,C)}finally{Fn(w)}}function Ky(h,f,m){if(sa(f)){const C=f.directiveEnd;for(let w=f.directiveStart;w0;){const m=h[--f];if("number"==typeof m&&m<0)return m}return 0})(T)!=S&&T.push(S),T.push(_,C,v)}}function gr(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function mr(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function iw(h,f,m){if(m){if(f.exportAs)for(let _=0;_0&&Qg(m)}}function Qg(h){for(let _=lg(h);null!==_;_=cg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];kc(v,w,v.template,w[8])}else w[5]>0&&Qg(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Qg(C)}}function Jg(h,f){const m=Oi(f,h),_=m[1];(function cw(h,f){for(let m=f.length;mPromise.resolve(null))();function ch(h){return h[7]||(h[7]=[])}function Zg(h){return h.cleanup||(h.cleanup=[])}function Xg(h,f,m){return(null===h||Mi(h))&&(m=function us(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[f.index])),m[11]}function em(h,f){const m=h[9],_=m?m.get(Cc,null):null;_&&_.handleError(f)}function gn(h,f,m,_,C){for(let w=0;w-1&&(Hu(f,_),ya(m,_))}this._attachedToViewContainer=!1}pg(this._lView[1],this._lView)}onDestroy(f){Zy(this._lView[1],this._lView,null,f)}markForCheck(){Io(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function lh(h,f,m){const _=f[10];_.begin&&_.begin();try{kc(h,f,h.template,m)}catch(C){throw em(f,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fy(h,f){cn(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=f}}class uw extends jc{constructor(f){super(f),this._view=f}detectChanges(){Kg(this._view)}checkNoChanges(){}get context(){return null}}class uh extends _c{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const m=At(f);return new Gs(m,this.ngModule)}}function Ra(h){const f=[];for(let m in h)h.hasOwnProperty(m)&&f.push({propName:h[m],templateName:m});return f}class tm{constructor(f,m){this.injector=f,this.parentInjector=m}get(f,m,_){const C=this.injector.get(f,Kf,_);return C!==Kf||m===Kf?C:this.parentInjector.get(f,m,_)}}class Gs extends Jf{constructor(f,m){super(),this.componentDef=f,this.ngModule=m,this.componentType=f.type,this.selector=function My(h){return h.map(Sy).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Ra(this.componentDef.inputs)}get outputs(){return Ra(this.componentDef.outputs)}create(f,m,_,C){let w=(C=C||this.ngModule)instanceof To?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new tm(f,w):f,T=v.get(QC,null);if(null===T)throw new ie(407,!1);const S=v.get(Gx,null),P=T.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function OT(h,f,m){return h.selectRootElement(f,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Mu(T.createRenderer(null,this.componentDef),R,function qT(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function ht(h,f){return{components:[],scheduler:h||ry,clean:GT,playerHandler:f||null,flags:0}}(),ge=qr(0,null,null,1,0,null,null,null,null,null),ve=Ic(null,ge,re,X,null,null,T,P,S,v,null);let Re,Ne;Jd(ve);try{const Ze=function im(h,f,m,_,C,w){const v=m[1];m[22]=h;const S=$n(v,22,2,"#host",null),P=S.mergedAttrs=f.hostAttrs;null!==P&&(Fc(S,P,!0),null!==h&&(ms(C,h,P),null!==S.classes&&Do(C,h,S.classes),null!==S.styles&&Lu(C,h,S.styles)));const R=_.createRenderer(h,f),L=Ic(m,Yn(f),null,f.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(Jl(ba(S,m),v,f.type),mr(v,S),nw(S,m.length,1)),Oc(m,L),m[22]=L}(L,this.componentDef,ve,T,P);if(L)if(_)ms(P,L,["ng-version",qx.full]);else{const{attrs:ye,classes:We}=function Dy(h){const f=[],m=[];let _=1,C=2;for(;_0&&Do(P,L,We.join(" "))}if(Ne=io(ge,22),void 0!==m){const ye=Ne.projection=[];for(let We=0;We=0;_--){const C=h[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ma(C.hostAttrs,m=ma(m,C.hostAttrs))}}(_)}function Bo(h){return h===st?{}:h===ze?[]:h}function $T(h,f){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{f(_,C),m(_,C)}:f}function nm(h,f){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{f(_,C,w),m(_,C,w)}:f}function qs(h,f){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{f(_,C),m(_,C)}:f}let Nc=null;function ka(){if(!Nc){const h=le.Symbol;if(h&&h.iterator)Nc=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mT(Qt(ft[_.index])):_.index;let We=null;if(!T&&S&&(We=function _m(h,f,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?T[S]:null}"string"==typeof v&&(w+=2)}return null}(h,f,C,_.index)),null!==We)(We.__ngLastListenerFn__||We).__ngNextListenerFn__=w,We.__ngLastListenerFn__=w,re=!1;else{w=Mw(_,f,L,w,!1);const ft=m.listen(Ne,C,w);X.push(w,ft),R&&R.push(C,ye,Ze,Ze+1)}}else w=Mw(_,f,L,w,!1);const ge=_.outputs;let ve;if(re&&null!==ge&&(ve=ge[C])){const Re=ve.length;if(Re)for(let Ne=0;Ne0;)f=f[15],h--;return f}(h,ce.lFrame.contextLView))[8]}(h)}function Hw(h,f){let m=null;const _=function _T(h){const f=h.attrs;if(null!=f){const m=f.indexOf(5);if(0==(1&m))return f[m+1]}return null}(h);for(let C=0;C=0}function Tm(h,f,m){return Jn(h,f,m,!1),Tm}function Em(h,f){return Jn(h,f,null,!0),Em}function Jn(h,f,m,_){const C=be(),w=nt(),v=Ln(2);w.firstUpdatePass&&function Ww(h,f,m,_){const C=h.data;if(null===C[m+1]){const w=C[Di()],v=function qw(h,f){return f>=h.expandoStartIndex}(h,m);(function Jw(h,f){return 0!=(h.flags&(f?16:32))})(w,_)&&null===f&&!v&&(f=!1),f=function nE(h,f,m,_){const C=Yd(h);let w=_?f.residualClasses:f.residualStyles;if(null===C)0===(_?f.classBindings:f.styleBindings)&&(m=qc(m=Sm(null,h,f,m,_),f.attrs,_),w=null);else{const v=f.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Sm(C,h,f,m,_),null===w){let S=function Gc(h,f,m){const _=m?f.classBindings:f.styleBindings;if(0!==Ur(_))return h[Wn(_)]}(h,f,_);void 0!==S&&Array.isArray(S)&&(S=Sm(null,h,f,S[1],_),S=qc(S,f.attrs,_),function rE(h,f,m,_){h[Wn(m?f.classBindings:f.styleBindings)]=_}(h,f,_,S))}else w=function aE(h,f,m){let _;const C=f.directiveEnd;for(let w=1+f.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=Wn(h[T+1]);h[_+1]=Gu(X,T),0!==X&&(h[X+1]=Wu(h[X+1],_)),h[T+1]=function zy(h,f){return 131071&h|f<<17}(h[T+1],_)}else h[_+1]=Gu(T,0),0!==T&&(h[T+1]=Wu(h[T+1],_)),T=_;else h[_+1]=Gu(S,0),0===T?T=_:h[S+1]=Wu(h[S+1],_),S=_;P&&(h[_+1]=qu(h[_+1])),Lw(h,R,_,!0),Lw(h,R,_,!1),function ZT(h,f,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof f&&mo(w,f)>=0&&(m[_+1]=$u(m[_+1]))}(f,R,h,_,w),v=Gu(T,S),w?f.classBindings=v:f.styleBindings=v}(C,w,f,m,v,_)}}(w,h,v,_),f!==xe&&Pi(C,v,f)&&function Yw(h,f,m,_,C,w,v,T){if(!(3&f.type))return;const S=h.data,P=S[T+1];Ah(function Rg(h){return 1==(1&h)}(P)?Qw(S,f,m,C,Ur(P),v):void 0)||(Ah(w)||function Dc(h){return 2==(2&h)}(P)&&(w=Qw(S,null,m,C,T,v)),function Ou(h,f,m,_,C){if(f)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:En.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=En.Important),h.setStyle(m,_,C,w))}}(_,v,Rr(Di(),m),C,w))}(w,w.data[Di()],C,C[11],h,C[v+1]=function sE(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=Q(Fr(h)))),h}(f,m),_,v)}function Sm(h,f,m,_,C){let w=null;const v=m.directiveEnd;let T=m.directiveStylingLast;for(-1===T?T=m.directiveStart:T++;T0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===xe&&(X=L?ze:void 0);let re=L?go(X,_):R===_?X:void 0;if(P&&!Ah(re)&&(re=go(S,_)),Ah(re)&&(T=re,v))return T;const ge=h[C+1];C=v?Wn(ge):Ur(ge)}if(null!==f){let S=w?f.residualClasses:f.residualStyles;null!=S&&(T=go(S,_))}return T}function Ah(h){return void 0!==h}function Kw(h,f=""){const m=be(),_=nt(),C=h+22,w=_.firstCreatePass?$n(_,C,1,f,null):_.data[C],v=m[C]=function ug(h,f){return h.createText(f)}(m[11],f);Ac(_,m,v,w),Li(w,!1)}function Dm(h){return xh("",h,""),Dm}function xh(h,f,m){const _=be(),C=Oo(_,h,f,m);return C!==xe&&Wr(_,Di(),C),xh}function Hm(h,f,m,_,C,w,v){const T=be(),S=Lo(T,h,f,m,_,C,w,v);return S!==xe&&Wr(T,Di(),S),Hm}function Mh(h,f,m){const _=be();return Pi(_,pa(),f)&&Yi(nt(),jt(),_,h,f,_[11],m,!0),Mh}function Dh(h,f,m){const _=be();if(Pi(_,pa(),f)){const w=nt(),v=jt();Yi(w,v,_,h,f,Xg(Yd(w.data),v,_),m,!0)}return Dh}const Ba=void 0;var cv=["en",[["a","p"],["AM","PM"],Ba],[["AM","PM"],Ba,Ba],[["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"]],Ba,[["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"]],Ba,[["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}",Ba,"{1} 'at' {0}",Ba],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jm(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let jo={};function Sn(h){const f=function Gm(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=Um(f);if(m)return m;const _=f.split("-")[0];if(m=Um(_),m)return m;if("en"===_)return cv;throw new ie(701,!1)}function zm(h){return Sn(h)[qe.PluralCase]}function Um(h){return h in jo||(jo[h]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[h]),jo[h]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const vr="en-US";let ol=vr;function i_(h,f,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(xo(h)||!h.multi){const re=new ga(S,C,Ls),ge=r_(T,f,C?R:R+X,L);-1===ge?(Jl(ba(P,v),w,T),n_(w,h,f.length),f.push(T),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[ge]=re,v[ge]=re)}else{const re=r_(T,f,R+X,L),ge=r_(T,f,R,R+X),ve=re>=0&&m[re],Re=ge>=0&&m[ge];if(C&&!Re||!C&&!ve){Jl(ba(P,v),w,T);const Ne=function kE(h,f,m,_,C){const w=new ga(h,m,Ls);return w.multi=[],w.index=f,w.componentProviders=0,Bv(w,C,_&&!m),w}(C?IE:RE,m.length,C,_,S);!C&&Re&&(m[ge].providerFactory=Ne),n_(w,h,f.length,0),f.push(T),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Ne),v.push(Ne)}else n_(w,h,re>-1?re:ge,Bv(m[C?ge:re],S,!C&&_));!C&&_&&Re&&m[ge].componentProviders++}}}function n_(h,f,m,_){const C=xo(f),w=function Hx(h){return!!h.useClass}(f);if(C||w){const S=(w?te(f.useClass):f).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&f.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Bv(h,f,m){return m&&h.componentProviders++,h.multi.push(f)-1}function r_(h,f,m,_){for(let C=m;C<_;C++)if(f[C]===h)return C;return-1}function RE(h,f,m,_){return Vh(this.multi,[])}function IE(h,f,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,T=Cs(m,m[1],this.providerFactory.index,_);w=T.slice(0,v),Vh(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function qo(h,f,m){const _=nt();if(_.firstCreatePass){const C=Mi(h);i_(m,_.data,_.blueprint,C,!0),i_(f,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,f)}}class fl{}class Lv{}function VE(h,f){return new Fv(h,f??null)}class Fv extends fl{constructor(f,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new uh(this);const _=Ui(f);this._bootstrapComponents=$i(_.bootstrap),this._r3Injector=Os(f,m,[{provide:fl,useValue:this},{provide:_c,useValue:this.componentFactoryResolver}],Q(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class a_ extends Lv{constructor(f){super(),this.moduleType=f}create(f){return new Fv(this.moduleType,f)}}class BE extends fl{constructor(f,m,_){super(),this.componentFactoryResolver=new uh(this),this.instance=null;const C=new qC([...f,{provide:fl,useValue:this},{provide:_c,useValue:this.componentFactoryResolver}],m||xu(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function nd(h,f,m=null){return new BE(h,f,m).injector}function l_(h,f,m,_){return u_(be(),Fi(),h,f,m,_)}function u_(h,f,m,_,C,w){const v=f+m;return Pi(h,v,C)?function Qn(h,f,m){return h[f]=m}(h,v+1,w?_.call(w,C):_(C)):function _l(h,f){const m=h[f];return m===xe?void 0:m}(h,v+1)}function nA(h,f){const m=nt();let _;const C=h+22;m.firstCreatePass?(_=function zE(h,f){if(f)for(let m=f.length-1;m>=0;m--){const _=f[m];if(h===_.name)return _}}(f,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=lr(_.type)),v=xi(Ls);try{const T=tu(!1),S=w();return tu(T),function _h(h,f,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),f[m]=_}(m,be(),C,S),S}finally{xi(v)}}function rA(h,f,m){const _=h+22,C=be(),w=ua(C,_);return function rd(h,f){return h[1].data[f].pure}(C,_)?u_(C,Fi(),f,w.transform,m,w):w.transform(m)}function p_(h){return f=>{setTimeout(h,void 0,f)}}const xr=class $E extends E.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,m,_){let C=f,w=m||(()=>null),v=_;if(f&&"object"==typeof f){const S=f;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=p_(w),C&&(C=p_(C)),v&&(v=p_(v)));const T=super.subscribe({next:C,error:w,complete:v});return f instanceof g.w0&&f.add(T),T}};function YE(){return this._results[ka()]()}class Oh{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 m=ka(),_=Oh.prototype;_[m]||(_[m]=YE)}get changes(){return this._changes||(this._changes=new xr)}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,m){return this._results.reduce(f,m)}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,m){const _=this;_.dirty=!1;const C=Wi(f);(this._changesDetected=!function Zl(h,f,m){if(h.length!==f.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=KE,h})();const QE=ad,JE=class extends QE{constructor(f,m,_){super(),this._declarationLView=f,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(f,m){const _=this._declarationTContainer.tViews,C=Ic(this._declarationLView,_,f,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),nh(_,C,f),new jc(C)}};function KE(){return Lh($t(),be())}function Lh(h,f){return 4&h.type?new JE(f,h,Ps(h,f)):null}let Fh=(()=>{class h{}return h.__NG_ELEMENT_ID__=ZE,h})();function ZE(){return dt($t(),be())}const XE=Fh,aA=class extends XE{constructor(f,m,_){super(),this._lContainer=f,this._hostTNode=m,this._hostLView=_}get element(){return Ps(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const f=_s(this._hostTNode,this._hostLView);if(hf(f)){const m=_a(f,this._hostLView),_=ao(f);return new lo(m[1].data[_+8],m)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const m=oA(this._lContainer);return null!==m&&m[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=f.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(f,m,_,C,w){const v=f&&!function ys(h){return"function"==typeof h}(f);let T;if(v)T=m;else{const L=m||{};T=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?f:new Gs(At(f)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(To,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,T),R}insert(f,m){const _=f._lView,C=_[1];if(function D(h){return Xi(h[3])}(_)){const R=this.indexOf(f);if(-1!==R)this.detach(R);else{const L=_[3],X=new aA(L,L[6],L[3]);X.detach(X.indexOf(f))}}const w=this._adjustIndex(m),v=this._lContainer;!function my(h,f,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=f),_0)_.push(v[T/2]);else{const P=w[T+1],R=f[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=ud,this.reject=ud,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:T,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)(Jt(rp,8))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const ap=new Pt("AppId",{providedIn:"root",factory:function hd(){return`${pd()}${pd()}${pd()}`}});function pd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const op=new Pt("Platform Initializer"),sp=new Pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Al=new Pt("appBootstrapListener"),I_=new Pt("AnimationModuleType");let k_=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const tn=new Pt("LocaleId",{providedIn:"root",factory:()=>cu(tn,Ye.Optional|Ye.SkipSelf)||function zi(){return typeof $localize<"u"&&$localize.locale||vr}()}),V_=new Pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class kA{constructor(f,m){this.ngModuleFactory=f,this.componentFactories=m}}let lp=(()=>{class h{compileModuleSync(m){return new a_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=$i(Ui(m).declarations).reduce((v,T)=>{const S=At(T);return S&&v.push(new Gs(S)),v},[]);return new kA(_,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=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const lS=(()=>Promise.resolve(0))();function O_(h){typeof Zone>"u"?lS.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class bn{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function cS(){let h=le.requestAnimationFrame,f=le.cancelAnimationFrame;if(typeof Zone<"u"&&h&&f){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function LA(h){const f=()=>{!function OA(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(le,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,dp(h),h.isCheckStableRunning=!0,gd(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),dp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,T)=>{try{return md(h),m.invokeTask(C,w,v,T)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&f(),$o(h)}},onInvoke:(m,_,C,w,v,T,S)=>{try{return md(h),m.invoke(C,w,v,T,S)}finally{h.shouldCoalesceRunChangeDetection&&f(),$o(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,dp(h),gd(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bn.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(bn.isInAngularZone())throw new ie(909,!1)}run(f,m,_){return this._inner.run(f,m,_)}runTask(f,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,f,BA,ud,ud);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(f,m,_){return this._inner.runGuarded(f,m,_)}runOutsideAngular(f){return this._outer.run(f)}}const BA={};function gd(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 dp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function md(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function $o(h){h._nesting--,gd(h)}class _d{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(f,m,_){return f.apply(m,_)}runGuarded(f,m,_){return f.apply(m,_)}runOutsideAngular(f){return f()}runTask(f,m,_,C){return f.apply(m,_)}}const Fa=new Pt(""),Yo=new Pt("");let bd,up=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,bd||(function pp(h){bd=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{bn.assertNotInAngularZone(),O_(()=>{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())O_(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(Jt(bn),Jt(hp),Jt(Yo))},h.\u0275prov=xt({token:h,factory:h.\u0275fac}),h})(),hp=(()=>{class h{constructor(){this._applications=new Map}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 bd?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Mn=null;const fp=new Pt("AllowMultipleToken"),Cd=new Pt("PlatformDestroyListeners");class FA{constructor(f,m){this.name=f,this.token=m}}function xl(h,f,m=[]){const _=`Platform: ${f}`,C=new Pt(_);return(w=[])=>{let v=bp();if(!v||v.injector.get(fp,!1)){const T=[...m,...w,{provide:C,useValue:!0}];h?h(T):function uS(h){if(Mn&&!Mn.get(fp,!1))throw new ie(400,!1);Mn=h;const f=h.get(L_);(function Qo(h){const f=h.get(op,null);f&&f.forEach(m=>m())})(h)}(function wd(h=[],f){return Da.create({name:f,providers:[{provide:Wf,useValue:"platform"},{provide:Cd,useValue:new Set([()=>Mn=null])},...h]})}(T,_))}return function jA(h){const f=bp();if(!f)throw new ie(401,!1);return f}()}}function bp(){return Mn?.get(L_)??null}let L_=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function NA(h,f){let m;return m="noop"===h?new _d:("zone.js"===h?void 0:h)||new bn(f),m}(_?.ngZone,function Cp(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:bn,useValue:C}];return C.run(()=>{const v=Da.create({providers:w,parent:this.injector,name:m.moduleType.name}),T=m.create(v),S=T.injector.get(Cc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});T.onDestroy(()=>{vd(this._modules,T),P.unsubscribe()})}),function yp(h,f,m){try{const _=m();return fm(_)?_.catch(C=>{throw f.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw f.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const P=T.injector.get(Wo);return P.runInitializers(),P.donePromise.then(()=>(function Ph(h){Dt(h,"Expected localeId to be defined"),"string"==typeof h&&(ol=h.toLowerCase().replace(/_/g,"-"))}(T.injector.get(tn,vr)||vr),this._moduleDoBootstrap(T),T))})})}bootstrapModule(m,_=[]){const C=F_({},_);return function gp(h,f,m){const _=new a_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(wp);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(Cd,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(Jt(Da))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function F_(h,f){return Array.isArray(f)?f.reduce(F_,h):{...h,...f}}let wp=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new V.y(T=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{bn.assertNotInAngularZone(),O_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{bn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Jf;if(!this._injector.get(Wo).done)throw!C&&Cl(m),new ie(405,false);let v;v=C?m:this._injector.get(_c).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const T=function dS(h){return h.isBoundToModule}(v)?void 0:this._injector.get(fl),P=v.create(Da.NULL,[],_||v.selector,T),R=P.location.nativeElement,L=P.injector.get(Fa,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),vd(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);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;vd(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(Al,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>vd(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(Jt(bn),Jt(To),Jt(Cc))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function vd(h,f){const m=h.indexOf(f);m>-1&&h.splice(m,1)}let Ad=!0;function Ap(){Ad=!1}let Tl=(()=>{class h{}return h.__NG_ELEMENT_ID__=El,h})();function El(h){return function z_(h,f,m){if(Bn(h)&&!m){const _=Oi(h.index,f);return new jc(_,_)}return 47&h.type?new jc(f[16],f):null}($t(),be(),16==(16&h))}class q_{constructor(){}supports(f){return Ws(f)}create(f){return new Ep(f)}}const W_=(h,f)=>f;class Ep{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||W_}forEachItem(f){let m;for(m=this._itHead;null!==m;m=m._next)f(m)}forEachOperation(f){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,T),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,T,v,C)),Object.is(m.item,T)||this._addIdentityChange(m,T)):(m=this._mismatch(m,T,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),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,m,_,C){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._reinsertAfter(f,w,C)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._moveAfter(f,w,C)):f=this._addAfter(new QA(m,_),w,C),f}_verifyReinsertion(f,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?f=this._reinsertAfter(w,f._prev,C):f.currentIndex!=C&&(f.currentIndex=C,this._addToMoves(f,C)),f}_truncate(f){for(;null!==f;){const m=f._next;this._addToRemovals(this._unlink(f)),f=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(f,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const C=f._prevRemoved,w=f._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(f,m,_),this._addToMoves(f,_),f}_moveAfter(f,m,_){return this._unlink(f),this._insertAfter(f,m,_),this._addToMoves(f,_),f}_addAfter(f,m,_){return this._insertAfter(f,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,m,_){const C=null===m?this._itHead:m._next;return f._next=C,f._prev=m,null===C?this._itTail=f:C._prev=f,null===m?this._itHead=f:m._next=f,null===this._linkedRecords&&(this._linkedRecords=new Y_),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 m=f._prev,_=f._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,f}_addToMoves(f,m){return f.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Y_),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,m){return f.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class QA{constructor(f,m){this.item=f,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 $_{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,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const m=f._prevDup,_=f._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Y_{constructor(){this.map=new Map}put(f){const m=f.trackById;let _=this.map.get(m);_||(_=new $_,this.map.set(m,_)),_.add(f)}get(f,m){const C=this.map.get(f);return C?C.get(f,m):null}remove(f){const m=f.trackById;return this.map.get(m).remove(f)&&this.map.delete(m),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Jo(h,f,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(f,m){if(f){const _=f._prev;return m._next=f,m._prev=_,f._prev=m,_&&(_._next=m),f===this._mapHead&&(this._mapHead=m),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(f,m){if(this._records.has(f)){const C=this._records.get(f);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 JA(f);return this._records.set(f,_),_.currentValue=m,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,m){Object.is(m,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=m,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,m){f instanceof Map?f.forEach(m):Object.keys(f).forEach(_=>m(f[_],_))}}class JA{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 Sd(){return new Md([new q_])}let Md=(()=>{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,_||Sd()),deps:[[h,new Ts,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:Sd}),h})();function Mp(){return new Dp([new Q_])}let Dp=(()=>{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,_||Mp()),deps:[[h,new Ts,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:Mp}),h})();const ZA=xl(null,"core",[]);let Z_=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(Jt(wp))},h.\u0275mod=Pr({type:h}),h.\u0275inj=ai({}),h})();function XA(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(E){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(E||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,E){this.data.set(x,E)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,E=null){super(N),this.reason=x,this.params=E}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){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},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let E=x.inferHashAlgorithm(N.idTokenHeader),g=yield x.calcHash(N.accessToken,E),O=base64UrlEncode(g.substr(0,g.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let E=x||window.location.hash;if(E=decodeURIComponent(E),0!==E.indexOf("#"))return{};const g=E.indexOf("?");return E=E.substr(g>-1?g+1:1),this.parseQueryString(E)}parseQueryString(x){const E={};let g,V,O,I,j,W,Q;if(null===x)return E;g=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++E)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==g)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(E=0;E<64;++E){var G=F[E]||0;W[E]=92^G,Q[E]=54^G}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var E,V,g=0,O=F.length,I=this.blocks;g>2]|=F[g]<>2]|=E<>2]|=(192|E>>6)<>2]|=(128|63&E)<=57344?(I[V>>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=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,E=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,E=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,E=U+143694565<<0),this.first=!1):(I=E+(U=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&V^~g&O)+K[W]+j[W])<<0,E=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((ie=E&F)^E&N^J))<<0,V=N+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&g)+K[W+2]+j[W+2])<<0,N=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&E)^x&F^ie))<<0,g=F+(U=g+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&E^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+E<<0,this.h4=this.h4+g<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,E=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[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[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[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[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,E=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,E>>24&255,E>>16&255,E>>8&255,255&E,g>>24&255,g>>16&255,g>>8&255,255&g,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,E=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,E){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let E="";for(let g of x)E+=String.fromCharCode(g);return E}toHashString(x){const E=new Uint8Array(x);let g="";for(let V of E)g+=String.fromCharCode(V);return g}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,E,g,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=E,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{g?this.setStorage(g):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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={},E,g=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==E||"any"===E||O.info===E)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,g).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,E){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,E):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(E=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(E=>!(!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 E=[],g=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return g||E.push("https for all urls required. Also for urls received by discovery."),V||E.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),E}validateUrlForHttps(x){if(!x)return!0;const E=x.toLowerCase();return!(!1!==this.requireHttps&&(!E.match(/^http:\/\/localhost($|[:\/])/)&&!E.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||E.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,E){if(!x)throw new Error(`'${E}' should not be null`);if(!this.validateUrlForHttps(x))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(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),E=this.getAccessTokenStoredAt(),g=this.calcTimeout(E,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)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),E=this.getIdTokenStoredAt(),g=this.calcTimeout(E,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)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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,E){const g=this.dateTimeService.now();return Math.max(0,(E-x)*this.timeoutFactor-(g-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((E,g)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),E(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),g(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),g(V)}):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((x,E)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),E(g)}):x(null)})}validateDiscoveryDocument(x){let E;return this.skipIssuerCheck||x.issuer===this.issuer?(E=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),E.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",E),!1):(E=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),E.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",E),!1):(E=this.validateUrlFromDiscoveryDocument(x.token_endpoint),E.length>0&&this.logger.error("error validating token_endpoint in discovery document",E),E=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),E.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",E),E=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),E.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",E),!1):(E=this.validateUrlFromDiscoveryDocument(x.jwks_uri),E.length>0?(this.logger.error("error validating jwks_uri in discovery document",E),!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,E,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,E,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((x,E)=>{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(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),E(V)})})}fetchTokenUsingPasswordFlow(x,E,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:E},g)}fetchTokenUsingGrant(x,E,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(E))V=V.set(O,E[O]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:g}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,E)=>{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")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}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 O of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,g,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),E(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const E=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:E,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},E=!0){const g=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=g.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,E,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(E=>new Promise((g,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=E):I=window.open(E,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const E=x.height||470,g=x.width||500,V=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${E},top=${window.screenTop+(window.outerHeight-E)/2},left=${V}`}processMessageEventMessage(x){let E="#";if(this.silentRefreshMessagePrefix&&(E+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const g=x.data;return g.startsWith(E)?"#"+g.substr(E.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const E=x.origin.toLowerCase(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.startsWith(E)){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",E,"expected",g,"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 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 x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const E=this.getSessionState();E||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+E,this.issuer)}createLoginUrl(x="",E="",g="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=g||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}E&&(U+="&login_hint="+encodeURIComponent(E)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",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 g={},V=null;"string"==typeof E?V=E:"object"==typeof E&&(g=E),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",E=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,E):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(x,E))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const E=this;if(x.onTokenReceived){const g={idClaims:E.getIdentityClaims(),idToken:E.getIdToken(),accessToken:E.getAccessToken(),state:E.state};x.onTokenReceived(g)}}storeAccessTokenResponse(x,E,g,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}E&&this._storage.setItem("refresh_token",E),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(E=>!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){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const g=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=E.getCodePartsFromUrl(g),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=E.parseState(I);if(E.state=Q,V.error){E.debug("error trying to login"),E.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return E.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return E.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!E.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return E.eventsSubject.next($),Promise.reject($)}return E.storeSessionState(j),O&&(yield E.getTokenFromCode(O,x),E.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,E){let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",E.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?g=g.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,E)}fetchAndProcessToken(x,E){E=E||{},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 V=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{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,E.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let E;E=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",E);const g=E.state;let[V,O]=this.parseState(g);if(this.state=O,E.error){this.debug("error trying to login"),this.handleLoginError(x,E);const G=new OAuthErrorEvent("token_error",{},E);return this.eventsSubject.next(G),Promise.reject(G)}const I=E.access_token,j=E.id_token,W=E.session_state,Q=E.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!g||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,E.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),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&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let E=x,g="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(E=x.substr(0,V),g=x.substr(V+this.config.nonceStateSeparator.length))}return[E,g]}validateNonce(x){let E;return E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),E===x||(console.error("Validating access_token failed, wrong state/nonce.",E,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,E){x.onLoginError&&x.onLoginError(E),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,E,g=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!g&&G.nonce!==$){const de="Wrong nonce: "+G.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&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:E,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Be={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Be:this.checkAtHash(ie).then(Oe=>{if(this.requestAccessToken&&!Oe){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}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"),E=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={},E=""){let g=!1;"boolean"==typeof x&&(g=x,x={});const V=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||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),E&&(I=I.set("state",E)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(E){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",E):x._storage.setItem("nonce",E),E})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const E=this.document.getElementById(this.sessionCheckIFrameName);E&&E.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let g=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(g);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>E.charCodeAt(j%E.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>this.initCodeFlowInternal(x,E))}initCodeFlowInternal(x="",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 g={},V=null;"string"==typeof E?V=E:"object"==typeof E&&(g=E),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const E=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(E,"sha-256")),E]})()}extractRecognizedCustomParameters(x){let E=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{x[g]&&E.set(g,JSON.stringify(x[g]))}),E}revokeTokenAndLogout(x={},E=!1){let g=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(g,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(g,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);E&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,E,g){this.oAuthService=x,this.errorHandler=E,this.moduleConfig=g}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(E=>x.toLowerCase().startsWith(E.toLowerCase()))}intercept(x,E){const g=x.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)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return E.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):E.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):E.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,E=NullValidationHandler){return{ngModule:F,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:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function E(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function g(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){E(Q,j,W,G,$,"next",U)}function $(U){E(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(N,{Z:()=>g})},4147:F=>{"use strict";F.exports={i8:"9.4.0"}}},F=>{F(F.s=4586)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/assets/config/defaultConfig.json b/dist/apps/password-reset/assets/config/defaultConfig.json index 4d452e35c..390081119 100644 --- a/dist/apps/password-reset/assets/config/defaultConfig.json +++ b/dist/apps/password-reset/assets/config/defaultConfig.json @@ -14,7 +14,9 @@ "oauth_response_type": "code", "oauth_offline_access_consent_prompt": true }, - "skip_oidc": false, + "mfa": { + "url_en": "https://mfa.id.muni.cz/" + }, "auto_auth_redirect": true, "is_devel": false, "supported_languages": ["en"], diff --git a/dist/apps/password-reset/assets/i18n/cs.json b/dist/apps/password-reset/assets/i18n/cs.json index b36f769de..9b15f9d4c 100644 --- a/dist/apps/password-reset/assets/i18n/cs.json +++ b/dist/apps/password-reset/assets/i18n/cs.json @@ -18,6 +18,22 @@ "SHARED_LIB": { "PERUN": { "COMPONENTS": { + "MFA_REQUIRED_DIALOG": { + "TITLE": "Vyžadována step-up authentizace", + "INFO": "Pro vykonání této akce musíte provést step-up authentizaci.", + "CANCEL": "Zrušit", + "STEP_UP": "Step-up authentizace" + }, + "NO_MFA_TOKEN": { + "TITLE": "Žádný MFA token", + "INFO": "Potřebujete mít alespoň jeden aktivní MFA token. Prosím upravte Vaše MFA tokeny.", + "CANCEL": "Zrušit", + "MANAGE_TOKENS": "Spravovat tokeny" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modalní okno otevřeno.", + "MODAL_WARNING": "Pokud se Vám žádné okno neotevřelo, zkontrolujte si prosím nastavení svého prohlížeče." + }, "USER_DONT_EXIST": { "TITLE": "Požadovaný uživatel (dle ID nebo externí identity) neexistuje." }, diff --git a/dist/apps/password-reset/assets/i18n/en.json b/dist/apps/password-reset/assets/i18n/en.json index 968cdd3e2..e459e2989 100644 --- a/dist/apps/password-reset/assets/i18n/en.json +++ b/dist/apps/password-reset/assets/i18n/en.json @@ -18,6 +18,22 @@ "SHARED_LIB": { "PERUN": { "COMPONENTS": { + "MFA_REQUIRED_DIALOG": { + "TITLE": "Step-up authentication required", + "INFO": "To perform this action you need to execute step-up authentication.", + "CANCEL": "Cancel", + "STEP_UP": "Step-up authentication" + }, + "NO_MFA_TOKEN": { + "TITLE": "No MFA token", + "INFO": "You need to have at least one active MFA token. Please manage your MFA tokens.", + "CANCEL": "Cancel", + "MANAGE_TOKENS": "Manage tokens" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modal window is opened.", + "MODAL_WARNING": "Please check your browser settings if no modal window is open." + }, "USER_DONT_EXIST": { "TITLE": "Requested user (by ID or external identity) doesn't exist." }, diff --git a/dist/apps/password-reset/index.html b/dist/apps/password-reset/index.html index 29908df28..a8772929d 100644 --- a/dist/apps/password-reset/index.html +++ b/dist/apps/password-reset/index.html @@ -9,5 +9,5 @@ - + diff --git a/dist/apps/password-reset/main.0327b0acc0534b7d.js b/dist/apps/password-reset/main.0327b0acc0534b7d.js deleted file mode 100644 index 0bb1d54dc..000000000 --- a/dist/apps/password-reset/main.0327b0acc0534b7d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{7926:(F,N,x)=>{"use strict";var T=x(6895),p=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const U=new p.OlP("TRANSITION_ID"),G=[{provide:p.ip1,useFactory:function $(s,r,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const J=new p.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}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(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function Ve(s){(0,T.q)().remove(s)}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/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case p.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ie),p.LFG(ge),p.LFG(p.AFp))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(p.JOm.DashCase|p.JOm.Important)?r.style.setProperty(e,t,a&p.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&p.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(s){return"_ngcontent-%COMP%".replace(we,s)}(a+"-"+t.id),this.hostAttr=function Te(s){return"_nghost-%COMP%".replace(we,s)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Hn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={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"},ri={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let xr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,a){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=s._normalizeKey(t.pop());let c="";if(Hn.forEach(i=>{const o=t.indexOf(i);o>-1&&(t.splice(o,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Hn.forEach(l=>{l!=a&&(0,ri[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{s.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Qe=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:T.bD},{provide:p.g9A,useValue:function Pn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pa(){return(0,p.RDi)(document),document},deps:[]}]),ci=new p.OlP(""),fa=[{provide:p.rWj,useClass:class te{addToWindow(r){p.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},p.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const a=p.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Ei=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Rn(){return new p.qLn},deps:[]},{provide:J,useClass:Ti,multi:!0,deps:[T.K0,p.R0b,p.Lbi]},{provide:J,useClass:xr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,p.AFp]},{provide:p.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,p.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let ga=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:p.AFp,useValue:e.appId},{provide:U,useExisting:p.AFp},G]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ci,12))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[...Ei,...fa],imports:[T.ez,p.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,p.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let ai=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):p.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends ai{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ie(s){return new nt(s.get(T.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),s})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new p.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Mr=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}convertAttributeToNonunique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}convertAttributeToUnique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteAttributeDefinitions(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAllAttributeDefinitions(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,a,l,c,n,i,o,d,u,f,b="body",P=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=a&&(ae=this.addToHttpParams(ae,a,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=o&&(ae=this.addToHttpParams(ae,o,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=u&&(ae=this.addToHttpParams(ae,u,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let lt,ke=this.defaultHeaders;lt=this.configuration.lookupCredential("BasicAuth"),lt&&(ke=ke.set("Authorization","Basic "+lt)),lt=this.configuration.lookupCredential("BearerAuth"),lt&&(ke=ke.set("Authorization","Bearer "+lt));let yt=z&&z.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=z&&z.context;void 0===zt&&(zt=new y.qT);let Ar="json";return yt&&(Ar=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Ar,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:P})}getAttributeDefinitionById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionsByNamespace(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeModulesDependenciesForAttributeGraphText(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributesDefinitionWithRights(e,t,a,l,c,n,i,o,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!=a&&(b=this.addToHttpParams(b,a,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=o&&(b=this.addToHttpParams(b,o,"userExtSource"));let z,P=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(P=P.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(P=P.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(P=P.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let lt="json";return ae&&(lt=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:lt,withCredentials:this.configuration.withCredentials,headers:P,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesWithKeys(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getEntitylessKeys(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"user")),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupResourceAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getHostAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getLogins(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAndUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,a,l="body",c=!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==a)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(P=>{i=this.addToHttpParams(i,P,"attrNames[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberGroupAttributesByNames(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacility(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacilityService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesMember(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==a)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 d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"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=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,a,l,c="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==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,a,l,c="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==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesResourceService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesResourceServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesUserFacility(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesVoService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getResourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"workWithGroupAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserFacilityAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,a,l,c,n,i="body",o=!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==a)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==c)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!=a&&(u=this.addToHttpParams(u,a,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(ke=>{u=this.addToHttpParams(u,ke,"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 P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)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==c)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!=a&&(d=this.addToHttpParams(d,a,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"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=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=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:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeFacilityAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupResourceAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeHostAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,a,l="body",c=!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==a)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(P=>{i=this.addToHttpParams(i,P,"attributes[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeResourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUesAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserExtSourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserFacilityAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeVoAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeVoAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}setAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setEntitylessAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceGroupUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAndUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupWithGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",o=!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==a)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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"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 P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"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 P="json";return f&&(P=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:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ar=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changeNonAuthzPassword/token`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/checkPasswordStrength`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/createAlternativePassword`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="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==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=a&&(o=this.addToHttpParams(o,a,"extLogin")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"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 P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",o=!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!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"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 P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),gn=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ql=(()=>{class s{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:s,providers:[{provide:Oe,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(s,12),p.LFG(y.eN,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let df=(()=>{class s{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 a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){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(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const P of Object.keys(b.entitiesToManage))i="User"===P?[P].concat(i):i.concat(P);break}const o=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,o),u=this.resolveAuthorization(n,o);a.set(l,{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 a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Bn.Xf)(s()).subscribe(r)})}var Jl=x(9635),_n=x(2843),Zt=x(515),Nt=x(727),rn=x(4482),Ni=x(5403);function Es(){return(0,rn.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Ni.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const a=s._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class uf extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,rn.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ni.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Es()(this)}}var ze=x(4004),Hi=x(3900),Ut=x(5698),ya=x(3269);function Vt(...s){const r=(0,ya.yG)(s);return(0,rn.e)((e,t)=>{(r?(0,Rr.z)(s,e,r):(0,Rr.z)(s,e)).subscribe(t)})}var wi=x(5577),an=x(590),zi=x(4351),Ct=x(8505),M=x(262);function k(s,r,e,t,a){return(l,c)=>{let n=e,i=r,o=0;l.subscribe((0,Ni.x)(c,d=>{const u=o++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(s,r){return(0,rn.e)(k(s,r,arguments.length>=2,!0))}function B(s){return s<=0?()=>Zt.E:(0,rn.e)((r,e)=>{let t=[];r.subscribe((0,Ni.x)(e,a=>{t.push(a),s{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ge(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,Kt.h)((a,l)=>s(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new xs.K))}var Bt=x(9718);function Mt(s){return(0,rn.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yt(s){return new Ft(s)}function be(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return s===r}function qt(s){return Array.prototype.concat.apply([],s)}function wa(s){return s.length>0?s[s.length-1]:null}function Ot(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function bn(s){return(0,p.CqO)(s)?s:(0,p.QGY)(s)?(0,yi.D)(Promise.resolve(s)):(0,De.of)(s)}const MC={exact:function Ln(s,r,e){if(!or(s.segments,r.segments)||!Kl(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Ln(s.children[t],r.children[t],e))return!1;return!0},subset:Aa},DC={exact:function Bi(s,r){return Pi(s,r)},subset:function hf(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>On(s[e],r[e]))},ignored:()=>!0};function Ms(s,r,e){return MC[e.paths](s.root,r.root,e.matrixParams)&&DC[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function Aa(s,r,e){return Fn(s,r,r.segments,e)}function Fn(s,r,e,t){if(s.segments.length>e.length){const a=s.segments.slice(0,e.length);return!(!or(a,e)||r.hasChildren()||!Kl(a,e,t))}if(s.segments.length===e.length){if(!or(s.segments,e)||!Kl(s.segments,e,t))return!1;for(const a in r.children)if(!s.children[a]||!Aa(s.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(or(s.segments,a)&&Kl(s.segments,a,t)&&s.children[qe])&&Fn(s.children[qe],r,l,t)}}function Kl(s,r,e){return r.every((t,a)=>DC[e](s[a].parameters,t.parameters))}class kr{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return ff.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yo(this)}}class Ds{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function or(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Zl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return new Yd},providedIn:"root"}),s})();class Yd{parse(r){const e=new tc(r);return new kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${wo(r.root,!0)}`,t=function Qt(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(a=>`${Hs(e)}=${Hs(a)}`).join("&"):`${Hs(e)}=${Hs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function gf(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ff=new Yd;function yo(s){return s.segments.map(r=>Ri(r)).join("/")}function wo(s,r){if(!s.hasChildren())return yo(s);if(r){const e=s.children[qe]?wo(s.children[qe],!1):"",t=[];return Ot(s.children,(a,l)=>{l!==qe&&t.push(`${l}:${wo(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function pf(s,r){let e=[];return Ot(s.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(s.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(s,(t,a)=>a===qe?[wo(s.children[qe],!1)]:[`${a}:${wo(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[qe]?`${yo(s)}/${e[0]}`:`${yo(s)}/(${e.join("//")})`}}function Qd(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hs(s){return Qd(s).replace(/%3B/gi,";")}function Ps(s){return Qd(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xl(s){return decodeURIComponent(s)}function mf(s){return Xl(s.replace(/\+/g,"%20"))}function Ri(s){return`${Ps(s.path)}${function Vr(s){return Object.keys(s).map(r=>`;${Ps(r)}=${Ps(s[r])}`).join("")}(s.parameters)}`}const _f=/^[^\/()?;=#]+/;function ec(s){const r=s.match(_f);return r?r[0]:""}const bf=/^[^=?&#]+/,PC=/^[^&#]+/;class tc{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=ec(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new p.vHH(4009,!1);return this.capture(r),new Ds(Xl(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=ec(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=ec(this.remaining);a&&(t=a,this.capture(t))}r[Xl(e)]=Xl(t)}parseQueryParam(r){const e=function HC(s){const r=s.match(bf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function RC(s){const r=s.match(PC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=mf(e),l=mf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ec(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new p.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new p.vHH(4011,!1)}}function vo(s){return s.segments.length>0?new gt([],{[qe]:s}):s}function xa(s){const r={};for(const t of Object.keys(s.children)){const l=xa(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(s){if(1===s.numberOfChildren&&s.children[qe]){const r=s.children[qe];return new gt(s.segments.concat(r.segments),r.children)}return s}(new gt(s.segments,r))}function Br(s){return s instanceof kr}function kC(s,r,e,t,a){if(0===e.length)return Ao(r.root,r.root,r.root,t,a);const l=function BC(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new VC(!0,0,s);let r=0,e=!1;const t=s.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,o)=>{n[o]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new VC(e,r,t)}(e);return l.toRoot()?Ao(r.root,r.root,new gt([],{}),t,a):function c(i){const o=function wf(s,r,e,t){if(s.isAbsolute)return new lr(r.root,!0,0);if(-1===t)return new lr(e,e===r.root,0);return function Is(s,r,e){let t=s,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new p.vHH(4005,!1);a=t.segments.length}return new lr(t,!1,a-l)}(e,t+(sr(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=o.processChildren?jn(o.segmentGroup,o.index,l.commands):ic(o.segmentGroup,o.index,l.commands);return Ao(r.root,o.segmentGroup,d,t,a)}(s.snapshot?._lastPathIndex)}function sr(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function Ea(s){return"object"==typeof s&&null!=s&&s.outlets}function Ao(s,r,e,t,a){let c,l={};t&&Ot(t,(i,o)=>{l[o]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:Cf(s,r,e);const n=vo(xa(c));return new kr(n,l,a)}function Cf(s,r,e){const t={};return Ot(s.children,(a,l)=>{t[l]=a===r?e:Cf(a,r,e)}),new gt(s.segments,t)}class VC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&sr(t[0]))throw new p.vHH(4003,!1);const a=t.find(Ea);if(a&&a!==wa(t))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class lr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function ic(s,r,e){if(s||(s=new gt([],{})),0===s.segments.length&&s.hasChildren())return jn(s,r,e);const t=function OC(s,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=s.segments[a],n=e[t];if(Ea(n))break;const i=`${n}`,o=t0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!LC(i,o,c))return l;t+=2}else{if(!LC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(s,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=ic(s.children[c],r,l))}),Ot(s.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(s.segments,a)}}function Or(s,r,e){const t=s.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Or(new gt([],{}),0,e))}),r}function ks(s){const r={};return Ot(s,(e,t)=>r[t]=`${e}`),r}function LC(s,r,e){return s==e.path&&Pi(r,e.parameters)}class Nn{constructor(r,e){this.id=r,this.url=e}}class nc extends Nn{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lr extends Nn{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ji extends Nn{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Af extends Nn{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vs extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Nn{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rc extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ac extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Tf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ef{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bs{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Mf{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=oc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=oc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=sc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return sc(r,this._root).map(e=>e.value)}}function oc(s,r){if(s===r.value)return r;for(const e of r.children){const t=oc(s,e);if(t)return t}return null}function sc(s,r){if(s===r.value)return[r];for(const e of r.children){const t=sc(s,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function xo(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Mf{constructor(r,e){super(r),this.snapshot=e,dc(this,r)}toString(){return this.snapshot.toString()}}function lc(s,r){const e=function NC(s,r){const c=new dr([],{},{},"",{},qe,r,null,s.root,-1,{});return new Sa("",new Gi(c,[]))}(s,r),t=new di([new Ds("",{})]),a=new di({}),l=new di({}),c=new di({}),n=new di(""),i=new cr(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class cr{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,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,ze.U)(r=>Yt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Yt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cc(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function To(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,o,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=o,this._lastPathIndex=d,this._correctedLastPathIndex=f??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=Yt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sa extends Mf{constructor(r,e){super(e),this.url=r,dc(this,e)}toString(){return uc(this._root)}}function dc(s,r){r.value._routerState=s,r.children.forEach(e=>dc(s,e))}function uc(s){const r=s.children.length>0?` { ${s.children.map(uc).join(", ")} } `:"";return`${s.value}${r}`}function Fr(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Pi(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),Pi(r.params,e.params)||s.params.next(e.params),function ut(s,r){if(s.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||Df(s.parent,r.parent))}function At(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function V0(s,r,e){return r.children.map(t=>{for(const a of e.children)if(s.shouldReuseRoute(t.value,a.value.snapshot))return At(s,t,a);return At(s,t)})}(s,r,e);return new Gi(t,a)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(s,n)),c}}const t=function B0(s){return new cr(new di(s.url),new di(s.params),new di(s.queryParams),new di(s.fragment),new di(s.data),s.outlet,s.component,s)}(r.value),a=r.children.map(l=>At(s,l));return new Gi(t,a)}}const Hf="ngNavigationCancelingError";function GC(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Br(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=UC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function UC(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[Hf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function qC(s){return WC(s)&&Br(s.url)}function WC(s){return s&&s[Hf]}class Ls{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new hc,this.attachRef=null}}let hc=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ls,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const iu=!1;let oi=(()=>{class s{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new p.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Fs(s){return!!s.resolveComponentFactory}(t)){const o=t.resolveComponentFactory(c);this.activated=a.createComponent(o,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(hc),p.Y36(p.s_b),p.$8M("name"),p.Y36(p.sBO),p.Y36(p.lqb))},s.\u0275dir=p.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===cr?this.route:r===hc?this.childContexts:this.parent.get(r,e)}}let $C=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[oi],encapsulation:2}),s})();function Pf(s,r){return s.providers&&!s._injector&&(s._injector=(0,p.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function If(s){const r=s.children&&s.children.map(If),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=$C),e}function Cn(s){return s.outlet||qe}function au(s,r){const e=s.filter(t=>Cn(t)===r);return e.push(...s.filter(t=>Cn(t)!==r)),e}function Ui(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Eo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Fr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new jC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Ef(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Fr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Fr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Ui(a.snapshot),i=n?.get(p._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class KC{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class js{constructor(r,e){this.component=r,this.route=e}}function ZC(s,r,e){const t=s._root;return Ns(t,r?r._root:null,e,[t.value])}function pc(s,r,e){return(Ui(r)??e).get(s)}function Ns(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=xo(r);return s.children.forEach(c=>{(function ey(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function ty(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!or(s.url,r.url);case"pathParamsOrQueryParamsChange":return!or(s.url,r.url)||!Pi(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Df(s,r)||!Pi(s.queryParams,r.queryParams);default:return!Df(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new KC(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Ns(s,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new js(n.outlet.component,c))}else c&&Da(r,n,a),a.canActivateChecks.push(new KC(t)),Ns(s,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Da(c,e.getContext(n),a)),a}function Da(s,r,e){const t=xo(s),a=s.value;Ot(t,(l,c)=>{Da(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new js(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Nr(s){return"function"==typeof s}function Ha(s){return s instanceof xs.K||"EmptyError"===s?.name}const ur=Symbol("INITIAL_VALUE");function So(){return(0,Hi.w)(s=>(0,Ts.a)(s.map(r=>r.pipe((0,Ut.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof kr)return e}return!0}),(0,Kt.h)(r=>r!==ur),(0,Ut.q)(1)))}function Mo(s){return(0,Jl.z)((0,Ct.b)(r=>{if(Br(r))throw GC(0,r)}),(0,ze.U)(r=>!0===r))}const Pa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lf(s,r,e,t,a){const l=gc(s,r,e);return l.matched?function Of(s,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function ny(s){return s&&Nr(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(t=Pf(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...Pa})):(0,De.of)(l)}function gc(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...Pa}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,s,r);if(!a)return{...Pa};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function zr(s,r,e,t,a="corrected"){if(e.length>0&&function sy(s,r,e){return e.some(t=>hr(s,r,t)&&Cn(t)!==qe)}(s,e,t)){const c=new gt(r,function Ff(s,r,e,t){const a={};a[qe]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(s,r,t,new gt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function ly(s,r,e){return e.some(t=>hr(s,r,t))}(s,e,t)){const c=new gt(s.segments,function mc(s,r,e,t,a,l){const c={};for(const n of t)if(hr(s,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(s,r,e,t,s.children,a));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Do(s,r,e,t){return!!(Cn(s)===t||t!==qe&&hr(r,e,s))&&("**"===s.path||gc(r,s,e).matched)}function jf(s,r,e){return 0===r.length&&!s.children[e]}const du=!1;class Us{constructor(r){this.segmentGroup=r||null}}class Nf{constructor(r){this.urlTree=r}}function _c(s){return(0,_n._)(new Us(s))}function zf(s){return(0,_n._)(new Nf(s))}class Gf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=zr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(xa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Nf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Us?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(xa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Us?this.noMatchError(a):a}))}noMatchError(r){return new p.vHH(4002,du)}createUrlTree(r,e,t){const a=vo(r);return new kr(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,yi.D)(a).pipe((0,zi.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ge())}expandSegment(r,e,t,a,l,c){return(0,yi.D)(t).pipe((0,zi.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(o=>{if(o instanceof Us)return(0,De.of)(null);throw o}))),(0,an.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ha(n))return jf(e,a,l)?(0,De.of)(new gt([],{})):_c(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Do(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):_c(e):_c(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?zf(l):this.lineralizeSegments(t,l).pipe((0,wi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:o,positionalParamSegments:d}=gc(e,a,l);if(!n)return _c(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?zf(u):this.lineralizeSegments(a,u).pipe((0,wi.z)(f=>this.expandSegment(r,e,t,f.concat(o),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Pf(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):Lf(e,t,a,r).pipe((0,Hi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,wi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:P}=zr(e,n,i,f),z=new gt(b.segments,b.children);if(0===P.length&&z.hasChildren())return this.expandChildren(u,f,z).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===P.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,z,f,P,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):_c(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(s,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function zs(s){return s&&Nr(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(r,e,t).pipe((0,wi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function dy(s){return(0,_n._)(UC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new p.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new kr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new p.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class F0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=zr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Sa(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=cc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,yi.D)(Object.keys(t.children)).pipe((0,zi.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(s,r=!1){return(0,rn.e)((e,t)=>{let a=0;e.subscribe((0,Ni.x)(t,l=>{const c=s(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ge(),(0,ze.U)(a=>{if(null===a)return null;const l=yc(a);return function hy(s){s.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,yi.D)(e).pipe((0,zi.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,an.P)(c=>!!c),(0,M.K)(c=>{if(Ha(c))return jf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Do(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?wa(a).parameters:{},i=$f(t)+a.length,o=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),i,wc(e),i);c=(0,De.of)({snapshot:o,consumedSegments:[],remainingSegments:[]})}else c=Lf(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:o,parameters:d})=>{if(!n)return null;const u=$f(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),u,wc(e),u),consumedSegments:i,remainingSegments:o}}));return c.pipe((0,Hi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:o,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function qf(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:P}=zr(t,o,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===P.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===P.length)return(0,De.of)([new Gi(i,[])]);const z=Cn(e)===l;return this.processSegment(u,f,b,P,z?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function Cc(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function yc(s){const r=[],e=new Set;for(const t of s){if(!Cc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=yc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Wf(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function $f(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ws(s){return s.data||{}}function wc(s){return s.resolve||{}}const vc=Symbol("RouteTitle");function Jf(s){return"string"==typeof s.title||null===s.title}function hu(s){return(0,Hi.w)(r=>{const e=s(r);return e?(0,yi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let zn=(()=>{class s{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[vc]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return(0,p.f3M)(Ia)},providedIn:"root"}),s})(),Ia=(()=>{class s extends zn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Y))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class _y{}class Cy extends class by{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new p.OlP("",{providedIn:"root",factory:()=>({})}),Ac=new p.OlP("ROUTES");let fu=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new uf(t,()=>new Pe.x).pipe(Es());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,o,d=!1;Array.isArray(n)?o=n:(i=n.create(e).injector,o=qt(i.get(Ac,[],p.XFs.Self|p.XFs.Optional)));return{routes:o.map(If),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new uf(l,()=>new Pe.x).pipe(Es());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,wi.z)(t=>t instanceof p.YKP||Array.isArray(t)?(0,De.of)(t):(0,yi.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(p.Sil))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class wy{}class vy{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function N0(s){throw s}function Ay(s,r,e){return r.parse("/")}const $s={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Po(){const s=(0,p.f3M)(Zl),r=(0,p.f3M)(hc),e=(0,p.f3M)(T.Ye),t=(0,p.f3M)(p.zs3),a=(0,p.f3M)(p.Sil),l=(0,p.f3M)(Ac,{optional:!0})??[],c=(0,p.f3M)(pu,{optional:!0})??{},n=(0,p.f3M)(Ia),i=(0,p.f3M)(zn,{optional:!0}),o=(0,p.f3M)(wy,{optional:!0}),d=(0,p.f3M)(_y,{optional:!0}),u=new _i(null,s,r,e,t,a,qt(l));return o&&(u.urlHandlingStrategy=o),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Gn(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let _i=(()=>{class s{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe.x,this.errorHandler=N0,this.malformedUriErrorHandler=Ay,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new vy,this.routeReuseStrategy=new Cy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new xf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new FC(f)),this.ngModule=c.get(p.h0i),this.console=c.get(p.c2e);const u=c.get(p.R0b);this.isNgZoneEnabled=u instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function k0(){return new kr(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lc(this.currentUrlTree,this.rootComponentType),this.transitions=new di({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Kt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Hi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Hi.w)(n=>{const i=this.browserUrlTree.toString(),o=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||o)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Hi.w)(u=>{const f=this.transitions.getValue();return t.next(new nc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Zt.E:Promise.resolve(u)}),function uy(s,r,e,t){return(0,Hi.w)(a=>function bc(s,r,e,t,a){return new Gf(s,r,e,t,a).apply()}(s,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Yf(s,r,e,t,a,l){return(0,wi.z)(c=>function j0(s,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(s,r,e,t,a,c,n,l).recognize().pipe((0,Hi.w)(i=>null===i?function Uf(s){return new Vi.y(r=>r.error(s))}(new F0):(0,De.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"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 Vs(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(o&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:P,restoredState:z,extras:ae}=n,ke=new nc(f,this.serializeUrl(b),P,z);t.next(ke);const lt=lc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Zt.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ZC(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function si(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Vf(s,r,e,t){return(0,yi.D)(s).pipe((0,wi.z)(a=>function oy(s,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=pc(n,r,a);return bn(function iy(s){return s&&Nr(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,an.P)())});return(0,De.of)(c).pipe(So())}(a.component,a.route,e,r,t)),(0,an.P)(a=>!0!==a,!0))}(c,t,a,s).pipe((0,wi.z)(n=>n&&function O0(s){return"boolean"==typeof s}(n)?function Bf(s,r,e,t){return(0,yi.D)(r).pipe((0,zi.b)(a=>(0,Rr.z)(function Gs(s,r){return null!==s&&r&&r(new Tf(s)),(0,De.of)(!0)}(a.route.parent,t),function lu(s,r){return null!==s&&r&&r(new Sf(s)),(0,De.of)(!0)}(a.route,t),function ay(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function XC(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Ir(()=>{const n=c.guards.map(i=>{const o=pc(i,c.node,e);return bn(function fc(s){return s&&Nr(s.canActivateChild)}(o)?o.canActivateChild(t,s):o(t,s)).pipe((0,an.P)())});return(0,De.of)(n).pipe(So())}));return(0,De.of)(l).pipe(So())}(s,a.path,e),function ry(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Ir(()=>{const c=pc(l,r,e);return bn(function su(s){return s&&Nr(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,an.P)())}));return(0,De.of)(a).pipe(So())}(s,a.route,e))),(0,an.P)(a=>!0!==a,!0))}(t,l,s,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Br(n.guardsResult))throw GC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Kt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const o=new rc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}),(0,Hi.w)(i=>{let o=!1;return(0,De.of)(i).pipe(function Qf(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,yi.D)(a).pipe((0,zi.b)(c=>function Ra(s,r,e,t){const a=s.routeConfig,l=s._resolve;return void 0!==a?.title&&!Jf(a)&&(l[vc]=a.title),function fy(s,r,e,t){const a=function gy(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===a.length)return(0,De.of)({});const l={};return(0,yi.D)(a).pipe((0,wi.z)(c=>function my(s,r,e,t){const a=pc(s,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(s[c],r,e,t).pipe((0,an.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ha(c)?Zt.E:(0,_n._)(c)))}(l,s,r,t).pipe((0,ze.U)(c=>(s._resolvedData=c,s.data=cc(s,e).resolve,a&&Jf(a)&&(s.data[vc]=a.title),null)))}(c.route,t,s,r)),(0,Ct.b)(()=>l++),B(1),(0,wi.z)(c=>l===a.length?(0,De.of)(e):Zt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>o=!0,complete:()=>{o||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const o=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}))}),hu(n=>{const i=o=>{const d=[];o.routeConfig?.loadComponent&&!o.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(o.routeConfig).pipe((0,Ct.b)(u=>{o.component=u}),(0,ze.U)(()=>{})));for(const u of o.children)d.push(...i(u));return d};return(0,Ts.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Ut.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function zC(s,r,e){const t=At(s,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.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)}),((s,r,e)=>(0,ze.U)(t=>(new Eo(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,WC(n)){qC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ji(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),qC(n)){const o=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(o,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new Af(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(o){a.reject(o)}}return Zt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(If),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:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,o=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),kC(o,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Br(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Xf(s){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Lr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,o;c?(n=c.resolve,i=c.reject,o=c.promise):o=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}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,a){const l=new Ji(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:function(){return Po()},providedIn:"root"}),s})();function gu(s){return"imperative"!==s}class Tc{}let xy=(()=>{class s{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr),(0,zi.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,p.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,yi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,wi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,yi.D)([l,c]).pipe((0,mt.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(_i),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Tc),p.LFG(fu))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const _u=new p.OlP("");let Ty=(()=>{class s{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 nc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Lr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bs&&(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 Bs(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const ng=new p.OlP("ROUTER_FORROOT_GUARD"),bu=new p.OlP(""),Ec=[T.Ye,{provide:Zl,useClass:Yd},{provide:_i,useFactory:Po},hc,{provide:cr,useFactory:function rg(s){return s.routerState.root},deps:[_i]},fu];function Cu(){return new p.PXZ("Router",_i)}let yu=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[Ec,[],vu(e),{provide:ng,useFactory:wu,deps:[[_i,new p.FiY,new p.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_u,useFactory:()=>{const s=(0,p.f3M)(_i),r=(0,p.f3M)(T.EM),e=(0,p.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Ty(s,r,e)}},t?.preloadingStrategy?cg(t.preloadingStrategy):[],{provide:p.PXZ,multi:!0,useFactory:Cu},t?.initialNavigation?My(t):[],[{provide:og,useFactory:Sy},{provide:p.tb,multi:!0,useExisting:og}]]}}static forChild(e){return{ngModule:s,providers:[vu(e)]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ng,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();function wu(s){return"guarded"}function vu(s){return[{provide:Ac,multi:!0,useValue:s}]}function Sy(){const s=(0,p.f3M)(p.zs3);return r=>{const e=s.get(p.z2F);if(r!==e.components[0])return;const t=s.get(_i),a=s.get(sg);1===s.get(lg)&&t.initialNavigation(),s.get(bu,null,p.XFs.Optional)?.setUpPreloading(),s.get(_u,null,p.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const og=new p.OlP("");function My(s){return["disabled"===s.initialNavigation?[{provide:p.ip1,multi:!0,useFactory:()=>{const s=(0,p.f3M)(_i);return()=>{s.setUpLocationChangeListener()}}},{provide:lg,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lg,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=s.get(_i),c=s.get(sg);(function t(a){s.get(_i).events.pipe((0,Kt.h)(c=>c instanceof Lr||c instanceof Ji||c instanceof Af),(0,ze.U)(c=>c instanceof Lr||c instanceof Ji&&(0===c.code||1===c.code)&&null),(0,Kt.h)(c=>null!==c),(0,Ut.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const sg=new p.OlP("",{factory:()=>new Pe.x}),lg=new p.OlP("",{providedIn:"root",factory:()=>1});function cg(s){return[xy,{provide:bu,useExisting:xy},{provide:Tc,useExisting:s}]}let Sc;try{Sc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sc=!1}let ka,ei=(()=>{class s{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&&!Sc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.Lbi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Mc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ry(){if(ka)return ka;if("object"!=typeof document||!document)return ka=new Set(Mc),ka;let s=document.createElement("input");return ka=new Set(Mc.filter(r=>(s.setAttribute("type",r),s.type===r))),ka}let Qs,Ki,Ro;function yn(s){return function xu(){if(null==Qs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qs=!0}))}finally{Qs=Qs||!1}return Qs}()?s:!!s.capture}function Iy(){if(null==Ki){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ki=!1,Ki;if("scrollBehavior"in document.documentElement.style)Ki=!0;else{const s=Element.prototype.scrollTo;Ki=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Ki}function Io(s){if(function ky(){if(null==Ro){const s=typeof document<"u"?document.head:null;Ro=!(!s||!s.createShadowRoot&&!s.attachShadow)}return Ro}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function ko(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function vi(s){return s.composedPath?s.composedPath()[0]:s.target}function Dc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Un(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Xs=x(8372);function Hg(s){return(0,Kt.h)((r,e)=>s<=e)}function Pg(s,r){return s===r}var Rg=x(5032);function ft(s){return(0,rn.e)((r,e)=>{(0,Bn.Xf)(s).subscribe((0,Ni.x)(e,()=>e.complete(),Rg.Z)),!e.closed&&r.subscribe(e)})}function at(s){return null!=s&&"false"!=`${s}`}function sn(s,r=0){return function uw(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Mu(s){return Array.isArray(s)?s:[s]}function Wt(s){return null==s?"":"string"==typeof s?s:`${s}px`}function ti(s){return s instanceof p.SBq?s.nativeElement:s}let Du=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ig=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ti(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Pe.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,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:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Du))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),el=(()=>{class s{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=sn(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,Xs.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Ig),p.Y36(p.SBq),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),Vo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Du]}),s})();const tl=new Set;let Ba,Pu=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kg(s){if(!tl.has(s))try{Ba||(Ba=document.createElement("style"),Ba.setAttribute("type","text/css"),document.head.appendChild(Ba)),Ba.sheet&&(Ba.sheet.insertRule(`@media ${s} {body{ }}`,0),tl.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Ru(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let Bo=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Pe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Vg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Vg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ts.a)(a);return l=(0,Rr.z)(l.pipe((0,Ut.q)(1)),l.pipe(Hg(1),(0,Xs.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:o})=>{n.matches=n.matches||i,n.breakpoints[o]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Pu),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vg(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Oo(s,r){return(s.getAttribute(r)||"").match(/\S+/g)||[]}const gw="cdk-describedby-message",il="cdk-describedby-host";let Iu=0,Fg=(()=>{class s{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,p.f3M)(p.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(jg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${il}="${this._id}"]`);for(let t=0;t0!=a.indexOf(gw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function pw(s,r,e){const t=Oo(s,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),s.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(il,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Lg(s,r,e){const a=Oo(s,r).filter(l=>l!=e.trim());a.length?s.setAttribute(r,a.join(" ")):s.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(il)}_isElementDescribedByMessage(e,t){const a=Oo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function ku(s,r){return"string"==typeof s?`${r||""}/${s}`:s}function jg(s,r){s.id||(s.id=`${gw}-${r}-${Iu++}`)}class Vc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Pe.x,this.change=new Pe.x,r instanceof p.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,Xs.b)(r),(0,Kt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||Un(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Bc=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _w(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function mw(s){try{return s.frameElement}catch{return null}}(function vw(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function zg(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function ww(s){return!function bw(s){return function yw(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function Ng(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function Cw(s){return function st(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Vu(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vu(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(s){if(!Vu(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Gg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(r)}}let Ou=(()=>{class s{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Gg(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Bc),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function qn(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function Oc(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new p.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},nl=yn({passive:!0,capture:!0});let LT=(()=>{class s{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new di(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(qn(c)?"keyboard":"mouse"),this._mostRecentTarget=vi(c))},this._onTouchstart=c=>{Oc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(Hg(1)),this.modalityChanged=this.modalityDetected.pipe(function dw(s,r=le.y){return s=s??Pg,(0,rn.e)((e,t)=>{let a,l=!0;e.subscribe((0,Ni.x)(t,c=>{const n=r(c);(l||!s(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,nl),a.addEventListener("mousedown",this._onMousedown,nl),a.addEventListener("touchstart",this._onTouchstart,nl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nl),document.removeEventListener("mousedown",this._onMousedown,nl),document.removeEventListener("touchstart",this._onTouchstart,nl))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Lu,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lo=new p.OlP("cdk-focus-monitor-default-options"),Lc=yn({passive:!0,capture:!0});let ln=(()=>{class s{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 Pe.x,this._rootNodeFocusAndBlurListener=n=>{for(let o=vi(n);o;o=o.parentElement)"focus"===n.type?this._onFocus(n,o):this._onBlur(n,o)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ti(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Io(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Pe.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ti(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ti(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=vi(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Lc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Lc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,p.f3M)(Bo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(zu,qg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,qg):2===t&&e.add(zu,Nu)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Vo]}),s})();const Mw=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function Dw(){return(0,p.f3M)(T.K0)}}),$g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Wn=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Hw(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?$g.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Mw,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const kw=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function Qg(){return!0}});let We=(()=>{class s{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Dc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg),p.LFG(kw,8),p.LFG(T.K0))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yr]}),s})();function Oa(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=at(r)}}}function La(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=at(r)}}}function al(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,p.f3M)(p.soG)}});class Zi{constructor(){this._localeChanges=new Pe.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new p.OlP("mat-date-formats"),Bw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(s,r){const e=Array(s);for(let t=0;t{class s extends Zi{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 Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(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 Yu(7,a=>this._format(t,new Date(2017,0,a+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,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}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(Bw.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,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(qu,8),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Ow={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 Zg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:Kg}]}),s})(),Lw=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:$u,useValue:Ow}],imports:[Zg]}),s})(),zc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();class zT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fw={enterDuration:225,exitDuration:150},tm=yn({passive:!0}),jw=["mousedown","touchstart"],Nw=["mouseup","mouseleave","touchend","touchcancel"];class zw{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ti(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Fw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function UT(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,o=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${o}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,P="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new zT(this,d,t,P);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!P&&(o||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(z),lt=()=>this._destroyRipple(z);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(z,ae),(P||!o)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Fw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ti(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Nw),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=qn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,tm)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(jw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}),this._pointerUpEventsRegistered&&Nw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}))}}const Gw=new p.OlP("mat-ripple-global-options");let Fa=(()=>{class s{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new zw(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(ei),p.Y36(Gw,8),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),s})(),ui=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),Ju=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We]}),s})(),Ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,T.ez,We,Ju]}),s})();const Gc=["mat-button",""],jo=["*"],Uc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sl=La(Oa(fr(class{constructor(s){this._elementRef=s}})));let qc=(()=>{class s extends sl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Uc)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 s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ln),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&p.Gf(Fa,5),2&e){let a;p.iGM(a=p.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:Gc,ngContentSelectors:jo,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1)(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Fa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),$n=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();var Zu=x(1144),An=x(576),Xu=x(3268);const eh=["addListener","removeListener"],Qw=["addEventListener","removeEventListener"],QT=["on","off"];function Wc(s,r,e,t){if((0,An.m)(e)&&(t=e,e=void 0),t)return Wc(s,r,e).pipe((0,Xu.Z)(t));const[a,l]=function sm(s){return(0,An.m)(s.addEventListener)&&(0,An.m)(s.removeEventListener)}(s)?Qw.map(c=>n=>s[c](r,n,e)):function Jw(s){return(0,An.m)(s.addListener)&&(0,An.m)(s.removeListener)}(s)?eh.map(th(s,r)):function om(s){return(0,An.m)(s.on)&&(0,An.m)(s.off)}(s)?QT.map(th(s,r)):[];if(!a&&(0,Zu.z)(s))return(0,wi.z)(c=>Wc(c,r,e))((0,Bn.Xf)(s));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(s,r){return e=>t=>s[e](r,t)}var lm=x(4408);const Ai={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ai;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,s(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...s){const{delegate:r}=Ai;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=Ai;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var dm=x(7565);const um=new class JT extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class cm extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Ai.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Ai.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,pm=1;const $c={};function fm(s){return s in $c&&(delete $c[s],!0)}const gm={setImmediate(s){const r=pm++;return $c[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>fm(r)&&s()),r},clearImmediate(s){fm(s)}},{setImmediate:mm,clearImmediate:Kw}=gm,Yc={setImmediate(...s){const{delegate:r}=Yc;return(r?.setImmediate||mm)(...s)},clearImmediate(s){const{delegate:r}=Yc;return(r?.clearImmediate||Kw)(s)},delegate:void 0},nh=new class bm extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class _m extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Yc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Yc.clearImmediate(e),r._scheduled=void 0)}});var Qc=x(4986),rh=x(2805);function Xw(s,r=Qc.z){return function Zw(s){return(0,rn.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const o=a;a=null,e.next(o)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ni.x)(e,o=>{t=!0,a=o,l||(0,Bn.Xf)(s(o)).subscribe(l=(0,Ni.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,rh.H)(s,r))}let ll=(()=>{class s{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new Pe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}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 Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(Xw(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Kt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ti(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Wc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(ei),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zo=(()=>{class s{constructor(e,t,a){this._platform=e,this._change=new Pe.x,this._changeListener=l=>{this._change.next(l)},this._document=a,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:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Xw(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 s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Na=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yn,Yr,Yn]}),s})();class cl{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class dl extends cl{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class sh extends cl{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class ov extends cl{constructor(r){super(),this.element=r instanceof p.SBq?r.nativeElement:r}}class za{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof dl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof sh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof ov?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class aE extends za{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||p.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let lh=(()=>{class s extends za{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),s})(),Kr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var cn=x(6451);const Kc=Iy();class sv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Kc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Kc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_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 lv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tm{enable(){}disable(){}attach(){}}function ch(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Em(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class cv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();ch(e,[{width:t,height:a,bottom:a,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 dv=(()=>{class s{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new Tm,this.close=c=>new lv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new sv(this._viewportRuler,this._document),this.reposition=c=>new cv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ll),p.LFG(zo),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Go{constructor(r){if(this.scrollStrategy=new Tm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class ul{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Zc=(()=>{class s{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 s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),uv=(()=>{class s extends Zc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qn=(()=>{class s extends Zc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=vi(l)},this._clickListener=l=>{const c=vi(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const d=i[o];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zr=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Dc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Pe.x,this._outsidePointerEvents=new Pe.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,cn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Xr="cdk-overlay-connected-position-bounding-box",Xc=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Xr),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),o=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(o,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,o,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=o)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Xr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="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:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Ua(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),o=this._getOffset(a,"y");i&&(c+=i),o&&(n+=o);let f=0-n,b=n+l.height-t.height,P=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=P*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:P==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=Ga(this._overlayRef.getConfig().minHeight),n=Ga(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&o}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Ua(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),o=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?o||-c:r.xP&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-P/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),P=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>P&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-P/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),o&&(n+=`translateY(${o}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Em(r,t),isOriginOutsideView:ch(r,t),isOverlayClipped:Em(e,t),isOverlayOutsideView:ch(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof p.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function Ga(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xc);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Ua(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const qa="cdk-global-overlay-wrapper";class qo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(qa),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),o=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",P="",z="";i?z="flex-start":"center"===d?(z="center",f?P=u:b=u):f?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",P=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",P=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":P,e.justifyContent=z,e.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(qa),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Wo=(()=>{class s{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new qo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(zo),p.LFG(T.K0),p.LFG(ei),p.LFG(Zr))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$o=0,xi=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=o,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Go(e);return c.direction=c.direction||this._directionality.value,new li(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+$o++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new aE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(dv),p.LFG(Zr),p.LFG(p._Vd),p.LFG(Wo),p.LFG(uv),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Wn),p.LFG(T.Ye),p.LFG(Qn),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Dm={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function Mm(s){return()=>s.scrollStrategies.reposition()}};let Wa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[xi,Dm],imports:[Yr,Kr,Na,Na]}),s})();class dh{}const _r="*";function ii(s,r){return{type:7,name:s,definitions:r,options:{}}}function wt(s,r=null){return{type:4,styles:r,timings:s}}function Hm(s,r=null){return{type:3,steps:s,options:r}}function uh(s,r=null){return{type:2,steps:s,options:r}}function Fe(s){return{type:6,styles:s,offset:null}}function pt(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Yo(s=null){return{type:9,options:s}}function Ya(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function ed(s){Promise.resolve(null).then(s)}class Qo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ed(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class td{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?ed(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Pm=["connectionContainer"],fh=["inputContainer"],gh=["label"];function _v(s,r){1&s&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function Rm(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&s){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Im(s,r){if(1&s&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&s){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function km(s,r){1&s&&p.Hsn(0,3,["*ngSwitchCase","true"])}function Vm(s,r){1&s&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function bv(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.YNc(2,Im,4,1,"ng-container",12),p.YNc(3,km,1,0,"ng-content",12),p.YNc(4,Vm,2,0,"span",22),p.qZA()}if(2&s){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Bm(s,r){1&s&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Om(s,r){if(1&s&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function mh(s,r){if(1&s&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function _h(s,r){if(1&s&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function Lm(s,r){if(1&s&&(p.TgZ(0,"div",27),p.YNc(1,_h,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const Fm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nm=0;const bh=new p.OlP("MatError");let Ch=(()=>{class s{constructor(e,t){this.id="mat-error-"+Nm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return s.\u0275fac=function(e){return new(e||s)(p.$8M("aria-live"),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:bh,useExisting:s}])]}),s})();const zm={transitionMessages:ii("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let fl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s}),s})(),Gm=0;const Um=new p.OlP("MatHint");let hi=(()=>{class s{constructor(){this.align="start",this.id="mat-hint-"+Gm++}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id)("align",null),p.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[p._Bn([{provide:Um,useExisting:s}])]}),s})(),gl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-label"]]}),s})(),Cv=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const yv=new p.OlP("MatPrefix"),qm=new p.OlP("MatSuffix");let Wm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","matSuffix",""]],features:[p._Bn([{provide:qm,useExisting:s}])]}),s})(),yh=0;const vv=La(class{constructor(s){this._elementRef=s}},"primary"),Ym=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),wh=new p.OlP("MatFormField");let vh=(()=>{class s extends vv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+yh++,this._labelId="mat-form-field-label-"+yh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=at(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(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,cn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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,Wc(this._label.nativeElement,"transitionend").pipe((0,Ut.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,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.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,a=".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 d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*P+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Vo,We]}),s})();const Xm={provide:new p.OlP("mat-select-scroll-strategy"),deps:[xi],useFactory:function nd(s){return()=>s.scrollStrategies.reposition()}};let ml=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Xm],imports:[T.ez,Wa,Ku,We,Yn,Ko,Ku,We]}),s})();const i_=["tooltip"],xh="tooltip-panel",r_=yn({passive:!0}),a_=new p.OlP("mat-tooltip-scroll-strategy"),Vv={provide:a_,deps:[xi],useFactory:function kv(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}},Bv=new p.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ov(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Lv=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=o,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 Pe.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=sn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=sn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(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,a])=>{e.removeEventListener(t,a,r_)}),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 dl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.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(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${xh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Un(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ut.q)(1),ft(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:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${xh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&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,a])=>{this._elementRef.nativeElement.addEventListener(t,a,r_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275dir=p.lG2({type:s,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),s})(),Fv=(()=>{class s extends Lv{constructor(e,t,a,l,c,n,i,o,d,u,f,b){super(e,t,a,l,c,n,i,o,d,u,f,b),this._tooltipComponent=Nv}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(ll),p.Y36(p.s_b),p.Y36(p.R0b),p.Y36(ei),p.Y36(Fg),p.Y36(ln),p.Y36(a_),p.Y36(Wn,8),p.Y36(Bv,8),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[p.qOj]}),s})(),jv=(()=>{class s{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Pe.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s}),s})(),Nv=(()=>{class s extends jv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(Bo),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&p.Gf(i_,7),2&e){let a;p.iGM(a=p.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&p.Udp("zoom",t.isVisible()?1:null)},features:[p.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(p.TgZ(0,"div",0,1),p.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),p.ALo(2,"async"),p._uU(3),p.qZA()),2&e){let a;p.ekj("mat-tooltip-handset",null==(a=p.lcZ(2,4,t._isHandset))?null:a.matches),p.Q6J("ngClass",t.tooltipClass),p.xp6(3),p.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),s})(),Xo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Vv],imports:[Fc,T.ez,Wa,We,We,Yn]}),s})(),rd=(()=>{class s{constructor(){this.changes=new Pe.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const s_={provide:rd,deps:[[new p.FiY,new p.tp0,rd]],useFactory:function o_(s){return s||new rd}};let Zn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[s_],imports:[T.ez,$n,ml,Xo,We]}),s})();var d_=x(1005);const Kv=["mat-menu-item",""];function es(s,r){1&s&&(p.O4$(),p.TgZ(0,"svg",2),p._UZ(1,"polygon",3),p.qZA())}const Zv=["*"];function Th(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",0),p.NdJ("keydown",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._handleKeydown(a))})("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationDone(a))}),p.TgZ(1,"div",1),p.Hsn(2),p.qZA()()}if(2&s){const e=p.oxw();p.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),p.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Eh={transformMenu:ii("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ii("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xE=new p.OlP("MatMenuContent"),Sh=new p.OlP("MAT_MENU_PANEL"),ad=fr(Oa(class{}));let Qa=(()=>{class s extends ad{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Pe.x,this._focused=new Pe.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class s{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new p.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new p.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u_++}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=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!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 Vc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(e=>(0,cn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(t=>(0,cn.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:Un(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)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275dir=p.lG2({type:s,contentQueries:function(e,t,a){if(1&e&&(p.Suo(a,xE,5),p.Suo(a,Qa,5),p.Suo(a,Qa,4)),2&e){let l;p.iGM(l=p.CRH())&&(t.lazyContent=l.first),p.iGM(l=p.CRH())&&(t._allItems=l),p.iGM(l=p.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&p.Gf(p.Rgc,5),2&e){let a;p.iGM(a=p.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),s})(),tA=(()=>{class s extends ts{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&p.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p._Bn([{provide:Sh,useExisting:s}]),p.qOj],ngContentSelectors:Zv,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(p.F$t(),p.YNc(0,Th,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Eh.transformMenu,Eh.fadeInItems]},changeDetection:0}),s})();const Mh=new p.OlP("mat-menu-scroll-strategy"),p_={provide:Mh,deps:[xi],useFactory:function h_(s){return()=>s.scrollStrategies.reposition()}},f_=yn({passive:!0});let nA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=o,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Oc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof ts?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,f_),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,f_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof ts&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof ts?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Kt.h)(a=>"void"===a.toState),(0,Ut.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Go({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,o]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",o="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:o,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:o,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Kt.h)(c=>c!==this._menuItemInstance),(0,Kt.h)(()=>this._menuOpen)):(0,De.of)();return(0,cn.T)(e,a,l,t)}_handleMousedown(e){qn(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,Kt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,d_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ts&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ut.q)(1),(0,d_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new sh(e.templateRef,this._viewContainerRef)),this._portal}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(p.s_b),p.Y36(Mh),p.Y36(Sh,8),p.Y36(Qa,10),p.Y36(Wn,8),p.Y36(ln),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,hostVars:3,hostBindings:function(e,t){1&e&&p.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&p.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),s})(),rA=(()=>{class s extends nA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[p.qOj]}),s})(),ea=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[p_],imports:[T.ez,We,ui,Wa,Yn,We]}),s})();var aA=x(4742),oA=x(1810);function Dh(...s){const r=(0,ya.jO)(s),{args:e,keys:t}=(0,aA.D)(s),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,o=c;for(let d=0;d{u||(u=!0,o--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(o||l.next(t?(0,oA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var bl=x(3099);const g_=["*"];let Cl;function yl(s){return function m_(){if(void 0===Cl&&(Cl=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Cl=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Cl}()?.createHTML(s)||s}function is(s){return Error(`Unable to find icon with the name "${s}"`)}function __(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function b_(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class Ja{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ns=(()=>{class s{constructor(e,t,a,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Ja(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(p.q3G.HTML,a);if(!c)throw b_(a);const n=yl(c);return this._addSvgIconConfig(e,t,new Ja("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Ja(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(p.q3G.HTML,t);if(!l)throw b_(t);const c=yl(l);return this._addSvgIconSetConfig(e,new Ja("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw __(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(od(a)):this._loadSvgIconFromConfig(new Ja(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>od(l)))}getNamedSvgIcon(e,t=""){const a=Hh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(is(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(od(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>od(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Dh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const o=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(o)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw is(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(yl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(yl("")),a=e.attributes;for(let l=0;lyl(o)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,bl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Hh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.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 a=0;ar?r.pathname+r.search:""}}}),dA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],y_=dA.map(s=>`[${s}]`).join(", "),sd=/^url\(['"]?#(.*?)['"]?\)$/;let Ph=(()=>{class s extends cA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=at(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(y_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),o=i?i.match(sd):null;if(o){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Ut.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ns),p.$8M("aria-hidden"),p.Y36(HE),p.Y36(p.qLn),p.Y36(DE,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:g_,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),s})(),yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function xn(s){return!!s&&(s instanceof Vi.y||(0,An.m)(s.lift)&&(0,An.m)(s.subscribe))}var vl=x(6063);class uA extends Pe.x{constructor(r=1/0,e=1/0,t=vl.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew uA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class Al{}let v_=(()=>{class s extends Al{getTranslation(e){return(0,De.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Rh{}let Ih=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function ld(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let a,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!ld(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=s.length)==r.length){for(l=0;l{ia(r[t])?t in s?e[t]=A_(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class xl{}let x_=(()=>{class s extends xl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return ta(c)?c:a}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Tl{}let T_=(()=>{class s extends Tl{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class kh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const Vh=new p.OlP("USE_STORE"),El=new p.OlP("USE_DEFAULT_LANG"),Bh=new p.OlP("DEFAULT_LANGUAGE"),cd=new p.OlP("USE_EXTEND");let Xi=(()=>{class s{constructor(e,t,a,l,c,n=!0,i=!1,o=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=o,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(w_(1),(0,Ut.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),w_(1),(0,Ut.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?A_(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,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),xn(c[i])&&(n=!0);return n?Dh(t.map(o=>xn(c[o])?c[o]:(0,De.of)(c[o]))).pipe((0,ze.U)(o=>{let d={};return o.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,zi.b)(a=>xn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return xn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onLangChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return xn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(xn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(kh),p.LFG(Al),p.LFG(Tl),p.LFG(xl),p.LFG(Rh),p.LFG(El),p.LFG(Vh),p.LFG(cd),p.LFG(Bh))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Ka=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);xn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ld(e,this.lastKey)&&ld(t,this.lastParams))return this.value;let a;if(ta(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{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi,16),p.Y36(p.sBO,16))},s.\u0275pipe=p.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Sl=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},kh,{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Zn,ea,yr,$n,Sl,T.ez]}),s})();function hA(s,r){}class Ml{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let E_=(()=>{class s extends za{constructor(e,t,a,l,c,n,i,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=ko(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ko();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ko())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Ml),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&p.Gf(lh,7),2&e){let a;p.iGM(a=p.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&p.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,hA,0,0,"ng-template",0)},dependencies:[lh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class Lh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Pe.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Un(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const S_=new p.OlP("DialogScrollStrategy"),pA=new p.OlP("DialogData"),fA=new p.OlP("DefaultDialogConfig"),mA={provide:S_,deps:[xi],useFactory:function gA(s){return()=>s.scrollStrategies.block()}};let M_=0,Fh=(()=>{class s{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(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}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+M_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Lh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){jh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Go({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Lh,useValue:t},{provide:li,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=E_;const i=new dl(n,a.viewContainerRef,p.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof p.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new sh(e,null,n,c))}else{const n=a.attachComponentPortal(new dl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:pA,useValue:e.data},{provide:Lh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Wn,null,p.XFs.Optional))&&c.push({provide:Wn,useValue:{value:e.direction,change:(0,De.of)()}}),p.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(fA,8),p.LFG(s,12),p.LFG(Zr),p.LFG(S_))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function jh(s,r){let e=s.length;for(;e--;)r(s[e])}let _A=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Fh,mA],imports:[Wa,Kr,Fc,Kr]}),s})();function D_(s,r){}const rs={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},bA={dialogContainer:ii("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Hm([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ya("@*",Yo(),{optional:!0})]),rs),_t("* => void, * => exit",Hm([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ya("@*",Yo(),{optional:!0})]),rs)])};class Dl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=rs.params.enterAnimationDuration,this.exitAnimationDuration=rs.params.exitAnimationDuration}}let Nh=(()=>{class s extends E_{constructor(e,t,a,l,c,n,i,o){super(e,t,a,l,c,n,i,o),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),zh=(()=>{class s extends Nh{constructor(e,t,a,l,c,n,i,o,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||rs.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||rs.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(p.sBO),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(p.Ikx("id",t._config.id),p.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,D_,0,0,"ng-template",0)},dependencies:[lh],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[bA.dialogContainer]}}),s})();class as{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Pe.x,this._beforeClosed=new Pe.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Kt.h)(a=>"opened"===a.state),(0,Ut.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Kt.h)(a=>"closed"===a.state),(0,Ut.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,cn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Kt.h)(a=>27===a.keyCode&&!this.disableClose&&!Un(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Gh(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Kt.h)(e=>"closing"===e.state),(0,Ut.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const CA=new p.OlP("MatDialogData"),yA=new p.OlP("mat-dialog-default-options"),dd=new p.OlP("mat-dialog-scroll-strategy"),os={provide:dd,deps:[xi],useFactory:function H_(s){return()=>s.scrollStrategies.block()}};let P_=0,wA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=o,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(Fh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ss=(()=>{class s extends wA{constructor(e,t,a,l,c,n,i,o){super(e,t,l,n,i,c,as,zh,CA,o)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(T.Ye,8),p.LFG(yA,8),p.LFG(dd),p.LFG(s,12),p.LFG(Zr),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),R_=0,k_=(()=>{class s{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function vA(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as,8),p.Y36(p.SBq),p.Y36(ss))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),V_=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),ls=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[ss,os],imports:[_A,Wa,Kr,We,We]}),s})();function hd(){const s=new Dl;return s.disableClose=!0,s.autoFocus=!1,s}function cs(s,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class G_{static passwordMatchValidator(r){const e=r.get("passwordCtrl").value,t=r.get("passwordAgainCtrl").value;return r.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(r){return e=>{if(!e.value)return null;let t=0;for(const a of r)t+=a.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Wi=(()=>{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(_i),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=cs("idphint",location.search.substring(1));n&&(c.idphint=n)}return{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,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Kt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).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 a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr)).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 a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(Wi),p.LFG(ss),p.LFG(cr),p.LFG(Wh.Ct))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$h=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Hl,Ka]}),s})(),gd=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hd();this.dialog.open($h,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(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 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 a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(Wi),p.LFG(df),p.LFG(rt),p.LFG(ss),p.LFG(_i))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),md=(()=>{class s{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ns),p.LFG(ai))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Yh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2)(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[k_,Hl,V_,qc,Ka]}),s})(),q_=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qh=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){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,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Xi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),W_=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hd();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Yh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>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(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(q_),p.LFG(Qh),p.LFG(Wi),p.LFG(ss),p.LFG(gd))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),GA=(()=>{class s{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,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 y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qh),p.LFG(U_),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_d=(()=>{class s{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(cr),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Jh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},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 s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s}),s})(),na=(()=>{class s extends Jh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,features:[p.qOj]}),s})();const Li=new p.OlP("NgValueAccessor"),$A={provide:Li,useExisting:(0,p.Gpc)(()=>pi),multi:!0},YA=new p.OlP("CompositionEventMode");let pi=(()=>{class s extends Jh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(YA,8))},s.\u0275dir=p.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&p.NdJ("input",function(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:[p._Bn([$A]),p.qOj]}),s})();function ra(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function Q_(s){return null!=s&&"number"==typeof s.length}const bi=new p.OlP("NgValidators"),Za=new p.OlP("NgAsyncValidators"),J_=/^(?=.{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 us{static min(r){return function hs(s){return r=>{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return bd(r)}static requiredTrue(r){return function Z_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Zh(s){return ra(s.value)||J_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function X_(s){return r=>ra(r.value)||!Q_(r.value)?null:r.value.lengthQ_(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function Xa(s){if(!s)return Cd;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(ra(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return ip(r)}static composeAsync(r){return rp(r)}}function bd(s){return ra(s.value)?{required:!0}:null}function Cd(s){return null}function yd(s){return null!=s}function Xh(s){return(0,p.QGY)(s)?(0,yi.D)(s):s}function ep(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Pl(s,r){return r.map(e=>e(s))}function QA(s){return s.map(r=>function tp(s){return!s.validate}(r)?r:e=>r.validate(e))}function ip(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return ep(Pl(e,r))}}function np(s){return null!=s?ip(QA(s)):null}function rp(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return Dh(Pl(e,r).map(Xh)).pipe((0,ze.U)(ep))}}function aa(s){return null!=s?rp(QA(s)):null}function tb(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function ap(s){return s._rawValidators}function wd(s){return s._rawAsyncValidators}function ib(s){return s?Array.isArray(s)?s:[s]:[]}function vd(s,r){return Array.isArray(s)?s.includes(r):s===r}function JA(s,r){const e=ib(r);return ib(s).forEach(a=>{vd(e,a)||e.push(a)}),e}function nb(s,r){return ib(r).filter(e=>!vd(s,e))}class rb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=np(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=aa(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Fi extends rb{get formDirective(){return null}get path(){return null}}class Tn extends rb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class op{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ad=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Tn,2))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[p.qOj]}),s})(),sp=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[p.qOj]}),s})();const Td="VALID",eo="INVALID",Il="PENDING",ps="DISABLED";function fs(s){return(gs(s)?s.validators:s)||null}function cp(s){return Array.isArray(s)?np(s):s||null}function Ed(s,r){return(gs(r)?r.asyncValidators:s)||null}function nx(s){return Array.isArray(s)?aa(s):s||null}function gs(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}function dp(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[e])throw new p.vHH(1001,"")}function sb(s,r,e){s._forEachChild((t,a)=>{if(void 0===e[a])throw new p.vHH(1002,"")})}class kl{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=cp(this._rawValidators),this._composedAsyncValidatorFn=nx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Td}get invalid(){return this.status===eo}get pending(){return this.status==Il}get disabled(){return this.status===ps}get enabled(){return this.status!==ps}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=cp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=nx(r)}addValidators(r){this.setValidators(JA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(JA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(nb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(nb(r,this._rawAsyncValidators))}hasValidator(r){return vd(this._rawValidators,r)}hasAsyncValidator(r){return vd(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Il,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ps,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Td,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Td||this.status===Il)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ps:Td}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Il,this._hasOwnPendingAsyncValidator=!0;const e=Xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?ps:this.errors?eo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Il)?Il:this._anyControlsHaveStatus(eo)?eo:Td}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){gs(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class up extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){sb(this,0,r),Object.keys(r).forEach(t=>{dp(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Sd(s,r){return[...r.path,s]}function Md(s,r){gp(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function uS(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&mp(s,r)})}(s,r),function lb(s,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function ox(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&mp(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function ax(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function pp(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Dd(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function fp(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function gp(s,r){const e=ap(s);null!==r.validator?s.setValidators(tb(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=wd(s);null!==r.asyncValidator?s.setAsyncValidators(tb(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const a=()=>s.updateValueAndValidity();fp(r._rawValidators,a),fp(r._rawAsyncValidators,a)}function Dd(s,r){let e=!1;if(null!==s){if(null!==r.validator){const a=ap(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const a=wd(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return fp(r._rawValidators,t),fp(r._rawAsyncValidators,t),e}function mp(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function sx(s,r){gp(s,r)}function bp(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function db(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yp(s,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===pi?e=l:function Cp(s){return Object.getPrototypeOf(s.constructor)===na}(l)?t=l:a=l}),a||t||e||null}const ub={provide:Fi,useExisting:(0,p.Gpc)(()=>ms)},Vl=(()=>Promise.resolve(null))();let ms=(()=>{class s extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new up({},np(e),aa(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Md(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new up({});sx(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,db(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 s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([ub]),p.qOj]}),s})();function vp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function hb(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const to=class extends kl{constructor(r=null,e,t){super(fs(e),Ed(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gs(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hb(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){vp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){vp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){hb(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},pb=to,dx={provide:Tn,useExisting:(0,p.Gpc)(()=>xp)},mb=(()=>Promise.resolve(null))();let xp=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new to,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),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),bp(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(){Md(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){mb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,p.D6c)(t);mb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Sd(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,9),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(p.sBO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([dx]),p.qOj,p.TTD]}),s})(),px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Hd=new p.OlP("NgModelWithFormControlWarning"),Pd={provide:Fi,useExisting:(0,p.Gpc)(()=>sa)};let sa=(()=>{class s extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dd(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 Md(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){pp(e.control||null,e,!1),function wp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,db(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,a=this.form.get(e.path);t!==a&&(pp(t||null,e),(s=>s instanceof to)(a)&&(Md(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);sx(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function En(s,r){return Dd(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gp(this.form,this),this._oldForm&&Dd(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([Pd]),p.qOj,p.TTD]}),s})();const mS={provide:Tn,useExisting:(0,p.Gpc)(()=>xb)};let xb=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new p.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bp(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 Sd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,13),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(Hd,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[p._Bn([mS]),p.qOj,p.TTD]}),s})(),la=(()=>{class s{constructor(){this._validator=Cd}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):Cd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,features:[p.TTD]}),s})();const _x={provide:bi,useExisting:(0,p.Gpc)(()=>no),multi:!0};let no=(()=>{class s extends la{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.D6c,this.createValidator=e=>bd}enabled(e){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([_x]),p.qOj]}),s})(),Ip=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[px]}),s})(),kp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})(),ao=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:Hd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})();class Vp extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let a=this._adjustIndex(r);a<0&&(a=0),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(r,e={}){sb(this,0,r),r.forEach((t,a)=>{dp(this,!1,a),this.at(a).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((t,a)=>{this.at(a)&&this.at(a).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function Bp(s){return!!s&&(void 0!==s.asyncValidators||void 0!==s.validators||void 0!==s.updateOn)}let Op=(()=>{class s{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new s;return e.useNonNullable=!0,e}group(e,t=null){const a=this._reduceControls(e);let l={};return Bp(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new up(a,l)}control(e,t,a){let l={};return this.useNonNullable?(Bp(t)?l=t:(l.validators=t,l.asyncValidators=a),new to(e,{...l,nonNullable:!0})):new to(e,t,a)}array(e,t,a){const l=e.map(c=>this._createControl(c));return new Vp(l,t,a)}_reduceControls(e){const t={};return Object.keys(e).forEach(a=>{t[a]=this._createControl(e[a])}),t}_createControl(e){return e instanceof to||e instanceof kl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})(),Ax=(()=>{class s extends Op{group(e,t=null){return super.group(e,t)}control(e,t,a){return super.control(e,t,a)}array(e,t,a){return super.array(e,t,a)}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})();const xx=yn({passive:!0});let Tx=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zt.E;const t=ti(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new Pe.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,xx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,xx)}}),l}stopMonitoring(e){const t=ti(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.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 s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ex=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Sx=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),ES=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let SS=0;const Mx=al(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Pe.x}});let Dx=(()=>{class s extends Mx{constructor(e,t,a,l,c,n,i,o,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=o,this._formField=u,this._uid="mat-input-"+SS++,this.focused=!1,this.stateChanges=new Pe.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(P=>Ry().has(P)),this._iOSKeyupListener=P=>{const z=P.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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=at(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(us.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ry().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=at(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ES.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 s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(Tn,10),p.Y36(ms,8),p.Y36(sa,8),p.Y36(zc),p.Y36(Sx,10),p.Y36(Tx),p.Y36(p.R0b),p.Y36(wh,8))},s.\u0275dir=p.lG2({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:fl,useExisting:s}]),p.qOj,p.TTD]}),s})(),Lp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc],imports:[Ex,Ko,We,Ex,Ko]}),s})();function MS(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DS=(()=>{class s{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,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 s.\u0275fac=function(e){return new(e||s)(p.Y36(as),p.Y36(Xi),p.Y36(Qh),p.Y36(Rt),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"input",2,3),p.NdJ("ngModelChange",function(l){return t.subject=l}),p.qZA(),p.YNc(10,MS,3,3,"mat-error",4),p.qZA(),p.TgZ(11,"mat-form-field")(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"textarea",5),p.NdJ("ngModelChange",function(l){return t.message=l}),p.ALo(16,"translate"),p._uU(17," "),p.qZA(),p.TgZ(18,"mat-hint"),p._uU(19),p.ALo(20,"translate"),p.qZA()()(),p.TgZ(21,"div",6)(22,"div",7)(23,"button",8),p.NdJ("click",function(){return t.close()}),p._uU(24),p.ALo(25,"translate"),p.qZA(),p.TgZ(26,"button",9),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(27),p.ALo(28,"translate"),p.qZA()()()),2&e){const a=p.MAs(9);p.xp6(1),p.Oqu(p.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),p.xp6(5),p.Oqu(p.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),p.xp6(2),p.Q6J("ngModel",t.subject),p.xp6(2),p.Q6J("ngIf",a.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",t.message),p.xp6(4),p.Oqu(p.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),p.xp6(5),p.hij(" ",p.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",a.invalid),p.xp6(1),p.hij(" ",p.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,pi,Ad,no,xp,qc,Ch,vh,hi,gl,Dx,k_,Hl,V_,Ka],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),s})(),HS=(()=>{class s{transform(e,t,a){return e[`${a}_${t}`]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedText",type:s,pure:!0}),s})(),PS=(()=>{class s{transform(e,t){return e["link_"+t]||e.link_en}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedLink",type:s,pure:!0}),s})(),h=(()=>{class s{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"footerLogoPath",type:s,pure:!0}),s})();function g(s,r){if(1&s&&(p.TgZ(0,"a",13),p.ALo(1,"localisedLink"),p._UZ(2,"img",14),p.ALo(3,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,2,e,t.language),p.LSH),p.xp6(2),p.s9C("src",p.lcZ(3,5,e.logo),p.LSH)}}function m(s,r){if(1&s&&(p.TgZ(0,"span"),p._UZ(1,"img",14),p.ALo(2,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit;p.xp6(1),p.s9C("src",p.lcZ(2,1,e.logo),p.LSH)}}function _(s,r){if(1&s&&(p.TgZ(0,"div"),p.YNc(1,g,4,7,"a",11),p.ALo(2,"localisedLink"),p.YNc(3,m,3,3,"span",12),p.ALo(4,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",p.xi3(2,2,e,t.language)),p.xp6(2),p.Q6J("ngIf",!p.xi3(4,5,e,t.language))}}const C=function(s){return{"min-height":s}};function w(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,_,5,8,"div",5),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,C,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}const v=function(s){return{color:s}};function E(s,r){if(1&s&&(p.TgZ(0,"i",20),p._uU(1),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(2,v,t.linksTextColor)),p.xp6(1),p.hij(" ",e.icon," ")}}function S(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"span",21),p.NdJ("click",function(){p.CHM(e);const a=p.oxw().$implicit,l=p.oxw(3);return p.KtG(l.openDialog(a.dialog))}),p._uU(1),p.ALo(2,"localisedText"),p.qZA()}if(2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.hij("",p.Dn7(2,2,e,t.language,"label")," ")}}function H(s,r){if(1&s&&(p.TgZ(0,"a",22),p.ALo(1,"localisedLink"),p._uU(2),p.ALo(3,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,3,e,t.language),p.LSH)("ngStyle",p.VKq(10,v,t.linksTextColor)),p.xp6(2),p.Oqu(p.Dn7(3,6,e,t.language,"label"))}}function R(s,r){if(1&s&&(p.TgZ(0,"span",10),p._uU(1),p.ALo(2,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.Oqu(p.Dn7(2,2,e,t.language,"label"))}}function L(s,r){if(1&s&&(p.TgZ(0,"div",16),p.YNc(1,E,2,4,"i",17),p.YNc(2,S,3,8,"span",18),p.YNc(3,H,4,12,"a",19),p.ALo(4,"localisedLink"),p.YNc(5,R,3,8,"span",9),p.ALo(6,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",e.icon),p.xp6(1),p.Q6J("ngIf",e.dialog),p.xp6(1),p.Q6J("ngIf",p.xi3(4,4,e,t.language)&&!e.dialog),p.xp6(2),p.Q6J("ngIf",!p.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(s){return{height:s}};function re(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,L,7,10,"div",15),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,X,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}function me(s,r){if(1&s&&(p.TgZ(0,"div",7)(1,"h6",8),p._uU(2),p.ALo(3,"localisedText"),p.qZA(),p.YNc(4,w,2,4,"div",9),p.YNc(5,re,2,4,"div",9),p.qZA()),2&s){const e=r.$implicit,t=p.oxw();p.ekj("my-auto",t.containsLogos),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,v,t.headersTextColor)),p.xp6(1),p.hij(" ",p.Dn7(3,6,e,t.language,"title")," "),p.xp6(2),p.Q6J("ngIf",e.logos),p.xp6(1),p.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(s,r){if(1&s&&(p.TgZ(0,"span")(1,"a",6),p._uU(2),p.qZA()()),2&s){const e=r.$implicit,t=r.index,a=p.oxw();p.xp6(1),p.Q6J("href",e.url,p.LSH)("ngStyle",p.VKq(3,v,a.copyrightTextColor)),p.xp6(1),p.Oqu(t?", "+e.name:e.name)}}const He=function(s){return{background:s}};let je=(()=>{class s{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,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=hd();"reportIssue"===e&&(t.width="550px",this.dialog.open(DS,t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(ss))},s.\u0275cmp=p.Xpm({type:s,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&&(p.TgZ(0,"footer",0)(1,"div",1),p.YNc(2,me,6,12,"div",2),p.qZA(),p._UZ(3,"hr",3),p.TgZ(4,"div",4),p._uU(5),p.YNc(6,Ae,3,5,"span",5),p._uU(7," Version "),p.TgZ(8,"a",6),p._uU(9),p.qZA()()()),2&e&&(p.Q6J("ngStyle",p.VKq(8,He,t.bgColor)),p.xp6(2),p.Q6J("ngForOf",t.footerColumns),p.xp6(2),p.Q6J("ngStyle",p.VKq(10,v,t.copyrightTextColor)),p.xp6(1),p.hij(" \xa9 ",t.currentYear," Copyright: "),p.xp6(1),p.Q6J("ngForOf",t.copyrightItems),p.xp6(2),p.Q6J("href",t.githubRepository,p.LSH)("ngStyle",p.VKq(12,v,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,HS,PS,h],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}"]}),s})();const Ze=["*",[["mat-toolbar-row"]]],ye=["*","mat-toolbar-row"],$e=La(class{constructor(s){this._elementRef=s}});let bt=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),s})(),jt=(()=>{class s extends $e{constructor(e,t,a){super(e),this._platform=t,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-toolbar"]],contentQueries:function(e,t,a){if(1&e&&p.Suo(a,bt,5),2&e){let l;p.iGM(l=p.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[p.qOj],ngContentSelectors:ye,decls:2,vars:0,template:function(e,t){1&e&&(p.F$t(Ze),p.Hsn(0),p.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),s})(),Vd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function Fp(s,r){1&s&&(p.TgZ(0,"div",10)(1,"span",11),p._uU(2," ~ \u{1f5f2}\xa0 "),p.qZA(),p.TgZ(3,"span",12),p._uU(4," DEVEL "),p.qZA(),p.TgZ(5,"span",11),p._uU(6," \xa0\u{1f5f2} ~ "),p.qZA()())}const jp=function(s){return{background:s}},Ol=function(s){return{color:s}};let Np=(()=>{class s{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,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 s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai),p.Y36(_d),p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex-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&&(p.TgZ(0,"mat-toolbar",0)(1,"div",1),p._UZ(2,"a",2),p.TgZ(3,"p",3),p._uU(4),p.qZA()(),p.YNc(5,Fp,7,0,"div",4),p.TgZ(6,"div",5)(7,"button",6)(8,"mat-icon",7),p._uU(9," language "),p.qZA()(),p.TgZ(10,"mat-menu",null,8)(12,"button",9),p.NdJ("click",function(){return t.changeLanguage()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()()()),2&e){const a=p.MAs(11);p.Q6J("ngStyle",p.VKq(11,jp,t.bgColor)),p.xp6(2),p.Q6J("innerHTML",t.logo,p.oJD),p.xp6(1),p.Q6J("ngStyle",p.VKq(13,Ol,t.textColor)),p.xp6(1),p.Oqu(t.label),p.xp6(1),p.Q6J("ngIf",t.isDevel),p.xp6(1),p.Q6J("ngStyle",p.VKq(15,Ol,t.textColor)),p.xp6(1),p.Q6J("matMenuTriggerFor",a),p.xp6(1),p.Q6J("ngStyle",p.VKq(17,Ol,t.iconColor)),p.xp6(5),p.hij(" ",p.lcZ(14,9,"HEADER.LANGUAGE")," ")}},dependencies:[T.O5,T.PC,Ph,qc,tA,Qa,rA,jt,Ka],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex-row[_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}#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}"]}),s})();function zp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function Gp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const iH=La(class{constructor(s){this._elementRef=s}},"primary"),nH=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function rH(){return{diameter:100}}});class ca extends iH{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const o=ca._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(t.head)||o.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=sn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=sn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,sn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Io(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=ca._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ca._diameters=new WeakMap,ca.\u0275fac=function(r){return new(r||ca)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0,8),p.Y36(p.QbO,8),p.Y36(nH),p.Y36(p.sBO),p.Y36(zo),p.Y36(p.R0b))},ca.\u0275cmp=p.Xpm({type:ca,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(p.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,zp,1,11,"circle",2),p.YNc(3,Gp,1,9,"circle",3),p.qZA()),2&r&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let qp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,T.ez,We]}),s})(),Hx=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yr,T.ez]}),s})(),oH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ko,Xo,ao,Lp,Sl,qp,yr,Hx]}),s})();class sH{isErrorState(r){return!(!r?.invalid||!r?.dirty)}}const lH=(s,r,e,t=500)=>a=>(0,rh.H)(t).pipe((0,Hi.w)(()=>(e.dontHandleErrorForNext(),s&&"No namespace"!==s?r.checkPasswordStrength({password:a.value,namespace:s}):(0,De.of)(null))),(0,ze.U)(()=>null),(0,M.K)(l=>{const c=l.error,n={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,De.of)(n)}));function cH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function dH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function uH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function hH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const pH=["*"];let Px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:pH,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,cH,2,0,"mat-icon",1),p.YNc(2,dH,2,0,"mat-icon",1),p.YNc(3,uH,2,0,"mat-icon",1),p.YNc(4,hH,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ph,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fH(s,r){1&s&&p._UZ(0,"mat-spinner",12),2&s&&p.Q6J("diameter",18)}function gH(s,r){if(1&s&&(p.TgZ(0,"mat-icon",13),p._uU(1," error "),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function mH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _H(s,r){if(1&s&&(p.TgZ(0,"mat-error",14),p._uU(1),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip()),p.xp6(1),p.Oqu(e.getErrorTooltip())}}function bH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function CH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let yH=(()=>{class s{constructor(e,t,a){this.translator=e,this.usersManagerService=t,this.store=a,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!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=>{const t=e.userAttributes.find(a=>"preferredLanguage"===a.friendlyName);this.language=t?.value??"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 s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi),p.Y36(ar),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[p.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&&(p.TgZ(0,"div",0)(1,"mat-form-field",1),p._UZ(2,"input",2),p.ALo(3,"translate"),p.YNc(4,fH,1,1,"mat-spinner",3),p.TgZ(5,"mat-icon",4),p.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),p._uU(6),p.qZA(),p.YNc(7,gH,2,2,"mat-icon",5),p.YNc(8,mH,3,3,"mat-error",6),p.YNc(9,_H,2,2,"mat-error",7),p.qZA(),p.TgZ(10,"mat-form-field",8)(11,"mat-label"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p._UZ(14,"input",9),p.TgZ(15,"mat-icon",4),p.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),p._uU(16),p.qZA(),p.YNc(17,bH,3,3,"mat-error",6),p.YNc(18,CH,3,3,"mat-error",6),p.qZA(),p.TgZ(19,"perun-web-apps-alert",10),p._UZ(20,"div",11),p.qZA()()),2&e&&(p.Q6J("formGroup",t.formGroup),p.xp6(1),p.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),p.xp6(1),p.s9C("placeholder",p.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),p.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),p.xp6(2),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),p.xp6(2),p.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),p.xp6(3),p.Oqu(p.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),p.xp6(2),p.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),p.xp6(2),p.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),p.xp6(2),p.Q6J("innerHTML",t.passwordRequirement,p.oJD))},dependencies:[T.O5,Ch,vh,gl,Wm,Fv,pi,Ad,sp,no,sa,xb,Dx,ca,Ph,Px,Ka],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)}"]}),s})();function wH(s,r){if(1&s&&p._UZ(0,"perun-web-apps-password-form",4),2&s){const e=p.oxw();p.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function vH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div")(1,"button",5),p.NdJ("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.onSubmit())}),p._uU(2),p.ALo(3,"translate"),p.qZA()()}if(2&s){const e=p.oxw();p.xp6(1),p.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),p.xp6(1),p.hij(" ",p.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function AH(s,r){if(1&s&&(p.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function xH(s,r){1&s&&p._UZ(0,"mat-spinner",8)}let TH=(()=>{class s{constructor(e,t,a,l,c){this.storeService=e,this.translate=t,this.apiRequestConfiguration=a,this.usersService=l,this._formBuilder=c,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 pb("",us.required,[lH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new pb("",us.required)},{validators:G_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(q_),p.Y36(ar),p.Y36(Ax))},s.\u0275cmp=p.Xpm({type:s,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&&(p.YNc(0,wH,1,3,"perun-web-apps-password-form",0),p.YNc(1,vH,4,4,"div",1),p.YNc(2,AH,4,3,"div",2),p.YNc(3,xH,1,0,"mat-spinner",3)),2&e&&(p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading))},dependencies:[T.O5,qc,ca,sp,sa,Px,yH,Ka]}),s})(),EH=(()=>{class s{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,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&&(p.TgZ(0,"perun-web-apps-alert",0),p._UZ(1,"div",1),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.invalidRequestMessage,p.oJD))},dependencies:[Px],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})();function SH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function MH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function DH(s,r){if(1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-password-reset-form",10)),2&s){const e=p.oxw();p.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function HH(s,r){1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-invalid-request-alert"))}let PH=(()=>{class s{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai))},s.\u0275cmp=p.Xpm({type:s,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&&(p.TgZ(0,"div"),p._UZ(1,"div",0),p.TgZ(2,"div",1)(3,"h1"),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.O4$(),p.TgZ(6,"svg",2)(7,"g",3),p._UZ(8,"path",4)(9,"path",5),p.qZA()()(),p.YNc(10,SH,4,4,"p",6),p.YNc(11,MH,4,4,"p",6),p.YNc(12,DH,1,5,"perun-web-apps-password-reset-form",7),p.YNc(13,HH,1,0,"perun-web-apps-invalid-request-alert",8),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.passwordResetLogo,p.oJD),p.xp6(3),p.hij(" ",p.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),p.xp6(6),p.Q6J("ngIf",t.login),p.xp6(1),p.Q6J("ngIf",t.namespace),p.xp6(1),p.Q6J("ngIf",t.validToken||t.authWithoutToken),p.xp6(1),p.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[T.O5,TH,EH,Ka],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),s})();const RH=["footer"],IH=function(s){return{background:s}},kH=function(s){return{"min-height":s}};let VH=(()=>{class s{constructor(e,t,a,l,c,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=a,this.translateService=l,this.store=c,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=cs("namespace",t),t.includes("token")?(this.token=cs("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(a=>{const l=a.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ss),p.Y36(ar),p.Y36(_d),p.Y36(Xi),p.Y36(Wi),p.Y36(Mr),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&p.Gf(RH,5),2&e){let a;p.iGM(a=p.CRH())&&(t.footer=a.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&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-header",0),p.TgZ(2,"div",1)(3,"div",2),p._UZ(4,"perun-web-apps-password-reset-page",3),p.qZA(),p.TgZ(5,"div",null,4),p._UZ(7,"perun-web-apps-footer"),p.qZA()()()),2&e&&(p.xp6(2),p.Q6J("ngStyle",p.VKq(8,IH,t.contentBackgroundColor)),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,kH,t.contentHeight)),p.xp6(1),p.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},dependencies:[T.PC,je,Np,PH],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}}"]}),s})();class BH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}function RS(s){return new p.vHH(3e3,!1)}function _P(){return typeof window<"u"&&typeof window.document<"u"}function Rx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(s){switch(s.length){case 0:return new Qo;case 1:return s[0];default:return new td(s)}}function IS(s,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,o=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&o||new Map;d.forEach((P,z)=>{let ae=z,ke=P;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(z);break;case _r:ke=l.get(z);break;default:ke=r.normalizeStyleValue(z,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),o=b,i=u}),c.length)throw function aP(s){return new p.vHH(3502,!1)}();return n}function Ix(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&kx(e,"start",s)));break;case"done":s.onDone(()=>t(e&&kx(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&kx(e,"destroy",s)))}}function kx(s,r,e){const l=Vx(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function Vx(s,r,e,t,a="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Sn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function kS(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let Bx=(s,r)=>!1,VS=(s,r,e)=>[],BS=null;function Ox(s){const r=s.parentNode||s.host;return r===BS?null:r}(Rx()||typeof Element<"u")&&(_P()?(BS=(()=>document.documentElement)(),Bx=(s,r)=>{for(;r;){if(r===s)return!0;r=Ox(r)}return!1}):Bx=(s,r)=>s.contains(r),VS=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Fl=null,OS=!1;const LS=Bx,FS=VS;let jS=(()=>{class s{validateStyleProperty(e){return function CP(s){Fl||(Fl=function yP(){return typeof document<"u"?document.body:null}()||{},OS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function bP(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Fl.style,!r&&OS&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return LS(e,t)}getParentElement(e){return Ox(e)}query(e,t,a){return FS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Qo(a,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Lx=(()=>{class s{}return s.NOOP=new jS,s})();const Fx="ng-enter",Ib="ng-leave",kb="ng-trigger",Vb=".ng-trigger",zS="ng-animating",jx=".ng-animating";function Cs(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Nx(parseFloat(r[1]),r[2])}function Nx(s,r){return"s"===r?1e3*s:s}function Bb(s,r,e){return s.hasOwnProperty("duration")?s:function AP(s,r,e){let a,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(RS()),{duration:0,delay:0,easing:""};a=Nx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Nx(parseFloat(i),n[4]));const o=n[5];o&&(c=o)}else a=s;if(!e){let n=!1,i=r.length;a<0&&(r.push(function OH(){return new p.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function LH(){return new p.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,RS())}return{duration:a,delay:l,easing:c}}(s,r,e)}function Wp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GS(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ys(s,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of s)r.set(t,a);return r}function qS(s,r,e){return e?r+":"+e+";":""}function WS(s){let r="";for(let e=0;e{const l=Gx(a);e&&!e.has(a)&&e.set(a,s.style[l]),s.style[l]=t}),Rx()&&WS(s))}function jl(s,r){s.style&&(r.forEach((e,t)=>{const a=Gx(t);s.style[a]=""}),Rx()&&WS(s))}function $p(s){return Array.isArray(s)?1==s.length?s[0]:uh(s):s}const zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function $S(s){let r=[];if("string"==typeof s){let e;for(;e=zx.exec(s);)r.push(e[1]);zx.lastIndex=0}return r}function Ob(s,r,e){const t=s.toString(),a=t.replace(zx,(l,c)=>{let n=r[c];return null==n&&(e.push(function jH(s){return new p.vHH(3003,!1)}()),n=""),n.toString()});return a==t?s:a}function Lb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const EP=/-+([a-z0-9])/g;function Gx(s){return s.replace(EP,(...r)=>r[1].toUpperCase())}function SP(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function NH(s){return new p.vHH(3004,!1)}()}}function YS(s,r){return window.getComputedStyle(s)[r]}function IP(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function kP(s,r,e){if(":"==s[0]){const i=function VP(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function eP(s){return new p.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(QS(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(QS(c,a))}(t,e,r)):e.push(s),e}const zb=new Set(["true","1"]),Gb=new Set(["false","0"]);function QS(s,r){const e=zb.has(s)||Gb.has(s),t=zb.has(r)||Gb.has(r);return(a,l)=>{let c="*"==s||s==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?zb.has(s):Gb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?zb.has(r):Gb.has(r)),c&&n}}const BP=new RegExp("s*:selfs*,?","g");function Ux(s,r,e,t){return new OP(s).build(r,e,t)}class OP{constructor(r){this._driver=r}build(r,e,t){const a=new jP(e);return this._resetContextStyleTimingState(a),Mn(this,$p(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function GH(){return new p.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,o=i.name;o.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=o}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function UH(){return new p.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{$S(i).forEach(o=>{c.hasOwnProperty(o)||l.add(o)})})}),l.size&&(Lb(l.values()),e.errors.push(function qH(s,r){return new p.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Mn(this,$p(r.animation),e);return{type:1,matchers:IP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Mn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Mn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function zP(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return qx(Bb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=qx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Bb(e,r);return qx(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const o={};t.easing&&(o.easing=t.easing),c=Fe(o)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new p.vHH(3002,!1)):t.push(GS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const o=e.collectedStyles.get(e.currentQuerySelector),d=o.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function $H(s,r,e,t,a){return new p.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&o.set(i,{startTime:l,endTime:a}),e.options&&function TP(s,r,e){const t=r.params||{},a=$S(s);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function FH(s){return new p.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YH(){return new p.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,o=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function NP(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=P+z.delay+zt,z.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Mn(this,$p(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function LP(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(BP,"")),s=s.replace(/@\*/g,Vb).replace(/@\w+/g,e=>Vb+"-"+e.slice(1)).replace(/:animating/g,jx),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Sn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Mn(this,$p(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function ZH(){return new p.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Bb(r.timings,e.errors,!0);return{type:12,animation:Mn(this,$p(r.animation),e),timings:t,options:null}}}class jP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(s){return s?(s=Wp(s)).params&&(s.params=function FP(s){return s?Wp(s):null}(s.params)):s={},s}function qx(s,r,e){return{duration:s,delay:r,easing:e}}function Wx(s,r,e,t,a,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const qP=new RegExp(":enter","g"),$P=new RegExp(":leave","g");function $x(s,r,e,t,a,l=new Map,c=new Map,n,i,o=[]){return(new YP).buildKeyframes(s,r,e,t,a,l,c,n,i,o)}class YP{buildKeyframes(r,e,t,a,l,c,n,i,o,d=[]){o=o||new Ub;const u=new Yx(r,e,o,a,l,d,[]);u.options=i;const f=i.delay?Cs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Mn(this,t,u);const b=u.timelines.filter(P=>P.containsAnimation());if(b.length&&n.size){let P;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){P=ae;break}}P&&!P.allowOnlyTimelineStyles()&&P.setStyles([n],null,u.errors,i)}return b.length?b.map(P=>P.buildKeyframes()):[Wx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Cs(t.duration):null,n=null!=t.delay?Cs(t.delay):null;return 0!==c&&r.forEach(i=>{const o=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,o.duration+o.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Mn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=qb);const c=Cs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Mn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?Cs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Mn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Bb(e.params?Ob(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?Cs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((o,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,o);l&&u.delayNextStep(l),o===e.element&&(i=u.currentTimeline),Mn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Mn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const qb={};class Yx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Wb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=Cs(t.duration)),null!=t.delay&&(a.delay=Cs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Ob(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Yx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=qb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new QP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(qP,"."+this._enterClassName)).replace($P,"."+this._leaveClassName);let o=this._driver.query(this.element,r,1!=t);0!==t&&(o=t<0?o.slice(o.length+t,o.length):o.slice(0,t)),n.push(...o)}return!l&&0==n.length&&c.push(function XH(s){return new p.vHH(3014,!1)}()),n}}class Wb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Wb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function JP(s,r){const e=new Map;let t;return s.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else ys(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const o=Ob(i,l,t);this._pendingStyles.set(n,o),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,o)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const o=ys(n,new Map,this._backFill);o.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||o.set("offset",i/this.duration),a.push(o)});const l=r.size?Lb(r.values()):[],c=e.size?Lb(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Wx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class QP extends Wb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ys(r[0]);i.set("offset",0),l.push(i);const o=ys(r[0]);o.set("offset",ZS(n)),l.push(o);const d=r.length-1;for(let u=1;u<=d;u++){let f=ys(r[u]);const b=f.get("offset");f.set("offset",ZS((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Wx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function ZS(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class Qx{}const KP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ZP extends Qx{normalizePropertyName(r,e){return Gx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(KP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function zH(s,r){return new p.vHH(3005,!1)}())}return c+l}}function XS(s,r,e,t,a,l,c,n,i,o,d,u,f){return{type:0,element:s,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:o,postStyleProps:d,totalTime:u,errors:f}}const Jx={};class eM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function XP(s,r,e,t,a){return s.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,o,d){const u=[],f=this.ast.options&&this.ast.options.params||Jx,P=this.buildStyles(t,n&&n.params||Jx,u),z=i&&i.params||Jx,ae=this.buildStyles(a,z,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,Ar={params:eR(z,f),delay:this.ast.options?.delay},tr=d?[]:$x(r,e,this.ast.animation,l,c,P,ae,Ar,o,u);let en=0;if(tr.forEach(uo=>{en=Math.max(uo.duration+uo.delay,en)}),u.length)return XS(e,this._triggerName,t,a,zt,P,ae,[],[],lt,yt,en,u);tr.forEach(uo=>{const ho=uo.element,wD=Sn(lt,ho,new Set);uo.preStyleProps.forEach(Gl=>wD.add(Gl));const nf=Sn(yt,ho,new Set);uo.postStyleProps.forEach(Gl=>nf.add(Gl)),ho!==e&&ke.add(ho)});const co=Lb(ke.values());return XS(e,this._triggerName,t,a,zt,P,ae,tr,co,lt,yt,en)}}function eR(s,r){const e=Wp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class tR{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Wp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Ob(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class nR{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new tR(a.style,a.options&&a.options.params||{},t))}),tM(this.states,"true","1"),tM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new eM(r,a,this.states))}),this.fallbackTransition=function rR(s,r,e){return new eM(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function tM(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const aR=new Ub;class oR{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Ux(this._driver,e,t,[]);if(t.length)throw function oP(s){return new p.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=IS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=$x(this._driver,e,l,Fx,Ib,new Map,new Map,t,aR,a),c.forEach(d=>{const u=Sn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function sP(){return new p.vHH(3300,!1)}()),c=[]),a.length)throw function lP(s){return new p.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const o=bs(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,o),o.onDestroy(()=>this.destroy(r)),this.players.push(o),o}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function cP(s){return new p.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Vx(e,"","","");return Ix(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);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(a[0]));break;case"destroy":this.destroy(r)}}}const iM="ng-animate-queued",Kx="ng-animate-disabled",uR=[],nM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xn="__ng_removed";class Zx{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function mR(s){return s??null}(t?r.value:r),t){const l=Wp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Yp="void",Xx=new Zx(Yp);class pR{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,er(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function dP(s,r){return new p.vHH(3302,!1)}();if(null==t||0==t.length)throw function uP(s){return new p.vHH(3303,!1)}();if(!function _R(s){return"start"==s||"done"==s}(t))throw function hP(s,r){return new p.vHH(3400,!1)}();const l=Sn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Sn(this._engine.statesByElement,r,new Map);return n.has(e)||(er(r,kb),er(r,kb+"-"+e),n.set(e,Xx)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function pP(s){return new p.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new e0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(er(r,kb),er(r,kb+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const o=new Zx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&o.absorbOptions(i.options),n.set(e,o),i||(i=Xx),o.value!==Yp&&i.value===o.value){if(!function yR(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),da(r,ke)})}return}const f=Sn(this._engine.playersByElement,r,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,o.value,r,o.params),P=!1;if(!b){if(!a)return;b=l.fallbackTransition,P=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:o,player:c,isFallbackTransition:P}),P||(er(r,iM),c.onStart(()=>{Bd(r,iM)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Vb,!0);t.forEach(a=>{if(a[Xn])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,o)=>{if(c.set(o,i.value),this._triggers.has(o)){const d=this.trigger(r,o,Yp,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&bs(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,o=t.get(c)||Xx,d=new Zx(Yp),u=new e0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:o,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[Xn];(!l||l===nM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){er(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Vx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Ix(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class fR{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new pR(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const o=t.indexOf(i);t.splice(o+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if($b(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!$b(e))return;const l=e[Xn];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),er(r,Kx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Bd(r,Kx))}removeNode(r,e,t,a){if($b(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[Xn]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return $b(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Vb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,jx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return bs(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[Xn];if(e&&e.setForRemoval){if(r[Xn]=nM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Kx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bs(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function fP(s){return new p.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,o=new Map,d=new Set;this.disabledNodes.forEach(Ue=>{d.add(Ue);const Xe=this.driver.query(Ue,".ng-animate-queued",!0);for(let it=0;it{const it=Fx+z++;P.set(Xe,it),Ue.forEach(xt=>er(xt,it))});const ae=[],ke=new Set,lt=new Set;for(let Ue=0;Ueke.add(xt)):lt.add(Xe))}const yt=new Map,zt=oM(f,Array.from(ke));zt.forEach((Ue,Xe)=>{const it=Ib+z++;yt.set(Xe,it),Ue.forEach(xt=>er(xt,it))}),r.push(()=>{b.forEach((Ue,Xe)=>{const it=P.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),zt.forEach((Ue,Xe)=>{const it=yt.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),ae.forEach(Ue=>{this.processLeaveNode(Ue)})});const Ar=[],tr=[];for(let Ue=this._namespaceList.length-1;Ue>=0;Ue--)this._namespaceList[Ue].drainQueuedTransitions(e).forEach(it=>{const xt=it.player,Ii=it.element;if(Ar.push(xt),this.collectedEnterElements.length){const $i=Ii[Xn];if($i&&$i.setForMove){if($i.previousTriggersValues&&$i.previousTriggersValues.has(it.triggerName)){const Ul=$i.previousTriggersValues.get(it.triggerName),ir=this.statesByElement.get(it.element);if(ir&&ir.has(it.triggerName)){const _C=ir.get(it.triggerName);_C.value=Ul,ir.set(it.triggerName,_C)}}return void xt.destroy()}}const ha=!u||!this.driver.containsElement(u,Ii),Dn=yt.get(Ii),vs=P.get(Ii),ni=this._buildInstruction(it,t,vs,Dn,ha);if(ni.errors&&ni.errors.length)return void tr.push(ni);if(ha)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);if(it.isFallbackTransition)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);const xD=[];ni.timelines.forEach($i=>{$i.stretchStartingKeyframe=!0,this.disabledNodes.has($i.element)||xD.push($i)}),ni.timelines=xD,t.append(Ii,ni.timelines),c.push({instruction:ni,player:xt,element:Ii}),ni.queriedElements.forEach($i=>Sn(n,$i,[]).push(xt)),ni.preStyleProps.forEach(($i,Ul)=>{if($i.size){let ir=i.get(Ul);ir||i.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))}}),ni.postStyleProps.forEach(($i,Ul)=>{let ir=o.get(Ul);ir||o.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))})});if(tr.length){const Ue=[];tr.forEach(Xe=>{Ue.push(function gP(s,r){return new p.vHH(3505,!1)}())}),Ar.forEach(Xe=>Xe.destroy()),this.reportError(Ue)}const en=new Map,co=new Map;c.forEach(Ue=>{const Xe=Ue.element;t.has(Xe)&&(co.set(Xe,Xe),this._beforeAnimationBuild(Ue.player.namespaceId,Ue.instruction,en))}),a.forEach(Ue=>{const Xe=Ue.element;this._getPreviousPlayers(Xe,!1,Ue.namespaceId,Ue.triggerName,null).forEach(xt=>{Sn(en,Xe,[]).push(xt),xt.destroy()})});const uo=ae.filter(Ue=>lM(Ue,i,o)),ho=new Map;aM(ho,this.driver,lt,o,_r).forEach(Ue=>{lM(Ue,i,o)&&uo.push(Ue)});const nf=new Map;b.forEach((Ue,Xe)=>{aM(nf,this.driver,new Set(Ue),i,"!")}),uo.forEach(Ue=>{const Xe=ho.get(Ue),it=nf.get(Ue);ho.set(Ue,new Map([...Array.from(Xe?.entries()??[]),...Array.from(it?.entries()??[])]))});const Gl=[],vD=[],AD={};c.forEach(Ue=>{const{element:Xe,player:it,instruction:xt}=Ue;if(t.has(Xe)){if(d.has(Xe))return it.onDestroy(()=>da(Xe,xt.toStyles)),it.disabled=!0,it.overrideTotalTime(xt.totalTime),void a.push(it);let Ii=AD;if(co.size>1){let Dn=Xe;const vs=[];for(;Dn=Dn.parentNode;){const ni=co.get(Dn);if(ni){Ii=ni;break}vs.push(Dn)}vs.forEach(ni=>co.set(ni,Ii))}const ha=this._buildAnimation(it.namespaceId,xt,en,l,nf,ho);if(it.setRealPlayer(ha),Ii===AD)Gl.push(it);else{const Dn=this.playersByElement.get(Ii);Dn&&Dn.length&&(it.parentPlayer=bs(Dn)),a.push(it)}}else jl(Xe,xt.fromStyles),it.onDestroy(()=>da(Xe,xt.toStyles)),vD.push(it),d.has(Xe)&&a.push(it)}),vD.forEach(Ue=>{const Xe=l.get(Ue.element);if(Xe&&Xe.length){const it=bs(Xe);Ue.setRealPlayer(it)}}),a.forEach(Ue=>{Ue.parentPlayer?Ue.syncPlayerEvents(Ue.parentPlayer):Ue.destroy()});for(let Ue=0;Ue!ha.destroyed);Ii.length?bR(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Gl.forEach(Ue=>{this.players.push(Ue),Ue.onDone(()=>{Ue.destroy();const Xe=this.players.indexOf(Ue);this.players.splice(Xe,1)}),Ue.play()}),Gl}elementContainsData(r,e){let t=!1;const a=e[Xn];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Yp;n.forEach(o=>{o.queued||!i&&o.triggerName!=a||c.push(o)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const o=i.element,d=o!==l,u=Sn(t,o,[]);this._getPreviousPlayers(o,d,c,n,e.toState).forEach(b=>{const P=b.getRealPlayer();P.beforeDestroy&&P.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,o=[],d=new Set,u=new Set,f=e.timelines.map(P=>{const z=P.element;d.add(z);const ae=z[Xn];if(ae&&ae.removedBeforeQueried)return new Qo(P.duration,P.delay);const ke=z!==i,lt=function CR(s){const r=[];return sM(s,r),r}((t.get(z)||uR).map(en=>en.getRealPlayer())).filter(en=>!!en.element&&en.element===z),yt=l.get(z),zt=c.get(z),Ar=IS(0,this._normalizer,0,P.keyframes,yt,zt),tr=this._buildPlayer(P,Ar,lt);if(P.subTimeline&&a&&u.add(z),ke){const en=new e0(r,n,z);en.setRealPlayer(tr),o.push(en)}return tr});o.forEach(P=>{Sn(this.playersByQueriedElement,P.element,[]).push(P),P.onDone(()=>function gR(s,r,e){let t=s.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,P.element,P))}),d.forEach(P=>er(P,zS));const b=bs(f);return b.onDestroy(()=>{d.forEach(P=>Bd(P,zS)),da(i,e.toStyles)}),u.forEach(P=>{Sn(a,P,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Qo(r.duration,r.delay)}}class e0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Qo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Ix(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Sn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function $b(s){return s&&1===s.nodeType}function rM(s,r){const e=s.style.display;return s.style.display=r??"none",e}function aM(s,r,e,t,a){const l=[];e.forEach(i=>l.push(rM(i)));const c=[];t.forEach((i,o)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(o,u,a);d.set(u,f),(!f||0==f.length)&&(o[Xn]=hR,c.push(o))}),s.set(o,d)});let n=0;return e.forEach(i=>rM(i,l[n++])),c}function oM(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const o=n.parentNode;return i=e.has(o)?o:a.has(o)?1:c(o),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function er(s,r){s.classList?.add(r)}function Bd(s,r){s.classList?.remove(r)}function bR(s,r,e){bs(e).onDone(()=>s.processLeaveNode(r))}function sM(s,r){for(let e=0;ea.add(l)):r.set(s,t),e.delete(s),!0}class Yb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new fR(r,e,t),this._timelineEngine=new oR(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Ux(this._driver,l,i,[]);if(i.length)throw function rP(s,r){return new p.vHH(3404,!1)}();n=function iR(s,r,e){return new nR(s,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=kS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=kS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let vR=(()=>{class s{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&da(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(da(this._element,this._initialStyles),this._endStyles&&(da(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),da(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function t0(s){let r=null;return s.forEach((e,t)=>{(function AR(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class cM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:YS(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return LS(r,e)}getParentElement(r){return Ox(r)}query(r,e,t){return FS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const o=new Map,d=c.filter(b=>b instanceof cM);(function MP(s,r){return 0===s||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((P,z)=>o.set(z,P))});let u=function xP(s){return s.length?s[0]instanceof Map?s:s.map(r=>GS(r)):[]}(e).map(b=>ys(b));u=function DP(s,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,YS(s,n)))}}return r}(r,u,o);const f=function wR(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=t0(r[0]),r.length>1&&(t=t0(r[r.length-1]))):r instanceof Map&&(e=t0(r)),e||t?new vR(s,e,t):null}(r,u);return new cM(r,u,i,f)}}let TR=(()=>{class s extends dh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?uh(e):e;return dM(this._renderer,null,t,"register",[a]),new ER(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class ER extends class mv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new SR(this._id,r,e||{},this._renderer)}}class SR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return dM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function dM(s,r,e,t,a){return s.setProperty(r,`@@${e}:${t}`,a)}const uM="@.disabled";let MR=(()=>{class s{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new hM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new DR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(Yb),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class hM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==uM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class DR extends hM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function HR(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function PR(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const pM=[{provide:dh,useClass:TR},{provide:Qx,useFactory:function IR(){return new ZP}},{provide:Yb,useClass:(()=>{class s extends Yb{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(Lx),p.LFG(Qx),p.LFG(p.z2F))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:p.FYo,useFactory:function kR(s,r,e){return new MR(s,r,e)},deps:[ue,Yb,p.R0b]}],n0=[{provide:Lx,useFactory:()=>new xR},{provide:p.QbO,useValue:"BrowserAnimations"},...pM],fM=[{provide:Lx,useClass:jS},{provide:p.QbO,useValue:"NoopAnimations"},...pM];let VR=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?fM:n0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:n0,imports:[ga]}),s})(),BR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,ls,$n,Sl]}),s})();const OR=[];let LR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yu.forRoot(OR,{relativeLinkResolution:"legacy"}),T.ez,yu]}),s})(),FR=(()=>{class s{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function jR(s){return[hn(tinycolor(s).lighten(52),"50"),hn(tinycolor(s).lighten(37),"100"),hn(tinycolor(s).lighten(26),"200"),hn(tinycolor(s).lighten(12),"300"),hn(tinycolor(s).lighten(6),"400"),hn(tinycolor(s),"500"),hn(tinycolor(s).darken(6),"600"),hn(tinycolor(s).darken(12),"700"),hn(tinycolor(s).darken(18),"800"),hn(tinycolor(s).darken(24),"900"),hn(tinycolor(s).lighten(50).saturate(30),"A100"),hn(tinycolor(s).lighten(30).saturate(30),"A200"),hn(tinycolor(s).lighten(10).saturate(15),"A400"),hn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,o=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(i,o)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),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(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Wi),p.LFG(rt),p.LFG(Y),p.LFG(gn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function hn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let NR=(()=>{class s{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}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 s.\u0275fac=function(e){return new(e||s)(p.LFG(gd),p.LFG(FR),p.LFG(T.Ye))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const zR=new p.OlP("perun-api-service");let gM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),bM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Jb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,Vo,bM,We,bM]}),s})(),r0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),yM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,iI,Kr]}),s})(),vM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,We,Fo,We]}),s})(),aI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr]}),s})(),a0=(()=>{class s{constructor(){this.changes=new Pe.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const mI={provide:a0,deps:[[new p.FiY,new p.tp0,a0]],useFactory:function gI(s){return s||new a0}};let EM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[mI,zc],imports:[We,T.ez,Kr,$n,aI,yr,ui,We]}),s})(),PI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Na]}),s})(),sC=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[PI,We,We]}),s})(),KI=(()=>{class s{constructor(){this.changes=new Pe.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const sk={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[xi],useFactory:function ok(s){return()=>s.scrollStrategies.reposition()}};let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[KI,sk],imports:[T.ez,$n,Wa,Fc,Kr,We,Yn]}),s})(),zM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Yn,Yn,We]}),s})(),UM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,ui,We,Ju,T.ez,Fo,We,Ju,r0]}),s})(),b0=(()=>{class s{constructor(){this.changes=new Pe.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Sk={provide:b0,deps:[[new p.FiY,new p.tp0,b0]],useFactory:function Ek(s){return s||new b0}};let C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Sk],imports:[T.ez,We]}),s})(),Rk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Kr,ui,Vo,Fc,We]}),s})(),qM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),WM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qM,ui,We,Vo,qM,We]}),s})();const JM=new p.OlP("mat-chips-default-options");let w0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc,{provide:JM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),s})(),KM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,sC,WM,w0,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,Rk,WM,w0]}),s})();function v0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?s.setProperty(t,a,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Nd(s,r){const e=r?"":"none";v0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function ZM(s,r,e){v0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function uC(s,r){return r&&"none"!=r?s+" "+r:s}function XM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function A0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function x0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function T0(s,r,e){const{top:t,bottom:a,left:l,right:c}=s;return e>=t&&e<=a&&r>=l&&r<=c}function Zp(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function eD(s,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:o}=s,d=i*r,u=o*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:x0(e)})})}handleScroll(r){const e=vi(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const o=this.getViewportScrollPosition();l=o.top,c=o.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((o,d)=>{o.clientRect&&e!==d&&e.contains(d)&&Zp(o.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function iD(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),P=this._dropContainer;if(!b)return void this._endDragSequence(n);(!P||!P.isDragging()&&!P.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const o=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(o),this._dropContainer)this._updateActiveDropContainer(o,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=o.x-d.x+this._passiveTransform.x,u.y=o.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:o,event:n,distance:this._getDragDistance(o),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new tD(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=at(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ti(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ti(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hC),e.addEventListener("touchstart",this._pointerDown,oD),e.addEventListener("dragstart",this._nativeDragStart,hC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ti(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Xp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),ZM(t,!1,E0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Xp(e),l=!a&&0!==e.button,c=this._rootElement,n=vi(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),o=a?Oc(e):qn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||o)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=x0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){ZM(this._rootElement,!0,E0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=lD(c,this._document),this._previewRef=c,r.matchSize?cD(a,l):a.style.transform=pC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=iD(this._rootElement),cD(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return v0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},E0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function a1(s){const r=getComputedStyle(s),e=A0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=A0(r,"transition-duration"),c=A0(r,"transition-delay");return XM(l[a])+XM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||vi(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=lD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Xp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Xp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:o}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(o-c);t=sD(t,n.left+l,n.right-(i-l)),a=sD(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,hC),r.removeEventListener("touchstart",this._pointerDown,oD),r.removeEventListener("dragstart",this._nativeDragStart,hC)}_applyRootElementTransform(r,e){const t=pC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=uC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=pC(r,e);this._preview.style.transform=uC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Xp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=vi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Zp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Io(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ti(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function pC(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function sD(s,r,e){return Math.max(r,Math.min(e,s))}function Xp(s){return"t"===s.type[0]}function lD(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function cD(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=pC(r.left,r.top)}function ef(s,r){return Math.max(0,Math.min(r,s))}class d1{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),o=l[c],u=o.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),P=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function c1(s,r,e){const t=ef(r,s.length-1),a=ef(e,s.length-1);if(t===a)return;const l=s[t],c=a{if(z[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:P,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=uC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Zp(ae.clientRect,0,yt)):(zt.style.transform=uC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Zp(ae.clientRect,yt,0))}),this._previousSwap.overlaps=T0(u,e,t),this._previousSwap.drag=o.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let o=c[l];if(o===r&&(o=c[l+1]),!o&&(null==l||-1===l||l-1&&c.splice(n,1),o&&!this._dragDropRegistry.isDragging(o)){const d=o.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ti(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Zp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:x0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",o=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[o]:n+=l[i]-c.clientRect[o]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const o=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&o===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Pe.x,this.entered=new Pe.x,this.exited=new Pe.x,this.dropped=new Pe.x,this.sorted=new Pe.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r1(s=0,r=Qc.z){return s<0&&(s=0),(0,rh.H)(s,s,r)}(0,um).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ti(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t),this._sortStrategy=new d1(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ti(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||eD(c.clientRect,.05,r,e)&&([a,l]=function h1(s,r,e,t){const a=hD(r,t),l=pD(r,e);let c=0,n=0;if(a){const i=s.scrollTop;1===a?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=hD(i,e),l=pD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ti(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ti(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ti(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&T0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!T0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ti(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Io(ti(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function hD(s,r){const{top:e,bottom:t,height:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function pD(s,r){const{left:e,right:t,width:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const fC=yn({passive:!1,capture:!0});let p1=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new Pe.x,this.pointerUp=new Pe.x,this.scroll=new Pe.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},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,fC)})}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,fC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"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:fC}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:fC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,cn.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 s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const f1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let g1=(()=>{class s{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=f1){return new l1(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u1(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b),p.LFG(zo),p.LFG(p1))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),m1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[g1],imports:[Yn]}),s})(),_1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez]}),s})(),b1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),A1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),P1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[A1,We,We]}),s})(),U1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();new p.OlP("mat-selectsearch-default-options");let Q1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[[T.ez,ao,$n,Jb,yr,qp,Xo]]}),s})(),J1=(()=>{class s extends Kg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const K1={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 Z1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:J1},{provide:$u,useValue:K1}],imports:[T.ez,Jb,sC,kp,w0,m1,Sl,yu,C0,Zn,qp,Hx,yr,ea,$n,Xo,Ko,ao,Lp,ui,_1,b1,P1,_0,U1,Ku,ml,Q1,Na,ls,Oh,KM]}),s})();const KV={provide:y.TP,useExisting:(0,p.Gpc)(()=>W_),multi:!0};function ZV(s){return new BH(s,"./assets/i18n/",".json")}function XV(s){const r={basePath:s.get("api_url")};return new Oe(r)}const eB=s=>()=>s.loadConfigs();let tB=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(md),p.LFG(Xi))},s.\u0275mod=p.oAB({type:s,bootstrap:[VH]}),s.\u0275inj=p.cJS({providers:[md,{provide:p.ip1,useFactory:eB,multi:!0,deps:[NR]},{provide:Oe,useFactory:XV,deps:[Wi]},W_,KV,{provide:zR,useClass:GA},{provide:Wh.Hy,useFactory:()=>localStorage}],imports:[ga,Sl.forRoot({loader:{provide:Al,useFactory:ZV,deps:[y.eN]}}),VR,yr,BR,Ql,y.JF,LR,KM,Hx,oH,Wh.zr.forRoot(),Z1]}),s})();(0,p.G48)(),Qe().bootstrapModule(tB).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(p,V){var O={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var V=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 O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.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},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}p.HMAC=j,p.hash=W,p.default=W,p.hmac=Q;var $=new Uint8Array(p.digestLength);p.hkdf=function G(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=G.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(G)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,G,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=G=G||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,G,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,G,te){if(G=G||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),G);else if(I($))O($,G,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,G,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,G,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=U.saveAs=U,F.exports=U}.apply(N,[]))&&(F.exports=p)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),p=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function G(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,p.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=U(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=U(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function U(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),p=x(727);const O=(0,x(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class U extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new Q(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new O}next(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?p.Lc:(this.currentObservers=null,J.push(G),new p.w0(()=>{this.currentObservers=null,(0,I.P)(J,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:ne,isStopped:J}=this;te?G.error(ne):J&&G.complete()}asObservable(){const G=new T.y;return G.source=this,G}}return U.create=($,G)=>new Q($,G),U})();class Q extends W{constructor($,G){super(),this.destination=$,this.source=G}next($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,$)}error($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,$)}complete(){var $,G;null===(G=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===G||G.call($)}_subscribe($){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe($))&&void 0!==te?te:p.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),p=x(727),V=x(2416),O=x(7849),I=x(5032);const j=U("C",void 0,void 0);function U(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),G=x(2806);class te extends p.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,p.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return U("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return U("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(U=>function(G){U(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const J of G)J.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var G;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push($)}}_hasParent($){const{_parentage:G}=this;return G===$||Array.isArray(G)&&G.includes($)}_addParent($){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push($),G):G?[G,$]:$}_removeParent($){const{_parentage:G}=this;G===$?this._parentage=null:Array.isArray(G)&&(0,O.P)(G,$)}remove($){const{_finalizers:G}=this;G&&(0,O.P)(G,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const U=new I;return U.closed=!0,U})();const j=I.EMPTY;function W(U){return U instanceof I||U&&"closed"in U&&(0,T.m)(U.remove)&&(0,T.m)(U.add)&&(0,T.m)(U.unsubscribe)}function Q(U){(0,T.m)(U)?U():U.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),p=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),U=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,p.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function G(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,U.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function p(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>p});const p=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>Ye});var T=x(8421),p=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,p.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,p.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,p.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var U=x(9751),G=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new U.y(Te=>{(0,p.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,p.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new U.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new U.y(Te=>{let oe;return(0,p.f)(Te,Ee,()=>{oe=Se[G.h](),(0,p.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),p=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),U=x(3260),$=x(576),G=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,p.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,G.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,U.L)(we))return function Ve(we){return ge((0,U.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),p=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),U=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,p.Xf)($[0]):(0,T.J)(U)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),p=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,p.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),p=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,p.Xf)(Q[0]):new T.y(function W(Q){return U=>{let $=[];for(let G=0;$&&!U.closed&&G{if($){for(let ne=0;ne<$.length;ne++)ne!==G&&$[ne].unsubscribe();$=null}U.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),p=x(576);function V(O,I){const j=(0,p.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),p=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=p.P){let U=-1;return null!=W&&((0,V.K)(W)?Q=W:U=W),new T.y($=>{let G=(0,O.q)(j)?+j-Q.now():j;G<0&&(G=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=U?this.schedule(void 0,U):$.complete())},G)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>p});var T=x(930);function p(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,U,$){super(I),this.onFinalize=U,this.shouldUnsubscribe=$,this._next=j?function(G){try{j(G)}catch(te){I.error(te)}}:super._next,this._error=Q?function(G){try{Q(G)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(G){I.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),p=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,U=!1;Q=j.subscribe((0,p.x)(W,void 0,void 0,G=>{$=(0,T.Xf)(I(G,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):U=!0})),U&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),p=x(576);function V(O,I){return(0,p.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),p=x(4482),V=x(5403);function O(I,j=T.z){return(0,p.e)((W,Q)=>{let U=null,$=null,G=null;const te=()=>{if(U){U.unsubscribe(),U=null;const J=$;$=null,Q.next(J)}};function ne(){const J=G+I,ie=j.now();if(ie{$=J,G=j.now(),U||(U=j.schedule(ne,I),Q.add(U))},()=>{te(),Q.complete()},void 0,()=>{$=U=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),p=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,p.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),p=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),U=x(5577);function $(ne,J){return J?ie=>(0,p.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,U.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var G=x(2805);function te(ne,J=T.z){const ie=(0,G.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>O.call(I,U,Q++)&&W.next(U)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),p=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,U){const $=arguments.length>=2;return G=>G.pipe(Q?(0,p.h)((te,ne)=>Q(te,ne,G)):j.y,(0,V.q)(1),$?(0,O.d)(U):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>{W.next(O.call(I,U,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});var T=x(4004);function p(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),p=x(4671);function V(O=1/0){return(0,T.z)(p.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),p=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(U,$,G=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,p.Xf)(U(te,ne))),G):("number"==typeof $&&(G=$),(0,V.e)((te,ne)=>function j(U,$,G,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,p.Xf)(G(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return U.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,U,G)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),p=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new p.x),resetOnError:U=!0,resetOnComplete:$=!0,resetOnRefCountZero:G=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,G))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,U,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...U){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...U).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),p=x(4482),V=x(5403);function O(I,j){return(0,p.e)((W,Q)=>{let U=null,$=0,G=!1;const te=()=>G&&!U&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{U?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(U=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{U=null,te()}))},()=>{G=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),p=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,p.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,U=>{++Q<=I&&(W.next(U),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),p=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const U=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return U?(0,p.e)(($,G)=>{var te;null===(te=U.subscribe)||void 0===te||te.call(U);let ne=!0;$.subscribe((0,V.x)(G,J=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,J),G.next(J)},()=>{var J;ne=!1,null===(J=U.complete)||void 0===J||J.call(U),G.complete()},J=>{var ie;ne=!1,null===(ie=U.error)||void 0===ie||ie.call(U,J),G.error(J)},()=>{var J,ie;ne&&(null===(J=U.unsubscribe)||void 0===J||J.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),p=x(4482),V=x(5403);function O(j=I){return(0,p.e)((W,Q)=>{let U=!1;W.subscribe((0,V.x)(Q,$=>{U=!0,Q.next($)},()=>U?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>U});var T=x(4986),p=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(G=>function(ne=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function U(G,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,p.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(G){throw new Q(G)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class p extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:U}=V;return U?.setInterval?U.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends p{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const U=this.id,$=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId($,U,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,U=0){return V.setInterval(W.flush.bind(W,this),U)}recycleAsyncId(W,Q,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(W,Q);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,U=!1;try{this.work(W)}catch(G){U=!0,$=G||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:U}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(U,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class p{constructor(I,j=p.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}p.now=T.l.now;class V extends p{constructor(I,j=p.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(p,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(p,V,...O):setTimeout(p,V,...O)},clearTimeout(p){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});const p=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});const p=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),p=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,p.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:p,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&p(W)===V}(Q)){const U=O(Q);return{args:U.map($=>Q[$]),keys:U}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(p,V){if(p){const O=p.indexOf(V);0<=O&&p.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(p){const O=p(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(p,V){return p.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let p=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!p;if(j&&(p={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=p;if(p=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=I)}},9672:(F,N,x)=>{"use strict";function T(p,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?p.add(this.schedule(null,I)):this.unsubscribe()},I);if(p.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(p){return p}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>p});var T=x(576);function p(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(p){return p instanceof Date&&!isNaN(p)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(p){return"function"==typeof p}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),p=x(576);function V(O){return(0,p.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),p=x(576);function V(O){return(0,p.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>p});var T=x(576);function p(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),p=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:U}=yield(0,T.qq)(W.read());if(U)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,p.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});var T=x(576);function p(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>p,e:()=>V});var T=x(576);function p(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(p(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:p}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return p(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>p});var T=x(4671);function p(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),p=x(3410);function V(O){p.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ti){try{Le(ue.next(Ti))}catch(Hn){ot(Hn)}}function It(Ti){try{Le(ue.throw(Ti))}catch(Hn){ot(Hn)}}function Le(Ti){Ti.done?Me(Ti.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ti.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Gt){ue[Gt]&&(Re[Gt]=function(Dt){return new Promise(function(pn,ri){Me.push([Gt,Dt,pn,ri])>1||Tt(Gt,Dt)})})}function Tt(Gt,Dt){try{!function It(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,Ti):Hn(Me[0][2],Gt)}(ue[Gt](Dt))}catch(pn){Hn(Me[0][3],pn)}}function Le(Gt){Tt("next",Gt)}function Ti(Gt){Tt("throw",Gt)}function Hn(Gt,Dt){Gt(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Be,EM:()=>ya,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>qd,NF:()=>Es,O5:()=>Di,Ov:()=>cf,PC:()=>lf,RF:()=>Pr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>Zt,ez:()=>_n,mk:()=>Yl,n9:()=>Qi,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let p=null;function V(){return p}function I(M){p||(p=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function U(){return(0,T.LFG)(G)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let G=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new G((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function qd(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Yl=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,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 D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class ar{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new ar(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ge=B.get(pe);B.move(Ge,le),mi(Ge,ee)}});for(let ee=0,pe=B.length;ee{mi(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function mi(M,k){M.context.$implicit=k.item}let Di=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new nn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){As("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){As("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class nn{constructor(){this.$implicit=null,this.ngIf=null}}function As(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Ca{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 Pr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Ca(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Pr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),lf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class CC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class yC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const wC=new yC,vC=new CC;let cf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return wC;if((0,T.F4k)(D))return vC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Zt="browser";function Es(M){return M===Zt}let ya=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,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 D=function an(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),p=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class U{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeYi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Jt=Object.keys(Y.setParams).reduce((Yi,tt)=>Yi.set(tt,Y.setParams[tt]),Jt)),new Ee(q,ce,et,{params:Jt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Jt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Jt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Jt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(Q))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new p.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const po=/^\)\]\}',?\n/;let fo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),tn=function zd(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:tn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:tn,url:Tr}=Ne(),fi=null;204!==kt&&(fi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=fi?200:0);let Er=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof fi){const Sr=fi;fi=fi.replace(po,"");try{fi=""!==fi?JSON.parse(fi):null}catch(ma){fi=Sr,Er&&(Er=!1,fi={error:ma,text:fi})}}Er?(ce.next(new fe({body:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0})),ce.complete()):ce.error(new ue({error:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0}))},Jt=Ht=>{const{url:kt}=Ne(),tn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(tn)};let vt=!1;const Yi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Jt),xe.addEventListener("timeout",Jt),xe.addEventListener("abort",Jt),q.reportProgress&&(xe.addEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Jt),xe.removeEventListener("abort",Jt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Jt),q.reportProgress&&(xe.removeEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.JF))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Pn=new p.OlP("XSRF_COOKIE_NAME"),Rn=new p.OlP("XSRF_HEADER_NAME");class pa{}let go=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.K0),p.LFG(p.Lbi),p.LFG(Pn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(pa),p.LFG(Rn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ci=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(U),p.LFG(p.zs3))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ga=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:Pn,useValue:q.cookieName}:[],q.headerName?{provide:Rn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:pa,useClass:go},{provide:Pn,useValue:"XSRF-TOKEN"},{provide:Rn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Me,{provide:Q,useClass:ci},fo,{provide:U,useExisting:fo}],imports:[ga.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>cc,$Z:()=>Iw,AFp:()=>cp,ALo:()=>VA,AaK:()=>Q,AsE:()=>t_,BQk:()=>ph,CHM:()=>Pi,CRH:()=>na,CZH:()=>fs,CqO:()=>Pm,D6c:()=>TS,Dn7:()=>LA,EJc:()=>Sd,EiD:()=>rg,EpF:()=>Qo,F$t:()=>Bm,F4k:()=>id,FYo:()=>Ny,FiY:()=>Mo,G48:()=>Ab,Gf:()=>WA,GfV:()=>Uy,GkF:()=>ed,Gpc:()=>G,Hsn:()=>Om,Ikx:()=>l_,JOm:()=>pr,JVY:()=>by,KtG:()=>On,L6k:()=>Cy,LAX:()=>pu,LFG:()=>si,LSH:()=>wu,Lbi:()=>sb,Lck:()=>wA,MAs:()=>uh,MMx:()=>Hl,NdJ:()=>fh,O4$:()=>_f,OlP:()=>At,Oqu:()=>e_,PXZ:()=>dx,Q6J:()=>Fe,QGY:()=>td,QP$:()=>Xa,QbO:()=>cS,Qsj:()=>zy,R0b:()=>un,RDi:()=>hy,Rgc:()=>fd,SBq:()=>Wr,Sil:()=>gp,Suo:()=>Jh,TTD:()=>di,TgZ:()=>_t,Udp:()=>Qm,VKq:()=>HA,WFA:()=>gh,XFs:()=>Qe,Xpm:()=>tn,Xts:()=>Au,Y36:()=>rl,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Rb,_Bn:()=>H_,_UZ:()=>Yo,_Vd:()=>Va,_c5:()=>Tx,_uU:()=>Dv,aQg:()=>Op,c2e:()=>dS,cJS:()=>ri,cg1:()=>Th,d8E:()=>c_,dDg:()=>hb,dqk:()=>ce,eBb:()=>yy,eFA:()=>Tp,ekj:()=>Jm,eoX:()=>to,f3M:()=>Bf,g9A:()=>dp,h0i:()=>os,hGG:()=>xS,hij:()=>Ah,iGM:()=>qA,ifc:()=>q,ip1:()=>ps,kL8:()=>Xv,kcU:()=>bf,lG2:()=>Ud,lcZ:()=>BA,lqb:()=>vi,lri:()=>ms,mCW:()=>$s,n5z:()=>tu,n_E:()=>Uh,oAB:()=>Sr,oJD:()=>ag,oxw:()=>Vm,pB0:()=>Kf,q3G:()=>Xt,qLn:()=>Rc,qOj:()=>Kc,qZA:()=>hh,qzn:()=>Ia,rWj:()=>vp,s9C:()=>mh,sBO:()=>Eb,sIi:()=>ul,s_b:()=>qh,soG:()=>hp,tb:()=>kl,tp0:()=>Pa,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xi3:()=>OA,xp6:()=>Vu,ynx:()=>Ya,z2F:()=>Bl,z3N:()=>zn,zSh:()=>dg,zs3:()=>qn});var T=x(7579),p=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let g in h)if(h[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(h,g){for(const m in g)g.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=g[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function U(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const $=j({__forward_ref__:j});function G(h){return h.__forward_ref__=G,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===G}class ie extends Error{constructor(g,m){super(function de(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,g){throw new ie(-201,!1)}function It(h,g){null==h&&function Le(h,g,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,h,null,"!=")}function Dt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ri(h){return{providers:h.providers||[],imports:h.imports||[]}}function xr(h){return ql(h,Pn)||ql(h,pa)}function ql(h,g){return h.hasOwnProperty(g)?h[g]:null}function fo(h){return h&&(h.hasOwnProperty(Rn)||h.hasOwnProperty(go))?h[Rn]:null}const Pn=j({\u0275prov:j}),Rn=j({\u0275inj:j}),pa=j({ngInjectableDef:j}),go=j({ngInjectorDef:j});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 ci;function Ei(h){const g=ci;return ci=h,g}function ga(h,g,m){const _=xr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(h))}function fn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Jt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Yi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function tn(h){return fn(()=>{const m=!0===h.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||Ne,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+kt++,styles:h.styles||Ne,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=mo(h.inputs,_),C.outputs=mo(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(fi).filter(Er):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Mi).filter(Er):null,C})}function fi(h){return Et(h)||Si(h)}function Er(h){return null!==h}function Sr(h){return fn(()=>({type:h.type,bootstrap:h.bootstrap||Ne,declarations:h.declarations||Ne,imports:h.imports||Ne,exports:h.exports||Ne,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function mo(h,g){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]=_,g&&(g[C]=w)}return m}const Ud=tn;function Wl(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function Et(h){return h[Je]||null}function Si(h){return h[Jt]||null}function Mi(h){return h[vt]||null}function ji(h,g){const m=h[Yi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function Di(h){return Array.isArray(h)&&"object"==typeof h[1]}function nn(h){return Array.isArray(h)&&!0===h[1]}function As(h){return 0!=(8&h.flags)}function Ca(h){return 2==(2&h.flags)}function Pr(h){return 1==(1&h.flags)}function Qi(h){return null!==h.template}function af(h){return 0!=(256&h[2])}function De(h,g){return h.hasOwnProperty(tt)?h[tt]:null}class Pe{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function di(){return xs}function xs(h){return h.type.prototype.ngOnChanges&&(h.setInput=Rr),Ts}function Ts(){const h=Bn(this),g=h?.current;if(g){const m=h.previous;if(m===ct)h.previous=g;else for(let _ in g)m[_]=g[_];h.current=null,this.ngOnChanges(g)}}function Rr(h,g,m,_){const C=Bn(h)||function Ir(h,g){return h[Vi]=g}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Pe(S&&S.currentValue,g,v===ct),h[_]=g}di.ngInherit=!0;const Vi="__ngSimpleChanges__";function Bn(h){return h[Vi]||null}function ze(h){for(;Array.isArray(h);)h=h[0];return h}function ya(h,g){return ze(g[h])}function Vt(h,g){return ze(g[h.index])}function an(h,g){return h.data[g]}function zi(h,g){return h[g]}function Ct(h,g){const m=g[h];return Di(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,g){return null==g?null:h[g]}function ee(h){h[18]=0}function pe(h,g){h[5]+=g;let m=h,_=h[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(h){return le.lFrame.contextLView=h,h[8]}function On(h){return le.lFrame.contextLView=null,h}function qt(){let h=wa();for(;null!==h&&64===h.type;)h=h.parent;return h}function wa(){return le.lFrame.currentTNode}function Ot(h,g){const m=le.lFrame;m.currentTNode=h,m.isParent=g}function bn(){return le.lFrame.isParent}function Ss(){le.lFrame.isParent=!1}function Bi(){const h=le.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function Aa(){return le.lFrame.bindingIndex++}function Fn(h){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,m}function gt(h,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=h,$d(g)}function $d(h){le.lFrame.currentDirectiveIndex=h}function or(h){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function pf(){return le.lFrame.currentQueryIndex}function Zl(h){le.lFrame.currentQueryIndex=h}function Yd(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function ff(h,g,m){if(m&Qe.SkipSelf){let C=g,w=h;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,h=w}const _=le.lFrame=wo();return _.currentTNode=g,_.lView=h,!0}function yo(h){const g=wo(),m=h[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=h,g.tView=m,g.contextLView=h,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function wo(){const h=le.lFrame,g=null===h?null:h.child;return null===g?Qd(h):g}function Qd(h){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function Hs(){const h=le.lFrame;return le.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const gf=Hs;function Ps(){const h=Hs();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 Ri(){return le.lFrame.selectedIndex}function Vr(h){le.lFrame.selectedIndex=h}function Qt(){const h=le.lFrame;return an(h.tView,h.selectedIndex)}function _f(){le.lFrame.currentNamespace="svg"}function bf(){!function HC(){le.lFrame.currentNamespace=null}()}function tc(h,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:H,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),H&&((h.viewHooks||(h.viewHooks=[])).push(m,H),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,H)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function vo(h,g,m){Br(h,g,3,m)}function xa(h,g,m,_){(3&h[2])===m&&Br(h,g,m,_)}function Jd(h,g){let m=h[2];(3&m)===g&&(m&=2047,m+=1,h[2]=m)}function Br(h,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else g[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===g){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Rs{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function lr(h,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(h),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function ks(h){const g=Zd;return Zd=h,g}let Lr=0;const Ji={};function Vs(h,g){const m=eu(h,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(h.injectorIndex=g.length,Xd(_.data,h),Xd(g,null),Xd(_.blueprint,null));const C=rc(h,g),w=h.injectorIndex;if(ic(C)){const v=jn(C),E=Or(C,g),S=E[1].data;for(let H=0;H<8;H++)g[w+H]=E[v+H]|S[v+H]}return g[w+8]=C,w}function Xd(h,g){h.push(0,0,0,0,0,0,0,0,g)}function eu(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function rc(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=cr(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function ac(h,g,m){!function Af(h,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=Lr++);const C=255&_;g.data[h+(C>>5)]|=1<=0?255&g:xo:g}(m);if("function"==typeof w){if(!ff(g,h,_))return _&Qe.Host?xf(C,0,_):Tf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{gf()}}else if("number"==typeof w){let v=null,E=eu(h,g),S=-1,H=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?rc(h,g):g[E+8],-1!==S&&sc(_,!1)?(v=g[1],E=jn(S),g=Or(S,g)):E=-1);-1!==E;){const R=g[1];if(oc(w,E,R.data)){const L=jC(E,g,m,v,_,H);if(L!==Ji)return L}S=g[E+8],-1!==S&&sc(_,g[1].data[E+8]===H)&&oc(w,E,g)?(v=R,E=jn(S),g=Or(S,g)):E=-1}}return C}function jC(h,g,m,_,C,w){const v=g[1],E=v.data[h+8],R=Bs(E,v,m,null==_?Ca(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Os(g,v,R,E):Ji}function Bs(h,g,m,_,C){const w=h.providerIndexes,v=g.data,E=1048575&w,S=h.directiveStart,R=w>>20,X=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Qi(re)&&re.type===m)return S}return null}function Os(h,g,m,_){let C=h[m];const w=g.data;if(function IC(h){return h instanceof Rs}(C)){const v=C;v.resolving&&function Ve(h,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=ks(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ei(v.injectImpl):null;ff(h,_,Qe.Default);try{C=h[m]=v.factory(void 0,w,h,_),g.firstCreatePass&&m>=_.directiveStart&&function RC(h,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=xs(g);(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],g)}finally{null!==S&&Ei(S),ks(E),v.resolving=!1,gf()}}return C}function oc(h,g,m){return!!(m[g+(h>>5)]&1<{const g=h.prototype.constructor,m=g[tt]||lc(g),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||lc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function lc(h){return ne(h)?()=>{const g=lc(te(h));return g&&g()}:De(h)}function cr(h){const g=h[1],m=g.type;return 2===m?g.declTNode:1===m?h[6]:null}function cc(h){return function FC(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(yf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),h)}const dr="__parameters__";function Fr(h,g,m){return fn(()=>{const _=function uc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,H,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function on(h,g){void 0===g&&(g=h);for(let m=0;mArray.isArray(m)?jr(m,g):g(m))}function YC(h,g,m){g>=h.length?h.push(m):h.splice(g,0,m)}function ru(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function Ma(h,g){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function JC(h,g,m,_){let C=h.length;if(C==g)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>g;)h[C]=h[C-2],C--;h[g]=m,h[g+1]=_}}(h,_,g,m)),_}function ou(h,g){const m=Eo(h,g);if(m>=0)return h[1|m]}function Eo(h,g){return function js(h,g,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<g?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Cc}()?.createHTML(h)||h}function Yf(h){return function wc(){if(void 0===Ws&&(Ws=null,ce.trustedTypes))try{Ws=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Ws}()?.createHTML(h)||h}class Ra{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fy extends Ra{getTypeName(){return"HTML"}}class gy extends Ra{getTypeName(){return"Style"}}class my extends Ra{getTypeName(){return"Script"}}class Jf extends Ra{getTypeName(){return"URL"}}class hu extends Ra{getTypeName(){return"ResourceURL"}}function zn(h){return h instanceof Ra?h.changingThisBreaksApplicationSecurity:h}function Ia(h,g){const m=function _y(h){return h instanceof Ra&&h.getTypeName()||null}(h);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function by(h){return new fy(h)}function Cy(h){return new gy(h)}function yy(h){return new my(h)}function pu(h){return new Jf(h)}function Kf(h){return new hu(h)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ho(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class wy{constructor(g){if(this.defaultDoc=g,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(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ho(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ho(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0$s(g.trim())).join(", ")),this.buf.push(" ",v,'="',bu(S),'"')}var h;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();mu.hasOwnProperty(m)&&!_i.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(bu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const G0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ng=/([^\#-~ |!])/g;function bu(h){return h.replace(/&/g,"&").replace(G0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(ng,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Ec;function rg(h,g){let m=null;try{Ec=Ec||function Ac(h){const g=new wy(h);return function vy(){try{return!!(new window.DOMParser).parseFromString(Ho(""),"text/html")}catch{return!1}}()?new fu(g):g}(h);let _=g?String(g):"";m=Ec.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=Ec.getInertBodyElement(_)}while(_!==w);return Ho((new Gr).sanitizeChildren(Cu(m)||m))}finally{if(m){const _=Cu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Cu(h){return"content"in h&&function yu(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function ag(h){const g=Ys();return g?Yf(g.sanitize(Xt.HTML,h)||""):Ia(h,"HTML")?Yf(zn(h)):rg(function qf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(h))}function wu(h){const g=Ys();return g?g.sanitize(Xt.URL,h)||"":Ia(h,"URL")?zn(h):$s(he(h))}function Ys(){const h=be();return h&&h[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),cg=new At("INJECTOR",-1),Hy=new At("INJECTOR_DEF_TYPES");class Sc{get(g,m=zs){if(m===zs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ei(...h){return{\u0275providers:Py(0,h)}}function Py(h,...g){const m=[],_=new Set;let C;return jr(g,w=>{const v=w;Mc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&ka(C,m),m}function ka(h,g){for(let m=0;m{g.push(w)})}}function Mc(h,g,m,_){if(!(h=te(h)))return!1;let C=null,w=fo(h);const v=!w&&Et(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=fo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const H of S)Mc(H,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let H;_.add(C);try{jr(w.imports,R=>{Mc(R,g,m,_)&&(H||(H=[]),H.push(R))})}finally{}void 0!==H&&ka(H,g)}if(!E){const H=De(C)||(()=>new C);g.push({provide:C,useFactory:H,deps:Ne},{provide:Hy,useValue:C,multi:!0},{provide:Au,useValue:()=>si(C),multi:!0})}const S=w.providers;null==S||E||jr(S,R=>{g.push(R)})}}return C!==h&&void 0!==h.providers}const Qs=j({provide:String,useValue:j});function xu(h){return null!==h&&"object"==typeof h&&Qs in h}function Ki(h){return"function"==typeof h}const dg=new At("Set Injector scope."),Ro={},ky={};let Io;function ko(){return void 0===Io&&(Io=new Sc),Io}class vi{}class Dc extends vi{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pg(g,v=>this.processProvider(v)),this.records.set(cg,Ur(void 0,this)),C.has("environment")&&this.records.set(vi,Ur(void 0,this));const w=this.records.get(dg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Hy.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Ei(void 0);try{return g()}finally{ur(m),Ei(_)}}get(g,m=zs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Ei(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Ly(h){return"function"==typeof h||"object"==typeof h&&h instanceof At}(g)&&xr(g);E=S&&this.injectableDefInScope(S)?Ur(ug(g),Ro):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?ko():this.parent).get(g,m=_&Qe.Optional&&m===zs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[fc]=v[fc]||[]).unshift(Q(g)),C)throw v;return function ay(h,g,m,_){const C=h[fc];throw g[kf]&&C.unshift(g[kf]),h.message=function oy(h,g,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(ny,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[fc]=null,h}(v,g,"R3InjectorError",this.source)}throw v}finally{Ei(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Ei(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Ei(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Ki(g=te(g))?g:te(g&&g.provide);const _=function hg(h){return xu(h)?Ur(void 0,h.useValue):Ur(Vy(h),Ro)}(g);if(Ki(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Ur(void 0,Ro,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Ro&&(m.value=ky,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Oy(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ug(h){const g=xr(h),m=null!==g?g.factory:De(h);if(null!==m)return m;if(h instanceof At)throw new ie(204,!1);if(h instanceof Function)return function Tu(h){const g=h.length;if(g>0)throw Ma(g,"?"),new ie(204,!1);const m=function po(h){const g=h&&(h[Pn]||h[pa]);if(g){const m=function zd(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[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.`),g}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function Vy(h,g,m){let _;if(Ki(h)){const C=te(h);return De(C)||ug(C)}if(xu(h))_=()=>te(h.useValue);else if(function Js(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...lu(h.deps||[]));else if(function yn(h){return!(!h||!h.useExisting)}(h))_=()=>si(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function By(h){return!!h.deps}(h))return De(C)||ug(C);_=()=>new C(...lu(h.deps))}return _}function Ur(h,g,m=!1){return{factory:h,value:g,multi:m?[]:void 0}}function q0(h){return!!h.\u0275providers}function pg(h,g){for(const m of h)Array.isArray(m)?pg(m,g):q0(m)?pg(m.\u0275providers,g):g(m)}class Pc{}class jy{resolveComponentFactory(g){throw function W0(h){const g=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let Va=(()=>{class h{}return h.NULL=new jy,h})();function Eu(){return qr(qt(),be())}function qr(h,g){return new Wr(Vt(h,g))}let Wr=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Eu,h})();function Y0(h){return h instanceof Wr?h.nativeElement:h}class Ny{}let zy=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Gy(){const h=be(),m=Ct(qt().index,h);return(Di(m)?m:h)[11]}(),h})(),Q0=(()=>{class h{}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:()=>null}),h})();class Uy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const J0=new Uy("14.1.2"),fg={};function Cg(h){return h.ngOriginalError}class Rc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&Cg(g);for(;m&&Cg(m);)m=Cg(m);return m||null}}const yg=new Map;let cT=0;const vg="__ngContext__";function Oi(h,g){Di(g)?(h[vg]=g[20],function uT(h){yg.set(h[20],h)}(g)):h[vg]=g}function Ic(h){const g=h[vg];return"number"==typeof g?function Ky(h){return yg.get(h)||null}(g):g||null}function Ag(h){const g=Ic(h);return g?Di(g)?g:g.lView:null}const bT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function $r(h){return h instanceof Function?h():h}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Tg(h,g){return undefined(h,g)}function kc(h){const g=h[3];return nn(g)?g[3]:g}function Eg(h){return sw(h[13])}function Sg(h){return sw(h[4])}function sw(h){for(;null!==h&&!nn(h);)h=h[4];return h}function Zs(h,g,m,_,C){if(null!=_){let w,v=!1;nn(_)?w=_:Di(_)&&(v=!0,_=_[0]);const E=ze(_);0===h&&null!==m?null==C?at(g,m,E):ft(g,m,E,C||null,!0):1===h&&null!==m?ft(g,m,E,C||null,!0):2===h?function kg(h,g,m){const _=Wt(h,g);_&&function uw(h,g,m,_){h.removeChild(g,m,_)}(h,_,g,m)}(g,E,v):3===h&&g.destroyNode(E),null!=w&&function Og(h,g,m,_,C){const w=m[7];w!==ze(m)&&Zs(g,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ru(h,10+g);!function MT(h,g){Bo(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Un(h,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Bo(h,g,m,3,null,null),function PT(h){let g=h[13];if(!g)return Xs(h[1],h);for(;g;){let m=null;if(Di(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==h;)Di(g)&&Xs(g[1],g),g=g[3];null===g&&(g=h),Di(g)&&Xs(g[1],g),m=g&&g[4]}g=m}}(g)}}function Xs(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function dw(h,g){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=H]():_[C=-H].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(h,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&nn(g[3])){m!==g[3]&&cw(m,g);const _=g[19];null!==_&&_.detachView(h)}!function Zy(h){yg.delete(h[20])}(g)}}function Pg(h,g,m){return function Rg(h,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(h,g.parent,m)}function ft(h,g,m,_,C){h.insertBefore(g,m,_,C)}function at(h,g,m){h.appendChild(g,m)}function sn(h,g,m,_,C){null!==_?ft(h,g,m,_,C):at(h,g,m)}function Wt(h,g){return h.parentNode(g)}function hw(h,g,m){return Ig(h,g,m)}let Ig=function Du(h,g,m){return 40&h.type?Vt(h,m):null};function Hu(h,g,m,_){const C=Pg(h,_,g),w=g[11],E=hw(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==fw(re,H,0)||2&_&&H!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(h){return 0==(1&h)}function kT(h,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Ng(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Ng(w,C)),g}const st={};function Vu(h){Bu(ut(),be(),Ri()+h,!1)}function Bu(h,g,m,_){if(!_)if(3==(3&g[2])){const w=h.preOrderCheckHooks;null!==w&&vo(g,w,m)}else{const w=h.preOrderHooks;null!==w&&xa(g,w,0,m)}Vr(m)}function xw(h,g=null,m=null,_){const C=Tw(h,g,m,_);return C.resolveInjectorInitializers(),C}function Tw(h,g=null,m=null,_,C=new Set){const w=[m||Ne,ei(h)];return _=_||("object"==typeof h?void 0:Q(h)),new Dc(w,g||ko(),_||null,C)}let qn=(()=>{class h{static create(m,_){if(Array.isArray(m))return xw({name:""},_,m,"");{const C=m.name??"";return xw({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=zs,h.NULL=new Sc,h.\u0275prov=Dt({token:h,providedIn:"any",factory:()=>si(cg)}),h.__NG_ELEMENT_ID__=-1,h})();function rl(h,g=Qe.Default){const m=be();return null===m?si(h,g):Ef(qt(),m,te(h),g)}function Iw(){throw new Error("invalid")}function jc(h,g){return h<<17|g<<2}function vn(h){return h>>17&32767}function We(h){return 2|h}function Qr(h){return(131068&h)>>2}function Jg(h,g){return-131069&h|g<<2}function Oa(h){return 1|h}function $w(h,g){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Bu(h,g,22,!1),m(_,C)}finally{Vr(w)}}function $n(h,g,m){if(As(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=h[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gm(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function mm(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function Yc(h,g,m){if(m){if(g.exportAs)for(let _=0;_0&&Cm(m)}}function Cm(h){for(let _=Eg(h);null!==_;_=Sg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];sl(v,w,v.template,w[8])}else w[5]>0&&Cm(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Cm(C)}}function tE(h,g){const m=Ct(g,h),_=m[1];(function tv(h,g){for(let m=g.length;mPromise.resolve(null))();function rv(h){return h[7]||(h[7]=[])}function av(h){return h.cleanup||(h.cleanup=[])}function Yn(h,g,m){return(null===h||Qi(h))&&(m=function Hi(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[g.index])),m[11]}function Na(h,g){const m=h[9],_=m?m.get(Rc,null):null;_&&_.handleError(g)}function Am(h,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}Un(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){ym(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function wm(h,g,m){const _=g[10];_.begin&&_.begin();try{sl(h,g,h.template,m)}catch(C){throw Na(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function HT(h,g){Bo(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class nE extends Jc{constructor(g){super(g),this._view=g}detectChanges(){nv(this._view)}checkNoChanges(){}get context(){return null}}class cl extends Va{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new za(m,this.ngModule)}}function dl(h){const g=[];for(let m in h)h.hasOwnProperty(m)&&g.push({propName:h[m],templateName:m});return g}class ov{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,fg,_);return C!==fg||m===fg?C:this.parentInjector.get(g,m,_)}}class za extends Pc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function Cw(h){return h.map(bw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof vi?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new ov(g,w):g,E=v.get(Ny,null);if(null===E)throw new ie(407,!1);const S=v.get(Q0,null),H=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function Wc(h,g,m){return h.selectRootElement(g,m===q.ShadowDom)}(H,_,this.componentDef.encapsulation):Dg(E.createRenderer(null,this.componentDef),R,function sh(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function lE(h,g){return{components:[],scheduler:h||bT,clean:iE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=Gc(null,me,re,X,null,null,E,H,S,v,null);let He,je;yo(Ae);try{const Ze=function sE(h,g,m,_,C,w){const v=m[1];m[22]=h;const S=jo(v,22,2,"#host",null),H=S.mergedAttrs=g.hostAttrs;null!==H&&(ah(S,H,!0),null!==h&&(lr(C,h,H),null!==S.classes&&Oo(C,h,S.classes),null!==S.styles&&Lg(C,h,S.styles)));const R=_.createRenderer(h,g),L=Gc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(ac(Vs(S,m),v,g.type),mm(v,S),_m(S,m.length,1)),ll(m,L),m[22]=L}(L,this.componentDef,Ae,E,H);if(L)if(_)lr(H,L,["ng-version",J0.full]);else{const{attrs:ye,classes:$e}=function yw(h){const g=[],m=[];let _=1,C=2;for(;_0&&Oo(H,L,$e.join(" "))}if(je=an(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=h[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Is(C.hostAttrs,m=Is(m,C.hostAttrs))}}(_)}function xm(h){return h===ct?{}:h===Ne?[]:h}function lv(h,g){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function Tm(h,g){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function ch(h,g){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Go=null;function Uo(){if(!Go){const h=ce.Symbol;if(h&&h.iterator)Go=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function _v(h,g,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=km(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=km(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const He=Ae.length;if(He)for(let je=0;je0;)g=g[15],h--;return g}(h,le.lFrame.contextLView))[8]}(h)}function bv(h,g){let m=null;const _=function VT(h){const g=h.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(h);for(let C=0;C=0}function Qm(h,g,m){return Jn(h,g,m,!1),Qm}function Jm(h,g){return Jn(h,g,null,!0),Jm}function Jn(h,g,m,_){const C=be(),w=ut(),v=Fn(2);w.firstUpdatePass&&function Ev(h,g,m,_){const C=h.data;if(null===C[m+1]){const w=C[Ri()],v=function Tv(h,g){return g>=h.expandoStartIndex}(h,m);(function Xm(h,g){return 0!=(h.flags&(g?16:32))})(w,_)&&null===g&&!v&&(g=!1),g=function fE(h,g,m,_){const C=or(h);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=Zo(m=Km(null,h,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Km(C,h,g,m,_),null===w){let S=function gE(h,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Qr(_))return h[vn(_)]}(h,g,_);void 0!==S&&Array.isArray(S)&&(S=Km(null,h,g,S[1],_),S=Zo(S,g.attrs,_),function mE(h,g,m,_){h[vn(m?g.classBindings:g.styleBindings)]=_}(h,g,_,S))}else w=function _E(h,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(H=!0)}else R=m;if(C)if(0!==S){const X=vn(h[E+1]);h[_+1]=jc(X,E),0!==X&&(h[X+1]=Jg(h[X+1],_)),h[E+1]=function kw(h,g){return 131071&h|g<<17}(h[E+1],_)}else h[_+1]=jc(E,0),0!==E&&(h[E+1]=Jg(h[E+1],_)),E=_;else h[_+1]=jc(S,0),0===E?E=_:h[S+1]=Jg(h[S+1],_),S=_;H&&(h[_+1]=We(h[_+1])),Gm(h,R,_,!0),Gm(h,R,_,!1),function pE(h,g,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof g&&Eo(w,g)>=0&&(m[_+1]=Oa(m[_+1]))}(g,R,h,_,w),v=jc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}(w,h,v,_),g!==st&&li(C,v,g)&&function Mv(h,g,m,_,C,w,v,E){if(!(3&g.type))return;const S=h.data,H=S[E+1];nd(function Vw(h){return 1==(1&h)}(H)?Zm(S,g,m,C,Qr(H),v):void 0)||(nd(w)||function Qg(h){return 2==(2&h)}(H)&&(w=Zm(S,null,m,C,E,v)),function pw(h,g,m,_,C){if(g)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:pr.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=pr.Important),h.setStyle(m,_,C,w))}}(_,v,ya(Ri(),m),C,w))}(w,w.data[Ri()],C,C[11],h,C[v+1]=function yE(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=Q(zn(h)))),h}(g,m),_,v)}function Km(h,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],H=Array.isArray(S),R=H?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(H&&!nd(re)&&(re=ou(S,_)),nd(re)&&(E=re,v))return E;const me=h[C+1];C=v?vn(me):Qr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function nd(h){return void 0!==h}function Dv(h,g=""){const m=be(),_=ut(),C=h+22,w=_.firstCreatePass?jo(_,C,1,g,null):_.data[C],v=m[C]=function Mg(h,g){return h.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function e_(h){return Ah("",h,""),e_}function Ah(h,g,m){const _=be(),C=Ua(_,h,g,m);return C!==st&&Jr(_,Ri(),C),Ah}function t_(h,g,m,_,C){const w=be(),v=hl(w,h,g,m,_,C);return v!==st&&Jr(w,Ri(),v),t_}function l_(h,g,m){const _=be();return li(_,Aa(),g)&&Ai(ut(),Qt(),_,h,g,_[11],m,!0),l_}function c_(h,g,m){const _=be();if(li(_,Aa(),g)){const w=ut(),v=Qt();Ai(w,v,_,h,g,Yn(or(w.data),v,_),m,!0)}return c_}const Zn=void 0;var Kv=["en",[["a","p"],["AM","PM"],Zn],[["AM","PM"],Zn,Zn],[["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"]],Zn,[["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"]],Zn,[["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}",Zn,"{1} 'at' {0}",Zn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function d_(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let es={};function Th(h){const g=function TE(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=eA(g);if(m)return m;const _=g.split("-")[0];if(m=eA(_),m)return m;if("en"===_)return Kv;throw new ie(701,!1)}function Xv(h){return Th(h)[Ke.PluralCase]}function eA(h){return h in es||(es[h]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[h]),es[h]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const _l="en-US";let u_=_l;function Nh(h,g,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(Ki(h)||!h.multi){const re=new Rs(S,C,rl),me=Gh(E,g,C?R:R+X,L);-1===me?(ac(Vs(H,v),w,E),zh(w,h,g.length),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Gh(E,g,R+X,L),me=Gh(E,g,R,R+X),Ae=re>=0&&m[re],He=me>=0&&m[me];if(C&&!He||!C&&!Ae){ac(Vs(H,v),w,E);const je=function kE(h,g,m,_,C){const w=new Rs(h,m,rl);return w.multi=[],w.index=g,w.componentProviders=0,as(w,C,_&&!m),w}(C?yA:CA,m.length,C,_,S);!C&&He&&(m[me].providerFactory=je),zh(w,h,g.length,0),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(je),v.push(je)}else zh(w,h,re>-1?re:me,as(m[C?me:re],S,!C&&_));!C&&_&&He&&m[me].componentProviders++}}}function zh(h,g,m,_){const C=Ki(g),w=function Iy(h){return!!h.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const H=h.destroyHooks||(h.destroyHooks=[]);if(!C&&g.multi){const R=H.indexOf(m);-1===R?H.push(m,[_,S]):H[R+1].push(_,S)}else H.push(m,S)}}}function as(h,g,m){return m&&h.componentProviders++,h.multi.push(g)-1}function Gh(h,g,m,_){for(let C=m;C<_;C++)if(g[C]===h)return C;return-1}function CA(h,g,m,_){return dd(this.multi,[])}function yA(h,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Os(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),dd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(h,g,m){const _=ut();if(_.firstCreatePass){const C=Qi(h);Nh(m,_.data,_.blueprint,C,!0),Nh(g,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,g)}}class os{}class P_{}function wA(h,g){return new R_(h,g??null)}class R_ extends os{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const _=ji(g);this._bootstrapComponents=$r(_.bootstrap),this._r3Injector=Tw(g,m,[{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class k_ extends os{constructor(g,m,_){super(),this.componentFactoryResolver=new cl(this),this.instance=null;const C=new Dc([...g,{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],m||ko(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Hl(h,g,m=null){return new k_(h,g,m).injector}function HA(h,g,m,_){return O_(be(),Bi(),h,g,m,_)}function ud(h,g){const m=h[g];return m===st?void 0:m}function O_(h,g,m,_,C,w){const v=g+m;return li(h,v,C)?Qn(h,v+1,w?_.call(w,C):_(C)):ud(h,v+1)}function F_(h,g,m,_,C,w,v,E){const S=g+m;return function Xc(h,g,m,_,C){const w=Xr(h,g,m,_);return li(h,g+2,C)||w}(h,S,C,w,v)?Qn(h,S+3,E?_.call(E,C,w,v):_(C,w,v)):ud(h,S+3)}function VA(h,g){const m=ut();let _;const C=h+22;m.firstCreatePass?(_=function YE(h,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(h===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Ei(rl);try{const E=ks(!1),S=w();return ks(E),function Hm(h,g,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Ei(v)}}function BA(h,g,m){const _=h+22,C=be(),w=zi(C,_);return pd(C,_)?O_(C,Bi(),g,w.transform,m,w):w.transform(m)}function OA(h,g,m,_){const C=h+22,w=be(),v=zi(w,C);return pd(w,C)?function L_(h,g,m,_,C,w,v){const E=g+m;return Xr(h,E,C,w)?Qn(h,E+2,v?_.call(v,C,w):_(C,w)):ud(h,E+2)}(w,Bi(),g,v.transform,m,_,v):v.transform(m,_)}function LA(h,g,m,_,C){const w=h+22,v=be(),E=zi(v,w);return pd(v,w)?F_(v,Bi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function pd(h,g){return h[1].data[g].pure}function j_(h){return g=>{setTimeout(h,void 0,g)}}const wr=class JE extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=j_(w),C&&(C=j_(C)),v&&(v=j_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof p.w0&&g.add(E),E}};function KE(){return this._results[Uo()]()}class Uh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Uo(),_=Uh.prototype;_[m]||(_[m]=KE)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=on(g);(this._changesDetected=!function Pf(h,g,m){if(h.length!==g.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=XE,h})();const ZE=fd,N_=class extends ZE{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=Gc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Uc(_,C,g),new Jc(C)}};function XE(){return cs(qt(),be())}function cs(h,g){return 4&h.type?new N_(g,h,qr(h,g)):null}let qh=(()=>{class h{}return h.__NG_ELEMENT_ID__=eS,h})();function eS(){return G_(qt(),be())}const tS=qh,jA=class extends tS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return qr(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=rc(this._hostTNode,this._hostLView);if(ic(g)){const m=Or(g,this._hostLView),_=jn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=NA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Fs(h){return"function"==typeof h}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new za(Et(g)),H=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?H:this.parentInjector).get(vi,null);X&&(w=X)}const R=S.create(H,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(h){return nn(h[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new jA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function RT(h,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const H=w[E+1],R=g[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=eo,this.reject=eo,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:E,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)(si(ps,8))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const cp=new At("AppId",{providedIn:"root",factory:function Ed(){return`${gs()}${gs()}${gs()}`}});function gs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dp=new At("Platform Initializer"),sb=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),kl=new At("appBootstrapListener"),cS=new At("AnimationModuleType");let dS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const hp=new At("LocaleId",{providedIn:"root",factory:()=>Bf(hp,Qe.Optional|Qe.SkipSelf)||function rx(){return typeof $localize<"u"&&$localize.locale||_l}()}),Sd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class ax{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let gp=(()=>{class h{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=$r(ji(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new za(S)),v},[]);return new ax(_,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=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const hS=(()=>Promise.resolve(0))();function _p(h){typeof Zone>"u"?hS.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function cb(){let h=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function yp(h){const g=()=>{!function db(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(ce,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,wp(h),h.isCheckStableRunning=!0,Cp(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),wp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return lx(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&g(),ub(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return lx(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&g(),ub(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,wp(h),Cp(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,bp,eo,eo);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const bp={};function Cp(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 wp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function lx(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function ub(h){h._nesting--,Cp(h)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const ms=new At(""),vp=new At("");let Ap,hb=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ap||(function pb(h){Ap=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),_p(()=>{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())_p(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(to),si(vp))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac}),h})(),to=(()=>{class h{constructor(){this._applications=new Map}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 Ap?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),vr=null;const cx=new At("AllowMultipleToken"),fb=new At("PlatformDestroyListeners");class dx{constructor(g,m){this.name=g,this.token=m}}function Tp(h,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ep();if(!v||v.injector.get(cx,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function mb(h){if(vr&&!vr.get(cx,!1))throw new ie(400,!1);vr=h;const g=h.get(Sp);(function _b(h){const g=h.get(dp,null);g&&g.forEach(m=>m())})(h)}(function hx(h=[],g){return qn.create({name:g,providers:[{provide:dg,useValue:"platform"},{provide:fb,useValue:new Set([()=>vr=null])},...h]})}(E,_))}return function ux(h){const g=Ep();if(!g)throw new ie(401,!1);return g}()}}function Ep(){return vr?.get(Sp)??null}let Sp=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function Cb(h,g){let m;return m="noop"===h?new Vl:("zone.js"===h?void 0:h)||new un(g),m}(_?.ngZone,function bb(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=qn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Rc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const H=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Pd(this._modules,E),H.unsubscribe()})}),function Hd(h,g,m){try{const _=m();return td(_)?_.catch(C=>{throw g.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const H=E.injector.get(fs);return H.runInitializers(),H.donePromise.then(()=>(function ts(h){It(h,"Expected localeId to be defined"),"string"==typeof h&&(u_=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(hp,_l)||_l),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=yb({},_);return function pS(h,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(fb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(si(qn))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function yb(h,g){return Array.isArray(g)?g.reduce(yb,h):{...h,...g}}let Bl=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),_p(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const H=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),H.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Pc;if(!this._injector.get(fs).done)throw!C&&Xa(m),new ie(405,false);let v;v=C?m:this._injector.get(Va).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function gb(h){return h.isBoundToModule}(v)?void 0:this._injector.get(os),H=v.create(qn.NULL,[],_||v.selector,E),R=H.location.nativeElement,L=H.injector.get(ms,null);return L?.registerApplication(R),H.onDestroy(()=>{this.detachView(H.hostView),Pd(this.components,H),L?.unregisterApplication(R)}),this._loadComponent(H),H}tick(){if(this._runningTick)throw new ie(101,!1);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;Pd(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(kl,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Pd(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(vi),si(Rc))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Pd(h,g){const m=h.indexOf(g);m>-1&&h.splice(m,1)}let Rd=!0;function Ab(){Rd=!1}let Eb=(()=>{class h{}return h.__NG_ELEMENT_ID__=gx,h})();function gx(h){return function Mp(h,g,m){if(Ca(h)&&!m){const _=Ct(h.index,g);return new Jc(_,_)}return 47&h.type?new Jc(g[16],g):null}(qt(),be(),16==(16&h))}class Db{constructor(){}supports(g){return ul(g)}create(g){return new yx(g)}}const Hb=(h,g)=>g;class yx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Hb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Pb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=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(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new wx),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wx),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Pb{constructor(g,m){this.item=g,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 vS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class wx{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new vS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vx(h,g,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(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);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 ao(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class ao{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Vp(){return new Rb([new Db])}let Rb=(()=>{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,_||Vp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Vp}),h})();function Bp(){return new Op([new Ip])}let Op=(()=>{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,_||Bp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Bp}),h})();const Tx=Tp(null,"core",[]);let xS=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(si(Bl))},h.\u0275mod=Sr({type:h}),h.\u0275inj=ri({}),h})();function TS(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{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 F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){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},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),p=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(p.substr(0,p.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const p=T.indexOf("?");return T=T.substr(p>-1?p+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let p,V,O,I,j,W,Q;if(null===x)return T;p=x.split("&");for(let U=0;U>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==p)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var U=F[T]||0;W[T]=92^U,Q[T]=54^U}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,p=0,O=F.length,I=this.blocks;p>2]|=F[p]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>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=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,G,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((G=j[W-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+j[W-7]+(((G=j[W-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(G=j[0]-1413257819)-150054599<<0,T=G+24177077<<0):(J=704751109,I=(G=j[0]-210244248)-1521486534<<0,T=G+143694565<<0),this.first=!1):(I=T+(G=I+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&V^~p&O)+K[W]+j[W])<<0,T=G+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(G=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&p^~I&V)+K[W+1]+j[W+1])<<0,x=G+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^J))<<0,V=N+(G=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&p)+K[W+2]+j[W+2])<<0,N=G+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,p=F+(G=p+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+p<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[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[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[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,p>>24&255,p>>16&255,p>>8&255,255&p,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let p of x)T+=String.fromCharCode(p);return T}toHashString(x){const T=new Uint8Array(x);let p="";for(let V of T)p+=String.fromCharCode(V);return p}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,p,V,O,I,j,W,Q,U){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{p?this.setStorage(p):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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,p=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,p).catch(I=>{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=[],p=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return p||T.push("https for all urls required. Also for urls received by discovery."),V||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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),p=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)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),p=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)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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 p=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(p-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,p)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),p(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),p(V)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),T(p)}):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,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},p)}fetchTokenUsingGrant(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:p}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,p,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}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(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const p=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=p.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{O.setAttribute("src",U),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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((p,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),p(!0)},ne=>{U(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(U(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(j),window.removeEventListener("storage",G),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",G),W(ne)):console.log("false event firing")},G=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",G)}))}calculatePopupFeatures(x){const T=x.height||470,p=x.width||500,V=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const p=x.data;return p.startsWith(T)?"#"+p.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.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",p,"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="",p="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=p||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const U=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let G=j.loginUrl+U+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),G+="&code_challenge="+te,G+="&code_challenge_method=S256"}T&&(G+="&login_hint="+encodeURIComponent(T)),j.resource&&(G+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(G+="&nonce="+encodeURIComponent(Q)),V&&(G+="&prompt=none");for(const te of Object.keys(O))G+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))G+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return G})()}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 p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const p={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(p)}}storeAccessTokenResponse(x,T,p,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const I=1e3*p,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}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){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const p=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(p),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const U=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,U)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const U=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(U),Promise.reject(U)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.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 p=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 V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?p=p.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:p}).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(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const p=T.state;let[V,O]=this.parseState(p);if(this.state=O,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 I=T.access_token,j=T.id_token,W=T.session_state,Q=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&&!x.disableOAuth2StateCheck&&!p||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:U.idTokenClaims,idToken:U.idToken,state:p}).then($=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(W),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,p="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),p=x.substr(V+this.config.nonceStateSeparator.length))}return[T,p]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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,p=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),U=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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(!p&&U.nonce!==$){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 G=this.dateTimeService.now(),te=1e3*U.iat,ne=1e3*U.exp,J=this.getClockSkewInMsec();if(te-J>=G||ne+J<=G){const de="Token has expired";return console.error(de),console.error({now:G,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}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 p=!1;"boolean"==typeof x&&(p=x,x={});const V=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||p||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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 p=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(p);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>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 p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{x[p]&&T.set(p,JSON.stringify(x[p]))}),T}revokeTokenAndLogout(x={},T=!1){let p=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let U,$;if(V){let G=I.set("token",V).set("token_type_hint","access_token");U=this.http.post(p,G,{headers:j})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let G=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(p,G,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,$]).subscribe(G=>{this.logOut(x),W(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),Q(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,p){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=p}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 p=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,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 F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,U){try{var $=V[Q](U),G=$.value}catch(te){return void I(te)}$.done?O(G):Promise.resolve(G).then(j,W)}function p(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function U(G){T(Q,j,W,U,$,"next",G)}function $(G){T(Q,j,W,U,$,"throw",G)}U(void 0)})}}x.d(N,{Z:()=>p})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=7926)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/main.d4f8f489be568d25.js b/dist/apps/password-reset/main.d4f8f489be568d25.js new file mode 100644 index 000000000..3b35cf7ad --- /dev/null +++ b/dist/apps/password-reset/main.d4f8f489be568d25.js @@ -0,0 +1 @@ +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{9244:(F,N,x)=>{"use strict";var T=x(6895),h=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const U=new h.OlP("TRANSITION_ID"),G=[{provide:h.ip1,useFactory:function $(s,r,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const J=new h.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}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(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();function Ve(s){(0,T.q)().remove(s)}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/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case h.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ie),h.LFG(ge),h.LFG(h.AFp))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(h.JOm.DashCase|h.JOm.Important)?r.style.setProperty(e,t,a&h.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&h.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(s){return"_ngcontent-%COMP%".replace(we,s)}(a+"-"+t.id),this.hostAttr=function Te(s){return"_nghost-%COMP%".replace(we,s)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const Dn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mn={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"},ai={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Sr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,a){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=s._normalizeKey(t.pop());let c="";if(Dn.forEach(i=>{const o=t.indexOf(i);o>-1&&(t.splice(o,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function Yl(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&mn.hasOwnProperty(r)&&(r=mn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Dn.forEach(l=>{l!=a&&(0,ai[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{s.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const Qe=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:T.bD},{provide:h.g9A,useValue:function Hn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function _a(){return(0,h.RDi)(document),document},deps:[]}]),di=new h.OlP(""),ba=[{provide:h.rWj,useClass:class te{addToWindow(r){h.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},h.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const a=h.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],Ei=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function Pn(){return new h.qLn},deps:[]},{provide:J,useClass:Ti,multi:!0,deps:[T.K0,h.R0b,h.Lbi]},{provide:J,useClass:Sr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,h.AFp]},{provide:h.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,h.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let Ca=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:h.AFp,useValue:e.appId},{provide:U,useExisting:h.AFp},G]}}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(di,12))},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[...Ei,...ba],imports:[T.ez,h.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ye(){return new Y((0,h.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let oi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):h.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends oi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ie(s){return new nt(s.get(T.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),s})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new h.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Pr=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}convertAttributeToNonunique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}convertAttributeToUnique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteAttributeDefinitions(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAllAttributeDefinitions(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,a,l,c,n,i,o,d,u,f,b="body",H=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=a&&(ae=this.addToHttpParams(ae,a,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=o&&(ae=this.addToHttpParams(ae,o,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=u&&(ae=this.addToHttpParams(ae,u,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let lt,ke=this.defaultHeaders;lt=this.configuration.lookupCredential("BasicAuth"),lt&&(ke=ke.set("Authorization","Basic "+lt)),lt=this.configuration.lookupCredential("BearerAuth"),lt&&(ke=ke.set("Authorization","Bearer "+lt));let yt=z&&z.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=z&&z.context;void 0===zt&&(zt=new y.qT);let Er="json";return yt&&(Er=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Er,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:H})}getAttributeDefinitionById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionsByNamespace(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeModulesDependenciesForAttributeGraphText(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeRules(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributesDefinitionWithRights(e,t,a,l,c,n,i,o,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!=a&&(b=this.addToHttpParams(b,a,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=o&&(b=this.addToHttpParams(b,o,"userExtSource"));let z,H=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(H=H.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(H=H.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(H=H.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let lt="json";return ae&&(lt=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:lt,withCredentials:this.configuration.withCredentials,headers:H,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesWithKeys(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getEntitylessKeys(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"user")),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupResourceAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getHostAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getLogins(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAndUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,a,l="body",c=!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==a)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(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getMemberGroupAttributesByNames(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacility(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacilityService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesMember(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==a)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 d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"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=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=o&&o.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,a,l,c="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==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,a,l,c="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==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesResourceService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesResourceServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesUserFacility(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getRequiredAttributesVoService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getResourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"workWithGroupAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserFacilityAttributeById(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,a,l,c,n,i="body",o=!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==a)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==c)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!=a&&(u=this.addToHttpParams(u,a,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(ke=>{u=this.addToHttpParams(u,ke,"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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)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==c)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!=a&&(d=this.addToHttpParams(d,a,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"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=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=o&&o.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=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:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeFacilityAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeGroupResourceAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeHostAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,a,l="body",c=!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==a)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(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeResourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUesAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserExtSourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserFacilityAttribute(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,a,l="body",c=!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==a)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")),a&&a.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}removeVoAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeVoAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let 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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}setAttributeActionCriticality(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==a)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=a&&(i=this.addToHttpParams(i,a,"critical"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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/setAttributeActionCriticality`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}setAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setEntitylessAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceGroupUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAndUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupWithGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",o=!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==a)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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="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==a)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 o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"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 H="json";return f&&(H=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:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),sr=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changeNonAuthzPassword/token`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/changePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/checkPasswordStrength`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/createAlternativePassword`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!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==a)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!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){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 o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="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==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=a&&(o=this.addToHttpParams(o,a,"extLogin")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"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 H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:o,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!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!=a&&(i=this.addToHttpParams(i,a,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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:o,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",o=!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!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"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 H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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/reservePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.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/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.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:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.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:a,reportProgress:l})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),an=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zl=(()=>{class s{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:s,providers:[{provide:Oe,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(s,12),h.LFG(y.eN,8))},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let ef=(()=>{class s{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 a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){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(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const o=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,o),u=this.resolveAuthorization(n,o);a.set(l,{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 a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){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 a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Vn.Xf)(s()).subscribe(r)})}var Xl=x(9635),sn=x(2843),Zt=x(515),Nt=x(727),ln=x(4482),Gi=x(5403);function Ss(){return(0,ln.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Gi.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const a=s._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class tf extends Hi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ln.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Gi.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Ss()(this)}}var ze=x(4004),yi=x(3900),Ut=x(5698),xa=x(3269);function Vt(...s){const r=(0,xa.yG)(s);return(0,ln.e)((e,t)=>{(r?(0,Vr.z)(s,e,r):(0,Vr.z)(s,e)).subscribe(t)})}var wi=x(5577),cn=x(590),Ui=x(4351),Ct=x(8505),M=x(262);function k(s,r,e,t,a){return(l,c)=>{let n=e,i=r,o=0;l.subscribe((0,Gi.x)(c,d=>{const u=o++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(s,r){return(0,ln.e)(k(s,r,arguments.length>=2,!0))}function B(s){return s<=0?()=>Zt.E:(0,ln.e)((r,e)=>{let t=[];r.subscribe((0,Gi.x)(e,a=>{t.push(a),s{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ge(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,Kt.h)((a,l)=>s(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new Ao.K))}var Bt=x(9718);function Mt(s){return(0,ln.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yt(s){return new Ft(s)}function Ce(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return s===r}function qt(s){return Array.prototype.concat.apply([],s)}function Ta(s){return s.length>0?s[s.length-1]:null}function Ot(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function Cn(s){return(0,h.CqO)(s)?s:(0,h.QGY)(s)?(0,Ci.D)(Promise.resolve(s)):(0,De.of)(s)}const PC={exact:function On(s,r,e){if(!lr(s.segments,r.segments)||!ec(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!On(s.children[t],r.children[t],e))return!1;return!0},subset:Sa},RC={exact:function Li(s,r){return Pi(s,r)},subset:function nf(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Bn(s[e],r[e]))},ignored:()=>!0};function Ds(s,r,e){return PC[e.paths](s.root,r.root,e.matrixParams)&&RC[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function Sa(s,r,e){return Ln(s,r,r.segments,e)}function Ln(s,r,e,t){if(s.segments.length>e.length){const a=s.segments.slice(0,e.length);return!(!lr(a,e)||r.hasChildren()||!ec(a,e,t))}if(s.segments.length===e.length){if(!lr(s.segments,e)||!ec(s.segments,e,t))return!1;for(const a in r.children)if(!s.children[a]||!Sa(s.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(lr(s.segments,a)&&ec(s.segments,a,t)&&s.children[qe])&&Ln(s.children[qe],r,l,t)}}function ec(s,r,e){return r.every((t,a)=>RC[e](s[a].parameters,t.parameters))}class Or{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return af.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xo(this)}}class Hs{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function lr(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let tc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:function(){return new Kd},providedIn:"root"}),s})();class Kd{parse(r){const e=new rc(r);return new Or(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${To(r.root,!0)}`,t=function Qt(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(a=>`${Ps(e)}=${Ps(a)}`).join("&"):`${Ps(e)}=${Ps(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function sf(s){return encodeURI(s)}(r.fragment)}`:""}`}}const af=new Kd;function xo(s){return s.segments.map(r=>Ri(r)).join("/")}function To(s,r){if(!s.hasChildren())return xo(s);if(r){const e=s.children[qe]?To(s.children[qe],!1):"",t=[];return Ot(s.children,(a,l)=>{l!==qe&&t.push(`${l}:${To(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function rf(s,r){let e=[];return Ot(s.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(s.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(s,(t,a)=>a===qe?[To(s.children[qe],!1)]:[`${a}:${To(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[qe]?`${xo(s)}/${e[0]}`:`${xo(s)}/(${e.join("//")})`}}function Zd(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ps(s){return Zd(s).replace(/%3B/gi,";")}function Rs(s){return Zd(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ic(s){return decodeURIComponent(s)}function lf(s){return ic(s.replace(/\+/g,"%20"))}function Ri(s){return`${Rs(s.path)}${function Lr(s){return Object.keys(s).map(r=>`;${Rs(r)}=${Rs(s[r])}`).join("")}(s.parameters)}`}const cf=/^[^\/()?;=#]+/;function nc(s){const r=s.match(cf);return r?r[0]:""}const df=/^[^=?&#]+/,kC=/^[^&#]+/;class rc{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=nc(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(r),new Hs(ic(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=nc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=nc(this.remaining);a&&(t=a,this.capture(t))}r[ic(e)]=ic(t)}parseQueryParam(r){const e=function IC(s){const r=s.match(df);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function VC(s){const r=s.match(kC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=lf(e),l=lf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=nc(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new h.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new h.vHH(4011,!1)}}function Eo(s){return s.segments.length>0?new gt([],{[qe]:s}):s}function Ma(s){const r={};for(const t of Object.keys(s.children)){const l=Ma(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Xd(s){if(1===s.numberOfChildren&&s.children[qe]){const r=s.children[qe];return new gt(s.segments.concat(r.segments),r.children)}return s}(new gt(s.segments,r))}function Fr(s){return s instanceof Or}function OC(s,r,e,t,a){if(0===e.length)return So(r.root,r.root,r.root,t,a);const l=function FC(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new LC(!0,0,s);let r=0,e=!1;const t=s.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,o)=>{n[o]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new LC(e,r,t)}(e);return l.toRoot()?So(r.root,r.root,new gt([],{}),t,a):function c(i){const o=function pf(s,r,e,t){if(s.isAbsolute)return new dr(r.root,!0,0);if(-1===t)return new dr(e,e===r.root,0);return function ks(s,r,e){let t=s,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new h.vHH(4005,!1);a=t.segments.length}return new dr(t,!1,a-l)}(e,t+(cr(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=o.processChildren?Fn(o.segmentGroup,o.index,l.commands):ac(o.segmentGroup,o.index,l.commands);return So(r.root,o.segmentGroup,d,t,a)}(s.snapshot?._lastPathIndex)}function cr(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function Ha(s){return"object"==typeof s&&null!=s&&s.outlets}function So(s,r,e,t,a){let c,l={};t&&Ot(t,(i,o)=>{l[o]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:uf(s,r,e);const n=Eo(Ma(c));return new Or(n,l,a)}function uf(s,r,e){const t={};return Ot(s.children,(a,l)=>{t[l]=a===r?e:uf(a,r,e)}),new gt(s.segments,t)}class LC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&cr(t[0]))throw new h.vHH(4003,!1);const a=t.find(Ha);if(a&&a!==Ta(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function ac(s,r,e){if(s||(s=new gt([],{})),0===s.segments.length&&s.hasChildren())return Fn(s,r,e);const t=function jC(s,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=s.segments[a],n=e[t];if(Ha(n))break;const i=`${n}`,o=t0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!NC(i,o,c))return l;t+=2}else{if(!NC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(s,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=ac(s.children[c],r,l))}),Ot(s.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(s.segments,a)}}function jr(s,r,e){const t=s.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=jr(new gt([],{}),0,e))}),r}function Vs(s){const r={};return Ot(s,(e,t)=>r[t]=`${e}`),r}function NC(s,r,e){return s==e.path&&Pi(r,e.parameters)}class jn{constructor(r,e){this.id=r,this.url=e}}class oc extends jn{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends jn{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ki extends jn{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gf extends jn{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bs extends jn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iu extends jn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nu extends jn{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class sc extends jn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lc extends jn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _f{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class GC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Os{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class yf{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=cc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=cc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=dc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return dc(r,this._root).map(e=>e.value)}}function cc(s,r){if(s===r.value)return r;for(const e of r.children){const t=cc(s,e);if(t)return t}return null}function dc(s,r){if(s===r.value)return[r];for(const e of r.children){const t=dc(s,e);if(t.length)return t.unshift(r),t}return[]}class qi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mo(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class ru extends yf{constructor(r,e){super(r),this.snapshot=e,pc(this,r)}toString(){return this.snapshot.toString()}}function uc(s,r){const e=function UC(s,r){const c=new hr([],{},{},"",{},qe,r,null,s.root,-1,{});return new Pa("",new qi(c,[]))}(s,r),t=new ui([new Hs("",{})]),a=new ui({}),l=new ui({}),c=new ui({}),n=new ui(""),i=new ur(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new ru(new qi(i,[]),e)}class ur{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,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,ze.U)(r=>Yt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Yt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hc(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function Do(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class hr{constructor(r,e,t,a,l,c,n,i,o,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=o,this._lastPathIndex=d,this._correctedLastPathIndex=f??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=Yt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pa extends yf{constructor(r,e){super(e),this.url=r,pc(this,e)}toString(){return fc(this._root)}}function pc(s,r){r.value._routerState=s,r.children.forEach(e=>pc(s,e))}function fc(s){const r=s.children.length>0?` { ${s.children.map(fc).join(", ")} } `:"";return`${s.value}${r}`}function zr(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Pi(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),Pi(r.params,e.params)||s.params.next(e.params),function ut(s,r){if(s.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||wf(s.parent,r.parent))}function At(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function G0(s,r,e){return r.children.map(t=>{for(const a of e.children)if(s.shouldReuseRoute(t.value,a.value.snapshot))return At(s,t,a);return At(s,t)})}(s,r,e);return new qi(t,a)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(s,n)),c}}const t=function U0(s){return new ur(new ui(s.url),new ui(s.params),new ui(s.queryParams),new ui(s.fragment),new ui(s.data),s.outlet,s.component,s)}(r.value),a=r.children.map(l=>At(s,l));return new qi(t,a)}}const vf="ngNavigationCancelingError";function WC(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Fr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=$C(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function $C(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[vf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function YC(s){return QC(s)&&Fr(s.url)}function QC(s){return s&&s[vf]}class Fs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new gc,this.attachRef=null}}let gc=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Fs,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const au=!1;let si=(()=>{class s{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,au);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,au);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,au);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,au);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new ou(e,n,a.injector);if(t&&function js(s){return!!s.resolveComponentFactory}(t)){const o=t.resolveComponentFactory(c);this.activated=a.createComponent(o,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(gc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},s.\u0275dir=h.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class ou{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===ur?this.route:r===gc?this.childContexts:this.parent.get(r,e)}}let JC=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=h.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[si],encapsulation:2}),s})();function Af(s,r){return s.providers&&!s._injector&&(s._injector=(0,h.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function Tf(s){const r=s.children&&s.children.map(Tf),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=JC),e}function yn(s){return s.outlet||qe}function lu(s,r){const e=s.filter(t=>yn(t)===r);return e.push(...s.filter(t=>yn(t)!==r)),e}function Wi(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Ho{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),zr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=Mo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Mo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Mo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=Mo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new GC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new bf(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(zr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),zr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Wi(a.snapshot),i=n?.get(h._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class ey{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Ns{constructor(r,e){this.component=r,this.route=e}}function ty(s,r,e){const t=s._root;return zs(t,r?r._root:null,e,[t.value])}function mc(s,r,e){return(Wi(r)??e).get(s)}function zs(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=Mo(r);return s.children.forEach(c=>{(function ny(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function ry(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!lr(s.url,r.url);case"pathParamsOrQueryParamsChange":return!lr(s.url,r.url)||!Pi(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wf(s,r)||!Pi(s.queryParams,r.queryParams);default:return!wf(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new ey(t)):(l.data=c.data,l._resolvedData=c._resolvedData),zs(s,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new Ns(n.outlet.component,c))}else c&&Ia(r,n,a),a.canActivateChecks.push(new ey(t)),zs(s,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Ia(c,e.getContext(n),a)),a}function Ia(s,r,e){const t=Mo(s),a=s.value;Ot(t,(l,c)=>{Ia(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new Ns(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Ur(s){return"function"==typeof s}function ka(s){return s instanceof Ao.K||"EmptyError"===s?.name}const pr=Symbol("INITIAL_VALUE");function Po(){return(0,yi.w)(s=>(0,Es.a)(s.map(r=>r.pipe((0,Ut.q)(1),Vt(pr)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===pr)return pr;if(!1===e||e instanceof Or)return e}return!0}),(0,Kt.h)(r=>r!==pr),(0,Ut.q)(1)))}function Ro(s){return(0,Xl.z)((0,Ct.b)(r=>{if(Fr(r))throw WC(0,r)}),(0,ze.U)(r=>!0===r))}const Va={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hf(s,r,e,t,a){const l=bc(s,r,e);return l.matched?function Df(s,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function oy(s){return s&&Ur(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return Cn(i)});return(0,De.of)(l).pipe(Po(),Ro())}(t=Af(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...Va})):(0,De.of)(l)}function bc(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...Va}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||Ce)(e,s,r);if(!a)return{...Va};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function qr(s,r,e,t,a="corrected"){if(e.length>0&&function dy(s,r,e){return e.some(t=>fr(s,r,t)&&yn(t)!==qe)}(s,e,t)){const c=new gt(r,function Pf(s,r,e,t){const a={};a[qe]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&yn(l)!==qe){const c=new gt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,a[yn(l)]=c}return a}(s,r,t,new gt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function uy(s,r,e){return e.some(t=>fr(s,r,t))}(s,e,t)){const c=new gt(s.segments,function Cc(s,r,e,t,a,l){const c={};for(const n of t)if(fr(s,e,n)&&!a[yn(n)]){const i=new gt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[yn(n)]=i}return{...a,...c}}(s,r,e,t,s.children,a));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function fr(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Io(s,r,e,t){return!!(yn(s)===t||t!==qe&&fr(r,e,s))&&("**"===s.path||bc(r,s,e).matched)}function Rf(s,r,e){return 0===r.length&&!s.children[e]}const pu=!1;class qs{constructor(r){this.segmentGroup=r||null}}class If{constructor(r){this.urlTree=r}}function yc(s){return(0,sn._)(new qs(s))}function kf(s){return(0,sn._)(new If(s))}class Vf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=qr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(Ma(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof If)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof qs?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(Ma(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof qs?this.noMatchError(a):a}))}noMatchError(r){return new h.vHH(4002,pu)}createUrlTree(r,e,t){const a=Eo(r);return new Or(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,Ci.D)(a).pipe((0,Ui.b)(l=>{const c=t.children[l],n=lu(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ge())}expandSegment(r,e,t,a,l,c){return(0,Ci.D)(t).pipe((0,Ui.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(o=>{if(o instanceof qs)return(0,De.of)(null);throw o}))),(0,cn.P)(n=>!!n),(0,M.K)((n,i)=>{if(ka(n))return Rf(e,a,l)?(0,De.of)(new gt([],{})):yc(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Io(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):yc(e):yc(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?kf(l):this.lineralizeSegments(t,l).pipe((0,wi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:o,positionalParamSegments:d}=bc(e,a,l);if(!n)return yc(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?kf(u):this.lineralizeSegments(a,u).pipe((0,wi.z)(f=>this.expandSegment(r,e,t,f.concat(o),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Af(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):Hf(e,t,a,r).pipe((0,yi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,wi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=qr(e,n,i,f),z=new gt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,f,z).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new gt(n,{}));const ae=yn(t)===l;return this.expandSegment(u,z,f,H,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):yc(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function hu(s,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function Gs(s){return s&&Ur(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return Cn(i)});return(0,De.of)(l).pipe(Po(),Ro())}(r,e,t).pipe((0,wi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function py(s){return(0,sn._)($C(pu,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,sn._)(new h.vHH(4e3,pu));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new Or(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new h.vHH(4001,pu);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class $0{}class fu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=qr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new hr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new qi(t,e),l=new Pa(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=hc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,Ci.D)(Object.keys(t.children)).pipe((0,Ui.b)(a=>{const l=t.children[a],c=lu(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(s,r=!1){return(0,ln.e)((e,t)=>{let a=0;e.subscribe((0,Gi.x)(t,l=>{const c=s(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ge(),(0,ze.U)(a=>{if(null===a)return null;const l=Ac(a);return function gy(s){s.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,Ci.D)(e).pipe((0,Ui.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,cn.P)(c=>!!c),(0,M.K)(c=>{if(ka(c))return Rf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Io(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?Ta(a).parameters:{},i=Ff(t)+a.length,o=new hr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$s(e),yn(e),e.component??e._loadedComponent??null,e,Lf(t),i,xc(e),i);c=(0,De.of)({snapshot:o,consumedSegments:[],remainingSegments:[]})}else c=Hf(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:o,parameters:d})=>{if(!n)return null;const u=Ff(t)+i.length;return{snapshot:new hr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$s(e),yn(e),e.component??e._loadedComponent??null,e,Lf(t),u,xc(e),u),consumedSegments:i,remainingSegments:o}}));return c.pipe((0,yi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:o,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function Of(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=qr(t,o,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new qi(i,[])]);const z=yn(e)===l;return this.processSegment(u,f,b,H,z?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]))}))}}function vc(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Ac(s){const r=[],e=new Set;for(const t of s){if(!vc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=Ac(t.children);r.push(new qi(t.value,a))}return r.filter(t=>!e.has(t))}function Lf(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Ff(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function $s(s){return s.data||{}}function xc(s){return s.resolve||{}}const Tc=Symbol("RouteTitle");function zf(s){return"string"==typeof s.title||null===s.title}function gu(s){return(0,yi.w)(r=>{const e=s(r);return e?(0,Ci.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let Nn=(()=>{class s{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[Tc]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:function(){return(0,h.f3M)(Oa)},providedIn:"root"}),s})(),Oa=(()=>{class s extends Nn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Y))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class yy{}class vy extends class wy{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const mu=new h.OlP("",{providedIn:"root",factory:()=>({})}),Ec=new h.OlP("ROUTES");let _u=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Cn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new tf(t,()=>new Pe.x).pipe(Ss());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,o,d=!1;Array.isArray(n)?o=n:(i=n.create(e).injector,o=qt(i.get(Ec,[],h.XFs.Self|h.XFs.Optional)));return{routes:o.map(Tf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new tf(l,()=>new Pe.x).pipe(Ss());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Cn(e()).pipe((0,wi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,De.of)(t):(0,Ci.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.zs3),h.LFG(h.Sil))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class xy{}class Ty{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Q0(s){throw s}function Ey(s,r,e){return r.parse("/")}const Ys={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Uf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Vo(){const s=(0,h.f3M)(tc),r=(0,h.f3M)(gc),e=(0,h.f3M)(T.Ye),t=(0,h.f3M)(h.zs3),a=(0,h.f3M)(h.Sil),l=(0,h.f3M)(Ec,{optional:!0})??[],c=(0,h.f3M)(mu,{optional:!0})??{},n=(0,h.f3M)(Oa),i=(0,h.f3M)(Nn,{optional:!0}),o=(0,h.f3M)(xy,{optional:!0}),d=(0,h.f3M)(yy,{optional:!0}),u=new _i(null,s,r,e,t,a,qt(l));return o&&(u.urlHandlingStrategy=o),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function zn(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let _i=(()=>{class s{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe.x,this.errorHandler=Q0,this.malformedUriErrorHandler=Ey,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new Ty,this.routeReuseStrategy=new vy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(_u),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new mf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new zC(f)),this.ngModule=c.get(h.h0i),this.console=c.get(h.c2e);const u=c.get(h.R0b);this.isNgZoneEnabled=u instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function z0(){return new Or(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uc(this.currentUrlTree,this.rootComponentType),this.transitions=new ui({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Kt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,yi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,yi.w)(n=>{const i=this.browserUrlTree.toString(),o=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||o)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return bu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,yi.w)(u=>{const f=this.transitions.getValue();return t.next(new oc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Zt.E:Promise.resolve(u)}),function fy(s,r,e,t){return(0,yi.w)(a=>function wc(s,r,e,t,a){return new Vf(s,r,e,t,a).apply()}(s,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function jf(s,r,e,t,a,l){return(0,wi.z)(c=>function Y0(s,r,e,t,a,l,c="emptyOnly",n="legacy"){return new fu(s,r,e,t,a,c,n,l).recognize().pipe((0,yi.w)(i=>null===i?function Bf(s){return new Hi.y(r=>r.error(s))}(new $0):(0,De.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"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 Bs(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(o&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,ke=new oc(f,this.serializeUrl(b),H,z);t.next(ke);const lt=uc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Zt.E}),(0,Ct.b)(n=>{const i=new iu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ty(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function li(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Sf(s,r,e,t){return(0,Ci.D)(s).pipe((0,wi.z)(a=>function cy(s,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=mc(n,r,a);return Cn(function ay(s){return s&&Ur(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,cn.P)())});return(0,De.of)(c).pipe(Po())}(a.component,a.route,e,r,t)),(0,cn.P)(a=>!0!==a,!0))}(c,t,a,s).pipe((0,wi.z)(n=>n&&function q0(s){return"boolean"==typeof s}(n)?function Mf(s,r,e,t){return(0,Ci.D)(r).pipe((0,Ui.b)(a=>(0,Vr.z)(function Us(s,r){return null!==s&&r&&r(new _f(s)),(0,De.of)(!0)}(a.route.parent,t),function uu(s,r){return null!==s&&r&&r(new Cf(s)),(0,De.of)(!0)}(a.route,t),function ly(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function iy(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Br(()=>{const n=c.guards.map(i=>{const o=mc(i,c.node,e);return Cn(function _c(s){return s&&Ur(s.canActivateChild)}(o)?o.canActivateChild(t,s):o(t,s)).pipe((0,cn.P)())});return(0,De.of)(n).pipe(Po())}));return(0,De.of)(l).pipe(Po())}(s,a.path,e),function sy(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Br(()=>{const c=mc(l,r,e);return Cn(function du(s){return s&&Ur(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,cn.P)())}));return(0,De.of)(a).pipe(Po())}(s,a.route,e))),(0,cn.P)(a=>!0!==a,!0))}(t,l,s,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Fr(n.guardsResult))throw WC(0,n.guardsResult);const i=new nu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Kt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),gu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const o=new sc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}),(0,yi.w)(i=>{let o=!1;return(0,De.of)(i).pipe(function Nf(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,Ci.D)(a).pipe((0,Ui.b)(c=>function Ba(s,r,e,t){const a=s.routeConfig,l=s._resolve;return void 0!==a?.title&&!zf(a)&&(l[Tc]=a.title),function _y(s,r,e,t){const a=function by(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===a.length)return(0,De.of)({});const l={};return(0,Ci.D)(a).pipe((0,wi.z)(c=>function Cy(s,r,e,t){const a=mc(s,r,t);return Cn(a.resolve?a.resolve(r,e):a(r,e))}(s[c],r,e,t).pipe((0,cn.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>ka(c)?Zt.E:(0,sn._)(c)))}(l,s,r,t).pipe((0,ze.U)(c=>(s._resolvedData=c,s.data=hc(s,e).resolve,a&&zf(a)&&(s.data[Tc]=a.title),null)))}(c.route,t,s,r)),(0,Ct.b)(()=>l++),B(1),(0,wi.z)(c=>l===a.length?(0,De.of)(e):Zt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>o=!0,complete:()=>{o||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const o=new lc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}))}),gu(n=>{const i=o=>{const d=[];o.routeConfig?.loadComponent&&!o.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(o.routeConfig).pipe((0,Ct.b)(u=>{o.component=u}),(0,ze.U)(()=>{})));for(const u of o.children)d.push(...i(u));return d};return(0,Es.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Ut.q)(1))}),gu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function qC(s,r,e){const t=At(s,r._root,e?e._root:void 0);return new ru(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.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)}),((s,r,e)=>(0,ze.U)(t=>(new Ho(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,QC(n)){YC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ki(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),YC(n)){const o=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||bu(a.source)};this.scheduleNavigation(o,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new gf(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(o){a.reject(o)}}return Zt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Tf),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:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,o=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),OC(o,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Fr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function qf(s){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,o;c?(n=c.resolve,i=c.reject,o=c.promise):o=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}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,a){const l=new Ki(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){h.$Z()},s.\u0275prov=h.Yz7({token:s,factory:function(){return Vo()},providedIn:"root"}),s})();function bu(s){return"imperative"!==s}class Mc{}let Sy=(()=>{class s{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Kt.h)(e=>e instanceof Nr),(0,Ui.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,h.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,Ci.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,wi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Ci.D)([l,c]).pipe((0,mt.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(_i),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Mc),h.LFG(_u))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const yu=new h.OlP("");let My=(()=>{class s{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 oc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Os&&(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 Os(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){h.$Z()},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const Qf=new h.OlP("ROUTER_FORROOT_GUARD"),wu=new h.OlP(""),Dc=[T.Ye,{provide:tc,useClass:Kd},{provide:_i,useFactory:Vo},gc,{provide:ur,useFactory:function Jf(s){return s.routerState.root},deps:[_i]},_u];function vu(){return new h.PXZ("Router",_i)}let Au=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[Dc,[],Tu(e),{provide:Qf,useFactory:xu,deps:[[_i,new h.FiY,new h.tp0]]},{provide:mu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:yu,useFactory:()=>{const s=(0,h.f3M)(_i),r=(0,h.f3M)(T.EM),e=(0,h.f3M)(mu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new My(s,r,e)}},t?.preloadingStrategy?tg(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:vu},t?.initialNavigation?Py(t):[],[{provide:Zf,useFactory:Hy},{provide:h.tb,multi:!0,useExisting:Zf}]]}}static forChild(e){return{ngModule:s,providers:[Tu(e)]}}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Qf,8))},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();function xu(s){return"guarded"}function Tu(s){return[{provide:Ec,multi:!0,useValue:s}]}function Hy(){const s=(0,h.f3M)(h.zs3);return r=>{const e=s.get(h.z2F);if(r!==e.components[0])return;const t=s.get(_i),a=s.get(Xf);1===s.get(eg)&&t.initialNavigation(),s.get(wu,null,h.XFs.Optional)?.setUpPreloading(),s.get(yu,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const Zf=new h.OlP("");function Py(s){return["disabled"===s.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const s=(0,h.f3M)(_i);return()=>{s.setUpLocationChangeListener()}}},{provide:eg,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:eg,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=s.get(_i),c=s.get(Xf);(function t(a){s.get(_i).events.pipe((0,Kt.h)(c=>c instanceof Nr||c instanceof Ki||c instanceof gf),(0,ze.U)(c=>c instanceof Nr||c instanceof Ki&&(0===c.code||1===c.code)&&null),(0,Kt.h)(c=>null!==c),(0,Ut.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Xf=new h.OlP("",{factory:()=>new Pe.x}),eg=new h.OlP("",{providedIn:"root",factory:()=>1});function tg(s){return[Sy,{provide:wu,useExisting:Sy},{provide:Mc,useExisting:s}]}let Hc;try{Hc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Hc=!1}let La,ei=(()=>{class s{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&&!Hc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.Lbi))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Pc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Vy(){if(La)return La;if("object"!=typeof document||!document)return La=new Set(Pc),La;let s=document.createElement("input");return La=new Set(Pc.filter(r=>(s.setAttribute("type",r),s.type===r))),La}let Js,Zi,Bo;function wn(s){return function Su(){if(null==Js&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Js=!0}))}finally{Js=Js||!1}return Js}()?s:!!s.capture}function By(){if(null==Zi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zi=!1,Zi;if("scrollBehavior"in document.documentElement.style)Zi=!0;else{const s=Element.prototype.scrollTo;Zi=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Zi}function Oo(s){if(function Oy(){if(null==Bo){const s=typeof document<"u"?document.head:null;Bo=!(!s||!s.createShadowRoot&&!s.attachShadow)}return Bo}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Lo(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function vi(s){return s.composedPath?s.composedPath()[0]:s.target}function Rc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Gn(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var el=x(8372);function vg(s){return(0,Kt.h)((r,e)=>s<=e)}function Ag(s,r){return s===r}var xg=x(5032);function ft(s){return(0,ln.e)((r,e)=>{(0,Vn.Xf)(s).subscribe((0,Gi.x)(e,()=>e.complete(),xg.Z)),!e.closed&&r.subscribe(e)})}function at(s){return null!=s&&"false"!=`${s}`}function un(s,r=0){return function fw(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Pu(s){return Array.isArray(s)?s:[s]}function Wt(s){return null==s?"":"string"==typeof s?s:`${s}px`}function ti(s){return s instanceof h.SBq?s.nativeElement:s}let Ru=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Tg=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ti(e);return new Hi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Pe.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,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:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Ru))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),tl=(()=>{class s{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new h.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=un(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,el.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(Tg),h.Y36(h.SBq),h.Y36(h.R0b))},s.\u0275dir=h.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),Fo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[Ru]}),s})();const il=new Set;let ja,ku=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Vu}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Eg(s){if(!il.has(s))try{ja||(ja=document.createElement("style"),ja.setAttribute("type","text/css"),document.head.appendChild(ja)),ja.sheet&&(ja.sheet.insertRule(`@media ${s} {body{ }}`,0),il.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ei))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vu(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let jo=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Pe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Sg(Pu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Sg(Pu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Es.a)(a);return l=(0,Vr.z)(l.pipe((0,Ut.q)(1)),l.pipe(vg(1),(0,el.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:o})=>{n.matches=n.matches||i,n.breakpoints[o]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Hi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ku),h.LFG(h.R0b))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Sg(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function No(s,r){return(s.getAttribute(r)||"").match(/\S+/g)||[]}const bw="cdk-describedby-message",nl="cdk-describedby-host";let Bu=0,Pg=(()=>{class s{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Bu++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+Bu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=Ou(t,a);"string"!=typeof t?(Rg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=Ou(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${nl}="${this._id}"]`);for(let t=0;t0!=a.indexOf(bw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function mw(s,r,e){const t=No(s,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),s.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(nl,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Hg(s,r,e){const a=No(s,r).filter(l=>l!=e.trim());a.length?s.setAttribute(r,a.join(" ")):s.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(nl)}_isElementDescribedByMessage(e,t){const a=No(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0),h.LFG(ei))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Ou(s,r){return"string"==typeof s?`${r||""}/${s}`:s}function Rg(s,r){s.id||(s.id=`${bw}-${r}-${Bu++}`)}class Lc extends class vn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Pe.x,this.change=new Pe.x,r instanceof h.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,el.b)(r),(0,Kt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||Gn(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Fc=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function yw(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Cw(s){try{return s.frameElement}catch{return null}}(function Tw(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Fu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Fu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function kg(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function xw(s){return!function ww(s){return function Aw(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function Ig(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function vw(s){return function st(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Lu(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ei))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Lu(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Fu(s){if(!Lu(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Vg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(r)}}let ju=(()=>{class s{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Vg(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Fc),h.LFG(h.R0b),h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Un(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function jc(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Nu=new h.OlP("cdk-input-modality-detector-options"),zu={ignoreKeys:[18,17,224,91,16]},rl=wn({passive:!0,capture:!0});let WT=(()=>{class s{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new ui(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Un(c)?"keyboard":"mouse"),this._mostRecentTarget=vi(c))},this._onTouchstart=c=>{jc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(c))},this._options={...zu,...l},this.modalityDetected=this._modality.pipe(vg(1)),this.modalityChanged=this.modalityDetected.pipe(function pw(s,r=le.y){return s=s??Ag,(0,ln.e)((e,t)=>{let a,l=!0;e.subscribe((0,Gi.x)(t,c=>{const n=r(c);(l||!s(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,rl),a.addEventListener("mousedown",this._onMousedown,rl),a.addEventListener("touchstart",this._onTouchstart,rl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,rl),document.removeEventListener("mousedown",this._onMousedown,rl),document.removeEventListener("touchstart",this._onTouchstart,rl))}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ei),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Nu,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const zo=new h.OlP("cdk-focus-monitor-default-options"),Nc=wn({passive:!0,capture:!0});let hn=(()=>{class s{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 Pe.x,this._rootNodeFocusAndBlurListener=n=>{for(let o=vi(n);o;o=o.parentElement)"focus"===n.type?this._onFocus(n,o):this._onBlur(n,o)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ti(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Oo(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Pe.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ti(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ti(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=vi(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(jo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(qu,Og,Uu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qu,Og):2===t&&e.add(qu,Uu)}}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ei),h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zc=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Lg))},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Fo]}),s})();const Pw=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function Rw(){return(0,h.f3M)(T.K0)}}),Fg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qn=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Iw(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?Fg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Pw,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Kr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();const Ow=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ng(){return!0}});let We=(()=>{class s{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Rc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Lg),h.LFG(Ow,8),h.LFG(T.K0))},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Kr,Kr]}),s})();function Na(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=at(r)}}}function za(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function mr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=at(r)}}}function ol(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Yu=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qu(){return(0,h.f3M)(h.soG)}});class Xi{constructor(){this._localeChanges=new Pe.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Ju=new h.OlP("mat-date-formats"),Fw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ku(s,r){const e=Array(s);for(let t=0;t{class s extends Xi{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 Ku(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ku(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 Ku(7,a=>this._format(t,new Date(2017,0,a+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,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}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(Fw.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,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Yu,8),h.LFG(ei))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const jw={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 Ug=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:Gg}]}),s})(),Nw=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[{provide:Ju,useValue:jw}],imports:[Ug]}),s})(),qc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Go=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})();class JT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const zw={enterDuration:225,exitDuration:150},$g=wn({passive:!0}),Gw=["mousedown","touchstart"],Uw=["mouseup","mouseleave","touchend","touchcancel"];class qw{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ti(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...zw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function ZT(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,o=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${o}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new JT(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(o||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(z),lt=()=>this._destroyRipple(z);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(z,ae),(H||!o)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...zw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ti(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Gw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Uw),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=Un(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,$g)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Gw.forEach(r=>{this._triggerElement.removeEventListener(r,this,$g)}),this._pointerUpEventsRegistered&&Uw.forEach(r=>{this._triggerElement.removeEventListener(r,this,$g)}))}}const Ww=new h.OlP("mat-ripple-global-options");let Ga=(()=>{class s{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new qw(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ei),h.Y36(Ww,8),h.Y36(h.QbO,8))},s.\u0275dir=h.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),s})(),hi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})(),Xu=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We]}),s})(),eh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[hi,T.ez,We,Xu]}),s})();const Wc=["mat-button",""],Uo=["*"],$c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ll=za(Na(mr(class{constructor(s){this._elementRef=s}})));let Wo=(()=>{class s extends ll{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of $c)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 s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(hn),h.Y36(h.QbO,8))},s.\u0275cmp=h.Xpm({type:s,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&h.Gf(Ga,5),2&e){let a;h.iGM(a=h.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:Wc,ngContentSelectors:Uo,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ga],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),Wn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[hi,We,We]}),s})();var th=x(1144),xn=x(576),ih=x(3268);const nh=["addListener","removeListener"],Zw=["addEventListener","removeEventListener"],nE=["on","off"];function Yc(s,r,e,t){if((0,xn.m)(e)&&(t=e,e=void 0),t)return Yc(s,r,e).pipe((0,ih.Z)(t));const[a,l]=function Xg(s){return(0,xn.m)(s.addEventListener)&&(0,xn.m)(s.removeEventListener)}(s)?Zw.map(c=>n=>s[c](r,n,e)):function Xw(s){return(0,xn.m)(s.addListener)&&(0,xn.m)(s.removeListener)}(s)?nh.map(rh(s,r)):function Zg(s){return(0,xn.m)(s.on)&&(0,xn.m)(s.off)}(s)?nE.map(rh(s,r)):[];if(!a&&(0,th.z)(s))return(0,wi.z)(c=>Yc(c,r,e))((0,Vn.Xf)(s));if(!a)throw new TypeError("Invalid event target");return new Hi.y(c=>{const n=(...i)=>c.next(1l(n)})}function rh(s,r){return e=>t=>s[e](r,t)}var em=x(4408);const Ai={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ai;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,s(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...s){const{delegate:r}=Ai;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=Ai;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var im=x(7565);const nm=new class rE extends im.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class tm extends em.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Ai.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Ai.cancelAnimationFrame(e),r._scheduled=void 0)}});let ah,am=1;const Qc={};function om(s){return s in Qc&&(delete Qc[s],!0)}const sm={setImmediate(s){const r=am++;return Qc[r]=!0,ah||(ah=Promise.resolve()),ah.then(()=>om(r)&&s()),r},clearImmediate(s){om(s)}},{setImmediate:lm,clearImmediate:ev}=sm,Jc={setImmediate(...s){const{delegate:r}=Jc;return(r?.setImmediate||lm)(...s)},clearImmediate(s){const{delegate:r}=Jc;return(r?.clearImmediate||ev)(s)},delegate:void 0},oh=new class dm extends im.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class cm extends em.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Jc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Jc.clearImmediate(e),r._scheduled=void 0)}});var Kc=x(4986),sh=x(2805);function iv(s,r=Kc.z){return function tv(s){return(0,ln.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const o=a;a=null,e.next(o)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Gi.x)(e,o=>{t=!0,a=o,l||(0,Vn.Xf)(s(o)).subscribe(l=(0,Gi.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,sh.H)(s,r))}let cl=(()=>{class s{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new Pe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}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 a=e>0?this._scrolled.pipe(iv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Kt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ti(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Yc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.R0b),h.LFG(ei),h.LFG(T.K0,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$o=(()=>{class s{constructor(e,t,a){this._platform=e,this._change=new Pe.x,this._changeListener=l=>{this._change.next(l)},this._document=a,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:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(iv(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 s.\u0275fac=function(e){return new(e||s)(h.LFG(ei),h.LFG(h.R0b),h.LFG(T.K0,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$n=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),qa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Kr,$n,Kr,$n]}),s})();class dl{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class ul extends dl{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class dh extends dl{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class cv extends dl{constructor(r){super(),this.element=r instanceof h.SBq?r.nativeElement:r}}class Wa{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof ul?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof dh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof cv?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class pE extends Wa{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let uh=(()=>{class s extends Wa{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(T.K0))},s.\u0275dir=h.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),s})(),ea=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();var pn=x(6451);const Xc=By();class dv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Xc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Xc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_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 uv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _m{enable(){}disable(){}attach(){}}function hh(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function bm(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class hv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();hh(e,[{width:t,height:a,bottom:a,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 pv=(()=>{class s{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new _m,this.close=c=>new uv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new dv(this._viewportRuler,this._document),this.reposition=c=>new hv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(cl),h.LFG($o),h.LFG(h.R0b),h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Yo{constructor(r){if(this.scrollStrategy=new _m,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class hl{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let ed=(()=>{class s{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 s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),fv=(()=>{class s extends ed{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0),h.LFG(h.R0b,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s extends ed{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=vi(l)},this._clickListener=l=>{const c=vi(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const d=i[o];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0),h.LFG(ei),h.LFG(h.R0b,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ta=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Pe.x,this._outsidePointerEvents=new Pe.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Pu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,pn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ia="cdk-overlay-connected-position-bounding-box",td=/([A-Za-z%]+)$/;class fn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ia),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),o=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(o,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,o,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=o)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&br(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ia),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="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:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Ya(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),o=this._getOffset(a,"y");i&&(c+=i),o&&(n+=o);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=$a(this._overlayRef.getConfig().minHeight),n=$a(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&o}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Ya(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),o=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?o||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,br(this._boundingBox.style,a)}_resetBoundingBoxStyles(){br(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){br(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();br(t,this._getExactOverlayY(e,r,d)),br(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),o&&(n+=`translateY(${o}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),br(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:bm(r,t),isOriginOutsideView:hh(r,t),isOverlayClipped:bm(e,t),isOverlayOutsideView:hh(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Pu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof h.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function br(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function $a(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(td);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Ya(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const Qa="cdk-global-overlay-wrapper";class Jo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Qa),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),o=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",f?H=u:b=u):f?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Qa),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ko=(()=>{class s{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new Jo}flexibleConnectedTo(e){return new fn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG($o),h.LFG(T.K0),h.LFG(ei),h.LFG(ta))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zo=0,xi=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=o,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Yo(e);return c.direction=c.direction||this._directionality.value,new ci(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Zo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new pE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(pv),h.LFG(ta),h.LFG(h._Vd),h.LFG(Ko),h.LFG(fv),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(qn),h.LFG(T.Ye),h.LFG(Yn),h.LFG(h.QbO,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const wm={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function ym(s){return()=>s.scrollStrategies.reposition()}};let Ja=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[xi,wm],imports:[Kr,ea,qa,qa]}),s})();class ph{}const Cr="*";function ii(s,r){return{type:7,name:s,definitions:r,options:{}}}function wt(s,r=null){return{type:4,styles:r,timings:s}}function vm(s,r=null){return{type:3,steps:s,options:r}}function fh(s,r=null){return{type:2,steps:s,options:r}}function Fe(s){return{type:6,styles:s,offset:null}}function pt(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Xo(s=null){return{type:9,options:s}}function Za(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function id(s){Promise.resolve(null).then(s)}class es{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){id(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class nd{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?id(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Am=["connectionContainer"],_h=["inputContainer"],bh=["label"];function yv(s,r){1&s&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function xm(s,r){if(1&s){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&s){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Tm(s,r){if(1&s&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&s){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function Em(s,r){1&s&&h.Hsn(0,3,["*ngSwitchCase","true"])}function Sm(s,r){1&s&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function wv(s,r){if(1&s){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.YNc(2,Tm,4,1,"ng-container",12),h.YNc(3,Em,1,0,"ng-content",12),h.YNc(4,Sm,2,0,"span",22),h.qZA()}if(2&s){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Mm(s,r){1&s&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function Dm(s,r){if(1&s&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&s){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Ch(s,r){if(1&s&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&s){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function yh(s,r){if(1&s&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&s){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function Hm(s,r){if(1&s&&(h.TgZ(0,"div",27),h.YNc(1,yh,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&s){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Pm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Rm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Im=0;const wh=new h.OlP("MatError");let vh=(()=>{class s{constructor(e,t){this.id="mat-error-"+Im++,e||t.nativeElement.setAttribute("aria-live","polite")}}return s.\u0275fac=function(e){return new(e||s)(h.$8M("aria-live"),h.Y36(h.SBq))},s.\u0275dir=h.lG2({type:s,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:wh,useExisting:s}])]}),s})();const km={transitionMessages:ii("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let gl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s}),s})(),Vm=0;const Bm=new h.OlP("MatHint");let pi=(()=>{class s{constructor(){this.align="start",this.id="mat-hint-"+Vm++}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Bm,useExisting:s}])]}),s})(),ml=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["mat-label"]]}),s})(),vv=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const Av=new h.OlP("MatPrefix"),Om=new h.OlP("MatSuffix");let Lm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["","matSuffix",""]],features:[h._Bn([{provide:Om,useExisting:s}])]}),s})(),Ah=0;const Tv=za(class{constructor(s){this._elementRef=s}},"primary"),jm=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xh=new h.OlP("MatFormField");let Th=(()=>{class s extends Tv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ah++,this._labelId="mat-form-field-label-"+Ah++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=at(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(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,pn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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,Yc(this._label.nativeElement,"transitionend").pipe((0,Ut.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,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.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,a=".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 d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,We,Fo,We]}),s})();const qm={provide:new h.OlP("mat-select-scroll-strategy"),deps:[xi],useFactory:function ad(s){return()=>s.scrollStrategies.reposition()}};let _l=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[qm],imports:[T.ez,Ja,eh,We,$n,is,eh,We]}),s})();const Ym=["tooltip"],Sh="tooltip-panel",Jm=wn({passive:!0}),Km=new h.OlP("mat-tooltip-scroll-strategy"),Lv={provide:Km,deps:[xi],useFactory:function Ov(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}},Fv=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function jv(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Nv=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=o,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 Pe.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=un(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=un(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(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,a])=>{e.removeEventListener(t,a,Jm)}),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 ul(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.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(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Sh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Gn(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ut.q)(1),ft(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:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${Sh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&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,a])=>{this._elementRef.nativeElement.addEventListener(t,a,Jm)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return s.\u0275fac=function(e){h.$Z()},s.\u0275dir=h.lG2({type:s,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),s})(),zv=(()=>{class s extends Nv{constructor(e,t,a,l,c,n,i,o,d,u,f,b){super(e,t,a,l,c,n,i,o,d,u,f,b),this._tooltipComponent=Uv}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(xi),h.Y36(h.SBq),h.Y36(cl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(ei),h.Y36(Pg),h.Y36(hn),h.Y36(Km),h.Y36(qn,8),h.Y36(Fv,8),h.Y36(T.K0))},s.\u0275dir=h.lG2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),s})(),Gv=(()=>{class s{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Pe.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.sBO),h.Y36(h.QbO,8))},s.\u0275dir=h.lG2({type:s}),s})(),Uv=(()=>{class s extends Gv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.sBO),h.Y36(jo),h.Y36(h.QbO,8))},s.\u0275cmp=h.Xpm({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(Ym,7),2&e){let a;h.iGM(a=h.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let a;h.ekj("mat-tooltip-handset",null==(a=h.lcZ(2,4,t._isHandset))?null:a.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),s})(),rs=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[Lv],imports:[zc,T.ez,Ja,We,We,$n]}),s})(),od=(()=>{class s{constructor(){this.changes=new Pe.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Xm={provide:od,deps:[[new h.FiY,new h.tp0,od]],useFactory:function Zm(s){return s||new od}};let Kn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[Xm],imports:[T.ez,Wn,_l,rs,We]}),s})();var i_=x(1005);const eA=["mat-menu-item",""];function as(s,r){1&s&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const tA=["*"];function Mh(s,r){if(1&s){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._handleKeydown(a))})("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationDone(a))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&s){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Dh={transformMenu:ii("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ii("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},RE=new h.OlP("MatMenuContent"),Hh=new h.OlP("MAT_MENU_PANEL"),sd=mr(Na(class{}));let Xa=(()=>{class s extends sd{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Pe.x,this._focused=new Pe.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class s{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+n_++}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=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!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 Lc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,yi.w)(e=>(0,pn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,yi.w)(t=>(0,pn.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:Gn(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)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},s.\u0275dir=h.lG2({type:s,contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,RE,5),h.Suo(a,Xa,5),h.Suo(a,Xa,4)),2&e){let l;h.iGM(l=h.CRH())&&(t.lazyContent=l.first),h.iGM(l=h.CRH())&&(t._allItems=l),h.iGM(l=h.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let a;h.iGM(a=h.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),s})(),rA=(()=>{class s extends os{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},s.\u0275cmp=h.Xpm({type:s,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:Hh,useExisting:s}]),h.qOj],ngContentSelectors:tA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,Mh,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Dh.transformMenu,Dh.fadeInItems]},changeDetection:0}),s})();const Ph=new h.OlP("mat-menu-scroll-strategy"),a_={provide:Ph,deps:[xi],useFactory:function r_(s){return()=>s.scrollStrategies.reposition()}},o_=wn({passive:!0});let oA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=o,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{jc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof os?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,o_),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,o_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof os&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof os?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Kt.h)(a=>"void"===a.toState),(0,Ut.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Yo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,o]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",o="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:o,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:o,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Kt.h)(c=>c!==this._menuItemInstance),(0,Kt.h)(()=>this._menuOpen)):(0,De.of)();return(0,pn.T)(e,a,l,t)}_handleMousedown(e){Un(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,Kt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,i_.g)(0,oh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof os&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ut.q)(1),(0,i_.g)(0,oh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new dh(e.templateRef,this._viewContainerRef)),this._portal}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(xi),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(Ph),h.Y36(Hh,8),h.Y36(Xa,10),h.Y36(qn,8),h.Y36(hn),h.Y36(h.R0b))},s.\u0275dir=h.lG2({type:s,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),s})(),sA=(()=>{class s extends oA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275dir=h.lG2({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),s})(),na=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[a_],imports:[T.ez,We,hi,Ja,$n,We]}),s})();var lA=x(4742),cA=x(1810);function Rh(...s){const r=(0,xa.jO)(s),{args:e,keys:t}=(0,lA.D)(s),a=new Hi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,o=c;for(let d=0;d{u||(u=!0,o--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(o||l.next(t?(0,cA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,ih.Z)(r)):a}var Cl=x(3099);const s_=["*"];let yl;function wl(s){return function l_(){if(void 0===yl&&(yl=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(yl=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return yl}()?.createHTML(s)||s}function ss(s){return Error(`Unable to find icon with the name "${s}"`)}function c_(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function d_(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class eo{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ls=(()=>{class s{constructor(e,t,a,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new eo(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(h.q3G.HTML,a);if(!c)throw d_(a);const n=wl(c);return this._addSvgIconConfig(e,t,new eo("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new eo(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(h.q3G.HTML,t);if(!l)throw d_(t);const c=wl(l);return this._addSvgIconSetConfig(e,new eo("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw c_(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(ld(a)):this._loadSvgIconFromConfig(new eo(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>ld(l)))}getNamedSvgIcon(e,t=""){const a=Ih(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,sn._)(ss(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(ld(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>ld(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Rh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const o=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(o)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw ss(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(wl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(wl("")),a=e.attributes;for(let l=0;lwl(o)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,Cl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Ih(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.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 a=0;ar?r.pathname+r.search:""}}}),pA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],h_=pA.map(s=>`[${s}]`).join(", "),cd=/^url\(['"]?#(.*?)['"]?\)$/;let dd=(()=>{class s extends hA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=at(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(h_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),o=i?i.match(cd):null;if(o){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Ut.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ls),h.$8M("aria-hidden"),h.Y36(LE),h.Y36(h.qLn),h.Y36(OE,8))},s.\u0275cmp=h.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:s_,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),s})(),vr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})();function Tn(s){return!!s&&(s instanceof Hi.y||(0,xn.m)(s.lift)&&(0,xn.m)(s.subscribe))}var Al=x(6063);class fA extends Pe.x{constructor(r=1/0,e=1/0,t=Al.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew fA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class xl{}let f_=(()=>{class s extends xl{getTranslation(e){return(0,De.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class kh{}let Vh=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();function ud(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let a,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!ud(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=s.length)==r.length){for(l=0;l{aa(r[t])?t in s?e[t]=g_(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Tl{}let m_=(()=>{class s extends Tl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!ra(e)||!ra(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return ra(c)?c:a}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class El{}let __=(()=>{class s extends El{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class Bh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Oh=new h.OlP("USE_STORE"),Sl=new h.OlP("USE_DEFAULT_LANG"),Lh=new h.OlP("DEFAULT_LANGUAGE"),hd=new h.OlP("USE_EXTEND");let en=(()=>{class s{constructor(e,t,a,l,c,n=!0,i=!1,o=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=o,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(p_(1),(0,Ut.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),p_(1),(0,Ut.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?g_(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,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),Tn(c[i])&&(n=!0);return n?Rh(t.map(o=>Tn(c[o])?c[o]:(0,De.of)(c[o]))).pipe((0,ze.U)(o=>{let d={};return o.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!ra(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ui.b)(a=>Tn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return Tn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!ra(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vr.z)(Br(()=>this.get(e,t)),this.onTranslationChange.pipe((0,yi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!ra(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vr.z)(Br(()=>this.get(e,t)),this.onLangChange.pipe((0,yi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return Tn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!ra(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(Tn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Bh),h.LFG(xl),h.LFG(El),h.LFG(Tl),h.LFG(kh),h.LFG(Sl),h.LFG(Oh),h.LFG(hd),h.LFG(Lh))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),Zn=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);Tn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ud(e,this.lastKey)&&ud(t,this.lastParams))return this.value;let a;if(ra(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{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(en,16),h.Y36(h.sBO,16))},s.\u0275pipe=h.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),Ml=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:xl,useClass:f_},e.compiler||{provide:El,useClass:__},e.parser||{provide:Tl,useClass:m_},e.missingTranslationHandler||{provide:kh,useClass:Vh},Bh,{provide:Oh,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:Lh,useValue:e.defaultLanguage},en]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:xl,useClass:f_},e.compiler||{provide:El,useClass:__},e.parser||{provide:Tl,useClass:m_},e.missingTranslationHandler||{provide:kh,useClass:Vh},{provide:Oh,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:Lh,useValue:e.defaultLanguage},en]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),Fh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Kn,na,vr,Wn,Ml,T.ez]}),s})();function gA(s,r){}class Dl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let b_=(()=>{class s extends Wa{constructor(e,t,a,l,c,n,i,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=Lo(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Lo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Lo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ju),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Fc),h.Y36(h.R0b),h.Y36(ci),h.Y36(hn))},s.\u0275cmp=h.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(uh,7),2&e){let a;h.iGM(a=h.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,gA,0,0,"ng-template",0)},dependencies:[uh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class jh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Pe.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Gn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const C_=new h.OlP("DialogScrollStrategy"),mA=new h.OlP("DialogData"),_A=new h.OlP("DefaultDialogConfig"),CA={provide:C_,deps:[xi],useFactory:function bA(s){return()=>s.scrollStrategies.block()}};let y_=0,Nh=(()=>{class s{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Br(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(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}open(e,t){(t={...this._defaultOptions||new Dl,...t}).id=t.id||"cdk-dialog-"+y_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new jh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){zh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){zh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),zh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Yo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Dl,useValue:a},{provide:jh,useValue:t},{provide:ci,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=b_;const i=new ul(n,a.viewContainerRef,h.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof h.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new dh(e,null,n,c))}else{const n=a.attachComponentPortal(new ul(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:mA,useValue:e.data},{provide:jh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(qn,null,h.XFs.Optional))&&c.push({provide:qn,useValue:{value:e.direction,change:(0,De.of)()}}),h.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(xi),h.LFG(h.zs3),h.LFG(_A,8),h.LFG(s,12),h.LFG(ta),h.LFG(C_))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();function zh(s,r){let e=s.length;for(;e--;)r(s[e])}let yA=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[Nh,CA],imports:[Ja,ea,zc,ea]}),s})();function w_(s,r){}const cs={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},wA={dialogContainer:ii("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",vm([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Za("@*",Xo(),{optional:!0})]),cs),_t("* => void, * => exit",vm([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Za("@*",Xo(),{optional:!0})]),cs)])};class Hl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=cs.params.enterAnimationDuration,this.exitAnimationDuration=cs.params.exitAnimationDuration}}let Gh=(()=>{class s extends b_{constructor(e,t,a,l,c,n,i,o){super(e,t,a,l,c,n,i,o),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ju),h.Y36(T.K0,8),h.Y36(Hl),h.Y36(Fc),h.Y36(h.R0b),h.Y36(ci),h.Y36(hn))},s.\u0275cmp=h.Xpm({type:s,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),Uh=(()=>{class s extends Gh{constructor(e,t,a,l,c,n,i,o,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||cs.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||cs.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ju),h.Y36(T.K0,8),h.Y36(Hl),h.Y36(Fc),h.Y36(h.R0b),h.Y36(ci),h.Y36(h.sBO),h.Y36(hn))},s.\u0275cmp=h.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,w_,0,0,"ng-template",0)},dependencies:[uh],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[wA.dialogContainer]}}),s})();class oa{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Pe.x,this._beforeClosed=new Pe.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Kt.h)(a=>"opened"===a.state),(0,Ut.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Kt.h)(a=>"closed"===a.state),(0,Ut.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,pn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Kt.h)(a=>27===a.keyCode&&!this.disableClose&&!Gn(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function qh(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Kt.h)(e=>"closing"===e.state),(0,Ut.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const v_=new h.OlP("MatDialogData"),vA=new h.OlP("mat-dialog-default-options"),pd=new h.OlP("mat-dialog-scroll-strategy"),ds={provide:pd,deps:[xi],useFactory:function A_(s){return()=>s.scrollStrategies.block()}};let x_=0,AA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=o,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Br(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(Nh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Hl,...t}).id=t.id||`${this._idPrefix}${x_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Hl,useValue:t},{provide:Dl,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){h.$Z()},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),to=(()=>{class s extends AA{constructor(e,t,a,l,c,n,i,o){super(e,t,l,n,i,c,oa,Uh,v_,o)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(xi),h.LFG(h.zs3),h.LFG(T.Ye,8),h.LFG(vA,8),h.LFG(pd),h.LFG(s,12),h.LFG(ta),h.LFG(h.QbO,8))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),T_=0,fd=(()=>{class s{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+T_++}ngOnInit(){this._dialogRef||(this._dialogRef=function xA(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(oa,8),h.Y36(h.SBq),h.Y36(to))},s.\u0275dir=h.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),io=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),gd=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),us=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[to,ds],imports:[yA,Ja,ea,We,We]}),s})();function no(){const s=new Hl;return s.disableClose=!0,s.autoFocus=!1,s}function hs(s,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class qA{static passwordMatchValidator(r){const e=r.get("passwordCtrl").value,t=r.get("passwordAgainCtrl").value;return r.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(r){return e=>{if(!e.value)return null;let t=0;for(const a of r)t+=a.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let ji=(()=>{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],a=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?a:this.addMissingValuesToProperty(l,a)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const a of Object.keys(t))t[a]=this.addMissingValuesToProperty(e[a],t[a]);return t}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var Cd=x(1214);let ro=(()=>{class s{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(_i),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=hs("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}startIdpFilterKeeper(){this.router.events.pipe((0,Kt.h)(e=>e instanceof Nr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.zs3),h.LFG(ji),h.LFG(to),h.LFG(ur),h.LFG(Cd.Ct))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yh=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(oa))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[io,Zn]}),s})();var k_=x(930);function yd(s,r){const e="object"==typeof r;return new Promise((t,a)=>{const l=new k_.Hp({next:c=>{t(c),l.unsubscribe()},error:a,complete:()=>{e?t(r.defaultValue):a(new Ao.K)}});s.subscribe(l)})}function Qh(s,r){1&s&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function WA(s,r){1&s&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function $A(s,r){1&s&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function YA(s,r){1&s&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const QA=["*"];let ps=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:QA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,Qh,2,0,"mat-icon",1),h.YNc(2,WA,2,0,"mat-icon",1),h.YNc(3,$A,2,0,"mat-icon",1),h.YNc(4,YA,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[dd,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})(),Jh=(()=>{class s{constructor(e){this.dialogRef=e}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(oa))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.qZA()(),h.TgZ(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(12),h.ALo(13,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),h.xp6(4),h.hij(" ",h.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[fd,io,gd,Wo,ps,Zn]}),s})(),V_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[dd,Zn],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),s})(),B_=(()=>{class s{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(v_),h.Y36(oa))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.qZA()(),h.TgZ(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(12),h.ALo(13,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),h.xp6(4),h.hij(" ",h.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[fd,io,gd,Wo,ps,Zn]}),s})(),wd=(()=>{class s{constructor(e,t,a,l){this.dialog=e,this.oauthService=t,this.authService=a,this.store=l}openMfaWindow(){let e=null,t=null;const a=no();a.width="450px";const l=this.dialog.open(Jh,a);let c=!1;if(l.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),e=this.setupMfaWindow(),e){const i=no();i.width="450px",i.panelClass="noBorderDialog",t=this.dialog.open(V_,i)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=no();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(B_,n)}return new Hi.y(n=>{const i=setInterval(()=>e?.closed?(clearInterval(i),t.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):c?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(to),h.LFG(Cd.Ct),h.LFG(ro),h.LFG(ji))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Kh=(()=>{class s{constructor(e,t,a,l,c,n,i,o){this.authService=e,this.oauthService=t,this.storeService=a,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return yd(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=no();this.dialog.open(Yh,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return yd(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const a={};return t.split("&").forEach(l=>{const c=l.split("=");a[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:a,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Kt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ro),h.LFG(Cd.Ct),h.LFG(ji),h.LFG(ef),h.LFG(rt),h.LFG(to),h.LFG(_i),h.LFG(wd))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zh=(()=>{class s{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ls),h.LFG(oi))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),O_=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(oa))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[fd,io,gd,Wo,Zn]}),s})(),L_=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),vd=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(en))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),F_=(()=>{class s{constructor(e,t,a,l,c,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i}intercept(e,t){const a=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=no();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(O_,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}handleRequest(e,t){const a=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,M.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow().pipe((0,yi.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,sn._)(()=>n)));{const i=this.formatErrors(c,e);return void 0===i?(0,sn._)(()=>c):(a&&this.notificator.showRPCError(i),(0,sn._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ro),h.LFG(L_),h.LFG(vd),h.LFG(ji),h.LFG(to),h.LFG(Kh),h.LFG(wd))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),Ni=(()=>{class s{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("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 a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,sn._)(c)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(vd),h.LFG(ro),h.LFG(ji))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),j_=(()=>{class s{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(ur),h.LFG(ji))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),JA=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},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 s.\u0275fac=function(e){return new(e||s)(h.Y36(h.Qsj),h.Y36(h.SBq))},s.\u0275dir=h.lG2({type:s}),s})(),sa=(()=>{class s extends JA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275dir=h.lG2({type:s,features:[h.qOj]}),s})();const Ii=new h.OlP("NgValueAccessor"),Xh={provide:Ii,useExisting:(0,h.Gpc)(()=>Il),multi:!0},z_=new h.OlP("CompositionEventMode");let Il=(()=>{class s extends JA{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function KA(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(z_,8))},s.\u0275dir=h.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&h.NdJ("input",function(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:[h._Bn([Xh]),h.qOj]}),s})();function tn(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function G_(s){return null!=s&&"number"==typeof s.length}const ni=new h.OlP("NgValidators"),xr=new h.OlP("NgAsyncValidators"),U_=/^(?=.{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 la{static min(r){return function Ad(s){return r=>{if(tn(r.value)||tn(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(tn(r.value)||tn(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return ep(r)}static requiredTrue(r){return function q_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function tp(s){return tn(s.value)||U_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function ao(s){return r=>tn(r.value)||!G_(r.value)?null:r.value.lengthG_(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function ip(s){if(!s)return fs;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(tn(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return np(r)}static composeAsync(r){return J_(r)}}function ep(s){return tn(s.value)?{required:!0}:null}function fs(s){return null}function ex(s){return null!=s}function $_(s){return(0,h.QGY)(s)?(0,Ci.D)(s):s}function tx(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Y_(s,r){return r.map(e=>e(s))}function Q_(s){return s.map(r=>function ix(s){return!s.validate}(r)?r:e=>r.validate(e))}function np(s){if(!s)return null;const r=s.filter(ex);return 0==r.length?null:function(e){return tx(Y_(e,r))}}function xd(s){return null!=s?np(Q_(s)):null}function J_(s){if(!s)return null;const r=s.filter(ex);return 0==r.length?null:function(e){return Rh(Y_(e,r).map($_)).pipe((0,ze.U)(tx))}}function Td(s){return null!=s?J_(Q_(s)):null}function rp(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function K_(s){return s._rawValidators}function Z_(s){return s._rawAsyncValidators}function Ed(s){return s?Array.isArray(s)?s:[s]:[]}function Sd(s,r){return Array.isArray(s)?s.includes(r):s===r}function ap(s,r){const e=Ed(r);return Ed(s).forEach(a=>{Sd(e,a)||e.push(a)}),e}function op(s,r){return Ed(r).filter(e=>!Sd(s,e))}class sp{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=xd(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=Td(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class ki extends sp{get formDirective(){return null}get path(){return null}}class Xn extends sp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class X_{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let eb=(()=>{class s extends X_{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(Xn,2))},s.\u0275dir=h.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),s})(),tb=(()=>{class s extends X_{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ki,10))},s.\u0275dir=h.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[h.qOj]}),s})();const kl="VALID",Dd="INVALID",gs="PENDING",ca="DISABLED";function up(s){return(Hd(s)?s.validators:s)||null}function lx(s){return Array.isArray(s)?xd(s):s||null}function sb(s,r){return(Hd(r)?r.asyncValidators:s)||null}function cx(s){return Array.isArray(s)?Td(s):s||null}function Hd(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}function lb(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")}function cb(s,r,e){s._forEachChild((t,a)=>{if(void 0===e[a])throw new h.vHH(1002,"")})}class hp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=lx(this._rawValidators),this._composedAsyncValidatorFn=cx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===kl}get invalid(){return this.status===Dd}get pending(){return this.status==gs}get disabled(){return this.status===ca}get enabled(){return this.status!==ca}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=lx(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=cx(r)}addValidators(r){this.setValidators(ap(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(ap(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(op(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(op(r,this._rawAsyncValidators))}hasValidator(r){return Sd(this._rawValidators,r)}hasAsyncValidator(r){return Sd(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=gs,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ca,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=kl,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kl||this.status===gs)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ca:kl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=gs,this._hasOwnPendingAsyncValidator=!0;const e=$_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?ca:this.errors?Dd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gs)?gs:this._anyControlsHaveStatus(Dd)?Dd:kl}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Hd(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class Pd extends hp{constructor(r,e,t){super(up(e),sb(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){cb(this,0,r),Object.keys(r).forEach(t=>{lb(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Rd(s,r){return[...r.path,s]}function oo(s,r){Vl(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function px(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&fp(s,r)})}(s,r),function db(s,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function pp(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&fp(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function hx(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function Id(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),kd(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function Vi(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Vl(s,r){const e=K_(s);null!==r.validator?s.setValidators(rp(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=Z_(s);null!==r.asyncValidator?s.setAsyncValidators(rp(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const a=()=>s.updateValueAndValidity();Vi(r._rawValidators,a),Vi(r._rawAsyncValidators,a)}function kd(s,r){let e=!1;if(null!==s){if(null!==r.validator){const a=K_(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const a=Z_(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return Vi(r._rawValidators,t),Vi(r._rawAsyncValidators,t),e}function fp(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function ub(s,r){Vl(s,r)}function Bl(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function mp(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ol(s,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===Il?e=l:function da(s){return Object.getPrototypeOf(s.constructor)===sa}(l)?t=l:a=l}),a||t||e||null}const bS={provide:ki,useExisting:(0,h.Gpc)(()=>Fl)},Ll=(()=>Promise.resolve(null))();let Fl=(()=>{class s extends ki{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new Pd({},xd(e),Td(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ll.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),oo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ll.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ll.then(()=>{const t=this._findContainer(e.path),a=new Pd({});ub(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ll.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ll.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mp(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 s.\u0275fac=function(e){return new(e||s)(h.Y36(ni,10),h.Y36(xr,10))},s.\u0275dir=h.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([bS]),h.qOj]}),s})();function pb(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function fb(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const so=class extends hp{constructor(r=null,e,t){super(up(e),sb(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fb(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){pb(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){pb(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){fb(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},mx=so,yb={provide:Xn,useExisting:(0,h.Gpc)(()=>ms)},_p=(()=>Promise.resolve(null))();let ms=(()=>{class s extends Xn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new so,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=Ol(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),Bl(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(){oo(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){_p.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,h.D6c)(t);_p.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Rd(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ki,9),h.Y36(ni,10),h.Y36(xr,10),h.Y36(Ii,10),h.Y36(h.sBO,8))},s.\u0275dir=h.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([yb]),h.qOj,h.TTD]}),s})(),yx=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();const Cp=new h.OlP("NgModelWithFormControlWarning"),yS={provide:ki,useExisting:(0,h.Gpc)(()=>_s)};let _s=(()=>{class s extends ki{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(kd(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 oo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Id(e.control||null,e,!1),function Tr(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,mp(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,a=this.form.get(e.path);t!==a&&(Id(t||null,e),(s=>s instanceof so)(a)&&(oo(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ub(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function hb(s,r){return kd(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vl(this.form,this),this._oldForm&&kd(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ni,10),h.Y36(xr,10))},s.\u0275dir=h.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([yS]),h.qOj,h.TTD]}),s})();const xx={provide:Xn,useExisting:(0,h.Gpc)(()=>wp)};let wp=(()=>{class s extends Xn{constructor(e,t,a,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new h.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=Ol(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Bl(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 Rd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(e){return new(e||s)(h.Y36(ki,13),h.Y36(ni,10),h.Y36(xr,10),h.Y36(Ii,10),h.Y36(Cp,8))},s.\u0275dir=h.lG2({type:s,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[h._Bn([xx]),h.qOj,h.TTD]}),s})(),ha=(()=>{class s{constructor(){this._validator=fs}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):fs,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,features:[h.TTD]}),s})();const Pb={provide:ni,useExisting:(0,h.Gpc)(()=>bs),multi:!0};let bs=(()=>{class s extends ha{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>ep}enabled(e){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275dir=h.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([Pb]),h.qOj]}),s})(),Vb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[yx]}),s})(),Sp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Vb]}),s})(),Cs=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:Cp,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Vb]}),s})();class Ix extends hp{constructor(r,e,t){super(up(e),sb(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let a=this._adjustIndex(r);a<0&&(a=0),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(r,e={}){cb(this,0,r),r.forEach((t,a)=>{lb(this,!1,a),this.at(a).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((t,a)=>{this.at(a)&&this.at(a).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function kx(s){return!!s&&(void 0!==s.asyncValidators||void 0!==s.validators||void 0!==s.updateOn)}let Vx=(()=>{class s{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new s;return e.useNonNullable=!0,e}group(e,t=null){const a=this._reduceControls(e);let l={};return kx(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new Pd(a,l)}control(e,t,a){let l={};return this.useNonNullable?(kx(t)?l=t:(l.validators=t,l.asyncValidators=a),new so(e,{...l,nonNullable:!0})):new so(e,t,a)}array(e,t,a){const l=e.map(c=>this._createControl(c));return new Ix(l,t,a)}_reduceControls(e){const t={};return Object.keys(e).forEach(a=>{t[a]=this._createControl(e[a])}),t}_createControl(e){return e instanceof so||e instanceof hp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:Cs}),s})(),TS=(()=>{class s extends Vx{group(e,t=null){return super.group(e,t)}control(e,t,a){return super.control(e,t,a)}array(e,t,a){return super.array(e,t,a)}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:Cs}),s})();const Bx=wn({passive:!0});let ES=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zt.E;const t=ti(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new Pe.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,Bx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,Bx)}}),l}stopMonitoring(e){const t=ti(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.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 s.\u0275fac=function(e){return new(e||s)(h.LFG(ei),h.LFG(h.R0b))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),g=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})();const _=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),C=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let w=0;const v=ol(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Pe.x}});let E=(()=>{class s extends v{constructor(e,t,a,l,c,n,i,o,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=o,this._formField=u,this._uid="mat-input-"+w++,this.focused=!1,this.stateChanges=new Pe.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>Vy().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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=at(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(la.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Vy().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=at(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){C.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 s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ei),h.Y36(Xn,10),h.Y36(Fl,8),h.Y36(_s,8),h.Y36(qc),h.Y36(_,10),h.Y36(ES),h.Y36(h.R0b),h.Y36(xh,8))},s.\u0275dir=h.lG2({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h._Bn([{provide:gl,useExisting:s}]),h.qOj,h.TTD]}),s})(),S=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[qc],imports:[g,is,We,g,is]}),s})();function P(s,r){1&s&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&s&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let R=(()=>{class s{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(oa),h.Y36(en),h.Y36(vd),h.Y36(Rt),h.Y36(ji))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(l){return t.subject=l}),h.qZA(),h.YNc(10,P,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(l){return t.message=l}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const a=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",a.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",a.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,Il,eb,bs,ms,Wo,vh,Th,pi,ml,E,fd,io,gd,Zn],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),s})(),L=(()=>{class s{transform(e,t,a){return e[`${a}_${t}`]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=h.Yjl({name:"localisedText",type:s,pure:!0}),s})(),X=(()=>{class s{transform(e,t){return e["link_"+t]||e.link_en}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=h.Yjl({name:"localisedLink",type:s,pure:!0}),s})(),re=(()=>{class s{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=h.Yjl({name:"footerLogoPath",type:s,pure:!0}),s})();function me(s,r){if(1&s&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function Ae(s,r){if(1&s&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&s){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function He(s,r){if(1&s&&(h.TgZ(0,"div"),h.YNc(1,me,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,Ae,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&s){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const je=function(s){return{"min-height":s}};function Ze(s,r){if(1&s&&(h.TgZ(0,"div",10),h.YNc(1,He,5,8,"div",5),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,je,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const be=function(s){return{color:s}};function $e(s,r){if(1&s&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,be,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function bt(s,r){if(1&s){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const a=h.oxw().$implicit,l=h.oxw(3);return h.KtG(l.openDialog(a.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&s){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,be,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function jt(s,r){if(1&s&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,be,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function lo(s,r){if(1&s&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,be,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function Mp(s,r){if(1&s&&(h.TgZ(0,"div",16),h.YNc(1,$e,2,4,"i",17),h.YNc(2,bt,3,8,"span",18),h.YNc(3,jt,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,lo,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&s){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const Dp=function(s){return{height:s}};function Hp(s,r){if(1&s&&(h.TgZ(0,"div",10),h.YNc(1,Mp,7,10,"div",15),h.qZA()),2&s){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,Dp,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function Pp(s,r){if(1&s&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,Ze,2,4,"div",9),h.YNc(5,Hp,2,4,"div",9),h.qZA()),2&s){const e=r.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,be,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function Rp(s,r){if(1&s&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&s){const e=r.$implicit,t=r.index,a=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,be,a.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const Ip=function(s){return{background:s}};let kp=(()=>{class s{constructor(e,t,a,l,c){this.storeService=e,this.translateService=t,this.utilsService=a,this.dialog=l,this.authService=c,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",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.getProperty("footer").columns,this.guiVersion=x(4147).i8,this.authService.isLoggedIn()&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyrightItems}openDialog(e){const t=no();"reportIssue"===e&&(t.width="550px",this.dialog.open(R,t))}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ji),h.Y36(en),h.Y36(an),h.Y36(to),h.Y36(ro))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,Pp,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,Rp,3,5,"span",5),h._uU(7,", web application: "),h.TgZ(8,"a",6),h._uU(9),h.qZA(),h._uU(10,", server: "),h.TgZ(11,"a",6),h._uU(12),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(11,Ip,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(13,be,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(15,be,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.guiVersion),h.xp6(2),h.Q6J("href",t.githubBackendRepository,h.LSH)("ngStyle",h.VKq(17,be,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,L,X,re],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}"]}),s})();const Vp=["*",[["mat-toolbar-row"]]],Bp=["*","mat-toolbar-row"],rH=za(class{constructor(s){this._elementRef=s}});let aH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=h.lG2({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),s})(),oH=(()=>{class s extends rH{constructor(e,t,a){super(e),this._platform=t,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(h.SBq),h.Y36(ei),h.Y36(T.K0))},s.\u0275cmp=h.Xpm({type:s,selectors:[["mat-toolbar"]],contentQueries:function(e,t,a){if(1&e&&h.Suo(a,aH,5),2&e){let l;h.iGM(l=h.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[h.qOj],ngContentSelectors:Bp,decls:2,vars:0,template:function(e,t){1&e&&(h.F$t(Vp),h.Hsn(0),h.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),s})(),SS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})();function sH(s,r){1&s&&(h.TgZ(0,"div",10)(1,"span",11),h._uU(2," ~ \u{1f5f2}\xa0 "),h.qZA(),h.TgZ(3,"span",12),h._uU(4," DEVEL "),h.qZA(),h.TgZ(5,"span",11),h._uU(6," \xa0\u{1f5f2} ~ "),h.qZA()())}const lH=function(s){return{background:s}},Ox=function(s){return{color:s}};let cH=(()=>{class s{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.preferredLanguage=this.preferredLangService.getPreferredLanguage(null),this.label=this.storeService.getProperty("en"===this.preferredLanguage?"header_label_en":"header_label_cs"),this.isDevel=this.storeService.getProperty("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs")}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ji),h.Y36(oi),h.Y36(j_),h.Y36(en))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex-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&&(h.TgZ(0,"mat-toolbar",0)(1,"div",1),h._UZ(2,"a",2),h.TgZ(3,"p",3),h._uU(4),h.qZA()(),h.YNc(5,sH,7,0,"div",4),h.TgZ(6,"div",5)(7,"button",6)(8,"mat-icon",7),h._uU(9," language "),h.qZA()(),h.TgZ(10,"mat-menu",null,8)(12,"button",9),h.NdJ("click",function(){return t.changeLanguage()}),h._uU(13),h.ALo(14,"translate"),h.qZA()()()()),2&e){const a=h.MAs(11);h.Q6J("ngStyle",h.VKq(11,lH,t.bgColor)),h.xp6(2),h.Q6J("innerHTML",t.logo,h.oJD),h.xp6(1),h.Q6J("ngStyle",h.VKq(13,Ox,t.textColor)),h.xp6(1),h.Oqu(t.label),h.xp6(1),h.Q6J("ngIf",t.isDevel),h.xp6(1),h.Q6J("ngStyle",h.VKq(15,Ox,t.textColor)),h.xp6(1),h.Q6J("matMenuTriggerFor",a),h.xp6(1),h.Q6J("ngStyle",h.VKq(17,Ox,t.iconColor)),h.xp6(5),h.hij(" ",h.lcZ(14,9,"HEADER.LANGUAGE")," ")}},dependencies:[T.O5,T.PC,dd,Wo,rA,Xa,sA,oH,Zn],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex-row[_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}#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}"]}),s})();function dH(s,r){if(1&s&&(h.O4$(),h._UZ(0,"circle",4)),2&s){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function uH(s,r){if(1&s&&(h.O4$(),h._UZ(0,"circle",4)),2&s){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const pH=za(class{constructor(s){this._elementRef=s}},"primary"),fH=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function gH(){return{diameter:100}}});class pa extends pH{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const o=pa._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(t.head)||o.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=un(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=un(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,un(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Oo(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=pa._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}pa._diameters=new WeakMap,pa.\u0275fac=function(r){return new(r||pa)(h.Y36(h.SBq),h.Y36(ei),h.Y36(T.K0,8),h.Y36(h.QbO,8),h.Y36(fH),h.Y36(h.sBO),h.Y36($o),h.Y36(h.R0b))},pa.\u0275cmp=h.Xpm({type:pa,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(h.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,dH,1,11,"circle",2),h.YNc(3,uH,1,9,"circle",3),h.qZA()),2&r&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Op=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,T.ez,We]}),s})(),Fx=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[vr,T.ez]}),s})(),_H=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,is,rs,Cs,S,Ml,Op,vr,Fx]}),s})();class bH{isErrorState(r){return!(!r?.invalid||!r?.dirty)}}const CH=(s,r,e,t=500)=>a=>(0,sh.H)(t).pipe((0,yi.w)(()=>(e.dontHandleErrorForNext(),s&&"No namespace"!==s?r.checkPasswordStrength({password:a.value,namespace:s}):(0,De.of)(null))),(0,ze.U)(()=>null),(0,M.K)(l=>{const c={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,De.of)(c)}));function yH(s,r){1&s&&h._UZ(0,"mat-spinner",12),2&s&&h.Q6J("diameter",18)}function wH(s,r){if(1&s&&(h.TgZ(0,"mat-icon",13),h._uU(1," error "),h.qZA()),2&s){const e=h.oxw();h.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function vH(s,r){1&s&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&s&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function AH(s,r){if(1&s&&(h.TgZ(0,"mat-error",14),h._uU(1),h.qZA()),2&s){const e=h.oxw();h.Q6J("matTooltip",e.getErrorTooltip()),h.xp6(1),h.Oqu(e.getErrorTooltip())}}function xH(s,r){1&s&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&s&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function TH(s,r){1&s&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&s&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let EH=(()=>{class s{constructor(e,t,a){this.translator=e,this.usersManagerService=t,this.store=a,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new bH,this.allPasswordRequirements=this.store.getProperty("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(a=>"preferredLanguage"===a.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_requirements_help":"password_requirements_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"!==this.language?"en"===this.language?"password_requirements_help":"password_requirements_help_cs":"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 s.\u0275fac=function(e){return new(e||s)(h.Y36(en),h.Y36(sr),h.Y36(ji))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[h.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"mat-form-field",1),h._UZ(2,"input",2),h.ALo(3,"translate"),h.YNc(4,yH,1,1,"mat-spinner",3),h.TgZ(5,"mat-icon",4),h.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),h._uU(6),h.qZA(),h.YNc(7,wH,2,2,"mat-icon",5),h.YNc(8,vH,3,3,"mat-error",6),h.YNc(9,AH,2,2,"mat-error",7),h.qZA(),h.TgZ(10,"mat-form-field",8)(11,"mat-label"),h._uU(12),h.ALo(13,"translate"),h.qZA(),h._UZ(14,"input",9),h.TgZ(15,"mat-icon",4),h.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),h._uU(16),h.qZA(),h.YNc(17,xH,3,3,"mat-error",6),h.YNc(18,TH,3,3,"mat-error",6),h.qZA(),h.TgZ(19,"perun-web-apps-alert",10),h._UZ(20,"div",11),h.qZA()()),2&e&&(h.Q6J("formGroup",t.formGroup),h.xp6(1),h.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),h.xp6(1),h.s9C("placeholder",h.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),h.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),h.xp6(2),h.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),h.xp6(2),h.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),h.xp6(1),h.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),h.xp6(1),h.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),h.xp6(3),h.Oqu(h.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),h.xp6(2),h.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),h.xp6(2),h.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),h.xp6(1),h.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),h.xp6(2),h.Q6J("innerHTML",t.passwordRequirement,h.oJD))},dependencies:[T.O5,vh,Th,ml,Lm,zv,Il,eb,tb,bs,_s,wp,E,pa,dd,ps,Zn],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)}"]}),s})();function SH(s,r){if(1&s&&h._UZ(0,"perun-web-apps-password-form",4),2&s){const e=h.oxw();h.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function MH(s,r){if(1&s){const e=h.EpF();h.TgZ(0,"div")(1,"button",5),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onSubmit())}),h._uU(2),h.ALo(3,"translate"),h.qZA()()}if(2&s){const e=h.oxw();h.xp6(1),h.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),h.xp6(1),h.hij(" ",h.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function DH(s,r){if(1&s&&(h.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),h._uU(2),h.ALo(3,"translate"),h.qZA()()),2&s){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function HH(s,r){1&s&&h._UZ(0,"mat-spinner",8)}let PH=(()=>{class s{constructor(e,t,a,l,c){this.storeService=e,this.translate=t,this.apiRequestConfiguration=a,this.usersService=l,this._formBuilder=c,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 mx("",la.required,[CH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new mx("",la.required)},{validators:qA.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ji),h.Y36(en),h.Y36(L_),h.Y36(sr),h.Y36(TS))},s.\u0275cmp=h.Xpm({type:s,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&&(h.YNc(0,SH,1,3,"perun-web-apps-password-form",0),h.YNc(1,MH,4,4,"div",1),h.YNc(2,DH,4,3,"div",2),h.YNc(3,HH,1,0,"mat-spinner",3)),2&e&&(h.Q6J("ngIf",!t.success&&!t.loading),h.xp6(1),h.Q6J("ngIf",!t.success&&!t.loading),h.xp6(1),h.Q6J("ngIf",t.success&&!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[T.O5,Wo,pa,tb,_s,ps,EH,Zn]}),s})(),RH=(()=>{class s{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(en))},s.\u0275cmp=h.Xpm({type:s,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&&(h.TgZ(0,"perun-web-apps-alert",0),h._UZ(1,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("innerHTML",t.invalidRequestMessage,h.oJD))},dependencies:[ps],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})();function IH(s,r){if(1&s&&(h.O4$(),h.kcU(),h.TgZ(0,"p",9)(1,"em"),h._uU(2),h.ALo(3,"translate"),h.qZA()()),2&s){const e=h.oxw();h.xp6(2),h.AsE("",h.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function kH(s,r){if(1&s&&(h.O4$(),h.kcU(),h.TgZ(0,"p",9)(1,"em"),h._uU(2),h.ALo(3,"translate"),h.qZA()()),2&s){const e=h.oxw();h.xp6(2),h.AsE("",h.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function VH(s,r){if(1&s&&(h.O4$(),h.kcU(),h._UZ(0,"perun-web-apps-password-reset-form",10)),2&s){const e=h.oxw();h.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function BH(s,r){1&s&&(h.O4$(),h.kcU(),h._UZ(0,"perun-web-apps-invalid-request-alert"))}let OH=(()=>{class s{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("password_reset_logo"))}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(ji),h.Y36(oi))},s.\u0275cmp=h.Xpm({type:s,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&&(h.TgZ(0,"div"),h._UZ(1,"div",0),h.TgZ(2,"div",1)(3,"h1"),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.O4$(),h.TgZ(6,"svg",2)(7,"g",3),h._UZ(8,"path",4)(9,"path",5),h.qZA()()(),h.YNc(10,IH,4,4,"p",6),h.YNc(11,kH,4,4,"p",6),h.YNc(12,VH,1,5,"perun-web-apps-password-reset-form",7),h.YNc(13,BH,1,0,"perun-web-apps-invalid-request-alert",8),h.qZA()),2&e&&(h.xp6(1),h.Q6J("innerHTML",t.passwordResetLogo,h.oJD),h.xp6(3),h.hij(" ",h.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),h.xp6(6),h.Q6J("ngIf",t.login),h.xp6(1),h.Q6J("ngIf",t.namespace),h.xp6(1),h.Q6J("ngIf",t.validToken||t.authWithoutToken),h.xp6(1),h.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[T.O5,PH,RH,Zn],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),s})();const LH=["footer"],FH=function(s){return{background:s}},jH=function(s){return{"min-height":s}};let NH=(()=>{class s{constructor(e,t,a,l,c,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=a,this.translateService=l,this.store=c,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.getProperty("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=hs("namespace",t),t.includes("token")?(this.token=hs("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(a=>{const l=a.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return s.\u0275fac=function(e){return new(e||s)(h.Y36(to),h.Y36(sr),h.Y36(j_),h.Y36(en),h.Y36(ji),h.Y36(Pr),h.Y36(h.sBO))},s.\u0275cmp=h.Xpm({type:s,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&h.Gf(LH,5),2&e){let a;h.iGM(a=h.CRH())&&(t.footer=a.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&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",0),h.TgZ(2,"div",1)(3,"div",2),h._UZ(4,"perun-web-apps-password-reset-page",3),h.qZA(),h.TgZ(5,"div",null,4),h._UZ(7,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.xp6(2),h.Q6J("ngStyle",h.VKq(8,FH,t.contentBackgroundColor)),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,jH,t.contentHeight)),h.xp6(1),h.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},dependencies:[T.PC,kp,cH,OH],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}}"]}),s})();class zH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}function MS(s){return new h.vHH(3e3,!1)}function AP(){return typeof window<"u"&&typeof window.document<"u"}function jx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ys(s){switch(s.length){case 0:return new es;case 1:return s[0];default:return new nd(s)}}function DS(s,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,o=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&o||new Map;d.forEach((H,z)=>{let ae=z,ke=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(z);break;case Cr:ke=l.get(z);break;default:ke=r.normalizeStyleValue(z,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),o=b,i=u}),c.length)throw function uP(s){return new h.vHH(3502,!1)}();return n}function Nx(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&zx(e,"start",s)));break;case"done":s.onDone(()=>t(e&&zx(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&zx(e,"destroy",s)))}}function zx(s,r,e){const l=Gx(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function Gx(s,r,e,t,a="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function En(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function HS(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let Ux=(s,r)=>!1,PS=(s,r,e)=>[],RS=null;function qx(s){const r=s.parentNode||s.host;return r===RS?null:r}(jx()||typeof Element<"u")&&(AP()?(RS=(()=>document.documentElement)(),Ux=(s,r)=>{for(;r;){if(r===s)return!0;r=qx(r)}return!1}):Ux=(s,r)=>s.contains(r),PS=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let zl=null,IS=!1;const kS=Ux,VS=PS;let BS=(()=>{class s{validateStyleProperty(e){return function TP(s){zl||(zl=function EP(){return typeof document<"u"?document.body:null}()||{},IS=!!zl.style&&"WebkitAppearance"in zl.style);let r=!0;return zl.style&&!function xP(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in zl.style,!r&&IS&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in zl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return kS(e,t)}getParentElement(e){return qx(e)}query(e,t,a){return VS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new es(a,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})(),Wx=(()=>{class s{}return s.NOOP=new BS,s})();const $x="ng-enter",Bb="ng-leave",Ob="ng-trigger",Lb=".ng-trigger",LS="ng-animating",Yx=".ng-animating";function ws(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Qx(parseFloat(r[1]),r[2])}function Qx(s,r){return"s"===r?1e3*s:s}function Fb(s,r,e){return s.hasOwnProperty("duration")?s:function DP(s,r,e){let a,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(MS()),{duration:0,delay:0,easing:""};a=Qx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Qx(parseFloat(i),n[4]));const o=n[5];o&&(c=o)}else a=s;if(!e){let n=!1,i=r.length;a<0&&(r.push(function GH(){return new h.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function UH(){return new h.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,MS())}return{duration:a,delay:l,easing:c}}(s,r,e)}function Lp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function FS(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function vs(s,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of s)r.set(t,a);return r}function NS(s,r,e){return e?r+":"+e+";":""}function zS(s){let r="";for(let e=0;e{const l=Kx(a);e&&!e.has(a)&&e.set(a,s.style[l]),s.style[l]=t}),jx()&&zS(s))}function Gl(s,r){s.style&&(r.forEach((e,t)=>{const a=Kx(t);s.style[a]=""}),jx()&&zS(s))}function Fp(s){return Array.isArray(s)?1==s.length?s[0]:fh(s):s}const Jx=new RegExp("{{\\s*(.+?)\\s*}}","g");function GS(s){let r=[];if("string"==typeof s){let e;for(;e=Jx.exec(s);)r.push(e[1]);Jx.lastIndex=0}return r}function jb(s,r,e){const t=s.toString(),a=t.replace(Jx,(l,c)=>{let n=r[c];return null==n&&(e.push(function WH(s){return new h.vHH(3003,!1)}()),n=""),n.toString()});return a==t?s:a}function Nb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const RP=/-+([a-z0-9])/g;function Kx(s){return s.replace(RP,(...r)=>r[1].toUpperCase())}function IP(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Sn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function $H(s){return new h.vHH(3004,!1)}()}}function US(s,r){return window.getComputedStyle(s)[r]}function FP(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function jP(s,r,e){if(":"==s[0]){const i=function NP(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function oP(s){return new h.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(qS(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(qS(c,a))}(t,e,r)):e.push(s),e}const qb=new Set(["true","1"]),Wb=new Set(["false","0"]);function qS(s,r){const e=qb.has(s)||Wb.has(s),t=qb.has(r)||Wb.has(r);return(a,l)=>{let c="*"==s||s==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?qb.has(s):Wb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?qb.has(r):Wb.has(r)),c&&n}}const zP=new RegExp("s*:selfs*,?","g");function Zx(s,r,e,t){return new GP(s).build(r,e,t)}class GP{constructor(r){this._driver=r}build(r,e,t){const a=new WP(e);return this._resetContextStyleTimingState(a),Sn(this,Fp(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function QH(){return new h.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,o=i.name;o.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=o}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function JH(){return new h.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{GS(i).forEach(o=>{c.hasOwnProperty(o)||l.add(o)})})}),l.size&&(Nb(l.values()),e.errors.push(function KH(s,r){return new h.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Sn(this,Fp(r.animation),e);return{type:1,matchers:FP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ul(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Sn(this,t,e)),options:Ul(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Sn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Ul(r.options)}}visitAnimate(r,e){const t=function YP(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return Xx(Fb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Xx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Fb(e,r);return Xx(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const o={};t.easing&&(o.easing=t.easing),c=Fe(o)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===Cr?t.push(n):e.errors.push(new h.vHH(3002,!1)):t.push(FS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const o=e.collectedStyles.get(e.currentQuerySelector),d=o.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function XH(s,r,e,t,a){return new h.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&o.set(i,{startTime:l,endTime:a}),e.options&&function PP(s,r,e){const t=r.params||{},a=GS(s);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function qH(s){return new h.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function eP(){return new h.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,o=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function $P(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=H+z.delay+zt,z.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Sn(this,Fp(r.animation),e),options:Ul(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Ul(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Ul(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function UP(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(zP,"")),s=s.replace(/@\*/g,Lb).replace(/@\w+/g,e=>Lb+"-"+e.slice(1)).replace(/:animating/g,Yx),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,En(e.collectedStyles,e.currentQuerySelector,new Map);const n=Sn(this,Fp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Ul(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function rP(){return new h.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Fb(r.timings,e.errors,!0);return{type:12,animation:Sn(this,Fp(r.animation),e),timings:t,options:null}}}class WP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ul(s){return s?(s=Lp(s)).params&&(s.params=function qP(s){return s?Lp(s):null}(s.params)):s={},s}function Xx(s,r,e){return{duration:s,delay:r,easing:e}}function e0(s,r,e,t,a,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class $b{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const KP=new RegExp(":enter","g"),XP=new RegExp(":leave","g");function t0(s,r,e,t,a,l=new Map,c=new Map,n,i,o=[]){return(new eR).buildKeyframes(s,r,e,t,a,l,c,n,i,o)}class eR{buildKeyframes(r,e,t,a,l,c,n,i,o,d=[]){o=o||new $b;const u=new n0(r,e,o,a,l,d,[]);u.options=i;const f=i.delay?ws(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Sn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[e0(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?ws(t.duration):null,n=null!=t.delay?ws(t.delay):null;return 0!==c&&r.forEach(i=>{const o=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,o.duration+o.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Sn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Yb);const c=ws(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Sn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?ws(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Sn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Fb(e.params?jb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?ws(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((o,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,o);l&&u.delayNextStep(l),o===e.element&&(i=u.currentTimeline),Sn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Sn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const Yb={};class n0{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Qb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=ws(t.duration)),null!=t.delay&&(a.delay=ws(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=jb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new n0(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Yb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new tR(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(KP,"."+this._enterClassName)).replace(XP,"."+this._leaveClassName);let o=this._driver.query(this.element,r,1!=t);0!==t&&(o=t<0?o.slice(o.length+t,o.length):o.slice(0,t)),n.push(...o)}return!l&&0==n.length&&c.push(function aP(s){return new h.vHH(3014,!1)}()),n}}class Qb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Qb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Cr),this._currentKeyframe.set(e,Cr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function iR(s,r){const e=new Map;let t;return s.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,Cr)}else vs(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const o=jb(i,l,t);this._pendingStyles.set(n,o),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??Cr),this._updateStyle(n,o)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const o=vs(n,new Map,this._backFill);o.forEach((d,u)=>{"!"===d?r.add(u):d===Cr&&e.add(u)}),t||o.set("offset",i/this.duration),a.push(o)});const l=r.size?Nb(r.values()):[],c=e.size?Nb(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return e0(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class tR extends Qb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=vs(r[0]);i.set("offset",0),l.push(i);const o=vs(r[0]);o.set("offset",YS(n)),l.push(o);const d=r.length-1;for(let u=1;u<=d;u++){let f=vs(r[u]);const b=f.get("offset");f.set("offset",YS((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return e0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function YS(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class r0{}const nR=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class rR extends r0{normalizePropertyName(r,e){return Kx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(nR.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function YH(s,r){return new h.vHH(3005,!1)}())}return c+l}}function QS(s,r,e,t,a,l,c,n,i,o,d,u,f){return{type:0,element:s,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:o,postStyleProps:d,totalTime:u,errors:f}}const a0={};class JS{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function aR(s,r,e,t,a){return s.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,o,d){const u=[],f=this.ast.options&&this.ast.options.params||a0,H=this.buildStyles(t,n&&n.params||a0,u),z=i&&i.params||a0,ae=this.buildStyles(a,z,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,Er={params:oR(z,f),delay:this.ast.options?.delay},nr=d?[]:t0(r,e,this.ast.animation,l,c,H,ae,Er,o,u);let nn=0;if(nr.forEach(fo=>{nn=Math.max(fo.duration+fo.delay,nn)}),u.length)return QS(e,this._triggerName,t,a,zt,H,ae,[],[],lt,yt,nn,u);nr.forEach(fo=>{const go=fo.element,_D=En(lt,go,new Set);fo.preStyleProps.forEach(Wl=>_D.add(Wl));const Yp=En(yt,go,new Set);fo.postStyleProps.forEach(Wl=>Yp.add(Wl)),go!==e&&ke.add(go)});const po=Nb(ke.values());return QS(e,this._triggerName,t,a,zt,H,ae,nr,po,lt,yt,nn)}}function oR(s,r){const e=Lp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class sR{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Lp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=jb(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class cR{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new sR(a.style,a.options&&a.options.params||{},t))}),KS(this.states,"true","1"),KS(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new JS(r,a,this.states))}),this.fallbackTransition=function dR(s,r,e){return new JS(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function KS(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const uR=new $b;class hR{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Zx(this._driver,e,t,[]);if(t.length)throw function hP(s){return new h.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=DS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=t0(this._driver,e,l,$x,Bb,new Map,new Map,t,uR,a),c.forEach(d=>{const u=En(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function pP(){return new h.vHH(3300,!1)}()),c=[]),a.length)throw function fP(s){return new h.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,Cr))})});const o=ys(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,o),o.onDestroy(()=>this.destroy(r)),this.players.push(o),o}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function gP(s){return new h.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Gx(e,"","","");return Nx(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);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(a[0]));break;case"destroy":this.destroy(r)}}}const ZS="ng-animate-queued",o0="ng-animate-disabled",_R=[],XS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class s0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function vR(s){return s??null}(t?r.value:r),t){const l=Lp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const jp="void",l0=new s0(jp);class CR{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ir(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function mP(s,r){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function _P(s){return new h.vHH(3303,!1)}();if(!function AR(s){return"start"==s||"done"==s}(t))throw function bP(s,r){return new h.vHH(3400,!1)}();const l=En(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=En(this._engine.statesByElement,r,new Map);return n.has(e)||(ir(r,Ob),ir(r,Ob+"-"+e),n.set(e,l0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function CP(s){return new h.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new c0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(ir(r,Ob),ir(r,Ob+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const o=new s0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&o.absorbOptions(i.options),n.set(e,o),i||(i=l0),o.value!==jp&&i.value===o.value){if(!function ER(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{Gl(r,ae),fa(r,ke)})}return}const f=En(this._engine.playersByElement,r,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,o.value,r,o.params),H=!1;if(!b){if(!a)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:o,player:c,isFallbackTransition:H}),H||(ir(r,ZS),c.onStart(()=>{Fd(r,ZS)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Lb,!0);t.forEach(a=>{if(a[tr])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,o)=>{if(c.set(o,i.value),this._triggers.has(o)){const d=this.trigger(r,o,jp,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ys(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,o=t.get(c)||l0,d=new s0(jp),u=new c0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:o,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[tr];(!l||l===XS)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){ir(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Gx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Nx(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class yR{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new CR(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const o=t.indexOf(i);t.splice(o+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if(Jb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!Jb(e))return;const l=e[tr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),ir(r,o0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Fd(r,o0))}removeNode(r,e,t,a){if(Jb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[tr]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return Jb(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Lb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,Yx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ys(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[tr];if(e&&e.setForRemoval){if(r[tr]=XS,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(o0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),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?ys(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function yP(s){return new h.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new $b,a=[],l=new Map,c=[],n=new Map,i=new Map,o=new Map,d=new Set;this.disabledNodes.forEach(Ue=>{d.add(Ue);const Xe=this.driver.query(Ue,".ng-animate-queued",!0);for(let it=0;it{const it=$x+z++;H.set(Xe,it),Ue.forEach(xt=>ir(xt,it))});const ae=[],ke=new Set,lt=new Set;for(let Ue=0;Ueke.add(xt)):lt.add(Xe))}const yt=new Map,zt=iM(f,Array.from(ke));zt.forEach((Ue,Xe)=>{const it=Bb+z++;yt.set(Xe,it),Ue.forEach(xt=>ir(xt,it))}),r.push(()=>{b.forEach((Ue,Xe)=>{const it=H.get(Xe);Ue.forEach(xt=>Fd(xt,it))}),zt.forEach((Ue,Xe)=>{const it=yt.get(Xe);Ue.forEach(xt=>Fd(xt,it))}),ae.forEach(Ue=>{this.processLeaveNode(Ue)})});const Er=[],nr=[];for(let Ue=this._namespaceList.length-1;Ue>=0;Ue--)this._namespaceList[Ue].drainQueuedTransitions(e).forEach(it=>{const xt=it.player,Bi=it.element;if(Er.push(xt),this.collectedEnterElements.length){const Yi=Bi[tr];if(Yi&&Yi.setForMove){if(Yi.previousTriggersValues&&Yi.previousTriggersValues.has(it.triggerName)){const $l=Yi.previousTriggersValues.get(it.triggerName),rr=this.statesByElement.get(it.element);if(rr&&rr.has(it.triggerName)){const yC=rr.get(it.triggerName);yC.value=$l,rr.set(it.triggerName,yC)}}return void xt.destroy()}}const ma=!u||!this.driver.containsElement(u,Bi),Mn=yt.get(Bi),xs=H.get(Bi),ri=this._buildInstruction(it,t,xs,Mn,ma);if(ri.errors&&ri.errors.length)return void nr.push(ri);if(ma)return xt.onStart(()=>Gl(Bi,ri.fromStyles)),xt.onDestroy(()=>fa(Bi,ri.toStyles)),void a.push(xt);if(it.isFallbackTransition)return xt.onStart(()=>Gl(Bi,ri.fromStyles)),xt.onDestroy(()=>fa(Bi,ri.toStyles)),void a.push(xt);const yD=[];ri.timelines.forEach(Yi=>{Yi.stretchStartingKeyframe=!0,this.disabledNodes.has(Yi.element)||yD.push(Yi)}),ri.timelines=yD,t.append(Bi,ri.timelines),c.push({instruction:ri,player:xt,element:Bi}),ri.queriedElements.forEach(Yi=>En(n,Yi,[]).push(xt)),ri.preStyleProps.forEach((Yi,$l)=>{if(Yi.size){let rr=i.get($l);rr||i.set($l,rr=new Set),Yi.forEach((yC,F0)=>rr.add(F0))}}),ri.postStyleProps.forEach((Yi,$l)=>{let rr=o.get($l);rr||o.set($l,rr=new Set),Yi.forEach((yC,F0)=>rr.add(F0))})});if(nr.length){const Ue=[];nr.forEach(Xe=>{Ue.push(function wP(s,r){return new h.vHH(3505,!1)}())}),Er.forEach(Xe=>Xe.destroy()),this.reportError(Ue)}const nn=new Map,po=new Map;c.forEach(Ue=>{const Xe=Ue.element;t.has(Xe)&&(po.set(Xe,Xe),this._beforeAnimationBuild(Ue.player.namespaceId,Ue.instruction,nn))}),a.forEach(Ue=>{const Xe=Ue.element;this._getPreviousPlayers(Xe,!1,Ue.namespaceId,Ue.triggerName,null).forEach(xt=>{En(nn,Xe,[]).push(xt),xt.destroy()})});const fo=ae.filter(Ue=>rM(Ue,i,o)),go=new Map;tM(go,this.driver,lt,o,Cr).forEach(Ue=>{rM(Ue,i,o)&&fo.push(Ue)});const Yp=new Map;b.forEach((Ue,Xe)=>{tM(Yp,this.driver,new Set(Ue),i,"!")}),fo.forEach(Ue=>{const Xe=go.get(Ue),it=Yp.get(Ue);go.set(Ue,new Map([...Array.from(Xe?.entries()??[]),...Array.from(it?.entries()??[])]))});const Wl=[],bD=[],CD={};c.forEach(Ue=>{const{element:Xe,player:it,instruction:xt}=Ue;if(t.has(Xe)){if(d.has(Xe))return it.onDestroy(()=>fa(Xe,xt.toStyles)),it.disabled=!0,it.overrideTotalTime(xt.totalTime),void a.push(it);let Bi=CD;if(po.size>1){let Mn=Xe;const xs=[];for(;Mn=Mn.parentNode;){const ri=po.get(Mn);if(ri){Bi=ri;break}xs.push(Mn)}xs.forEach(ri=>po.set(ri,Bi))}const ma=this._buildAnimation(it.namespaceId,xt,nn,l,Yp,go);if(it.setRealPlayer(ma),Bi===CD)Wl.push(it);else{const Mn=this.playersByElement.get(Bi);Mn&&Mn.length&&(it.parentPlayer=ys(Mn)),a.push(it)}}else Gl(Xe,xt.fromStyles),it.onDestroy(()=>fa(Xe,xt.toStyles)),bD.push(it),d.has(Xe)&&a.push(it)}),bD.forEach(Ue=>{const Xe=l.get(Ue.element);if(Xe&&Xe.length){const it=ys(Xe);Ue.setRealPlayer(it)}}),a.forEach(Ue=>{Ue.parentPlayer?Ue.syncPlayerEvents(Ue.parentPlayer):Ue.destroy()});for(let Ue=0;Ue!ma.destroyed);Bi.length?xR(this,Xe,Bi):this.processLeaveNode(Xe)}return ae.length=0,Wl.forEach(Ue=>{this.players.push(Ue),Ue.onDone(()=>{Ue.destroy();const Xe=this.players.indexOf(Ue);this.players.splice(Xe,1)}),Ue.play()}),Wl}elementContainsData(r,e){let t=!1;const a=e[tr];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==jp;n.forEach(o=>{o.queued||!i&&o.triggerName!=a||c.push(o)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const o=i.element,d=o!==l,u=En(t,o,[]);this._getPreviousPlayers(o,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Gl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,o=[],d=new Set,u=new Set,f=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[tr];if(ae&&ae.removedBeforeQueried)return new es(H.duration,H.delay);const ke=z!==i,lt=function TR(s){const r=[];return nM(s,r),r}((t.get(z)||_R).map(nn=>nn.getRealPlayer())).filter(nn=>!!nn.element&&nn.element===z),yt=l.get(z),zt=c.get(z),Er=DS(0,this._normalizer,0,H.keyframes,yt,zt),nr=this._buildPlayer(H,Er,lt);if(H.subTimeline&&a&&u.add(z),ke){const nn=new c0(r,n,z);nn.setRealPlayer(nr),o.push(nn)}return nr});o.forEach(H=>{En(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function wR(s,r,e){let t=s.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>ir(H,LS));const b=ys(f);return b.onDestroy(()=>{d.forEach(H=>Fd(H,LS)),fa(i,e.toStyles)}),u.forEach(H=>{En(a,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new es(r.duration,r.delay)}}class c0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new es,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Nx(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){En(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Jb(s){return s&&1===s.nodeType}function eM(s,r){const e=s.style.display;return s.style.display=r??"none",e}function tM(s,r,e,t,a){const l=[];e.forEach(i=>l.push(eM(i)));const c=[];t.forEach((i,o)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(o,u,a);d.set(u,f),(!f||0==f.length)&&(o[tr]=bR,c.push(o))}),s.set(o,d)});let n=0;return e.forEach(i=>eM(i,l[n++])),c}function iM(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const o=n.parentNode;return i=e.has(o)?o:a.has(o)?1:c(o),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function ir(s,r){s.classList?.add(r)}function Fd(s,r){s.classList?.remove(r)}function xR(s,r,e){ys(e).onDone(()=>s.processLeaveNode(r))}function nM(s,r){for(let e=0;ea.add(l)):r.set(s,t),e.delete(s),!0}class Kb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new yR(r,e,t),this._timelineEngine=new hR(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Zx(this._driver,l,i,[]);if(i.length)throw function dP(s,r){return new h.vHH(3404,!1)}();n=function lR(s,r,e){return new cR(s,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=HS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=HS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let MR=(()=>{class s{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&fa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fa(this._element,this._initialStyles),this._endStyles&&(fa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Gl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gl(this._element,this._endStyles),this._endStyles=null),fa(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function d0(s){let r=null;return s.forEach((e,t)=>{(function DR(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class aM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:US(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class HR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return kS(r,e)}getParentElement(r){return qx(r)}query(r,e,t){return VS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const o=new Map,d=c.filter(b=>b instanceof aM);(function kP(s,r){return 0===s||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>o.set(z,H))});let u=function HP(s){return s.length?s[0]instanceof Map?s:s.map(r=>FS(r)):[]}(e).map(b=>vs(b));u=function VP(s,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,US(s,n)))}}return r}(r,u,o);const f=function SR(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=d0(r[0]),r.length>1&&(t=d0(r[r.length-1]))):r instanceof Map&&(e=d0(r)),e||t?new MR(s,e,t):null}(r,u);return new aM(r,u,i,f)}}let PR=(()=>{class s extends ph{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?fh(e):e;return oM(this._renderer,null,t,"register",[a]),new RR(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.FYo),h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class RR extends class Cv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new IR(this._id,r,e||{},this._renderer)}}class IR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return oM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function oM(s,r,e,t,a){return s.setProperty(r,`@@${e}:${t}`,a)}const sM="@.disabled";let kR=(()=>{class s{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new lM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=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(c,n,e,d.name,d)};return t.data.animation.forEach(i),new VR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(h.FYo),h.LFG(Kb),h.LFG(h.R0b))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();class lM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==sM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class VR extends lM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function BR(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function OR(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const cM=[{provide:ph,useClass:PR},{provide:r0,useFactory:function FR(){return new rR}},{provide:Kb,useClass:(()=>{class s extends Kb{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0),h.LFG(Wx),h.LFG(r0),h.LFG(h.z2F))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:h.FYo,useFactory:function jR(s,r,e){return new kR(s,r,e)},deps:[ue,Kb,h.R0b]}],u0=[{provide:Wx,useFactory:()=>new HR},{provide:h.QbO,useValue:"BrowserAnimations"},...cM],dM=[{provide:Wx,useClass:BS},{provide:h.QbO,useValue:"NoopAnimations"},...cM];let NR=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?dM:u0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:u0,imports:[Ca]}),s})(),zR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,us,Wn,Ml]}),s})();const GR=[];let UR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Au.forRoot(GR,{relativeLinkResolution:"legacy"}),T.ez,Au]}),s})(),qR=(()=>{class s{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function WR(s){return[gn(tinycolor(s).lighten(52),"50"),gn(tinycolor(s).lighten(37),"100"),gn(tinycolor(s).lighten(26),"200"),gn(tinycolor(s).lighten(12),"300"),gn(tinycolor(s).lighten(6),"400"),gn(tinycolor(s),"500"),gn(tinycolor(s).darken(6),"600"),gn(tinycolor(s).darken(12),"700"),gn(tinycolor(s).darken(18),"800"),gn(tinycolor(s).darken(24),"900"),gn(tinycolor(s).lighten(50).saturate(30),"A100"),gn(tinycolor(s).lighten(30).saturate(30),"A200"),gn(tinycolor(s).lighten(10).saturate(15),"A400"),gn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,o=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(i,o)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),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.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(y.eN),h.LFG(ji),h.LFG(rt),h.LFG(Y),h.LFG(an))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function gn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let $R=(()=>{class s{constructor(e,t,a,l){this.initAuthService=e,this.appConfigService=t,this.location=a,this.mfaHandlerService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substring(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),location.search.substring(1).includes("token")?void 0:this.initAuthService.loadPrincipal().then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Kh),h.LFG(qR),h.LFG(T.Ye),h.LFG(wd))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const YR=new h.OlP("perun-api-service");let uM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})(),fM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),Xb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[hi,We,Fo,fM,We,fM]}),s})(),h0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[We,We]}),s})(),lI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),mM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,We,lI,ea]}),s})(),bM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Go,We,Go,We]}),s})(),uI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Kr]}),s})(),p0=(()=>{class s{constructor(){this.changes=new Pe.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vI={provide:p0,deps:[[new h.FiY,new h.tp0,p0]],useFactory:function wI(s){return s||new p0}};let vM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[vI,qc],imports:[We,T.ez,ea,Wn,uI,vr,hi,We]}),s})(),OI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[qa]}),s})(),dC=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[OI,We,We]}),s})(),nk=(()=>{class s{constructor(){this.changes=new Pe.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const pk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[xi],useFactory:function hk(s){return()=>s.scrollStrategies.reposition()}};let T0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[nk,pk],imports:[T.ez,Wn,Ja,zc,ea,We,$n]}),s})(),LM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,We,$n,$n,We]}),s})(),jM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[Go,hi,We,Xu,T.ez,Go,We,Xu,h0]}),s})(),E0=(()=>{class s{constructor(){this.changes=new Pe.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Ik={provide:E0,deps:[[new h.FiY,new h.tp0,E0]],useFactory:function Rk(s){return s||new E0}};let S0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[Ik],imports:[T.ez,We]}),s})(),Lk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,We,ea,hi,Fo,zc,We]}),s})(),NM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),zM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[NM,hi,We,Fo,NM,We]}),s})();const WM=new h.OlP("mat-chips-default-options");let D0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[qc,{provide:WM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),s})(),$M=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez,uM,h0,mM,Wn,bM,Xb,vr,dC,us,Op,is,S,qa,Sp,Cs,vM,T0,Nw,LM,jM,na,SS,S0,Kn,rs,_l,hi,dC,zM,D0,uM,h0,mM,Wn,bM,Xb,vr,dC,us,Op,is,S,qa,Sp,Cs,vM,T0,Nw,LM,jM,na,SS,S0,Kn,rs,_l,hi,Lk,zM,D0]}),s})();function H0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?s.setProperty(t,a,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Ud(s,r){const e=r?"":"none";H0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function YM(s,r,e){H0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function fC(s,r){return r&&"none"!=r?s+" "+r:s}function QM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function P0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function R0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function I0(s,r,e){const{top:t,bottom:a,left:l,right:c}=s;return e>=t&&e<=a&&r>=l&&r<=c}function Up(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function JM(s,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:o}=s,d=i*r,u=o*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:R0(e)})})}handleScroll(r){const e=vi(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const o=this.getViewportScrollPosition();l=o.top,c=o.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((o,d)=>{o.clientRect&&e!==d&&e.contains(d)&&Up(o.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ZM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);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),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const o=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(o),this._dropContainer)this._updateActiveDropContainer(o,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=o.x-d.x+this._passiveTransform.x,u.y=o.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:o,event:n,distance:this._getDragDistance(o),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new KM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=at(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Ud(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ti(t)),this._handles.forEach(t=>Ud(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ti(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,gC),e.addEventListener("touchstart",this._pointerDown,iD),e.addEventListener("dragstart",this._nativeDragStart,gC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ti(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Ud(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Ud(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){qp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),YM(t,!1,k0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=qp(e),l=!a&&0!==e.button,c=this._rootElement,n=vi(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),o=a?jc(e):Un(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||o)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=R0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,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(r){YM(this._rootElement,!0,k0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,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,r,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,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=rD(c,this._document),this._previewRef=c,r.matchSize?aD(a,l):a.style.transform=mC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=ZM(this._rootElement),aD(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return H0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},k0),Ud(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function u1(s){const r=getComputedStyle(s),e=P0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=P0(r,"transition-duration"),c=P0(r,"transition-delay");return QM(l[a])+QM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||vi(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=rD(this._placeholderRef,this._document)):t=ZM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=qp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=qp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:o}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(o-c);t=nD(t,n.left+l,n.right-(i-l)),a=nD(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Ud(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,gC),r.removeEventListener("touchstart",this._pointerDown,iD),r.removeEventListener("dragstart",this._nativeDragStart,gC)}_applyRootElementTransform(r,e){const t=mC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=fC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=mC(r,e);this._preview.style.transform=fC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:qp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=vi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Up(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Oo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ti(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function mC(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function nD(s,r,e){return Math.max(r,Math.min(e,s))}function qp(s){return"t"===s.type[0]}function rD(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function aD(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=mC(r.left,r.top)}function Wp(s,r){return Math.max(0,Math.min(r,s))}class m1{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),o=l[c],u=o.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),H=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function g1(s,r,e){const t=Wp(r,s.length-1),a=Wp(e,s.length-1);if(t===a)return;const l=s[t],c=a{if(z[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:H,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=fC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Up(ae.clientRect,0,yt)):(zt.style.transform=fC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Up(ae.clientRect,yt,0))}),this._previousSwap.overlaps=I0(u,e,t),this._previousSwap.drag=o.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let o=c[l];if(o===r&&(o=c[l+1]),!o&&(null==l||-1===l||l-1&&c.splice(n,1),o&&!this._dragDropRegistry.isDragging(o)){const d=o.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ti(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Up(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:R0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",o=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[o]:n+=l[i]-c.clientRect[o]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const o=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&o===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Pe.x,this.entered=new Pe.x,this.exited=new Pe.x,this.dropped=new Pe.x,this.sorted=new Pe.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function d1(s=0,r=Kc.z){return s<0&&(s=0),(0,sh.H)(s,s,r)}(0,nm).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ti(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new KM(t),this._sortStrategy=new m1(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ti(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!JM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||JM(c.clientRect,.05,r,e)&&([a,l]=function b1(s,r,e,t){const a=lD(r,t),l=cD(r,e);let c=0,n=0;if(a){const i=s.scrollTop;1===a?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=lD(i,e),l=cD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ti(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ti(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ti(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&I0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!I0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ti(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Oo(ti(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function lD(s,r){const{top:e,bottom:t,height:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function cD(s,r){const{left:e,right:t,width:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const _C=wn({passive:!1,capture:!0});let C1=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new Pe.x,this.pointerUp=new Pe.x,this.scroll=new Pe.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},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,_C)})}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,_C)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"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:_C}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:_C}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,pn.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 s.\u0275fac=function(e){return new(e||s)(h.LFG(h.R0b),h.LFG(T.K0))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const y1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let w1=(()=>{class s{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=y1){return new f1(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _1(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(T.K0),h.LFG(h.R0b),h.LFG($o),h.LFG(C1))},s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),v1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[w1],imports:[$n]}),s})(),A1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[T.ez]}),s})(),x1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),D1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({}),s})(),O1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[D1,We,We]}),s})(),J1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[hi,We,We]}),s})();new h.OlP("mat-selectsearch-default-options");let tV=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[[T.ez,Cs,Wn,Xb,vr,Op,rs]]}),s})(),iV=(()=>{class s extends Gg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(s)))(t||s)}}(),s.\u0275prov=h.Yz7({token:s,factory:s.\u0275fac}),s})();const nV={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 rV=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:iV},{provide:Ju,useValue:nV}],imports:[T.ez,Xb,dC,Sp,D0,v1,Ml,Au,S0,Kn,Op,Fx,vr,na,Wn,rs,is,Cs,S,hi,A1,x1,O1,T0,J1,eh,_l,tV,qa,us,Fh,$M]}),s})();const cB={provide:y.TP,useExisting:(0,h.Gpc)(()=>F_),multi:!0};function dB(s){return new zH(s,"./assets/i18n/",".json")}function uB(s){const r={basePath:s.getProperty("api_url")};return new Oe(r)}const hB=s=>()=>s.loadConfigs();let pB=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(h.LFG(Zh),h.LFG(en))},s.\u0275mod=h.oAB({type:s,bootstrap:[NH]}),s.\u0275inj=h.cJS({providers:[Zh,{provide:h.ip1,useFactory:hB,multi:!0,deps:[$R]},{provide:Oe,useFactory:uB,deps:[ji]},F_,cB,{provide:YR,useClass:Ni},{provide:Cd.Hy,useFactory:()=>localStorage}],imports:[Ca,Ml.forRoot({loader:{provide:xl,useFactory:dB,deps:[y.eN]}}),NR,vr,zR,Zl,y.JF,UR,$M,Fx,_H,Cd.zr.forRoot(),rV]}),s})();(0,h.G48)(),Qe().bootstrapModule(pB).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(h,V){var O={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var V=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 O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.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},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}h.HMAC=j,h.hash=W,h.default=W,h.hmac=Q;var $=new Uint8Array(h.digestLength);h.hkdf=function G(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=G.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(G)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,G,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=G=G||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,G,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,G,te){if(G=G||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),G);else if(I($))O($,G,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,G,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,G,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=U.saveAs=U,F.exports=U}.apply(N,[]))&&(F.exports=h)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),h=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function G(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,h.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=U(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=U(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function U(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),h=x(727);const O=(0,x(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class U extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new Q(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new O}next(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?h.Lc:(this.currentObservers=null,J.push(G),new h.w0(()=>{this.currentObservers=null,(0,I.P)(J,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:ne,isStopped:J}=this;te?G.error(ne):J&&G.complete()}asObservable(){const G=new T.y;return G.source=this,G}}return U.create=($,G)=>new Q($,G),U})();class Q extends W{constructor($,G){super(),this.destination=$,this.source=G}next($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,$)}error($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,$)}complete(){var $,G;null===(G=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===G||G.call($)}_subscribe($){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe($))&&void 0!==te?te:h.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),h=x(727),V=x(2416),O=x(7849),I=x(5032);const j=U("C",void 0,void 0);function U(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),G=x(2806);class te extends h.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,h.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return U("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return U("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(U=>function(G){U(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const J of G)J.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var G;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push($)}}_hasParent($){const{_parentage:G}=this;return G===$||Array.isArray(G)&&G.includes($)}_addParent($){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push($),G):G?[G,$]:$}_removeParent($){const{_parentage:G}=this;G===$?this._parentage=null:Array.isArray(G)&&(0,O.P)(G,$)}remove($){const{_finalizers:G}=this;G&&(0,O.P)(G,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const U=new I;return U.closed=!0,U})();const j=I.EMPTY;function W(U){return U instanceof I||U&&"closed"in U&&(0,T.m)(U.remove)&&(0,T.m)(U.add)&&(0,T.m)(U.unsubscribe)}function Q(U){(0,T.m)(U)?U():U.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),h=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),U=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,h.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function G(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,U.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function h(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>h});const h=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>Ye});var T=x(8421),h=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,h.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,h.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,h.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var U=x(9751),G=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new U.y(Te=>{(0,h.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,h.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new U.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new U.y(Te=>{let oe;return(0,h.f)(Te,Ee,()=>{oe=Se[G.h](),(0,h.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),h=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),U=x(3260),$=x(576),G=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,h.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,G.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,U.L)(we))return function Ve(we){return ge((0,U.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),h=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),U=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,h.Xf)($[0]):(0,T.J)(U)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),h=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,h.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),h=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,h.Xf)(Q[0]):new T.y(function W(Q){return U=>{let $=[];for(let G=0;$&&!U.closed&&G{if($){for(let ne=0;ne<$.length;ne++)ne!==G&&$[ne].unsubscribe();$=null}U.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),h=x(576);function V(O,I){const j=(0,h.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),h=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=h.P){let U=-1;return null!=W&&((0,V.K)(W)?Q=W:U=W),new T.y($=>{let G=(0,O.q)(j)?+j-Q.now():j;G<0&&(G=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=U?this.schedule(void 0,U):$.complete())},G)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>h});var T=x(930);function h(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,U,$){super(I),this.onFinalize=U,this.shouldUnsubscribe=$,this._next=j?function(G){try{j(G)}catch(te){I.error(te)}}:super._next,this._error=Q?function(G){try{Q(G)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(G){I.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),h=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,U=!1;Q=j.subscribe((0,h.x)(W,void 0,void 0,G=>{$=(0,T.Xf)(I(G,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):U=!0})),U&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),h=x(576);function V(O,I){return(0,h.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),h=x(4482),V=x(5403);function O(I,j=T.z){return(0,h.e)((W,Q)=>{let U=null,$=null,G=null;const te=()=>{if(U){U.unsubscribe(),U=null;const J=$;$=null,Q.next(J)}};function ne(){const J=G+I,ie=j.now();if(ie{$=J,G=j.now(),U||(U=j.schedule(ne,I),Q.add(U))},()=>{te(),Q.complete()},void 0,()=>{$=U=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),h=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,h.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),h=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),U=x(5577);function $(ne,J){return J?ie=>(0,h.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,U.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var G=x(2805);function te(ne,J=T.z){const ie=(0,G.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,U=>O.call(I,U,Q++)&&W.next(U)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),h=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,U){const $=arguments.length>=2;return G=>G.pipe(Q?(0,h.h)((te,ne)=>Q(te,ne,G)):j.y,(0,V.q)(1),$?(0,O.d)(U):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,U=>{W.next(O.call(I,U,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>h});var T=x(4004);function h(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),h=x(4671);function V(O=1/0){return(0,T.z)(h.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),h=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(U,$,G=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,h.Xf)(U(te,ne))),G):("number"==typeof $&&(G=$),(0,V.e)((te,ne)=>function j(U,$,G,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,h.Xf)(G(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return U.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,U,G)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),h=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new h.x),resetOnError:U=!0,resetOnComplete:$=!0,resetOnRefCountZero:G=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,G))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,U,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...U){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...U).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),h=x(4482),V=x(5403);function O(I,j){return(0,h.e)((W,Q)=>{let U=null,$=0,G=!1;const te=()=>G&&!U&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{U?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(U=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{U=null,te()}))},()=>{G=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),h=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,h.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,U=>{++Q<=I&&(W.next(U),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),h=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const U=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return U?(0,h.e)(($,G)=>{var te;null===(te=U.subscribe)||void 0===te||te.call(U);let ne=!0;$.subscribe((0,V.x)(G,J=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,J),G.next(J)},()=>{var J;ne=!1,null===(J=U.complete)||void 0===J||J.call(U),G.complete()},J=>{var ie;ne=!1,null===(ie=U.error)||void 0===ie||ie.call(U,J),G.error(J)},()=>{var J,ie;ne&&(null===(J=U.unsubscribe)||void 0===J||J.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),h=x(4482),V=x(5403);function O(j=I){return(0,h.e)((W,Q)=>{let U=!1;W.subscribe((0,V.x)(Q,$=>{U=!0,Q.next($)},()=>U?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>U});var T=x(4986),h=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(G=>function(ne=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function U(G,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,h.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(G){throw new Q(G)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class h extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:U}=V;return U?.setInterval?U.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends h{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const U=this.id,$=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId($,U,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,U=0){return V.setInterval(W.flush.bind(W,this),U)}recycleAsyncId(W,Q,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(W,Q);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,U=!1;try{this.work(W)}catch(G){U=!0,$=G||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:U}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(U,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class h{constructor(I,j=h.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}h.now=T.l.now;class V extends h{constructor(I,j=h.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(h,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(h,V,...O):setTimeout(h,V,...O)},clearTimeout(h){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>h});const h=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>h});const h=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),h=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,h.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:h,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&h(W)===V}(Q)){const U=O(Q);return{args:U.map($=>Q[$]),keys:U}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(h,V){if(h){const O=h.indexOf(V);0<=O&&h.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(h){const O=h(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(h,V){return h.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let h=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!h;if(j&&(h={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=h;if(h=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=I)}},9672:(F,N,x)=>{"use strict";function T(h,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?h.add(this.schedule(null,I)):this.unsubscribe()},I);if(h.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(h){return h}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>h});var T=x(576);function h(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(h){return h instanceof Date&&!isNaN(h)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(h){return"function"==typeof h}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),h=x(576);function V(O){return(0,h.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),h=x(576);function V(O){return(0,h.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>h});var T=x(576);function h(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),h=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:U}=yield(0,T.qq)(W.read());if(U)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,h.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>h});var T=x(576);function h(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>h,e:()=>V});var T=x(576);function h(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(h(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:h}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return h(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>h});var T=x(4671);function h(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),h=x(3410);function V(O){h.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ti){try{Le(ue.next(Ti))}catch(Dn){ot(Dn)}}function It(Ti){try{Le(ue.throw(Ti))}catch(Dn){ot(Dn)}}function Le(Ti){Ti.done?Me(Ti.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ti.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Gt){ue[Gt]&&(Re[Gt]=function(Dt){return new Promise(function(mn,ai){Me.push([Gt,Dt,mn,ai])>1||Tt(Gt,Dt)})})}function Tt(Gt,Dt){try{!function It(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,Ti):Dn(Me[0][2],Gt)}(ue[Gt](Dt))}catch(mn){Dn(Me[0][3],mn)}}function Le(Gt){Tt("next",Gt)}function Ti(Gt){Tt("throw",Gt)}function Dn(Gt,Dt){Gt(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Be,EM:()=>xa,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>Yd,NF:()=>Ss,O5:()=>Di,Ov:()=>Xp,PC:()=>Zp,RF:()=>kr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>Zt,ez:()=>sn,mk:()=>Kl,n9:()=>Ji,q:()=>V,sg:()=>an,w_:()=>j});var T=x(4650);let h=null;function V(){return h}function I(M){h||(h=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function U(){return(0,T.LFG)(G)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let G=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new G((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Yd(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Kl=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,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 D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class sr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 an=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new sr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ge=B.get(pe);B.move(Ge,le),mi(Ge,ee)}});for(let ee=0,pe=B.length;ee{mi(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function mi(M,k){M.context.$implicit=k.item}let Di=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new on,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Ts("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Ts("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class on{constructor(){this.$implicit=null,this.ngIf=null}}function Ts(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Aa{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,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 kr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Aa(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(kr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),Zp=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class vC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class AC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const xC=new AC,TC=new vC;let Xp=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return xC;if((0,T.F4k)(D))return TC;throw function bn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),sn=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Zt="browser";function Ss(M){return M===Zt}let xa=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,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 D=function cn(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Wd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),h=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class U{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(ye){return encodeURIComponent(ye).replace(J,(Y,q)=>ie[q]??Y)}function he(ye){return`${ye}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(ye,Y){const q=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function ve(ye){return typeof Blob<"u"&&ye instanceof Blob}function Ye(ye){return typeof FormData<"u"&&ye instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeQi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Jt=Object.keys(Y.setParams).reduce((Qi,tt)=>Qi.set(tt,Y.setParams[tt]),Jt)),new Ee(q,ce,et,{params:Jt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(ye,Y){return{body:Y,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Me=(()=>{class ye{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Jt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Jt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Jt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return ye.\u0275fac=function(q){return new(q||ye)(h.LFG(Q))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new h.OlP("HTTP_INTERCEPTORS");let It=(()=>{class ye{intercept(q,ce){return ce.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const mo=/^\)\]\}',?\n/;let _o=(()=>{class ye{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),rn=function qd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:rn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:rn,url:Mr}=Ne(),fi=null;204!==kt&&(fi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=fi?200:0);let Dr=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof fi){const Hr=fi;fi=fi.replace(mo,"");try{fi=""!==fi?JSON.parse(fi):null}catch(ya){fi=Hr,Dr&&(Dr=!1,fi={error:ya,text:fi})}}Dr?(ce.next(new fe({body:fi,headers:Ht,status:kt,statusText:rn,url:Mr||void 0})),ce.complete()):ce.error(new ue({error:fi,headers:Ht,status:kt,statusText:rn,url:Mr||void 0}))},Jt=Ht=>{const{url:kt}=Ne(),rn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(rn)};let vt=!1;const Qi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Jt),xe.addEventListener("timeout",Jt),xe.addEventListener("abort",Jt),q.reportProgress&&(xe.addEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Jt),xe.removeEventListener("abort",Jt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Jt),q.reportProgress&&(xe.removeEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return ye.\u0275fac=function(q){return new(q||ye)(h.LFG(T.JF))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Hn=new h.OlP("XSRF_COOKIE_NAME"),Pn=new h.OlP("XSRF_HEADER_NAME");class _a{}let bo=(()=>{class ye{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return ye.\u0275fac=function(q){return new(q||ye)(h.LFG(T.K0),h.LFG(h.Lbi),h.LFG(Hn))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Qe=(()=>{class ye{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)(h.LFG(_a),h.LFG(Pn))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),di=(()=>{class ye{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return ye.\u0275fac=function(q){return new(q||ye)(h.LFG(U),h.LFG(h.zs3))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ca=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:ye,providers:[q.cookieName?{provide:Hn,useValue:q.cookieName}:[],q.headerName?{provide:Pn,useValue:q.headerName}:[]]}}}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:_a,useClass:bo},{provide:Hn,useValue:"XSRF-TOKEN"},{provide:Pn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Wd=(()=>{class ye{}return ye.\u0275fac=function(q){return new(q||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[Me,{provide:Q,useClass:di},_o,{provide:U,useExisting:_o}],imports:[Ca.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>hc,$Z:()=>Bw,AFp:()=>ax,ALo:()=>OA,AaK:()=>Q,AsE:()=>$m,BQk:()=>mh,CHM:()=>Pi,CRH:()=>Kh,CZH:()=>dp,CqO:()=>Am,D6c:()=>Sp,Dn7:()=>jA,EJc:()=>up,EiD:()=>Jf,EpF:()=>es,F$t:()=>Mm,F4k:()=>rd,FYo:()=>Uy,FiY:()=>Ro,G48:()=>wx,Gf:()=>B_,GfV:()=>$y,GkF:()=>id,Gpc:()=>G,Hsn:()=>Dm,Ikx:()=>e_,JOm:()=>gr,JVY:()=>wy,KtG:()=>Bn,L6k:()=>vy,LAX:()=>mu,LFG:()=>li,LSH:()=>xu,Lbi:()=>sx,Lck:()=>AA,MAs:()=>fh,MMx:()=>io,NdJ:()=>_h,O4$:()=>cf,OlP:()=>At,Oqu:()=>Wm,PXZ:()=>Fl,Q6J:()=>Fe,QGY:()=>nd,QP$:()=>tn,QbO:()=>kl,Qsj:()=>qy,R0b:()=>Vi,RDi:()=>gy,Rgc:()=>bd,SBq:()=>Qr,Sil:()=>lb,Suo:()=>wd,TTD:()=>ui,TgZ:()=>_t,Udp:()=>Nm,VKq:()=>RA,WFA:()=>bh,XFs:()=>Qe,Xpm:()=>rn,Xts:()=>Eu,Y36:()=>al,YKP:()=>x_,YNc:()=>wt,Yjl:()=>Ql,Yz7:()=>Dt,ZZ4:()=>Ep,_Bn:()=>A_,_UZ:()=>Xo,_Vd:()=>Fa,_c5:()=>xS,_uU:()=>Rv,aQg:()=>Ld,c2e:()=>Dd,cJS:()=>ai,cg1:()=>Mh,d8E:()=>t_,dDg:()=>gx,dqk:()=>ce,eBb:()=>Ay,eFA:()=>gb,ekj:()=>zm,eoX:()=>gp,f3M:()=>Mf,g9A:()=>rb,h0i:()=>ds,hGG:()=>Vb,hij:()=>Eh,iGM:()=>V_,ifc:()=>q,ip1:()=>rx,kL8:()=>iA,kcU:()=>df,lG2:()=>$d,lcZ:()=>LA,lqb:()=>vi,lri:()=>hb,mCW:()=>Ys,n5z:()=>ru,n_E:()=>Wh,oAB:()=>Hr,oJD:()=>Kf,oxw:()=>Sm,pB0:()=>Gf,q3G:()=>Xt,qLn:()=>Vc,qOj:()=>Xc,qZA:()=>gh,qzn:()=>Oa,rWj:()=>fx,s9C:()=>Ch,sBO:()=>Cp,sIi:()=>hl,s_b:()=>$h,soG:()=>ca,tb:()=>ab,tp0:()=>Va,uIk:()=>br,vHH:()=>ie,vpe:()=>Ar,wAp:()=>Ke,xi3:()=>FA,xp6:()=>Lu,ynx:()=>Za,z2F:()=>ms,z3N:()=>Nn,zSh:()=>ig,zs3:()=>Un});var T=x(7579),h=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function U(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function G(p){return p.__forward_ref__=G,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===G}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function It(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function ai(p){return{providers:p.providers||[],imports:p.imports||[]}}function Sr(p){return Yl(p,Hn)||Yl(p,_a)}function Yl(p,g){return p.hasOwnProperty(g)?p[g]:null}function _o(p){return p&&(p.hasOwnProperty(Pn)||p.hasOwnProperty(bo))?p[Pn]:null}const Hn=j({\u0275prov:j}),Pn=j({\u0275inj:j}),_a=j({ngInjectableDef:j}),bo=j({ngInjectorDef:j});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 di;function Ei(p){const g=di;return di=p,g}function Ca(p,g,m){const _=Sr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(p))}function _n(p){return{toString:p}.toString()}var bi=(()=>((bi=bi||{})[bi.OnPush=0]="OnPush",bi[bi.Default=1]="Default",bi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Jt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Qi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function rn(p){return _n(()=>{const m=!0===p.standalone,_={},C={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===bi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+kt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=Co(p.inputs,_),C.outputs=Co(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(fi).filter(Dr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Mi).filter(Dr):null,C})}function fi(p){return Et(p)||Si(p)}function Dr(p){return null!==p}function Hr(p){return _n(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function Co(p,g){if(null==p)return ct;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const $d=rn;function Ql(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Si(p){return p[Jt]||null}function Mi(p){return p[vt]||null}function zi(p,g){const m=p[Qi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return m}function Di(p){return Array.isArray(p)&&"object"==typeof p[1]}function on(p){return Array.isArray(p)&&!0===p[1]}function Ts(p){return 0!=(8&p.flags)}function Aa(p){return 2==(2&p.flags)}function kr(p){return 1==(1&p.flags)}function Ji(p){return null!==p.template}function Jp(p){return 0!=(256&p[2])}function De(p,g){return p.hasOwnProperty(tt)?p[tt]:null}class Pe{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function ui(){return Ao}function Ao(p){return p.type.prototype.ngOnChanges&&(p.setInput=Vr),Es}function Es(){const p=Vn(this),g=p?.current;if(g){const m=p.previous;if(m===ct)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function Vr(p,g,m,_){const C=Vn(p)||function Br(p,g){return p[Hi]=g}(p,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Pe(S&&S.currentValue,g,v===ct),p[_]=g}ui.ngInherit=!0;const Hi="__ngSimpleChanges__";function Vn(p){return p[Hi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function xa(p,g){return ze(g[p])}function Vt(p,g){return ze(g[p.index])}function cn(p,g){return p.data[g]}function Ui(p,g){return p[g]}function Ct(p,g){const m=g[p];return Di(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Zd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function Ce(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(p){return le.lFrame.contextLView=p,p[8]}function Bn(p){return le.lFrame.contextLView=null,p}function qt(){let p=Ta();for(;null!==p&&64===p.type;)p=p.parent;return p}function Ta(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function Cn(){return le.lFrame.isParent}function Ms(){le.lFrame.isParent=!1}function Li(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function Sa(){return le.lFrame.bindingIndex++}function Ln(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,Jd(g)}function Jd(p){le.lFrame.currentDirectiveIndex=p}function lr(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function rf(){return le.lFrame.currentQueryIndex}function tc(p){le.lFrame.currentQueryIndex=p}function Kd(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function af(p,g,m){if(m&Qe.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Kd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=To();return _.currentTNode=g,_.lView=p,!0}function xo(p){const g=To(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function To(){const p=le.lFrame,g=null===p?null:p.child;return null===g?Zd(p):g}function Zd(p){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function Ps(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const sf=Ps;function Rs(){const p=Ps();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 Ri(){return le.lFrame.selectedIndex}function Lr(p){le.lFrame.selectedIndex=p}function Qt(){const p=le.lFrame;return cn(p.tView,p.selectedIndex)}function cf(){le.lFrame.currentNamespace="svg"}function df(){!function IC(){le.lFrame.currentNamespace=null}()}function rc(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function Eo(p,g,m){Fr(p,g,3,m)}function Ma(p,g,m,_){(3&p[2])===m&&Fr(p,g,m,_)}function Xd(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function Fr(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Is{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function dr(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let tu=!0;function Vs(p){const g=tu;return tu=p,g}let Nr=0;const Ki={};function Bs(p,g){const m=nu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,iu(_.data,p),iu(g,null),iu(_.blueprint,null));const C=sc(p,g),w=p.injectorIndex;if(ac(C)){const v=Fn(C),E=jr(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function iu(p,g){p.push(0,0,0,0,0,0,0,0,g)}function nu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function sc(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=ur(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function lc(p,g,m){!function gf(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=Nr++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Mo:g}(m);if("function"==typeof w){if(!af(g,p,_))return _&Qe.Host?mf(C,0,_):_f(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{sf()}}else if("number"==typeof w){let v=null,E=nu(p,g),S=-1,P=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?sc(p,g):g[E+8],-1!==S&&dc(_,!1)?(v=g[1],E=Fn(S),g=jr(S,g)):E=-1);-1!==E;){const R=g[1];if(cc(w,E,R.data)){const L=GC(E,g,m,v,_,P);if(L!==Ki)return L}S=g[E+8],-1!==S&&dc(_,g[1].data[E+8]===P)&&cc(w,E,g)?(v=R,E=Fn(S),g=jr(S,g)):E=-1}}return C}function GC(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Os(E,v,m,null==_?Aa(E)&&tu:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Ls(g,v,R,E):Ki}function Os(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Ji(re)&&re.type===m)return S}return null}function Ls(p,g,m,_){let C=p[m];const w=g.data;if(function BC(p){return p instanceof Is}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=Vs(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ei(v.injectImpl):null;af(p,_,Qe.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function VC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Ao(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Ei(S),Vs(E),v.resolving=!1,sf()}}return C}function cc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[tt]||uc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||uc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function uc(p){return ne(p)?()=>{const g=uc(te(p));return g&&g()}:De(p)}function ur(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function hc(p){return function zC(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(hf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const hr="__parameters__";function zr(p,g,m){return _n(()=>{const _=function fc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(hr)?S[hr]:Object.defineProperty(S,hr,{value:[]})[hr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function dn(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?Gr(m,g):g(m))}function KC(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function su(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Ra(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function XC(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function cu(p,g){const m=Ho(p,g);if(m>=0)return p[1|m]}function Ho(p,g){return function Ns(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return vc}()?.createHTML(p)||p}function jf(p){return function xc(){if(void 0===$s&&($s=null,ce.trustedTypes))try{$s=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $s}()?.createHTML(p)||p}class Ba{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _y extends Ba{getTypeName(){return"HTML"}}class by extends Ba{getTypeName(){return"Style"}}class Cy extends Ba{getTypeName(){return"Script"}}class zf extends Ba{getTypeName(){return"URL"}}class gu extends Ba{getTypeName(){return"ResourceURL"}}function Nn(p){return p instanceof Ba?p.changingThisBreaksApplicationSecurity:p}function Oa(p,g){const m=function yy(p){return p instanceof Ba&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function wy(p){return new _y(p)}function vy(p){return new by(p)}function Ay(p){return new Cy(p)}function mu(p){return new zf(p)}function Gf(p){return new gu(p)}class _u{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(ko(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class xy{constructor(g){if(this.defaultDoc=g,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(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=ko(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=ko(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0Ys(g.trim())).join(", ")),this.buf.push(" ",v,'="',wu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();Cu.hasOwnProperty(m)&&!_i.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(wu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const K0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qf=/([^\#-~ |!])/g;function wu(p){return p.replace(/&/g,"&").replace(K0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Qf,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Dc;function Jf(p,g){let m=null;try{Dc=Dc||function Ec(p){const g=new xy(p);return function Ty(){try{return!!(new window.DOMParser).parseFromString(ko(""),"text/html")}catch{return!1}}()?new _u(g):g}(p);let _=g?String(g):"";m=Dc.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=Dc.getInertBodyElement(_)}while(_!==w);return ko((new Wr).sanitizeChildren(vu(m)||m))}finally{if(m){const _=vu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function vu(p){return"content"in p&&function Au(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function Kf(p){const g=Qs();return g?jf(g.sanitize(Xt.HTML,p)||""):Oa(p,"HTML")?jf(Nn(p)):Jf(function Of(){return void 0!==fu?fu:typeof document<"u"?document:void 0}(),he(p))}function xu(p){const g=Qs();return g?g.sanitize(Xt.URL,p)||"":Oa(p,"URL")?Nn(p):Ys(he(p))}function Qs(){const p=Ce();return p&&p[12]}const Eu=new At("ENVIRONMENT_INITIALIZER"),tg=new At("INJECTOR",-1),Iy=new At("INJECTOR_DEF_TYPES");class Hc{get(g,m=Gs){if(m===Gs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ei(...p){return{\u0275providers:ky(0,p)}}function ky(p,...g){const m=[],_=new Set;let C;return Gr(g,w=>{const v=w;Pc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&La(C,m),m}function La(p,g){for(let m=0;m{g.push(w)})}}function Pc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=_o(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=_o(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Pc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Gr(w.imports,R=>{Pc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&La(P,g)}if(!E){const P=De(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:Iy,useValue:C,multi:!0},{provide:Eu,useValue:()=>li(C),multi:!0})}const S=w.providers;null==S||E||Gr(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const Js=j({provide:String,useValue:j});function Su(p){return null!==p&&"object"==typeof p&&Js in p}function Zi(p){return"function"==typeof p}const ig=new At("Set Injector scope."),Bo={},Oy={};let Oo;function Lo(){return void 0===Oo&&(Oo=new Hc),Oo}class vi{}class Rc extends vi{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ag(g,v=>this.processProvider(v)),this.records.set(tg,$r(void 0,this)),C.has("environment")&&this.records.set(vi,$r(void 0,this));const w=this.records.get(ig);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Iy.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=pr(this),_=Ei(void 0);try{return g()}finally{pr(m),Ei(_)}}get(g,m=Gs,_=Qe.Default){this.assertNotDestroyed();const C=pr(this),w=Ei(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Ny(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&Sr(g);E=S&&this.injectableDefInScope(S)?$r(ng(g),Bo):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?Lo():this.parent).get(g,m=_&Qe.Optional&&m===Gs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[_c]=v[_c]||[]).unshift(Q(g)),C)throw v;return function ly(p,g,m,_){const C=p[_c];throw g[Ef]&&C.unshift(g[Ef]),p.message=function cy(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(oy,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[_c]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Ei(w),pr(C)}}resolveInjectorInitializers(){const g=pr(this),m=Ei(void 0);try{const _=this.get(Eu.multi,Ne,Qe.Self);for(const C of _)C()}finally{pr(g),Ei(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Zi(g=te(g))?g:te(g&&g.provide);const _=function rg(p){return Su(p)?$r(void 0,p.useValue):$r(Ly(p),Bo)}(g);if(Zi(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=$r(void 0,Bo,!0),C.factory=()=>uu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Bo&&(m.value=Oy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function jy(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ng(p){const g=Sr(p),m=null!==g?g.factory:De(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Mu(p){const g=p.length;if(g>0)throw Ra(g,"?"),new ie(204,!1);const m=function mo(p){const g=p&&(p[Hn]||p[_a]);if(g){const m=function qd(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);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.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function Ly(p,g,m){let _;if(Zi(p)){const C=te(p);return De(C)||ng(C)}if(Su(p))_=()=>te(p.useValue);else if(function Ks(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...uu(p.deps||[]));else if(function wn(p){return!(!p||!p.useExisting)}(p))_=()=>li(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function Fy(p){return!!p.deps}(p))return De(C)||ng(C);_=()=>new C(...uu(p.deps))}return _}function $r(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function X0(p){return!!p.\u0275providers}function ag(p,g){for(const m of p)Array.isArray(m)?ag(m,g):X0(m)?ag(m.\u0275providers,g):g(m)}class kc{}class Gy{resolveComponentFactory(g){throw function eT(p){const g=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let Fa=(()=>{class p{}return p.NULL=new Gy,p})();function Du(){return Yr(qt(),Ce())}function Yr(p,g){return new Qr(Vt(p,g))}let Qr=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Du,p})();function iT(p){return p instanceof Qr?p.nativeElement:p}class Uy{}let qy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Wy(){const p=Ce(),m=Ct(qt().index,p);return(Di(m)?m:p)[11]}(),p})(),nT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class $y{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const rT=new $y("14.1.2"),og={};function ug(p){return p.ngOriginalError}class Vc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&ug(g);for(;m&&ug(m);)m=ug(m);return m||null}}const hg=new Map;let _T=0;const fg="__ngContext__";function Fi(p,g){Di(g)?(p[fg]=g[20],function CT(p){hg.set(p[20],p)}(g)):p[fg]=g}function Bc(p){const g=p[fg];return"number"==typeof g?function ew(p){return hg.get(p)||null}(g):g||null}function gg(p){const g=Bc(p);return g?Di(g)?g:g.lView:null}const ET=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function Jr(p){return p instanceof Function?p():p}var gr=(()=>((gr=gr||{})[gr.Important=1]="Important",gr[gr.DashCase=2]="DashCase",gr))();function _g(p,g){return undefined(p,g)}function Oc(p){const g=p[3];return on(g)?g[3]:g}function bg(p){return dw(p[13])}function Cg(p){return dw(p[4])}function dw(p){for(;null!==p&&!on(p);)p=p[4];return p}function Xs(p,g,m,_,C){if(null!=_){let w,v=!1;on(_)?w=_:Di(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?at(g,m,E):ft(g,m,E,C||null,!0):1===p&&null!==m?ft(g,m,E,C||null,!0):2===p?function Eg(p,g,m){const _=Wt(p,g);_&&function fw(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Dg(p,g,m,_,C){const w=m[7];w!==ze(m)&&Xs(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=su(p,10+g);!function BT(p,g){jo(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Gn(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&jo(p,g,m,3,null,null),function FT(p){let g=p[13];if(!g)return el(p[1],p);for(;g;){let m=null;if(Di(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Di(g)&&el(g[1],g),g=g[3];null===g&&(g=p),Di(g)&&el(g[1],g),m=g&&g[4]}g=m}}(g)}}function el(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function pw(p,g){let m;if(null!=p&&null!=(m=p.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++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&on(g[3])){m!==g[3]&&hw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function tw(p){hg.delete(p[20])}(g)}}function Ag(p,g,m){return function xg(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(p,g.parent,m)}function ft(p,g,m,_,C){p.insertBefore(g,m,_,C)}function at(p,g,m){p.appendChild(g,m)}function un(p,g,m,_,C){null!==_?ft(p,g,m,_,C):at(p,g,m)}function Wt(p,g){return p.parentNode(g)}function gw(p,g,m){return Tg(p,g,m)}let Tg=function Ru(p,g,m){return 40&p.type?Vt(p,m):null};function Iu(p,g,m,_){const C=Ag(p,_,g),w=g[11],E=gw(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==_w(re,P,0)||2&_&&P!==X){if(vn(_))return!1;v=!0}}}}else{if(!v&&!vn(_)&&!vn(S))return!1;if(v&&vn(S))continue;v=!1,_=S|1&_}}return vn(_)||v}function vn(p){return 0==(1&p)}function zT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!vn(v)&&(g+=Ig(w,C),C=""),_=v,w=w||!vn(_);m++}return""!==C&&(g+=Ig(w,C)),g}const st={};function Lu(p){Fu(ut(),Ce(),Ri()+p,!1)}function Fu(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&Eo(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Ma(g,w,0,m)}Lr(m)}function Sw(p,g=null,m=null,_){const C=Mw(p,g,m,_);return C.resolveInjectorInitializers(),C}function Mw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,ei(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Rc(w,g||Lo(),_||null,C)}let Un=(()=>{class p{static create(m,_){if(Array.isArray(m))return Sw({name:""},_,m,"");{const C=m.name??"";return Sw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=Gs,p.NULL=new Hc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>li(tg)}),p.__NG_ELEMENT_ID__=-1,p})();function al(p,g=Qe.Default){const m=Ce();return null===m?li(p,g):bf(qt(),m,te(p),g)}function Bw(){throw new Error("invalid")}function Gc(p,g){return p<<17|g<<2}function An(p){return p>>17&32767}function We(p){return 2|p}function Zr(p){return(131068&p)>>2}function zg(p,g){return-131069&p|g<<2}function Na(p){return 1|p}function Jw(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&Fu(p,g,22,!1),m(_,C)}finally{Lr(w)}}function Wn(p,g,m){if(Ts(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function sm(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function lm(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function Jc(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&um(m)}}function um(p){for(let _=bg(p);null!==_;_=Cg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];ll(v,w,v.template,w[8])}else w[5]>0&&um(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&um(C)}}function cE(p,g){const m=Ct(g,p),_=m[1];(function rv(p,g){for(let m=g.length;mPromise.resolve(null))();function sv(p){return p[7]||(p[7]=[])}function lv(p){return p.cleanup||(p.cleanup=[])}function $n(p,g,m){return(null===p||Ji(p))&&(m=function yi(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function qa(p,g){const m=p[9],_=m?m.get(Vc,null):null;_&&_.handleError(g)}function gm(p,g,m,_,C){for(let w=0;w-1&&(Hu(g,_),su(m,_))}this._attachedToViewContainer=!1}Gn(this._lView[1],this._lView)}onDestroy(g){rh(this._lView[1],this._lView,null,g)}markForCheck(){hm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function pm(p,g,m){const _=g[10];_.begin&&_.begin();try{ll(p,g,p.template,m)}catch(C){throw qa(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LT(p,g){jo(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class uE extends Zc{constructor(g){super(g),this._view=g}detectChanges(){ov(this._view)}checkNoChanges(){}get context(){return null}}class dl extends Fa{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new Wa(m,this.ngModule)}}function ul(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class cv{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,og,_);return C!==og||m===og?C:this.parentInjector.get(g,m,_)}}class Wa extends kc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function vw(p){return p.map(ww).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return ul(this.componentDef.inputs)}get outputs(){return ul(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof vi?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new cv(g,w):g,E=v.get(Uy,null);if(null===E)throw new ie(407,!1);const S=v.get(nT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function Yc(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):wg(E.createRenderer(null,this.componentDef),R,function dh(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function mE(p,g){return{components:[],scheduler:p||ET,clean:dE,playerHandler:g||null,flags:0}}(),me=nh(0,null,null,1,0,null,null,null,null,null),Ae=Wc(null,me,re,X,null,null,E,P,S,v,null);let He,je;xo(Ae);try{const Ze=function gE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=Uo(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(lh(S,P,!0),null!==p&&(dr(C,p,P),null!==S.classes&&No(C,p,S.classes),null!==S.styles&&Hg(C,p,S.styles)));const R=_.createRenderer(p,g),L=Wc(m,ih(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(lc(Bs(S,m),v,g.type),lm(v,S),cm(S,m.length,1)),cl(m,L),m[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)dr(P,L,["ng-version",rT.full]);else{const{attrs:be,classes:$e}=function Aw(p){const g=[],m=[];let _=1,C=2;for(;_0&&No(P,L,$e.join(" "))}if(je=cn(me,22),void 0!==m){const be=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=ks(C.hostAttrs,m=ks(m,C.hostAttrs))}}(_)}function mm(p){return p===ct?{}:p===Ne?[]:p}function uv(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function _m(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function hh(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Yo=null;function Qo(){if(!Yo){const p=ce.Symbol;if(p&&p.iterator)Yo=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function yv(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Em(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,be,Ze,Ze+1)}}else w=Em(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const He=Ae.length;if(He)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function wv(p,g){let m=null;const _=function GT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}function Nm(p,g,m){return Qn(p,g,m,!1),Nm}function zm(p,g){return Qn(p,g,null,!0),zm}function Qn(p,g,m,_){const C=Ce(),w=ut(),v=Ln(2);w.firstUpdatePass&&function Dv(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Ri()],v=function Mv(p,g){return g>=p.expandoStartIndex}(p,m);(function qm(p,g){return 0!=(p.flags&(g?16:32))})(w,_)&&null===g&&!v&&(g=!1),g=function vE(p,g,m,_){const C=lr(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=ns(m=Gm(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=Gm(C,p,g,m,_),null===w){let S=function AE(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Zr(_))return p[An(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=Gm(null,p,g,S[1],_),S=ns(S,g.attrs,_),function xE(p,g,m,_){p[An(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function TE(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=An(p[E+1]);p[_+1]=Gc(X,E),0!==X&&(p[X+1]=zg(p[X+1],_)),p[E+1]=function Ow(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=Gc(E,0),0!==E&&(p[E+1]=zg(p[E+1],_)),E=_;else p[_+1]=Gc(S,0),0===E?E=_:p[S+1]=zg(p[S+1],_),S=_;P&&(p[_+1]=We(p[_+1])),Vm(p,R,_,!0),Vm(p,R,_,!1),function wE(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&Ho(w,g)>=0&&(m[_+1]=Na(m[_+1]))}(g,R,p,_,w),v=Gc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}(w,p,v,_),g!==st&&ci(C,v,g)&&function Pv(p,g,m,_,C,w,v,E){if(!(3&g.type))return;const S=p.data,P=S[E+1];ad(function Lw(p){return 1==(1&p)}(P)?Um(S,g,m,C,Zr(P),v):void 0)||(ad(w)||function Ng(p){return 2==(2&p)}(P)&&(w=Um(S,null,m,C,E,v)),function mw(p,g,m,_,C){if(g)C?p.addClass(m,_):p.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:gr.DashCase;null==C?p.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=gr.Important),p.setStyle(m,_,C,w))}}(_,v,xa(Ri(),m),C,w))}(w,w.data[Ri()],C,C[11],p,C[v+1]=function ME(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Q(Nn(p)))),p}(g,m),_,v)}function Gm(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?cu(X,_):R===_?X:void 0;if(P&&!ad(re)&&(re=cu(S,_)),ad(re)&&(E=re,v))return E;const me=p[C+1];C=v?An(me):Zr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=cu(S,_))}return E}function ad(p){return void 0!==p}function Rv(p,g=""){const m=Ce(),_=ut(),C=p+22,w=_.firstCreatePass?Uo(_,C,1,g,null):_.data[C],v=m[C]=function yg(p,g){return p.createText(g)}(m[11],g);Iu(_,m,v,w),Ot(w,!1)}function Wm(p){return Eh("",p,""),Wm}function Eh(p,g,m){const _=Ce(),C=Ya(_,p,g,m);return C!==st&&Xr(_,Ri(),C),Eh}function $m(p,g,m,_,C){const w=Ce(),v=pl(w,p,g,m,_,C);return v!==st&&Xr(w,Ri(),v),$m}function e_(p,g,m){const _=Ce();return ci(_,Sa(),g)&&Ai(ut(),Qt(),_,p,g,_[11],m,!0),e_}function t_(p,g,m){const _=Ce();if(ci(_,Sa(),g)){const w=ut(),v=Qt();Ai(w,v,_,p,g,$n(lr(w.data),v,_),m,!0)}return t_}const Kn=void 0;var eA=["en",[["a","p"],["AM","PM"],Kn],[["AM","PM"],Kn,Kn],[["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"]],Kn,[["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"]],Kn,[["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}",Kn,"{1} 'at' {0}",Kn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function i_(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let as={};function Mh(p){const g=function IE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=nA(g);if(m)return m;const _=g.split("-")[0];if(m=nA(_),m)return m;if("en"===_)return eA;throw new ie(701,!1)}function iA(p){return Mh(p)[Ke.PluralCase]}function nA(p){return p in as||(as[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),as[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const bl="en-US";let n_=bl;function Gh(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(Zi(p)||!p.multi){const re=new Is(S,C,al),me=qh(E,g,C?R:R+X,L);-1===me?(lc(Bs(P,v),w,E),Uh(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=qh(E,g,R+X,L),me=qh(E,g,R,R+X),Ae=re>=0&&m[re],He=me>=0&&m[me];if(C&&!He||!C&&!Ae){lc(Bs(P,v),w,E);const je=function zE(p,g,m,_,C){const w=new Is(p,m,al);return w.multi=[],w.index=g,w.componentProviders=0,oa(w,C,_&&!m),w}(C?vA:v_,m.length,C,_,S);!C&&He&&(m[me].providerFactory=je),Uh(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else Uh(w,p,re>-1?re:me,oa(m[C?me:re],S,!C&&_));!C&&_&&He&&m[me].componentProviders++}}}function Uh(p,g,m,_){const C=Zi(g),w=function By(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function oa(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function qh(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function v_(p,g,m,_){return pd(this.multi,[])}function vA(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Ls(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),pd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Hl(p,g,m){const _=ut();if(_.firstCreatePass){const C=Ji(p);Gh(m,_.data,_.blueprint,C,!0),Gh(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class ds{}class x_{}function AA(p,g){return new T_(p,g??null)}class T_ extends ds{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new dl(this);const _=zi(g);this._bootstrapComponents=Jr(_.bootstrap),this._r3Injector=Mw(g,m,[{provide:ds,useValue:this},{provide:Fa,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class E_ extends x_{constructor(g){super(),this.moduleType=g}create(g){return new T_(this.moduleType,g)}}class fd extends ds{constructor(g,m,_){super(),this.componentFactoryResolver=new dl(this),this.instance=null;const C=new Rc([...g,{provide:ds,useValue:this},{provide:Fa,useValue:this.componentFactoryResolver}],m||Lo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function io(p,g,m=null){return new fd(p,g,m).injector}function RA(p,g,m,_){return M_(Ce(),Li(),p,g,m,_)}function md(p,g){const m=p[g];return m===st?void 0:m}function M_(p,g,m,_,C,w){const v=g+m;return ci(p,v,C)?Yn(p,v+1,w?_.call(w,C):_(C)):md(p,v+1)}function H_(p,g,m,_,C,w,v,E){const S=g+m;return function td(p,g,m,_,C){const w=ia(p,g,m,_);return ci(p,g+2,C)||w}(p,S,C,w,v)?Yn(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):md(p,S+3)}function OA(p,g){const m=ut();let _;const C=p+22;m.firstCreatePass?(_=function iS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Ei(al);try{const E=Vs(!1),S=w();return Vs(E),function vm(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,Ce(),C,S),S}finally{Ei(v)}}function LA(p,g,m){const _=p+22,C=Ce(),w=Ui(C,_);return _d(C,_)?M_(C,Li(),g,w.transform,m,w):w.transform(m)}function FA(p,g,m,_){const C=p+22,w=Ce(),v=Ui(w,C);return _d(w,C)?function D_(p,g,m,_,C,w,v){const E=g+m;return ia(p,E,C,w)?Yn(p,E+2,v?_.call(v,C,w):_(C,w)):md(p,E+2)}(w,Li(),g,v.transform,m,_,v):v.transform(m,_)}function jA(p,g,m,_,C){const w=p+22,v=Ce(),E=Ui(v,w);return _d(v,w)?H_(v,Li(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function _d(p,g){return p[1].data[g].pure}function P_(p){return g=>{setTimeout(p,void 0,g)}}const Ar=class rS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=P_(w),C&&(C=P_(C)),v&&(v=P_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof h.w0&&g.add(E),E}};function aS(){return this._results[Qo()]()}class Wh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Qo(),_=Wh.prototype;_[m]||(_[m]=aS)}get changes(){return this._changes||(this._changes=new Ar)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=dn(g);(this._changesDetected=!function Af(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=sS,p})();const oS=bd,R_=class extends oS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=Wc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),$c(_,C,g),new Zc(C)}};function sS(){return hs(qt(),Ce())}function hs(p,g){return 4&p.type?new R_(g,p,Yr(p,g)):null}let $h=(()=>{class p{}return p.__NG_ELEMENT_ID__=lS,p})();function lS(){return UA(qt(),Ce())}const cS=$h,zA=class extends cS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new qi(this._hostTNode,this._hostLView)}get parentInjector(){const g=sc(this._hostTNode,this._hostLView);if(ac(g)){const m=jr(g,this._hostLView),_=Fn(g);return new qi(m[1].data[_+8],m)}return new qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=GA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function js(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new Wa(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(vi,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return on(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new zA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function jT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=cp,this.reject=cp,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:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(li(rx,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const ax=new At("AppId",{providedIn:"root",factory:function ox(){return`${Md()}${Md()}${Md()}`}});function Md(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const rb=new At("Platform Initializer"),sx=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ab=new At("appBootstrapListener"),kl=new At("AnimationModuleType");let Dd=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const ca=new At("LocaleId",{providedIn:"root",factory:()=>Mf(ca,Qe.Optional|Qe.SkipSelf)||function gs(){return typeof $localize<"u"&&$localize.locale||bl}()}),up=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Hd{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let lb=(()=>{class p{compileModuleSync(m){return new E_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Jr(zi(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new Wa(S)),v},[]);return new Hd(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Rd=(()=>Promise.resolve(0))();function oo(p){typeof Zone>"u"?Rd.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Vi{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ar(!1),this.onMicrotaskEmpty=new Ar(!1),this.onStable=new Ar(!1),this.onError=new Ar(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function Id(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function px(p){const g=()=>{!function kd(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,pp(p),p.isCheckStableRunning=!0,Vl(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),pp(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return fp(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),db(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return fp(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),db(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,pp(p),Vl(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Vi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Vi.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,hx,cp,cp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const hx={};function Vl(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 pp(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function fp(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function db(p){p._nesting--,Vl(p)}class ub{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ar,this.onMicrotaskEmpty=new Ar,this.onStable=new Ar,this.onError=new Ar}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const hb=new At(""),fx=new At("");let Bl,gx=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bl||(function mS(p){Bl=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Vi.assertNotInAngularZone(),oo(()=>{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())oo(()=>{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}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(li(Vi),li(gp),li(fx))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),gp=(()=>{class p{constructor(){this._applications=new Map}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 Bl?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),da=null;const mp=new At("AllowMultipleToken"),Ol=new At("PlatformDestroyListeners");class Fl{constructor(g,m){this.name=g,this.token=m}}function gb(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=_b();if(!v||v.injector.get(mp,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function pb(p){if(da&&!da.get(mp,!1))throw new ie(400,!1);da=p;const g=p.get(bx);(function so(p){const g=p.get(rb,null);g&&g.forEach(m=>m())})(p)}(function _x(p=[],g){return Un.create({name:g,providers:[{provide:ig,useValue:"platform"},{provide:Ol,useValue:new Set([()=>da=null])},...p]})}(E,_))}return function mb(p){const g=_b();if(!g)throw new ie(401,!1);return g}()}}function _b(){return da?.get(bx)??null}let bx=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function Cb(p,g){let m;return m="noop"===p?new ub:("zone.js"===p?void 0:p)||new Vi(g),m}(_?.ngZone,function bb(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:Vi,useValue:C}];return C.run(()=>{const v=Un.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Vc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Vd(this._modules,E),P.unsubscribe()})}),function yb(p,g,m){try{const _=m();return nd(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(dp);return P.runInitializers(),P.donePromise.then(()=>(function os(p){It(p,"Expected localeId to be defined"),"string"==typeof p&&(n_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(ca,bl)||bl),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=_p({},_);return function _S(p,g,m){const _=new E_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(ms);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(Ol,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(li(Un))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function _p(p,g){return Array.isArray(g)?g.reduce(_p,p):{...p,...g}}let ms=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{Vi.assertNotInAngularZone(),oo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{Vi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof kc;if(!this._injector.get(dp).done)throw!C&&tn(m),new ie(405,false);let v;v=C?m:this._injector.get(Fa).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function Ll(p){return p.isBoundToModule}(v)?void 0:this._injector.get(ds),P=v.create(Un.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(hb,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Vd(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);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;Vd(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(ab,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Vd(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(li(Vi),li(vi),li(Vc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Vd(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let Ab=!0;function wx(){Ab=!1}let Cp=(()=>{class p{}return p.__NG_ELEMENT_ID__=Ax,p})();function Ax(p){return function xb(p,g,m){if(Aa(p)&&!m){const _=Ct(p.index,g);return new Zc(_,_)}return 47&p.type?new Zc(g[16],g):null}(qt(),Ce(),16==(16&p))}class ha{constructor(){}supports(g){return hl(g)}create(g){return new Db(g)}}const Mx=(p,g)=>g;class Db{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Mx}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Dx(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=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(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Pb),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pb),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Dx{constructor(g,m){this.item=g,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 Hb{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Pb{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new Hb,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rb(p,g,m){const _=p.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(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);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 Hx(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class Hx{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Tp(){return new Ep([new ha])}let Ep=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Tp()),deps:[[p,new Va,new Ro]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Tp}),p})();function Ib(){return new Ld([new bs])}let Ld=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Ib()),deps:[[p,new Va,new Ro]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Ib}),p})();const xS=gb(null,"core",[]);let Vb=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(li(ms))},p.\u0275mod=Hr({type:p}),p.\u0275inj=ai({}),p})();function Sp(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{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 F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){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},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),h=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(h.substr(0,h.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const h=T.indexOf("?");return T=T.substr(h>-1?h+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let h,V,O,I,j,W,Q;if(null===x)return T;h=x.split("&");for(let U=0;U>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==h)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var U=F[T]||0;W[T]=92^U,Q[T]=54^U}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,h=0,O=F.length,I=this.blocks;h>2]|=F[h]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>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=V-64,this.hash(),this.hashed=!0):this.start=V}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 F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,G,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((G=j[W-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+j[W-7]+(((G=j[W-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(G=j[0]-1413257819)-150054599<<0,T=G+24177077<<0):(J=704751109,I=(G=j[0]-210244248)-1521486534<<0,T=G+143694565<<0),this.first=!1):(I=T+(G=I+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&V^~h&O)+K[W]+j[W])<<0,T=G+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(G=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&h^~I&V)+K[W+1]+j[W+1])<<0,x=G+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^J))<<0,V=N+(G=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&h)+K[W+2]+j[W+2])<<0,N=G+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,h=F+(G=h+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+h<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[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[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=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]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,h>>24&255,h>>16&255,h>>8&255,255&h,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),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(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let h of x)T+=String.fromCharCode(h);return T}toHashString(x){const T=new Uint8Array(x);let h="";for(let V of T)h+=String.fromCharCode(V);return h}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,h,V,O,I,j,W,Q,U){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{h?this.setStorage(h):typeof sessionStorage<"u"&&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 $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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,h=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,h).catch(I=>{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=[],h=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return h||T.push("https for all urls required. Also for urls received by discovery."),V||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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),h=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)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),h=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)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}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 h=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(h-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,h)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),h(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),h(V)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),T(h)}):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,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.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");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},h)}fetchTokenUsingGrant(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:h}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,h,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.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=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}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(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const h=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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=h.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{O.setAttribute("src",U),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).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((h,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),h(!0)},ne=>{U(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(U(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(j),window.removeEventListener("storage",G),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",G),W(ne)):console.log("false event firing")},G=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",G)}))}calculatePopupFeatures(x){const T=x.height||470,h=x.width||500,V=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const h=x.data;return h.startsWith(T)?"#"+h.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.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",h,"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="",h="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=h||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const U=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let G=j.loginUrl+U+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),G+="&code_challenge="+te,G+="&code_challenge_method=S256"}T&&(G+="&login_hint="+encodeURIComponent(T)),j.resource&&(G+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(G+="&nonce="+encodeURIComponent(Q)),V&&(G+="&prompt=none");for(const te of Object.keys(O))G+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))G+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return G})()}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 h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const h={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(h)}}storeAccessTokenResponse(x,T,h,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const I=1e3*h,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}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){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(h),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const U=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,U)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const U=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(U),Promise.reject(U)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.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 h=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 V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?h=h.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:h}).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(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const h=T.state;let[V,O]=this.parseState(h);if(this.state=O,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 I=T.access_token,j=T.id_token,W=T.session_state,Q=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&&!x.disableOAuth2StateCheck&&!h||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&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(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:U.idTokenClaims,idToken:U.idToken,state:h}).then($=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(W),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,h="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),h=x.substr(V+this.config.nonceStateSeparator.length))}return[T,h]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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,h=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),U=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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(!h&&U.nonce!==$){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 G=this.dateTimeService.now(),te=1e3*U.iat,ne=1e3*U.exp,J=this.getClockSkewInMsec();if(te-J>=G||ne+J<=G){const de="Token has expired";return console.error(de),console.error({now:G,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}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 h=!1;"boolean"==typeof x&&(h=x,x={});const V=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||h||!V&&!this.postLogoutRedirectUri)return;let O;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)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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 h=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(h);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>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 h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{x[h]&&T.set(h,JSON.stringify(x[h]))}),T}revokeTokenAndLogout(x={},T=!1){let h=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(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}`);j=j.set("Authorization","Basic "+W)}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 W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let U,$;if(V){let G=I.set("token",V).set("token_type_hint","access_token");U=this.http.post(h,G,{headers:j})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let G=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(h,G,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,$]).subscribe(G=>{this.logOut(x),W(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),Q(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,h){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=h}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 h=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_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))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,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 F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,U){try{var $=V[Q](U),G=$.value}catch(te){return void I(te)}$.done?O(G):Promise.resolve(G).then(j,W)}function h(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function U(G){T(Q,j,W,U,$,"next",G)}function $(G){T(Q,j,W,U,$,"throw",G)}U(void 0)})}}x.d(N,{Z:()=>h})},4147:F=>{"use strict";F.exports={i8:"9.4.0"}}},F=>{F(F.s=9244)}]); \ No newline at end of file diff --git a/dist/apps/publications/assets/config/defaultConfig.json b/dist/apps/publications/assets/config/defaultConfig.json index 738efbd55..b68209d6f 100644 --- a/dist/apps/publications/assets/config/defaultConfig.json +++ b/dist/apps/publications/assets/config/defaultConfig.json @@ -13,6 +13,9 @@ "oauth_response_type": "code", "oauth_offline_access_consent_prompt": true }, + "mfa": { + "url_en": "https://mfa.id.muni.cz/" + }, "supported_languages": [ "en" ], diff --git a/dist/apps/publications/assets/i18n/en.json b/dist/apps/publications/assets/i18n/en.json index 9e37d8cb6..c116f38ff 100644 --- a/dist/apps/publications/assets/i18n/en.json +++ b/dist/apps/publications/assets/i18n/en.json @@ -434,6 +434,22 @@ "DESCRIPTION": "Your session has expired. Please sign in to continue.", "SIGN_IN": "Sign in" }, + "MFA_REQUIRED_DIALOG": { + "TITLE": "Step-up authentication required", + "INFO": "To perform this action you need to execute step-up authentication.", + "CANCEL": "Cancel", + "STEP_UP": "Step-up authentication" + }, + "NO_MFA_TOKEN": { + "TITLE": "No MFA token", + "INFO": "You need to have at least one active MFA token. Please manage your MFA tokens.", + "CANCEL": "Cancel", + "MANAGE_TOKENS": "Manage tokens" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modal window is opened.", + "MODAL_WARNING": "Please check your browser settings if no modal window is open." + }, "RECENTLY_VIEWED_ICON": { "RECENT": "Recently viewed" }, diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 138f3641e..e83b4fc13 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.9c6d19de2a6f1383.js b/dist/apps/publications/main.9c6d19de2a6f1383.js deleted file mode 100644 index 17f314d04..000000000 --- a/dist/apps/publications/main.9c6d19de2a6f1383.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{2653:(Y,U,x)=>{"use strict";var C=x(6895),i=x(4650);class D extends C.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends D{static makeCurrent(){(0,C.HT)(new M)}onAndCancel(o,e,t){return o.addEventListener(e,t,!1),()=>{o.removeEventListener(e,t,!1)}}dispatchEvent(o,e){o.dispatchEvent(e)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,e){return(e=e||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,e){return"window"===e?window:"document"===e?o:"body"===e?o.body:null}getBaseHref(o){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function j(n){L=L||document.createElement("a"),L.setAttribute("href",n);const o=L.pathname;return"/"===o.charAt(0)?o:`/${o}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,C.Mx)(document.cookie,o)}}let L,S=null;const z=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,o,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,C.q)(),r=o.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{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 re=new i.OlP("EventManagerPlugins");let ie=(()=>{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})(),Ae=(()=>{class n extends be{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($e),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach($e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $e(n){(0,C.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/"},Ee=/%COMP%/g;function ue(n,o,e){for(let t=0;t{if("__ngUnwrap__"===o)return n;!1===n(o)&&(o.preventDefault(),o.returnValue=!1)}}let _e=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ni(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 Je(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=ue(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(ie),i.LFG(Ae),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ze{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,e){return e?document.createElementNS(Ze[e]||e,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,e){(It(o)?o.content:o).appendChild(e)}insertBefore(o,e,t){o&&(It(o)?o.content:o).insertBefore(e,t)}removeChild(o,e){o&&o.removeChild(e)}selectRootElement(o,e){let t="string"==typeof o?document.querySelector(o):o;if(!t)throw new Error(`The selector "${o}" did not match any elements`);return e||(t.textContent=""),t}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?o.setAttributeNS(l,e,t):o.setAttribute(e,t)}else o.setAttribute(e,t)}removeAttribute(o,e,t){if(t){const r=Ze[t];r?o.removeAttributeNS(r,e):o.removeAttribute(`${t}:${e}`)}else o.removeAttribute(e)}addClass(o,e){o.classList.add(e)}removeClass(o,e){o.classList.remove(e)}setStyle(o,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?o.style.setProperty(e,t,r&i.JOm.Important?"important":""):o.style[e]=t}removeStyle(o,e,t){t&i.JOm.DashCase?o.style.removeProperty(e):o.style[e]=""}setProperty(o,e,t){o[e]=t}setValue(o,e){o.nodeValue=e}listen(o,e,t){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,e,fe(t)):this.eventManager.addEventListener(o,e,fe(t))}}function It(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ni extends ze{constructor(o,e,t,r){super(o),this.component=t;const l=ue(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Oe(n){return"_ngcontent-%COMP%".replace(Ee,n)}(r+"-"+t.id),this.hostAttr=function Le(n){return"_nghost-%COMP%".replace(Ee,n)}(r+"-"+t.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,e){const t=super.createElement(o,e);return super.setAttribute(t,this.contentAttr,""),t}}class Je extends ze{constructor(o,e,t,r){super(o),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=ue(r.id,r.styles,[]);for(let d=0;d{class n extends me{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const _n=["alt","control","meta","shift"],ri={"\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"},lr={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"},vi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Kr=(()=>{class n extends me{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,C.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(_n.forEach(a=>{const c=t.indexOf(a);c>-1&&(t.splice(c,1),d+=a+".")}),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 ql(n){let o=n.key;if(null==o){if(o=n.keyIdentifier,null==o)return"Unidentified";o.startsWith("U+")&&(o=String.fromCharCode(parseInt(o.substring(2),16)),3===n.location&&lr.hasOwnProperty(o)&&(o=lr[o]))}return ri[o]||o}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),_n.forEach(l=>{l!=r&&(0,vi[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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ct=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:C.bD},{provide:i.g9A,useValue:function Hr(){M.makeCurrent()},multi:!0},{provide:C.K0,useFactory:function hs(){return(0,i.RDi)(document),document},deps:[]}]),zi=new i.OlP(""),cr=[{provide:i.rWj,useClass:class ne{addToWindow(o){i.dqk.getAngularTestability=(t,r=!0)=>{const l=o.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>o.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(a){d=d||a,l--,0==l&&t(d)};r.forEach(function(a){a.whenStable(s)})})}findTestabilityInTree(o,e,t){return null==e?null:o.getTestability(e)??(t?(0,C.q)().isShadowRoot(e)?this.findTestabilityInTree(o,e.host,!0):this.findTestabilityInTree(o,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Qt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kr(){return new i.qLn},deps:[]},{provide:re,useClass:Ki,multi:!0,deps:[C.K0,i.R0b,i.Lbi]},{provide:re,useClass:Kr,multi:!0,deps:[C.K0]},{provide:_e,useClass:_e,deps:[ie,Ae,i.AFp]},{provide:i.FYo,useExisting:_e},{provide:be,useExisting:Ae},{provide:Ae,useClass:Ae,deps:[C.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:C.JF,useClass:le,deps:[]},[]];let Xi=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:z,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zi,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...Qt,...cr],imports:[C.ez,i.hGG]}),n})(),ae=(()=>{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Se(){return new ae((0,i.LFG)(C.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Ei=(()=>{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(it),t},providedIn:"root"}),n})(),it=(()=>{class n extends Ei{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.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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ge(n){return new it(n.get(C.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(529);class zt{encodeKey(o){return encodeURIComponent(o)}encodeValue(o){return encodeURIComponent(o)}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}const Rt=new i.OlP("basePath");class Ye{constructor(o={}){this.apiKeys=o.apiKeys,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.withCredentials=o.withCredentials,this.encoder=o.encoder,this.credentials=o.credentials?o.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(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}selectHeaderAccept(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}isJsonMime(o){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==o&&(e.test(o)||"application/json-patch+json"===o.toLowerCase())}lookupCredential(o){const e=this.credentials[o];return"function"==typeof e?e():e}}let nt=(()=>{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 Ye,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 zt}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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,a="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(We=>{h=this.addToHttpParams(h,We,"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 w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ut=(()=>{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 Ye,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 zt}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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,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 s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"publicationId")),null!=t&&(s=this.addToHttpParams(s,t,"userId"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new w.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,s,a,c,u,h="body",f=!1,b){let V=new w.LE({encoder:this.encoder});null!=e&&(V=this.addToHttpParams(V,e,"title")),null!=t&&(V=this.addToHttpParams(V,t,"isbn")),null!=r&&(V=this.addToHttpParams(V,r,"doi")),null!=l&&(V=this.addToHttpParams(V,l,"id")),null!=d&&(V=this.addToHttpParams(V,d,"year")),null!=s&&(V=this.addToHttpParams(V,s,"category")),null!=a&&(V=this.addToHttpParams(V,a,"yearSince")),null!=c&&(V=this.addToHttpParams(V,c,"yearTill")),null!=u&&(V=this.addToHttpParams(V,u,"userId"));let he,ee=this.defaultHeaders;he=this.configuration.lookupCredential("BasicAuth"),he&&(ee=ee.set("Authorization","Basic "+he)),he=this.configuration.lookupCredential("BearerAuth"),he&&(ee=ee.set("Authorization","Bearer "+he));let We=b&&b.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(ee=ee.set("Accept",We));let Pt=b&&b.context;void 0===Pt&&(Pt=new w.qT);let Jt="json";return We&&(Jt=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Pt,params:V,responseType:Jt,withCredentials:this.configuration.withCredentials,headers:ee,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,s){let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,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 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:f,params:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Js=(()=>{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 Ye,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 zt}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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,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 s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"owner")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ai=(()=>{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 Ye,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 zt}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,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,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 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:f,params:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ia=(()=>{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 Ye,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 zt}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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,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 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:f,params:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let 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(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=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,a="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!=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 w.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:a,reportProgress:c})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,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 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/setLogin`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Kn=(()=>{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 Ye,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 zt}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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uo=(()=>{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:Ye,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({}),n})();var Tt=(()=>{return(n=Tt||(Tt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",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",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Tt;var n})();let ra=(()=>{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(Tt.PERUNADMIN,Tt.PERUNOBSERVER,Tt.FACILITYADMIN,Tt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Tt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Tt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Tt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOOBSERVER,Tt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.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=[],a=[];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))a="User"===V?[V].concat(a):a.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:a})}}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 a of t[s])if(!this.principalHasRole(d,s,a)){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{(0,Ir.Xf)(n()).subscribe(o)})}var eo=x(9635),pr=x(2843),yi=x(515),xt=x(727),Xn=x(4482),Dn=x(5403);function qo(){return(0,Xn.e)((n,o)=>{let e=null;n._refCount++;const t=(0,Dn.x)(o,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),o.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class Vu extends nn.y{constructor(o,e){super(),this.source=o,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Xn.A)(o)&&(this.lift=o.lift)}_subscribe(o){return this.getSubject().subscribe(o)}getSubject(){const o=this._subject;return(!o||o.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:o}=this;this._subject=this._connection=null,o?.unsubscribe()}connect(){let o=this._connection;if(!o){o=this._connection=new xt.w0;const e=this.getSubject();o.add(this.source.subscribe((0,Dn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),o.closed&&(this._connection=null,o=xt.w0.EMPTY)}return o}refCount(){return qo()(this)}}var Qe=x(4004),Dt=x(3900),Ot=x(5698),fr=x(3269);function Et(...n){const o=(0,fr.yG)(n);return(0,Xn.e)((e,t)=>{(o?(0,Ra.z)(n,e,o):(0,Ra.z)(n,e)).subscribe(t)})}var rn=x(5577),er=x(590),En=x(4351),Bt=x(8505),O=x(262);function q(n,o,e,t,r){return(l,d)=>{let s=e,a=o,c=0;l.subscribe((0,Dn.x)(d,u=>{const h=c++;a=s?n(a,u,h):(s=!0,u),t&&d.next(a)},r&&(()=>{s&&d.next(a),d.complete()})))}}function B(n,o){return(0,Xn.e)(q(n,o,arguments.length>=2,!0))}function $(n){return n<=0?()=>yi.E:(0,Xn.e)((o,e)=>{let t=[];o.subscribe((0,Dn.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var ce=x(8068),ye=x(6590),ge=x(4671);function tt(n,o){const e=arguments.length>=2;return t=>t.pipe(n?(0,Gt.h)((r,l)=>n(r,l,t)):ge.y,$(1),e?(0,ye.d)(o):(0,ce.T)(()=>new Go.K))}function pi(n,o=!1){return(0,Xn.e)((e,t)=>{let r=0;e.subscribe((0,Dn.x)(t,l=>{const d=n(l,r++);(d||o)&&t.next(l),!d&&t.complete()}))})}var Kt=x(9718);function Zt(n){return(0,Xn.e)((o,e)=>{try{o.subscribe(e)}finally{e.add(n)}})}var Ft=x(8189);const at="primary";class mi{constructor(o){this.params=o||{}}has(o){return Object.prototype.hasOwnProperty.call(this.params,o)}get(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e[0]:e}return null}getAll(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ti(n){return new mi(n)}function xe(n,o,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(o.hasChildren()||t.lengtht[l]===r)}return n===o}function xi(n){return Array.prototype.concat.apply([],n)}function La(n){return n.length>0?n[n.length-1]:null}function Xt(n,o){for(const e in n)n.hasOwnProperty(e)&&o(n[e],e)}function mr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,cn.D)(Promise.resolve(n)):(0,Ve.of)(n)}const bd={exact:function Br(n,o,e){if(!aa(n.segments,o.segments)||!ci(n.segments,o.segments,e)||n.numberOfChildren!==o.numberOfChildren)return!1;for(const t in o.children)if(!n.children[t]||!Br(n.children[t],o.children[t],e))return!1;return!0},subset:bs},Fp={exact:function yn(n,o){return gn(n,o)},subset:function yd(n,o){return Object.keys(o).length<=Object.keys(n).length&&Object.keys(o).every(e=>Or(n[e],o[e]))},ignored:()=>!0};function Wo(n,o,e){return bd[e.paths](n.root,o.root,e.matrixParams)&&Fp[e.queryParams](n.queryParams,o.queryParams)&&!("exact"===e.fragment&&n.fragment!==o.fragment)}function bs(n,o,e){return gr(n,o,o.segments,e)}function gr(n,o,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!aa(r,e)||o.hasChildren()||!ci(r,e,t))}if(n.segments.length===e.length){if(!aa(n.segments,e)||!ci(n.segments,e,t))return!1;for(const r in o.children)if(!n.children[r]||!bs(n.children[r],o.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(aa(n.segments,r)&&ci(n.segments,r,t)&&n.children[at])&&gr(n.children[at],o,l,t)}}function ci(n,o,e){return o.every((t,r)=>Fp[e](n[r].parameters,t.parameters))}class Ia{constructor(o,e,t){this.root=o,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return ju.serialize(this)}}class Vt{constructor(o,e){this.segments=o,this.children=e,this.parent=null,Xt(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return io(this)}}class to{constructor(o,e){this.path=o,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ti(this.parameters)),this._parameterMap}toString(){return an(this)}}function aa(n,o){return n.length===o.length&&n.every((e,t)=>e.path===o[t].path)}let Oa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new Cd},providedIn:"root"}),n})();class Cd{parse(o){const e=new Kl(o);return new Ia(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(o){const e=`/${sa(o.root,!0)}`,t=function ki(n){const o=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${ys(e)}=${ys(r)}`).join("&"):`${ys(e)}=${ys(t)}`}).filter(e=>!!e);return o.length?`?${o.join("&")}`:""}(o.queryParams);return`${e}${t}${"string"==typeof o.fragment?`#${function Nu(n){return encodeURI(n)}(o.fragment)}`:""}`}}const ju=new Cd;function io(n){return n.segments.map(o=>an(o)).join("/")}function sa(n,o){if(!n.hasChildren())return io(n);if(o){const e=n.children[at]?sa(n.children[at],!1):"",t=[];return Xt(n.children,(r,l)=>{l!==at&&t.push(`${l}:${sa(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fu(n,o){let e=[];return Xt(n.children,(t,r)=>{r===at&&(e=e.concat(o(t,r)))}),Xt(n.children,(t,r)=>{r!==at&&(e=e.concat(o(t,r)))}),e}(n,(t,r)=>r===at?[sa(n.children[at],!1)]:[`${r}:${sa(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[at]?`${io(n)}/${e[0]}`:`${io(n)}/(${e.join("//")})`}}function no(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ys(n){return no(n).replace(/%3B/gi,";")}function ro(n){return no(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zl(n){return decodeURIComponent(n)}function Jl(n){return Zl(n.replace(/\+/g,"%20"))}function an(n){return`${ro(n.path)}${function Vr(n){return Object.keys(n).map(o=>`;${ro(o)}=${ro(n[o])}`).join("")}(n.parameters)}`}const Yu=/^[^\/()?;=#]+/;function Ql(n){const o=n.match(Yu);return o?o[0]:""}const zu=/^[^=?&#]+/,Np=/^[^&#]+/;class Kl{constructor(o){this.url=o,this.remaining=o}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){const o={};if(this.consumeOptional("?"))do{this.parseQueryParam(o)}while(this.consumeOptional("&"));return o}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const o=[];for(this.peekStartsWith("(")||o.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),o.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(o.length>0||Object.keys(e).length>0)&&(t[at]=new Vt(o,e)),t}parseSegment(){const o=Ql(this.remaining);if(""===o&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(o),new to(Zl(o),this.parseMatrixParams())}parseMatrixParams(){const o={};for(;this.consumeOptional(";");)this.parseParam(o);return o}parseParam(o){const e=Ql(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ql(this.remaining);r&&(t=r,this.capture(t))}o[Zl(e)]=Zl(t)}parseQueryParam(o){const e=function jp(n){const o=n.match(zu);return o?o[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Yp(n){const o=n.match(Np);return o?o[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Jl(e),l=Jl(t);if(o.hasOwnProperty(r)){let d=o[r];Array.isArray(d)||(d=[d],o[r]=d),d.push(l)}else o[r]=l}parseParens(o){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ql(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):o&&(l=at);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[at]:new Vt([],d),this.consumeOptional("//")}return e}peekStartsWith(o){return this.remaining.startsWith(o)}consumeOptional(o){return!!this.peekStartsWith(o)&&(this.remaining=this.remaining.substring(o.length),!0)}capture(o){if(!this.consumeOptional(o))throw new i.vHH(4011,!1)}}function ao(n){return n.segments.length>0?new Vt([],{[at]:n}):n}function ws(n){const o={};for(const t of Object.keys(n.children)){const l=ws(n.children[t]);(l.segments.length>0||l.hasChildren())&&(o[t]=l)}return function Xl(n){if(1===n.numberOfChildren&&n.children[at]){const o=n.children[at];return new Vt(n.segments.concat(o.segments),o.children)}return n}(new Vt(n.segments,o))}function Ba(n){return n instanceof Ia}function zp(n,o,e,t,r){if(0===e.length)return so(o.root,o.root,o.root,t,r);const l=function Up(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new qu(!0,0,n);let o=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Xt(l.outlets,(a,c)=>{s[c]="string"==typeof a?a.split("/"):a}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,a)=>{0==a&&"."===s||(0==a&&""===s?e=!0:".."===s?o++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new qu(e,o,t)}(e);return l.toRoot()?so(o.root,o.root,new Vt([],{}),t,r):function d(a){const c=function $u(n,o,e,t){if(n.isAbsolute)return new oa(o.root,!0,0);if(-1===t)return new oa(e,e===o.root,0);return function $o(n,o,e){let t=n,r=o,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new oa(t,!1,r-l)}(e,t+(Fr(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,o,n.snapshot?._urlSegment,a),u=c.processChildren?jr(c.segmentGroup,c.index,l.commands):ec(c.segmentGroup,c.index,l.commands);return so(o.root,c.segmentGroup,u,t,r)}(n.snapshot?._lastPathIndex)}function Fr(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Va(n){return"object"==typeof n&&null!=n&&n.outlets}function so(n,o,e,t,r){let d,l={};t&&Xt(t,(a,c)=>{l[c]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),d=n===o?e:Gu(n,o,e);const s=ao(ws(d));return new Ia(s,l,r)}function Gu(n,o,e){const t={};return Xt(n.children,(r,l)=>{t[l]=r===o?e:Gu(r,o,e)}),new Vt(n.segments,t)}class qu{constructor(o,e,t){if(this.isAbsolute=o,this.numberOfDoubleDots=e,this.commands=t,o&&t.length>0&&Fr(t[0]))throw new i.vHH(4003,!1);const r=t.find(Va);if(r&&r!==La(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oa{constructor(o,e,t){this.segmentGroup=o,this.processChildren=e,this.index=t}}function ec(n,o,e){if(n||(n=new Vt([],{})),0===n.segments.length&&n.hasChildren())return jr(n,o,e);const t=function Gp(n,o,e){let t=0,r=o;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(Va(s))break;const a=`${s}`,c=t0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!qp(a,c,d))return l;t+=2}else{if(!qp(a,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,o,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=ec(n.children[d],o,l))}),Xt(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Vt(n.segments,r)}}function Fa(n,o,e){const t=n.segments.slice(0,o);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(o[t]=Fa(new Vt([],{}),0,e))}),o}function Zo(n){const o={};return Xt(n,(e,t)=>o[t]=`${e}`),o}function qp(n,o,e){return n==e.path&&gn(o,e.parameters)}class Nr{constructor(o,e){this.id=o,this.url=e}}class Cs extends Nr{constructor(o,e,t="imperative",r=null){super(o,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Nr{constructor(o,e,t){super(o,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yn extends Nr{constructor(o,e,t,r){super(o,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ju extends Nr{constructor(o,e,t,r){super(o,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Jo extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Td extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends Nr{constructor(o,e,t,r,l){super(o,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tc extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ic extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qu{constructor(o){this.route=o,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Md{constructor(o){this.route=o,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Sd{constructor(o){this.snapshot=o,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qo{constructor(o){this.snapshot=o,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class As{constructor(o){this.snapshot=o,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nc{constructor(o){this.snapshot=o,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oo{constructor(o,e,t){this.routerEvent=o,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dd{constructor(o){this._root=o}get root(){return this._root.value}parent(o){const e=this.pathFromRoot(o);return e.length>1?e[e.length-2]:null}children(o){const e=Ko(o,this._root);return e?e.children.map(t=>t.value):[]}firstChild(o){const e=Ko(o,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(o){const e=rc(o,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==o)}pathFromRoot(o){return rc(o,this._root).map(e=>e.value)}}function Ko(n,o){if(n===o.value)return o;for(const e of o.children){const t=Ko(n,e);if(t)return t}return null}function rc(n,o){if(n===o.value)return[o];for(const e of o.children){const t=rc(n,e);if(t.length)return t.unshift(o),t}return[]}class Hn{constructor(o,e){this.value=o,this.children=e}toString(){return`TreeNode(${this.value})`}}function lo(n){const o={};return n&&n.children.forEach(e=>o[e.value.outlet]=e),o}class Ed extends Dd{constructor(o,e){super(o),this.snapshot=e,oc(this,o)}toString(){return this.snapshot.toString()}}function ac(n,o){const e=function Wp(n,o){const d=new ca([],{},{},"",{},at,o,null,n.root,-1,{});return new vs("",new Hn(d,[]))}(n,o),t=new Hi([new to("",{})]),r=new Hi({}),l=new Hi({}),d=new Hi({}),s=new Hi(""),a=new zn(t,r,d,s,l,at,o,e.root);return a.snapshot=e.root,new Ed(new Hn(a,[]),e)}class zn{constructor(o,e,t,r,l,d,s,a){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qe.U)(o=>Ti(o)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qe.U)(o=>Ti(o)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sc(n,o="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==o)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 co(n){return n.reduce((o,e)=>({params:{...o.params,...e.params},data:{...o.data,...e.data},resolve:{...e.data,...o.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ca{constructor(o,e,t,r,l,d,s,a,c,u,h,f){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=f??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=Ti(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vs extends Dd{constructor(o,e){super(e),this.url=o,oc(this,e)}toString(){return lc(this._root)}}function oc(n,o){o.value._routerState=n,o.children.forEach(e=>oc(n,e))}function lc(n){const o=n.children.length>0?` { ${n.children.map(lc).join(", ")} } `:"";return`${n.value}${o}`}function ja(n){if(n.snapshot){const o=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gn(o.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),o.fragment!==e.fragment&&n.fragment.next(e.fragment),gn(o.params,e.params)||n.params.next(e.params),function Ht(n,o){if(n.length!==o.length)return!1;for(let e=0;egn(e.parameters,o[t].parameters))}(n.url,o.url);return e&&!(!n.parent!=!o.parent)&&(!n.parent||Ku(n.parent,o.parent))}function ei(n,o,e){if(e&&n.shouldReuseRoute(o.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=o.value;const r=function c_(n,o,e){return o.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ei(n,t,r);return ei(n,t)})}(n,o,e);return new Hn(t,r)}{if(n.shouldAttach(o.value)){const l=n.retrieve(o.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=o.value,d.children=o.children.map(s=>ei(n,s)),d}}const t=function d_(n){return new zn(new Hi(n.url),new Hi(n.params),new Hi(n.queryParams),new Hi(n.fragment),new Hi(n.data),n.outlet,n.component,n)}(o.value),r=o.children.map(l=>ei(n,l));return new Hn(t,r)}}const Xu="ngNavigationCancelingError";function Zp(n,o){const{redirectTo:e,navigationBehaviorOptions:t}=Ba(o)?{redirectTo:o,navigationBehaviorOptions:void 0}:o,r=Jp(!1,0,o);return r.url=e,r.navigationBehaviorOptions=t,r}function Jp(n,o,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[Xu]=!0,t.cancellationCode=o,e&&(t.url=e),t}function Hd(n){return Qp(n)&&Ba(n.url)}function Qp(n){return n&&n[Xu]}class Xo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new cc,this.attachRef=null}}let cc=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Xo,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const el=!1;let gi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=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=r||at,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,el);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,el);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,el);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 i.vHH(4013,el);this._activatedRoute=e;const r=this.location,d=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,a=new kd(e,s,r.injector);if(t&&function tl(n){return!!n.resolveComponentFactory}(t)){const c=t.resolveComponentFactory(d);this.activated=r.createComponent(c,r.length,a)}else this.activated=r.createComponent(d,{index:r.length,injector:a,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(cc),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(o,e,t){this.route=o,this.childContexts=e,this.parent=t}get(o,e){return o===zn?this.route:o===cc?this.childContexts:this.parent.get(o,e)}}let Kp=(()=>{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")},dependencies:[gi],encapsulation:2}),n})();function eh(n,o){return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,o,`Route: ${n.path}`)),n._injector??o}function ih(n){const o=n.children&&n.children.map(ih),e=o?{...n,children:o}:{...n};return!e.component&&!e.loadComponent&&(o||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=Kp),e}function sn(n){return n.outlet||at}function dc(n,o){const e=n.filter(t=>sn(t)===o);return e.push(...n.filter(t=>sn(t)!==o)),e}function kn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let o=n.parent;o;o=o.parent){const e=o.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class uo{constructor(o,e,t,r){this.routeReuseStrategy=o,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(o){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,o),ja(this.futureState.root),this.activateChildRoutes(e,t,o)}deactivateChildRoutes(o,e,t){const r=lo(e);o.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),Xt(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(o,e,d.children)}else this.deactivateChildRoutes(o,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(o,e){o.value.component&&this.routeReuseStrategy.shouldDetach(o.value.snapshot)?this.detachAndStoreRouteSubtree(o,e):this.deactivateRouteAndOutlet(o,e)}detachAndStoreRouteSubtree(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=lo(o);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(o.value.snapshot,{componentRef:d,route:o,contexts:s})}}deactivateRouteAndOutlet(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=lo(o);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(o,e,t){const r=lo(e);o.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new nc(l.value.snapshot))}),o.children.length&&this.forwardEvent(new Qo(o.value.snapshot))}activateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(ja(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(o,e,d.children)}else this.activateChildRoutes(o,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),ja(s.route.value),this.activateChildRoutes(o,null,d.children)}else{const s=kn(r.snapshot),a=s?.get(i._Vd)??null;d.attachRef=null,d.route=r,d.resolver=a,d.injector=s,d.outlet&&d.outlet.activateWith(r,d.injector),this.activateChildRoutes(o,null,d.children)}}else this.activateChildRoutes(o,null,t)}}class Be{constructor(o){this.path=o,this.route=this.path[this.path.length-1]}}class il{constructor(o,e){this.component=o,this.route=e}}function tf(n,o,e){const t=n._root;return Ya(t,o?o._root:null,e,[t.value])}function jt(n,o,e){return(kn(o)??e).get(n)}function Ya(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=lo(o);return n.children.forEach(d=>{(function rh(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=o?o.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const a=function Id(n,o,e){if("function"==typeof e)return e(n,o);switch(e){case"pathParamsChange":return!aa(n.url,o.url);case"pathParamsOrQueryParamsChange":return!aa(n.url,o.url)||!gn(n.queryParams,o.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ku(n,o)||!gn(n.queryParams,o.queryParams);default:return!Ku(n,o)}}(d,l,l.routeConfig.runGuardsAndResolvers);a?r.canActivateChecks.push(new Be(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Ya(n,o,l.component?s?s.children:null:e,t,r),a&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new il(s.outlet.component,d))}else d&&xs(o,s,r),r.canActivateChecks.push(new Be(t)),Ya(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]}),Xt(l,(d,s)=>xs(d,e.getContext(s),r)),r}function xs(n,o,e){const t=lo(n),r=n.value;Xt(t,(l,d)=>{xs(l,r.component?o?o.children.getContext(d):null:o,e)}),e.canDeactivateChecks.push(new il(r.component&&o&&o.outlet&&o.outlet.isActivated?o.outlet.component:null,r))}function za(n){return"function"==typeof n}function Ua(n){return n instanceof Go.K||"EmptyError"===n?.name}const da=Symbol("INITIAL_VALUE");function Ms(){return(0,Dt.w)(n=>(0,Pa.a)(n.map(o=>o.pipe((0,Ot.q)(1),Et(da)))).pipe((0,Qe.U)(o=>{for(const e of o)if(!0!==e){if(e===da)return da;if(!1===e||e instanceof Ia)return e}return!0}),(0,Gt.h)(o=>o!==da),(0,Ot.q)(1)))}function ho(n){return(0,eo.z)((0,Bt.b)(o=>{if(Ba(o))throw Zp(0,o)}),(0,Qe.U)(o=>!0===o))}const Ss={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function dh(n,o,e,t,r){const l=uc(n,o,e);return l.matched?function ch(n,o,e,t){const r=o.canMatch;if(!r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function ah(n){return n&&za(n.canMatch)}(s)?s.canMatch(o,e):s(o,e);return mr(a)});return(0,Ve.of)(l).pipe(Ms(),ho())}(t=eh(o,t),o,e).pipe((0,Qe.U)(d=>!0===d?l:{...Ss})):(0,Ve.of)(l)}function uc(n,o,e){if(""===o.path)return"full"===o.pathMatch&&(n.hasChildren()||e.length>0)?{...Ss}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(o.matcher||xe)(e,n,o);if(!r)return{...Ss};const l={};Xt(r.posParams,(s,a)=>{l[a]=s.path});const d=r.consumed.length>0?{...l,...r.consumed[r.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:d,positionalParamSegments:r.posParams??{}}}function Ga(n,o,e,t,r="corrected"){if(e.length>0&&function lf(n,o,e){return e.some(t=>ua(n,o,t)&&sn(t)!==at)}(n,e,t)){const d=new Vt(o,function uh(n,o,e,t){const r={};r[at]=t,t._sourceSegment=n,t._segmentIndexShift=o.length;for(const l of e)if(""===l.path&&sn(l)!==at){const d=new Vt([],{});d._sourceSegment=n,d._segmentIndexShift=o.length,r[sn(l)]=d}return r}(n,o,t,new Vt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function cf(n,o,e){return e.some(t=>ua(n,o,t))}(n,e,t)){const d=new Vt(n.segments,function zr(n,o,e,t,r,l){const d={};for(const s of t)if(ua(n,e,s)&&!r[sn(s)]){const a=new Vt([],{});a._sourceSegment=n,a._segmentIndexShift="legacy"===l?n.segments.length:o.length,d[sn(s)]=a}return{...r,...d}}(n,o,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:e}}const l=new Vt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=o.length,{segmentGroup:l,slicedSegments:e}}function ua(n,o,e){return(!(n.hasChildren()||o.length>0)||"full"!==e.pathMatch)&&""===e.path}function po(n,o,e,t){return!!(sn(n)===t||t!==at&&ua(o,e,n))&&("**"===n.path||uc(o,n,e).matched)}function hh(n,o,e){return 0===o.length&&!n.children[e]}const Vd=!1;class al{constructor(o){this.segmentGroup=o||null}}class Ur{constructor(o){this.urlTree=o}}function ha(n){return(0,pr._)(new al(n))}function ph(n){return(0,pr._)(new Ur(n))}class fh{constructor(o,e,t,r,l){this.injector=o,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const o=Ga(this.urlTree.root,[],[],this.config).segmentGroup,e=new Vt(o.segments,o.children);return this.expandSegmentGroup(this.injector,this.config,e,at).pipe((0,Qe.U)(l=>this.createUrlTree(ws(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(l=>{if(l instanceof Ur)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof al?this.noMatchError(l):l}))}match(o){return this.expandSegmentGroup(this.injector,this.config,o.root,at).pipe((0,Qe.U)(r=>this.createUrlTree(ws(r),o.queryParams,o.fragment))).pipe((0,O.K)(r=>{throw r instanceof al?this.noMatchError(r):r}))}noMatchError(o){return new i.vHH(4002,Vd)}createUrlTree(o,e,t){const r=ao(o);return new Ia(r,e,t)}expandSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(o,e,t).pipe((0,Qe.U)(l=>new Vt([],l))):this.expandSegment(o,t,e,t.segments,r,!0)}expandChildren(o,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,cn.D)(r).pipe((0,En.b)(l=>{const d=t.children[l],s=dc(e,l);return this.expandSegmentGroup(o,s,d,l).pipe((0,Qe.U)(a=>({segment:a,outlet:l})))}),B((l,d)=>(l[d.outlet]=d.segment,l),{}),tt())}expandSegment(o,e,t,r,l,d){return(0,cn.D)(t).pipe((0,En.b)(s=>this.expandSegmentAgainstRoute(o,e,t,s,r,l,d).pipe((0,O.K)(c=>{if(c instanceof al)return(0,Ve.of)(null);throw c}))),(0,er.P)(s=>!!s),(0,O.K)((s,a)=>{if(Ua(s))return hh(e,r,l)?(0,Ve.of)(new Vt([],{})):ha(e);throw s}))}expandSegmentAgainstRoute(o,e,t,r,l,d,s){return po(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(o,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d):ha(e):ha(e)}expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(o,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(o,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ph(l):this.lineralizeSegments(t,l).pipe((0,rn.z)(d=>{const s=new Vt(d,{});return this.expandSegment(o,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){const{matched:s,consumedSegments:a,remainingSegments:c,positionalParamSegments:u}=uc(e,r,l);if(!s)return ha(e);const h=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?ph(h):this.lineralizeSegments(r,h).pipe((0,rn.z)(f=>this.expandSegment(o,e,t,f.concat(c),d,!1)))}matchSegmentAgainstRoute(o,e,t,r,l){return"**"===t.path?(o=eh(t,o),t.loadChildren?(t._loadedRoutes?(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(o,t)).pipe((0,Qe.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Vt(r,{})))):(0,Ve.of)(new Vt(r,{}))):dh(e,t,r,o).pipe((0,Dt.w)(({matched:d,consumedSegments:s,remainingSegments:a})=>d?this.getChildConfig(o=t._injector??o,t,r).pipe((0,rn.z)(u=>{const h=u.injector??o,f=u.routes,{segmentGroup:b,slicedSegments:V}=Ga(e,s,a,f),ee=new Vt(b.segments,b.children);if(0===V.length&&ee.hasChildren())return this.expandChildren(h,f,ee).pipe((0,Qe.U)(Jt=>new Vt(s,Jt)));if(0===f.length&&0===V.length)return(0,Ve.of)(new Vt(s,{}));const he=sn(t)===l;return this.expandSegment(h,ee,f,V,he?at:l,!0).pipe((0,Qe.U)(Pt=>new Vt(s.concat(Pt.segments),Pt.children)))})):ha(e)))}getChildConfig(o,e,t){return e.children?(0,Ve.of)({routes:e.children,injector:o}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ve.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bd(n,o,e,t){const r=o.canLoad;if(void 0===r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function nl(n){return n&&za(n.canLoad)}(s)?s.canLoad(o,e):s(o,e);return mr(a)});return(0,Ve.of)(l).pipe(Ms(),ho())}(o,e,t).pipe((0,rn.z)(r=>r?this.configLoader.loadChildren(o,e).pipe((0,Bt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function uf(n){return(0,pr._)(Jp(Vd,3))}())):(0,Ve.of)({routes:[],injector:o})}lineralizeSegments(o,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ve.of)(t);if(r.numberOfChildren>1||!r.children[at])return(0,pr._)(new i.vHH(4e3,Vd));r=r.children[at]}}applyRedirectCommands(o,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),o,t)}applyRedirectCreateUrlTree(o,e,t,r){const l=this.createSegmentGroup(o,e.root,t,r);return new Ia(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(o,e){const t={};return Xt(o,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(o,e,t,r){const l=this.createSegments(o,e.segments,t,r);let d={};return Xt(e.children,(s,a)=>{d[a]=this.createSegmentGroup(o,s,t,r)}),new Vt(l,d)}createSegments(o,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(o,l,r):this.findOrReturn(l,t))}findPosParam(o,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Vd);return r}findOrReturn(o,e){let t=0;for(const r of e){if(r.path===o.path)return e.splice(t),r;t++}return o}}class jd{}class H{constructor(o,e,t,r,l,d,s,a){this.injector=o,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=s,this.urlSerializer=a}recognize(){const o=Ga(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,o,at).pipe((0,Qe.U)(e=>{if(null===e)return null;const t=new ca([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},at,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Hn(t,e),l=new vs(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(o){const e=o.value,t=sc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),o.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(o,e,t):this.processSegment(o,e,t,t.segments,r)}processChildren(o,e,t){return(0,cn.D)(Object.keys(t.children)).pipe((0,En.b)(r=>{const l=t.children[r],d=dc(e,r);return this.processSegmentGroup(o,d,l,r)}),B((r,l)=>r&&l?(r.push(...l),r):null),pi(r=>null!==r),(0,ye.d)(null),tt(),(0,Qe.U)(r=>{if(null===r)return null;const l=se(r);return function I(n){n.sort((o,e)=>o.value.outlet===at?-1:e.value.outlet===at?1:o.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(o,e,t,r,l){return(0,cn.D)(e).pipe((0,En.b)(d=>this.processSegmentAgainstRoute(d._injector??o,d,t,r,l)),(0,er.P)(d=>!!d),(0,O.K)(d=>{if(Ua(d))return hh(t,r,l)?(0,Ve.of)([]):(0,Ve.of)(null);throw d}))}processSegmentAgainstRoute(o,e,t,r,l){if(e.redirectTo||!po(e,t,r,l))return(0,Ve.of)(null);let d;if("**"===e.path){const s=r.length>0?La(r).parameters:{},a=Lt(t)+r.length,c=new ca(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),a,nr(e),a);d=(0,Ve.of)({snapshot:c,consumedSegments:[],remainingSegments:[]})}else d=dh(t,e,r,o).pipe((0,Qe.U)(({matched:s,consumedSegments:a,remainingSegments:c,parameters:u})=>{if(!s)return null;const h=Lt(t)+a.length;return{snapshot:new ca(a,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),h,nr(e),h),consumedSegments:a,remainingSegments:c}}));return d.pipe((0,Dt.w)(s=>{if(null===s)return(0,Ve.of)(null);const{snapshot:a,consumedSegments:c,remainingSegments:u}=s;o=e._injector??o;const h=e._loadedInjector??o,f=function N(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:V}=Ga(t,c,u,f.filter(he=>void 0===he.redirectTo),this.relativeLinkResolution);if(0===V.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]));if(0===f.length&&0===V.length)return(0,Ve.of)([new Hn(a,[])]);const ee=sn(e)===l;return this.processSegment(h,f,b,V,ee?at:l).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]))}))}}function W(n){const o=n.value.routeConfig;return o&&""===o.path&&void 0===o.redirectTo}function se(n){const o=[],e=new Set;for(const t of n){if(!W(t)){o.push(t);continue}const r=o.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):o.push(t)}for(const t of e){const r=se(t.children);o.push(new Hn(t.value,r))}return o.filter(t=>!e.has(t))}function st(n){let o=n;for(;o._sourceSegment;)o=o._sourceSegment;return o}function Lt(n){let o=n,e=o._segmentIndexShift??0;for(;o._sourceSegment;)o=o._sourceSegment,e+=o._segmentIndexShift??0;return e-1}function Gi(n){return n.data||{}}function nr(n){return n.resolve||{}}const mh=Symbol("RouteTitle");function f_(n){return"string"==typeof n.title||null===n.title}function hf(n){return(0,Dt.w)(o=>{const e=n(o);return e?(0,cn.D)(e).pipe((0,Qe.U)(()=>o)):(0,Ve.of)(o)})}let qa=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(l=>l.outlet===at);return t}getResolvedTitleForRoute(e){return e.data[mh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(ol)},providedIn:"root"}),n})(),ol=(()=>{class n extends qa{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ae))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class oA{}class cA extends class lA{shouldDetach(o){return!1}store(o,e){}shouldAttach(o){return!1}retrieve(o){return null}shouldReuseRoute(o,e){return o.routeConfig===e.routeConfig}}{}const pf=new i.OlP("",{providedIn:"root",factory:()=>({})}),gh=new i.OlP("ROUTES");let ff=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ve.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=mr(e.loadComponent()).pipe((0,Bt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Zt(()=>{this.componentLoaders.delete(e)})),r=new Vu(t,()=>new De.x).pipe(qo());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Qe.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let a,c,u=!1;Array.isArray(s)?c=s:(a=s.create(e).injector,c=xi(a.get(gh,[],i.XFs.Self|i.XFs.Optional)));return{routes:c.map(ih),injector:a}}),Zt(()=>{this.childrenLoaders.delete(t)})),d=new Vu(l,()=>new De.x).pipe(qo());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return mr(e()).pipe((0,rn.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,Ve.of)(t):(0,cn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uA{}class hA{shouldProcessUrl(o){return!0}extract(o){return o}merge(o,e){return o}}function c0(n){throw n}function pA(n,o,e){return o.parse("/")}const Nd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pc(){const n=(0,i.f3M)(Oa),o=(0,i.f3M)(cc),e=(0,i.f3M)(C.Ye),t=(0,i.f3M)(i.zs3),r=(0,i.f3M)(i.Sil),l=(0,i.f3M)(gh,{optional:!0})??[],d=(0,i.f3M)(pf,{optional:!0})??{},s=(0,i.f3M)(ol),a=(0,i.f3M)(qa,{optional:!0}),c=(0,i.f3M)(uA,{optional:!0}),u=(0,i.f3M)(oA,{optional:!0}),h=new Ri(null,n,o,e,t,r,xi(l));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),h.titleStrategy=a??s,function Wa(n,o){n.errorHandler&&(o.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(o.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(o.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(o.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(o.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(o.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(o.canceledNavigationResolution=n.canceledNavigationResolution)}(d,h),h}let Ri=(()=>{class n{constructor(e,t,r,l,d,s,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=c0,this.malformedUriErrorHandler=pA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ve.of)(void 0),this.urlHandlingStrategy=new hA,this.routeReuseStrategy=new cA,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(ff),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Md(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Qu(f)),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(a),this.currentUrlTree=function l_(){return new Ia(new Vt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ac(this.currentUrlTree,this.rootComponentType),this.transitions=new Hi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Gt.h)(r=>0!==r.id),(0,Qe.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Dt.w)(r=>{let l=!1,d=!1;return(0,Ve.of)(r).pipe((0,Bt.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Dt.w)(s=>{const a=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==a||a!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return mf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,Ve.of)(s).pipe((0,Dt.w)(h=>{const f=this.transitions.getValue();return t.next(new Cs(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?yi.E:Promise.resolve(h)}),function Fd(n,o,e,t){return(0,Dt.w)(r=>function hc(n,o,e,t,r){return new fh(n,o,e,t,r).apply()}(n,o,e,r.extractedUrl,t).pipe((0,Qe.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Bt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function pa(n,o,e,t,r,l){return(0,rn.z)(d=>function T(n,o,e,t,r,l,d="emptyOnly",s="legacy"){return new H(n,o,e,t,r,d,s,l).recognize().pipe((0,Dt.w)(a=>null===a?function Nt(n){return new nn.y(o=>o.error(n))}(new jd):(0,Ve.of)(a)))}(n,o,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,r,l).pipe((0,Qe.U)(s=>({...d,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Bt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"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 Jo(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,We=new Cs(f,this.serializeUrl(b),V,ee);t.next(We);const Pt=ac(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:Pt,urlAfterRedirects:b,extras:{...he,skipLocationChange:!1,replaceUrl:!1}},(0,Ve.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),yi.E}),(0,Bt.b)(s=>{const a=new Td(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(a)}),(0,Qe.U)(s=>r={...s,guards:tf(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Pi(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ve.of)({...e,guardsResult:!0}):function oh(n,o,e,t){return(0,cn.D)(n).pipe((0,rn.z)(r=>function sf(n,o,e,t,r){const l=o&&o.routeConfig?o.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ve.of)(!0);const d=l.map(s=>{const a=jt(s,o,r);return mr(function nf(n){return n&&za(n.canDeactivate)}(a)?a.canDeactivate(n,o,e,t):a(n,o,e,t)).pipe((0,er.P)())});return(0,Ve.of)(d).pipe(Ms())}(r.component,r.route,e,o,t)),(0,er.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,rn.z)(s=>s&&function u_(n){return"boolean"==typeof n}(s)?function lh(n,o,e,t){return(0,cn.D)(o).pipe((0,En.b)(r=>(0,Ra.z)(function rl(n,o){return null!==n&&o&&o(new Sd(n)),(0,Ve.of)(!0)}(r.route.parent,t),function br(n,o){return null!==n&&o&&o(new As(n)),(0,Ve.of)(!0)}(r.route,t),function af(n,o,e){const t=o[o.length-1],l=o.slice(0,o.length-1).reverse().map(d=>function nh(n){const o=n.routeConfig?n.routeConfig.canActivateChild:null;return o&&0!==o.length?{node:n,guards:o}:null}(d)).filter(d=>null!==d).map(d=>hr(()=>{const s=d.guards.map(a=>{const c=jt(a,d.node,e);return mr(function ir(n){return n&&za(n.canActivateChild)}(c)?c.canActivateChild(t,n):c(t,n)).pipe((0,er.P)())});return(0,Ve.of)(s).pipe(Ms())}));return(0,Ve.of)(l).pipe(Ms())}(n,r.path,e),function rf(n,o,e){const t=o.routeConfig?o.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ve.of)(!0);const r=t.map(l=>hr(()=>{const d=jt(l,o,e);return mr(function Od(n){return n&&za(n.canActivate)}(d)?d.canActivate(o,n):d(o,n)).pipe((0,er.P)())}));return(0,Ve.of)(r).pipe(Ms())}(n,r.route,e))),(0,er.P)(r=>!0!==r,!0))}(t,l,n,o):(0,Ve.of)(s)),(0,Qe.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,Bt.b)(s=>{if(r.guardsResult=s.guardsResult,Ba(s.guardsResult))throw Zp(0,s.guardsResult);const a=new xd(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(a)}),(0,Gt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),hf(s=>{if(s.guards.canActivateChecks.length)return(0,Ve.of)(s).pipe((0,Bt.b)(a=>{const c=new tc(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),(0,Dt.w)(a=>{let c=!1;return(0,Ve.of)(a).pipe(function p_(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ve.of)(e);let l=0;return(0,cn.D)(r).pipe((0,En.b)(d=>function sl(n,o,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!f_(r)&&(l[mh]=r.title),function rA(n,o,e,t){const r=function aA(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,Ve.of)({});const l={};return(0,cn.D)(r).pipe((0,rn.z)(d=>function sA(n,o,e,t){const r=jt(n,o,t);return mr(r.resolve?r.resolve(o,e):r(o,e))}(n[d],o,e,t).pipe((0,er.P)(),(0,Bt.b)(s=>{l[d]=s}))),$(1),(0,Kt.h)(l),(0,O.K)(d=>Ua(d)?yi.E:(0,pr._)(d)))}(l,n,o,t).pipe((0,Qe.U)(d=>(n._resolvedData=d,n.data=sc(n,e).resolve,r&&f_(r)&&(n.data[mh]=r.title),null)))}(d.route,t,n,o)),(0,Bt.b)(()=>l++),$(1),(0,rn.z)(d=>l===r.length?(0,Ve.of)(e):yi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Bt.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),(0,Bt.b)(a=>{const c=new ic(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}))}),hf(s=>{const a=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,Bt.b)(h=>{c.component=h}),(0,Qe.U)(()=>{})));for(const h of c.children)u.push(...a(h));return u};return(0,Pa.a)(a(s.targetSnapshot.root)).pipe((0,ye.d)(),(0,Ot.q)(1))}),hf(()=>this.afterPreactivation()),(0,Qe.U)(s=>{const a=function $p(n,o,e){const t=ei(n,o._root,e?e._root:void 0);return new Ed(t,o)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),(0,Bt.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,o,e)=>(0,Qe.U)(t=>(new uo(o,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,Bt.b)({next(){l=!0},complete(){l=!0}}),Zt(()=>{l||d||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,O.K)(s=>{if(d=!0,Qp(s)){Hd(s)||(this.navigated=!0,this.restoreHistory(r,!0));const a=new Yn(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(a),Hd(s)){const c=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mf(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const a=new Ju(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);t.next(a);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return yi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const s={...l};delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,l,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ih),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:a}=t,c=r||this.routerState.root,u=a?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),zp(c,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ba(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 __(n){for(let o=0;o{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 la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){if(this.disposed)return Promise.resolve(!1);let s,a,c;d?(s=d.resolve,a=d.reject,c=d.promise):c=new Promise((f,b)=>{s=f,a=b});const u=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...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){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Yn(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),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:function(){return pc()},providedIn:"root"}),n})();function mf(n){return"imperative"!==n}let fc=(()=>{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 De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),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})(),gf=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof la&&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:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(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:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),i.Y36(C.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})();class bh{}let u0=(()=>{class n{preload(e,t){return(0,Ve.of)(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fA=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Gt.h)(e=>e instanceof la),(0,En.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,i.MMx)(l.providers,e,`Route: ${l.path}`));const d=l._injector??e,s=l._loadedInjector??d;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?r.push(this.preloadConfig(d,l)):(l.children||l._loadedRoutes)&&r.push(this.processRoutes(s,l.children??l._loadedRoutes))}return(0,cn.D)(r).pipe((0,Ft.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ve.of)(null);const l=r.pipe((0,rn.z)(d=>null===d?(0,Ve.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,cn.D)([l,d]).pipe((0,Ft.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ri),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(bh),i.LFG(ff))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const bf=new i.OlP("");let mA=(()=>{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 Cs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof oo&&(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 oo(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 y_=new i.OlP("ROUTER_FORROOT_GUARD"),yf=new i.OlP(""),yh=[C.Ye,{provide:Oa,useClass:Cd},{provide:Ri,useFactory:pc},cc,{provide:zn,useFactory:function w_(n){return n.routerState.root},deps:[Ri]},ff];function wf(){return new i.PXZ("Router",Ri)}let wh=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[yh,[],Af(e),{provide:y_,useFactory:Cf,deps:[[Ri,new i.FiY,new i.tp0]]},{provide:pf,useValue:t||{}},t?.useHash?{provide:C.S$,useClass:C.Do}:{provide:C.S$,useClass:C.b0},{provide:bf,useFactory:()=>{const n=(0,i.f3M)(Ri),o=(0,i.f3M)(C.EM),e=(0,i.f3M)(pf);return e.scrollOffset&&o.setOffset(e.scrollOffset),new mA(n,o,e)}},t?.preloadingStrategy?x_(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:wf},t?.initialNavigation?bA(t):[],[{provide:A_,useFactory:_A},{provide:i.tb,multi:!0,useExisting:A_}]]}}static forChild(e){return{ngModule:n,providers:[Af(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(y_,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Cf(n){return"guarded"}function Af(n){return[{provide:gh,multi:!0,useValue:n}]}function _A(){const n=(0,i.f3M)(i.zs3);return o=>{const e=n.get(i.z2F);if(o!==e.components[0])return;const t=n.get(Ri),r=n.get(v_);1===n.get(T_)&&t.initialNavigation(),n.get(yf,null,i.XFs.Optional)?.setUpPreloading(),n.get(bf,null,i.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const A_=new i.OlP("");function bA(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ri);return()=>{n.setUpLocationChangeListener()}}},{provide:T_,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:T_,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const o=n.get(C.V_,Promise.resolve(null));let e=!1;return()=>o.then(()=>new Promise(r=>{const l=n.get(Ri),d=n.get(v_);(function t(r){n.get(Ri).events.pipe((0,Gt.h)(d=>d instanceof la||d instanceof Yn||d instanceof Ju),(0,Qe.U)(d=>d instanceof la||d instanceof Yn&&(0===d.code||1===d.code)&&null),(0,Gt.h)(d=>null!==d),(0,Ot.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||d.closed?(0,Ve.of)(void 0):d),l.initialNavigation()}))}}]:[]]}const v_=new i.OlP("",{factory:()=>new De.x}),T_=new i.OlP("",{providedIn:"root",factory:()=>1});function x_(n){return[fA,{provide:yf,useExisting:fA},{provide:bh,useExisting:n}]}let Ch;try{Ch=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ch=!1}let ll,Mi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,C.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&&!Ch)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ah=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function AA(){if(ll)return ll;if("object"!=typeof document||!document)return ll=new Set(Ah),ll;let n=document.createElement("input");return ll=new Set(Ah.filter(o=>(n.setAttribute("type",o),n.type===o))),ll}let zd,Ud,yr,mc;function fa(n){return function Tf(){if(null==zd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zd=!0}))}finally{zd=zd||!1}return zd}()?n:!!n.capture}function M_(){if(null==yr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return yr=!1,yr;if("scrollBehavior"in document.documentElement.style)yr=!0;else{const n=Element.prototype.scrollTo;yr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return yr}function cl(){if("object"!=typeof document||!document)return 0;if(null==Ud){const n=document.createElement("div"),o=n.style;n.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Ud=0,0===n.scrollLeft&&(n.scrollLeft=1,Ud=0===n.scrollLeft?1:2),n.remove()}return Ud}function gc(n){if(function vA(){if(null==mc){const n=typeof document<"u"?document.head:null;mc=!(!n||!n.createShadowRoot&&!n.attachShadow)}return mc}()){const o=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function Ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const o=n.shadowRoot.activeElement;if(o===n)break;n=o}return n}function wn(n){return n.composedPath?n.composedPath()[0]:n.target}function vh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $i(n,...o){return o.length?o.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var dl=x(8372);function Df(n){return(0,Gt.h)((o,e)=>n<=e)}function ul(n,o=ge.y){return n=n??W_,(0,Xn.e)((e,t)=>{let r,l=!0;e.subscribe((0,Dn.x)(t,d=>{const s=o(d);(l||!n(r,s))&&(l=!1,r=s,t.next(d))}))})}function W_(n,o){return n===o}var $_=x(5032);function Ke(n){return(0,Xn.e)((o,e)=>{(0,Ir.Xf)(n).subscribe((0,Dn.x)(e,()=>e.complete(),$_.Z)),!e.closed&&o.subscribe(e)})}function Fe(n){return null!=n&&"false"!=`${n}`}function Fi(n,o=0){return Z_(n)?Number(n):o}function Z_(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Ef(n){return Array.isArray(n)?n:[n]}function ji(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Zi(n){return n instanceof i.SBq?n.nativeElement:n}let Hf=(()=>{class n{create(e){return typeof MutationObserver>"u"?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})(),Q_=(()=>{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 nn.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 De.x,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(Hf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_c=(()=>{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=Fe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Fi(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,dl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Q_),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})(),bc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Hf]}),n})();const $d=new Set;let hl,Pf=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Rf}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function K_(n){if(!$d.has(n))try{hl||(hl=document.createElement("style"),hl.setAttribute("type","text/css"),document.head.appendChild(hl)),hl.sheet&&(hl.sheet.insertRule(`@media ${n} {body{ }}`,0),$d.add(n))}catch(o){console.error(o)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rf(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let yc=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return X_(Ef(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=X_(Ef(e)).map(d=>this._registerQuery(d).observable);let l=(0,Pa.a)(r);return l=(0,Ra.z)(l.pipe((0,Ot.q)(1)),l.pipe(Df(1),(0,dl.b)(0))),l.pipe((0,Qe.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:a,query:c})=>{s.matches=s.matches||a,s.breakpoints[c]=a}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new nn.y(d=>{const s=a=>this._zone.run(()=>d.next(a));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Et(t),(0,Qe.U)(({matches:d})=>({query:e,matches:d})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pf),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function X_(n){return n.map(o=>o.split(",")).reduce((o,e)=>o.concat(e)).map(o=>o.trim())}function wc(n,o){return(n.getAttribute(o)||"").match(/\S+/g)||[]}const XA="cdk-describedby-message",Zd="cdk-describedby-host";let Lf=0,If=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Lf++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Lf++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Of(t,r);"string"!=typeof t?(nb(t,this._id),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){if(!t||!this._isElementNode(e))return;const l=Of(t,r);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const d=this._messageRegistry.get(l);d&&0===d.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zd}="${this._id}"]`);for(let t=0;t0!=r.indexOf(XA));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function QA(n,o,e){const t=wc(n,o);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(o,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Zd,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function ib(n,o,e){const r=wc(n,o).filter(l=>l!=e.trim());r.length?n.setAttribute(o,r.join(" ")):n.removeAttribute(o)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Zd)}_isElementDescribedByMessage(e,t){const r=wc(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(C.K0),i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Of(n,o){return"string"==typeof n?`${o||""}/${n}`:n}function nb(n,o){n.id||(n.id=`${XA}-${o}-${Lf++}`)}class Wr{constructor(o){this._items=o,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=xt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,o instanceof i.n_E&&o.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=!0){return this._wrap=o,this}withVerticalOrientation(o=!0){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Bt.b)(e=>this._pressedLetters.push(e)),(0,dl.b)(o),(0,Gt.h)(()=>this._pressedLetters.length>0),(0,Qe.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!o[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||$i(o,"shiftKey"))&&(o.key&&1===o.key.length?this._letterKeyStream.next(o.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],o.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(o){const e=this._getItemsArray(),t="number"==typeof o?o:e.indexOf(o);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o)}_setActiveInWrapMode(o){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+o*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex+o,o)}_setActiveItemByIndex(o,e){const t=this._getItemsArray();if(t[o]){for(;this._skipPredicateFn(t[o]);)if(!t[o+=e])return;this.setActiveItem(o)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ev extends Wr{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles()}}class pl extends Wr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin)}}let Jd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function iv(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 tv(n){try{return n.frameElement}catch{return null}}(function ov(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Vf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Vf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function ab(n){let o=n.nodeName.toLowerCase(),e="input"===o&&n.type;return"text"===e||"password"===e||"select"===o||"textarea"===o}(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 sv(n){return!function nv(n){return function av(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function rb(n){let o=n.nodeName.toLowerCase();return"input"===o||"select"===o||"button"===o||"textarea"===o}(n)||function rv(n){return function kt(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Bf(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bf(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let o=n.getAttribute("tabindex");return!(!o||isNaN(parseInt(o,10)))}function Vf(n){if(!Bf(n))return null;const o=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}class sb{constructor(o,e,t,r,l=!1){this._element=o,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(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}destroy(){const o=this._startAnchor,e=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.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(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(o)))})}focusFirstTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(o)))})}focusLastTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(o)))})}_getRegionBoundary(o){const e=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return"start"==o?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(o),!!t}return e.focus(o),!0}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){const e=this._getRegionBoundary("start");return e&&e.focus(o),!!e}focusLastTabbableElement(o){const e=this._getRegionBoundary("end");return e&&e.focus(o),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;const e=o.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 o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,e){o?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}_executeOnStable(o){this._ngZone.isStable?o():this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(o)}}let Qd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new sb(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Jd),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ob=(()=>{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=Fe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Fe(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=Ds(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Za(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Eh(n){const o=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!o||-1!==o.identifier||null!=o.radiusX&&1!==o.radiusX||null!=o.radiusY&&1!==o.radiusY)}const Ff=new i.OlP("cdk-input-modality-detector-options"),jf={ignoreKeys:[18,17,224,91,16]},Kd=fa({passive:!0,capture:!0});let nS=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Hi(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(s=>s===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Za(d)?"keyboard":"mouse"),this._mostRecentTarget=wn(d))},this._onTouchstart=d=>{Eh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wn(d))},this._options={...jf,...l},this.modalityDetected=this._modality.pipe(Df(1)),this.modalityChanged=this.modalityDetected.pipe(ul()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Kd),r.addEventListener("mousedown",this._onMousedown,Kd),r.addEventListener("touchstart",this._onTouchstart,Kd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Kd),document.removeEventListener("mousedown",this._onMousedown,Kd),document.removeEventListener("touchstart",this._onTouchstart,Kd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Ff,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rS=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function dv(){return null}}),cb=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let aS=(()=>{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(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let 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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let c=wn(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=l,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const r=Zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ve.of)(null);const l=gc(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new De.x,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,a])=>this._originChanged(s,t,a)):(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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=wn(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,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(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,Hh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,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}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let d=0;d{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(An))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const db="cdk-high-contrast-black-on-white",Nf="cdk-high-contrast-white-on-black",Yf="cdk-high-contrast-active";let ub=(()=>{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(yc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,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}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yf,db,Nf),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yf,db):2===t&&e.add(Yf,Nf)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bc]}),n})();const uv=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function hv(){return(0,i.f3M)(C.K0)}}),hb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Si=(()=>{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 pv(n){const o=n?.toLowerCase()||"";return"auto"===o&&typeof navigator<"u"&&navigator?.language?hb.test(navigator.language)?"rtl":"ltr":"rtl"===o?"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(uv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function lS(n,o){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 Ac(n,o){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 fb=["*"];let Ph=(()=>{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})(),ma=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const gv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function mb(){return!0}});let ot=(()=>{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!vh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub),i.LFG(gv,8),i.LFG(C.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o,_o]}),n})();function sr(n){return class extends n{constructor(...o){super(...o),this._disabled=!1}get disabled(){return this._disabled}set disabled(o){this._disabled=Fe(o)}}}function Ja(n,o){return class extends n{constructor(...e){super(...e),this.defaultColor=o,this.color=o}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 Cr(n){return class extends n{constructor(...o){super(...o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(o){this._disableRipple=Fe(o)}}}function vc(n,o=0){return class extends n{constructor(...e){super(...e),this._tabIndex=o,this.defaultTabIndex=o}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Fi(e):this.defaultTabIndex}}}function Tc(n){return class extends n{constructor(...o){super(...o),this.errorState=!1}updateErrorState(){const o=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==o&&(this.errorState=l,this.stateChanges.next())}}}function eu(n){return class extends n{constructor(...o){super(...o),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new nn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(o){o.next(),o.complete()}}}const Hs=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Uf(){return(0,i.f3M)(i.soG)}});class wi{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return null==o||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),r=this.isValid(e);return t&&r?!this.compareDate(o,e):t==r}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}}const ga=new i.OlP("mat-date-formats"),bv=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gf(n,o){const e=Array(n);for(let t=0;t{class n extends wi{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 Gf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gf(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 Gf(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,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(bv.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(Hs,8),i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yv={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let bb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:_b}]}),n})(),wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ga,useValue:yv}],imports:[bb]}),n})(),fl=(()=>{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})(),qf=(()=>{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 tu(n,o,e){n.nativeElement.classList.toggle(o,e)}let xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();class dS{constructor(o,e,t,r=!1){this._renderer=o,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Cv={enterDuration:225,exitDuration:150},yb=fa({passive:!0}),Av=["mousedown","touchstart"],vv=["mouseup","mouseleave","touchend","touchcancel"];class Tv{constructor(o,e,t,r){this._target=o,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Zi(t))}fadeInRipple(o,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Cv,...t.animation};t.centered&&(o=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function hS(n,o,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(o-e.top),Math.abs(o-e.bottom));return Math.sqrt(t*t+r*r)}(o,e,r),s=o-r.left,a=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=a-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);const h=window.getComputedStyle(u),b=h.transitionDuration,V="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,ee=new dS(this,u,t,V);u.style.transform="scale3d(1, 1, 1)",ee.state=0,t.persistent||(this._mostRecentTransientRipple=ee);let he=null;return!V&&(c||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const We=()=>this._finishRippleTransition(ee),Pt=()=>this._destroyRipple(ee);u.addEventListener("transitionend",We),u.addEventListener("transitioncancel",Pt),he={onTransitionEnd:We,onTransitionCancel:Pt}}),this._activeRipples.set(ee,he),(V||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(o){if(2===o.state||3===o.state)return;const e=o.element,t={...Cv,...o.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",o.state=2,(o._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(o)}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut()})}setupTriggerEvents(o){const e=Zi(o);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Av))}handleEvent(o){"mousedown"===o.type?this._onMousedown(o):"touchstart"===o.type?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(o){0===o.state?this._startFadeOutTransition(o):2===o.state&&this._destroyRipple(o)}_startFadeOutTransition(o){const e=o===this._mostRecentTransientRipple,{persistent:t}=o.config;o.state=1,!t&&(!e||!this._isPointerDown)&&o.fadeOut()}_destroyRipple(o){const e=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=3,null!==e&&(o.element.removeEventListener("transitionend",e.onTransitionEnd),o.element.removeEventListener("transitioncancel",e.onTransitionCancel)),o.element.remove()}_onMousedown(o){const e=Za(o),t=this._lastTouchStartEvent&&Date.now(){!o.config.persistent&&(1===o.state||o.config.terminateOnPointerUp&&0===o.state)&&o.fadeOut()}))}_registerEvents(o){this._ngZone.runOutsideAngular(()=>{o.forEach(e=>{this._triggerElement.addEventListener(e,this,yb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Av.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}),this._pointerUpEventsRegistered&&vv.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}))}}const xv=new i.OlP("mat-ripple-global-options");let Ar=(()=>{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 Tv(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Mi),i.Y36(xv,8),i.Y36(i.QbO,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})(),un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})(),Rh=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),$f=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot]}),n})();const Zf=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),Ab=new i.OlP("MatOptgroup");let vb=0;class Sv{constructor(o,e=!1){this.source=o,this.isUserInput=e}}let Jf=(()=>{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-"+vb++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Fe(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)&&!$i(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 Sv(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})(),Mc=(()=>{class n extends Jf{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(Zf,8),i.Y36(Ab,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:fb,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,lS,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Ac,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))},dependencies:[Ar,C.O5,Rh],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function Qf(n,o,e){if(e.length){let t=o.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:[un,C.ez,ot,$f]}),n})();const Lh=["mat-button",""],Sc=["*"],Ih=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],iu=Ja(sr(Cr(class{constructor(n){this._elementRef=n}})));let Yt=(()=>{class n extends iu{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 Ih)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(An),i.Y36(i.QbO,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(Ar,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:Lh,ngContentSelectors:Sc,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)(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()))},dependencies:[Ar],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();var Xf=x(1144),ba=x(576),em=x(3268);const tm=["addListener","removeListener"],Hv=["addEventListener","removeEventListener"],pS=["on","off"];function Qa(n,o,e,t){if((0,ba.m)(e)&&(t=e,e=void 0),t)return Qa(n,o,e).pipe((0,em.Z)(t));const[r,l]=function Mb(n){return(0,ba.m)(n.addEventListener)&&(0,ba.m)(n.removeEventListener)}(n)?Hv.map(d=>s=>n[d](o,s,e)):function kv(n){return(0,ba.m)(n.addListener)&&(0,ba.m)(n.removeListener)}(n)?tm.map(im(n,o)):function xb(n){return(0,ba.m)(n.on)&&(0,ba.m)(n.off)}(n)?pS.map(im(n,o)):[];if(!r&&(0,Xf.z)(n))return(0,rn.z)(d=>Qa(d,o,e))((0,Ir.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new nn.y(d=>{const s=(...a)=>d.next(1l(s)})}function im(n,o){return e=>t=>n[e](o,t)}var Sb=x(4408);const vn={schedule(n){let o=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=vn;t&&(o=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=o(l=>{e=void 0,n(l)});return new xt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:o}=vn;return(o?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:o}=vn;return(o?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var Eb=x(7565);const Hb=new class fS extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Db extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=vn.requestAnimationFrame(()=>o.flush(void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(vn.cancelAnimationFrame(e),o._scheduled=void 0)}});let nm,Pb=1;const Oh={};function Rb(n){return n in Oh&&(delete Oh[n],!0)}const Lb={setImmediate(n){const o=Pb++;return Oh[o]=!0,nm||(nm=Promise.resolve()),nm.then(()=>Rb(o)&&n()),o},clearImmediate(n){Rb(n)}},{setImmediate:Ib,clearImmediate:Pv}=Lb,Bh={setImmediate(...n){const{delegate:o}=Bh;return(o?.setImmediate||Ib)(...n)},clearImmediate(n){const{delegate:o}=Bh;return(o?.clearImmediate||Pv)(n)},delegate:void 0},rm=new class Bb extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Ob extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=Bh.setImmediate(o.flush.bind(o,void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(Bh.clearImmediate(e),o._scheduled=void 0)}});var Vh=x(4986),am=x(2805);function Lv(n,o=Vh.z){return function Rv(n){return(0,Xn.e)((o,e)=>{let t=!1,r=null,l=null,d=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const c=r;r=null,e.next(c)}d&&e.complete()},a=()=>{l=null,d&&e.complete()};o.subscribe((0,Dn.x)(e,c=>{t=!0,r=c,l||(0,Ir.Xf)(n(c)).subscribe(l=(0,Dn.x)(e,s,a))},()=>{d=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,am.H)(n,o))}let yo=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new nn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Lv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ve.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,Gt.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(()=>Qa(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(Mi),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new nn.y(d=>this.ngZone.runOutsideAngular(()=>Qa(this.elementRef.nativeElement,"scroll").pipe(Ke(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!=cl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==cl()?e.left=e.right:1==cl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;M_()?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==cl()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==cl()?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(yo),i.Y36(i.R0b),i.Y36(Si,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 De.x,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(Lv(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(Mi),i.LFG(i.R0b),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ka=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),_l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o,Ka,_o,Ka]}),n})();class nu{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;null!=o&&(this._attachedHost=null,o.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(o){this._attachedHost=o}}class bl extends nu{constructor(o,e,t,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Co extends nu{constructor(o,e,t,r){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}}class Nv extends nu{constructor(o){super(),this.element=o instanceof i.SBq?o.nativeElement:o}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){return o instanceof bl?(this._attachedPortal=o,this.attachComponentPortal(o)):o instanceof Co?(this._attachedPortal=o,this.attachTemplatePortal(o)):this.attachDomPortal&&o instanceof Nv?(this._attachedPortal=o,this.attachDomPortal(o)):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(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class vS extends yl{constructor(o,e,t,r,l){super(),this.outletElement=o,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,a=this._document.createComment("dom-portal");s.parentNode.insertBefore(a,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=l}attachComponentPortal(o){const t=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component);let r;return o.viewContainerRef?(r=o.viewContainerRef.createComponent(t,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(o.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=o,r}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=o,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}}let xS=(()=>{class n extends Co{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})(),Xa=(()=>{class n extends yl{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,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Ao=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Ci=x(6451);const jh=M_();class Yv{constructor(o,e){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}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=ji(-this._previousScrollPosition.left),o.style.top=ji(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,t=o.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,o.classList.remove("cdk-global-scrollblock"),jh&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jh&&(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 zv{constructor(o,e,t,r){this._scrollDispatcher=o,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(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 e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-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 zb{enable(){}disable(){}attach(){}}function lm(n,o){return o.some(e=>n.bottome.bottom||n.righte.right)}function Ub(n,o){return o.some(e=>n.tope.bottom||n.lefte.right)}class Uv{constructor(o,e,t,r){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=r,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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();lm(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 Gv=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new zb,this.close=d=>new zv(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Yv(this._viewportRuler,this._document),this.reposition=d=>new Uv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yo),i.LFG(ya),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class vo{constructor(o){if(this.scrollStrategy=new zb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const e=Object.keys(o);for(const t of e)void 0!==o[t]&&(this[t]=o[t])}}}class ru{constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}}let Nh=(()=>{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qv=(()=>{class n extends Nh{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let d=l.length-1;d>-1;d--)if(l[d]._keydownEvents.observers.length>0){const s=l[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),es=(()=>{class n extends Nh{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=wn(l)},this._clickListener=l=>{const d=wn(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const u=a[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(d)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(Mi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),To=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||vh()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(o);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){const o=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,o&&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={...this._config,...o},this._updateElementSize()}setDirection(o){this._config={...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=ji(this._config.width),o.height=ji(this._config.height),o.minWidth=ji(this._config.minWidth),o.minHeight=ji(this._config.minHeight),o.maxWidth=ji(this._config.maxWidth),o.maxHeight=ji(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._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(o){if(this._animationsDisabled)return void this._disposeBackdrop(o);o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",this._backdropTransitionendHandler)}),o.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(o)},500))}}_toggleClasses(o,e,t){const r=Ef(e||[]).filter(l=>!!l);r.length&&(t?o.classList.add(...r):o.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe(Ke((0,Ci.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.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",this._backdropTransitionendHandler),o.remove(),this._backdropElement===o&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const xo="cdk-overlay-connected-position-bounding-box",Yh=/([A-Za-z%]+)$/;class vr{constructor(o,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new De.x,this._resizeSubscription=xt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(o)}get positions(){return this._preferredPositions}attach(o){this._validatePositions(),o.hostElement.classList.add(xo),this._overlayRef=o,this._boundingBox=o.hostElement,this._pane=o.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let a=this._getOriginPoint(o,r,s),c=this._getOverlayPoint(a,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!d||d.overlayFit.visibleAreaa&&(a=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&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xo),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 e=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,e)}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,e,t){let r,l;if("center"==t.originX)r=o.left+o.width/2;else{const d=this._isRtl()?o.right:o.left,s=this._isRtl()?o.left:o.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?o.top+o.height/2:"top"==t.originY?o.top:o.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(o,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:o.x+r,y:o.y+l}}_getOverlayFit(o,e,t,r){const l=Cl(e);let{x:d,y:s}=o,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(d+=a),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(o,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=wl(this._overlayRef.getConfig().minHeight),s=wl(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=s&&s<=l;return(o.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(o,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const r=Cl(e),l=this._viewportRect,d=Math.max(o.x+r.width-l.width,0),s=Math.max(o.y+r.height-l.height,0),a=Math.max(l.top-t.top-o.y,0),c=Math.max(l.left-t.left-o.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:o.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=o.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-o.x+this._viewportMargin,u=o.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=o.x,u=t.right-o.x;else{const b=Math.min(t.right-o.x+t.left,o.x),V=this._lastBoundingBoxSize.width;u=2*b,h=o.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=o.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(o,e){const t=this._calculateBoundingBoxRect(o,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=ji(t.height),r.top=ji(t.top),r.bottom=ji(t.bottom),r.width=ji(t.width),r.left=ji(t.left),r.right=ji(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=ji(l)),d&&(r.maxWidth=ji(d))}this._lastBoundingBoxSize=t,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ps(t,this._getExactOverlayY(e,o,u)),Ps(t,this._getExactOverlayX(e,o,u))}else t.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=ji(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=ji(d.maxWidth):l&&(t.maxWidth="")),Ps(this._pane.style,t)}_getExactOverlayY(o,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===o.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=ji(l.y),r}_getExactOverlayX(o,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=ji(l.x),r}_getScrollVisibility(){const o=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ub(o,t),isOriginOutsideView:lm(o,t),isOverlayClipped:Ub(e,t),isOverlayOutsideView:lm(e,t)}}_subtractOverflows(o,...e){return e.reduce((t,r)=>t-Math.max(r,0),o)}_getNarrowedViewportRect(){const o=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+o-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:o-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,e){return"x"===e?o.offsetX??this._offsetX:o.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&Ef(o).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof i.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const e=o.width||0,t=o.height||0;return{top:o.y,bottom:o.y+t,left:o.x,right:o.x+e,height:t,width:e}}}function Ps(n,o){for(let e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);return n}function wl(n){if("number"!=typeof n&&null!=n){const[o,e]=n.split(Yh);return e&&"px"!==e?null:parseFloat(o)}return n||null}function Cl(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 Al="cdk-global-overlay-wrapper";class Hc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(o){const e=o.getConfig();this._overlayRef=o,this._width&&!e.width&&o.updateSize({width:this._width}),this._height&&!e.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(Al),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._xOffset=o,this._xPosition="left",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._xOffset=o,this._xPosition="right",this}start(o=""){return this._xOffset=o,this._xPosition="start",this}end(o=""){return this._xOffset=o,this._xPosition="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._xPosition="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,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,a=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",V="",ee="";a?ee="flex-start":"center"===u?(ee="center",f?V=h:b=h):f?"left"===u||"end"===u?(ee="flex-end",b=h):("right"===u||"start"===u)&&(ee="flex-start",V=h):"left"===u||"start"===u?(ee="flex-start",b=h):("right"===u||"end"===u)&&(ee="flex-end",V=h),o.position=this._cssPosition,o.marginLeft=a?"0":b,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=a?"0":V,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Al),t.justifyContent=t.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let kc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Hc}flexibleConnectedTo(e){return new vr(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ya),i.LFG(C.K0),i.LFG(Mi),i.LFG(To))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pc=0,hn=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=a,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new vo(e);return d.direction=d.direction||this._directionality.value,new on(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Pc++,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 vS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gv),i.LFG(To),i.LFG(i._Vd),i.LFG(kc),i.LFG(qv),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Si),i.LFG(C.Ye),i.LFG(es),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Gb=[{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"}],cm=new i.OlP("cdk-connected-overlay-scroll-strategy");let dm=(()=>{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})(),um=(()=>{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=xt.w0.EMPTY,this._attachSubscription=xt.w0.EMPTY,this._detachSubscription=xt.w0.EMPTY,this._positionSubscription=xt.w0.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 Co(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=Fe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fe(e)}get push(){return this._push}set push(e){this._push=Fe(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=Gb);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&&!$i(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 vo({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 dm?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(pi(()=>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(hn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(cm),i.Y36(Si,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 Wb={provide:cm,deps:[hn],useFactory:function qb(n){return()=>n.scrollStrategies.reposition()}};let vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hn,Wb],imports:[_o,Ao,_l,_l]}),n})();class hm{}const Rs="*";function hi(n,o){return{type:7,name:n,definitions:o,options:{}}}function yt(n,o=null){return{type:4,styles:o,timings:n}}function zh(n,o=null){return{type:3,steps:n,options:o}}function pm(n,o=null){return{type:2,steps:n,options:o}}function Pe(n){return{type:6,styles:n,offset:null}}function Mt(n,o,e){return{type:0,name:n,styles:o,options:e}}function Tl(n){return{type:5,steps:n}}function _t(n,o,e=null){return{type:1,expr:n,animation:o,options:e}}function Rc(n=null){return{type:9,options:n}}function Pn(n,o,e=null){return{type:11,selector:n,animation:o,options:e}}function Uh(n){Promise.resolve(null).then(n)}class Lc{constructor(o=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=o+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Uh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gh{constructor(o){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=o;let e=0,t=0,r=0;const l=this.players.length;0==l?Uh(()=>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(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){const e=o*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const o=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=o?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const $b=["connectionContainer"],gm=["inputContainer"],_m=["label"];function Zv(n,o){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function Zb(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Jb(n,o){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 Qb(n,o){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function Kb(n,o){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Jv(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,Jb,4,1,"ng-container",12),i.YNc(3,Qb,1,0,"ng-content",12),i.YNc(4,Kb,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 Xb(n,o){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function ey(n,o){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 bm(n,o){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 ym(n,o){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 ty(n,o){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,ym,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 iy=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ny=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ry=0;const wm=new i.OlP("MatError");let ts=(()=>{class n{constructor(e,t){this.id="mat-error-"+ry++,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:wm,useExisting:n}])]}),n})();const ay={transitionMessages:hi("transitionMessages",[Mt("enter",Pe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Pe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),sy=0;const oy=new i.OlP("MatHint");let pn=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+sy++}}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:oy,useExisting:n}])]}),n})(),wa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Qv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Kv=new i.OlP("MatPrefix"),ly=new i.OlP("MatSuffix");let Wh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:ly,useExisting:n}])]}),n})(),Cm=0;const eT=Ja(class{constructor(n){this._elementRef=n}},"primary"),dy=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$h=new i.OlP("MatFormField");let Gn=(()=>{class n extends eT{constructor(e,t,r,l,d,s,a){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 De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Cm++,this._labelId="mat-form-field-label-"+Cm++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fe(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(Et(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ci.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Et(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Et(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Qa(this._label.nativeElement,"transitionend").pipe((0,Ot.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:[C.ez,ot,bc,ot]}),n})();function Vc(n){return n&&"function"==typeof n.connect}class uy{applyChanges(o,e,t,r,l){o.forEachOperation((d,s,a)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,a);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==a?(e.remove(s),u=3):(c=e.get(s),e.move(c,a),u=2);l&&l({context:c?.context,operation:u,record:d})})}detach(){}}class si{constructor(o=!1,e,t=!0,r){this._multiple=o,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(o?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,t=new Set(o);o.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,o))return!0;return!1}return this._selection.has(o)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let Tr=(()=>{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 Fc=new i.OlP("_ViewRepeater");var hy=x(4742),tT=x(1810);function Tm(...n){const o=(0,fr.jO)(n),{args:e,keys:t}=(0,hy.D)(n),r=new nn.y(l=>{const{length:d}=e;if(!d)return void l.complete();const s=new Array(d);let a=d,c=d;for(let u=0;u{h||(h=!0,c--),s[u]=f},()=>a--,void 0,()=>{(!a||!h)&&(c||l.next(t?(0,tT.n)(t,s):s),l.complete())}))}});return o?r.pipe((0,em.Z)(o)):r}let py=(()=>{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})(),xl=(()=>{class n extends py{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Tn=new i.OlP("NgValueAccessor"),my={provide:Tn,useExisting:(0,i.Gpc)(()=>Rn),multi:!0},gy=new i.OlP("CompositionEventMode");let Rn=(()=>{class n extends py{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iT(){const n=(0,C.q)()?(0,C.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gy,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([my]),i.qOj]}),n})();function Mo(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function xm(n){return null!=n&&"number"==typeof n.length}const ln=new i.OlP("NgValidators"),ns=new i.OlP("NgAsyncValidators"),Jh=/^(?=.{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 Li{static min(o){return function Mm(n){return o=>{if(Mo(o.value)||Mo(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e{if(Mo(o.value)||Mo(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}(o)}static required(o){return Qh(o)}static requiredTrue(o){return function Dm(n){return!0===n.value?null:{required:!0}}(o)}static email(o){return function Em(n){return Mo(n.value)||Jh.test(n.value)?null:{email:!0}}(o)}static minLength(o){return function Hm(n){return o=>Mo(o.value)||!xm(o.value)?null:o.value.lengthxm(o.value)&&o.value.length>n?{maxlength:{requiredLength:n,actualLength:o.value.length}}:null}(o)}static pattern(o){return function Pm(n){if(!n)return Kh;let o,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(Mo(t.value))return null;const r=t.value;return o.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(o)}static nullValidator(o){return null}static compose(o){return Ay(o)}static composeAsync(o){return vy(o)}}function Qh(n){return Mo(n.value)?{required:!0}:null}function Kh(n){return null}function _y(n){return null!=n}function by(n){return(0,i.QGY)(n)?(0,cn.D)(n):n}function yy(n){let o={};return n.forEach(e=>{o=null!=e?{...o,...e}:o}),0===Object.keys(o).length?null:o}function wy(n,o){return o.map(e=>e(n))}function Cy(n){return n.map(o=>function nT(n){return!n.validate}(o)?o:e=>o.validate(e))}function Ay(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return yy(wy(e,o))}}function Rm(n){return null!=n?Ay(Cy(n)):null}function vy(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return Tm(wy(e,o).map(by)).pipe((0,Qe.U)(yy))}}function Lm(n){return null!=n?vy(Cy(n)):null}function Ty(n,o){return null===n?[o]:Array.isArray(n)?[...n,o]:[n,o]}function xy(n){return n._rawValidators}function My(n){return n._rawAsyncValidators}function Im(n){return n?Array.isArray(n)?n:[n]:[]}function Xh(n,o){return Array.isArray(n)?n.includes(o):n===o}function Sy(n,o){const e=Im(o);return Im(n).forEach(r=>{Xh(e,r)||e.push(r)}),e}function Om(n,o){return Im(o).filter(e=>!Xh(n,e))}class Bm{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(o){this._rawValidators=o||[],this._composedValidatorFn=Rm(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Lm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o){this.control&&this.control.reset(o)}hasError(o,e){return!!this.control&&this.control.hasError(o,e)}getError(o,e){return this.control?this.control.getError(o,e):null}}class Ln extends Bm{get formDirective(){return null}get path(){return null}}class $r extends Bm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Vm{constructor(o){this._cd=o}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qn=(()=>{class n extends Vm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($r,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Fm=(()=>{class n extends Vm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,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.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const So="VALID",Sl="INVALID",_i="PENDING",ep="DISABLED";function tp(n){return(du(n)?n.validators:n)||null}function Ym(n){return Array.isArray(n)?Rm(n):n||null}function zm(n,o){return(du(o)?o.asyncValidators:n)||null}function Um(n){return Array.isArray(n)?Lm(n):n||null}function du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Gm(n,o,e){const t=n.controls;if(!(o?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function qm(n,o,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class ip{constructor(o,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=o,this._rawAsyncValidators=e,this._composedValidatorFn=Ym(this._rawValidators),this._composedAsyncValidatorFn=Um(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get valid(){return this.status===So}get invalid(){return this.status===Sl}get pending(){return this.status==_i}get disabled(){return this.status===ep}get enabled(){return this.status!==ep}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._rawValidators=o,this._composedValidatorFn=Ym(o)}setAsyncValidators(o){this._rawAsyncValidators=o,this._composedAsyncValidatorFn=Um(o)}addValidators(o){this.setValidators(Sy(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Sy(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Om(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Om(o,this._rawAsyncValidators))}hasValidator(o){return Xh(this._rawValidators,o)}hasAsyncValidator(o){return Xh(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){this.touched=!0,this._parent&&!o.onlySelf&&this._parent.markAsTouched(o)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(o=>o.markAllAsTouched())}markAsUntouched(o={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}markAsDirty(o={}){this.pristine=!1,this._parent&&!o.onlySelf&&this._parent.markAsDirty(o)}markAsPristine(o={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}markAsPending(o={}){this.status=_i,!1!==o.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!o.onlySelf&&this._parent.markAsPending(o)}disable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=ep,this.errors=null,this._forEachChild(t=>{t.disable({...o,onlySelf:!0})}),this._updateValue(),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=So,this._forEachChild(t=>{t.enable({...o,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===So||this.status===_i)&&this._runAsyncValidator(o.emitEvent)),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(o)}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ep:So}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o){if(this.asyncValidator){this.status=_i,this._hasOwnPendingAsyncValidator=!0;const e=by(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:o})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(!1!==e.emitEvent)}get(o){let e=o;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(o,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(o)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ep:this.errors?Sl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_i)?_i:this._anyControlsHaveStatus(Sl)?Sl:So}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o={}){this.pristine=!this._anyControlsDirty(),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}_updateTouched(o={}){this.touched=this._anyControlsTouched(),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){du(o)&&null!=o.updateOn&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(o){return null}}class np extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){qm(this,0,o),Object.keys(o).forEach(t=>{Gm(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(Object.keys(o).forEach(t=>{const r=this.controls[t];r&&r.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}}function ap(n,o){return[...o.path,n]}function Do(n,o){Wm(n,o),o.valueAccessor.writeValue(n.value),n.disabled&&o.valueAccessor.setDisabledState?.(!0),function pu(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ky(n,o)})}(n,o),function pT(n,o){const e=(t,r)=>{o.valueAccessor.writeValue(t),r&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,o),function hT(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ky(n,o),"submit"!==n.updateOn&&n.markAsTouched()})}(n,o),function Hy(n,o){if(o.valueAccessor.setDisabledState){const e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,o)}function uu(n,o,e=!0){const t=()=>{};o.valueAccessor&&(o.valueAccessor.registerOnChange(t),o.valueAccessor.registerOnTouched(t)),Eo(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function hu(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Wm(n,o){const e=xy(n);null!==o.validator?n.setValidators(Ty(e,o.validator)):"function"==typeof e&&n.setValidators([e]);const t=My(n);null!==o.asyncValidator?n.setAsyncValidators(Ty(t,o.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();hu(o._rawValidators,r),hu(o._rawAsyncValidators,r)}function Eo(n,o){let e=!1;if(null!==n){if(null!==o.validator){const r=xy(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==o.asyncValidator){const r=My(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return hu(o._rawValidators,t),hu(o._rawAsyncValidators,t),e}function ky(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function $m(n,o){Wm(n,o)}function Jm(n,o){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(o,e.currentValue)}function gT(n,o){n._syncPendingControls(),o.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ry(n,o){if(!o)return null;let e,t,r;return Array.isArray(o),o.forEach(l=>{l.constructor===Rn?e=l:function OS(n){return Object.getPrototypeOf(n.constructor)===xl}(l)?t=l:r=l}),r||t||e||null}const sp={provide:Ln,useExisting:(0,i.Gpc)(()=>Dl)},fu=(()=>Promise.resolve(null))();let Dl=(()=>{class n extends Ln{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new np({},Rm(e),Lm(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Do(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path),r=new np({});$m(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){fu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,gT(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(ln,10),i.Y36(ns,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([sp]),i.qOj]}),n})();function Qm(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}function Yc(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const zc=class extends ip{constructor(o=null,e,t){super(tp(e),zm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Yc(o)?o.value:o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Qm(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Qm(this._onDisabledChange,o)}_forEachChild(o){}_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(o){Yc(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},Ji=zc,Oy={provide:$r,useExisting:(0,i.Gpc)(()=>El)},By=(()=>Promise.resolve(null))();let El=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new zc,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Ry(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),Jm(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(){Do(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){By.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);By.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ap(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,9),i.Y36(ln,10),i.Y36(ns,10),i.Y36(Tn,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([Oy]),i.qOj,i.TTD]}),n})(),Vy=(()=>{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})(),Xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const mu=new i.OlP("NgModelWithFormControlWarning"),CT={provide:$r,useExisting:(0,i.Gpc)(()=>xr)};let xr=(()=>{class n extends $r{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=Ry(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&uu(t,this,!1),Do(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Jm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uu(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(ln,10),i.Y36(ns,10),i.Y36(Tn,10),i.Y36(mu,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([CT]),i.qOj,i.TTD]}),n})();const AT={provide:Ln,useExisting:(0,i.Gpc)(()=>Hl)};let Hl=(()=>{class n extends Ln{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&&(Eo(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 Do(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){uu(e.control||null,e,!1),function BS(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,gT(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&&(uu(t||null,e),(n=>n instanceof zc)(r)&&(Do(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);$m(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Py(n,o){return Eo(n,o)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wm(this.form,this),this._oldForm&&Eo(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ns,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([AT]),i.qOj,i.TTD]}),n})();const xT={provide:$r,useExisting:(0,i.Gpc)(()=>op)};let op=(()=>{class n extends $r{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=Ry(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jm(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 ap(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,13),i.Y36(ln,10),i.Y36(ns,10),i.Y36(Tn,10),i.Y36(mu,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([xT]),i.qOj,i.TTD]}),n})(),Is=(()=>{class n{constructor(){this._validator=Kh}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):Kh,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 HT={provide:ln,useExisting:(0,i.Gpc)(()=>rs),multi:!0};let rs=(()=>{class n extends Is{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>Qh}enabled(e){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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([HT]),i.qOj]}),n})(),Xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xm]}),n})(),cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})(),Ho=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:mu,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})();class LT extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){this.controls.push(o),this._registerControl(o),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let r=this._adjustIndex(o);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){qm(this,0,o),o.forEach((t,r)=>{Gm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(o.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(const o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}}function ew(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let qS=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return ew(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new np(r,l)}control(e,t,r){let l={};return this.useNonNullable?(ew(t)?l=t:(l.validators=t,l.asyncValidators=r),new zc(e,{...l,nonNullable:!0})):new zc(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new LT(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zc||e instanceof ip?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:Ho}),n})(),OT=(()=>{class n extends qS{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ho}),n})();const tw=["trigger"],iw=["panel"];function nw(n,o){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 BT(n,o){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 VT(n,o){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function FT(n,o){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,BT,2,1,"span",10),i.YNc(2,VT,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 jT(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),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 NT=[[["mat-select-trigger"]],"*"],YT=["mat-select-trigger","*"],rw={transformPanelWrap:hi("transformPanelWrap",[_t("* => void",Pn("@transformPanel",[Rc()],{optional:!0}))]),transformPanel:hi("transformPanel",[Mt("void",Pe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Mt("showing",Pe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Mt("showing-multiple",Pe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",yt("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))])};let dg=0;const ug=new i.OlP("mat-select-scroll-strategy"),WT=new i.OlP("MAT_SELECT_CONFIG"),$T={provide:ug,deps:[hn],useFactory:function sw(n){return()=>n.scrollStrategies.reposition()}};class _u{constructor(o,e){this.source=o,this.value=e}}const ZT=Cr(vc(sr(Tc(class{constructor(n,o,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=o,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),hg=new i.OlP("MatSelectTrigger");let JT=(()=>{class n extends ZT{constructor(e,t,r,l,d,s,a,c,u,h,f,b,V,ee){super(d,l,a,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=(he,We)=>he===We,this._uid="mat-select-"+dg++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dg++,this._panelDoneAnimatingStream=new De.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=hr(()=>{const he=this.options;return he?he.changes.pipe(Et(he),(0,Dt.w)(()=>(0,Ci.T)(...he.map(We=>We.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ot.q)(1),(0,Dt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Gt.h)(he=>he),(0,Qe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Gt.h)(he=>!he),(0,Qe.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=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(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Fe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Fi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new si(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ul(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Et(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!$i(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.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||$i(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(a=>!a.disabled&&!a.selected);this.options.forEach(a=>{a.disabled||(s?a.select():a.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,Ot.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ev(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Ci.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ci.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(fl),i.Y36(i.SBq),i.Y36(Si,8),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36($h,8),i.Y36($r,10),i.$8M("tabindex"),i.Y36(ug),i.Y36(aS),i.Y36(WT,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(tw,5),i.Gf(iw,5),i.Gf(um,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:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ko=(()=>{class n extends JT{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,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(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Ot.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=Qf(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Dv(n,o,e,t){return ne+t?Math.max(0,n-t+o):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 _u(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)),a=e.right+d-t.width+(r?0:l);s>0?d+=s+8:a>0&&(d-=a+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 a;return this.disableOptionCentering?0:(a=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*a-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+=Qf(s,this.options,this.optionGroups);const a=r/2;this._scrollTop=this._calculateOverlayScroll(s,a,d),this._offsetY=this._calculateOverlayOffsetY(s,a,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 o;return function(t){return(o||(o=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,hg,5),i.Suo(r,Mc,5),i.Suo(r,Ab,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:19,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-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:Ic,useExisting:n},{provide:Zf,useExisting:n}]),i.qOj],ngContentSelectors:YT,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(NT),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,nw,2,1,"span",3),i.YNc(5,FT,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,jT,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)}},dependencies:[C.mk,C.RF,C.n9,C.ED,um,dm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[rw.transformPanelWrap,rw.transformPanel]},changeDetection:0}),n})(),Po=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$T],imports:[C.ez,vl,Kf,ot,Ka,Bc,Kf,ot]}),n})();const QT=["tooltip"],bu="tooltip-panel",yu=fa({passive:!0}),pg=new i.OlP("mat-tooltip-scroll-strategy"),fg={provide:pg,deps:[hn],useFactory:function ow(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},lw=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ex(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tx=(()=>{class n{constructor(e,t,r,l,d,s,a,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=a,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Fi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Fi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,yu)}),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 bl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${bu}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!$i(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...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,Ot.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY: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 a=`${this._cssClassPrefix}-${bu}-`;s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,yu)})}_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})(),$c=(()=>{class n extends tx{constructor(e,t,r,l,d,s,a,c,u,h,f,b){super(e,t,r,l,d,s,a,c,u,h,f,b),this._tooltipComponent=gg}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(yo),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Mi),i.Y36(If),i.Y36(An),i.Y36(pg),i.Y36(Si,8),i.Y36(lw,8),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),mg=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),gg=(()=>{class n extends mg{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(yc),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(QT,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[C.mk,C.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),Zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fg],imports:[kh,C.ez,vl,ot,ot,Ka]}),n})();function _g(n,o){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function ix(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,_g,2,2,"mat-option",18),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)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function nx(n,o){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 rx(n,o){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,ix,3,8,"mat-form-field",14),i.YNc(4,nx,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 ax(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),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 dw(n,o){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),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 Jc=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const 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 hw={provide:Jc,deps:[[new i.FiY,new i.tp0,Jc]],useFactory:function uw(n){return n||new Jc}},ox=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),fw=sr(eu(class{}));let mw=(()=>{class n extends fw{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:a}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=a&&(this._showFirstLastButtons=a)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Fi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Fi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Fi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Fi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Fe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Fe(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",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),gw=(()=>{class n extends mw{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(Jc),i.Y36(i.sBO),i.Y36(ox,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","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,rx,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,ax,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.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.YNc(13,dw,3,5,"button",11),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))},dependencies:[C.sg,C.O5,Yt,Gn,ko,Mc,$c],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hw],imports:[C.ez,_a,Po,Zc,ot]}),n})();var bg=x(1005);const Wn=["mat-menu-item",""];function Qc(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const _w=["*"];function lx(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),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 yg={transformMenu:hi("transformMenu",[Mt("void",Pe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Pe({opacity:1,transform:"scale(1)"}))),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))]),fadeInItems:hi("fadeInItems",[Mt("showing",Pe({opacity:1})),_t("void => *",[Pe({opacity:0}),yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},bw=new i.OlP("MatMenuContent"),wg=new i.OlP("MAT_MENU_PANEL"),ux=Cr(sr(class{}));let as=(()=>{class n extends ux{constructor(e,t,r,l,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=xt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,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-"+Cw++}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=Fe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(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 pl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(e=>(0,Ci.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),l=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[l]&&!r[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(t=>(0,Ci.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:$i(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,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,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Et(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(ww),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bw,5),i.Suo(r,as,5),i.Suo(r,as,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})(),Cu=(()=>{class n extends Kc{constructor(e,t,r,l){super(e,t,r,l),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(ww),i.Y36(i.sBO))},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:wg,useExisting:n}]),i.qOj],ngContentSelectors:_w,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,lx,3,6,"ng-template"))},dependencies:[C.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[yg.transformMenu,yg.fadeInItems]},changeDetection:0}),n})();const pp=new i.OlP("mat-menu-scroll-strategy"),Aw={provide:pp,deps:[hn],useFactory:function KS(n){return()=>n.scrollStrategies.reposition()}},Ag=fa({passive:!0});let Xc=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=a,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xt.w0.EMPTY,this._hoverSubscription=xt.w0.EMPTY,this._menuCloseSubscription=xt.w0.EMPTY,this._handleTouchStart=h=>{Eh(h)||(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 Kc?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ag),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ag),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Kc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Kc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Gt.h)(r=>"void"===r.toState),(0,Ot.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new vo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",d="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,d)):e.setPositionClasses(l,d)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[d,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[a,c]=[d,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(a="top"===d?"bottom":"top",c="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:a,overlayX:u,overlayY:d,offsetY:f},{originX:l,originY:a,overlayX:h,overlayY:d,offsetY:f},{originX:r,originY:c,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:c,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ve.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Gt.h)(d=>d!==this._menuItemInstance),(0,Gt.h)(()=>this._menuOpen)):(0,Ve.of)();return(0,Ci.T)(e,r,l,t)}_handleMousedown(e){Za(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,Gt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,bg.g)(0,rm)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Kc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ot.q)(1),(0,bg.g)(0,rm),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Co(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pp),i.Y36(wg,8),i.Y36(as,10),i.Y36(Si,8),i.Y36(An),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,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-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),vw=(()=>{class n extends Xc{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Aw],imports:[C.ez,ot,un,vl,Ka,ot]}),n})();var fp=x(3099);const eD=["*"];let mp;function vu(n){return function tD(){if(void 0===mp&&(mp=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(mp=n.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return mp}()?.createHTML(n)||n}function Tw(n){return Error(`Unable to find icon with the name "${n}"`)}function vg(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Tg(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Pl{constructor(o,e,t){this.url=o,this.svgText=e,this.options=t}}let Ro=(()=>{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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Pl(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 Tg(r);const s=vu(d);return this._addSvgIconConfig(e,t,new Pl("",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 Pl(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Tg(t);const d=vu(l);return this._addSvgIconSetConfig(e,new Pl("",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 vg(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ve.of)(gp(r)):this._loadSvgIconFromConfig(new Pl(e,null)).pipe((0,Bt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Qe.U)(l=>gp(l)))}getNamedSvgIcon(e,t=""){const r=xg(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,pr._)(Tw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ve.of)(gp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Qe.U)(t=>gp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ve.of)(r):Tm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,O.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,Ve.of)(null)})))).pipe((0,Qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Tw(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,Bt.b)(t=>e.svgText=t),(0,Qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ve.of)(null):this._fetchIcon(e).pipe((0,Bt.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(vu(""));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(vu("")),r=e.attributes;for(let l=0;lvu(c)),Zt(()=>this._inProgressUrlFetches.delete(d)),(0,fp.B)());return this._inProgressUrlFetches.set(d,a),a}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(xg(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;ro?o.pathname+o.search:""}}}),Hw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],fx=Hw.map(n=>`[${n}]`).join(", "),nD=/^url\(['"]?#(.*?)['"]?\)$/;let Ii=(()=>{class n extends Mw{constructor(e,t,r,l,d,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=xt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Fe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(fx),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],a=s.getAttribute(d),c=a?a.match(nD):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,Ot.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(Ro),i.$8M("aria-hidden"),i.Y36(Dw),i.Y36(i.qLn),i.Y36(Sw,8))},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:eD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),Rl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function Bs(n){return!!n&&(n instanceof nn.y||(0,ba.m)(n.lift)&&(0,ba.m)(n.subscribe))}var rD=x(6063);class aD extends De.x{constructor(o=1/0,e=1/0,t=rD.l){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:d}=this;e||(t.push(o),!r&&t.push(l.now()+d)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let d=0;dnew aD(t,o,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class _p{}let gx=(()=>{class n extends _p{getTranslation(e){return(0,Ve.of)({})}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class kw{}let Tu=(()=>{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 Mg(n,o){if(n===o)return!0;if(null===n||null===o)return!1;if(n!=n&&o!=o)return!0;let r,l,d,e=typeof n;if(e==typeof o&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(o))return!1;for(l in d=Object.create(null),n){if(!Mg(n[l],o[l]))return!1;d[l]=!0}for(l in o)if(!(l in d)&&typeof o[l]<"u")return!1;return!0}if(!Array.isArray(o))return!1;if((r=n.length)==o.length){for(l=0;l{ed(o[t])?t in n?e[t]=Sg(n[t],o[t]):Object.assign(e,{[t]:o[t]}):Object.assign(e,{[t]:o[t]})}),e}class xu{}let _x=(()=>{class n extends xu{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(),!Vs(e)||!Vs(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 Vs(d)?d:r}):e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class td{}let Dg=(()=>{class n extends td{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Pw{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 bp=new i.OlP("USE_STORE"),Rw=new i.OlP("USE_DEFAULT_LANG"),Eg=new i.OlP("DEFAULT_LANGUAGE"),Hg=new i.OlP("USE_EXTEND");let Yi=(()=>{class n{constructor(e,t,r,l,d,s=!0,a=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=a,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ve.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ve.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(mx(1),(0,Ot.q)(1));return this.loadingTranslations=t.pipe((0,Qe.U)(r=>this.compiler.compileTranslations(r,e)),mx(1),(0,Ot.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Sg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},s=!1;for(let a of t)d[a]=this.getParsedResult(e,a,r),Bs(d[a])&&(s=!0);return s?Tm(t.map(c=>Bs(d[c])?d[c]:(0,Ve.of)(d[c]))).pipe((0,Qe.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)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let d={key:t,translateService:this};typeof r<"u"&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return typeof l<"u"?l:t}get(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,En.b)(r=>Bs(r=this.getParsedResult(r,e,t))?r:(0,Ve.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Bs(r)?r:(0,Ve.of)(r)}}getStreamOnTranslationChange(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ra.z)(hr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ve.of)(l)})))}stream(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ra.z)(hr(()=>this.get(e,t)),this.onLangChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Bs(l)?l:(0,Ve.of)(l)})))}instant(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Bs(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(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pw),i.LFG(_p),i.LFG(td),i.LFG(xu),i.LFG(kw),i.LFG(Rw),i.LFG(bp),i.LFG(Hg),i.LFG(Eg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),St=(()=>{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);Bs(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Mg(e,this.lastKey)&&Mg(t,this.lastParams))return this.value;let r;if(Vs(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{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(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi,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})(),yp=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gx},e.compiler||{provide:td,useClass:Dg},e.parser||{provide:xu,useClass:_x},e.missingTranslationHandler||{provide:kw,useClass:Tu},Pw,{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gx},e.compiler||{provide:td,useClass:Dg},e.parser||{provide:xu,useClass:_x},e.missingTranslationHandler||{provide:kw,useClass:Tu},{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wu,Au,Rl,_a,yp,C.ez]}),n})();var sD=x(5861);function yx(n,o){}class wp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let wx=(()=>{class n extends yl{constructor(e,t,r,l,d,s,a,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=d,this._ngZone=s,this._overlayRef=a,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Ds(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Ds();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ds())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(wp),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(Xa,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,yx,0,0,"ng-template",0)},dependencies:[Xa],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Pg{constructor(o,e){this.overlayRef=o,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$i(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(o,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(o),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",e=""){return this.overlayRef.updateSize({width:o,height:e}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}}const Rg=new i.OlP("DialogScrollStrategy"),Lw=new i.OlP("DialogData"),lD=new i.OlP("DefaultDialogConfig"),Cx={provide:Rg,deps:[hn],useFactory:function Ca(n){return()=>n.scrollStrategies.block()}};let Lg=0,Iw=(()=>{class n{constructor(e,t,r,l,d,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(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}open(e,t){(t={...this._defaultOptions||new wp,...t}).id=t.id||"cdk-dialog-"+Lg++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),d=this._overlay.create(l),s=new Pg(d,t),a=this._attachContainer(d,s,t);return s.containerInstance=a,this._attachDialogContent(e,s,a,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){$n(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$n(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),$n(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new vo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const l=r.injector??r.viewContainerRef?.injector,d=[{provide:wp,useValue:r},{provide:Pg,useValue:t},{provide:on,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,d.push(...r.container.providers(r))):s=wx;const a=new bl(s,r.viewContainerRef,i.zs3.create({parent:l||this._injector,providers:d}),r.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,t,r,l){const d=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Co(e,null,s,d))}else{const s=r.attachComponentPortal(new bl(e,l.viewContainerRef,d,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:Lw,useValue:e.data},{provide:Pg,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,r)):d.push(...e.providers)),e.direction&&(!l||!l.get(Si,null,i.XFs.Optional))&&d.push({provide:Si,useValue:{value:e.direction,change:(0,Ve.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:d})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const 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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(lD,8),i.LFG(n,12),i.LFG(To),i.LFG(Rg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $n(n,o){let e=n.length;for(;e--;)o(n[e])}let Ax=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Iw,Cx],imports:[vl,Ao,kh,Ao]}),n})();function Ig(n,o){}const id={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vx={dialogContainer:hi("dialogContainer",[Mt("void, exit",Pe({opacity:0,transform:"scale(0.7)"})),Mt("enter",Pe({transform:"none"})),_t("* => enter",zh([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"none",opacity:1})),Pn("@*",Rc(),{optional:!0})]),id),_t("* => void, * => exit",zh([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pe({opacity:0})),Pn("@*",Rc(),{optional:!0})]),id)])};class Ll{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=id.params.enterAnimationDuration,this.exitAnimationDuration=id.params.exitAnimationDuration}}let Ow=(()=>{class n extends wx{constructor(e,t,r,l,d,s,a,c){super(e,t,r,l,d,s,a,c),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Bw=(()=>{class n extends Ow{constructor(e,t,r,l,d,s,a,c,u){super(e,t,r,l,d,s,a,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||id.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||id.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(i.sBO),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,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._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,Ig,0,0,"ng-template",0)},dependencies:[Xa],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[vx.dialogContainer]}}),n})();class In{constructor(o,e,t){this._ref=o,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=o.id,t._animationStateChanged.pipe((0,Gt.h)(r=>"opened"===r.state),(0,Ot.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Gt.h)(r=>"closed"===r.state),(0,Ot.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ci.T)(this.backdropClick(),this.keydownEvents().pipe((0,Gt.h)(r=>27===r.keyCode&&!this.disableClose&&!$i(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Vw(n,o,e){n._closeInteractionType=o,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe((0,Gt.h)(e=>"closing"===e.state),(0,Ot.q)(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Zr=new i.OlP("MatDialogData"),Tx=new i.OlP("mat-dialog-default-options"),Og=new i.OlP("mat-dialog-scroll-strategy"),Lo={provide:Og,deps:[hn],useFactory:function Bg(n){return()=>n.scrollStrategies.block()}};let Fw=0,Vg=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=a,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s,this._dialog=t.get(Iw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Ll,...t}).id=t.id||`${this._idPrefix}${Fw++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ll,useValue:t},{provide:wp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(d,s,a)=>(r=new this._dialogRefConstructor(d,t,a),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(r);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),bi=(()=>{class n extends Vg{constructor(e,t,r,l,d,s,a,c){super(e,t,l,s,a,d,In,Bw,Zr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(C.Ye,8),i.LFG(Tx,8),i.LFG(Og),i.LFG(n,12),i.LFG(To),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xx=0,Mr=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+xx++}ngOnInit(){this._dialogRef||(this._dialogRef=function Mx(n,o){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?o.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(In,8),i.Y36(i.SBq),i.Y36(bi))},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})(),Sr=(()=>{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})(),Dr=(()=>{class n{constructor(){this.align="start"}}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"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Mu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bi,Lo],imports:[Ax,vl,Ao,ot,ot]}),n})();var dD=x(4327);const Io=[5,10,25,100];function Nw(n){let o="";return null!==n.titleBefore&&(o+=n.titleBefore+" "),null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),null!==n.titleAfter&&(o+=n.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function Ng(){return(Ng=(0,sD.Z)(function*(n,o){yield Uw(n),o()})).apply(this,arguments)}function Uw(n){return new Promise(o=>setTimeout(o,n))}function xn(){const n=new Ll;return n.disableClose=!0,n.autoFocus=!1,n}const Ox=new Intl.Collator("cs",{numeric:!0});function Oo(n,o,e){const t=o.active,r=o.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),a=e(d,t);return Ox.compare(s,a)*("asc"===r?1:-1)}):n}function Il(n,o,e,t,r){o=o.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(o)}function Fs(n,o){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===o&&(e=t.value)}),e}function Aa(n,o,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};o.forEach(s=>{d[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(d)}),t}function va(n,o="csv",e="export"){if("csv"===o){const t=(a,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(a=>r.map(c=>JSON.stringify(a[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,dD.saveAs)(s,`${e}.${o}`)}}const Jw="GUI_CONFIG.PREF_PAGE_SIZE.";let Nx=(()=>{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})(),Qw=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Jw+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(Jw+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Nx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ck(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let Ak=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,Ck,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),d=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",d),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Cu,as,vw,Ii,Yt,C.O5,St]}),n})();function vk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function Tk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const xk=["*"];let ss=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Io,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=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(Qw))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(gw,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:xk,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,vk,1,1,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,Tk,1,1,"perun-web-apps-table-options",3),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))},dependencies:[gw,C.O5,Ak]}),n})(),Zn=(()=>{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.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{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(Ri),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(d.prompt="consent"),sessionStorage.getItem("mfa_route")&&(d.acr_values="https://refeds.org/profile/mfa",d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const s=function Vx(n,o){const e=o.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(d.idphint=s)}return{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,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}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(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Gt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).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 a=s.split("=");d[a[0]]=a[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,Gt.h)(e=>e instanceof la)).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")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!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(Zn),i.LFG(bi),i.LFG(zn),i.LFG(Gx.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mk=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},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"))},dependencies:[Sr,St]}),n})(),qx=(()=>{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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=xn();this.dialog.open(Mk,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(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 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(zg),i.LFG(Zn),i.LFG(ra),i.LFG(nt),i.LFG(bi),i.LFG(Ri))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MD=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}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(Ro),i.LFG(Ei))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Sk=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},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)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[Mr,Sr,Dr,Yt,St]}),n})(),Dk=(()=>{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})(),On=(()=>{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(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SD=(()=>{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=xn();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Sk,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zt(()=>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.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Bt.b)(s=>{s instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const a=this.formatErrors(s,e);return void 0===a?(0,pr._)(s):l?void this.notificator.showRPCError(a):(0,pr._)(a)}))}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}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zg),i.LFG(Dk),i.LFG(On),i.LFG(Zn),i.LFG(bi),i.LFG(qx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DD=(()=>{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})(),Ek=(()=>{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,O.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,O.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,O.K)(a=>this.formatErrors(a,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,O.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,pr._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(On),i.LFG(zg),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,a,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,a).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 a=s.split("=");"lang"===a[0]&&(d=a[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(zn),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uC=["*"],kk=["content"];function Pk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Rk(n,o){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Lk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ik=["mat-drawer","mat-drawer-content","*"];function Ok(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Bk(n,o){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Vk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Fk=["mat-sidenav","mat-sidenav-content","*"],ED={transformDrawer:hi("transform",[Mt("open, open-instant",Pe({transform:"none",visibility:"visible"})),Mt("void",Pe({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",yt("0ms")),_t("void <=> open, open-instant => void",yt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Nk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Yk(){return!1}}),Wx=new i.OlP("MAT_DRAWER_CONTAINER");let hC=(()=>{class n extends gl{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)(()=>kD)),i.Y36(i.SBq),i.Y36(yo),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:gl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),HD=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Gt.h)(u=>u),(0,Qe.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,Kt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Gt.h)(u=>!u),(0,Qe.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,Kt.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Qa(this._elementRef.nativeElement,"keydown").pipe((0,Gt.h)(u=>27===u.keyCode&&!this.disableClose&&!$i(u)),Ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ul((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=Fe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Fe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Fe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Ot.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(Qd),i.Y36(An),i.Y36(Mi),i.Y36(i.R0b),i.Y36(Jd),i.Y36(C.K0,8),i.Y36(Wx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(kk,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:uC,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())},dependencies:[gl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),kD=(()=>{class n{constructor(e,t,r,l,d,s=!1,a){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=a,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Ke(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=Fe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Fe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Et(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Et(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,dl.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Gt.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Ci.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(Si,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(ya),i.Y36(Nk),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hC,5),i.Suo(r,HD,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(hC,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:Wx,useExisting:n}])],ngContentSelectors:Ik,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(Lk),i.YNc(0,Pk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Rk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,hC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n extends hC{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)(()=>RD)),i.Y36(i.SBq),i.Y36(yo),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:gl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),PD=(()=>{class n extends HD{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Fe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Fi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Fi(e)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:uC,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())},dependencies:[gl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),RD=(()=>{class n extends kD{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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,$x,5),i.Suo(r,PD,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:Wx,useExisting:n}]),i.qOj],ngContentSelectors:Fk,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(Vk),i.YNc(0,Ok,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Bk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,$x],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),LD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Ka,Ka,ot]}),n})();const ID=fa({passive:!0});let zk=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return yi.E;const t=Zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,d="cdk-text-field-autofilled",s=a=>{"cdk-text-field-autofill-start"!==a.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===a.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,ID),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,ID)}}),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(Mi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const BD=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),Uk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Gk=0;const qk=Tc(class{constructor(n,o,e,t){this._defaultErrorStateMatcher=n,this._parentForm=o,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let os=(()=>{class n extends qk{constructor(e,t,r,l,d,s,a,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+Gk++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>AA().has(V)),this._iOSKeyupListener=V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=a||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),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=Fe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&AA().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=Fe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Uk.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(Mi),i.Y36($r,10),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36(fl),i.Y36(BD,10),i.Y36(zk),i.Y36(i.R0b),i.Y36($h,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:Ic,useExisting:n}]),i.qOj,i.TTD]}),n})(),pC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl],imports:[OD,Bc,ot,OD,Bc]}),n})();function Wk(n,o){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 $k=(()=>{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(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zn))},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)(4,"mat-form-field")(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,Wk,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(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.TgZ(21,"div",6)(22,"div",7)(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()()()),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")," ")}},dependencies:[C.O5,Rn,qn,rs,El,Yt,ts,Gn,pn,wa,os,Mr,Sr,Dr,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),Zk=(()=>{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})(),Jk=(()=>{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})(),Qk=(()=>{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 Kk(n,o){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 Xk(n,o){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 eP(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Kk,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,Xk,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=o.$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 tP=function(n){return{"min-height":n}};function iP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,eP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,tP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const ad=function(n){return{color:n}};function nP(n,o){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,ad,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function rP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.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,ad,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function aP(n,o){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,ad,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function sP(n,o){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,ad,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function oP(n,o){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,nP,2,4,"i",17),i.YNc(2,rP,3,8,"span",18),i.YNc(3,aP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,sP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=o.$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 lP=function(n){return{height:n}};function cP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,oP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,lP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function dP(n,o){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,iP,2,4,"div",9),i.YNc(5,cP,2,4,"div",9),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ad,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 uP(n,o){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,ad,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const hP=function(n){return{background:n}};let VD=(()=>{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=xn();"reportIssue"===e&&(t.width="550px",this.dialog.open($k,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(Yi),i.Y36(bi))},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)(1,"div",1),i.YNc(2,dP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,uP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,hP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,ad,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,ad,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[C.sg,C.O5,C.PC,Zk,Jk,Qk],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 pP(n,o){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 fP(n,o){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const mP=function(n){return{color:n}};function gP(n,o){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,mP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const _P=function(n,o){return{background:n,color:o}},bP=function(n,o){return{"min-height":n,"background-color":o}};let yP=(()=>{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(Zn),i.Y36(Ei),i.Y36(Hk),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pP,2,1,"div",1),i.YNc(2,fP,3,1,"div",2),i.YNc(3,gP,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,_P,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,bP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[C.O5,C.PC,Ii,gi,VD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})();hi("openClose",[Mt("open",Pe({overflow:"hidden"})),Mt("closed",Pe({height:"0px",overflow:"hidden"})),_t("open <=> closed",[yt(".3s ease-in")])]);const wP=hi("flyInOut",[_t(":enter",[Pe({transform:"translateX(100%)"}),yt(".25s")]),_t(":leave",[yt(".5s",Pe({transform:"translateX(100%)"}))])]);hi("rollInOut",[_t(":enter",[Pe({height:"0px"}),yt(".25s")]),_t(":leave",[yt(".25s",Pe({height:"0px"}))])]),hi("routeAnimations",[_t("* => *",[Pe({position:"relative"}),Pn(":enter",[Pe({width:"100%",opacity:0})],{optional:!0}),Pn(":leave",[Pe({position:"absolute",width:"100%",opacity:1}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Pn(":enter",[Pe({position:"absolute",width:"100%",opacity:0}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),hi("tagsOpenClose",[Mt("open",Pe({})),Mt("closed",Pe({width:"0px",height:"0px"})),_t("open <=> closed",[yt(".3s ease-in")])]),hi("switchAnimations",[_t("true => false",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(-100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(100%)"}))],{optional:!0})])]),_t("false => true",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(-100%)"}))],{optional:!0})])])]),hi("slideInOutLeft",[_t(":enter",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[yt("0.5s ease-in",Pe({transform:"translateX(-100%)"}))])]),hi("slideInOutRight",[_t(":enter",[Pe({transform:"translateX(100%)",position:"fixed"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(100%)"}))])]);let FD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez]}),n})();function SP(n,o){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 DP(n,o){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 HP=Ja(class{constructor(n){this._elementRef=n}},"primary"),kP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function PP(){return{diameter:100}}});class Ai extends HP{constructor(o,e,t,r,l,d,s,a){super(o),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=xt.w0.EMPTY,this.mode="determinate";const c=Ai._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===o.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&a&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&a.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(o){this._diameter=Fi(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(o){this._strokeWidth=Fi(o)}get value(){return"determinate"===this.mode?this._value:0}set value(o){this._value=Math.max(0,Math.min(100,Fi(o)))}ngOnInit(){const o=this._elementRef.nativeElement;this._styleRoot=gc(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const o=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${o} ${o}`}_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(o){const e=50*(o.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const o=this._styleRoot,e=this._diameter,t=Ai._diameters;let r=t.get(o);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),o.appendChild(l),r||(r=new Set,t.set(o,r)),r.add(e)}}_getAnimationText(){const o=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*o).replace(/END_VALUE/g,""+.2*o).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ai._diameters=new WeakMap,Ai.\u0275fac=function(o){return new(o||Ai)(i.Y36(i.SBq),i.Y36(Mi),i.Y36(C.K0,8),i.Y36(i.QbO,8),i.Y36(kP),i.Y36(i.sBO),i.Y36(ya),i.Y36(i.R0b))},Ai.\u0275cmp=i.Xpm({type:Ai,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(o,e){2&o&&(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(o,e){1&o&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,SP,1,11,"circle",2),i.YNc(3,DP,1,9,"circle",3),i.qZA()),2&o&&(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))},dependencies:[C.RF,C.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let fC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,C.ez,ot]}),n})();function LP(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function IP(n,o){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 OP(n,o){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 BP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,IP,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,OP,3,3,"mat-error",11),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 VP=(()=>{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(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.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(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zr),i.Y36(Zn))},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,LP,1,0,"mat-spinner",1),i.YNc(4,BP,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(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()()()),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")," "))},dependencies:[C.O5,Mr,Sr,Dr,Yt,ts,Gn,wa,Rn,qn,rs,El,os,Ai,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),FP=(()=>{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=xn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(VP,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(bi),i.Y36(Zr))},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)(5,"div",3)(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()()()),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")," "))},dependencies:[Mr,Sr,Dr,Yt,St]}),n})();const UP=[[["caption"]],[["colgroup"],["col"]]],GP=["caption","colgroup, col"];function Jx(n){return class extends n{constructor(...o){super(...o),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(o){const e=this._sticky;this._sticky=Fe(o),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const o=this._hasStickyChanged;return this._hasStickyChanged=!1,o}resetStickyChanged(){this._hasStickyChanged=!1}}}const Cp=new i.OlP("CDK_TABLE");let Ap=(()=>{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})(),vp=(()=>{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})(),mC=(()=>{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 ZP{}const JP=Jx(ZP);let Ol=(()=>{class n extends JP{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=Fe(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(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Ap,5),i.Suo(r,vp,5),i.Suo(r,mC,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 Qx{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}}let Kx=(()=>{class n extends Qx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ol),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})(),Xx=(()=>{class n extends Qx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ol),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 ND{constructor(){this.tasks=[],this.endTasks=[]}}const eM=new i.OlP("_COALESCED_STYLE_SCHEDULER");let YD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ND,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new ND;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,cn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ot.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})(),tM=(()=>{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 Ug?e.headerCell.template:this instanceof Gg?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 QP extends tM{}const KP=Jx(QP);let Ug=(()=>{class n extends KP{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(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class XP extends tM{}const eR=Jx(XP);let Gg=(()=>{class n extends eR{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(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),gC=(()=>{class n extends tM{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(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Bl=(()=>{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})(),iM=(()=>{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)},dependencies:[Bl],encapsulation:2}),n})(),rM=(()=>{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)},dependencies:[Bl],encapsulation:2}),n})(),_C=(()=>{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 zD=["top","bottom","left","right"];class tR{constructor(o,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=o,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(o,e){const t=[];for(const r of o)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(o,e,t,r=!0){if(!o.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=o[0],d=l.children.length,s=this._getCellWidths(l,r),a=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 o)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(o,e,t){if(!this._isBrowser)return;const r="bottom"===t?o.slice().reverse():o,l="bottom"===t?e.slice().reverse():e,d=[],s=[],a=[];for(let u=0,h=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(o,e){for(const r of e)o.style[r]="",o.classList.remove(this._borderCellCss[r]);zD.some(r=>-1===e.indexOf(r)&&o.style[r])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,r){o.classList.add(this._stickCellCss),r&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of zD)o.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=o.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=o[l]);return t}}const aM=new i.OlP("CDK_SPL");let bC=(()=>{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})(),yC=(()=>{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})(),wC=(()=>{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})(),CC=(()=>{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})(),AC=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=a,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new Hi({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=Fe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Fe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Vc(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,Ot.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const 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 a=s.shift();return a.dataIndex=t,a}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=vC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vC(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=[],Vc(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;Vc(this.dataSource)?e=this.dataSource.connect(this):Bs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ve.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(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))Bl.mostRecentCellOutlet&&Bl.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 tR(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,Ve.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&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(Si,8),i.Y36(C.K0),i.Y36(Mi),i.Y36(Fc),i.Y36(eM),i.Y36(ya),i.Y36(aM,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,_C,5),i.Suo(r,Ol,5),i.Suo(r,gC,5),i.Suo(r,Ug,5),i.Suo(r,Gg,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(bC,7),i.Gf(yC,7),i.Gf(wC,7),i.Gf(CC,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:Cp,useExisting:n},{provide:Fc,useClass:uy},{provide:eM,useClass:YD},{provide:aM,useValue:null}])],ngContentSelectors:GP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(UP),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function vC(n,o){return n.concat(Array.from(o))}let nR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_l]}),n})();const rR=[[["caption"]],[["colgroup"],["col"]]],aR=["caption","colgroup, col"];let Bo=(()=>{class n extends AC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:Fc,useClass:uy},{provide:AC,useExisting:n},{provide:Cp,useExisting:n},{provide:eM,useClass:YD},{provide:aM,useValue:null}]),i.qOj],ngContentSelectors:aR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(rR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),js=(()=>{class n extends Ap{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Ap,useExisting:n}]),i.qOj]}),n})(),Ns=(()=>{class n extends vp{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:vp,useExisting:n}]),i.qOj]}),n})(),Ys=(()=>{class n extends Ol{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 o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ol,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),zs=(()=>{class n extends Kx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Us=(()=>{class n extends Xx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Vl=(()=>{class n extends Ug{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Ug,useExisting:n}]),i.qOj]}),n})(),Vo=(()=>{class n extends gC{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:gC,useExisting:n}]),i.qOj]}),n})(),Fl=(()=>{class n extends iM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:iM,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),Fo=(()=>{class n extends rM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:rM,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),TC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[nR,ot,ot]}),n})();class jl extends class gR extends class Am{}{constructor(o=[]){super(),this._renderData=new Hi([]),this._filter=new Hi(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Z_(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 a=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof a,h=typeof c;u!==h&&("number"===u&&(a+=""),"number"===h&&(c+=""));let f=0;return null!=a&&null!=c?a>c?f=1:a{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 Hi(o),this._updateChangeSubscription()}get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription()}_updateChangeSubscription(){const o=this._sort?(0,Ci.T)(this._sort.sortChange,this._sort.initialized):(0,Ve.of)(null),e=this._paginator?(0,Ci.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ve.of)(null),r=(0,Pa.a)([this._data,this._filter]).pipe((0,Qe.U)(([s])=>this._filterData(s))),l=(0,Pa.a)([r,o]).pipe((0,Qe.U)(([s])=>this._orderData(s))),d=(0,Pa.a)([l,e]).pipe((0,Qe.U)(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(s=>this._renderData.next(s))}_filterData(o){return this.filteredData=null==this.filter||""===this.filter?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;const e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}function _R(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function bR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function yR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function wR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const CR=["*"];let Gs=(()=>{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:CR,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,_R,2,0,"mat-icon",1),i.YNc(2,bR,2,0,"mat-icon",1),i.YNc(3,yR,2,0,"mat-icon",1),i.YNc(4,wR,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))},dependencies:[Ii,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function AR(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function vR(n,o){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 TR(n,o){1&n&&i._UZ(0,"th",18)}function xR(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e)}}function MR(n,o){1&n&&i._UZ(0,"tr",20)}function SR(n,o){1&n&&i._UZ(0,"tr",21)}function DR(n,o){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 ER(n,o){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vR,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,TR,1,0,"th",12),i.YNc(8,xR,2,1,"td",13),i.BQk(),i.YNc(9,MR,1,0,"tr",14),i.YNc(10,SR,1,0,"tr",15),i.qZA(),i.YNc(11,DR,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 HR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 kR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 GD=(()=>{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 jl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},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")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AR,1,0,"mat-spinner",1),i.YNc(5,ER,12,8,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,HR,3,4,"button",5),i.YNc(11,kR,3,4,"button",6),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))},dependencies:[C.O5,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Mr,Sr,Dr,Yt,Ai,Gs,St]}),n})(),NR=(()=>{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(In),i.Y36(Zr))},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")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(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()()()),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")," "))},dependencies:[Mr,Dr,Yt,St]}),n})();function WR(n,o){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function $R(n,o){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 ZR=(()=>{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=xn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(FP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function zw(n,o){Ng.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(DD))},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")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,WR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,$R,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),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," "))},dependencies:[C.O5,Ii,St],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 JR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,d=i.oxw();return i.KtG(d.removeNotification(l))}),i.qZA()()}if(2&n){const e=o.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const QR=function(n){return{top:n}};let KR=(()=>{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(On),i.Y36(DD))},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,JR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,QR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[C.sg,C.PC,ZR],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:[wP]}}),n})(),XR=(()=>{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(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const WD=["*"],tL=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],iL=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oL=sr(Cr(class{})),lL=Cr(class{}),cL=new i.OlP("MatList"),$D=new i.OlP("MatNavList");let dL=(()=>{class n extends oL{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:$D,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:WD,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),ZD=(()=>{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})(),JD=(()=>{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})(),uL=(()=>{class n extends lL{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,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(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Fe(e)}ngAfterContentInit(){!function Wf(n,o,e="mat"){n.changes.pipe(Et(n)).subscribe(({length:t})=>{tu(o,`${e}-2-line`,!1),tu(o,`${e}-3-line`,!1),tu(o,`${e}-multi-line`,!1),2===t||3===t?tu(o,`${e}-${t}-line`,!0):t>3&&tu(o,`${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($D,8),i.Y36(cL,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,ZD,5),i.Suo(r,JD,5),i.Suo(r,qf,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:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:iL,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(tL),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()))},dependencies:[Ar],encapsulation:2,changeDetection:0}),n})(),KD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xc,un,ot,$f,C.ez,xc,ot,$f,sM]}),n})();function _L(n,o){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function bL(n,o){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 yL=function(n){return{color:n}};function wL(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.shouldHideMenu())}),i.YNc(1,_L,1,1,"mat-icon",3),i.YNc(2,bL,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,yL,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 CL=(()=>{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 la&&(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(XR),i.Y36(Zn),i.Y36(Ri))},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,wL,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[C.sg,C.O5,C.PC,Ii,dL,uL,Ar,fc,St],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})();const AL=["*",[["mat-toolbar-row"]]],vL=["*","mat-toolbar-row"],TL=Ja(class{constructor(n){this._elementRef=n}});let xL=(()=>{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})(),ML=(()=>{class n extends TL{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(Mi),i.Y36(C.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,xL,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:vL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(AL),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%}"],encapsulation:2,changeDetection:0}),n})(),XD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function SL(n,o){1&n&&(i.TgZ(0,"div",13)(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()())}const DL=function(n){return{background:n}},xC=function(n){return{color:n}};let EL=(()=>{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(Zn),i.Y36(zg),i.Y36(Ei))},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"],[1,"display-flex"],["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)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA()(),i._UZ(5,"a",3)(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA()(),i.YNc(10,SL,7,0,"div",6),i.TgZ(11,"div",7)(12,"button",8)(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA()(),i.TgZ(17,"mat-menu",null,11)(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA()()()()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,DL,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,xC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,xC,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,xC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,xC,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"))}},dependencies:[C.O5,C.PC,Yt,Ii,Cu,as,vw,ML,fc,gf,St],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row}#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})();const HL=["footer"],eE=function(n){return{background:n}},kL=function(n){return{"min-height":n}};function PL(n,o){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container")(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5)(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()()()()),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,eE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,eE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,kL,t.contentHeight))}}function RL(n,o){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 LL=(()=>{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(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(qx),i.Y36(i.sBO),i.Y36(ra),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(HL,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,PL,12,13,"div",0),i.YNc(2,RL,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()))},dependencies:[C.O5,C.PC,PD,RD,$x,gi,yP,VD,KR,CL,EL,St],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 IL{constructor(o,e="/assets/i18n/",t=".json"){this.http=o,this.prefix=e,this.suffix=t}getTranslation(o){return this.http.get(`${this.prefix}${o}${this.suffix}`)}}let OL=(()=>{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 BL(n){return[Jr(tinycolor(n).lighten(52),"50"),Jr(tinycolor(n).lighten(37),"100"),Jr(tinycolor(n).lighten(26),"200"),Jr(tinycolor(n).lighten(12),"300"),Jr(tinycolor(n).lighten(6),"400"),Jr(tinycolor(n),"500"),Jr(tinycolor(n).darken(6),"600"),Jr(tinycolor(n).darken(12),"700"),Jr(tinycolor(n).darken(18),"800"),Jr(tinycolor(n).darken(24),"900"),Jr(tinycolor(n).lighten(50).saturate(30),"A100"),Jr(tinycolor(n).lighten(30).saturate(30),"A200"),Jr(tinycolor(n).lighten(10).saturate(15),"A400"),Jr(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const a=`--${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(a,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=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),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(Zn),i.LFG(nt),i.LFG(ae),i.LFG(Kn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jr(n,o){const e=tinycolor(n),t=e.toRgb();return{name:o,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let VL=(()=>{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(qx),i.LFG(OL),i.LFG(C.Ye),i.LFG(nt),i.LFG(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FL=new i.OlP("perun-api-service");function tE(n){return new i.vHH(3e3,!1)}function wI(){return typeof window<"u"&&typeof window.document<"u"}function oM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function sd(n){switch(n.length){case 0:return new Lc;case 1:return n[0];default:return new Gh(n)}}function iE(n,o,e,t,r=new Map,l=new Map){const d=[],s=[];let a=-1,c=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==a,b=f&&c||new Map;u.forEach((V,ee)=>{let he=ee,We=V;if("offset"!==ee)switch(he=o.normalizePropertyName(he,d),We){case"!":We=r.get(ee);break;case Rs:We=l.get(ee);break;default:We=o.normalizeStyleValue(ee,he,We,d)}b.set(he,We)}),f||s.push(b),c=b,a=h}),d.length)throw function lI(n){return new i.vHH(3502,!1)}();return s}function lM(n,o,e,t){switch(o){case"start":n.onStart(()=>t(e&&cM(e,"start",n)));break;case"done":n.onDone(()=>t(e&&cM(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&cM(e,"destroy",n)))}}function cM(n,o,e){const l=dM(n.element,n.triggerName,n.fromState,n.toState,o||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function dM(n,o,e,t,r="",l=0,d){return{element:n,triggerName:o,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function Ta(n,o,e){let t=n.get(o);return t||n.set(o,t=e),t}function nE(n){const o=n.indexOf(":");return[n.substring(1,o),n.slice(o+1)]}let uM=(n,o)=>!1,rE=(n,o,e)=>[],aE=null;function hM(n){const o=n.parentNode||n.host;return o===aE?null:o}(oM()||typeof Element<"u")&&(wI()?(aE=(()=>document.documentElement)(),uM=(n,o)=>{for(;o;){if(o===n)return!0;o=hM(o)}return!1}):uM=(n,o)=>n.contains(o),rE=(n,o,e)=>{if(e)return Array.from(n.querySelectorAll(o));const t=n.querySelector(o);return t?[t]:[]});let Su=null,sE=!1;const oE=uM,lE=rE;let cE=(()=>{class n{validateStyleProperty(e){return function AI(n){Su||(Su=function vI(){return typeof document<"u"?document.body:null}()||{},sE=!!Su.style&&"WebkitAppearance"in Su.style);let o=!0;return Su.style&&!function CI(n){return"ebkit"==n.substring(1,6)}(n)&&(o=n in Su.style,!o&&sE&&(o="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Su.style)),o}(e)}matchesElement(e,t){return!1}containsElement(e,t){return oE(e,t)}getParentElement(e){return hM(e)}query(e,t,r){return lE(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],a){return new Lc(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),pM=(()=>{class n{}return n.NOOP=new cE,n})();const fM="ng-enter",MC="ng-leave",SC="ng-trigger",DC=".ng-trigger",uE="ng-animating",mM=".ng-animating";function od(n){if("number"==typeof n)return n;const o=n.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:gM(parseFloat(o[1]),o[2])}function gM(n,o){return"s"===o?1e3*n:n}function EC(n,o,e){return n.hasOwnProperty("duration")?n:function MI(n,o,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 o.push(tE()),{duration:0,delay:0,easing:""};r=gM(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(l=gM(parseFloat(a),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,a=o.length;r<0&&(o.push(function jL(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(o.push(function NL(){return new i.vHH(3101,!1)}()),s=!0),s&&o.splice(a,0,tE())}return{duration:r,delay:l,easing:d}}(n,o,e)}function qg(n,o={}){return Object.keys(n).forEach(e=>{o[e]=n[e]}),o}function hE(n){const o=new Map;return Object.keys(n).forEach(e=>{o.set(e,n[e])}),o}function ld(n,o=new Map,e){if(e)for(let[t,r]of e)o.set(t,r);for(let[t,r]of n)o.set(t,r);return o}function fE(n,o,e){return e?o+":"+e+";":""}function mE(n){let o="";for(let e=0;e{const l=bM(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),oM()&&mE(n))}function Du(n,o){n.style&&(o.forEach((e,t)=>{const r=bM(t);n.style[r]=""}),oM()&&mE(n))}function Wg(n){return Array.isArray(n)?1==n.length?n[0]:pm(n):n}const _M=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(n){let o=[];if("string"==typeof n){let e;for(;e=_M.exec(n);)o.push(e[1]);_M.lastIndex=0}return o}function HC(n,o,e){const t=n.toString(),r=t.replace(_M,(l,d)=>{let s=o[d];return null==s&&(e.push(function zL(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function kC(n){const o=[];let e=n.next();for(;!e.done;)o.push(e.value),e=n.next();return o}const EI=/-+([a-z0-9])/g;function bM(n){return n.replace(EI,(...o)=>o[1].toUpperCase())}function HI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xa(n,o,e){switch(o.type){case 7:return n.visitTrigger(o,e);case 0:return n.visitState(o,e);case 1:return n.visitTransition(o,e);case 2:return n.visitSequence(o,e);case 3:return n.visitGroup(o,e);case 4:return n.visitAnimate(o,e);case 5:return n.visitKeyframes(o,e);case 6:return n.visitStyle(o,e);case 8:return n.visitReference(o,e);case 9:return n.visitAnimateChild(o,e);case 10:return n.visitAnimateRef(o,e);case 11:return n.visitQuery(o,e);case 12:return n.visitStagger(o,e);default:throw function UL(n){return new i.vHH(3004,!1)}()}}function _E(n,o){return window.getComputedStyle(n)[o]}function OI(n,o){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function BI(n,o,e){if(":"==n[0]){const a=function VI(n,o){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 a)return void o.push(a);n=a}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function nI(n){return new i.vHH(3015,!1)}()),o;const r=t[1],l=t[2],d=t[3];o.push(bE(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&o.push(bE(d,r))}(t,e,o)):e.push(n),e}const IC=new Set(["true","1"]),OC=new Set(["false","0"]);function bE(n,o){const e=IC.has(n)||OC.has(n),t=IC.has(o)||OC.has(o);return(r,l)=>{let d="*"==n||n==r,s="*"==o||o==l;return!d&&e&&"boolean"==typeof r&&(d=r?IC.has(n):OC.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?IC.has(o):OC.has(o)),d&&s}}const FI=new RegExp("s*:selfs*,?","g");function yM(n,o,e,t){return new jI(n).build(o,e,t)}class jI{constructor(o){this._driver=o}build(o,e,t){const r=new zI(e);return this._resetContextStyleTimingState(r),xa(this,Wg(o),r)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==o.name.charAt(0)&&e.errors.push(function qL(){return new i.vHH(3006,!1)}()),o.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const a=s,c=a.name;c.toString().split(/\s*,\s*/).forEach(u=>{a.name=u,l.push(this.visitState(a,e))}),a.name=c}else if(1==s.type){const a=this.visitTransition(s,e);t+=a.queryCount,r+=a.depCount,d.push(a)}else e.errors.push(function WL(){return new i.vHH(3007,!1)}())}),{type:7,name:o.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(o,e){const t=this.visitStyle(o.styles,e),r=o.options&&o.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(a=>{gE(a).forEach(c=>{d.hasOwnProperty(c)||l.add(c)})})}),l.size&&(kC(l.values()),e.errors.push(function $L(n,o){return new i.vHH(3008,!1)}()))}return{type:0,name:o.name,style:t,options:r?{params:r}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;const t=xa(this,Wg(o.animation),e);return{type:1,matchers:OI(o.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Eu(o.options)}}visitSequence(o,e){return{type:2,steps:o.steps.map(t=>xa(this,t,e)),options:Eu(o.options)}}visitGroup(o,e){const t=e.currentTime;let r=0;const l=o.steps.map(d=>{e.currentTime=t;const s=xa(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Eu(o.options)}}visitAnimate(o,e){const t=function GI(n,o){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return wM(EC(n,o).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=wM(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=EC(e,o);return wM(r.duration,r.delay,r.easing)}(o.timings,e.errors);e.currentAnimateTimings=t;let r,l=o.styles?o.styles:Pe({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=o.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Pe(c)}e.currentTime+=t.duration+t.delay;const a=this.visitStyle(d,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(o,e){const t=this._makeStyleAst(o,e);return this._validateStyleAst(t,e),t}_makeStyleAst(o,e){const t=[],r=Array.isArray(o.styles)?o.styles:[o.styles];for(let s of r)"string"==typeof s?s===Rs?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(hE(s));let l=!1,d=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(d=s.get("easing"),s.delete("easing")),!l))for(let a of s.values())if(a.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:d,offset:o.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(o,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),o.styles.forEach(d=>{"string"!=typeof d&&d.forEach((s,a)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(a);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function JL(n,o,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&c.set(a,{startTime:l,endTime:r}),e.options&&function DI(n,o,e){const t=o.params||{},r=gE(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function YL(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(o,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function QL(){return new i.vHH(3011,!1)}()),t;let l=0;const d=[];let s=!1,a=!1,c=0;const u=o.steps.map(We=>{const Pt=this._makeStyleAst(We,e);let Jt=null!=Pt.offset?Pt.offset:function UI(n){if("string"==typeof n)return null;let o=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;o=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;o=parseFloat(e.get("offset")),e.delete("offset")}return o}(Pt.styles),Bi=0;return null!=Jt&&(l++,Bi=Pt.offset=Jt),a=a||Bi<0||Bi>1,s=s||Bi0&&l{const Jt=f>0?Pt==b?1:f*Pt:d[Pt],Bi=Jt*he;e.currentTime=V+ee.delay+Bi,ee.duration=Bi,this._validateStyleAst(We,e),We.offset=Jt,t.styles.push(We)}),t}visitReference(o,e){return{type:8,animation:xa(this,Wg(o.animation),e),options:Eu(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:9,options:Eu(o.options)}}visitAnimateRef(o,e){return{type:10,animation:this.visitReference(o.animation,e),options:Eu(o.options)}}visitQuery(o,e){const t=e.currentQuerySelector,r=o.options||{};e.queryCount++,e.currentQuery=o;const[l,d]=function NI(n){const o=!!n.split(/\s*,\s*/).find(e=>":self"==e);return o&&(n=n.replace(FI,"")),n=n.replace(/@\*/g,DC).replace(/@\w+/g,e=>DC+"-"+e.slice(1)).replace(/:animating/g,mM),[n,o]}(o.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ta(e.collectedStyles,e.currentQuerySelector,new Map);const s=xa(this,Wg(o.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:o.selector,options:Eu(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(function tI(){return new i.vHH(3013,!1)}());const t="full"===o.timings?{duration:0,delay:0,easing:"full"}:EC(o.timings,e.errors,!0);return{type:12,animation:xa(this,Wg(o.animation),e),timings:t,options:null}}}class zI{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Eu(n){return n?(n=qg(n)).params&&(n.params=function YI(n){return n?qg(n):null}(n.params)):n={},n}function wM(n,o,e){return{duration:n,delay:o,easing:e}}function CM(n,o,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:o,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class BC{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,e){let t=this._map.get(o);t||this._map.set(o,t=[]),t.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const $I=new RegExp(":enter","g"),JI=new RegExp(":leave","g");function AM(n,o,e,t,r,l=new Map,d=new Map,s,a,c=[]){return(new QI).buildKeyframes(n,o,e,t,r,l,d,s,a,c)}class QI{buildKeyframes(o,e,t,r,l,d,s,a,c,u=[]){c=c||new BC;const h=new vM(o,e,c,r,l,u,[]);h.options=a;const f=a.delay?od(a.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([d],null,h.errors,a),xa(this,t,h);const b=h.timelines.filter(V=>V.containsAnimation());if(b.length&&s.size){let V;for(let ee=b.length-1;ee>=0;ee--){const he=b[ee];if(he.element===e){V=he;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([s],null,h.errors,a)}return b.length?b.map(V=>V.buildKeyframes()):[CM(e,[],[],[],0,f,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(o.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=o}visitAnimateRef(o,e){const t=e.createSubContext(o.options);t.transformIntoNewTimeline(),this.visitReference(o.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=o}_visitSubInstructions(o,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?od(t.duration):null,s=null!=t.delay?od(t.delay):null;return 0!==d&&o.forEach(a=>{const c=e.appendInstructionToTimeline(a,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(o,e){e.updateOptions(o.options,!0),xa(this,o.animation,e),e.previousNode=o}visitSequence(o,e){const t=e.subContextCount;let r=e;const l=o.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=VC);const d=od(l.delay);r.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>xa(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){const t=[];let r=e.currentTimeline.currentTime;const l=o.options&&o.options.delay?od(o.options.delay):0;o.steps.forEach(d=>{const s=e.createSubContext(o.options);l&&s.delayNextStep(l),xa(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=o}_visitTiming(o,e){if(o.dynamic){const t=o.strValue;return EC(e.params?HC(t,e.params,e.errors):t,e.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){const t=e.currentAnimateTimings=this._visitTiming(o.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=o.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||o.easing;o.isEmptyStep?t.applyEmptyStep(l):t.setStyles(o.styles,l,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,o.styles.forEach(a=>{s.forwardTime((a.offset||0)*l),s.setStyles(a.styles,a.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=o}visitQuery(o,e){const t=e.currentTimeline.currentTime,r=o.options||{},l=r.delay?od(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=VC);let d=t;const s=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(o.options,c);l&&h.delayNextStep(l),c===e.element&&(a=h.currentTimeline),xa(this,o.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){const t=e.parentContext,r=e.currentTimeline,l=o.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let a=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":a=s-a;break;case"full":a=t.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const h=u.currentTime;xa(this,o.animation,e),e.previousNode=o,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const VC={};class vM{constructor(o,e,t,r,l,d,s,a){this._driver=o,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=VC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new FC(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;const t=o;let r=this.options;null!=t.duration&&(r.duration=od(t.duration)),null!=t.delay&&(r.delay=od(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]=HC(l[s],d,this.errors))})}}_copyOptions(){const o={};if(this.options){const e=this.options.params;if(e){const t=o.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return o}createSubContext(o=null,e,t){const r=e||this.element,l=new vM(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(o),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(o){return this.previousNode=VC,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,t){const r={duration:e??o.duration,delay:this.currentTimeline.currentTime+(t??0)+o.delay,easing:""},l=new KI(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,r,o.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,t,r,l,d){let s=[];if(r&&s.push(this.element),o.length>0){o=(o=o.replace($I,"."+this._enterClassName)).replace(JI,"."+this._leaveClassName);let c=this._driver.query(this.element,o,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(function iI(n){return new i.vHH(3014,!1)}()),s}}class FC{constructor(o,e,t,r){this._driver=o,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new FC(this._driver,o,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Rs),this._currentKeyframe.set(e,Rs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},d=function XI(n,o){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||o.keys();for(let l of t)e.set(l,Rs)}else ld(r,e)}),e}(o,this._globalTimelineStyles);for(let[s,a]of d){const c=HC(a,l,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Rs),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,a)=>{const c=ld(s,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?o.add(h):u===Rs&&e.add(h)}),t||c.set("offset",a/this.duration),r.push(c)});const l=o.size?kC(o.values()):[],d=e.size?kC(e.values()):[];if(t){const s=r[0],a=new Map(s);s.set("offset",0),a.set("offset",1),r=[s,a]}return CM(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class KI extends FC{constructor(o,e,t,r,l,d,s=!1){super(o,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 o=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,a=ld(o[0]);a.set("offset",0),l.push(a);const c=ld(o[0]);c.set("offset",CE(s)),l.push(c);const u=o.length-1;for(let h=1;h<=u;h++){let f=ld(o[h]);const b=f.get("offset");f.set("offset",CE((e+b*t)/d)),l.push(f)}t=d,e=0,r="",o=l}return CM(this.element,o,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function CE(n,o=3){const e=Math.pow(10,o-1);return Math.round(n*e)/e}class TM{}const eO=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class tO extends TM{normalizePropertyName(o,e){return bM(o)}normalizeStyleValue(o,e,t,r){let l="";const d=t.toString().trim();if(eO.has(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(function GL(n,o){return new i.vHH(3005,!1)}())}return d+l}}function AE(n,o,e,t,r,l,d,s,a,c,u,h,f){return{type:0,element:n,triggerName:o,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const xM={};class vE{constructor(o,e,t){this._triggerName=o,this.ast=e,this._stateStyles=t}match(o,e,t,r){return function iO(n,o,e,t,r){return n.some(l=>l(o,e,t,r))}(this.ast.matchers,o,e,t,r)}buildStyles(o,e,t){let r=this._stateStyles.get("*");return void 0!==o&&(r=this._stateStyles.get(o?.toString())||r),r?r.buildStyles(e,t):new Map}build(o,e,t,r,l,d,s,a,c,u){const h=[],f=this.ast.options&&this.ast.options.params||xM,V=this.buildStyles(t,s&&s.params||xM,h),ee=a&&a.params||xM,he=this.buildStyles(r,ee,h),We=new Set,Pt=new Map,Jt=new Map,Bi="void"===r,qs={params:nO(ee,f),delay:this.ast.options?.delay},ds=u?[]:AM(o,e,this.ast.animation,l,d,V,he,qs,c,h);let Er=0;if(ds.forEach(Ul=>{Er=Math.max(Ul.duration+Ul.delay,Er)}),h.length)return AE(e,this._triggerName,t,r,Bi,V,he,[],[],Pt,Jt,Er,h);ds.forEach(Ul=>{const Gl=Ul.element,v1=Ta(Pt,Gl,new Set);Ul.preStyleProps.forEach(Pu=>v1.add(Pu));const s_=Ta(Jt,Gl,new Set);Ul.postStyleProps.forEach(Pu=>s_.add(Pu)),Gl!==e&&We.add(Gl)});const zl=kC(We.values());return AE(e,this._triggerName,t,r,Bi,V,he,ds,zl,Pt,Jt,Er)}}function nO(n,o){const e=qg(o);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class rO{constructor(o,e,t){this.styles=o,this.defaultParams=e,this.normalizer=t}buildStyles(o,e){const t=new Map,r=qg(this.defaultParams);return Object.keys(o).forEach(l=>{const d=o[l];null!==d&&(r[l]=d)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,s)=>{d&&(d=HC(d,r,e));const a=this.normalizer.normalizePropertyName(s,e);d=this.normalizer.normalizeStyleValue(s,a,d,e),t.set(a,d)})}),t}}class sO{constructor(o,e,t){this.name=o,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new rO(r.style,r.options&&r.options.params||{},t))}),TE(this.states,"true","1"),TE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new vE(o,r,this.states))}),this.fallbackTransition=function oO(n,o,e){return new vE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,t,r){return this.transitionFactories.find(d=>d.match(o,e,t,r))||null}matchStyles(o,e,t){return this.fallbackTransition.buildStyles(o,e,t)}}function TE(n,o,e){n.has(o)?n.has(e)||n.set(e,n.get(o)):n.has(e)&&n.set(o,n.get(e))}const lO=new BC;class cO{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,e){const t=[],l=yM(this._driver,e,t,[]);if(t.length)throw function cI(n){return new i.vHH(3503,!1)}();this._animations.set(o,l)}_buildPlayer(o,e,t){const r=o.element,l=iE(0,this._normalizer,0,o.keyframes,e,t);return this._driver.animate(r,l,o.duration,o.delay,o.easing,[],!0)}create(o,e,t={}){const r=[],l=this._animations.get(o);let d;const s=new Map;if(l?(d=AM(this._driver,e,l,fM,MC,new Map,new Map,t,lO,r),d.forEach(u=>{const h=Ta(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function dI(){return new i.vHH(3300,!1)}()),d=[]),r.length)throw function uI(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Rs))})});const c=sd(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(o,c),c.onDestroy(()=>this.destroy(o)),this.players.push(c),c}destroy(o){const e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(o){const e=this._playersById.get(o);if(!e)throw function hI(n){return new i.vHH(3301,!1)}();return e}listen(o,e,t,r){const l=dM(e,"","","");return lM(this._getPlayer(o),t,l,r),()=>{}}command(o,e,t,r){if("register"==t)return void this.register(o,r[0]);if("create"==t)return void this.create(o,e,r[0]||{});const l=this._getPlayer(o);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(o)}}}const xE="ng-animate-queued",MM="ng-animate-disabled",fO=[],ME={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ls="__ng_removed";class SM{constructor(o,e=""){this.namespaceId=e;const t=o&&o.hasOwnProperty("value");if(this.value=function yO(n){return n??null}(t?o.value:o),t){const l=qg(o);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const e=o.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const $g="void",DM=new SM($g);class gO{constructor(o,e,t){this.id=o,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,cs(e,this._hostClassName)}listen(o,e,t,r){if(!this._triggers.has(e))throw function pI(n,o){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function fI(n){return new i.vHH(3303,!1)}();if(!function wO(n){return"start"==n||"done"==n}(t))throw function mI(n,o){return new i.vHH(3400,!1)}();const l=Ta(this._elementListeners,o,[]),d={name:e,phase:t,callback:r};l.push(d);const s=Ta(this._engine.statesByElement,o,new Map);return s.has(e)||(cs(o,SC),cs(o,SC+"-"+e),s.set(e,DM)),()=>{this._engine.afterFlush(()=>{const a=l.indexOf(d);a>=0&&l.splice(a,1),this._triggers.has(e)||s.delete(e)})}}register(o,e){return!this._triggers.has(o)&&(this._triggers.set(o,e),!0)}_getTrigger(o){const e=this._triggers.get(o);if(!e)throw function gI(n){return new i.vHH(3401,!1)}();return e}trigger(o,e,t,r=!0){const l=this._getTrigger(e),d=new EM(this.id,e,o);let s=this._engine.statesByElement.get(o);s||(cs(o,SC),cs(o,SC+"-"+e),this._engine.statesByElement.set(o,s=new Map));let a=s.get(e);const c=new SM(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s.set(e,c),a||(a=DM),c.value!==$g&&a.value===c.value){if(!function vO(n,o){const e=Object.keys(n),t=Object.keys(o);if(e.length!=t.length)return!1;for(let r=0;r{Du(o,he),jo(o,We)})}return}const f=Ta(this._engine.playersByElement,o,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(a.value,c.value,o,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:b,fromState:a,toState:c,player:d,isFallbackTransition:V}),V||(cs(o,xE),d.onStart(()=>{Tp(o,xE)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(o);if(he){let We=he.indexOf(d);We>=0&&he.splice(We,1)}}),this.players.push(d),f.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const e=this._engine.playersByElement.get(o);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){const t=this._engine.driver.query(o,DC,!0);t.forEach(r=>{if(r[ls])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(o,e,t,r){const l=this._engine.statesByElement.get(o),d=new Map;if(l){const s=[];if(l.forEach((a,c)=>{if(d.set(c,a.value),this._triggers.has(c)){const u=this.trigger(o,c,$g,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,d),t&&sd(s).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const e=this._elementListeners.get(o),t=this._engine.statesByElement.get(o);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const a=this._triggers.get(d).fallbackTransition,c=t.get(d)||DM,u=new SM($g),h=new EM(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:a,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(o,e){const t=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(o):[];if(l&&l.length)r=!0;else{let d=o;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(o),r)t.markElementAsRemoved(this.id,o,!1,e);else{const l=o[ls];(!l||l===ME)&&(t.afterFlush(()=>this.clearElementCache(o)),t.destroyInnerAnimations(o),t._onRemovalComplete(o,e))}}insertNode(o,e){cs(o,this._hostClassName)}drainQueuedTransitions(o){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 a=dM(l,t.triggerName,t.fromState.value,t.toState.value);a._data=o,lM(t.player,s.phase,a,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(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let e=!1;return this._elementListeners.has(o)&&(e=!0),e=!!this._queue.find(t=>t.element===o)||e,e}}class _O{constructor(o,e,t){this.bodyNode=o,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(o,e){this.onRemovalComplete(o,e)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&o.push(t)})}),o}createNamespace(o,e){const t=new gO(o,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[o]=t}_balanceNamespaceList(o,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,s=this.driver.getParentElement(e);for(;s;){const a=r.get(s);if(a){const c=t.indexOf(a);t.splice(c+1,0,o),d=!0;break}s=this.driver.getParentElement(s)}d||t.unshift(o)}else t.push(o);return r.set(e,o),o}register(o,e){let t=this._namespaceLookup[o];return t||(t=this.createNamespace(o,e)),t}registerTrigger(o,e,t){let r=this._namespaceLookup[o];r&&r.register(e,t)&&this.totalAnimations++}destroy(o,e){if(!o)return;const t=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[o];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const e=new Set,t=this.statesByElement.get(o);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(o,e,t,r){if(jC(e)){const l=this._fetchNamespace(o);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(o,e,t,r){if(!jC(e))return;const l=e[ls];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){const d=this._fetchNamespace(o);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),cs(o,MM)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Tp(o,MM))}removeNode(o,e,t,r){if(jC(e)){const l=o?this._fetchNamespace(o):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(o,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==o&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(o,e,t,r,l){this.collectedLeaveElements.push(e),e[ls]={namespaceId:o,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(o,e,t,r,l){return jC(e)?this._fetchNamespace(o).listen(e,t,r,l):()=>{}}_buildInstruction(o,e,t,r,l){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,t,r,o.fromState.options,o.toState.options,e,l)}destroyInnerAnimations(o){let e=this.driver.query(o,DC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(o,mM,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(o){const e=this.playersByElement.get(o);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(o){const e=this.playersByQueriedElement.get(o);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return sd(this.players).onDone(()=>o());o()})}processLeaveNode(o){const e=o[ls];if(e&&e.setForRemoval){if(o[ls]=ME,e.namespaceId){this.destroyInnerAnimations(o);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(MM)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(o=-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?sd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(o){throw function _I(n){return new i.vHH(3402,!1)}()}_flushAnimations(o,e){const t=new BC,r=[],l=new Map,d=[],s=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(rt=>{u.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=fM+ee++;V.set(gt,wt),rt.forEach(oi=>cs(oi,wt))});const he=[],We=new Set,Pt=new Set;for(let rt=0;rtWe.add(oi)):Pt.add(gt))}const Jt=new Map,Bi=EE(f,Array.from(We));Bi.forEach((rt,gt)=>{const wt=MC+ee++;Jt.set(gt,wt),rt.forEach(oi=>cs(oi,wt))}),o.push(()=>{b.forEach((rt,gt)=>{const wt=V.get(gt);rt.forEach(oi=>Tp(oi,wt))}),Bi.forEach((rt,gt)=>{const wt=Jt.get(gt);rt.forEach(oi=>Tp(oi,wt))}),he.forEach(rt=>{this.processLeaveNode(rt)})});const qs=[],ds=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(wt=>{const oi=wt.player,Bn=wt.element;if(qs.push(oi),this.collectedEnterElements.length){const or=Bn[ls];if(or&&or.setForMove){if(or.previousTriggersValues&&or.previousTriggersValues.has(wt.triggerName)){const Ru=or.previousTriggersValues.get(wt.triggerName),us=this.statesByElement.get(wt.element);if(us&&us.has(wt.triggerName)){const nA=us.get(wt.triggerName);nA.value=Ru,us.set(wt.triggerName,nA)}}return void oi.destroy()}}const Yo=!h||!this.driver.containsElement(h,Bn),Da=Jt.get(Bn),hd=V.get(Bn),Qi=this._buildInstruction(wt,t,hd,Da,Yo);if(Qi.errors&&Qi.errors.length)return void ds.push(Qi);if(Yo)return oi.onStart(()=>Du(Bn,Qi.fromStyles)),oi.onDestroy(()=>jo(Bn,Qi.toStyles)),void r.push(oi);if(wt.isFallbackTransition)return oi.onStart(()=>Du(Bn,Qi.fromStyles)),oi.onDestroy(()=>jo(Bn,Qi.toStyles)),void r.push(oi);const M1=[];Qi.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||M1.push(or)}),Qi.timelines=M1,t.append(Bn,Qi.timelines),d.push({instruction:Qi,player:oi,element:Bn}),Qi.queriedElements.forEach(or=>Ta(s,or,[]).push(oi)),Qi.preStyleProps.forEach((or,Ru)=>{if(or.size){let us=a.get(Ru);us||a.set(Ru,us=new Set),or.forEach((nA,l0)=>us.add(l0))}}),Qi.postStyleProps.forEach((or,Ru)=>{let us=c.get(Ru);us||c.set(Ru,us=new Set),or.forEach((nA,l0)=>us.add(l0))})});if(ds.length){const rt=[];ds.forEach(gt=>{rt.push(function bI(n,o){return new i.vHH(3505,!1)}())}),qs.forEach(gt=>gt.destroy()),this.reportError(rt)}const Er=new Map,zl=new Map;d.forEach(rt=>{const gt=rt.element;t.has(gt)&&(zl.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Er))}),r.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(oi=>{Ta(Er,gt,[]).push(oi),oi.destroy()})});const Ul=he.filter(rt=>kE(rt,a,c)),Gl=new Map;DE(Gl,this.driver,Pt,c,Rs).forEach(rt=>{kE(rt,a,c)&&Ul.push(rt)});const s_=new Map;b.forEach((rt,gt)=>{DE(s_,this.driver,new Set(rt),a,"!")}),Ul.forEach(rt=>{const gt=Gl.get(rt),wt=s_.get(rt);Gl.set(rt,new Map([...Array.from(gt?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Pu=[],T1=[],x1={};d.forEach(rt=>{const{element:gt,player:wt,instruction:oi}=rt;if(t.has(gt)){if(u.has(gt))return wt.onDestroy(()=>jo(gt,oi.toStyles)),wt.disabled=!0,wt.overrideTotalTime(oi.totalTime),void r.push(wt);let Bn=x1;if(zl.size>1){let Da=gt;const hd=[];for(;Da=Da.parentNode;){const Qi=zl.get(Da);if(Qi){Bn=Qi;break}hd.push(Da)}hd.forEach(Qi=>zl.set(Qi,Bn))}const Yo=this._buildAnimation(wt.namespaceId,oi,Er,l,s_,Gl);if(wt.setRealPlayer(Yo),Bn===x1)Pu.push(wt);else{const Da=this.playersByElement.get(Bn);Da&&Da.length&&(wt.parentPlayer=sd(Da)),r.push(wt)}}else Du(gt,oi.fromStyles),wt.onDestroy(()=>jo(gt,oi.toStyles)),T1.push(wt),u.has(gt)&&r.push(wt)}),T1.forEach(rt=>{const gt=l.get(rt.element);if(gt&>.length){const wt=sd(gt);rt.setRealPlayer(wt)}}),r.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!Yo.destroyed);Bn.length?CO(this,gt,Bn):this.processLeaveNode(gt)}return he.length=0,Pu.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Pu}elementContainsData(o,e){let t=!1;const r=e[ls];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(o).elementContainsData(e)||t}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(o);s&&(d=s)}else{const s=this.playersByElement.get(o);if(s){const a=!l||l==$g;s.forEach(c=>{c.queued||!a&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(o,e,t){const l=e.element,d=e.isRemovalTransition?void 0:o,s=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const c=a.element,u=c!==l,h=Ta(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)})}Du(l,e.fromStyles)}_buildAnimation(o,e,t,r,l,d){const s=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ls];if(he&&he.removedBeforeQueried)return new Lc(V.duration,V.delay);const We=ee!==a,Pt=function AO(n){const o=[];return HE(n,o),o}((t.get(ee)||fO).map(Er=>Er.getRealPlayer())).filter(Er=>!!Er.element&&Er.element===ee),Jt=l.get(ee),Bi=d.get(ee),qs=iE(0,this._normalizer,0,V.keyframes,Jt,Bi),ds=this._buildPlayer(V,qs,Pt);if(V.subTimeline&&r&&h.add(ee),We){const Er=new EM(o,s,ee);Er.setRealPlayer(ds),c.push(Er)}return ds});c.forEach(V=>{Ta(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function bO(n,o,e){let t=n.get(o);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(o)}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>cs(V,uE));const b=sd(f);return b.onDestroy(()=>{u.forEach(V=>Tp(V,uE)),jo(a,e.toStyles)}),h.forEach(V=>{Ta(r,V,[]).push(b)}),b}_buildPlayer(o,e,t){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,t):new Lc(o.duration,o.delay)}}class EM{constructor(o,e,t){this.namespaceId=o,this.triggerName=e,this.element=t,this._player=new Lc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>lM(o,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){Ta(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}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(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const e=this._player;e.triggerCallback&&e.triggerCallback(o)}}function jC(n){return n&&1===n.nodeType}function SE(n,o){const e=n.style.display;return n.style.display=o??"none",e}function DE(n,o,e,t,r){const l=[];e.forEach(a=>l.push(SE(a)));const d=[];t.forEach((a,c)=>{const u=new Map;a.forEach(h=>{const f=o.computeStyle(c,h,r);u.set(h,f),(!f||0==f.length)&&(c[ls]=mO,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(a=>SE(a,l[s++])),d}function EE(n,o){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==o.length)return e;const r=new Set(o),l=new Map;function d(s){if(!s)return 1;let a=l.get(s);if(a)return a;const c=s.parentNode;return a=e.has(c)?c:r.has(c)?1:d(c),l.set(s,a),a}return o.forEach(s=>{const a=d(s);1!==a&&e.get(a).push(s)}),e}function cs(n,o){n.classList?.add(o)}function Tp(n,o){n.classList?.remove(o)}function CO(n,o,e){sd(e).onDone(()=>n.processLeaveNode(o))}function HE(n,o){for(let e=0;er.add(l)):o.set(n,t),e.delete(n),!0}class NC{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new _O(o,e,t),this._timelineEngine=new cO(o,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(o,e,t,r,l){const d=o+"-"+r;let s=this._triggerCache[d];if(!s){const a=[],u=yM(this._driver,l,a,[]);if(a.length)throw function oI(n,o){return new i.vHH(3404,!1)}();s=function aO(n,o,e){return new sO(n,o,e)}(r,u,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,t,r){this._transitionEngine.insertNode(o,e,t,r)}onRemove(o,e,t,r){this._transitionEngine.removeNode(o,e,r||!1,t)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,t,r){if("@"==t.charAt(0)){const[l,d]=nE(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(o,e,t,r)}listen(o,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=nE(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(o,e,t,r,l)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xO=(()=>{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=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&jo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jo(this._element,this._initialStyles),this._endStyles&&(jo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Du(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Du(this._element,this._endStyles),this._endStyles=null),jo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function HM(n){let o=null;return n.forEach((e,t)=>{(function MO(n){return"display"===n||"position"===n})(t)&&(o=o||new Map,o.set(t,e))}),o}class PE{constructor(o,e,t,r){this.element=o,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const e=[];return o.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(o,e,t){return o.animate(this._convertKeyframesToObject(e),t)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&o.set(r,this._finished?t:_E(this.element,r))}),this.currentSnapshot=o}triggerCallback(o){const e="start"===o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class SO{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,e){return!1}containsElement(o,e){return oE(o,e)}getParentElement(o){return hM(o)}query(o,e,t){return lE(o,e,t)}computeStyle(o,e,t){return window.getComputedStyle(o)[e]}animate(o,e,t,r,l,d=[]){const a={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(a.easing=l);const c=new Map,u=d.filter(b=>b instanceof PE);(function kI(n,o){return 0===n||0===o})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((V,ee)=>c.set(ee,V))});let h=function SI(n){return n.length?n[0]instanceof Map?n:n.map(o=>hE(o)):[]}(e).map(b=>ld(b));h=function PI(n,o,e){if(e.size&&o.length){let t=o[0],r=[];if(e.forEach((l,d)=>{t.has(d)||r.push(d),t.set(d,l)}),r.length)for(let l=1;ld.set(s,_E(n,s)))}}return o}(o,h,c);const f=function TO(n,o){let e=null,t=null;return Array.isArray(o)&&o.length?(e=HM(o[0]),o.length>1&&(t=HM(o[o.length-1]))):o instanceof Map&&(e=HM(o)),e||t?new xO(n,e,t):null}(o,h);return new PE(o,h,a,f)}}let DO=(()=>{class n extends hm{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)?pm(e):e;return RE(this._renderer,null,t,"register",[r]),new EO(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class EO extends class $v{}{constructor(o,e){super(),this._id=o,this._renderer=e}create(o,e){return new HO(this._id,o,e||{},this._renderer)}}class HO{constructor(o,e,t,r){this.id=o,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(o,e){return this._renderer.listen(this.element,`@@${this.id}:${o}`,e)}_command(o,...e){return RE(this._renderer,this.element,this.id,o,e)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}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(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function RE(n,o,e,t,r){return n.setProperty(o,`@@${e}:${t}`,r)}const LE="@.disabled";let kO=(()=>{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=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 IE("",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 a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(a),new PO(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(NC),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class IE{constructor(o,e,t){this.namespaceId=o,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(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,t,r=!0){this.delegate.insertBefore(o,e,t),this.engine.onInsert(this.namespaceId,e,o,r)}removeChild(o,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,t,r){this.delegate.setAttribute(o,e,t,r)}removeAttribute(o,e,t){this.delegate.removeAttribute(o,e,t)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,t,r){this.delegate.setStyle(o,e,t,r)}removeStyle(o,e,t){this.delegate.removeStyle(o,e,t)}setProperty(o,e,t){"@"==e.charAt(0)&&e==LE?this.disableAnimations(o,!!t):this.delegate.setProperty(o,e,t)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,t){return this.delegate.listen(o,e,t)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}}class PO extends IE{constructor(o,e,t,r){super(e,t,r),this.factory=o,this.namespaceId=e}setProperty(o,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(o,t=void 0===t||!!t):this.engine.process(this.namespaceId,o,e.slice(1),t):this.delegate.setProperty(o,e,t)}listen(o,e,t){if("@"==e.charAt(0)){const r=function RO(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o);let l=e.slice(1),d="";return"@"!=l.charAt(0)&&([l,d]=function LO(n){const o=n.indexOf(".");return[n.substring(0,o),n.slice(o+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(o,e,t)}}const OE=[{provide:hm,useClass:DO},{provide:TM,useFactory:function OO(){return new tO}},{provide:NC,useClass:(()=>{class n extends NC{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(pM),i.LFG(TM),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function BO(n,o,e){return new kO(n,o,e)},deps:[_e,NC,i.R0b]}],kM=[{provide:pM,useFactory:()=>new SO},{provide:i.QbO,useValue:"BrowserAnimations"},...OE],BE=[{provide:pM,useClass:cE},{provide:i.QbO,useValue:"NoopAnimations"},...OE];let VO=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?BE:kM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:kM,imports:[Xi]}),n})(),FO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,Mu,_a,yp]}),n})();const jO=["*",[["mat-card-footer"]]],NO=["*","mat-card-footer"];let VE=(()=>{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})(),FE=(()=>{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})(),jE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:NO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(jO),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-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const YO=["input"],zO=["label"],UO=function(n){return{enterDuration:n}},GO=["*"],qO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:YE});function YE(){return{color:"accent",clickAction:"check-indeterminate"}}let WO=0;const zE=YE(),$O={provide:Tn,useExisting:(0,i.Gpc)(()=>cd),multi:!0};class ZO{}const JO=vc(Ja(Cr(sr(class{constructor(n){this._elementRef=n}}))));let QO=(()=>{class n extends JO{constructor(e,t,r,l,d,s,a){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,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||zE,this.color=this.defaultColor=this._options.color||zE.color,this.tabIndex=parseInt(d)||0,this.id=this._uniqueId=`${e}${++WO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Fe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Fe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Fe(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=Fe(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(YO,5),i.Gf(zO,5),i.Gf(Ar,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),cd=(()=>{class n extends QO{constructor(e,t,r,l,d,s,a){super("mat-checkbox-",e,t,l,d,s,a),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new ZO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(An),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(qO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",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"},exportAs:["matCheckbox"],features:[i._Bn([$O]),i.qOj],ngContentSelectors:GO,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(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.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()()),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,UO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Ar,_c],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),UE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),zC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,bc,UE,ot,UE]}),n})(),eB=0;const PM=new i.OlP("CdkAccordion");let tB=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+eB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Fe(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:PM,useExisting:n}]),i.TTD]}),n})(),iB=0,nB=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=xt.w0.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-"+iB++,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=Fe(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=Fe(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(PM,12),i.Y36(i.sBO),i.Y36(Tr))},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:PM,useValue:void 0}])]}),n})(),rB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const aB=["body"];function sB(n,o){}const oB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],lB=["mat-expansion-panel-header","*","mat-action-row"];function cB(n,o){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const dB=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],uB=["mat-panel-title","mat-panel-description","*"],RM=new i.OlP("MAT_ACCORDION"),GE="225ms cubic-bezier(0.4,0.0,0.2,1)",qE={indicatorRotate:hi("indicatorRotate",[Mt("collapsed, void",Pe({transform:"rotate(0deg)"})),Mt("expanded",Pe({transform:"rotate(180deg)"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))]),bodyExpansion:hi("bodyExpansion",[Mt("collapsed, void",Pe({height:"0px",visibility:"hidden"})),Mt("expanded",Pe({height:"*",visibility:"visible"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))])},WE=new i.OlP("MAT_EXPANSION_PANEL");let hB=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(WE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),pB=0;const $E=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ZE=(()=>{class n extends nB{constructor(e,t,r,l,d,s,a){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 De.x,this._headerId="mat-expansion-panel-header-"+pB++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ul((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())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Et(null),(0,Gt.h)(()=>this.expanded&&!this._portal),(0,Ot.q)(1)).subscribe(()=>{this._portal=new Co(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(RM,12),i.Y36(i.sBO),i.Y36(Tr),i.Y36(i.s_b),i.Y36(C.K0),i.Y36(i.QbO,8),i.Y36($E,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hB,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(aB,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:RM,useValue:void 0},{provide:WE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:lB,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(oB),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,sB,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))},dependencies:[Xa],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[qE.bodyExpansion]},changeDetection:0}),n})();class fB{}const mB=vc(fB);let JE=(()=>{class n extends mB{constructor(e,t,r,l,d,s,a){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=xt.w0.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,Gt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):yi.E;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=(0,Ci.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,Gt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Gt.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:$i(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(ZE,1),i.Y36(i.SBq),i.Y36(An),i.Y36(i.sBO),i.Y36($E,8),i.Y36(i.QbO,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:uB,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(dB),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,cB,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[C.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[qE.indicatorRotate]},changeDetection:0}),n})(),gB=(()=>{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})(),_B=(()=>{class n extends tB{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=Fe(e)}ngAfterContentInit(){this._headers.changes.pipe(Et(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new pl(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 o;return function(t){return(o||(o=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,JE,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:RM,useExisting:n}]),i.qOj]}),n})(),QE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,rB,Ao]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xc,ot,xc,ot]}),n})();function wB(n,o){1&n&&i.Hsn(0)}const CB=["*"];let eH=(()=>{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})(),tH=(()=>{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})(),AB=0;const iH=new i.OlP("STEPPER_GLOBAL_OPTIONS");let LM=(()=>{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=Fe(e)}get optional(){return this._optional}set optional(e){this._optional=Fe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Fe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Fe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>Zg)),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,tH,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:CB,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,wB,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Zg=(()=>{class n{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new De.x,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=AB++}get linear(){return this._linear}set linear(e){this._linear=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Fi(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Et(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Et(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new pl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ve.of)()).pipe(Et(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],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=$i(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=Ds();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(Zg))},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})(),TB=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zg))},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})(),xB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o]}),n})();function MB(n,o){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function SB(n,o){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 DB(n,o){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 EB(n,o){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 HB(n,o){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 kB(n,o){if(1&n&&(i.ynx(0,9),i.YNc(1,SB,2,1,"span",10),i.YNc(2,DB,2,1,"span",11),i.YNc(3,EB,2,1,"span",11),i.YNc(4,HB,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 PB(n,o){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 RB(n,o){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 LB(n,o){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 IB(n,o){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 OB(n,o){}function BB(n,o){if(1&n&&(i.Hsn(0),i.YNc(1,OB,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const VB=["*"];function FB(n,o){1&n&&i._UZ(0,"div",11)}const nH=function(n,o){return{step:n,i:o}};function jB(n,o){if(1&n&&(i.ynx(0),i.GkF(1,9),i.YNc(2,FB,1,0,"div",10),i.BQk()),2&n){const e=o.$implicit,t=o.index,r=o.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,nH,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}const rH=function(n){return{animationDuration:n}},aH=function(n,o){return{value:n,params:o}};function NB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.GkF(1,13),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",i.WLB(7,aH,r._getAnimationDirection(t),i.VKq(5,rH,r._getAnimationDuration())))("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 YB(n,o){if(1&n&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,jB,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,NB,2,10,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function zB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&n){const e=o.$implicit,t=o.index,r=o.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,nH,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",i.WLB(14,aH,l._getAnimationDirection(t),i.VKq(12,rH,l._getAnimationDuration())))("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 UB(n,o){if(1&n&&(i.ynx(0),i.YNc(1,zB,6,17,"div",14),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function GB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const l=i.CHM(e).step;return i.KtG(l.select())})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onKeydown(r))}),i.qZA()}if(2&n){const e=o.step,t=o.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 UC=(()=>{class n extends tH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),GC=(()=>{class n{constructor(){this.changes=new De.x,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 WB={provide:GC,deps:[[new i.FiY,new i.tp0,GC]],useFactory:function qB(n){return n||new GC}},$B=Ja(class extends eH{constructor(o){super(o)}},"primary");let sH=(()=>{class n extends $B{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 UC?null:this.label}_templateLabel(){return this.label instanceof UC?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(GC),i.Y36(An),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")(2,"div",1),i.YNc(3,MB,1,2,"ng-container",2),i.YNc(4,kB,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,PB,2,1,"div",5),i.YNc(7,RB,2,1,"div",5),i.YNc(8,LB,2,1,"div",6),i.YNc(9,IB,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))},dependencies:[C.O5,C.tP,C.RF,C.n9,C.ED,Ii,Ar],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),n})();const cH={horizontalStepTransition:hi("horizontalStepTransition",[Mt("previous",Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Mt("current",Pe({transform:"none",visibility:"inherit"})),Mt("next",Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_t("* => *",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:hi("verticalStepTransition",[Mt("previous",Pe({height:"0px",visibility:"hidden"})),Mt("next",Pe({height:"0px",visibility:"hidden"})),Mt("current",Pe({height:"*",visibility:"inherit"})),_t("* <=> current",yt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let ZB=(()=>{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})(),JB=(()=>{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})(),dH=(()=>{class n extends LM{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=xt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Dt.w)(()=>this._stepper.selectionChange.pipe((0,Qe.U)(e=>e.selectedStep===this),Et(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Co(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)(()=>uH)),i.Y36(fl,4),i.Y36(i.s_b),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,UC,5),i.Suo(r,JB,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:fl,useExisting:n},{provide:LM,useExisting:n}]),i.qOj],ngContentSelectors:VB,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,BB,2,1,"ng-template"))},dependencies:[Xa],encapsulation:2,changeDetection:0}),n})(),uH=(()=>{class n extends Zg{constructor(e,t,r){super(e,t,r),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new De.x,this._animationDuration="";const l=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===l?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ul((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.sBO),i.Y36(i.SBq))},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,dH,5),i.Suo(r,ZB,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(sH,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,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)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:Zg,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,YB,5,2,"div",1),i.YNc(2,UB,2,1,"ng-container",2),i.BQk(),i.YNc(3,GB,1,23,"ng-template",null,3,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[C.sg,C.O5,C.tP,C.RF,C.n9,sH],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[cH.horizontalStepTransition,cH.verticalStepTransition]},changeDetection:0}),n})(),QB=(()=>{class n extends vB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),KB=(()=>{class n extends TB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),hH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[WB,fl],imports:[ot,C.ez,Ao,_a,xB,Rl,un,ot]}),n})();const XB=["mat-calendar-body",""];function eV(n,o){if(1&n&&(i.TgZ(0,"tr",2)(1,"td",3),i._uU(2),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 tV(n,o){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 iV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",7)(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._cellClicked(d,r))})("focus",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._emitActiveDateChange(d,r))}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 nV(n,o){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,tV,2,6,"td",5),i.YNc(2,iV,5,47,"td",6),i.qZA()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function rV(n,o){if(1&n&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&n){const e=o.$implicit;i.xp6(2),i.Oqu(e.long),i.xp6(2),i.Oqu(e.narrow)}}const aV=["*"];function sV(n,o){}function oV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("_userSelection",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 lV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("monthSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._monthSelectedInYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 cV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("yearSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._yearSelectedInMultiYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 dV(n,o){}const uV=["button"];function hV(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const pV=[[["","matDatepickerToggleIcon",""]]],fV=["[matDatepickerToggleIcon]"];let Jg=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class IM{constructor(o,e,t,r,l={},d=o,s){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=s}}let xp=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=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)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols: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,Ot.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return OM(e,this.startValue,this.endValue)}_isRangeEnd(e){return BM(e,this.startValue,this.endValue)}_isInRange(e){return VM(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return OM(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 BM(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return VM(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return OM(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return BM(e,this.previewStart,this.previewEnd)}_isInPreview(e){return VM(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(pH(e)?t=e:pH(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",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:XB,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,eV,3,6,"tr",0),i.YNc(1,nV,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset=o&&n===e}function VM(n,o,e,t){return t&&null!==o&&null!==e&&o!==e&&n>=o&&n<=e}class Qr{constructor(o,e){this.start=o,this.end=e}}let dd=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new De.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),mV=(()=>{class n extends dd{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(wi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const fH={provide:dd,deps:[[new i.FiY,new i.tp0,dd],wi],useFactory:function _V(n,o){return n||new mV(o)}},qC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let mH=(()=>{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=xt.w0.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 Qr?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(Et(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let l,d;this._selected instanceof Qr?(l=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):l=d=this._getDateInCurrentMonth(this._selected),(l!==t||d!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!$i(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const 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()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,s)=>({long:d,narrow:t[s]}));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 Qr?(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(ga,8),i.Y36(wi,8),i.Y36(Si,8),i.Y36(qC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(xp,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","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,rV,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("activeDateChange",function(l){return t._updateActiveDate(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),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))},dependencies:[C.sg,xp],encapsulation:2,changeDetection:0}),n})(),gH=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=xt.w0.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),_H(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?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(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Qg(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,r=this._dateAdapter.createDate(t,0,1),l=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new IM(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=xt.w0.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 Qr?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(Et(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._getDateFromMonth(t);this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new IM(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(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+AV++,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)-Qg(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):_H(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36((0,i.Gpc)(()=>NM)),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:aV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(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.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()()()),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))},dependencies:[Yt],encapsulation:2,changeDetection:0}),n})(),NM=(()=>{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 De.x,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 Qr?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 bl(this.headerComponent||vV),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=t||r||e.dateFilter;if(l&&!l.firstChange){const d=this._getCurrentViewComponent();d&&(this._changeDetectorRef.detectChanges(),d._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Qr||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(Jg),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mH,5),i.Gf(yH,5),i.Gf(gH,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([fH]),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,sV,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,oV,1,8,"mat-month-view",2),i.YNc(3,lV,1,6,"mat-year-view",3),i.YNc(4,cV,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"))},dependencies:[C.RF,C.n9,Xd,Xa,mH,yH,gH],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const wH={transformPanel:hi("transformPanel",[_t("void => enter-dropdown",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(1, 0.8)"}),Pe({opacity:1,transform:"scale(1, 1)"})]))),_t("void => enter-dialog",yt("150ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(0.7)"}),Pe({transform:"none",opacity:1})]))),_t("* => void",yt("100ms linear",Pe({opacity:0})))]),fadeInCalendar:hi("fadeInCalendar",[Mt("void",Pe({opacity:0})),Mt("enter",Pe({opacity:1})),_t("void => *",yt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let TV=0;const CH=new i.OlP("mat-datepicker-scroll-strategy"),MV={provide:CH,deps:[hn],useFactory:function xV(n){return()=>n.scrollStrategies.reposition()}},SV=Ja(class{constructor(n){this._elementRef=n}});let DV=(()=>{class n extends SV{constructor(e,t,r,l,d,s){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new xt.w0,this._animationDone=new De.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Qr;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)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(dd),i.Y36(wi),i.Y36(qC,8),i.Y36(Jg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf(NM,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)(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,dV,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()()),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)}},dependencies:[C.mk,Yt,ob,Xa,NM],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[wH.transformPanel,wH.fadeInCalendar]},changeDetection:0}),n})(),AH=(()=>{class n{constructor(e,t,r,l,d,s,a){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=s,this._model=a,this._inputStateChanges=xt.w0.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-"+TV++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new De.x,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=Fe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Fe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Fe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function J_(n,o=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(o);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Fe(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 vr&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ds(),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,Ot.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new bl(DV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new vo({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()}),r.keydownEvents().subscribe(l=>{const d=l.keyCode;(38===d||40===d||37===d||39===d||33===d||34===d)&&l.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,Ot.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,Ci.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Gt.h)(t=>27===t.keyCode&&!$i(t)||this.datepickerInput&&$i(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CH),i.Y36(wi,8),i.Y36(Si,8),i.Y36(dd))},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})(),YM=(()=>{class n extends AH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([fH,{provide:AH,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class WC{constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}}let EV=(()=>{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 De.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=xt.w0.EMPTY,this._localeSubscription=xt.w0.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)),s=this._getMinDate();return!s||!d||this._dateAdapter.compareDate(s,d)<=0?null:{matDatepickerMin:{min:s,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMaxDate();return!s||!d||this._dateAdapter.compareDate(s,d)>=0?null:{matDatepickerMax:{max:s,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=Fe(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 WC(this,this._elementRef.nativeElement)),this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function HV(n,o){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!o.isDateInstance(r)||!o.isDateInstance(l))return!0;if(!o.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);const l=!this._dateAdapter.sameDate(r,this.value);!r||l?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(r),this.dateInput.emit(new WC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const kV={provide:Tn,useExisting:(0,i.Gpc)(()=>Kg),multi:!0},PV={provide:ln,useExisting:(0,i.Gpc)(()=>Kg),multi:!0};let Kg=(()=>{class n extends EV{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=xt.w0.EMPTY,this._validator=Li.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(wi,8),i.Y36(ga,8),i.Y36($h,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([kV,PV,{provide:BD,useExisting:n}]),i.qOj]}),n})(),RV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),zM=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=xt.w0.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=Fe(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,Ve.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ve.of)(),r=this.datepicker?(0,Ci.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ve.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ci.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),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,RV,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(uV,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:fV,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(pV),i.TgZ(0,"button",0,1),i.YNc(2,hV,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))},dependencies:[C.O5,Yt],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),UM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Jg,MV],imports:[C.ez,_a,vl,kh,Ao,ot,Ka]}),n})();const LV=["mat-sort-header",""];function IV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),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 OV=["*"],vH=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),BV=eu(sr(class{}));let Sa=(()=>{class n extends BV{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,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=Fe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function VV(n,o){let e=["asc","desc"];return"desc"==n&&e.reverse(),o||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),l=r.indexOf(this.direction)+1;return l>=r.length&&(l=0),r[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(vH,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 ud=ma.ENTERING+" "+Ph.STANDARD_CURVE,Mp={indicator:hi("indicator",[Mt("active-asc, asc",Pe({transform:"translateY(0px)"})),Mt("active-desc, desc",Pe({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",yt(ud))]),leftPointer:hi("leftPointer",[Mt("active-asc, asc",Pe({transform:"rotate(-45deg)"})),Mt("active-desc, desc",Pe({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),rightPointer:hi("rightPointer",[Mt("active-asc, asc",Pe({transform:"rotate(45deg)"})),Mt("active-desc, desc",Pe({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),arrowOpacity:hi("arrowOpacity",[Mt("desc-to-active, asc-to-active, active",Pe({opacity:1})),Mt("desc-to-hint, asc-to-hint, hint",Pe({opacity:.54})),Mt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Pe({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",yt("0ms")),_t("* <=> *",yt(ud))]),arrowPosition:hi("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",yt(ud,Tl([Pe({transform:"translateY(-25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",yt(ud,Tl([Pe({transform:"translateY(25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(-25%)"})]))),Mt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Pe({transform:"translateY(0)"})),Mt("hint-to-desc, active-to-desc, desc",Pe({transform:"translateY(-25%)"})),Mt("hint-to-asc, active-to-asc, asc",Pe({transform:"translateY(25%)"}))]),allowChildren:hi("allowChildren",[_t("* <=> *",[Pn("@*",Rc(),{optional:!0})])])};let $C=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jV={provide:$C,deps:[[new i.FiY,new i.tp0,$C]],useFactory:function FV(n){return n||new $C}},NV=sr(class{});let Sp=(()=>{class n extends NV{constructor(e,t,r,l,d,s,a,c){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Ci.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($C),i.Y36(i.sBO),i.Y36(Sa,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(An),i.Y36(i.SBq),i.Y36(If,8),i.Y36(vH,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:LV,ngContentSelectors:OV,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,IV,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)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[C.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Mp.indicator,Mp.leftPointer,Mp.rightPointer,Mp.arrowOpacity,Mp.arrowPosition,Mp.allowChildren]},changeDetection:0}),n})(),GM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[jV],imports:[C.ez,ot]}),n})();function YV(n,o){1&n&&i.Hsn(0)}const TH=["*"];function zV(n,o){}const UV=function(n){return{animationDuration:n}},GV=function(n,o){return{value:n,params:o}},qV=["tabListContainer"],WV=["tabList"],$V=["tabListInner"],ZV=["nextPaginator"],JV=["previousPaginator"],QV=["tabBodyWrapper"],KV=["tabHeader"];function XV(n,o){}function eF(n,o){if(1&n&&i.YNc(0,XV,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function tF(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function iF(n,o){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,s=i.oxw(),a=i.MAs(1);return i.KtG(s._handleClick(l,a,d))})("cdkFocusChange",function(r){const d=i.CHM(e).index,s=i.oxw();return i.KtG(s._tabFocusChanged(r,d))}),i.TgZ(1,"div",7),i.YNc(2,eF,1,1,"ng-template",8),i.YNc(3,tF,1,1,"ng-template",null,9,i.W1O),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 nF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._setTabBodyWrapperHeight(r))}),i.qZA()}if(2&n){const e=o.$implicit,t=o.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)("preserveContent",r.preserveContent),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const rF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function aF(){return o=>({left:o?(o.offsetLeft||0)+"px":"0",width:o?(o.offsetWidth||0)+"px":"0"})}});let xH=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(rF),i.Y36(i.QbO,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 MH=new i.OlP("MatTabContent");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:[["","matTabContent",""]],features:[i._Bn([{provide:MH,useExisting:n}])]}),n})();const SH=new i.OlP("MatTabLabel"),DH=new i.OlP("MAT_TAB");let oF=(()=>{class n extends xS{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(DH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:SH,useExisting:n}]),i.qOj]}),n})();const lF=sr(class{}),EH=new i.OlP("MAT_TAB_GROUP");let HH=(()=>{class n extends lF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new De.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Co(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(EH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SH,5),i.Suo(r,MH,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:DH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:TH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,YV,1,0,"ng-template"))},encapsulation:2}),n})();const cF={translateTab:hi("translateTab",[Mt("center, void, left-origin-center, right-origin-center",Pe({transform:"none"})),Mt("left",Pe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mt("right",Pe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_t("* => left, * => right, left => center, right => center",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),_t("void => left-origin-center",[Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),_t("void => right-origin-center",[Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let dF=(()=>{class n extends Xa{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=xt.w0.EMPTY,this._leavingSub=xt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Et(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>kH)),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),uF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=xt.w0.EMPTY,this._translateTabComplete=new De.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ul((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(Si,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),kH=(()=>{class n extends uF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Xa,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,zV,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,GV,t._position,i.VKq(1,UV,t.animationDuration)))},dependencies:[dF],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[cF.translateTab]}}),n})();const PH=new i.OlP("MAT_TABS_CONFIG"),hF=sr(class{});let RH=(()=>{class n extends hF{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 LH=fa({passive:!0});let mF=(()=>{class n{constructor(e,t,r,l,d,s,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new De.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new De.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{Qa(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Fi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Qa(this._previousPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Qa(this._nextPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ve.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new pl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(r),(0,Ci.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return"function"!=typeof ResizeObserver?yi.E:this._items.changes.pipe(Et(this._items),(0,Dt.w)(e=>new nn.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(l=>{r.observe(l.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Df(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!$i(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 s,a;"ltr"==this._getLayoutDirection()?(s=l,a=s+d):(a=this._tabListInner.nativeElement.offsetWidth-l,s=a-d);const c=this.scrollDistance,u=this.scrollDistance+r;su&&(this.scrollDistance+=a-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(),(0,am.H)(650,100).pipe(Ke((0,Ci.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(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),gF=(()=>{class n extends mF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Fe(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(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),_F=(()=>{class n extends gF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RH,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(xH,7),i.Gf(qV,7),i.Gf(WV,7),i.Gf($V,7),i.Gf(ZV,5),i.Gf(JV,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:TH,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"button",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.TgZ(11,"button",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)("disabled",t._disableScrollBefore||null),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)("disabled",t._disableScrollAfter||null))},dependencies:[Ar,_c,xH],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),bF=0;class yF{}const wF=Ja(Cr(class{constructor(n){this._elementRef=n}}),"primary");let CF=(()=>{class n extends wF{constructor(e,t,r,l){super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=xt.w0.EMPTY,this._tabLabelSubscription=xt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,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=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Fi(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=Fi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Fe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,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._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let l=0;l{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Et(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new yF;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,Ci.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(PH,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),AF=(()=>{class n extends CF{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(PH,8),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HH,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(QV,5),i.Gf(KV,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:EH,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","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(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,iF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,nF,1,11,"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))},dependencies:[C.mk,C.sg,C.O5,Xa,Ar,Xd,RH,kH,_F],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),OH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Ao,un,bc,kh,ot]}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),VH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[BH,un,ot,bc,BH,ot]}),n})();const YH=new i.OlP("mat-chips-default-options");let WM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl,{provide:YH,useValue:{separatorKeyCodes:[13]}}],imports:[ot]}),n})(),zH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,NE,sM,QE,_a,XE,zC,Rl,TC,Mu,fC,Bc,pC,_l,cg,Ho,hH,UM,wv,LD,KD,Au,XD,GM,wu,Zc,Po,un,TC,VH,WM,NE,sM,QE,_a,XE,zC,Rl,TC,Mu,fC,Bc,pC,_l,cg,Ho,hH,UM,wv,LD,KD,Au,XD,GM,wu,Zc,Po,un,OH,VH,WM]}),n})(),WF=(()=>{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(In),i.Y36(Zr))},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)(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)(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),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")," "))},dependencies:[Yt,Mr,Sr,Dr,St]}),n})(),$F=(()=>{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})(),UH=(()=>{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})(),ZC=(()=>{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 ZF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",20)(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 JF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function QF(n,o){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 KF(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function XF(n,o){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 ej(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function tj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function ij(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,ej,4,3,"button",26),i.YNc(2,tj,4,3,"button",26),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function nj(n,o){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 rj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function aj(n,o){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 sj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function oj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,sj,4,3,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function lj(n,o){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 cj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function dj(n,o){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 uj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function hj(n,o){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 pj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function fj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,pj,3,1,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function mj(n,o){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 gj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",25)(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.showCite(l))})("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!1)}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function _j(n,o){1&n&&i._UZ(0,"tr",31)}const GH=function(n,o){return[n,o]};function bj(n,o){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 i.KtG(d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null)}),i.qZA()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,GH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,GH,t.routerPath,e.id))}}function yj(n,o){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 Dp=(()=>{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 si(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Io,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(s=>this.changeLockMessage=s),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(s=>this.locked=s),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(s=>this.unlocked=s)}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+=Nw(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 jl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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=xn();t.width="500px",t.data=e,this.dialog.open(WF,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)=>Oo(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(dC),i.Y36(Ut),i.Y36(bi),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZF,2,3,"th",4),i.YNc(5,JF,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,QF,3,3,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,XF,3,3,"th",7),i.YNc(11,ij,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,nj,3,3,"th",7),i.YNc(14,rj,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,aj,3,3,"th",7),i.YNc(17,oj,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,lj,3,3,"th",7),i.YNc(20,cj,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,dj,3,3,"th",7),i.YNc(23,uj,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,hj,3,3,"th",7),i.YNc(26,fj,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,mj,3,3,"th",16),i.YNc(29,gj,4,3,"td",8),i.BQk(),i.YNc(30,_j,1,0,"tr",17),i.YNc(31,bj,1,10,"tr",18),i.qZA()()(),i.YNc(32,yj,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))},dependencies:[C.sg,C.O5,Yt,cd,Ii,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,$c,fc,Gs,ss,UH,St,ZC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function wj(n,o){1&n&&i._UZ(0,"mat-spinner",7)}const Cj=function(){return["id","title","year"]};function Aj(n,o){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,Cj))}}let $M=(()=>{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(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,wj,1,0,"mat-spinner",2),i.YNc(5,Aj,4,7,"div",3),i.TgZ(6,"div",4)(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()()()),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")," "))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,Dp,St]}),n})(),Ep=(()=>{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"))},dependencies:[Ii,Yt,$c,St],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 Hp=x(5439);const ku=Hp||x.t(Hp,2),qH=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Tj(){return{useUtc:!1}}});function xj(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this._options=t,this.setLocale(e||ku.locale())}setLocale(e){super.setLocale(e);let t=ku.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:xj(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,ku.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return ku.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return ku.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?ku.utc(e,t,r,l):ku(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hs,8),i.LFG(qH,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Mj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:Xg,deps:[Hs,qH]}]}),n})(),WH=(()=>{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(){i.CHM(r);const d=i.MAs(7);return i.KtG(d.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(7);return i.KtG(t.chosenYearHandler(t.startYear,d,s))}),i.qZA()(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(15);return i.KtG(d.open())}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(15);return i.KtG(t.chosenYearHandler(t.endYear,d,s))}),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)}},dependencies:[Gn,wa,Wh,os,Rn,qn,xr,YM,Kg,zM,St],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function Sj(n,o){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const JC=Hp,Dj={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ZM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ji,this.code=new Ji,this.startYear=new Ji(JC()),this.endYear=new Ji(JC())}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,C.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,C.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 Ji(JC()),this.endYear=new Ji(JC()),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(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:Dj}])],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)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1)(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.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1)(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,Sj,2,2,"mat-option",8),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()()),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")," "))},dependencies:[C.sg,Yt,Ii,Gn,wa,os,Rn,qn,xr,ko,Mc,WH,St],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 Ej(n,o){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 Hj(n,o){1&n&&i._UZ(0,"mat-spinner",11)}let kj=(()=>{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 si(!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=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,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(zn),i.Y36(Ut),i.Y36(bi),i.Y36(Ro),i.Y36(Ei))},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)(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.TgZ(6,"div",4)(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.YNc(12,Ej,1,4,"perun-web-apps-publications-list",8),i.YNc(13,Hj,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))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function Pj(n,o){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 Rj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(7,Pj,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 Lj(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let Ij=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new si(!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=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,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(zn),i.Y36(Ut),i.Y36(bi),i.Y36(nt))},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)(1,"h1",1)(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.YNc(7,Rj,8,5,"div",4),i.YNc(8,Lj,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))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St]}),n})(),Oj=(()=>{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(Ri))},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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6)(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.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6)(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()()()()()()),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")," "))},dependencies:[jE,VE,FE,Yt,Ii,St],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 Bj=["input"];let Vj=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ji,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),Qa(this.input.nativeElement,"keyup").pipe((0,Qe.U)(e=>e.target.value),(0,dl.b)(500),ul()).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(Bj,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","","data-cy","filter-input",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()()),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," "))},dependencies:[Rn,qn,ts,Gn,xr,os,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function Fj(n,o){1&n&&i._UZ(0,"th",20)}function jj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Nj(n,o){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 Yj(n,o){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function zj(n,o){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 Uj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function Gj(n,o){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 qj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function Wj(n,o){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 $j(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function Zj(n,o){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 Jj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function Qj(n,o){1&n&&i._UZ(0,"th",26)}function Kj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onAddClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function Xj(n,o){1&n&&i._UZ(0,"th",26)}function e2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onRemoveClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function t2(n,o){1&n&&i._UZ(0,"tr",29)}const $H=function(n){return["/authors",n]};function n2(n,o){if(1&n&&i._UZ(0,"tr",30),2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,$H,e.id))("routerLink",t.disableRouting?null:i.VKq(6,$H,e.id))}}function r2(n,o){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 a2(n,o){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 JM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Io,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 Yw(n){let o="";return null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}(e);case"organization":return Fs(e,"organization");case"email":return Fs(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 Nw(e);case"organization":return Fs(e,"organization");case"email":return Fs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Fs(e,"organization");case"email":return Fs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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)=>Il(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Oo(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(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Fj,1,0,"th",4),i.YNc(5,jj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Nj,3,3,"th",7),i.YNc(8,Yj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,zj,3,3,"th",7),i.YNc(11,Uj,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Gj,3,3,"th",7),i.YNc(14,qj,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,Wj,3,3,"th",7),i.YNc(17,$j,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,Zj,3,3,"th",7),i.YNc(20,Jj,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,Qj,1,0,"th",15),i.YNc(23,Kj,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,Xj,1,0,"th",15),i.YNc(26,e2,4,3,"td",8),i.BQk(),i.YNc(27,t2,1,0,"tr",17),i.YNc(28,n2,1,8,"tr",18),i.qZA()()(),i.YNc(29,r2,3,3,"perun-web-apps-alert",19),i.YNc(30,a2,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))},dependencies:[C.O5,Yt,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,fc,Gs,ss,UH,St,ZC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function s2(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const o2=function(){return["id","name","organization","email","numberOfPublications"]};function l2(n,o){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,o2))("filterValue",e.filterValue)("tableId",e.tableId)}}let c2=(()=>{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(Ut))},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)(1,"h1",1)(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.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,s2,1,0,"mat-spinner",6),i.YNc(10,l2,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))},dependencies:[C.O5,Ii,Ai,Ep,Vj,JM,St]}),n})();function d2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function u2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(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.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.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(24),i.ALo(25,"translate"),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 h2=(()=>{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 Ji(null,[Li.required,Li.pattern("^[\\w.-]+( [\\w.-]+)*$"),Li.maxLength(128)]),this.rankCtrl=new Ji(null,[Li.required,Li.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(In),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,d2,1,0,"mat-spinner",2),i.YNc(5,u2,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))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,rs,xr,$c,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function p2(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function f2(n,o){1&n&&i._UZ(0,"th",14)}function m2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function g2(n,o){1&n&&i._UZ(0,"tr",16)}function _2(n,o){1&n&&i._UZ(0,"tr",17)}function b2(n,o){if(1&n&&(i.TgZ(0,"div",6)(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,f2,1,0,"th",10),i.YNc(10,m2,2,1,"td",11),i.BQk(),i.YNc(11,g2,1,0,"tr",12),i.YNc(12,_2,1,0,"tr",13),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 y2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",18)(1,"button",19),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),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 w2=(()=>{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 jl(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(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,p2,1,0,"mat-spinner",2),i.YNc(5,b2,13,9,"div",3),i.YNc(6,y2,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))},dependencies:[C.O5,Yt,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Mr,Sr,Dr,Ai,St]}),n})();function C2(n,o){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 A2(n,o){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 e_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ji}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","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,C2,2,4,"input",1),i.YNc(2,A2,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[C.O5,Rn,qn,Gn,xr,os,$F,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function v2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function T2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(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.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(18),i.ALo(19,"translate"),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 x2=(()=>{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(s=>this.successMessage=s)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ji(this.data.rank,[Li.required,Li.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(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,v2,1,0,"mat-spinner",2),i.YNc(5,T2,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))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,rs,xr,$c,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function M2(n,o){1&n&&i._UZ(0,"th",15)}function S2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function D2(n,o){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 E2(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function H2(n,o){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 k2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function P2(n,o){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 R2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.updateCategory(r))}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function L2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,R2,3,0,"button",21),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function I2(n,o){1&n&&i._UZ(0,"tr",23)}function O2(n,o){1&n&&i._UZ(0,"tr",24)}function B2(n,o){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 V2=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new si(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Io,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 jl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(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=xn();t.width="400px",t.data=e,this.dialog.open(x2,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(dC),i.Y36(bi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,M2,1,0,"th",4),i.YNc(5,S2,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,D2,3,3,"th",7),i.YNc(8,E2,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,H2,3,3,"th",7),i.YNc(11,k2,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,P2,3,3,"th",7),i.YNc(14,L2,3,2,"td",10),i.BQk(),i.YNc(15,I2,1,0,"tr",12),i.YNc(16,O2,1,0,"tr",13),i.qZA()()(),i.YNc(17,B2,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))},dependencies:[C.O5,Yt,cd,Ii,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function F2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 j2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 N2(n,o){1&n&&i._UZ(0,"mat-spinner",10)}const Y2=function(){return["select","id","name","rank"]},z2=function(){return["name","rank"]};function U2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,Y2):i.DdM(6,z2))("tableId",e.tableId)("selection",e.selected)}}let G2=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new si(!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=xn();e.width="400px",e.data={},this.dialog.open(h2,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=xn();e.width="400px",e.data=this.selected.selected,this.dialog.open(w2,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(bi),i.Y36(ra))},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)(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,F2,3,3,"button",3),i.YNc(6,j2,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,N2,1,0,"mat-spinner",6),i.YNc(9,U2,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))},dependencies:[C.O5,Yt,Ai,Ep,e_,V2,St]}),n})();function q2(n,o){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 W2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function $2(n,o){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 Z2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function J2(n,o){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 Q2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function K2(n,o){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 X2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function eN(n,o){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 tN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function iN(n,o){1&n&&i._UZ(0,"tr",17)}function nN(n,o){1&n&&i._UZ(0,"tr",18)}function rN(n,o){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 aN=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Io}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 jl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(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(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,q2,3,3,"th",4),i.YNc(5,W2,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,$2,3,3,"th",4),i.YNc(8,Z2,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,J2,3,3,"th",4),i.YNc(11,Q2,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,K2,3,3,"th",4),i.YNc(14,X2,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,eN,3,3,"th",4),i.YNc(17,tN,2,1,"td",7),i.BQk(),i.YNc(18,iN,1,0,"tr",11),i.YNc(19,nN,1,0,"tr",12),i.qZA()()(),i.YNc(20,rN,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))},dependencies:[C.O5,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function sN(n,o){1&n&&i._UZ(0,"mat-spinner",6)}function oN(n,o){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 lN=(()=>{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(Ut))},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)(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,sN,1,0,"mat-spinner",4),i.YNc(7,oN,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))},dependencies:[C.O5,Ai,Ep,e_,aN,St]}),n})();function cN(n,o){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 dN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(11,cN,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 uN(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let hN=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new si(!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=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,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(zn),i.Y36(Ut),i.Y36(ia),i.Y36(bi))},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)(1,"h1",1)(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.YNc(7,dN,12,11,"div",4),i.YNc(8,uN,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))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St,ZC]}),n})();function pN(n,o){1&n&&i._UZ(0,"mat-spinner",2)}function fN(n,o){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 mN(n,o){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 i.KtG(r.editing=!r.editing)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function gN(n,o){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 _N(n,o){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,gN,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 bN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.save())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),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 yN(n,o){1&n&&i._UZ(0,"th",21)}function wN(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij("",e.key,":")}}function CN(n,o){1&n&&i._UZ(0,"th",21)}function AN(n,o){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 vN(n,o){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 TN(n,o){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 xN(n,o){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 MN(n,o){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,xN,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 SN(n,o){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function DN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,MN,2,1,"span",1),i.YNc(2,SN,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 EN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(7);return i.KtG(r.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27)(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),d=i.oxw(4);return i.KtG(d.chosenYearHandler(r,l))}),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 HN(n,o){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function kN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field")(1,"mat-select",31),i.YNc(2,HN,2,2,"mat-option",32),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 PN(n,o){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 RN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,PN,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 LN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.isbn=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function IN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.doi=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function ON(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"textarea",36),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.main=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function BN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,EN,8,7,"mat-form-field",25),i.YNc(2,kN,3,2,"mat-form-field",1),i.YNc(3,RN,3,2,"mat-form-field",1),i.YNc(4,LN,2,1,"mat-form-field",6),i.YNc(5,IN,2,1,"mat-form-field",6),i.YNc(6,ON,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 VN(n,o){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,AN,10,9,"span",1),i.YNc(2,vN,3,4,"span",1),i.YNc(3,TN,2,1,"span",1),i.YNc(4,DN,3,2,"div",1),i.YNc(5,BN,7,6,"div",1),i.qZA()),2&n){const e=o.$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 FN(n,o){1&n&&i._UZ(0,"tr",37)}function jN(n,o){if(1&n&&(i.TgZ(0,"div")(1,"div",3),i.YNc(2,fN,2,1,"h3",4),i.YNc(3,mN,4,3,"button",5),i.YNc(4,_N,3,2,"mat-form-field",6),i.YNc(5,bN,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,yN,1,0,"th",10),i.YNc(9,wN,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,CN,1,0,"th",10),i.YNc(12,VN,6,5,"td",13),i.BQk(),i.YNc(13,FN,1,0,"tr",14),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 ZH=Hp,NN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let YN=(()=>{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 si(!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(Ut),i.Y36(On),i.Y36(Yi))},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:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:NN}])],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,pN,1,0,"mat-spinner",0),i.YNc(2,jN,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,Yt,Ii,Bo,Ns,Ys,js,Vo,zs,Us,Fo,Ai,ts,Gn,wa,Wh,os,Rn,qn,El,xr,YM,Kg,zM,$c,ko,Mc,C.uU,St],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 zN=function(){return["id","name","organization","email","add"]};function UN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.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,zN))}}function GN(n,o){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 qN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,UN,1,5,"perun-web-apps-authors-list",13),i.YNc(2,GN,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 WN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}const $N=function(){return["id","name","organization","email","remove"]};function ZN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.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,$N))}}function JN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZN,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 QN(n,o){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 KN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,qN,3,2,"div",6),i.YNc(2,WN,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,JN,2,1,"div",6),i.YNc(7,QN,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 XN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}let eY=(()=>{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 si(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ji("",[Li.required,Li.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(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),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.YNc(15,KN,8,7,"div",6),i.qZA(),i.YNc(16,XN,1,0,"mat-spinner",7),i.TgZ(17,"div",8)(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()()()),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")," "))},dependencies:[C.O5,Yt,Ii,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,xr,Gs,JM,St],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function tY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 iY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 nY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const rY=function(){return["id","name","organization","email"]},aY=function(){return["select","id","name","organization","email"]};function sY(n,o){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,rY):i.DdM(6,aY))}}let JH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!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=xn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(eY,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=xn();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(GD,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(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},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,tY,3,3,"button",1),i.YNc(2,iY,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,nY,1,0,"mat-spinner",4),i.YNc(5,sY,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))},dependencies:[C.O5,Yt,Ai,e_,JM,St]}),n})();function oY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 lY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function cY(n,o){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 dY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function uY(n,o){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 hY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function pY(n,o){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 fY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.contact)}}function mY(n,o){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 gY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.type)}}function _Y(n,o){1&n&&i._UZ(0,"tr",23)}function bY(n,o){1&n&&i._UZ(0,"tr",24)}function yY(n,o){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 wY(n,o){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 CY=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new si(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Io}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(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 jl(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(ra),i.Y36(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,oY,2,3,"th",4),i.YNc(5,lY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,cY,3,3,"th",7),i.YNc(8,dY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,uY,3,3,"th",7),i.YNc(11,hY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,pY,3,3,"th",7),i.YNc(14,fY,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,mY,3,3,"th",7),i.YNc(17,gY,2,1,"td",10),i.BQk(),i.YNc(18,_Y,1,0,"tr",13),i.YNc(19,bY,1,0,"tr",14),i.qZA()()(),i.YNc(20,yY,3,3,"perun-web-apps-alert",15),i.YNc(21,wY,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))},dependencies:[C.O5,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function AY(n,o){1&n&&i._UZ(0,"mat-spinner",4)}const vY=function(){return["select","id","name","contact"]};function TY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterValue=r)}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8)(5,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(9),i.ALo(10,"translate"),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,vY))("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 xY=(()=>{class n{constructor(e,t,r,l,d,s,a){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=s,this.cabinetManagerService=a,this.selected=new si(!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(In),i.Y36(Zr),i.Y36(Js),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AY,1,0,"mat-spinner",2),i.YNc(5,TY,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))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,e_,CY,St]}),n})();function MY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 SY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function DY(n,o){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 EY(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function HY(n,o){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 kY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function PY(n,o){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 RY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function LY(n,o){1&n&&i._UZ(0,"tr",22)}function IY(n,o){1&n&&i._UZ(0,"tr",23)}function OY(n,o){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 BY(n,o){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 VY=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Io,this.selection=new si(!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 jl(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)}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(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(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,MY,2,3,"th",4),i.YNc(5,SY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,DY,3,3,"th",7),i.YNc(8,EY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,HY,3,3,"th",7),i.YNc(11,kY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,PY,3,3,"th",7),i.YNc(14,RY,2,1,"td",10),i.BQk(),i.YNc(15,LY,1,0,"tr",12),i.YNc(16,IY,1,0,"tr",13),i.qZA()()(),i.YNc(17,OY,3,3,"perun-web-apps-alert",14),i.YNc(18,BY,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))},dependencies:[C.O5,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function FY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 jY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 NY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const YY=function(){return["id","name","createdBy"]},zY=function(){return["select","id","name","createdBy"]};function UY(n,o){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,YY):i.DdM(6,zY))("selection",e.selection)}}let QH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!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=xn();e.width="800px",e.data=this.publication,this.dialog.open(xY,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=xn();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(GD,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(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},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,FY,3,3,"button",1),i.YNc(2,jY,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,NY,1,0,"mat-spinner",4),i.YNc(5,UY,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))},dependencies:[C.O5,Yt,Ai,e_,VY,St]}),n})();function GY(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function qY(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function WY(n,o){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()()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function $Y(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function ZY(n,o){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 JY(n,o){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 QY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function KY(n,o){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 XY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function e3(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function t3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.refreshPublication())}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function n3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,qY,6,3,"h1",4),i.YNc(2,WY,5,3,"h1",4),i.YNc(3,$Y,6,3,"h1",4),i.YNc(4,ZY,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(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLock())}),i.YNc(12,JY,3,3,"span",7),i.YNc(13,QY,2,0,"mat-icon",2),i.YNc(14,KY,3,3,"span",7),i.YNc(15,XY,2,0,"mat-icon",2),i.qZA()(),i.TgZ(16,"mat-card")(17,"mat-card-content"),i.YNc(18,e3,1,0,"mat-spinner",1),i.YNc(19,t3,1,2,"perun-web-apps-publication-detail-list",8),i.qZA()(),i.TgZ(20,"mat-card",9)(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.TgZ(26,"mat-card",9)(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()()()}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 t_=(()=>{class n{constructor(e,t,r,l,d,s,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=s,this.translate=a,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new si(!0,[]),this.selectionThanks=new si(!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(zn),i.Y36(Ut),i.Y36(Ro),i.Y36(Ei),i.Y36(bi),i.Y36(On),i.Y36(Yi))},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,GY,1,0,"mat-spinner",1),i.YNc(2,n3,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},dependencies:[C.O5,jE,VE,FE,Yt,Ii,Ai,YN,JH,QH,St,ZC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),QM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Rl,C.ez]}),n})();function KM(n,o,e){for(let t in o)if(o.hasOwnProperty(t)){const r=o[t];r?n.setProperty(t,r,e?.has(t)?"important":""):n.removeProperty(t)}return n}function kp(n,o){const e=o?"":"none";KM(n.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function KH(n,o,e){KM(n.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},e)}function QC(n,o){return o&&"none"!=o?n+" "+o:n}function XH(n){const o=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*o}function XM(n,o){return n.getPropertyValue(o).split(",").map(t=>t.trim())}function e0(n){const o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function t0(n,o,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&o>=l&&o<=d}function i_(n,o,e){n.top+=o,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function e1(n,o,e,t){const{top:r,right:l,bottom:d,left:s,width:a,height:c}=n,u=a*o,h=c*o;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:e0(e)})})}handleScroll(o){const e=wn(o),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,a=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&i_(c.clientRect,s,a)}),r.top=l,r.left=d,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function n1(n){const o=n.cloneNode(!0),e=o.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();o.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&this._initializeDragSequence(a,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const a=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(a.x-this._pickupPositionOnPage.x)+Math.abs(a.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}s.preventDefault();const c=this._getConstrainedPointerPosition(a);if(this._hasMoved=!0,this._lastKnownPointerPosition=a,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,a);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.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._nativeDragStart=s=>{if(this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(o).withParent(e.parentDragRef||null),this._parentPositions=new t1(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(o){const e=Fe(o);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>kp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(t=>Zi(t)),this._handles.forEach(t=>kp(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(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){const e=Zi(o);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,KC),e.addEventListener("touchstart",this._pointerDown,o1),e.addEventListener("dragstart",this._nativeDragStart,KC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?Zi(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),kp(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),kp(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){const o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){const o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){n_(o)&&(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(),KH(t,!1,n0),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:o}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(o,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=n_(e),l=!r&&0!==e.button,d=this._rootElement,s=wn(e),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Eh(e):Za(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||a||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._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=e0(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,o,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(o){KH(this._rootElement,!0,n0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(o),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:o}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r,event:o}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,o,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,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,o,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,o,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,e):this._applyPreviewTransform(o-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const o=this._previewTemplate,e=this.previewClass,t=o?o.template:null;let r;if(t&&o){const l=o.matchSize?this._initialClientRect:null,d=o.viewContainer.createEmbeddedView(t,o.context);d.detectChanges(),r=c1(d,this._document),this._previewRef=d,o.matchSize?d1(r,l):r.style.transform=XC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=n1(this._rootElement),d1(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return KM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},n0),kp(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 o=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);const e=function a3(n){const o=getComputedStyle(n),e=XM(o,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=XM(o,"transition-duration"),d=XM(o,"transition-delay");return XH(l[r])+XH(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{(!d||wn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const o=this._placeholderTemplate,e=o?o.template:null;let t;return e?(this._placeholderRef=o.viewContainer.createEmbeddedView(e,o.context),this._placeholderRef.detectChanges(),t=c1(this._placeholderRef,this._document)):t=n1(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(o,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():o,d=n_(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-o.left+(d.pageX-l.left-s.left),y:l.top-o.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(o){const e=this._getViewportScrollPosition(),t=n_(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,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(o){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(o,this,this._initialClientRect,this._pickupPositionInElement):o;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,{width:a,height:c}=this._getPreviewRect(),u=s.top+d,h=s.bottom-(c-d);t=l1(t,s.left+l,s.right-(a-l)),r=l1(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(o){const{x:e,y:t}=o,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 o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,kp(this._rootElement,o))}_removeRootElementListeners(o){o.removeEventListener("mousedown",this._pointerDown,KC),o.removeEventListener("touchstart",this._pointerDown,o1),o.removeEventListener("dragstart",this._nativeDragStart,KC)}_applyRootElementTransform(o,e){const t=XC(o,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=QC(t,this._initialTransform)}_applyPreviewTransform(o,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=XC(o,e);this._preview.style.transform=QC(r,t)}_getDragDistance(o){const e=this._pickupPositionOnPage;return e?{x:o.x-e.x,y:o.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:e}=this._passiveTransform;if(0===o&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,d=t.right-r.right,s=r.top-t.top,a=t.bottom-r.bottom;r.width>t.width?(l>0&&(o+=l),d>0&&(o-=d)):o=0,r.height>t.height?(s>0&&(e+=s),a>0&&(e-=a)):e=0,(o!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:o})}_getDragStartDelay(o){const e=this.dragStartDelay;return"number"==typeof e?e:n_(o)?e.touch:e?e.mouse:0}_updateOnScroll(o){const e=this._parentPositions.handleScroll(o);if(e){const t=wn(o);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&i_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=gc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,e){const t=this._previewContainer||"global";if("parent"===t)return o;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Zi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(o){return this._handles.find(e=>o.target&&(o.target===e||e.contains(o.target)))}}function XC(n,o){return`translate3d(${Math.round(n)}px, ${Math.round(o)}px, 0)`}function l1(n,o,e){return Math.max(o,Math.min(e,n))}function n_(n){return"t"===n.type[0]}function c1(n,o){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===o.ELEMENT_NODE)return e[0];const t=o.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function d1(n,o){n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.transform=XC(o.left,o.top)}function r_(n,o){return Math.max(0,Math.min(o,n))}class d3{constructor(o,e){this._element=o,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(o){this.withItems(o)}sort(o,e,t,r){const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(o,e,t,r);if(-1===d&&l.length>0)return null;const s="horizontal"===this.orientation,a=l.findIndex(he=>he.drag===o),c=l[d],h=c.clientRect,f=a>d?1:-1,b=this._getItemOffsetPx(l[a].clientRect,h,f),V=this._getSiblingOffsetPx(a,l,f),ee=l.slice();return function c3(n,o,e){const t=r_(o,n.length-1),r=r_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ee[We]===he)return;const Pt=he.drag===o,Jt=Pt?b:V,Bi=Pt?o.getPlaceholderElement():he.drag.getRootElement();he.offset+=Jt,s?(Bi.style.transform=QC(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),i_(he.clientRect,0,Jt)):(Bi.style.transform=QC(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),i_(he.clientRect,Jt,0))}),this._previousSwap.overlaps=t0(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:d}}enter(o,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(o,e,t):r,d=this._activeDraggables,s=d.indexOf(o),a=o.getPlaceholderElement();let c=d[l];if(c===o&&(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(a,u),d.splice(l,0,o)}else Zi(this._element).appendChild(a),d.push(o);a.style.transform="",this._cacheItemPositions()}withItems(o){this._activeDraggables=o.slice(),this._cacheItemPositions()}withSortPredicate(o){this._sortPredicate=o}reset(){this._activeDraggables.forEach(o=>{const e=o.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===o)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===o)}updateOnScroll(o,e){this._itemPositions.forEach(({clientRect:t})=>{i_(t,o,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const o="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:e0(t)}}).sort((e,t)=>o?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(o,e,t){const r="horizontal"===this.orientation;let l=r?e.left-o.left:e.top-o.top;return-1===t&&(l+=r?e.width-o.width:e.height-o.height),l}_getSiblingOffsetPx(o,e,t){const r="horizontal"===this.orientation,l=e[o].clientRect,d=e[o+-1*t];let s=l[r?"width":"height"]*t;if(d){const a=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[a]-l[c]:s+=l[a]-d.clientRect[c]}return s}_shouldEnterAsFirstChild(o,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?o>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?o<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(o,e,t,r){const l="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===o)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(a.left)&&e=Math.floor(a.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r3(n=0,o=Vh.z){return n<0&&(n=0),(0,am.H)(n,n,o)}(0,Hb).pipe(Ke(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(o),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new t1(t),this._sortStrategy=new d3(this.element,e),this._sortStrategy.withSortPredicate((d,s)=>this.sortPredicate(d,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(o)),this._sortStrategy.enter(o,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,e,t,r,l,d,s,a={}){this._reset(),this.dropped.next({item:o,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s,event:a})}withItems(o){const e=this._draggables;return this._draggables=o,o.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===o.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._sortStrategy.direction=o,this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){return this._sortStrategy.orientation=o,this}withScrollableParents(o){const e=Zi(this.element);return this._scrollableElements=-1===o.indexOf(e)?[e,...o]:o.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,e,t,r){if(this.sortingDisabled||!this._clientRect||!e1(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(o,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||e1(d.clientRect,.05,o,e)&&([r,l]=function h3(n,o,e,t){const r=p1(o,t),l=f1(o,e);let d=0,s=0;if(r){const a=n.scrollTop;1===r?a>0&&(d=1):n.scrollHeight-a>n.clientHeight&&(d=2)}if(l){const a=n.scrollLeft;1===l?a>0&&(s=1):n.scrollWidth-a>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,o,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),a={width:d,height:s,top:0,right:d,bottom:s,left:0};r=p1(a,e),l=f1(a,o),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 o=Zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const o=Zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(o).clientRect}_reset(){this._isDragging=!1;const o=Zi(this.element).style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(o,e){return null!=this._clientRect&&t0(this._clientRect,o,e)}_getSiblingContainerFromPosition(o,e,t){return this._siblings.find(r=>r._canReceive(o,e,t))}_canReceive(o,e,t){if(!this._clientRect||!t0(this._clientRect,e,t)||!this.enterPredicate(o,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(o,e){const t=this._activeSiblings;!t.has(o)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(o),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(o);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const o=gc(Zi(this.element));this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const o=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,o))}}function p1(n,o){const{top:e,bottom:t,height:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}function f1(n,o){const{left:e,right:t,width:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}const eA=fa({passive:!1,capture:!0});let p3=(()=>{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 De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,eA)})}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,eA)}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:eA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:eA}),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 nn.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,Ci.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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const f3={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let m3=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=f3){return new l3(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u3(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b),i.LFG(ya),i.LFG(p3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[m3],imports:[Ka]}),n})(),_3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),A3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),H3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[A3,ot,ot]}),n})(),z3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();new i.OlP("mat-selectsearch-default-options");let $3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[C.ez,Ho,_a,zC,Rl,fC,Zc]]}),n})(),Z3=(()=>{class n extends _b{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const J3={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 b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:Z3},{provide:ga,useValue:J3}],imports:[C.ez,zC,TC,cg,WM,g3,yp,wh,GM,wu,fC,QM,Rl,Au,_a,Zc,Bc,Ho,pC,un,FD,_3,H3,UM,z3,Kf,Po,$3,_l,Mu,bx,zH]}),n})(),T6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,_a,Rl,wh,b1,yp,Bc,Ho,pC,QM]}),n})(),x6=(()=>{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(zg),i.Y36(Ri))},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)(1,"div",1)(2,"div",2)(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()()()()()),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")," "))},dependencies:[Yt,Ii,St],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function M6(n,o){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 S6=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ji(null,[Li.required]),this.passwordCtrl=new Ji(null,[Li.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(nt))},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)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,M6,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(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.TgZ(15,"mat-form-field",4)(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.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()()()()()),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")," "))},dependencies:[C.O5,Yt,Ii,ts,Gn,wa,Rn,qn,rs,xr,os,Gs,St],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 D6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function E6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function H6(n,o){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 k6(n,o){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 P6(n,o){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function R6(n,o){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 L6(n,o){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 I6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function O6(n,o){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()()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function B6(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",38)(1,"div",28)(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40)(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)(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),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 V6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function F6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}const j6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function N6(n,o){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),d=i.oxw(2);return i.KtG(d.loadPublicationDetail(r,l))}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,j6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function Y6(n,o){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,F6,1,0,"mat-spinner",3),i.YNc(2,N6,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 z6(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function U6(n,o){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 G6(n,o){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,z6,1,1,"ng-template",44),i.YNc(2,U6,2,1,"ng-template",45),i.qZA())}function q6(n,o){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),i.YNc(3,V6,2,3,"ng-template",44),i.YNc(4,Y6,3,2,"ng-template",45),i.qZA(),i.YNc(5,G6,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function W6(n,o){1&n&&(i.TgZ(0,"div",28)(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function $6(n,o){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 Z6(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.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 J6(n,o){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,$6,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,Z6,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 Q6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function K6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function X6(n,o){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 ez(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,X6,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 tz(n,o){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 iz(n,o){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,tz,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),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 nz(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function rz(n,o){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 az(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function sz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.stepChanged(r))}),i.TgZ(1,"mat-step",7),i.YNc(2,E6,2,3,"ng-template",8),i.TgZ(3,"form",9)(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11)(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,H6,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(22);return i.KtG(r.open())}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16)(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),d=i.oxw();return i.KtG(d.chosenYearHandler(r,l))}),i.qZA(),i.YNc(23,k6,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field")(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,P6,2,2,"mat-option",21),i.qZA(),i.YNc(28,R6,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")(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,L6,3,3,"mat-error",14),i.qZA()()(),i.TgZ(40,"div",25)(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA()()(),i.TgZ(44,"mat-step",27),i.YNc(45,I6,2,3,"ng-template",8),i.TgZ(46,"form",28)(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,O6,5,3,"div",29),i.YNc(51,B6,16,12,"perun-web-apps-alert",30),i.YNc(52,q6,6,1,"mat-tab-group",14),i.YNc(53,W6,6,3,"div",29),i.qZA(),i.YNc(54,J6,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,Q6,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,K6,1,0,"mat-spinner",3),i.YNc(61,ez,5,4,"div",14),i.YNc(62,iz,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,nz,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,rz,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,az,1,0,"mat-spinner",3),i.TgZ(70,"div",25)(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 i.KtG(r.redirect(["all-publications",r.publication.id]))}),i._uU(75),i.ALo(76,"translate"),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 oz=Hp,lz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let cz=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=s,this.storeService=a,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new si(!0,[]),this.thanksSelection=new si(!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:["",Li.required],year:["",Li.required],category:["",Li.required],isbn:[""],doi:[""],cite:["",Li.required]}),this.maxYear=oz(),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(){this.innerLoading=!0;const e=this.publicationControl.get("title").value??null,t=this.publicationControl.get("doi").value??null,r=this.publicationControl.get("isbn").value??null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(l=>{this.similarPublications=l,this.filteredPublications=l,setTimeout(()=>{this.duplicateCheck=0===l.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(OT),i.Y36(Ut),i.Y36(bi),i.Y36(Ri),i.Y36(On),i.Y36(Yi),i.Y36(Zn),i.Y36(ia))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:lz}])],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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,D6,1,0,"mat-spinner",3),i.YNc(8,sz,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))},dependencies:[C.sg,C.O5,Yt,cd,Ii,Ai,ts,Gn,wa,Wh,os,Vy,Rn,qn,Fm,rs,Dl,Hl,op,dH,UC,uH,QB,KB,YM,Kg,zM,ko,Mc,AF,oF,HH,sF,Gs,Dp,t_,JH,QH,St],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 dz(n,o){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function uz(n,o){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 hz(n,o){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 pz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.selectPubSystem())}),i.YNc(7,dz,2,2,"mat-option",7),i.qZA()(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 i.KtG(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){i.CHM(e);const l=i.oxw();return i.KtG(l.userAsAuthor=r)}),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,uz,3,3,"perun-web-apps-alert",12),i.YNc(21,hz,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 fz(n,o){1&n&&i._UZ(0,"mat-spinner",17)}function mz(n,o){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 gz(n,o){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function _z(n,o){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,s=i.oxw(2);return i.KtG(s.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 bz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(2);return i.KtG(l.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 yz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw(2);return i.KtG(d.editPublication(l))}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,mz,3,3,"i",3),i.YNc(5,gz,2,0,"mat-icon",24),i.qZA()(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,_z,3,3,"button",20),i.YNc(9,bz,3,3,"button",27),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 wz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.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 Cz(n,o){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(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.onSubmit())}),i._uU(3),i.ALo(4,"translate"),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 Az(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,yz,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,wz,3,3,"button",20),i.qZA(),i.YNc(8,Cz,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 A1=Hp,vz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Tz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:x6},{path:"service-access",component:S6},{path:"all-publications",component:kj},{path:"my-publications",component:Ij},{path:"create-publication",component:Oj},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,s){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=s,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ji,this.publications=[],this.selected=new si(!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 Ji(A1().subtract(1,"year")),this.endYear=new Ji(A1()),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=xn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(NR,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(Ut),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ri),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:vz}])],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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,pz,22,20,"div",3),i.YNc(8,fz,1,0,"mat-spinner",4),i.YNc(9,Az,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))},dependencies:[C.sg,C.O5,_B,ZE,JE,gB,Yt,cd,Ii,Ai,Gn,wa,qn,El,xr,$c,ko,Mc,Gs,Dp,t_,WH,St],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:cz},{path:"authors",component:c2},{path:"authors/:authorId",component:hN},{path:"authors/:authorId/publication/:publicationId",component:t_},{path:"all-publications/:publicationId",component:t_},{path:"my-publications/:publicationId",component:t_},{path:"categories",component:G2},{path:"publication-systems",component:lN}];let xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wh.forRoot(Tz,{preloadingStrategy:u0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),wh]}),n})();const Mz={provide:w.TP,useExisting:(0,i.Gpc)(()=>SD),multi:!0};function Sz(n){return new IL(n,"./assets/i18n/",".json")}function Dz(n){const o={basePath:n.get("api_url")};return new Ye(o)}const Ez=n=>()=>n.loadConfigs();let Hz=(()=>{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(MD),i.LFG(Yi))},n.\u0275mod=i.oAB({type:n,bootstrap:[LL]}),n.\u0275inj=i.cJS({providers:[MD,{provide:i.ip1,useFactory:Ez,multi:!0,deps:[VL]},{provide:Ye,useFactory:Dz,deps:[Zn]},SD,Mz,{provide:FL,useClass:Ek},Mj,{provide:Gx.Hy,useFactory:()=>localStorage}],imports:[Xi,yp.forRoot({loader:{provide:_p,useFactory:Sz,deps:[w.eN]}}),VO,zH,FO,Uo,w.JF,xz,QM,FD,T6,OH,bx,Gx.zr.forRoot(),b1]}),n})();(0,i.G48)(),ct().bootstrapModule(Hz).catch(n=>console.error(n))},1302:function(Y,U,x){var C;!function(i,D){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var D=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(le,re,ie,me,be){for(var Ae,$e,Ze,Ee,ve,Me,lt,Re,Oe,Le,ue,fe,Ce;be>=64;){for(Ae=re[0],$e=re[1],Ze=re[2],Ee=re[3],ve=re[4],Me=re[5],lt=re[6],Re=re[7],Le=0;Le<16;Le++)le[Le]=(255&ie[ue=me+4*Le])<<24|(255&ie[ue+1])<<16|(255&ie[ue+2])<<8|255&ie[ue+3];for(Le=16;Le<64;Le++)le[Le]=((fe=((Oe=le[Le-2])>>>17|Oe<<15)^(Oe>>>19|Oe<<13)^Oe>>>10)+le[Le-7]|0)+((Ce=((Oe=le[Le-15])>>>7|Oe<<25)^(Oe>>>18|Oe<<14)^Oe>>>3)+le[Le-16]|0);for(Le=0;Le<64;Le++)fe=(((ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7))+(ve&Me^~ve<)|0)+(Re+(D[Le]+le[Le]|0)|0)|0,Ce=((Ae>>>2|Ae<<30)^(Ae>>>13|Ae<<19)^(Ae>>>22|Ae<<10))+(Ae&$e^Ae&Ze^$e&Ze)|0,Re=lt,lt=Me,Me=ve,ve=Ee+fe|0,Ee=Ze,Ze=$e,$e=Ae,Ae=fe+Ce|0;re[0]+=Ae,re[1]+=$e,re[2]+=Ze,re[3]+=Ee,re[4]+=ve,re[5]+=Me,re[6]+=lt,re[7]+=Re,me+=64,be-=64}return me}var S=function(){function le(){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 le.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},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(me=M(this.temp,this.state,re,me,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,me=this.bufferLength,be=ie/536870912|0,Ae=ie<<3,$e=ie%64<56?64:128;this.buffer[me]=128;for(var Ze=me+1;Ze<$e-8;Ze++)this.buffer[Ze]=0;this.buffer[$e-8]=be>>>24&255,this.buffer[$e-7]=be>>>16&255,this.buffer[$e-6]=be>>>8&255,this.buffer[$e-5]=be>>>0&255,this.buffer[$e-4]=Ae>>>24&255,this.buffer[$e-3]=Ae>>>16&255,this.buffer[$e-2]=Ae>>>8&255,this.buffer[$e-1]=Ae>>>0&255,M(this.temp,this.state,this.buffer,0,$e),this.finished=!0}for(Ze=0;Ze<8;Ze++)re[4*Ze+0]=this.state[Ze]>>>24&255,re[4*Ze+1]=this.state[Ze]>>>16&255,re[4*Ze+2]=this.state[Ze]>>>8&255,re[4*Ze+3]=this.state[Ze]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var me=0;me1&&re.update(le),ie&&re.update(ie),re.update(me),re.finish(le),me[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=j;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,me){void 0===re&&(re=J),void 0===me&&(me=32);for(var be=new Uint8Array([1]),Ae=j(re,le),$e=new P(Ae),Ze=new Uint8Array($e.digestLength),Ee=Ze.length,ve=new Uint8Array(me),Me=0;Me>>24&255,$e[1]=lt>>>16&255,$e[2]=lt>>>8&255,$e[3]=lt>>>0&255,be.reset(),be.update(re),be.update($e),be.finish(Ee);for(var Re=0;Re=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}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,j=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),z=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!j?function(J,Q,ne){var le=L.URL||L.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?P(re):S(re.href)?M(J,Q,ne):P(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){P(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function D(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))M(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return M(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(L.HTMLElement)||L.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||re&&ie||j)&&typeof FileReader<"u"){var be=new FileReader;be.onloadend=function(){var Ze=be.result;Ze=me?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Ze:location=Ze,le=null},be.readAsDataURL(J)}else{var Ae=L.URL||L.webkitURL,$e=Ae.createObjectURL(J);le?le.location=$e:location.href=$e,le=null,setTimeout(function(){Ae.revokeObjectURL($e)},4e4)}});L.saveAs=z.saveAs=z,Y.exports=z}.apply(U,[]))&&(Y.exports=i)},7088:function(Y,U,x){!function(C){"use strict";C.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(D){return/^nm$/i.test(D)},meridiem:function(D,M,S){return D<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(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(C){"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},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(L){return function(j,z,J,Q){var ne=i(j),le=D[L][i(j)];return 2===ne&&(le=le[z?0:1]),le.replace(/%d/i,j)}},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"];C.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,j,z){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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%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(j){return function(z,J,Q,ne){var le=D(z),re=M[j][D(z)];return 2===le&&(re=re[J?0:1]),re.replace(/%d/i,z)}},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"];C.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(j){return"\u0645"===j},meridiem:function(j,z,J){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: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(j){return j.replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(z){return i[z]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(z){return 0===z?0:1===z?1:2===z?2:z%100>=3&&z%100<=10?3:z%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(z){return function(J,Q,ne,le){var re=M(J),ie=S[z][M(J)];return 2===re&&(ie=ie[Q?0:1]),ie.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"];C.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(z){return"\u0645"===z},meridiem:function(z,J,Q){return z<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(z){return z.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return D[J]}).replace(/\u060c/g,",")},postformat:function(z){return z.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(C){"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"};C.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(Y,U,x){!function(C){"use strict";function D(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)}C.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:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},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(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===M?D+"-\u0432\u0438":2===M?D+"-\u0440\u0438":7===M||8===M?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";function i(ie,me,be){return ie+" "+function S(ie,me){return 2===me?function P(ie){var me={m:"v",b:"v",d:"z"};return void 0===me[ie.charAt(0)]?ie:me[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[be],ie)}function M(ie){return ie>9?M(ie%10):ie}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],j=/^(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,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];C.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:le,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:le,monthsRegex:j,monthsShortRegex:j,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 D(ie){switch(M(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,me,be){return ie<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(C){"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")}}C.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(C){"use strict";C.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(D,M){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),D+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(C){"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("_")},D="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(z){return z>1&&z<5&&1!=~~(z/10)}function L(z,J,Q,ne){var le=z+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(z)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(z)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(z)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(z)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(z)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(z)?"roky":"let"):le+"lety"}}C.defineLocale("cs",{months:i,monthsShort:D,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(Y,U,x){!function(C){"use strict";C.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(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\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(C){"use strict";C.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(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";function i(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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(C){"use strict";function i(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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(C){"use strict";function i(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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(C){"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"],D=["\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"];C.defineLocale("dv",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,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(Y,U,x){!function(C){"use strict";C.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 typeof Function<"u"&&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(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(C){"use strict";C.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(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,M,S){return D>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(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="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;C.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="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;C.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="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;C.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="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;C.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={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?j[P][2]?j[P][2]:j[P][1]:L?j[P][0]:j[P][1]}C.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(C){"use strict";C.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(C){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,j,z,J){var Q="";switch(z){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(L,j){return L<10?j?D[L]:i[L]:L}(L,J)+" "+Q}C.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(Y,U,x){!function(C){"use strict";C.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(D){return D},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(D,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(C){"use strict";C.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(D,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(C){"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];C.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,j){switch(j){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(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");C.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)?D[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(C){"use strict";C.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(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(C){"use strict";C.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(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(C){"use strict";C.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(D){return 0===D.indexOf("un")?"n"+D:"en "+D},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(C){"use strict";function i(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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(Y,U,x){!function(C){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";C.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(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \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(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,M,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<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(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\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];C.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(j){return D[j]})},postformat:function(L){return L.replace(/\d/g,function(j){return i[j]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0930\u093e\u0924"===j?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===j?L:"\u0926\u094b\u092a\u0939\u0930"===j?L>=10?L:L+12:"\u0936\u093e\u092e"===j?L+12:void 0},meridiem:function(L,j,z){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(Y,U,x){!function(C){"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")}}C.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(C){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(P,L,j,z){var J=P;switch(j){case"s":return z||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(z||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(z||L?" perc":" perce");case"mm":return J+(z||L?" perc":" perce");case"h":return"egy"+(z||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(z||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(z||L?" nap":" napja");case"dd":return J+(z||L?" nap":" napja");case"M":return"egy"+(z||L?" h\xf3nap":" h\xf3napja");case"MM":return J+(z||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(z||L?" \xe9v":" \xe9ve");case"yy":return J+(z||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}C.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,j){return P<12?!0===j?"de":"DE":!0===j?"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:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},5283:function(Y,U,x){!function(C){"use strict";C.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(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<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(D,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(C){"use strict";C.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(D,M){return 12===D&&(D=0),"pagi"===M?D:"siang"===M?D>=11?D:D+12:"sore"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"siang":D<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(C){"use strict";function i(S){return S%100==11||S%10!=1}function D(S,P,L,j){var z=S+" ";switch(L){case"s":return P||j?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?z+(P||j?"sek\xfandur":"sek\xfandum"):z+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?z+(P||j?"m\xedn\xfatur":"m\xedn\xfatum"):P?z+"m\xedn\xfata":z+"m\xedn\xfatu";case"hh":return i(S)?z+(P||j?"klukkustundir":"klukkustundum"):z+"klukkustund";case"d":return P?"dagur":j?"dag":"degi";case"dd":return i(S)?P?z+"dagar":z+(j?"daga":"d\xf6gum"):P?z+"dagur":z+(j?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":j?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?z+"m\xe1nu\xf0ir":z+(j?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?z+"m\xe1nu\xf0ur":z+(j?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||j?"\xe1r":"\xe1ri";case"yy":return i(S)?z+(P||j?"\xe1r":"\xe1rum"):z+(P||j?"\xe1r":"\xe1ri")}}C.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:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(C){"use strict";C.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(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},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(C){"use strict";C.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(C){"use strict";C.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(D,M){return"\u5143"===M[1]?1:parseInt(M[1]||D,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(D){return"\u5348\u5f8c"===D},meridiem:function(D,M,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,M){switch(M){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"enjing"===M?D:"siyang"===M?D>=11?D:D+12:"sonten"===M||"ndalu"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"enjing":D<15?"siyang":D<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(C){"use strict";C.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(D){return D.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(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},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(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(C){"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"};C.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(Y,U,x){!function(C){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};C.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 D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(C){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";C.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(D,M){switch(M){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,M,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\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"];C.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,j){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 D[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(Y,U,x){!function(C){"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"};C.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(Y,U,x){!function(C){"use strict";function i(L,j,z,J){var Q={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 j?Q[z][0]:Q[z][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 j=L%10;return S(0===j?L/10:j)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}C.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 D(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(Y,U,x){!function(C){"use strict";C.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(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,M,S){return D<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(D){return"\u0e97\u0eb5\u0ec8"+D}})}(x(5439))},2400:function(Y,U,x){!function(C){"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(z,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(z){return z%10==0||z>10&&z<20}function P(z){return i[z].split("_")}function L(z,J,Q,ne){var le=z+" ";return 1===z?le+M(0,J,Q[0],ne):J?le+(S(z)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(z)?P(Q)[1]:P(Q)[2])}C.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 D(z,J,Q,ne){return J?"kelios sekund\u0117s":ne?"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(z){return z+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(C){"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 D(j,z,J){return J?z%10==1&&z%100!=11?j[2]:j[3]:z%10==1&&z%100!=11?j[0]:j[1]}function M(j,z,J){return j+" "+D(i[J],j,z)}function S(j,z,J){return D(i[J],j,z)}C.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(j,z){return z?"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(Y,U,x){!function(C){"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)}};C.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(C){"use strict";C.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(C){"use strict";C.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(D){var M=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===M?D+"-\u0432\u0438":2===M?D+"-\u0440\u0438":7===M||8===M?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?D+12:D},meridiem:function(D,M,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<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(C){"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}}C.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(Y,U,x){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,j,z){var J="";if(L)switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}C.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 D[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,j){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(Y,U,x){!function(C){"use strict";C.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(D,M){return 12===D&&(D=0),"pagi"===M?D:"tengahari"===M?D>=11?D:D+12:"petang"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"tengahari":D<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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"pagi"===M?D:"tengahari"===M?D>=11?D:D+12:"petang"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"tengahari":D<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(C){"use strict";C.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(C){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};C.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 D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="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;C.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="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;C.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(D,M){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),D+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(C){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="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(j){return j%10<5&&j%10>1&&~~(j/10)%10!=1}function P(j,z,J){var Q=j+" ";switch(J){case"ss":return Q+(S(j)?"sekundy":"sekund");case"m":return z?"minuta":"minut\u0119";case"mm":return Q+(S(j)?"minuty":"minut");case"h":return z?"godzina":"godzin\u0119";case"hh":return Q+(S(j)?"godziny":"godzin");case"ww":return Q+(S(j)?"tygodnie":"tygodni");case"MM":return Q+(S(j)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(j)?"lata":"lat")}}C.defineLocale("pl",{months:function(j,z){return j?/D MMMM/.test(z)?D[j.month()]:i[j.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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(C){"use strict";function i(M,S,P){var j=" ";return(M%100>=20||M>=100&&M%100==0)&&(j=" de "),M+j+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}C.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(C){"use strict";function D(P,L,j){return"m"===j?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var j=P.split("_");return L%10==1&&L%100!=11?j[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?j[1]:j[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"}[j],+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];C.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:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},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,j){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(Y,U,x){!function(C){"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"],D=["\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"];C.defineLocale("sd",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,M,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},3027:function(Y,U,x){!function(C){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="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,j,z,J){var Q=L+" ";switch(z){case"s":return j||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return j||J?Q+(M(L)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return j?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return j||J?Q+(M(L)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return j?"hodina":J?"hodinu":"hodinou";case"hh":return j||J?Q+(M(L)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return j||J?"de\u0148":"d\u0148om";case"dd":return j||J?Q+(M(L)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return j||J?"mesiac":"mesiacom";case"MM":return j||J?Q+(M(L)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return j||J?"rok":"rokom";case"yy":return j||J?Q+(M(L)?"roky":"rokov"):Q+"rokmi"}}C.defineLocale("sk",{months:i,monthsShort:D,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(C){"use strict";function i(M,S,P,L){var j=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return j+(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 j+(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 j+(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 j+(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 j+(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 j+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"let":"leti")}}C.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(C){"use strict";C.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(D){return"M"===D.charAt(0)},meridiem:function(D,M,S){return D<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(C){"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 z,j=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(M,j),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===z?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+z)}};C.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(C){"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 z,j=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(M,j),"yy"===P&&S&&"godinu"===z?M+" godina":M+" "+z)}};C.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(C){"use strict";C.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(D,M,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,M){return 12===D&&(D=0),"ekuseni"===M?D:"emini"===M?D>=11?D:D+12:"entsambama"===M||"ebusuku"===M?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};C.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 D[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(Y,U,x){!function(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===M?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?D+12:void 0},meridiem:function(D,M,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<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(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(C){"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"};C.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))},2868:function(Y,U,x){!function(C){"use strict";C.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(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,M,S){return D<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(C){"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"};C.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(Y,U,x){!function(C){"use strict";C.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(D){return D},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(C){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(j,z,J,Q){var ne=function P(j){var z=Math.floor(j%1e3/100),J=Math.floor(j%100/10),Q=j%10,ne="";return z>0&&(ne+=i[z]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(j);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}C.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 D(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"leS":-1!==j.indexOf("jar")?z.slice(0,-3)+"waQ":-1!==j.indexOf("DIS")?z.slice(0,-3)+"nem":z+" pIq"},past:function M(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"Hu\u2019":-1!==j.indexOf("jar")?z.slice(0,-3)+"wen":-1!==j.indexOf("DIS")?z.slice(0,-3)+"ben":z+" 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(C){"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"};C.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(Y,U,x){!function(C){"use strict";function D(M,S,P,L){var j={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?j[P][0]:j[P][1]}C.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:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(C){"use strict";C.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(D,M){return 12===D&&(D=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?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?D+12:D>=11?D:D+12},meridiem:function(D,M,S){var P=100*D+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(D,M){switch(M){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(C){"use strict";function D(L,j,z){return"m"===z?j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===z?j?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,j){var z=L.split("_");return j%10==1&&j%100!=11?z[0]:j%10>=2&&j%10<=4&&(j%100<10||j%100>=20)?z[1]:z[2]}({ss:j?"\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:j?"\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:j?"\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"}[z],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}C.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,j){var z={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?z.nominative.slice(1,7).concat(z.nominative.slice(0,1)):L?z[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(j)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(j)?"genitive":"nominative"][L.day()]:z.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:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},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,j,z){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,j){switch(j){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(Y,U,x){!function(C){"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"],D=["\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"];C.defineLocale("ur",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\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(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(C){"use strict";C.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(D){return/^ch$/i.test(D)},meridiem:function(D,M,S){return D<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(D){return D},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(C){"use strict";C.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(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(C){"use strict";C.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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:D>=11?D:D+12},meridiem:function(D,M,S){var P=100*D+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(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+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(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+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(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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(C){"use strict";C.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(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+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(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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 C,me;function i(){return C.apply(null,arguments)}function M(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function S(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function P(T,H){return Object.prototype.hasOwnProperty.call(T,H)}function L(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var H;for(H in T)if(P(T,H))return!1;return!0}function j(T){return void 0===T}function z(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function J(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function Q(T,H){var N,I=[],W=T.length;for(N=0;N>>0;for(N=0;N0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-N.length)).toString().substr(1)+N}var ni=/(\[[^\[]*\])|(\\)?([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,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},_n={};function Ue(T,H,I,N){var W=N;"string"==typeof N&&(W=function(){return this[N]()}),T&&(_n[T]=W),H&&(_n[H[0]]=function(){return It(W.apply(this,arguments),H[1],H[2])}),I&&(_n[I]=function(){return this.localeData().ordinal(W.apply(this,arguments),T)})}function ri(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function vi(T,H){return T.isValid()?(H=Kr(H,T.localeData()),Ki[H]=Ki[H]||function lr(T){var I,N,H=T.match(ni);for(I=0,N=H.length;I=0&&Je.test(T);)T=T.replace(Je,N),Je.lastIndex=0,I-=1;return T}var cr={};function Qt(T,H){var I=T.toLowerCase();cr[I]=cr[I+"s"]=cr[H]=T}function Xi(T){return"string"==typeof T?cr[T]||cr[T.toLowerCase()]:void 0}function zo(T){var I,N,H={};for(N in T)P(T,N)&&(I=Xi(N))&&(H[I]=T[N]);return H}var Jn={};function Wt(T,H){Jn[T]=H}function ae(T){return T%4==0&&T%100!=0||T%400==0}function te(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function de(T){var H=+T,I=0;return 0!==H&&isFinite(H)&&(I=te(H)),I}function ke(T,H){return function(I){return null!=I?(At(this,T,I),i.updateOffset(this,H),this):dt(this,T)}}function dt(T,H){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+H]():NaN}function At(T,H,I){T.isValid()&&!isNaN(I)&&("FullYear"===H&&ae(T.year())&&1===T.month()&&29===T.date()?(I=de(I),T._d["set"+(T._isUTC?"UTC":"")+H](I,T.month(),Fn(I,T.month()))):T._d["set"+(T._isUTC?"UTC":"")+H](I))}var Ui,Di=/\d/,vt=/\d\d/,Mn=/\d{3}/,mt=/\d{4}/,$t=/[+-]?\d{6}/,pt=/\d\d?/,Vn=/\d\d\d\d?/,Xr=/\d\d\d\d\d\d?/,Vi=/\d{1,3}/,Pr=/\d{1,4}/,dr=/[+-]?\d{1,6}/,Qn=/\d+/,ea=/[+-]?\d+/,fd=/Z|[+-]\d\d:?\d\d/gi,ps=/Z|[+-]\d\d(?::?\d\d)?/gi,Ni=/[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 Ne(T,H,I){Ui[T]=ue(H)?H:function(N,W){return N&&I?I:H}}function Ei(T,H){return P(Ui,T)?Ui[T](H._strict,H._locale):new RegExp(function Ge(T){return it(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,N,W,se){return I||N||W||se}))}(T))}function it(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ui={};var ii={};function w(T,H){var I,W,N=H;for("string"==typeof T&&(T=[T]),z(H)&&(N=function(se,we){we[H]=de(se)}),W=T.length,I=0;I68?1900:2e3)};var Ha=ke("FullYear",!0);function Nn(T,H,I,N,W,se,we){var st;return T<100&&T>=0?(st=new Date(T+400,H,I,N,W,se,we),isFinite(st.getFullYear())&&st.setFullYear(T)):st=new Date(T,H,I,N,W,se,we),st}function ms(T){var H,I;return T<100&&T>=0?((I=Array.prototype.slice.call(arguments))[0]=T+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(T)):H=new Date(Date.UTC.apply(null,arguments)),H}function gd(T,H,I){var N=7+H-I;return-(7+ms(T,0,N).getUTCDay()-H)%7+N-1}function $l(T,H,I,N,W){var Lt,di,st=1+7*(H-1)+(7+I-N)%7+gd(T,N,W);return st<=0?di=na(Lt=T-1)+st:st>na(T)?(Lt=T+1,di=st-na(T)):(Lt=T,di=st),{year:Lt,dayOfYear:di}}function Xs(T,H,I){var se,we,N=gd(T.year(),H,I),W=Math.floor((T.dayOfYear()-N-1)/7)+1;return W<1?se=W+Lr(we=T.year()-1,H,I):W>Lr(T.year(),H,I)?(se=W-Lr(T.year(),H,I),we=T.year()+1):(we=T.year(),se=W),{week:se,year:we}}function Lr(T,H,I){var N=gd(T,H,I),W=gd(T+1,H,I);return(na(T)-N+W)/7}Ue("w",["ww",2],"wo","week"),Ue("W",["WW",2],"Wo","isoWeek"),Qt("week","w"),Qt("isoWeek","W"),Wt("week",5),Wt("isoWeek",5),Ne("w",pt),Ne("ww",pt,vt),Ne("W",pt),Ne("WW",pt,vt),zt(["w","ww","W","WW"],function(T,H,I,N){H[N.substr(0,1)]=de(T)});function _d(T,H){return T.slice(H,7).concat(T.slice(0,H))}Ue("d",0,"do","day"),Ue("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),Ue("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),Ue("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),Ue("e",0,0,"weekday"),Ue("E",0,0,"isoWeekday"),Qt("day","d"),Qt("weekday","e"),Qt("isoWeekday","E"),Wt("day",11),Wt("weekday",11),Wt("isoWeekday",11),Ne("d",pt),Ne("e",pt),Ne("E",pt),Ne("dd",function(T,H){return H.weekdaysMinRegex(T)}),Ne("ddd",function(T,H){return H.weekdaysShortRegex(T)}),Ne("dddd",function(T,H){return H.weekdaysRegex(T)}),zt(["dd","ddd","dddd"],function(T,H,I,N){var W=I._locale.weekdaysParse(T,N,I._strict);null!=W?H.d=W:ie(I).invalidWeekday=T}),zt(["d","e","E"],function(T,H,I,N){H[N]=de(T)});var Op="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vp=Ni,Uo=Ni,Tt=Ni;function Ve(T,H,I){var N,W,se,we=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)se=le([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(se,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null}function hr(){function T(Gi,nr){return nr.length-Gi.length}var se,we,st,Lt,di,H=[],I=[],N=[],W=[];for(se=0;se<7;se++)we=le([2e3,1]).day(se),st=it(this.weekdaysMin(we,"")),Lt=it(this.weekdaysShort(we,"")),di=it(this.weekdays(we,"")),H.push(st),I.push(Lt),N.push(di),W.push(st),W.push(Lt),W.push(di);H.sort(T),I.sort(T),N.sort(T),W.sort(T),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function eo(){return this.hours()%12||12}function yi(T,H){Ue(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function xt(T,H){return H._meridiemParse}Ue("H",["HH",2],0,"hour"),Ue("h",["hh",2],0,eo),Ue("k",["kk",2],0,function pr(){return this.hours()||24}),Ue("hmm",0,0,function(){return""+eo.apply(this)+It(this.minutes(),2)}),Ue("hmmss",0,0,function(){return""+eo.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),Ue("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),Ue("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),yi("a",!0),yi("A",!1),Qt("hour","h"),Wt("hour",13),Ne("a",xt),Ne("A",xt),Ne("H",pt),Ne("h",pt),Ne("k",pt),Ne("HH",pt,vt),Ne("hh",pt,vt),Ne("kk",pt,vt),Ne("hmm",Vn),Ne("hmmss",Xr),Ne("Hmm",Vn),Ne("Hmmss",Xr),w(["H","HH"],3),w(["k","kk"],function(T,H,I){var N=de(T);H[3]=24===N?0:N}),w(["a","A"],function(T,H,I){I._isPm=I._locale.isPM(T),I._meridiem=T}),w(["h","hh"],function(T,H,I){H[3]=de(T),ie(I).bigHour=!0}),w("hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N)),ie(I).bigHour=!0}),w("hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W)),ie(I).bigHour=!0}),w("Hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N))}),w("Hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W))});var qo=ke("Hours",!0);var fr,Qe={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:bn,monthsShort:Rr,week:{dow:0,doy:6},weekdays:Op,weekdaysMin:Bp,weekdaysShort:Bu,meridiemParse:/[ap]\.?m?\.?/i},Dt={},Ot={};function Et(T,H){var I,N=Math.min(T.length,H.length);for(I=0;I0;){if(W=Bt(se.slice(0,I).join("-")))return W;if(N&&N.length>=I&&Et(se,N)>=I-1)break;I--}H++}return fr}(T)}function ye(T){var H,I=T._a;return I&&-2===ie(T).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>Fn(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,ie(T)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(T)._overflowWeeks&&-1===H&&(H=7),ie(T)._overflowWeekday&&-1===H&&(H=8),ie(T).overflow=H),T}var ge=/^\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)?)?$/,tt=/^\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)?)?$/,pi=/Z|[+-]\d\d(?::?\d\d)?/,Kt=[["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]],Zt=[["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/]],Ft=/^\/?Date\((-?\d+)/i,at=/^(?:(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 Ti(T){var H,I,se,we,st,Lt,N=T._i,W=ge.exec(N)||tt.exec(N),di=Kt.length,Gi=Zt.length;if(W){for(ie(T).iso=!0,H=0,I=di;H7)&&(Lt=!0)):(se=T._locale._week.dow,we=T._locale._week.doy,di=Xs(ci(),se,we),I=Xt(H.gg,T._a[0],di.year),N=Xt(H.w,di.week),null!=H.d?((W=H.d)<0||W>6)&&(Lt=!0):null!=H.e?(W=H.e+se,(H.e<0||H.e>6)&&(Lt=!0)):W=se),N<1||N>Lr(I,se,we)?ie(T)._overflowWeeks=!0:null!=Lt?ie(T)._overflowWeekday=!0:(st=$l(I,N,W,se,we),T._a[0]=st.year,T._dayOfYear=st.dayOfYear)}(T),null!=T._dayOfYear&&(we=Xt(T._a[0],W[0]),(T._dayOfYear>na(we)||0===T._dayOfYear)&&(ie(T)._overflowDayOfYear=!0),I=ms(we,0,T._dayOfYear),T._a[1]=I.getUTCMonth(),T._a[2]=I.getUTCDate()),H=0;H<3&&null==T._a[H];++H)T._a[H]=N[H]=W[H];for(;H<7;H++)T._a[H]=N[H]=T._a[H]??(2===H?1:0);24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?ms:Nn).apply(null,N),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==se&&(ie(T).weekdayMismatch=!0)}}function bd(T){if(T._f!==i.ISO_8601)if(T._f!==i.RFC_2822){T._a=[],ie(T).empty=!0;var I,N,W,se,we,di,Gi,H=""+T._i,st=H.length,Lt=0;for(Gi=(W=Kr(T._f,T._locale).match(ni)||[]).length,I=0;I0&&ie(T).unusedInput.push(we),H=H.slice(H.indexOf(N)+N.length),Lt+=N.length),_n[se]?(N?ie(T).empty=!1:ie(T).unusedTokens.push(se),Rt(se,N,T)):T._strict&&!N&&ie(T).unusedTokens.push(se);ie(T).charsLeftOver=st-Lt,H.length>0&&ie(T).unusedInput.push(H),T._a[3]<=12&&!0===ie(T).bigHour&&T._a[3]>0&&(ie(T).bigHour=void 0),ie(T).parsedDateParts=T._a.slice(0),ie(T).meridiem=T._meridiem,T._a[3]=function Fp(T,H,I){var N;return null==I?H:null!=T.meridiemHour?T.meridiemHour(H,I):(null!=T.isPM&&((N=T.isPM(I))&&H<12&&(H+=12),!N&&12===H&&(H=0)),H)}(T._locale,T._a[3],T._meridiem),null!==(di=ie(T).era)&&(T._a[0]=T._locale.erasConvertYear(di,T._a[0])),_s(T),ye(T)}else La(T);else Ti(T)}function yd(T){var H=T._i,I=T._f;return T._locale=T._locale||$(T._l),null===H||void 0===I&&""===H?Ae({nullInput:!0}):("string"==typeof H&&(T._i=H=T._locale.preparse(H)),Me(H)?new ve(ye(H)):(J(H)?T._d=H:M(I)?function Wo(T){var H,I,N,W,se,we,st=!1,Lt=T._f.length;if(0===Lt)return ie(T).invalidFormat=!0,void(T._d=new Date(NaN));for(W=0;Wthis?this:T:Ae()});function to(T,H){var I,N;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ci();for(I=H[0],N=1;N=0?new Date(T+400,H,I)-oo:new Date(T,H,I).valueOf()}function Ko(T,H,I){return T<100&&T>=0?Date.UTC(T+400,H,I)-oo:Date.UTC(T,H,I)}function Hd(T,H){return H.erasAbbrRegex(T)}function el(){var W,se,T=[],H=[],I=[],N=[],we=this.eras();for(W=0,se=we.length;W(se=Lr(T,N,W))&&(H=se),Pd.call(this,T,H,I,N,W))}function Pd(T,H,I,N,W){var se=$l(T,H,I,N,W),we=ms(se.year,0,se.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ue("N",0,0,"eraAbbr"),Ue("NN",0,0,"eraAbbr"),Ue("NNN",0,0,"eraAbbr"),Ue("NNNN",0,0,"eraName"),Ue("NNNNN",0,0,"eraNarrow"),Ue("y",["y",1],"yo","eraYear"),Ue("y",["yy",2],0,"eraYear"),Ue("y",["yyy",3],0,"eraYear"),Ue("y",["yyyy",4],0,"eraYear"),Ne("N",Hd),Ne("NN",Hd),Ne("NNN",Hd),Ne("NNNN",function Qp(T,H){return H.erasNameRegex(T)}),Ne("NNNNN",function Xo(T,H){return H.erasNarrowRegex(T)}),w(["N","NN","NNN","NNNN","NNNNN"],function(T,H,I,N){var W=I._locale.erasParse(T,N,I._strict);W?ie(I).era=W:ie(I).invalidEra=T}),Ne("y",Qn),Ne("yy",Qn),Ne("yyy",Qn),Ne("yyyy",Qn),Ne("yo",function cc(T,H){return H._eraYearOrdinalRegex||Qn}),w(["y","yy","yyy","yyyy"],0),w(["yo"],function(T,H,I,N){var W;I._locale._eraYearOrdinalRegex&&(W=T.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(T,W):parseInt(T,10)}),Ue(0,["gg",2],0,function(){return this.weekYear()%100}),Ue(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gi("gggg","weekYear"),gi("ggggg","weekYear"),gi("GGGG","isoWeekYear"),gi("GGGGG","isoWeekYear"),Qt("weekYear","gg"),Qt("isoWeekYear","GG"),Wt("weekYear",1),Wt("isoWeekYear",1),Ne("G",ea),Ne("g",ea),Ne("GG",pt,vt),Ne("gg",pt,vt),Ne("GGGG",Pr,mt),Ne("gggg",Pr,mt),Ne("GGGGG",dr,$t),Ne("ggggg",dr,$t),zt(["gggg","ggggg","GGGG","GGGGG"],function(T,H,I,N){H[N.substr(0,2)]=de(T)}),zt(["gg","GG"],function(T,H,I,N){H[N]=i.parseTwoDigitYear(T)}),Ue("Q",0,"Qo","quarter"),Qt("quarter","Q"),Wt("quarter",7),Ne("Q",Di),w("Q",function(T,H){H[1]=3*(de(T)-1)}),Ue("D",["DD",2],"Do","date"),Qt("date","D"),Wt("date",9),Ne("D",pt),Ne("DD",pt,vt),Ne("Do",function(T,H){return T?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),w(["D","DD"],2),w("Do",function(T,H){H[2]=de(T.match(pt)[0])});var Rd=ke("Date",!0);Ue("DDD",["DDDD",3],"DDDo","dayOfYear"),Qt("dayOfYear","DDD"),Wt("dayOfYear",4),Ne("DDD",Vi),Ne("DDDD",Mn),w(["DDD","DDDD"],function(T,H,I){I._dayOfYear=de(T)}),Ue("m",["mm",2],0,"minute"),Qt("minute","m"),Wt("minute",14),Ne("m",pt),Ne("mm",pt,vt),w(["m","mm"],4);var ef=ke("Minutes",!1);Ue("s",["ss",2],0,"second"),Qt("second","s"),Wt("second",15),Ne("s",pt),Ne("ss",pt,vt),w(["s","ss"],5);var sn,dc,ih=ke("Seconds",!1);for(Ue("S",0,0,function(){return~~(this.millisecond()/100)}),Ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ue(0,["SSS",3],0,"millisecond"),Ue(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ue(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ue(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ue(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ue(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ue(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Qt("millisecond","ms"),Wt("millisecond",16),Ne("S",Vi,Di),Ne("SS",Vi,vt),Ne("SSS",Vi,Mn),sn="SSSS";sn.length<=9;sn+="S")Ne(sn,Qn);function kn(T,H){H[6]=de(1e3*("0."+T))}for(sn="S";sn.length<=9;sn+="S")w(sn,kn);dc=ke("Milliseconds",!1),Ue("z",0,0,"zoneAbbr"),Ue("zz",0,0,"zoneName");var Be=ve.prototype;function nh(T){return T}Be.add=so,Be.calendar=function Zu(T,H){1===arguments.length&&(arguments[0]?Up(arguments[0])?(T=arguments[0],H=void 0):$u(arguments[0])&&(H=arguments[0],T=void 0):(T=void 0,H=void 0));var I=T||ci(),N=an(I,this).startOf("day"),W=i.calendarFormat(this,N)||"sameElse",se=H&&(ue(H[W])?H[W].call(this,I):H[W]);return this.format(se||this.localeData().calendar(W,this,ci(I)))},Be.clone=function ec(){return new ve(this)},Be.diff=function Nr(T,H,I){var N,W,se;if(!this.isValid())return NaN;if(!(N=an(T,this)).isValid())return NaN;switch(W=6e4*(N.utcOffset()-this.utcOffset()),H=Xi(H)){case"year":se=Cs(this,N)/12;break;case"month":se=Cs(this,N);break;case"quarter":se=Cs(this,N)/3;break;case"second":se=(this-N)/1e3;break;case"minute":se=(this-N)/6e4;break;case"hour":se=(this-N)/36e5;break;case"day":se=(this-N-W)/864e5;break;case"week":se=(this-N-W)/6048e5;break;default:se=this-N}return I?se:te(se)},Be.endOf=function Hn(T){var H,I;if(void 0===(T=Xi(T))||"millisecond"===T||!this.isValid())return this;switch(I=this._isUTC?Ko:Dd,T){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+=nc-Yr(H+(this._isUTC?0:this.utcOffset()*As),nc)-1;break;case"minute":H=this._d.valueOf(),H+=As-Yr(H,As)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Yr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Be.format=function Jo(T){T||(T=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=vi(this,T);return this.localeData().postformat(H)},Be.from=function Td(T,H){return this.isValid()&&(Me(T)&&T.isValid()||ci(T).isValid())?dn({to:this,from:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.fromNow=function xd(T){return this.from(ci(),T)},Be.to=function tc(T,H){return this.isValid()&&(Me(T)&&T.isValid()||ci(T).isValid())?dn({from:this,to:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.toNow=function ic(T){return this.to(ci(),T)},Be.get=function et(T){return ue(this[T=Xi(T)])?this[T]():this},Be.invalidAt=function vs(){return ie(this).overflow},Be.isAfter=function jr(T,H){var I=Me(T)?T:ci(T);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=Xi(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?vi(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",vi(I,"Z")):vi(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Be.inspect=function Ju(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,N,T="moment",H="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+T+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+N+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Be.toJSON=function sc(){return this.isValid()?this.toISOString():null},Be.toString=function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Be.unix=function Ed(){return Math.floor(this.valueOf()/1e3)},Be.valueOf=function lo(){return this._d.valueOf()-6e4*(this._offset||0)},Be.creationData=function oc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Be.eraName=function $p(){var T,H,I,N=this.localeData().eras();for(T=0,H=N.length;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Be.isLocal=function ao(){return!!this.isValid()&&!this._isUTC},Be.isUtcOffset=function ws(){return!!this.isValid()&&this._isUTC},Be.isUtc=Xl,Be.isUTC=Xl,Be.zoneAbbr=function Ld(){return this._isUTC?"UTC":""},Be.zoneName=function uo(){return this._isUTC?"Coordinated Universal Time":""},Be.dates=Re("dates accessor is deprecated. Use date instead.",Rd),Be.months=Re("months accessor is deprecated. Use month instead",Kn),Be.years=Re("years accessor is deprecated. Use year instead",Ha),Be.zone=Re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Yu(T,H){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,H),this):-this.utcOffset()}),Be.isDSTShifted=Re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Kl(){if(!j(this._isDSTShifted))return this._isDSTShifted;var H,T={};return Ee(T,this),(T=yd(T))._a?(H=T._isUTC?le(T._a):ci(T._a),this._isDSTShifted=this.isValid()&&function Nu(T,H,I){var we,N=Math.min(T.length,H.length),W=Math.abs(T.length-H.length),se=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var jt=_e.prototype;function Ya(T,H,I,N){var W=$(),se=le().set(N,H);return W[I](se,T)}function rh(T,H,I){if(z(T)&&(H=T,T=void 0),T=T||"",null!=H)return Ya(T,H,I,"month");var N,W=[];for(N=0;N<12;N++)W[N]=Ya(T,N,I,"month");return W}function Id(T,H,I,N){"boolean"==typeof T?(z(H)&&(I=H,H=void 0),H=H||""):(I=H=T,T=!1,z(H)&&(I=H,H=void 0),H=H||"");var we,W=$(),se=T?W._week.dow:0,st=[];if(null!=I)return Ya(H,(I+se)%7,N,"day");for(we=0;we<7;we++)st[we]=Ya(H,(we+se)%7,N,"day");return st}jt.calendar=function Ct(T,H,I){var N=this._calendar[T]||this._calendar.sameElse;return ue(N)?N.call(H,I):N},jt.longDateFormat=function Ws(T){var H=this._longDateFormat[T],I=this._longDateFormat[T.toUpperCase()];return H||!I?H:(this._longDateFormat[T]=I.match(ni).map(function(N){return"MMMM"===N||"MM"===N||"DD"===N||"dddd"===N?N.slice(1):N}).join(""),this._longDateFormat[T])},jt.invalidDate=function $s(){return this._invalidDate},jt.ordinal=function hs(T){return this._ordinal.replace("%d",T)},jt.preparse=nh,jt.postformat=nh,jt.relativeTime=function ct(T,H,I,N){var W=this._relativeTime[I];return ue(W)?W(T,H,I,N):W.replace(/%d/i,T)},jt.pastFuture=function zi(T,H){var I=this._relativeTime[T>0?"future":"past"];return ue(I)?I(H):I.replace(/%s/i,H)},jt.set=function fe(T){var H,I;for(I in T)P(T,I)&&(ue(H=T[I])?this[I]=H:this["_"+I]=H);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},jt.eras=function lc(T,H){var I,N,W,se=this._eras||$("en")._eras;for(I=0,N=se.length;I=0)return se[N]},jt.erasConvertYear=function Ku(T,H){var I=T.since<=T.until?1:-1;return void 0===H?i(T.since).year():i(T.since).year()+(H-T.offset)*I},jt.erasAbbrRegex=function Zp(T){return P(this,"_erasAbbrRegex")||el.call(this),T?this._erasAbbrRegex:this._erasRegex},jt.erasNameRegex=function Xu(T){return P(this,"_erasNameRegex")||el.call(this),T?this._erasNameRegex:this._erasRegex},jt.erasNarrowRegex=function Jp(T){return P(this,"_erasNarrowRegex")||el.call(this),T?this._erasNarrowRegex:this._erasRegex},jt.months=function Wl(T,H){return T?M(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Js).test(H)?"format":"standalone"][T.month()]:M(this._months)?this._months:this._months.standalone},jt.monthsShort=function Qs(T,H){return T?M(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Js.test(H)?"format":"standalone"][T.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},jt.monthsParse=function Ea(T,H,I){var N,W,se;if(this._monthsParseExact)return Ks.call(this,T,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(W=le([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(se="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[N]=new RegExp(se.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[N].test(T))return N;if(I&&"MMM"===H&&this._shortMonthsParse[N].test(T))return N;if(!I&&this._monthsParse[N].test(T))return N}},jt.monthsRegex=function mn(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=md),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},jt.monthsShortRegex=function Lu(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},jt.week=function Iu(T){return Xs(T,this._week.dow,this._week.doy).week},jt.firstDayOfYear=function Pp(){return this._week.doy},jt.firstDayOfWeek=function ur(){return this._week.dow},jt.weekdays=function ra(T,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===T?_d(I,this._week.dow):T?I[T.day()]:I},jt.weekdaysMin=function cn(T){return!0===T?_d(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},jt.weekdaysShort=function Gt(T){return!0===T?_d(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},jt.weekdaysParse=function De(T,H,I){var N,W,se;if(this._weekdaysParseExact)return Ve.call(this,T,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(W=le([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(se="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[N]=new RegExp(se.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[N].test(T))return N;if(I&&"ddd"===H&&this._shortWeekdaysParse[N].test(T))return N;if(I&&"dd"===H&&this._minWeekdaysParse[N].test(T))return N;if(!I&&this._weekdaysParse[N].test(T))return N}},jt.weekdaysRegex=function Ra(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Vp),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},jt.weekdaysShortRegex=function nn(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Uo),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},jt.weekdaysMinRegex=function Ir(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tt),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},jt.isPM=function Xn(T){return"p"===(T+"").toLowerCase().charAt(0)},jt.meridiem=function Vu(T,H,I){return T>11?I?"pm":"PM":I?"am":"AM"},O("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(T){var H=T%10;return T+(1===de(T%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Re("moment.lang is deprecated. Use moment.locale instead.",O),i.langData=Re("moment.langData is deprecated. Use moment.localeData instead.",$);var ir=Math.abs;function ah(T,H,I,N){var W=dn(H,I);return T._milliseconds+=N*W._milliseconds,T._days+=N*W._days,T._months+=N*W._months,T._bubble()}function Ua(T){return T<0?Math.floor(T):Math.ceil(T)}function Ms(T){return 4800*T/146097}function Pi(T){return 146097*T/4800}function br(T){return function(){return this.as(T)}}var rl=br("ms"),rf=br("s"),af=br("m"),sf=br("h"),Bd=br("d"),ho=br("w"),ch=br("M"),Ss=br("Q"),dh=br("y");function zr(T){return function(){return this.isValid()?this._data[T]:NaN}}var uh=zr("milliseconds"),lf=zr("seconds"),cf=zr("minutes"),ua=zr("hours"),po=zr("days"),hh=zr("months"),Vd=zr("years");var Ur=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ph(T,H,I,N,W){return W.relativeTime(H||1,!!I,T,N)}var Fd=Math.abs;function Gr(T){return(T>0)-(T<0)||+T}function jd(){if(!this.isValid())return this.localeData().invalidDate();var N,W,se,we,Lt,di,Gi,nr,T=Fd(this._milliseconds)/1e3,H=Fd(this._days),I=Fd(this._months),st=this.asSeconds();return st?(N=te(T/60),W=te(N/60),T%=60,N%=60,se=te(I/12),I%=12,we=T?T.toFixed(3).replace(/\.?0+$/,""):"",Lt=st<0?"-":"",di=Gr(this._months)!==Gr(st)?"-":"",Gi=Gr(this._days)!==Gr(st)?"-":"",nr=Gr(this._milliseconds)!==Gr(st)?"-":"",Lt+"P"+(se?di+se+"Y":"")+(I?di+I+"M":"")+(H?Gi+H+"D":"")+(W||N||T?"T":"")+(W?nr+W+"H":"")+(N?nr+N+"M":"")+(T?nr+we+"S":"")):"P0D"}var Nt=sa.prototype;return Nt.isValid=function ju(){return this._isValid},Nt.abs=function nf(){var T=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),T.milliseconds=ir(T.milliseconds),T.seconds=ir(T.seconds),T.minutes=ir(T.minutes),T.hours=ir(T.hours),T.months=ir(T.months),T.years=ir(T.years),this},Nt.add=function h_(T,H){return ah(this,T,H,1)},Nt.subtract=function sh(T,H){return ah(this,T,H,-1)},Nt.as=function oh(T){if(!this.isValid())return NaN;var H,I,N=this._milliseconds;if("month"===(T=Xi(T))||"quarter"===T||"year"===T)switch(H=this._days+N/864e5,I=this._months+Ms(H),T){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(Pi(this._months)),T){case"week":return H/7+N/6048e5;case"day":return H+N/864e5;case"hour":return 24*H+N/36e5;case"minute":return 1440*H+N/6e4;case"second":return 86400*H+N/1e3;case"millisecond":return Math.floor(864e5*H)+N;default:throw new Error("Unknown unit "+T)}},Nt.asMilliseconds=rl,Nt.asSeconds=rf,Nt.asMinutes=af,Nt.asHours=sf,Nt.asDays=Bd,Nt.asWeeks=ho,Nt.asMonths=ch,Nt.asQuarters=Ss,Nt.asYears=dh,Nt.valueOf=function lh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN},Nt._bubble=function da(){var W,se,we,st,Lt,T=this._milliseconds,H=this._days,I=this._months,N=this._data;return T>=0&&H>=0&&I>=0||T<=0&&H<=0&&I<=0||(T+=864e5*Ua(Pi(I)+H),H=0,I=0),N.milliseconds=T%1e3,W=te(T/1e3),N.seconds=W%60,se=te(W/60),N.minutes=se%60,we=te(se/60),N.hours=we%24,H+=te(we/24),I+=Lt=te(Ms(H)),H-=Ua(Pi(Lt)),st=te(I/12),I%=12,N.days=H,N.months=I,N.years=st,this},Nt.clone=function uc(){return dn(this)},Nt.get=function Ga(T){return T=Xi(T),this.isValid()?this[T+"s"]():NaN},Nt.milliseconds=uh,Nt.seconds=lf,Nt.minutes=cf,Nt.hours=ua,Nt.days=po,Nt.weeks=function al(){return te(this.days()/7)},Nt.months=hh,Nt.years=Vd,Nt.humanize=function fh(T,H){if(!this.isValid())return this.localeData().invalidDate();var W,se,I=!1,N=ha;return"object"==typeof T&&(H=T,T=!1),"boolean"==typeof T&&(I=T),"object"==typeof H&&(N=Object.assign({},ha,H),null!=H.s&&null==H.ss&&(N.ss=H.s-1)),se=function df(T,H,I,N){var W=dn(T).abs(),se=Ur(W.as("s")),we=Ur(W.as("m")),st=Ur(W.as("h")),Lt=Ur(W.as("d")),di=Ur(W.as("M")),Gi=Ur(W.as("w")),nr=Ur(W.as("y")),pa=se<=I.ss&&["s",se]||se0,pa[4]=N,ph.apply(null,pa)}(this,!I,N,W=this.localeData()),I&&(se=W.pastFuture(+this,se)),W.postformat(se)},Nt.toISOString=jd,Nt.toString=jd,Nt.toJSON=jd,Nt.locale=Qu,Nt.localeData=Sd,Nt.toIsoString=Re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jd),Nt.lang=Md,Ue("X",0,0,"unix"),Ue("x",0,0,"valueOf"),Ne("x",ea),Ne("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(T,H,I){I._d=new Date(1e3*parseFloat(T))}),w("x",function(T,H,I){I._d=new Date(de(T))}),i.version="2.29.4",function D(T){C=T}(ci),i.fn=Be,i.min=function wd(){return to("isBefore",[].slice.call(arguments,0))},i.max=function aa(){return to("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function il(T){return ci(1e3*T)},i.months=function xs(T,H){return rh(T,H,"months")},i.isDate=J,i.locale=O,i.invalid=Ae,i.duration=dn,i.isMoment=Me,i.weekdays=function u_(T,H,I){return Id(T,H,I,"weekdays")},i.parseZone=function tf(){return ci.apply(null,arguments).parseZone()},i.localeData=$,i.isDuration=no,i.monthsShort=function za(T,H){return rh(T,H,"monthsShort")},i.weekdaysMin=function Od(T,H,I){return Id(T,H,I,"weekdaysMin")},i.defineLocale=q,i.updateLocale=function B(T,H){if(null!=H){var I,N,W=Qe;null!=Dt[T]&&null!=Dt[T].parentLocale?Dt[T].set(Ce(Dt[T]._config,H)):(null!=(N=Bt(T))&&(W=N._config),H=Ce(W,H),null==N&&(H.abbr=T),(I=new _e(H)).parentLocale=Dt[T],Dt[T]=I),O(T)}else null!=Dt[T]&&(null!=Dt[T].parentLocale?(Dt[T]=Dt[T].parentLocale,T===O()&&O(T)):null!=Dt[T]&&delete Dt[T]);return Dt[T]},i.locales=function ce(){return ze(Dt)},i.weekdaysShort=function nl(T,H,I){return Id(T,H,I,"weekdaysShort")},i.normalizeUnits=Xi,i.relativeTimeRounding=function uf(T){return void 0===T?Ur:"function"==typeof T&&(Ur=T,!0)},i.relativeTimeThreshold=function hc(T,H){return void 0!==ha[T]&&(void 0===H?ha[T]:(ha[T]=H,"s"===T&&(ha.ss=H-1),!0))},i.calendarFormat=function $o(T,H){var I=T.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=Be,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}()},9751:(Y,U,x)=>{"use strict";x.d(U,{y:()=>j});var C=x(930),i=x(727),D=x(8822),M=x(9635),S=x(2416),P=x(576),L=x(2806);let j=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,me){const be=function Q(ne){return ne&&ne instanceof C.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new C.Hp(re,ie,me);return(0,L.x)(()=>{const{operator:Ae,source:$e}=this;be.add(Ae?Ae.call(be,$e):$e?this._subscribe(be):this._trySubscribe(be))}),be}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=z(ie))((me,be)=>{const Ae=new C.Hp({next:$e=>{try{re($e)}catch(Ze){be(Ze),Ae.unsubscribe()}},error:be,complete:me});this.subscribe(Ae)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[D.L](){return this}pipe(...re){return(0,M.U)(re)(this)}toPromise(re){return new(re=z(re))((ie,me)=>{let be;this.subscribe(Ae=>be=Ae,Ae=>me(Ae),()=>ie(be))})}}return ne.create=le=>new ne(le),ne})();function z(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(Y,U,x)=>{"use strict";x.d(U,{x:()=>L});var C=x(9751),i=x(727);const M=(0,x(3888).d)(z=>function(){z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=x(8737),P=x(2806);let L=(()=>{class z extends C.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new j(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new M}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new C.y;return Q.source=this,Q}}return z.create=(J,Q)=>new j(J,Q),z})();class j extends L{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(Y,U,x)=>{"use strict";x.d(U,{Hp:()=>me,Lv:()=>ne});var C=x(576),i=x(727),D=x(2416),M=x(7849),S=x(5032);const P=z("C",void 0,void 0);function z(Ee,ve,Me){return{kind:Ee,value:ve,error:Me}}var J=x(3410),Q=x(2806);class ne extends i.w0{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,i.Nn)(ve)&&ve.add(this)):this.destination=Ze}static create(ve,Me,lt){return new me(ve,Me,lt)}next(ve){this.isStopped?$e(function j(Ee){return z("N",Ee,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?$e(function L(Ee){return z("E",void 0,Ee)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?$e(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(Ee,ve){return le.call(Ee,ve)}class ie{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:Me}=this;if(Me.next)try{Me.next(ve)}catch(lt){be(lt)}}error(ve){const{partialObserver:Me}=this;if(Me.error)try{Me.error(ve)}catch(lt){be(lt)}else be(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(Me){be(Me)}}}class me extends ne{constructor(ve,Me,lt){let Re;if(super(),(0,C.m)(ve)||!ve)Re={next:ve??void 0,error:Me??void 0,complete:lt??void 0};else{let Oe;this&&D.v.useDeprecatedNextContext?(Oe=Object.create(ve),Oe.unsubscribe=()=>this.unsubscribe(),Re={next:ve.next&&re(ve.next,Oe),error:ve.error&&re(ve.error,Oe),complete:ve.complete&&re(ve.complete,Oe)}):Re=ve}this.destination=new ie(Re)}}function be(Ee){D.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(Ee):(0,M.h)(Ee)}function $e(Ee,ve){const{onStoppedNotification:Me}=D.v;Me&&J.z.setTimeout(()=>Me(Ee,ve))}const Ze={closed:!0,next:S.Z,error:function Ae(Ee){throw Ee},complete:S.Z}},727:(Y,U,x)=>{"use strict";x.d(U,{Lc:()=>P,w0:()=>S,Nn:()=>L});var C=x(576);const D=(0,x(3888).d)(z=>function(Q){z(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var M=x(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,C.m)(ne))try{ne()}catch(re){J=re instanceof D?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{j(re)}catch(ie){J=J??[],ie instanceof D?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new D(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)j(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,M.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,M.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const z=new S;return z.closed=!0,z})();const P=S.EMPTY;function L(z){return z instanceof S||z&&"closed"in z&&(0,C.m)(z.remove)&&(0,C.m)(z.add)&&(0,C.m)(z.unsubscribe)}function j(z){(0,C.m)(z)?z():z.unsubscribe()}},2416:(Y,U,x)=>{"use strict";x.d(U,{v:()=>C});const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,U,x)=>{"use strict";x.d(U,{a:()=>J});var C=x(9751),i=x(4742),D=x(2076),M=x(4671),S=x(3268),P=x(3269),L=x(1810),j=x(5403),z=x(9672);function J(...le){const re=(0,P.yG)(le),ie=(0,P.jO)(le),{args:me,keys:be}=(0,i.D)(le);if(0===me.length)return(0,D.D)([],re);const Ae=new C.y(function Q(le,re,ie=M.y){return me=>{ne(re,()=>{const{length:be}=le,Ae=new Array(be);let $e=be,Ze=be;for(let Ee=0;Ee{const ve=(0,D.D)(le[Ee],re);let Me=!1;ve.subscribe((0,j.x)(me,lt=>{Ae[Ee]=lt,Me||(Me=!0,Ze--),Ze||me.next(ie(Ae.slice()))},()=>{--$e||me.complete()}))},me)},me)}}(me,re,be?$e=>(0,L.n)(be,$e):M.y));return ie?Ae.pipe((0,S.Z)(ie)):Ae}function ne(le,re,ie){le?(0,z.f)(ie,le,re):re()}},7272:(Y,U,x)=>{"use strict";x.d(U,{z:()=>S});var C=x(8189),D=x(3269),M=x(2076);function S(...P){return function i(){return(0,C.J)(1)}()((0,M.D)(P,(0,D.yG)(P)))}},515:(Y,U,x)=>{"use strict";x.d(U,{E:()=>i});const i=new(x(9751).y)(S=>S.complete())},2076:(Y,U,x)=>{"use strict";x.d(U,{D:()=>lt});var C=x(8421),i=x(9672),D=x(4482),M=x(5403);function S(Re,Oe=0){return(0,D.e)((Le,ue)=>{Le.subscribe((0,M.x)(ue,fe=>(0,i.f)(ue,Re,()=>ue.next(fe),Oe),()=>(0,i.f)(ue,Re,()=>ue.complete(),Oe),fe=>(0,i.f)(ue,Re,()=>ue.error(fe),Oe)))})}function P(Re,Oe=0){return(0,D.e)((Le,ue)=>{ue.add(Re.schedule(()=>Le.subscribe(ue),Oe))})}var z=x(9751),Q=x(2202),ne=x(576);function re(Re,Oe){if(!Re)throw new Error("Iterable cannot be null");return new z.y(Le=>{(0,i.f)(Le,Oe,()=>{const ue=Re[Symbol.asyncIterator]();(0,i.f)(Le,Oe,()=>{ue.next().then(fe=>{fe.done?Le.complete():Le.next(fe.value)})},0,!0)})})}var ie=x(3670),me=x(8239),be=x(1144),Ae=x(6495),$e=x(2206),Ze=x(4532),Ee=x(3260);function lt(Re,Oe){return Oe?function Me(Re,Oe){if(null!=Re){if((0,ie.c)(Re))return function L(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,be.z)(Re))return function J(Re,Oe){return new z.y(Le=>{let ue=0;return Oe.schedule(function(){ue===Re.length?Le.complete():(Le.next(Re[ue++]),Le.closed||this.schedule())})})}(Re,Oe);if((0,me.t)(Re))return function j(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,$e.D)(Re))return re(Re,Oe);if((0,Ae.T)(Re))return function le(Re,Oe){return new z.y(Le=>{let ue;return(0,i.f)(Le,Oe,()=>{ue=Re[Q.h](),(0,i.f)(Le,Oe,()=>{let fe,Ce;try{({value:fe,done:Ce}=ue.next())}catch(_e){return void Le.error(_e)}Ce?Le.complete():Le.next(fe)},0,!0)}),()=>(0,ne.m)(ue?.return)&&ue.return()})}(Re,Oe);if((0,Ee.L)(Re))return function ve(Re,Oe){return re((0,Ee.Q)(Re),Oe)}(Re,Oe)}throw(0,Ze.z)(Re)}(Re,Oe):(0,C.Xf)(Re)}},8421:(Y,U,x)=>{"use strict";x.d(U,{Xf:()=>le});var C=x(655),i=x(1144),D=x(8239),M=x(9751),S=x(3670),P=x(2206),L=x(4532),j=x(6495),z=x(3260),J=x(576),Q=x(7849),ne=x(8822);function le(Ee){if(Ee instanceof M.y)return Ee;if(null!=Ee){if((0,S.c)(Ee))return function re(Ee){return new M.y(ve=>{const Me=Ee[ne.L]();if((0,J.m)(Me.subscribe))return Me.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ee);if((0,i.z)(Ee))return function ie(Ee){return new M.y(ve=>{for(let Me=0;Me{Ee.then(Me=>{ve.closed||(ve.next(Me),ve.complete())},Me=>ve.error(Me)).then(null,Q.h)})}(Ee);if((0,P.D)(Ee))return Ae(Ee);if((0,j.T)(Ee))return function be(Ee){return new M.y(ve=>{for(const Me of Ee)if(ve.next(Me),ve.closed)return;ve.complete()})}(Ee);if((0,z.L)(Ee))return function $e(Ee){return Ae((0,z.Q)(Ee))}(Ee)}throw(0,L.z)(Ee)}function Ae(Ee){return new M.y(ve=>{(function Ze(Ee,ve){var Me,lt,Re,Oe;return(0,C.mG)(this,void 0,void 0,function*(){try{for(Me=(0,C.KL)(Ee);!(lt=yield Me.next()).done;)if(ve.next(lt.value),ve.closed)return}catch(Le){Re={error:Le}}finally{try{lt&&!lt.done&&(Oe=Me.return)&&(yield Oe.call(Me))}finally{if(Re)throw Re.error}}ve.complete()})})(Ee,ve).catch(Me=>ve.error(Me))})}},6451:(Y,U,x)=>{"use strict";x.d(U,{T:()=>P});var C=x(8189),i=x(8421),D=x(515),M=x(3269),S=x(2076);function P(...L){const j=(0,M.yG)(L),z=(0,M._6)(L,1/0),J=L;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,C.J)(z)((0,S.D)(J,j)):D.E}},9646:(Y,U,x)=>{"use strict";x.d(U,{of:()=>D});var C=x(3269),i=x(2076);function D(...M){const S=(0,C.yG)(M);return(0,i.D)(M,S)}},102:(Y,U,x)=>{"use strict";x.d(U,{S:()=>P});var C=x(9751),i=x(8421);const{isArray:D}=Array;var S=x(5403);function P(...j){return 1===(j=function M(j){return 1===j.length&&D(j[0])?j[0]:j}(j)).length?(0,i.Xf)(j[0]):new C.y(function L(j){return z=>{let J=[];for(let Q=0;J&&!z.closed&&Q{if(J){for(let le=0;le{"use strict";x.d(U,{_:()=>D});var C=x(9751),i=x(576);function D(M,S){const P=(0,i.m)(M)?M:()=>M,L=j=>j.error(P());return new C.y(S?j=>S.schedule(L,0,j):L)}},2805:(Y,U,x)=>{"use strict";x.d(U,{H:()=>S});var C=x(9751),i=x(4986),D=x(3532),M=x(1165);function S(P=0,L,j=i.P){let z=-1;return null!=L&&((0,D.K)(L)?j=L:z=L),new C.y(J=>{let Q=(0,M.q)(P)?+P-j.now():P;Q<0&&(Q=0);let ne=0;return j.schedule(function(){J.closed||(J.next(ne++),0<=z?this.schedule(void 0,z):J.complete())},Q)})}},5403:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var C=x(930);function i(M,S,P,L,j){return new D(M,S,P,L,j)}class D extends C.Lv{constructor(S,P,L,j,z,J){super(S),this.onFinalize=z,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=j?function(Q){try{j(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(Y,U,x)=>{"use strict";x.d(U,{K:()=>M});var C=x(8421),i=x(5403),D=x(4482);function M(S){return(0,D.e)((P,L)=>{let J,j=null,z=!1;j=P.subscribe((0,i.x)(L,void 0,void 0,Q=>{J=(0,C.Xf)(S(Q,M(S)(P))),j?(j.unsubscribe(),j=null,J.subscribe(L)):z=!0})),z&&(j.unsubscribe(),j=null,J.subscribe(L))})}},4351:(Y,U,x)=>{"use strict";x.d(U,{b:()=>D});var C=x(5577),i=x(576);function D(M,S){return(0,i.m)(S)?(0,C.z)(M,S,1):(0,C.z)(M,1)}},8372:(Y,U,x)=>{"use strict";x.d(U,{b:()=>M});var C=x(4986),i=x(4482),D=x(5403);function M(S,P=C.z){return(0,i.e)((L,j)=>{let z=null,J=null,Q=null;const ne=()=>{if(z){z.unsubscribe(),z=null;const re=J;J=null,j.next(re)}};function le(){const re=Q+S,ie=P.now();if(ie{J=re,Q=P.now(),z||(z=P.schedule(le,S),j.add(z))},()=>{ne(),j.complete()},void 0,()=>{J=z=null}))})}},6590:(Y,U,x)=>{"use strict";x.d(U,{d:()=>D});var C=x(4482),i=x(5403);function D(M){return(0,C.e)((S,P)=>{let L=!1;S.subscribe((0,i.x)(P,j=>{L=!0,P.next(j)},()=>{L||P.next(M),P.complete()}))})}},1005:(Y,U,x)=>{"use strict";x.d(U,{g:()=>ne});var C=x(4986),i=x(7272),D=x(5698),M=x(4482),S=x(5403),P=x(5032),j=x(9718),z=x(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,D.q)(1),function L(){return(0,M.e)((le,re)=>{le.subscribe((0,S.x)(re,P.Z))})}()),ie.pipe(J(le))):(0,z.z)((ie,me)=>le(ie,me).pipe((0,D.q)(1),(0,j.h)(ie)))}var Q=x(2805);function ne(le,re=C.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(Y,U,x)=>{"use strict";x.d(U,{h:()=>D});var C=x(4482),i=x(5403);function D(M,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>M.call(S,z,j++)&&L.next(z)))})}},590:(Y,U,x)=>{"use strict";x.d(U,{P:()=>L});var C=x(6805),i=x(9300),D=x(5698),M=x(6590),S=x(8068),P=x(4671);function L(j,z){const J=arguments.length>=2;return Q=>Q.pipe(j?(0,i.h)((ne,le)=>j(ne,le,Q)):P.y,(0,D.q)(1),J?(0,M.d)(z):(0,S.T)(()=>new C.K))}},4004:(Y,U,x)=>{"use strict";x.d(U,{U:()=>D});var C=x(4482),i=x(5403);function D(M,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>{L.next(M.call(S,z,j++))}))})}},9718:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var C=x(4004);function i(D){return(0,C.U)(()=>D)}},8189:(Y,U,x)=>{"use strict";x.d(U,{J:()=>D});var C=x(5577),i=x(4671);function D(M=1/0){return(0,C.z)(i.y,M)}},5577:(Y,U,x)=>{"use strict";x.d(U,{z:()=>j});var C=x(4004),i=x(8421),D=x(4482),M=x(9672),S=x(5403),L=x(576);function j(z,J,Q=1/0){return(0,L.m)(J)?j((ne,le)=>(0,C.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(z(ne,le))),Q):("number"==typeof J&&(Q=J),(0,D.e)((ne,le)=>function P(z,J,Q,ne,le,re,ie,me){const be=[];let Ae=0,$e=0,Ze=!1;const Ee=()=>{Ze&&!be.length&&!Ae&&J.complete()},ve=lt=>Ae{re&&J.next(lt),Ae++;let Re=!1;(0,i.Xf)(Q(lt,$e++)).subscribe((0,S.x)(J,Oe=>{le?.(Oe),re?ve(Oe):J.next(Oe)},()=>{Re=!0},void 0,()=>{if(Re)try{for(Ae--;be.length&&AeMe(Oe)):Me(Oe)}Ee()}catch(Oe){J.error(Oe)}}))};return z.subscribe((0,S.x)(J,ve,()=>{Ze=!0,Ee()})),()=>{me?.()}}(ne,le,z,Q)))}},3099:(Y,U,x)=>{"use strict";x.d(U,{B:()=>S});var C=x(8421),i=x(7579),D=x(930),M=x(4482);function S(L={}){const{connector:j=(()=>new i.x),resetOnError:z=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=L;return ne=>{let le,re,ie,me=0,be=!1,Ae=!1;const $e=()=>{re?.unsubscribe(),re=void 0},Ze=()=>{$e(),le=ie=void 0,be=Ae=!1},Ee=()=>{const ve=le;Ze(),ve?.unsubscribe()};return(0,M.e)((ve,Me)=>{me++,!Ae&&!be&&$e();const lt=ie=ie??j();Me.add(()=>{me--,0===me&&!Ae&&!be&&(re=P(Ee,Q))}),lt.subscribe(Me),!le&&me>0&&(le=new D.Hp({next:Re=>lt.next(Re),error:Re=>{Ae=!0,$e(),re=P(Ze,z,Re),lt.error(Re)},complete:()=>{be=!0,$e(),re=P(Ze,J),lt.complete()}}),(0,C.Xf)(ve).subscribe(le))})(ne)}}function P(L,j,...z){if(!0===j)return void L();if(!1===j)return;const J=new D.Hp({next:()=>{J.unsubscribe(),L()}});return j(...z).subscribe(J)}},3900:(Y,U,x)=>{"use strict";x.d(U,{w:()=>M});var C=x(8421),i=x(4482),D=x(5403);function M(S,P){return(0,i.e)((L,j)=>{let z=null,J=0,Q=!1;const ne=()=>Q&&!z&&j.complete();L.subscribe((0,D.x)(j,le=>{z?.unsubscribe();let re=0;const ie=J++;(0,C.Xf)(S(le,ie)).subscribe(z=(0,D.x)(j,me=>j.next(P?P(le,me,ie,re++):me),()=>{z=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(Y,U,x)=>{"use strict";x.d(U,{q:()=>M});var C=x(515),i=x(4482),D=x(5403);function M(S){return S<=0?()=>C.E:(0,i.e)((P,L)=>{let j=0;P.subscribe((0,D.x)(L,z=>{++j<=S&&(L.next(z),S<=j&&L.complete())}))})}},8505:(Y,U,x)=>{"use strict";x.d(U,{b:()=>S});var C=x(576),i=x(4482),D=x(5403),M=x(4671);function S(P,L,j){const z=(0,C.m)(P)||L||j?{next:P,error:L,complete:j}:P;return z?(0,i.e)((J,Q)=>{var ne;null===(ne=z.subscribe)||void 0===ne||ne.call(z);let le=!0;J.subscribe((0,D.x)(Q,re=>{var ie;null===(ie=z.next)||void 0===ie||ie.call(z,re),Q.next(re)},()=>{var re;le=!1,null===(re=z.complete)||void 0===re||re.call(z),Q.complete()},re=>{var ie;le=!1,null===(ie=z.error)||void 0===ie||ie.call(z,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=z.unsubscribe)||void 0===re||re.call(z)),null===(ie=z.finalize)||void 0===ie||ie.call(z)}))}):M.y}},8068:(Y,U,x)=>{"use strict";x.d(U,{T:()=>M});var C=x(6805),i=x(4482),D=x(5403);function M(P=S){return(0,i.e)((L,j)=>{let z=!1;L.subscribe((0,D.x)(j,J=>{z=!0,j.next(J)},()=>z?j.complete():j.error(P())))})}function S(){return new C.K}},7414:(Y,U,x)=>{"use strict";x.d(U,{V:()=>z});var C=x(4986),i=x(1165),D=x(4482),M=x(8421),S=x(3888),P=x(5403),L=x(9672);const j=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function z(Q,ne){const{first:le,each:re,with:ie=J,scheduler:me=ne??C.z,meta:be=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,D.e)((Ae,$e)=>{let Ze,Ee,ve=null,Me=0;const lt=Re=>{Ee=(0,L.f)($e,me,()=>{try{Ze.unsubscribe(),(0,M.Xf)(ie({meta:be,lastValue:ve,seen:Me})).subscribe($e)}catch(Oe){$e.error(Oe)}},Re)};Ze=Ae.subscribe((0,P.x)($e,Re=>{Ee?.unsubscribe(),Me++,$e.next(ve=Re),re>0&<(re)},void 0,void 0,()=>{Ee?.closed||Ee?.unsubscribe(),ve=null})),!Me&<(null!=le?"number"==typeof le?le:+le-me.now():re)})}function J(Q){throw new j(Q)}},4408:(Y,U,x)=>{"use strict";x.d(U,{o:()=>S});var C=x(727);class i extends C.w0{constructor(L,j){super()}schedule(L,j=0){return this}}const D={setInterval(P,L,...j){const{delegate:z}=D;return z?.setInterval?z.setInterval(P,L,...j):setInterval(P,L,...j)},clearInterval(P){const{delegate:L}=D;return(L?.clearInterval||clearInterval)(P)},delegate:void 0};var M=x(8737);class S extends i{constructor(L,j){super(L,j),this.scheduler=L,this.work=j,this.pending=!1}schedule(L,j=0){if(this.closed)return this;this.state=L;const z=this.id,J=this.scheduler;return null!=z&&(this.id=this.recycleAsyncId(J,z,j)),this.pending=!0,this.delay=j,this.id=this.id||this.requestAsyncId(J,this.id,j),this}requestAsyncId(L,j,z=0){return D.setInterval(L.flush.bind(L,this),z)}recycleAsyncId(L,j,z=0){if(null!=z&&this.delay===z&&!1===this.pending)return j;D.clearInterval(j)}execute(L,j){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const z=this._execute(L,j);if(z)return z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,j){let J,z=!1;try{this.work(L)}catch(Q){z=!0,J=Q||new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:L,scheduler:j}=this,{actions:z}=j;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(z,this),null!=L&&(this.id=this.recycleAsyncId(j,L,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,U,x)=>{"use strict";x.d(U,{v:()=>D});var C=x(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,L){return new this.schedulerActionCtor(this,S).schedule(L,P)}}i.now=C.l.now;class D extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let L;this._active=!0;do{if(L=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,L){for(;S=P.shift();)S.unsubscribe();throw L}}}},4986:(Y,U,x)=>{"use strict";x.d(U,{P:()=>M,z:()=>D});var C=x(4408);const D=new(x(7565).v)(C.o),M=D},6063:(Y,U,x)=>{"use strict";x.d(U,{l:()=>C});const C={now:()=>(C.delegate||Date).now(),delegate:void 0}},3410:(Y,U,x)=>{"use strict";x.d(U,{z:()=>C});const C={setTimeout(i,D,...M){const{delegate:S}=C;return S?.setTimeout?S.setTimeout(i,D,...M):setTimeout(i,D,...M)},clearTimeout(i){const{delegate:D}=C;return(D?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});const i=function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,U,x)=>{"use strict";x.d(U,{L:()=>C});const C="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(0,x(3888).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,U,x)=>{"use strict";x.d(U,{_6:()=>P,jO:()=>M,yG:()=>S});var C=x(576),i=x(3532);function D(L){return L[L.length-1]}function M(L){return(0,C.m)(D(L))?L.pop():void 0}function S(L){return(0,i.K)(D(L))?L.pop():void 0}function P(L,j){return"number"==typeof D(L)?L.pop():j}},4742:(Y,U,x)=>{"use strict";x.d(U,{D:()=>S});const{isArray:C}=Array,{getPrototypeOf:i,prototype:D,keys:M}=Object;function S(L){if(1===L.length){const j=L[0];if(C(j))return{args:j,keys:null};if(function P(L){return L&&"object"==typeof L&&i(L)===D}(j)){const z=M(j);return{args:z.map(J=>j[J]),keys:z}}}return{args:L,keys:null}}},8737:(Y,U,x)=>{"use strict";function C(i,D){if(i){const M=i.indexOf(D);0<=M&&i.splice(M,1)}}x.d(U,{P:()=>C})},3888:(Y,U,x)=>{"use strict";function C(i){const M=i(S=>{Error.call(S),S.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}x.d(U,{d:()=>C})},1810:(Y,U,x)=>{"use strict";function C(i,D){return i.reduce((M,S,P)=>(M[S]=D[P],M),{})}x.d(U,{n:()=>C})},2806:(Y,U,x)=>{"use strict";x.d(U,{O:()=>M,x:()=>D});var C=x(2416);let i=null;function D(S){if(C.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:L,error:j}=i;if(i=null,L)throw j}}else S()}function M(S){C.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(Y,U,x)=>{"use strict";function C(i,D,M,S=0,P=!1){const L=D.schedule(function(){M(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(L),!P)return L}x.d(U,{f:()=>C})},4671:(Y,U,x)=>{"use strict";function C(i){return i}x.d(U,{y:()=>C})},1144:(Y,U,x)=>{"use strict";x.d(U,{z:()=>C});const C=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(Y,U,x)=>{"use strict";x.d(U,{D:()=>i});var C=x(576);function i(D){return Symbol.asyncIterator&&(0,C.m)(D?.[Symbol.asyncIterator])}},1165:(Y,U,x)=>{"use strict";function C(i){return i instanceof Date&&!isNaN(i)}x.d(U,{q:()=>C})},576:(Y,U,x)=>{"use strict";function C(i){return"function"==typeof i}x.d(U,{m:()=>C})},3670:(Y,U,x)=>{"use strict";x.d(U,{c:()=>D});var C=x(8822),i=x(576);function D(M){return(0,i.m)(M[C.L])}},6495:(Y,U,x)=>{"use strict";x.d(U,{T:()=>D});var C=x(2202),i=x(576);function D(M){return(0,i.m)(M?.[C.h])}},8239:(Y,U,x)=>{"use strict";x.d(U,{t:()=>i});var C=x(576);function i(D){return(0,C.m)(D?.then)}},3260:(Y,U,x)=>{"use strict";x.d(U,{L:()=>M,Q:()=>D});var C=x(655),i=x(576);function D(S){return(0,C.FC)(this,arguments,function*(){const L=S.getReader();try{for(;;){const{value:j,done:z}=yield(0,C.qq)(L.read());if(z)return yield(0,C.qq)(void 0);yield yield(0,C.qq)(j)}}finally{L.releaseLock()}})}function M(S){return(0,i.m)(S?.getReader)}},3532:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});var C=x(576);function i(D){return D&&(0,C.m)(D.schedule)}},4482:(Y,U,x)=>{"use strict";x.d(U,{A:()=>i,e:()=>D});var C=x(576);function i(M){return(0,C.m)(M?.lift)}function D(M){return S=>{if(i(S))return S.lift(function(P){try{return M(P,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,U,x)=>{"use strict";x.d(U,{Z:()=>M});var C=x(4004);const{isArray:i}=Array;function M(S){return(0,C.U)(P=>function D(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(Y,U,x)=>{"use strict";function C(){}x.d(U,{Z:()=>C})},9635:(Y,U,x)=>{"use strict";x.d(U,{U:()=>D,z:()=>i});var C=x(4671);function i(...M){return D(M)}function D(M){return 0===M.length?C.y:1===M.length?M[0]:function(P){return M.reduce((L,j)=>j(L),P)}}},7849:(Y,U,x)=>{"use strict";x.d(U,{h:()=>D});var C=x(2416),i=x(3410);function D(M){i.z.setTimeout(()=>{const{onUnhandledError:S}=C.v;if(!S)throw M;S(M)})}},4532:(Y,U,x)=>{"use strict";function C(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(U,{z:()=>C})},6700:(Y,U,x)=>{var C={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(M){var S=D(M);return x(S)}function D(M){if(!x.o(C,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return C[M]}i.keys=function(){return Object.keys(C)},i.resolve=D,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function j(ue,fe,Ce,_e){return new(Ce||(Ce=Promise))(function(je,Ct){function It(Ki){try{Je(_e.next(Ki))}catch(_n){Ct(_n)}}function ni(Ki){try{Je(_e.throw(Ki))}catch(_n){Ct(_n)}}function Je(Ki){Ki.done?je(Ki.value):function ze(je){return je instanceof Ce?je:new Ce(function(Ct){Ct(je)})}(Ki.value).then(It,ni)}Je((_e=_e.apply(ue,fe||[])).next())})}function be(ue){return this instanceof be?(this.v=ue,this):new be(ue)}function Ae(ue,fe,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,_e=Ce.apply(ue,fe||[]),je=[];return ze={},Ct("next"),Ct("throw"),Ct("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Ct(Ue){_e[Ue]&&(ze[Ue]=function(ri){return new Promise(function(lr,vi){je.push([Ue,ri,lr,vi])>1||It(Ue,ri)})})}function It(Ue,ri){try{!function ni(Ue){Ue.value instanceof be?Promise.resolve(Ue.value.v).then(Je,Ki):_n(je[0][2],Ue)}(_e[Ue](ri))}catch(lr){_n(je[0][3],lr)}}function Je(Ue){It("next",Ue)}function Ki(Ue){It("throw",Ue)}function _n(Ue,ri){Ue(ri),je.shift(),je.length&&It(je[0][0],je[0][1])}}function Ze(ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,fe=ue[Symbol.asyncIterator];return fe?fe.call(ue):(ue=function ne(ue){var fe="function"==typeof Symbol&&Symbol.iterator,Ce=fe&&ue[fe],_e=0;if(Ce)return Ce.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&_e>=ue.length&&(ue=void 0),{value:ue&&ue[_e++],done:!ue}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ue),Ce={},_e("next"),_e("throw"),_e("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function _e(je){Ce[je]=ue[je]&&function(Ct){return new Promise(function(It,ni){!function ze(je,Ct,It,ni){Promise.resolve(ni).then(function(Je){je({value:Je,done:It})},Ct)}(It,ni,(Ct=ue[je](Ct)).done,Ct.value)})}}}x.d(U,{FC:()=>Ae,KL:()=>Ze,mG:()=>j,qq:()=>be})},6895:(Y,U,x)=>{"use strict";x.d(U,{Do:()=>Ze,ED:()=>ms,EM:()=>fr,HT:()=>S,JF:()=>Bt,K0:()=>L,Mx:()=>md,NF:()=>qo,O5:()=>mn,Ov:()=>Ou,PC:()=>Lr,RF:()=>ka,S$:()=>be,V_:()=>J,Ye:()=>Ee,b0:()=>$e,bD:()=>yi,ez:()=>pr,mk:()=>Wl,n9:()=>Nn,p6:()=>ke,q:()=>D,sg:()=>Kn,tP:()=>Iu,uU:()=>Uo,w_:()=>P});var C=x(4650);let i=null;function D(){return i}function S(O){i||(i=O)}class P{}const L=new C.OlP("DocumentToken");let j=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return function z(){return(0,C.LFG)(Q)}()},providedIn:"platform"}),O})();const J=new C.OlP("Location Initialized");let Q=(()=>{class O extends j{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",B,!1),()=>$.removeEventListener("popstate",B)}onHashChange(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",B,!1),()=>$.removeEventListener("hashchange",B)}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(B){this.location.pathname=B}pushState(B,$,ce){ne()?this._history.pushState(B,$,ce):this.location.hash=ce}replaceState(B,$,ce){ne()?this._history.replaceState(B,$,ce):this.location.hash=ce}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(L))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function le(){return new Q((0,C.LFG)(L))}()},providedIn:"platform"}),O})();function ne(){return!!window.history.pushState}function re(O,q){if(0==O.length)return q;if(0==q.length)return O;let B=0;return O.endsWith("/")&&B++,q.startsWith("/")&&B++,2==B?O+q.substring(1):1==B?O+q:O+"/"+q}function ie(O){const q=O.match(/#|\?|$/),B=q&&q.index||O.length;return O.slice(0,B-("/"===O[B-1]?1:0))+O.slice(B)}function me(O){return O&&"?"!==O[0]?"?"+O:O}let be=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return(0,C.f3M)($e)},providedIn:"root"}),O})();const Ae=new C.OlP("appBaseHref");let $e=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,C.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return re(this._baseHref,B)}path(B=!1){const $=this._platformLocation.pathname+me(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&B?`${$}${ce}`:$}pushState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Ze=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=$&&(this._baseHref=$)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let $=this._platformLocation.hash;return null==$&&($="#"),$.length>0?$.substring(1):$}prepareExternalUrl(B){const $=re(this._baseHref,B);return $.length>0?"#"+$:$}pushState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac}),O})(),Ee=(()=>{class O{constructor(B){this._subject=new C.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const $=this._locationStrategy.getBaseHref();this._baseHref=ie(lt($)),this._locationStrategy.onPopState(ce=>{this._subject.emit({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,$=""){return this.path()==this.normalize(B+me($))}normalize(B){return O.stripTrailingSlash(function Me(O,q){return O&&q.startsWith(O)?q.substring(O.length):q}(this._baseHref,lt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,$="",ce=null){this._locationStrategy.pushState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}replaceState(B,$="",ce=null){this._locationStrategy.replaceState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){this._locationStrategy.historyGo?.(B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(B);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",$){this._urlChangeListeners.forEach(ce=>ce(B,$))}subscribe(B,$,ce){return this._subject.subscribe({next:B,error:$,complete:ce})}}return O.normalizeQueryParams=me,O.joinWithSlash=re,O.stripTrailingSlash=ie,O.\u0275fac=function(B){return new(B||O)(C.LFG(be))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function ve(){return new Ee((0,C.LFG)(be))}()},providedIn:"root"}),O})();function lt(O){return O.replace(/\/index.html$/,"")}var ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function Ue(O,q){return zi((0,C.cg1)(O)[C.wAp.DateFormat],q)}function ri(O,q){return zi((0,C.cg1)(O)[C.wAp.TimeFormat],q)}function lr(O,q){return zi((0,C.cg1)(O)[C.wAp.DateTimeFormat],q)}function vi(O,q){const B=(0,C.cg1)(O),$=B[C.wAp.NumberSymbols][q];if(typeof $>"u"){if(q===_e.CurrencyDecimal)return B[C.wAp.NumberSymbols][_e.Decimal];if(q===_e.CurrencyGroup)return B[C.wAp.NumberSymbols][_e.Group]}return $}function kr(O){if(!O[C.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[C.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zi(O,q){for(let B=q;B>-1;B--)if(typeof O[B]<"u")return O[B];throw new Error("Locale data API: locale data undefined")}function cr(O){const[q,B]=O.split(":");return{hours:+q,minutes:+B}}const Jn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wt={},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 ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),de=(()=>((de=de||{})[de.DayPeriods=0]="DayPeriods",de[de.Days=1]="Days",de[de.Months=2]="Months",de[de.Eras=3]="Eras",de))();function ke(O,q,B,$){let ce=function Ui(O){if(Ei(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[ce,ye=1,ge=1]=O.split("-").map(tt=>+tt);return dt(ce,ye-1,ge)}const B=parseFloat(O);if(!isNaN(O-B))return new Date(B);let $;if($=O.match(Jn))return function Ne(O){const q=new Date(0);let B=0,$=0;const ce=O[8]?q.setUTCFullYear:q.setFullYear,ye=O[8]?q.setUTCHours:q.setHours;O[9]&&(B=Number(O[9]+O[10]),$=Number(O[9]+O[11])),ce.call(q,Number(O[1]),Number(O[2])-1,Number(O[3]));const ge=Number(O[4]||0)-B,tt=Number(O[5]||0)-$,pi=Number(O[6]||0),Kt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return ye.call(q,ge,tt,pi,Kt),q}($)}const q=new Date(O);if(!Ei(q))throw new Error(`Unable to convert "${O}" into a date`);return q}(O);q=At(B,q)||q;let tt,ge=[];for(;q;){if(tt=Se.exec(q),!tt){ge.push(q);break}{ge=ge.concat(tt.slice(1));const Zt=ge.pop();if(!Zt)break;q=Zt}}let pi=ce.getTimezoneOffset();$&&(pi=ps($,pi),ce=function Ni(O,q,B){const $=B?-1:1,ce=O.getTimezoneOffset();return function ti(O,q){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+q),O}(O,$*(ps(q,ce)-ce))}(ce,$,!0));let Kt="";return ge.forEach(Zt=>{const Ft=function fd(O){if(ea[O])return ea[O];let q;switch(O){case"G":case"GG":case"GGG":q=mt(de.Eras,fe.Abbreviated);break;case"GGGG":q=mt(de.Eras,fe.Wide);break;case"GGGGG":q=mt(de.Eras,fe.Narrow);break;case"y":q=vt(te.FullYear,1,0,!1,!0);break;case"yy":q=vt(te.FullYear,2,0,!0,!0);break;case"yyy":q=vt(te.FullYear,3,0,!1,!0);break;case"yyyy":q=vt(te.FullYear,4,0,!1,!0);break;case"Y":q=Qn(1);break;case"YY":q=Qn(2,!0);break;case"YYY":q=Qn(3);break;case"YYYY":q=Qn(4);break;case"M":case"L":q=vt(te.Month,1,1);break;case"MM":case"LL":q=vt(te.Month,2,1);break;case"MMM":q=mt(de.Months,fe.Abbreviated);break;case"MMMM":q=mt(de.Months,fe.Wide);break;case"MMMMM":q=mt(de.Months,fe.Narrow);break;case"LLL":q=mt(de.Months,fe.Abbreviated,ue.Standalone);break;case"LLLL":q=mt(de.Months,fe.Wide,ue.Standalone);break;case"LLLLL":q=mt(de.Months,fe.Narrow,ue.Standalone);break;case"w":q=dr(1);break;case"ww":q=dr(2);break;case"W":q=dr(1,!0);break;case"d":q=vt(te.Date,1);break;case"dd":q=vt(te.Date,2);break;case"c":case"cc":q=vt(te.Day,1);break;case"ccc":q=mt(de.Days,fe.Abbreviated,ue.Standalone);break;case"cccc":q=mt(de.Days,fe.Wide,ue.Standalone);break;case"ccccc":q=mt(de.Days,fe.Narrow,ue.Standalone);break;case"cccccc":q=mt(de.Days,fe.Short,ue.Standalone);break;case"E":case"EE":case"EEE":q=mt(de.Days,fe.Abbreviated);break;case"EEEE":q=mt(de.Days,fe.Wide);break;case"EEEEE":q=mt(de.Days,fe.Narrow);break;case"EEEEEE":q=mt(de.Days,fe.Short);break;case"a":case"aa":case"aaa":q=mt(de.DayPeriods,fe.Abbreviated);break;case"aaaa":q=mt(de.DayPeriods,fe.Wide);break;case"aaaaa":q=mt(de.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":q=mt(de.DayPeriods,fe.Abbreviated,ue.Standalone,!0);break;case"bbbb":q=mt(de.DayPeriods,fe.Wide,ue.Standalone,!0);break;case"bbbbb":q=mt(de.DayPeriods,fe.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":q=mt(de.DayPeriods,fe.Abbreviated,ue.Format,!0);break;case"BBBB":q=mt(de.DayPeriods,fe.Wide,ue.Format,!0);break;case"BBBBB":q=mt(de.DayPeriods,fe.Narrow,ue.Format,!0);break;case"h":q=vt(te.Hours,1,-12);break;case"hh":q=vt(te.Hours,2,-12);break;case"H":q=vt(te.Hours,1);break;case"HH":q=vt(te.Hours,2);break;case"m":q=vt(te.Minutes,1);break;case"mm":q=vt(te.Minutes,2);break;case"s":q=vt(te.Seconds,1);break;case"ss":q=vt(te.Seconds,2);break;case"S":q=vt(te.FractionalSeconds,1);break;case"SS":q=vt(te.FractionalSeconds,2);break;case"SSS":q=vt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=pt(ae.Short);break;case"ZZZZZ":q=pt(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=pt(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=pt(ae.Long);break;default:return null}return ea[O]=q,q}(Zt);Kt+=Ft?Ft(ce,B,pi):"''"===Zt?"'":Zt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kt}function dt(O,q,B){const $=new Date(0);return $.setFullYear(O,q,B),$.setHours(0,0,0),$}function At(O,q){const B=function je(O){return(0,C.cg1)(O)[C.wAp.LocaleId]}(O);if(Wt[B]=Wt[B]||{},Wt[B][q])return Wt[B][q];let $="";switch(q){case"shortDate":$=Ue(O,Ce.Short);break;case"mediumDate":$=Ue(O,Ce.Medium);break;case"longDate":$=Ue(O,Ce.Long);break;case"fullDate":$=Ue(O,Ce.Full);break;case"shortTime":$=ri(O,Ce.Short);break;case"mediumTime":$=ri(O,Ce.Medium);break;case"longTime":$=ri(O,Ce.Long);break;case"fullTime":$=ri(O,Ce.Full);break;case"short":const ce=At(O,"shortTime"),ye=At(O,"shortDate");$=et(lr(O,Ce.Short),[ce,ye]);break;case"medium":const ge=At(O,"mediumTime"),tt=At(O,"mediumDate");$=et(lr(O,Ce.Medium),[ge,tt]);break;case"long":const pi=At(O,"longTime"),Kt=At(O,"longDate");$=et(lr(O,Ce.Long),[pi,Kt]);break;case"full":const Zt=At(O,"fullTime"),Ft=At(O,"fullDate");$=et(lr(O,Ce.Full),[Zt,Ft])}return $&&(Wt[B][q]=$),$}function et(O,q){return q&&(O=O.replace(/\{([^}]+)}/g,function(B,$){return null!=q&&$ in q?q[$]:B})),O}function ht(O,q,B="-",$,ce){let ye="";(O<0||ce&&O<=0)&&(ce?O=1-O:(O=-O,ye=B));let ge=String(O);for(;ge.length0||tt>-B)&&(tt+=B),O===te.Hours)0===tt&&-12===B&&(tt=12);else if(O===te.FractionalSeconds)return function Di(O,q){return ht(O,3).substring(0,q)}(tt,q);const pi=vi(ge,_e.MinusSign);return ht(tt,q,pi,$,ce)}}function mt(O,q,B=ue.Format,$=!1){return function(ce,ye){return function $t(O,q,B,$,ce,ye){switch(B){case de.Months:return function ni(O,q,B){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.MonthsFormat],$[C.wAp.MonthsStandalone]],q);return zi(ye,B)}(q,ce,$)[O.getMonth()];case de.Days:return function It(O,q,B){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.DaysFormat],$[C.wAp.DaysStandalone]],q);return zi(ye,B)}(q,ce,$)[O.getDay()];case de.DayPeriods:const ge=O.getHours(),tt=O.getMinutes();if(ye){const Kt=function hs(O){const q=(0,C.cg1)(O);return kr(q),(q[C.wAp.ExtraData][2]||[]).map($=>"string"==typeof $?cr($):[cr($[0]),cr($[1])])}(q),Zt=function Zs(O,q,B){const $=(0,C.cg1)(O);kr($);const ye=zi([$[C.wAp.ExtraData][0],$[C.wAp.ExtraData][1]],q)||[];return zi(ye,B)||[]}(q,ce,$),Ft=Kt.findIndex(at=>{if(Array.isArray(at)){const[mi,Ti]=at,xe=ge>=mi.hours&&tt>=mi.minutes,Ht=ge0?Math.floor(ce/60):Math.ceil(ce/60);switch(O){case ae.Short:return(ce>=0?"+":"")+ht(ge,2,ye)+ht(Math.abs(ce%60),2,ye);case ae.ShortGMT:return"GMT"+(ce>=0?"+":"")+ht(ge,1,ye);case ae.Long:return"GMT"+(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);case ae.Extended:return 0===$?"Z":(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);default:throw new Error(`Unknown zone width "${O}"`)}}}function Pr(O){return dt(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function dr(O,q=!1){return function(B,$){let ce;if(q){const ye=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,ge=B.getDate();ce=1+Math.floor((ge+ye)/7)}else{const ye=Pr(B),ge=function Vi(O){const q=dt(O,0,1).getDay();return dt(O,0,1+(q<=4?4:11)-q)}(ye.getFullYear()),tt=ye.getTime()-ge.getTime();ce=1+Math.round(tt/6048e5)}return ht(ce,O,vi($,_e.MinusSign))}}function Qn(O,q=!1){return function(B,$){return ht(Pr(B).getFullYear(),O,vi($,_e.MinusSign),q)}}const ea={};function ps(O,q){O=O.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(B)?q:B}function Ei(O){return O instanceof Date&&!isNaN(O.valueOf())}function md(O,q){q=encodeURIComponent(q);for(const B of O.split(";")){const $=B.indexOf("="),[ce,ye]=-1==$?[B,""]:[B.slice(0,$),B.slice($+1)];if(ce.trim()===q)return decodeURIComponent(ye)}return null}let Wl=(()=>{class O{constructor(B,$,ce,ye){this._iterableDiffers=B,this._keyValueDiffers=$,this._ngEl=ce,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachChangedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachRemovedItem($=>{$.previousValue&&this._toggleClass($.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem($=>{if("string"!=typeof $.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,C.AaK)($.item)}`);this._toggleClass($.item,!0)}),B.forEachRemovedItem($=>this._toggleClass($.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!0)):Object.keys(B).forEach($=>this._toggleClass($,!!B[$])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!1)):Object.keys(B).forEach($=>this._toggleClass($,!1)))}_toggleClass(B,$){(B=B.trim())&&B.split(/\s+/g).forEach(ce=>{$?this._renderer.addClass(this._ngEl.nativeElement,ce):this._renderer.removeClass(this._ngEl.nativeElement,ce)})}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class ia{constructor(q,B,$,ce){this.$implicit=q,this.ngForOf=B,this.index=$,this.count=ce}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 Kn=(()=>{class O{constructor(B,$,ce){this._viewContainer=B,this._template=$,this._differs=ce,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const $=this._viewContainer;B.forEachOperation((ce,ye,ge)=>{if(null==ce.previousIndex)$.createEmbeddedView(this._template,new ia(ce.item,this._ngForOf,-1,-1),null===ge?void 0:ge);else if(null==ge)$.remove(null===ye?void 0:ye);else if(null!==ye){const tt=$.get(ye);$.move(tt,ge),tn(tt,ce)}});for(let ce=0,ye=$.length;ce{tn($.get(ce.currentIndex),ce)})}static ngTemplateContextGuard(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function tn(O,q){O.context.$implicit=q.item}let mn=(()=>{class O{constructor(B,$){this._viewContainer=B,this._context=new jn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){na("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){na("ngIfElse",B),this._elseTemplateRef=B,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(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class jn{constructor(){this.$implicit=null,this.ngIf=null}}function na(O,q){if(q&&!q.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,C.AaK)(q)}'.`)}class Ha{constructor(q,B){this._viewContainerRef=q,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(q){q&&!this._created?this.create():!q&&this._created&&this.destroy()}}let ka=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const $=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let $=0;${class O{constructor(B,$,ce){this.ngSwitch=ce,ce._addCase(),this._view=new Ha(B,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(ka,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),ms=(()=>{class O{constructor(B,$,ce){ce._addDefault(new Ha(B,$))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(ka,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchDefault",""]],standalone:!0}),O})(),Lr=(()=>{class O{constructor(B,$,ce){this._ngEl=B,this._differs=$,this._renderer=ce,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,$){const[ce,ye]=B.split("."),ge=-1===ce.indexOf("-")?void 0:C.JOm.DashCase;null!=$?this._renderer.setStyle(this._ngEl.nativeElement,ce,ye?`${$}${ye}`:$,ge):this._renderer.removeStyle(this._ngEl.nativeElement,ce,ge)}_applyChanges(B){B.forEachRemovedItem($=>this._setStyle($.key,null)),B.forEachAddedItem($=>this._setStyle($.key,$.currentValue)),B.forEachChangedItem($=>this._setStyle($.key,$.currentValue))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),Iu=(()=>{class O{constructor(B){this._viewContainerRef=B,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(B){if(B.ngTemplateOutlet||B.ngTemplateOutletInjector){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ce,ngTemplateOutletContext:ye,ngTemplateOutletInjector:ge}=this;this._viewRef=$.createEmbeddedView(ce,ye,ge?{injector:ge}:void 0)}else this._viewRef=null}else this._viewRef&&B.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[C.TTD]}),O})();function ur(O,q){return new C.vHH(2100,!1)}class Pp{createSubscription(q,B){return q.subscribe({next:B,error:$=>{throw $}})}dispose(q){q.unsubscribe()}}class Rp{createSubscription(q,B){return q.then(B,$=>{throw $})}dispose(q){}}const Lp=new Rp,Ip=new Pp;let Ou=(()=>{class O{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,$=>this._updateLatestValue(B,$))}_selectStrategy(B){if((0,C.QGY)(B))return Lp;if((0,C.F4k)(B))return Ip;throw ur()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,$){B===this._obj&&(this._latestValue=$,this._ref.markForCheck())}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.sBO,16))},O.\u0275pipe=C.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})();const Vp=new C.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Uo=(()=>{class O{constructor(B,$){this.locale=B,this.defaultTimezone=$}transform(B,$="mediumDate",ce,ye){if(null==B||""===B||B!=B)return null;try{return ke(B,$,ye||this.locale,ce??this.defaultTimezone??void 0)}catch(ge){throw ur()}}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.soG,16),C.Y36(Vp,24))},O.\u0275pipe=C.Yjl({name:"date",type:O,pure:!0,standalone:!0}),O})(),pr=(()=>{class O{}return O.\u0275fac=function(B){return new(B||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({}),O})();const yi="browser";function qo(O){return O===yi}let fr=(()=>{class O{}return O.\u0275prov=(0,C.Yz7)({token:O,providedIn:"root",factory:()=>new Et((0,C.LFG)(L),window)}),O})();class Et{constructor(q,B){this.document=q,this.window=B,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(q){this.supportsScrolling()&&this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){if(!this.supportsScrolling())return;const B=function er(O,q){const B=O.getElementById(q)||O.getElementsByName(q)[0];if(B)return B;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const $=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let ce=$.currentNode;for(;ce;){const ye=ce.shadowRoot;if(ye){const ge=ye.getElementById(q)||ye.querySelector(`[name="${q}"]`);if(ge)return ge}ce=$.nextNode()}}return null}(this.document,q);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(q){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=q)}}scrollToElement(q){const B=q.getBoundingClientRect(),$=B.left+this.window.pageXOffset,ce=B.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo($-ye[0],ce-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const q=rn(this.window.history)||rn(Object.getPrototypeOf(this.window.history));return!(!q||!q.writable&&!q.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function rn(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Bt{}},529:(Y,U,x)=>{"use strict";x.d(U,{JF:()=>zo,LE:()=>Ae,TP:()=>It,WM:()=>J,Zn:()=>Ce,eN:()=>je,qT:()=>Ze});var C=x(6895),i=x(4650),D=x(9646),M=x(9751),S=x(4351),P=x(9300),L=x(4004);class j{}class z{}class J{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(te=>{const de=te.indexOf(":");if(de>0){const ke=te.slice(0,de),dt=ke.toLowerCase(),At=te.slice(de+1).trim();this.maybeSetNormalizedName(ke,dt),this.headers.has(dt)?this.headers.get(dt).push(At):this.headers.set(dt,[At])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(te=>{let de=ae[te];const ke=te.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(ke,de),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const te=this.headers.get(ae.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,te){return this.clone({name:ae,value:te,op:"a"})}set(ae,te){return this.clone({name:ae,value:te,op:"s"})}delete(ae,te){return this.clone({name:ae,value:te,op:"d"})}maybeSetNormalizedName(ae,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ae)}init(){this.lazyInit&&(this.lazyInit instanceof J?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(te=>{this.headers.set(te,ae.headers.get(te)),this.normalizedNames.set(te,ae.normalizedNames.get(te))})}clone(ae){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),te}applyUpdate(ae){const te=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let de=ae.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(ae.name,te);const ke=("a"===ae.op?this.headers.get(te):void 0)||[];ke.push(...de),this.headers.set(te,ke);break;case"d":const dt=ae.value;if(dt){let At=this.headers.get(te);if(!At)return;At=At.filter(et=>-1===dt.indexOf(et)),0===At.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,At)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ae(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(ae){return me(ae)}encodeValue(ae){return me(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(Se){return encodeURIComponent(Se).replace(re,(ae,te)=>ie[te]??ae)}function be(Se){return`${Se}`}class Ae{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new ne,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Se,ae){const te=new Map;return Se.length>0&&Se.replace(/^\?/,"").split("&").forEach(ke=>{const dt=ke.indexOf("="),[At,et]=-1==dt?[ae.decodeKey(ke),""]:[ae.decodeKey(ke.slice(0,dt)),ae.decodeValue(ke.slice(dt+1))],ht=te.get(At)||[];ht.push(et),te.set(At,ht)}),te}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(te=>{const de=ae.fromObject[te],ke=Array.isArray(de)?de.map(be):[be(de)];this.map.set(te,ke)})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const te=this.map.get(ae);return te?te[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,te){return this.clone({param:ae,value:te,op:"a"})}appendAll(ae){const te=[];return Object.keys(ae).forEach(de=>{const ke=ae[de];Array.isArray(ke)?ke.forEach(dt=>{te.push({param:de,value:dt,op:"a"})}):te.push({param:de,value:ke,op:"a"})}),this.clone(te)}set(ae,te){return this.clone({param:ae,value:te,op:"s"})}delete(ae,te){return this.clone({param:ae,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const te=this.encoder.encodeKey(ae);return this.map.get(ae).map(de=>te+"="+this.encoder.encodeValue(de)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const te=new Ae({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ae),te}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 te=("a"===ae.op?this.map.get(ae.param):void 0)||[];te.push(be(ae.value)),this.map.set(ae.param,te);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let de=this.map.get(ae.param)||[];const ke=de.indexOf(be(ae.value));-1!==ke&&de.splice(ke,1),de.length>0?this.map.set(ae.param,de):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(ae,te){return this.map.set(ae,te),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 ve(Se){return typeof ArrayBuffer<"u"&&Se instanceof ArrayBuffer}function Me(Se){return typeof Blob<"u"&&Se instanceof Blob}function lt(Se){return typeof FormData<"u"&&Se instanceof FormData}class Oe{constructor(ae,te,de,ke){let dt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Ee(Se){switch(Se){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==de?de:null,dt=ke):dt=de,dt&&(this.reportProgress=!!dt.reportProgress,this.withCredentials=!!dt.withCredentials,dt.responseType&&(this.responseType=dt.responseType),dt.headers&&(this.headers=dt.headers),dt.context&&(this.context=dt.context),dt.params&&(this.params=dt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Ze),this.params){const At=this.params.toString();if(0===At.length)this.urlWithParams=te;else{const et=te.indexOf("?");this.urlWithParams=te+(-1===et?"?":etMn.set(mt,ae.setHeaders[mt]),ht)),ae.setParams&&(Di=Object.keys(ae.setParams).reduce((Mn,mt)=>Mn.set(mt,ae.setParams[mt]),Di)),new Oe(te,de,dt,{params:Di,headers:ht,context:vt,reportProgress:et,responseType:ke,withCredentials:At})}}var Le=(()=>((Le=Le||{})[Le.Sent=0]="Sent",Le[Le.UploadProgress=1]="UploadProgress",Le[Le.ResponseHeader=2]="ResponseHeader",Le[Le.DownloadProgress=3]="DownloadProgress",Le[Le.Response=4]="Response",Le[Le.User=5]="User",Le))();class ue{constructor(ae,te=200,de="OK"){this.headers=ae.headers||new J,this.status=void 0!==ae.status?ae.status:te,this.statusText=ae.statusText||de,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends ue{constructor(ae={}){super(ae),this.type=Le.ResponseHeader}clone(ae={}){return new fe({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 ue{constructor(ae={}){super(ae),this.type=Le.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 _e extends ue{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 ze(Se,ae){return{body:ae,headers:Se.headers,context:Se.context,observe:Se.observe,params:Se.params,reportProgress:Se.reportProgress,responseType:Se.responseType,withCredentials:Se.withCredentials}}let je=(()=>{class Se{constructor(te){this.handler=te}request(te,de,ke={}){let dt;if(te instanceof Oe)dt=te;else{let ht,Di;ht=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(Di=ke.params instanceof Ae?ke.params:new Ae({fromObject:ke.params})),dt=new Oe(te,de,void 0!==ke.body?ke.body:null,{headers:ht,context:ke.context,params:Di,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const At=(0,D.of)(dt).pipe((0,S.b)(ht=>this.handler.handle(ht)));if(te instanceof Oe||"events"===ke.observe)return At;const et=At.pipe((0,P.h)(ht=>ht instanceof Ce));switch(ke.observe||"body"){case"body":switch(dt.responseType){case"arraybuffer":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ht.body}));case"blob":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof Blob))throw new Error("Response is not a Blob.");return ht.body}));case"text":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&"string"!=typeof ht.body)throw new Error("Response is not a string.");return ht.body}));default:return et.pipe((0,L.U)(ht=>ht.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,de={}){return this.request("DELETE",te,de)}get(te,de={}){return this.request("GET",te,de)}head(te,de={}){return this.request("HEAD",te,de)}jsonp(te,de){return this.request("JSONP",te,{params:(new Ae).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,de={}){return this.request("OPTIONS",te,de)}patch(te,de,ke={}){return this.request("PATCH",te,ze(ke,de))}post(te,de,ke={}){return this.request("POST",te,ze(ke,de))}put(te,de,ke={}){return this.request("PUT",te,ze(ke,de))}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(j))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class Ct{constructor(ae,te){this.next=ae,this.interceptor=te}handle(ae){return this.interceptor.intercept(ae,this.next)}}const It=new i.OlP("HTTP_INTERCEPTORS");let ni=(()=>{class Se{intercept(te,de){return de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Ws=/^\)\]\}',?\n/;let $s=(()=>{class Se{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(de=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach(($t,pt)=>ke.setRequestHeader($t,pt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const $t=te.detectContentTypeHeader();null!==$t&&ke.setRequestHeader("Content-Type",$t)}if(te.responseType){const $t=te.responseType.toLowerCase();ke.responseType="json"!==$t?$t:"text"}const dt=te.serializeBody();let At=null;const et=()=>{if(null!==At)return At;const $t=ke.statusText||"OK",pt=new J(ke.getAllResponseHeaders()),Vn=function pd(Se){return"responseURL"in Se&&Se.responseURL?Se.responseURL:/^X-Request-URL:/m.test(Se.getAllResponseHeaders())?Se.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return At=new fe({headers:pt,status:ke.status,statusText:$t,url:Vn}),At},ht=()=>{let{headers:$t,status:pt,statusText:Vn,url:Xr}=et(),Vi=null;204!==pt&&(Vi=typeof ke.response>"u"?ke.responseText:ke.response),0===pt&&(pt=Vi?200:0);let Pr=pt>=200&&pt<300;if("json"===te.responseType&&"string"==typeof Vi){const dr=Vi;Vi=Vi.replace(Ws,"");try{Vi=""!==Vi?JSON.parse(Vi):null}catch(Qn){Vi=dr,Pr&&(Pr=!1,Vi={error:Qn,text:Vi})}}Pr?(de.next(new Ce({body:Vi,headers:$t,status:pt,statusText:Vn,url:Xr||void 0})),de.complete()):de.error(new _e({error:Vi,headers:$t,status:pt,statusText:Vn,url:Xr||void 0}))},Di=$t=>{const{url:pt}=et(),Vn=new _e({error:$t,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:pt||void 0});de.error(Vn)};let vt=!1;const Mn=$t=>{vt||(de.next(et()),vt=!0);let pt={type:Le.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),"text"===te.responseType&&!!ke.responseText&&(pt.partialText=ke.responseText),de.next(pt)},mt=$t=>{let pt={type:Le.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),de.next(pt)};return ke.addEventListener("load",ht),ke.addEventListener("error",Di),ke.addEventListener("timeout",Di),ke.addEventListener("abort",Di),te.reportProgress&&(ke.addEventListener("progress",Mn),null!==dt&&ke.upload&&ke.upload.addEventListener("progress",mt)),ke.send(dt),de.next({type:Le.Sent}),()=>{ke.removeEventListener("error",Di),ke.removeEventListener("abort",Di),ke.removeEventListener("load",ht),ke.removeEventListener("timeout",Di),te.reportProgress&&(ke.removeEventListener("progress",Mn),null!==dt&&ke.upload&&ke.upload.removeEventListener("progress",mt)),ke.readyState!==ke.DONE&&ke.abort()}})}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.JF))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Hr=new i.OlP("XSRF_COOKIE_NAME"),kr=new i.OlP("XSRF_HEADER_NAME");class hs{}let Zs=(()=>{class Se{constructor(te,de,ke){this.doc=te,this.platform=de,this.cookieName=ke,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,C.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.K0),i.LFG(i.Lbi),i.LFG(Hr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ct=(()=>{class Se{constructor(te,de){this.tokenService=te,this.headerName=de}intercept(te,de){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return de.handle(te);const dt=this.tokenService.getToken();return null!==dt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,dt)})),de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(hs),i.LFG(kr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),zi=(()=>{class Se{constructor(te,de){this.backend=te,this.injector=de,this.chain=null}handle(te){if(null===this.chain){const de=this.injector.get(It,[]);this.chain=de.reduceRight((ke,dt)=>new Ct(ke,dt),this.backend)}return this.chain.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(z),i.LFG(i.zs3))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Xi=(()=>{class Se{static disable(){return{ngModule:Se,providers:[{provide:ct,useClass:ni}]}}static withOptions(te={}){return{ngModule:Se,providers:[te.cookieName?{provide:Hr,useValue:te.cookieName}:[],te.headerName?{provide:kr,useValue:te.headerName}:[]]}}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[ct,{provide:It,useExisting:ct,multi:!0},{provide:hs,useClass:Zs},{provide:Hr,useValue:"XSRF-TOKEN"},{provide:kr,useValue:"X-XSRF-TOKEN"}]}),Se})(),zo=(()=>{class Se{}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[je,{provide:j,useClass:zi},$s,{provide:z,useExisting:$s}],imports:[Xi.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Se})()},4650:(Y,U,x)=>{"use strict";x.d(U,{$8M:()=>sc,$Z:()=>fb,AFp:()=>Sg,ALo:()=>aw,AaK:()=>j,AsE:()=>Li,BQk:()=>mm,CHM:()=>gn,CRH:()=>sx,CZH:()=>ed,CqO:()=>$b,D6c:()=>TD,DdM:()=>tw,Dn7:()=>sw,EJc:()=>St,EiD:()=>w_,EpF:()=>Lc,F$t:()=>Xb,F4k:()=>qh,FYo:()=>DA,FiY:()=>ho,G48:()=>hD,Gf:()=>hw,GfV:()=>kA,GkF:()=>Uh,Gpc:()=>Q,Gre:()=>Pm,Hsn:()=>ey,Ikx:()=>lu,JOm:()=>Es,JVY:()=>lA,Jf7:()=>UA,KtG:()=>Or,L6k:()=>cA,LAX:()=>pf,LFG:()=>Pi,LSH:()=>Cf,Lbi:()=>Pw,Lck:()=>HT,MAs:()=>pm,MMx:()=>dp,NdJ:()=>gm,O4$:()=>Yu,OlP:()=>ei,Oqu:()=>ns,PXZ:()=>Sr,Q6J:()=>Pe,QGY:()=>Gh,QP$:()=>as,QbO:()=>Eg,Qsj:()=>EA,R0b:()=>$n,RDi:()=>I,Rgc:()=>Po,SBq:()=>rr,Sil:()=>wp,Suo:()=>pw,TTD:()=>Hi,TgZ:()=>_t,Tol:()=>vm,Udp:()=>Am,VKq:()=>iw,W1O:()=>bg,WFA:()=>_m,WLB:()=>nw,XFs:()=>ct,Xpm:()=>Vn,Xts:()=>vf,Y36:()=>Ac,YKP:()=>ag,YNc:()=>yt,Yjl:()=>ps,Yz7:()=>ri,ZZ4:()=>Kw,_Bn:()=>rg,_UZ:()=>Rc,_Vd:()=>qr,_c5:()=>AD,_uU:()=>ln,aQg:()=>Xw,c2e:()=>Hg,cJS:()=>vi,cg1:()=>Dy,d8E:()=>jc,dDg:()=>Tx,dqk:()=>de,eBb:()=>dA,eFA:()=>Io,ekj:()=>Vc,eoX:()=>Og,f3M:()=>lh,g9A:()=>Dg,h0i:()=>Gc,hGG:()=>vD,hij:()=>Jh,iGM:()=>uw,ifc:()=>te,ip1:()=>Vs,kL8:()=>oT,kcU:()=>zu,lG2:()=>fd,lcZ:()=>gu,lqb:()=>wn,lri:()=>Vw,mCW:()=>Nd,n5z:()=>Ed,n_E:()=>ko,oAB:()=>dr,oJD:()=>C_,oxw:()=>Kb,pB0:()=>m_,q3G:()=>qi,qLn:()=>Mh,qOj:()=>jh,qZA:()=>fm,qzn:()=>ol,rWj:()=>Zr,s9C:()=>bm,sBO:()=>fD,sIi:()=>ru,s_b:()=>yu,soG:()=>kg,tb:()=>bp,tp0:()=>Ss,uIk:()=>Ps,vHH:()=>ie,vpe:()=>Os,wAp:()=>ft,xDo:()=>Qh,xi3:()=>ug,xp6:()=>Bf,ynx:()=>Pn,z2F:()=>Fg,z3N:()=>qa,zSh:()=>cl,zs3:()=>Za});var C=x(7579),i=x(727),D=x(9751),M=x(6451),S=x(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function j(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(j).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 z(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return j(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function me(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function be(p){return"string"==typeof p?p:null==p?"":String(p)}function ve(p,m){throw new ie(-201,!1)}function ni(p,m){null==p&&function Je(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function vi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Kr(p){return ql(p,Hr)||ql(p,hs)}function ql(p,m){return p.hasOwnProperty(m)?p[m]:null}function $s(p){return p&&(p.hasOwnProperty(kr)||p.hasOwnProperty(Zs))?p[kr]:null}const Hr=P({\u0275prov:P}),kr=P({\u0275inj:P}),hs=P({ngInjectableDef:P}),Zs=P({ngInjectorDef:P});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let zi;function Qt(p){const m=zi;return zi=p,m}function Xi(p,m,g){const _=Kr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&ct.Optional?null:void 0!==m?m:void ve(j(p))}function Jn(p){return{toString:p}.toString()}var Wt=(()=>((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),At={},et=[],ht=P({\u0275cmp:P}),Di=P({\u0275dir:P}),vt=P({\u0275pipe:P}),Mn=P({\u0275mod:P}),mt=P({\u0275fac:P}),$t=P({__NG_ELEMENT_ID__:P});let pt=0;function Vn(p){return Jn(()=>{const g=!0===p.standalone,_={},y={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||et,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+pt++,styles:p.styles||et,_:null,setInput:null,schemas:p.schemas||null,tView:null},v=p.dependencies,E=p.features;return y.inputs=ea(p.inputs,_),y.outputs=ea(p.outputs),E&&E.forEach(k=>k(y)),y.directiveDefs=v?()=>("function"==typeof v?v():v).map(Vi).filter(Pr):null,y.pipeDefs=v?()=>("function"==typeof v?v():v).map(Ui).filter(Pr):null,y})}function Vi(p){return ti(p)||Ni(p)}function Pr(p){return null!==p}function dr(p){return Jn(()=>({type:p.type,bootstrap:p.bootstrap||et,declarations:p.declarations||et,imports:p.imports||et,exports:p.exports||et,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ea(p,m){if(null==p)return At;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 fd=Vn;function ps(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function ti(p){return p[ht]||null}function Ni(p){return p[Di]||null}function Ui(p){return p[vt]||null}function Ne(p,m){const g=p[Mn]||null;if(!g&&!0===m)throw new Error(`Type ${j(p)} does not have '\u0275mod' property.`);return g}function mn(p){return Array.isArray(p)&&"object"==typeof p[1]}function jn(p){return Array.isArray(p)&&!0===p[1]}function na(p){return 0!=(8&p.flags)}function Ha(p){return 2==(2&p.flags)}function ka(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function ms(p){return 0!=(256&p[2])}function Ve(p,m){return p.hasOwnProperty(mt)?p[mt]:null}class De{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Hi(){return Go}function Go(p){return p.type.prototype.ngOnChanges&&(p.setInput=Ra),Pa}function Pa(){const p=Ir(this),m=p?.current;if(m){const g=p.previous;if(g===At)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Ra(p,m,g,_){const y=Ir(p)||function hr(p,m){return p[nn]=m}(p,{previous:At,current:null}),v=y.current||(y.current={}),E=y.previous,k=this.declaredInputs[g],R=E[k];v[k]=new De(R&&R.currentValue,m,E===At),p[_]=m}Hi.ngInherit=!0;const nn="__ngSimpleChanges__";function Ir(p){return p[nn]||null}function Qe(p){for(;Array.isArray(p);)p=p[0];return p}function fr(p,m){return Qe(m[p])}function Et(p,m){return Qe(m[p.index])}function er(p,m){return p.data[m]}function En(p,m){return p[m]}function Bt(p,m){const g=m[p];return mn(g)?g:g[0]}function O(p){return 4==(4&p[2])}function q(p){return 64==(64&p[2])}function $(p,m){return null==m?null:p[m]}function ce(p){p[18]=0}function ye(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 ge={lFrame:no(null),bindingsEnabled:!0};function at(){return ge.bindingsEnabled}function xe(){return ge.lFrame.lView}function Ht(){return ge.lFrame.tView}function gn(p){return ge.lFrame.contextLView=p,p[8]}function Or(p){return ge.lFrame.contextLView=null,p}function xi(){let p=La();for(;null!==p&&64===p.type;)p=p.parent;return p}function La(){return ge.lFrame.currentTNode}function Xt(p,m){const g=ge.lFrame;g.currentTNode=p,g.isParent=m}function mr(){return ge.lFrame.isParent}function _s(){ge.lFrame.isParent=!1}function yn(){const p=ge.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Br(){return ge.lFrame.bindingIndex}function bs(){return ge.lFrame.bindingIndex++}function gr(p){const m=ge.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Vt(p,m){const g=ge.lFrame;g.bindingIndex=g.bindingRootIndex=p,wd(m)}function wd(p){ge.lFrame.currentDirectiveIndex=p}function aa(p){const m=ge.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function Fu(){return ge.lFrame.currentQueryIndex}function Oa(p){ge.lFrame.currentQueryIndex=p}function Cd(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ju(p,m,g){if(g&ct.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&ct.Host||(y=Cd(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=ge.lFrame=sa();return _.currentTNode=m,_.lView=p,!0}function io(p){const m=sa(),g=p[1];ge.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function sa(){const p=ge.lFrame,m=null===p?null:p.child;return null===m?no(p):m}function no(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 ys(){const p=ge.lFrame;return ge.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Nu=ys;function ro(){const p=ys();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 an(){return ge.lFrame.selectedIndex}function Vr(p){ge.lFrame.selectedIndex=p}function ki(){const p=ge.lFrame;return er(p.tView,p.selectedIndex)}function Yu(){ge.lFrame.currentNamespace="svg"}function zu(){!function jp(){ge.lFrame.currentNamespace=null}()}function Kl(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:F,ngOnDestroy:G}=v;E&&(p.contentHooks||(p.contentHooks=[])).push(-g,E),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=G&&(p.destroyHooks||(p.destroyHooks=[])).push(g,G)}}function ao(p,m,g){Ba(p,m,3,g)}function ws(p,m,g,_){(3&p[2])===g&&Ba(p,m,g,_)}function Xl(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ba(p,m,g,_){const v=_??-1,E=m.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<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 _r{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function oa(p,m,g){let _=0;for(;_m){E=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let vd=!0;function Zo(p){const m=vd;return vd=p,m}let la=0;const Yn={};function Jo(p,m){const g=xd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Td(_.data,p),Td(m,null),Td(_.blueprint,null));const y=tc(p,m),v=p.injectorIndex;if(ec(y)){const E=jr(y),k=Fa(y,m),R=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[E+F]|R[E+F]}return m[v+8]=y,v}function Td(p,m){p.push(0,0,0,0,0,0,0,0,m)}function xd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function tc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=zn(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ic(p,m,g){!function Ju(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty($t)&&(_=g[$t]),null==_&&(_=g[$t]=la++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lo:m}(g);if("function"==typeof v){if(!ju(m,p,_))return _&ct.Host?Md(y,0,_):Sd(m,g,_,y);try{const E=v(_);if(null!=E||_&ct.Optional)return E;ve()}finally{Nu()}}else if("number"==typeof v){let E=null,k=xd(p,m),R=-1,F=_&ct.Host?m[16][6]:null;for((-1===k||_&ct.SkipSelf)&&(R=-1===k?tc(p,m):m[k+8],-1!==R&&rc(_,!1)?(E=m[1],k=jr(R),m=Fa(R,m)):k=-1);-1!==k;){const G=m[1];if(Ko(v,k,G.data)){const X=nc(k,m,g,E,_,F);if(X!==Yn)return X}R=m[k+8],-1!==R&&rc(_,m[1].data[k+8]===F)&&Ko(v,k,m)?(E=G,k=jr(R),m=Fa(R,m)):k=-1}}return y}function nc(p,m,g,_,y,v){const E=m[1],k=E.data[p+8],G=oo(k,E,g,null==_?Ha(k)&&vd:_!=E&&0!=(3&k.type),y&ct.Host&&v===k);return null!==G?Yr(m,E,G,k):Yn}function oo(p,m,g,_,y){const v=p.providerIndexes,E=m.data,k=1048575&v,R=p.directiveStart,G=v>>20,oe=y?k+G:p.directiveEnd;for(let pe=_?k:k+G;pe=R&&Te.type===g)return pe}if(y){const pe=E[R];if(pe&&Nn(pe)&&pe.type===g)return R}return null}function Yr(p,m,g,_){let y=p[g];const v=m.data;if(function Uu(p){return p instanceof _r}(y)){const E=y;E.resolving&&function $e(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function Ae(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():be(p)}(v[g]));const k=Zo(E.canSeeViewProviders);E.resolving=!0;const R=E.injectImpl?Qt(E.injectImpl):null;ju(p,_,ct.Default);try{y=p[g]=E.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Yp(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const E=Go(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,E),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,E)}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!==R&&Qt(R),Zo(k),E.resolving=!1,Nu()}}return y}function Ko(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[mt]||ac(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[mt]||ac(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function ac(p){return le(p)?()=>{const m=ac(ne(p));return m&&m()}:Ve(p)}function zn(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function sc(p){return function Qu(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(Wu(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}(xi(),p)}const ca="__parameters__";function ja(p,m,g){return Jn(()=>{const _=function lc(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 E=new y(...v);return k.annotation=E,k;function k(R,F,G){const X=R.hasOwnProperty(ca)?R[ca]:Object.defineProperty(R,ca,{value:[]})[ca];for(;X.length<=G;)X.push(null);return(X[G]=X[G]||[]).push(E),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class ei{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=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function tr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?Na(g,m):m(g))}function th(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Pd(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ts(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ef(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 Ld(p,m){const g=uo(p,m);if(g>=0)return p[1|g]}function uo(p,m){return function il(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),E=p[v<m?y=v:_=v+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return W}()?.createHTML(p)||p}function pa(p){return function nr(){if(void 0===Gi&&(Gi=null,de.trustedTypes))try{Gi=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Gi}()?.createHTML(p)||p}class sl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rA extends sl{getTypeName(){return"HTML"}}class aA extends sl{getTypeName(){return"Style"}}class sA extends sl{getTypeName(){return"Script"}}class f_ extends sl{getTypeName(){return"URL"}}class hf extends sl{getTypeName(){return"ResourceURL"}}function qa(p){return p instanceof sl?p.changingThisBreaksApplicationSecurity:p}function ol(p,m){const g=function oA(p){return p instanceof sl&&p.getTypeName()||null}(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 lA(p){return new rA(p)}function cA(p){return new aA(p)}function dA(p){return new sA(p)}function pf(p){return new f_(p)}function m_(p){return new hf(p)}class ff{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class uA{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=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Nd(m.trim())).join(", ")),this.buf.push(" ",E,'="',yf(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();_f.hasOwnProperty(g)&&!Ri.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 h0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y_=/([^\#-~ |!])/g;function yf(p){return p.replace(/&/g,"&").replace(h0,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(y_,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let yh;function w_(p,m){let g=null;try{yh=yh||function gh(p){const m=new uA(p);return function hA(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new ff(m):m}(p);let _=m?String(m):"";g=yh.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=yh.getInertBodyElement(_)}while(_!==v);return we((new fo).sanitizeChildren(wf(g)||g))}finally{if(g){const _=wf(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function wf(p){return"content"in p&&function wh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var qi=(()=>((qi=qi||{})[qi.NONE=0]="NONE",qi[qi.HTML=1]="HTML",qi[qi.STYLE=2]="STYLE",qi[qi.SCRIPT=3]="SCRIPT",qi[qi.URL=4]="URL",qi[qi.RESOURCE_URL=5]="RESOURCE_URL",qi))();function C_(p){const m=Yd();return m?pa(m.sanitize(qi.HTML,p)||""):ol(p,"HTML")?pa(qa(p)):w_(function N(){return void 0!==H?H:typeof document<"u"?document:void 0}(),be(p))}function Cf(p){const m=Yd();return m?m.sanitize(qi.URL,p)||"":ol(p,"URL")?qa(p):Nd(be(p))}function Yd(){const p=xe();return p&&p[12]}const vf=new ei("ENVIRONMENT_INITIALIZER"),x_=new ei("INJECTOR",-1),wA=new ei("INJECTOR_DEF_TYPES");class Ch{get(m,g=nl){if(g===nl){const _=new Error(`NullInjectorError: No provider for ${j(m)}!`);throw _.name="NullInjectorError",_}return g}}function Mi(...p){return{\u0275providers:CA(0,p)}}function CA(p,...m){const g=[],_=new Set;let y;return Na(m,v=>{const E=v;Ah(E,g,[],_)&&(y||(y=[]),y.push(E))}),void 0!==y&&ll(y,g),g}function ll(p,m){for(let g=0;g{m.push(v)})}}function Ah(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,v=$s(p);const E=!v&&ti(p);if(v||E){if(E&&!E.standalone)return!1;y=p}else{const R=p.ngModule;if(v=$s(R),!v)return!1;y=R}const k=_.has(y);if(E){if(k)return!1;if(_.add(y),E.dependencies){const R="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const F of R)Ah(F,m,g,_)}}else{if(!v)return!1;{if(null!=v.imports&&!k){let F;_.add(y);try{Na(v.imports,G=>{Ah(G,m,g,_)&&(F||(F=[]),F.push(G))})}finally{}void 0!==F&&ll(F,m)}if(!k){const F=Ve(y)||(()=>new y);m.push({provide:y,useFactory:F,deps:et},{provide:wA,useValue:y,multi:!0},{provide:vf,useValue:()=>Pi(y),multi:!0})}const R=v.providers;null==R||k||Na(R,G=>{m.push(G)})}}return y!==p&&void 0!==p.providers}const zd=P({provide:String,useValue:P});function Tf(p){return null!==p&&"object"==typeof p&&zd in p}function yr(p){return"function"==typeof p}const cl=new ei("Set Injector scope."),mc={},vA={};let gc;function Ds(){return void 0===gc&&(gc=new Ch),gc}class wn{}class vh extends wn{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,E_(m,E=>this.processProvider(E)),this.records.set(x_,Wi(void 0,this)),y.has("environment")&&this.records.set(wn,Wi(void 0,this));const v=this.records.get(cl);null!=v&&"string"==typeof v.value&&this.scopes.add(v.value),this.injectorDefTypes=new Set(this.get(wA.multi,et,ct.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=da(this),_=Qt(void 0);try{return m()}finally{da(g),Qt(_)}}get(m,g=nl,_=ct.Default){this.assertNotDestroyed();const y=da(this),v=Qt(void 0);try{if(!(_&ct.SkipSelf)){let k=this.records.get(m);if(void 0===k){const R=function SA(p){return"function"==typeof p||"object"==typeof p&&p instanceof ei}(m)&&Kr(m);k=R&&this.injectableDefInScope(R)?Wi(S_(m),mc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&ct.Self?Ds():this.parent).get(m,g=_&ct.Optional&&g===nl?null:g)}catch(E){if("NullInjectorError"===E.name){if((E[ir]=E[ir]||[]).unshift(j(m)),y)throw E;return function af(p,m,g,_){const y=p[ir];throw m[sh]&&y.unshift(m[sh]),p.message=function sf(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=j(m);if(Array.isArray(m))y=m.map(j).join(" -> ");else if("object"==typeof m){let v=[];for(let E in m)if(m.hasOwnProperty(E)){let k=m[E];v.push(E+":"+("string"==typeof k?JSON.stringify(k):j(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(ah,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ir]=null,p}(E,m,"R3InjectorError",this.source)}throw E}finally{Qt(v),da(y)}}resolveInjectorInitializers(){const m=da(this),g=Qt(void 0);try{const _=this.get(vf.multi,et,ct.Self);for(const y of _)y()}finally{da(m),Qt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(j(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=yr(m=ne(m))?m:ne(m&&m.provide);const _=function D_(p){return Tf(p)?Wi(void 0,p.useValue):Wi(TA(p),mc)}(m);if(yr(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Wi(void 0,mc,!0),y.factory=()=>br(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===mc&&(g.value=vA,g.value=g.factory()),"object"==typeof g.value&&g.value&&function MA(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function S_(p){const m=Kr(p),g=null!==m?m.factory:Ve(p);if(null!==g)return g;if(p instanceof ei)throw new ie(204,!1);if(p instanceof Function)return function xf(p){const m=p.length;if(m>0)throw Ts(m,"?"),new ie(204,!1);const g=function Ws(p){const m=p&&(p[Hr]||p[hs]);if(m){const g=function pd(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 ie(204,!1)}function TA(p,m,g){let _;if(yr(p)){const y=ne(p);return Ve(y)||S_(y)}if(Tf(p))_=()=>ne(p.useValue);else if(function Ud(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...br(p.deps||[]));else if(function fa(p){return!(!p||!p.useExisting)}(p))_=()=>Pi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function xA(p){return!!p.deps}(p))return Ve(y)||S_(y);_=()=>new y(...br(p.deps))}return _}function Wi(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function f0(p){return!!p.\u0275providers}function E_(p,m){for(const g of p)Array.isArray(g)?E_(g,m):f0(g)?E_(g.\u0275providers,m):m(g)}class Cn{}class xh{resolveComponentFactory(m){throw function Th(p){const m=Error(`No component factory found for ${j(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let qr=(()=>{class p{}return p.NULL=new xh,p})();function $a(){return wr(xi(),xe())}function wr(p,m){return new rr(Et(p,m))}let rr=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=$a,p})();function m0(p){return p instanceof rr?p.nativeElement:p}class DA{}let EA=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function HA(){const p=xe(),g=Bt(xi().index,p);return(mn(g)?g:p)[11]}(),p})(),g0=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class kA{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const _0=new kA("14.1.2"),H_={};function O_(p){return p.ngOriginalError}class Mh{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&O_(m);for(;g&&O_(g);)g=O_(g);return g||null}}const B_=new Map;let H0=0;const F_="__ngContext__";function Un(p,m){mn(m)?(p[F_]=m[20],function P0(p){B_.set(p[20],p)}(m)):p[F_]=m}function Sh(p){const m=p[F_];return"number"==typeof m?function BA(p){return B_.get(p)||null}(m):m||null}function j_(p){const m=Sh(p);return m?mn(m)?m:m.lView:null}const F0=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function UA(p){return p.ownerDocument.defaultView}function go(p){return p instanceof Function?p():p}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function Y_(p,m){return undefined(p,m)}function Dh(p){const m=p[3];return jn(m)?m[3]:m}function z_(p){return $A(p[13])}function U_(p){return $A(p[4])}function $A(p){for(;null!==p&&!jn(p);)p=p[4];return p}function Wd(p,m,g,_,y){if(null!=_){let v,E=!1;jn(_)?v=_:mn(_)&&(E=!0,_=_[0]);const k=Qe(_);0===p&&null!==g?null==y?Fe(m,g,k):Ke(m,g,k,y||null,!0):1===p&&null!==g?Ke(m,g,k,y||null,!0):2===p?function K_(p,m,g){const _=ji(p,m);_&&function Z_(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,k,E):3===p&&m.destroyNode(k),null!=v&&function tb(p,m,g,_,y){const v=g[7];v!==Qe(g)&&Wd(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Pd(p,10+m);!function $0(p,m){yc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const E=v[19];null!==E&&E.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $i(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&yc(p,m,g,3,null,null),function Q0(p){let m=p[13];if(!m)return dl(p[1],p);for(;m;){let g=null;if(mn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)mn(m)&&dl(m[1],m),m=m[3];null===m&&(m=p),mn(m)&&dl(m[1],m),g=m&&m[4]}m=g}}(m)}}function dl(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function ul(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const E=_[y=g[v+1]];g[v].call(E)}if(null!==_){for(let v=y+1;v<_.length;v++)(0,_[v])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&jn(m[3])){g!==m[3]&&JA(g,m);const _=m[19];null!==_&&_.detachView(p)}!function VA(p){B_.delete(p[20])}(m)}}function W_(p,m,g){return function $_(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===te.None||y===te.Emulated)return null}return Et(_,g)}(p,m.parent,g)}function Ke(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Fe(p,m,g){p.appendChild(m,g)}function Fi(p,m,g,_,y){null!==_?Ke(p,m,g,_,y):Fe(p,m,g)}function ji(p,m){return p.parentNode(m)}function J_(p,m,g){return Q_(p,m,g)}let Q_=function Hf(p,m,g){return 40&p.type?Et(p,g):null};function kf(p,m,g,_){const y=W_(p,_,m),v=m[11],k=J_(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[X+1].toLowerCase();const pe=8&_?oe:null;if(pe&&-1!==KA(pe,F,0)||2&_&&F!==oe){if(Wr(_))return!1;E=!0}}}}else{if(!E&&!Wr(_)&&!Wr(R))return!1;if(E&&Wr(R))continue;E=!1,_=R|1&_}}return Wr(_)||E}function Wr(p){return 0==(1&p)}function ev(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+="."+E:4&_&&(y+=" "+E);else""!==y&&!Wr(E)&&(m+=rb(v,y),y=""),_=E,v=v||!Wr(_);g++}return""!==y&&(m+=rb(v,y)),m}const kt={};function Bf(p){Vf(Ht(),xe(),an()+p,!1)}function Vf(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&ao(m,v,g)}else{const v=p.preOrderHooks;null!==v&&ws(m,v,0,g)}Vr(g)}function lv(p,m=null,g=null,_){const y=cv(p,m,g,_);return y.resolveInjectorInitializers(),y}function cv(p,m=null,g=null,_,y=new Set){const v=[g||et,Mi(p)];return _=_||("object"==typeof p?void 0:j(p)),new vh(v,m||Ds(),_||null,y)}let Za=(()=>{class p{static create(g,_){if(Array.isArray(g))return lv({name:""},_,g,"");{const y=g.name??"";return lv({name:y},g.parent,g.providers,y)}}}return p.THROW_IF_NOT_FOUND=nl,p.NULL=new Ch,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Pi(x_)}),p.__NG_ELEMENT_ID__=-1,p})();function Ac(p,m=ct.Default){const g=xe();return null===g?Pi(p,m):Qo(xi(),g,ne(p),m)}function fb(){throw new Error("invalid")}function Ph(p,m){return p<<17|m<<2}function ma(p){return p>>17&32767}function ot(p){return 2|p}function bo(p){return(131068&p)>>2}function gb(p,m){return-131069&p|m<<2}function sr(p){return 1|p}function Qf(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Vf(p,m,22,!1),g(_,y)}finally{Vr(v)}}function _a(p,m,g){if(na(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)!=R&&k.push(R),k.push(_,y,E)}}function Lb(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Ib(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Bh(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&Vb(g)}}function Vb(p){for(let _=z_(p);null!==_;_=U_(_))for(let y=10;y<_.length;y++){const v=_[y];if(q(v))if(512&v[2]){const E=v[1];iu(E,v,E.template,v[8])}else v[5]>0&&Vb(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Vb(y)}}function yS(p,m){const g=Bt(m,p),_=g[1];(function Ov(p,m){for(let g=m.length;gPromise.resolve(null))();function Fv(p){return p[7]||(p[7]=[])}function jv(p){return p.cleanup||(p.cleanup=[])}function Ka(p,m,g){return(null===p||Nn(p))&&(g=function Dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function _l(p,m){const g=p[9],_=g?g.get(Mh,null):null;_&&_.handleError(m)}function Nb(p,m,g,_,y){for(let v=0;v-1&&(Sf(m,_),Pd(g,_))}this._attachedToViewContainer=!1}$i(this._lView[1],this._lView)}onDestroy(m){im(this._lView[1],this._lView,null,m)}markForCheck(){gl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Fb(p,m,g){const _=m[10];_.begin&&_.begin();try{iu(p,m,p.template,g)}catch(y){throw _l(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function J0(p,m){yc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class CS extends Fh{constructor(m){super(m),this._view=m}detectChanges(){Vv(this._view)}checkNoChanges(){}get context(){return null}}class nu extends qr{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ti(m);return new yl(g,this.ngModule)}}function bl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class Nv{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,H_,_);return y!==H_||g===H_?y:this.parentInjector.get(m,g,_)}}class yl extends Cn{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function rv(p){return p.map(nv).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return bl(this.componentDef.inputs)}get outputs(){return bl(this.componentDef.outputs)}create(m,g,_,y){let v=(y=y||this.ngModule)instanceof wn?y:y?.injector;v&&null!==this.componentDef.getStandaloneInjector&&(v=this.componentDef.getStandaloneInjector(v)||v);const E=v?new Nv(m,v):m,k=E.get(DA,null);if(null===k)throw new ie(407,!1);const R=E.get(g0,null),F=k.createRenderer(null,this.componentDef),G=this.componentDef.selectors[0][0]||"div",X=_?function Qa(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(F,_,this.componentDef.encapsulation):q_(k.createRenderer(null,this.componentDef),G,function Co(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(G)),oe=this.componentDef.onPush?288:272,pe=function SS(p,m){return{components:[],scheduler:p||F0,clean:wS,playerHandler:m||null,flags:0}}(),Te=tm(0,null,null,1,0,null,null,null,null,null),Ie=Lh(null,Te,pe,oe,null,null,k,F,R,E,null);let qe,Xe;io(Ie);try{const bt=function MS(p,m,g,_,y,v){const E=g[1];g[22]=p;const R=Sc(E,22,2,"#host",null),F=R.mergedAttrs=m.hostAttrs;null!==F&&(sm(R,F,!0),null!==p&&(oa(y,p,F),null!==R.classes&&wc(y,p,R.classes),null!==R.styles&&ib(y,p,R.styles)));const G=_.createRenderer(p,m),X=Lh(g,em(m),null,m.onPush?32:16,g[22],R,_,G,v||null,null,null);return E.firstCreatePass&&(ic(Jo(R,g),E,m.type),Ib(E,R),Ob(R,g.length,1)),yo(g,X),g[22]=X}(X,this.componentDef,Ie,k,F);if(X)if(_)oa(F,X,["ng-version",_0.full]);else{const{attrs:He,classes:ut}=function av(p){const m=[],g=[];let _=1,y=2;for(;_0&&wc(F,X,ut.join(" "))}if(Xe=er(Te,22),void 0!==g){const He=Xe.projection=[];for(let ut=0;ut=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=$o(y.hostAttrs,g=$o(g,y.hostAttrs))}}(_)}function Yb(p){return p===At?{}:p===et?[]:p}function zv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function zb(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function lm(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let vo=null;function Ec(){if(!vo){const p=de.Symbol;if(p&&p.iterator)vo=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(Qe(qt[_.index])):_.index;let ut=null;if(!k&&R&&(ut=function Zv(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof E&&(v+=2)}return null}(p,m,y,_.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=v,ut.__ngLastListenerFn__=v,pe=!1;else{v=Qb(_,m,X,v,!1);const qt=g.listen(Xe,y,v);oe.push(v,qt),G&&G.push(y,He,bt,bt+1)}}else v=Qb(_,m,X,v,!1);const Te=_.outputs;let Ie;if(pe&&null!==Te&&(Ie=Te[y])){const qe=Ie.length;if(qe)for(let Xe=0;Xe0;)m=m[15],p--;return m}(p,ge.lFrame.contextLView))[8]}(p)}function Jv(p,m){let g=null;const _=function eS(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 wa(p){return p.substring(pn.key,pn.keyEnd)}function Xv(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function cy(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Oc(p,m,g))}function Oc(p,m,g){for(;m=0;g=Xv(m,g))kn(p,wa(m),!0)}function is(p,m,g,_){const y=xe(),v=Ht(),E=gr(2);v.firstUpdatePass&&hy(v,p,E,_),m!==kt&&on(y,E,m)&&gy(v,v.data[an()],y,y[11],p,y[E+1]=function Mo(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=j(qa(p)))),p}(m,g),_,E)}function Tr(p,m,g,_){const y=Ht(),v=gr(2);y.firstUpdatePass&&hy(y,null,v,_);const E=xe();if(g!==kt&&on(E,v,g)){const k=y.data[an()];if(xm(k,_)&&!Fc(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=z(R,g||"")),Mt(y,k,E,g,_)}else!function iT(p,m,g,_,y,v,E,k){y===kt&&(y=et);let R=0,F=0,G=0=p.expandoStartIndex}function hy(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[an()],E=Fc(p,g);xm(v,_)&&null===m&&!E&&(m=!1),m=function tT(p,m,g,_){const y=aa(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=ou(g=Tn(null,p,m,g,_),m.attrs,_),v=null);else{const E=m.directiveStylingLast;if(-1===E||p[E]!==y)if(g=Tn(y,p,m,g,_),null===v){let R=function Tm(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==bo(_))return p[ma(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=Tn(null,p,m,R[1],_),R=ou(R,m.attrs,_),function py(p,m,g,_){p[ma(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function xl(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else G=g;if(y)if(0!==R){const oe=ma(p[k+1]);p[_+1]=Ph(oe,k),0!==oe&&(p[oe+1]=gb(p[oe+1],_)),p[k+1]=function gv(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=Ph(k,0),0!==k&&(p[k+1]=gb(p[k+1],_)),k=_;else p[_+1]=Ph(R,0),0===k?k=_:p[R+1]=gb(p[R+1],_),R=_;F&&(p[_+1]=ot(p[_+1])),sy(p,G,_,!0),sy(p,G,_,!1),function PS(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&uo(v,m)>=0&&(g[_+1]=sr(g[_+1]))}(m,G,p,_,v),E=Ph(k,R),v?m.classBindings=E:m.styleBindings=E}(y,v,m,g,E,_)}}function Tn(p,m,g,_,y){let v=null;const E=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],F=Array.isArray(R),G=F?R[1]:R,X=null===G;let oe=g[y+1];oe===kt&&(oe=X?et:void 0);let pe=X?Ld(oe,_):G===_?oe:void 0;if(F&&!Zh(pe)&&(pe=Ld(R,_)),Zh(pe)&&(k=pe,E))return k;const Te=p[y+1];y=E?ma(Te):bo(Te)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(k=Ld(R,_))}return k}function Zh(p){return void 0!==p}function xm(p,m){return 0!=(p.flags&(m?16:32))}function ln(p,m=""){const g=xe(),_=Ht(),y=p+22,v=_.firstCreatePass?Sc(_,y,1,m,null):_.data[y],E=g[y]=function G_(p,m){return p.createText(m)}(g[11],m);kf(_,g,E,v),Xt(v,!1)}function ns(p){return Jh("",p,""),ns}function Jh(p,m,g){const _=xe(),y=Cl(_,p,m,g);return y!==kt&&wo(_,an(),y),Jh}function Li(p,m,g,_,y){const v=xe(),E=function au(p,m,g,_,y,v){const k=xo(p,Br(),g,y);return gr(2),k?m+be(g)+_+be(y)+v:kt}(v,p,m,g,_,y);return E!==kt&&wo(v,an(),E),Li}function Qh(p,m,g,_,y,v,E,k,R,F,G){const X=xe(),oe=Hc(X,p,m,g,_,y,v,E,k,R,F,G);return oe!==kt&&wo(X,an(),oe),Qh}function Pm(p,m,g){Tr(kn,si,Cl(xe(),p,m,g),!0)}function lu(p,m,g){const _=xe();return on(_,bs(),m)&&vn(Ht(),ki(),_,p,m,_[11],g,!0),lu}function jc(p,m,g){const _=xe();if(on(_,bs(),m)){const v=Ht(),E=ki();vn(v,E,_,p,m,Ka(aa(v.data),E,_),g,!0)}return jc}const Ml=void 0;var sT=["en",[["a","p"],["AM","PM"],Ml],[["AM","PM"],Ml,Ml],[["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"]],Ml,[["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"]],Ml,[["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}",Ml,"{1} 'at' {0}",Ml],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jm(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let cu={};function Dy(p){const m=function Ey(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=lT(m);if(g)return g;const _=m.split("-")[0];if(g=lT(_),g)return g;if("en"===_)return sT;throw new ie(701,!1)}function oT(p){return Dy(p)[ft.PluralCase]}function lT(p){return p in cu||(cu[p]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[p]),cu[p]}var ft=(()=>((ft=ft||{})[ft.LocaleId=0]="LocaleId",ft[ft.DayPeriodsFormat=1]="DayPeriodsFormat",ft[ft.DayPeriodsStandalone=2]="DayPeriodsStandalone",ft[ft.DaysFormat=3]="DaysFormat",ft[ft.DaysStandalone=4]="DaysStandalone",ft[ft.MonthsFormat=5]="MonthsFormat",ft[ft.MonthsStandalone=6]="MonthsStandalone",ft[ft.Eras=7]="Eras",ft[ft.FirstDayOfWeek=8]="FirstDayOfWeek",ft[ft.WeekendRange=9]="WeekendRange",ft[ft.DateFormat=10]="DateFormat",ft[ft.TimeFormat=11]="TimeFormat",ft[ft.DateTimeFormat=12]="DateTimeFormat",ft[ft.NumberSymbols=13]="NumberSymbols",ft[ft.NumberFormats=14]="NumberFormats",ft[ft.CurrencyCode=15]="CurrencyCode",ft[ft.CurrencySymbol=16]="CurrencySymbol",ft[ft.CurrencyName=17]="CurrencyName",ft[ft.Currencies=18]="Currencies",ft[ft.Directionality=19]="Directionality",ft[ft.PluralCase=20]="PluralCase",ft[ft.ExtraData=21]="ExtraData",ft))();const Nc="en-US";let tp=Nc;function ig(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let v=0;v>20;if(yr(p)||!p.multi){const pe=new _r(R,y,Ac),Te=ng(k,m,y?G:G+oe,X);-1===Te?(ic(Jo(F,E),v,k),$y(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),E.push(pe)):(g[Te]=pe,E[Te]=pe)}else{const pe=ng(k,m,G+oe,X),Te=ng(k,m,G,G+oe),Ie=pe>=0&&g[pe],qe=Te>=0&&g[Te];if(y&&!qe||!y&&!Ie){ic(Jo(F,E),v,k);const Xe=function ET(p,m,g,_,y){const v=new _r(p,g,Ac);return v.multi=[],v.index=m,v.componentProviders=0,cp(v,y,_&&!g),v}(y?Jy:Zy,g.length,y,_,R);!y&&qe&&(g[Te].providerFactory=Xe),$y(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(Xe),E.push(Xe)}else $y(v,p,pe>-1?pe:Te,cp(g[y?Te:pe],R,!y&&_));!y&&_&&qe&&g[Te].componentProviders++}}}function $y(p,m,g,_){const y=yr(m),v=function M_(p){return!!p.useClass}(m);if(y||v){const R=(v?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const G=F.indexOf(g);-1===G?F.push(g,[_,R]):F[G+1].push(_,R)}else F.push(g,R)}}}function cp(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function ng(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Zy(p,m,g,_){return Is(this.multi,[])}function Jy(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const E=this.providerFactory.componentProviders,k=Yr(g,g[1],this.providerFactory.index,_);v=k.slice(0,E),Is(y,v);for(let R=E;R{g.providersResolver=(_,y)=>function Wy(p,m,g){const _=Ht();if(_.firstCreatePass){const y=Nn(p);ig(g,_.data,_.blueprint,y,!0),ig(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class Gc{}class ag{}function HT(p,m){return new rs(p,m??null)}class rs extends Gc{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nu(this);const _=Ne(m);this._bootstrapComponents=go(_.bootstrap),this._r3Injector=cv(m,g,[{provide:Gc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],j(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class qc extends ag{constructor(m){super(),this.moduleType=m}create(m){return new rs(this.moduleType,m)}}class kT extends Gc{constructor(m,g,_){super(),this.componentFactoryResolver=new nu(this),this.instance=null;const y=new vh([...m,{provide:Gc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],g||Ds(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function dp(p,m,g=null){return new kT(p,m,g).injector}function tw(p,m,g){const _=yn()+p,y=xe();return y[_]===kt?es(y,_,g?m.call(g):m()):function To(p,m){return p[m]}(y,_)}function iw(p,m,g,_){return zT(xe(),yn(),p,m,g,_)}function nw(p,m,g,_,y){return UT(xe(),yn(),p,m,g,_,y)}function up(p,m){const g=p[m];return g===kt?void 0:g}function zT(p,m,g,_,y,v){const E=m+g;return on(p,E,y)?es(p,E+1,v?_.call(v,y):_(y)):up(p,E+1)}function UT(p,m,g,_,y,v,E){const k=m+g;return xo(p,k,y,v)?es(p,k+2,E?_.call(E,y,v):_(y,v)):up(p,k+2)}function dg(p,m,g,_,y,v,E,k){const R=m+g;return function Yh(p,m,g,_,y){const v=xo(p,m,g,_);return on(p,m+2,y)||v}(p,R,y,v,E)?es(p,R+3,k?_.call(k,y,v,E):_(y,v,E)):up(p,R+3)}function aw(p,m){const g=Ht();let _;const y=p+22;g.firstCreatePass?(_=function GT(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=Ve(_.type)),E=Qt(Ac);try{const k=Zo(!1),R=v();return Zo(k),function zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,xe(),y,R),R}finally{Qt(E)}}function gu(p,m,g){const _=p+22,y=xe(),v=En(y,_);return _u(y,_)?zT(y,yn(),m,v.transform,g,v):v.transform(g)}function ug(p,m,g,_){const y=p+22,v=xe(),E=En(v,y);return _u(v,y)?UT(v,yn(),m,E.transform,g,_,E):E.transform(g,_)}function sw(p,m,g,_,y){const v=p+22,E=xe(),k=En(E,v);return _u(E,v)?dg(E,yn(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function _u(p,m){return p[1].data[m].pure}function hg(p){return m=>{setTimeout(p,void 0,m)}}const Os=class ZT extends C.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,v=g||(()=>null),E=_;if(m&&"object"==typeof m){const R=m;y=R.next?.bind(R),v=R.error?.bind(R),E=R.complete?.bind(R)}this.__isAsync&&(v=hg(v),y&&(y=hg(y)),E&&(E=hg(E)));const k=super.subscribe({next:y,error:v,complete:E});return m instanceof i.w0&&m.add(k),k}};function JT(){return this._results[Ec()]()}class ko{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=Ec(),_=ko.prototype;_[g]||(_[g]=JT)}get changes(){return this._changes||(this._changes=new Os)}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=tr(m);(this._changesDetected=!function eh(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=$S,p})();const QT=Po,KT=class extends QT{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Lh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(y[19]=E.createEmbeddedView(_)),Ih(_,y,m),new Fh(y)}};function $S(){return bu(xi(),xe())}function bu(p,m){return 4&p.type?new KT(m,p,wr(p,m)):null}let yu=(()=>{class p{}return p.__NG_ELEMENT_ID__=XT,p})();function XT(){return lw(xi(),xe())}const ZS=yu,pg=class extends ZS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){const m=tc(this._hostTNode,this._hostLView);if(ec(m)){const g=Fa(m,this._hostLView),_=jr(m);return new Hn(g[1].data[_+8],g)}return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=ow(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,v;"number"==typeof _?y=_:null!=_&&(y=_.index,v=_.injector);const E=m.createEmbeddedView(g||{},v);return this.insert(E,y),E}createComponent(m,g,_,y,v){const E=m&&!function tl(p){return"function"==typeof p}(m);let k;if(E)k=g;else{const X=g||{};k=X.index,_=X.injector,y=X.projectableNodes,v=X.environmentInjector||X.ngModuleRef}const R=E?m:new yl(ti(m)),F=_||this.parentInjector;if(!v&&null==R.ngModule){const oe=(E?F:this.parentInjector).get(wn,null);oe&&(v=oe)}const G=R.create(F,y,void 0,v);return this.insert(G.hostView,k),G}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return jn(p[3])}(_)){const G=this.indexOf(m);if(-1!==G)this.detach(G);else{const X=_[3],oe=new pg(X,X[6],X[3]);oe.detach(oe.indexOf(m))}}const v=this._adjustIndex(g),E=this._lContainer;!function K0(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(E[k/2]);else{const F=v[k+1],G=m[-R];for(let X=10;X{class p{constructor(g){this.appInits=g,this.resolve=Tu,this.reject=Tu,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(E)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Pi(Vs,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Sg=new ei("AppId",{providedIn:"root",factory:function xu(){return`${td()}${td()}${td()}`}});function td(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dg=new ei("Platform Initializer"),Pw=new ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bp=new ei("appBootstrapListener"),Eg=new ei("AnimationModuleType");let Hg=(()=>{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,providedIn:"platform"}),p})();const kg=new ei("LocaleId",{providedIn:"root",factory:()=>lh(kg,ct.Optional|ct.SkipSelf)||function Yi(){return typeof $localize<"u"&&$localize.locale||Nc}()}),St=new ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class yx{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let wp=(()=>{class p{compileModuleSync(g){return new qc(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=go(Ne(g).declarations).reduce((E,k)=>{const R=ti(k);return R&&E.push(new yl(R)),E},[]);return new yx(_,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,providedIn:"root"}),p})();const Cx=(()=>Promise.resolve(0))();function Lg(p){typeof Zone>"u"?Cx.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class $n{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const v=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new v("Angular"))}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 Iw(){let p=de.requestAnimationFrame,m=de.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function vx(p){const m=()=>{!function id(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(de,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Ll(p),p.isCheckStableRunning=!0,Ig(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Ll(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,E,k)=>{try{return Ow(p),g.invokeTask(y,v,E,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),Bw(p)}},onInvoke:(g,_,y,v,E,k,R)=>{try{return Ow(p),g.invoke(y,v,E,k,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),Bw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Ll(p),Ig(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$n.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if($n.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,E=v.scheduleEventTask("NgZoneEvent: "+y,m,Ax,Tu,Tu);try{return v.runTask(E,g,_)}finally{v.cancelTask(E)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const Ax={};function Ig(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 Ll(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Ow(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Bw(p){p._nesting--,Ig(p)}class In{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}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,_)}}const Vw=new ei(""),Zr=new ei("");let Bg,Tx=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bg||(function cD(p){Bg=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$n.assertNotInAngularZone(),Lg(()=>{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())Lg(()=>{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(E=>E.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}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(Og),Pi(Zr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),Og=(()=>{class p{constructor(){this._applications=new Map}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 Bg?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Lo=null;const Fw=new ei("AllowMultipleToken"),Vg=new ei("PlatformDestroyListeners");class Sr{constructor(m,g){this.name=m,this.token=g}}function Io(p,m,g=[]){const _=`Platform: ${m}`,y=new ei(_);return(v=[])=>{let E=jw();if(!E||E.injector.get(Fw,!1)){const k=[...g,...v,{provide:y,useValue:!0}];p?p(k):function Dr(p){if(Lo&&!Lo.get(Fw,!1))throw new ie(400,!1);Lo=p;const m=p.get(Dx);(function Mu(p){const m=p.get(Dg,null);m&&m.forEach(g=>g())})(p)}(function Sx(p=[],m){return Za.create({name:m,providers:[{provide:cl,useValue:"platform"},{provide:Vg,useValue:new Set([()=>Lo=null])},...p]})}(k,_))}return function uD(p){const m=jw();if(!m)throw new ie(401,!1);return m}()}}function jw(){return Lo?.get(Dx)??null}let Dx=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function Nw(p,m){let g;return g="noop"===p?new In:("zone.js"===p?void 0:p)||new $n(m),g}(_?.ngZone,function Ex(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),v=[{provide:$n,useValue:y}];return y.run(()=>{const E=Za.create({providers:v,parent:this.injector,name:g.moduleType.name}),k=g.create(E),R=k.injector.get(Mh,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const F=y.onError.subscribe({next:G=>{R.handleError(G)}});k.onDestroy(()=>{jg(this._modules,k),F.unsubscribe()})}),function Yw(p,m,g){try{const _=g();return Gh(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const F=k.injector.get(ed);return F.runInitializers(),F.donePromise.then(()=>(function Ym(p){ni(p,"Expected localeId to be defined"),"string"==typeof p&&(tp=p.toLowerCase().replace(/_/g,"-"))}(k.injector.get(kg,Nc)||Nc),this._moduleDoBootstrap(k),k))})})}bootstrapModule(g,_=[]){const y=Hx({},_);return function xx(p,m,g){const _=new qc(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Fg);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Vg,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Pi(Za))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function Hx(p,m){return Array.isArray(m)?m.reduce(Hx,p):{...p,...m}}let Fg=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new D.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),E=new D.y(k=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{$n.assertNotInAngularZone(),Lg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{$n.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{R.unsubscribe(),F.unsubscribe()}});this.isStable=(0,M.T)(v,E.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Cn;if(!this._injector.get(ed).done)throw!y&&as(g),new ie(405,false);let E;E=y?g:this._injector.get(qr).resolveComponentFactory(g),this.componentTypes.push(E.componentType);const k=function Mr(p){return p.isBoundToModule}(E)?void 0:this._injector.get(Gc),F=E.create(Za.NULL,[],_||E.selector,k),G=F.location.nativeElement,X=F.injector.get(Vw,null);return X?.registerApplication(G),F.onDestroy(()=>{this.detachView(F.hostView),jg(this.components,F),X?.unregisterApplication(G)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new ie(101,!1);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;jg(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(bp,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>jg(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(wn),Pi(Mh))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function jg(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let Uw=!0;function hD(){Uw=!1}let fD=(()=>{class p{}return p.__NG_ELEMENT_ID__=mD,p})();function mD(p){return function Px(p,m,g){if(Ha(p)&&!g){const _=Bt(p.index,m);return new Fh(_,_)}return 47&p.type?new Fh(m[16],m):null}(xi(),xe(),16==(16&p))}class Bx{constructor(){}supports(m){return ru(m)}create(m){return new $w(m)}}const yD=(p,m)=>m;class $w{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||yD}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 E=!_||g&&g.currentIndex{E=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,E)?(_&&(g=this._verifyReinsertion(g,k,E,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,E,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 wD(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 Fx),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 Fx),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 wD{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 Vx{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 Fx{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new Vx,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 jx(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,E=y._next;return v&&(v._next=E),E&&(E._prev=v),y._next=null,y._prev=null,y}const _=new Nx(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 Nx{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 Qw(){return new Kw([new Bx])}let Kw=(()=>{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,_||Qw()),deps:[[p,new Ss,new ho]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Qw}),p})();function Yx(){return new Xw([new Zw])}let Xw=(()=>{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,_||Yx()),deps:[[p,new Ss,new ho]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Yx}),p})();const AD=Io(null,"core",[]);let vD=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Pi(Fg))},p.\u0275mod=dr({type:p}),p.\u0275inj=vi({}),p})();function TD(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let U;return function(C){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(C||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,C){this.data.set(x,C)}}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,C=null){super(U),this.reason=x,this.params=C}}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){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let C=x.inferHashAlgorithm(U.idTokenHeader),i=yield x.calcHash(U.accessToken,C),M=base64UrlEncode(i.substr(0,i.length/2)),S=U.idTokenClaims.at_hash.replace(/=/g,"");return M!==S&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+S)),M===S})()}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 C=x||window.location.hash;if(C=decodeURIComponent(C),0!==C.indexOf("#"))return{};const i=C.indexOf("?");return C=C.substr(i>-1?i+1:1),this.parseQueryString(C)}parseQueryString(x){const C={};let i,D,M,S,P,L,j;if(null===x)return C;i=x.split("&");for(let z=0;z>6,D[S++]=128|63&P):P<55296||P>=57344?(D[S++]=224|P>>12,D[S++]=128|P>>6&63,D[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&Y.charCodeAt(++C)),D[S++]=240|P>>18,D[S++]=128|P>>12&63,D[S++]=128|P>>6&63,D[S++]=128|63&P);Y=D}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 L=[],j=[];for(C=0;C<64;++C){var z=Y[C]||0;L[C]=92^z,j[C]=54^z}Sha256.call(this,U,x),this.update(j),this.oKeyPad=L,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 C,D,i=0,M=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=C<>2]|=(192|C>>6)<>2]|=(128|63&C)<=57344?(S[D>>2]|=(224|C>>12)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<>2]|=(240|C>>18)<>2]|=(128|C>>12&63)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<=64?(this.block=S[16],this.start=D-64,this.hash(),this.hashed=!0):this.start=D}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 L,Q,re,ie,me,be,Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+(((Q=P[L-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[L-7]+(((Q=P[L-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(be=U&x,L=0;L<64;L+=4)this.first?(this.is224?(re=300032,S=(Q=P[0]-1413257819)-150054599<<0,C=Q+24177077<<0):(re=704751109,S=(Q=P[0]-210244248)-1521486534<<0,C=Q+143694565<<0),this.first=!1):(S=C+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&D^~i&M)+K[L]+P[L])<<0,C=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((re=Y&U)^Y&x^be))<<0),M=x+(Q=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&D)+K[L+1]+P[L+1])<<0,x=Q+(((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+((ie=C&Y)^C&U^re))<<0,D=U+(Q=D+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,U=Q+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((me=x&C)^x&Y^ie))<<0,i=Y+(Q=i+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&M^~D&S)+K[L+3]+P[L+3])<<0,Y=Q+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((be=U&x)^U&C^me))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+C<<0,this.h4=this.h4+i<<0,this.h5=this.h5+D<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=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[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[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[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D]+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 Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=[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,C>>24&255,C>>16&255,C>>8&255,255&C,i>>24&255,i>>16&255,i>>8&255,255&i,D>>24&255,D>>16&255,D>>8&255,255&D,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 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,C=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,C){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let C="";for(let i of x)C+=String.fromCharCode(i);return C}toHashString(x){const C=new Uint8Array(x);let i="";for(let D of C)i+=String.fromCharCode(D);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,C,i,D,M,S,P,L,j,z){super(),this.ngZone=x,this.http=C,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=z,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=j,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),D&&(this.tokenValidationHandler=D),M&&this.configure(M);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(J){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",J)}if(this.checkLocalStorageAccessable()){const J=window?.navigator?.userAgent;(J?.includes("MSIE ")||J?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{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={},C,i=!0){let D=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?D=!0:"logout"===M.type&&(D=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==C||"any"===C||M.info===C)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{D&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,C){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,C):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(C=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(C=>!(!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 C=[],i=this.validateUrlForHttps(x),D=this.validateUrlAgainstIssuer(x);return i||C.push("https for all urls required. Also for urls received by discovery."),D||C.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),C}validateUrlForHttps(x){if(!x)return!0;const C=x.toLowerCase();return!(!1!==this.requireHttps&&(!C.match(/^http:\/\/localhost($|[:\/])/)&&!C.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||C.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,C){if(!x)throw new Error(`'${C}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${C}' 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(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),C=this.getAccessTokenStoredAt(),i=this.calcTimeout(C,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(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),C=this.getIdTokenStoredAt(),i=this.calcTimeout(C,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(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}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,C){const i=this.dateTimeService.now();return Math.max(0,(C-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((C,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(D=>{if(!this.validateDiscoveryDocument(D))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=D.authorization_endpoint,this.logoutUrl=D.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=D.grant_types_supported,this.issuer=D.issuer,this.tokenEndpoint=D.token_endpoint,this.userinfoEndpoint=D.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=D.jwks_uri,this.sessionCheckIFrameUrl=D.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(D),this.revocationEndpoint=D.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:D,jwks:M});this.eventsSubject.next(P),C(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},D=>{this.logger.error("error loading discovery document",D),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),i(D)}):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,C)=>{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)),C(i)}):x(null)})}validateDiscoveryDocument(x){let C;return this.skipIssuerCheck||x.issuer===this.issuer?(C=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),C.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),C.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.token_endpoint),C.length>0&&this.logger.error("error validating token_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),C.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),C.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.jwks_uri),C.length>0?(this.logger.error("error validating jwks_uri in discovery document",C),!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,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,C,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,C)=>{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(D=>{if(this.debug("userinfo received",JSON.stringify(D)),D.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(D.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.sub))return void C("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(D.body))},D=>{this.logger.error("error loading user info",D),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",D)),C(D)})})}fetchTokenUsingPasswordFlow(x,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:C},i)}fetchTokenUsingGrant(x,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let D=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||(D=D.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(D=D.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))D=D.set(M,this.customQueryParams[M]);for(const M of Object.keys(C))D=D.set(M,C[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,D,{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,C)=>{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")),D=(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}`);D=D.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:D}).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)),C(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const C=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:C,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},C=!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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const D=this.document.getElementById(this.silentRefreshIFrameName);D&&this.document.body.removeChild(D),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,C,x).then(z=>{M.setAttribute("src",z),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>z instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>"token_received"===z.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,L,j]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(z=>{if(z instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===z.type||(z=new OAuthErrorEvent("silent_refresh_error",z)),this.eventsSubject.next(z),z;return"token_received"===z.type&&(z=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(z)),z})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(C=>new Promise((i,D)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=C):S=window.open(C,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{z(),i(!0)},le=>{z(),D(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(z(),D(new OAuthErrorEvent("popup_closed",{})))},500):D(new OAuthErrorEvent("popup_blocked",{}));const z=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),L(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),L(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(x){const C=x.height||470,i=x.width||500,D=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${C},top=${window.screenTop+(window.outerHeight-C)/2},left=${D}`}processMessageEventMessage(x){let C="#";if(this.silentRefreshMessagePrefix&&(C+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(C)?"#"+i.substr(C.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const C=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(C)){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",C,"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 C=this.document.createElement("iframe");C.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),C.setAttribute("src",this.sessionCheckIFrameUrl),C.style.display="none",this.document.body.appendChild(C),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 C=this.getSessionState();C||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+C,this.issuer)}createLoginUrl(x="",C="",i="",D=!1,M={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let L;L=i||S.redirectUri;const j=yield S.createAndSaveNonce();if(x=x?j+S.config.nonceStateSeparator+encodeURIComponent(x):j,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const z=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+z+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}C&&(Q+="&login_hint="+encodeURIComponent(C)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(j)),D&&(Q+="&prompt=none");for(const ne of Object.keys(M))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(M[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(x="",C=""){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={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(x,D,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",C=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,C):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,C))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const C=this;if(x.onTokenReceived){const i={idClaims:C.getIdentityClaims(),idToken:C.getIdToken(),accessToken:C.getAccessToken(),state:C.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,C,i,D,M){if(this._storage.setItem("access_token",x),D&&!Array.isArray(D)?this._storage.setItem("granted_scopes",JSON.stringify(D.split(" "))):D&&Array.isArray(D)&&this._storage.setItem("granted_scopes",JSON.stringify(D)),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)}C&&this._storage.setItem("refresh_token",C),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(C=>!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){var C=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,D=C.getCodePartsFromUrl(i),M=D.code,S=D.state,P=D.session_state;if(!x.preventClearHashAfterLogin){const z=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,z)}let[L,j]=C.parseState(S);if(C.state=j,D.error){C.debug("error trying to login"),C.handleLoginError(x,D);const z=new OAuthErrorEvent("code_error",{},D);return C.eventsSubject.next(z),Promise.reject(z)}if(!x.disableNonceCheck){if(!L)return C.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!C.validateNonce(L)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return C.eventsSubject.next(J),Promise.reject(J)}return C.storeSessionState(P),M&&(yield C.getTokenFromCode(M,x),C.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,C){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",C.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let D;D=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),D?i=i.set("code_verifier",D):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,C)}fetchAndProcessToken(x,C){C=C||{},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 D=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+D)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((D,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,C.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(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")),D(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let C;C=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",C);const i=C.state;let[D,M]=this.parseState(i);if(this.state=M,C.error){this.debug("error trying to login"),this.handleLoginError(x,C);const z=new OAuthErrorEvent("token_error",{},C);return this.eventsSubject.next(z),Promise.reject(z)}const S=C.access_token,P=C.id_token,L=C.session_state,j=C.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(D)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(z=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:z.idTokenClaims,idToken:z.idToken,state:i}).then(J=>z):z).then(z=>(this.storeIdToken(z),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(z=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",z)),this.logger.error("Error validating tokens"),this.logger.error(z),Promise.reject(z))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let C=x,i="";if(x){const D=x.indexOf(this.config.nonceStateSeparator);D>-1&&(C=x.substr(0,D),i=x.substr(D+this.config.nonceStateSeparator.length))}return[C,i]}validateNonce(x){let C;return C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),C===x||(console.error("Validating access_token failed, wrong state/nonce.",C,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,C){x.onLoginError&&x.onLoginError(C),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,C,i=!1){const D=x.split("."),S=b64DecodeUnicode(this.padBase64(D[0])),P=JSON.parse(S),j=b64DecodeUnicode(this.padBase64(D[1])),z=JSON.parse(j);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(z.aud)){if(z.aud.every(me=>me!==this.clientId)){const me="Wrong audience: "+z.aud.join(",");return this.logger.warn(me),Promise.reject(me)}}else if(z.aud!==this.clientId){const me="Wrong audience: "+z.aud;return this.logger.warn(me),Promise.reject(me)}if(!z.sub){const me="No sub claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==z.sub){const me=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${z.sub}`;return this.logger.warn(me),Promise.reject(me)}if(!z.iat){const me="No iat claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(!this.skipIssuerCheck&&z.iss!==this.issuer){const me="Wrong issuer: "+z.iss;return this.logger.warn(me),Promise.reject(me)}if(!i&&z.nonce!==J){const me="Wrong nonce: "+z.nonce;return this.logger.warn(me),Promise.reject(me)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!z.at_hash){const me="An at_hash is needed!";return this.logger.warn(me),Promise.reject(me)}const Q=this.dateTimeService.now(),ne=1e3*z.iat,le=1e3*z.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const me="Token has expired";return console.error(me),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(me)}const ie={accessToken:C,idToken:x,jwks:this.jwks,idTokenClaims:z,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(me=>({idToken:x,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(me=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!me){const be="Wrong at_hash";return this.logger.warn(be),Promise.reject(be)}return this.checkSignature(ie).then(be=>{const $e={idToken:x,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?$e:this.checkAtHash(ie).then(Ze=>{if(this.requestAccessToken&&!Ze){const Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}return $e})})})}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"),C=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={},C=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const D=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||!D&&!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(D)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});D&&(S=S.set("id_token_hint",D));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),C&&(S=S.set("state",C)));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(C){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",C):x._storage.setItem("nonce",C),C})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const C=this.document.getElementById(this.sessionCheckIFrameName);C&&C.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,D="";const M=typeof self>"u"?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=>C.charCodeAt(P%C.length)),D=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,C))}initCodeFlowInternal(x="",C={}){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={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(x,D,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const C=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(C,"sha-256")),C]})()}extractRecognizedCustomParameters(x){let C=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&C.set(i,JSON.stringify(x[i]))}),C}revokeTokenAndLogout(x={},C=!1){let i=this.revocationEndpoint,D=this.getAccessToken(),M=this.getRefreshToken();if(!D)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,j)=>{let z,J;if(D){let Q=S.set("token",D).set("token_type_hint","access_token");z=this.http.post(i,Q,{headers:P})}else z=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let Q=S.set("token",M).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);C&&(z=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([z,J]).subscribe(Q=>{this.logOut(x),L(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),j(Q)})})}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,C,i){this.oAuthService=x,this.errorHandler=C,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(C=>x.toLowerCase().startsWith(C.toLowerCase()))}intercept(x,C){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__.z)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return C.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):C.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):C.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 typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,C=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:C},{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")},5861:(Y,U,x)=>{"use strict";function C(D,M,S,P,L,j,z){try{var J=D[j](z),Q=J.value}catch(ne){return void S(ne)}J.done?M(Q):Promise.resolve(Q).then(P,L)}function i(D){return function(){var M=this,S=arguments;return new Promise(function(P,L){var j=D.apply(M,S);function z(Q){C(j,P,L,z,J,"next",Q)}function J(Q){C(j,P,L,z,J,"throw",Q)}z(void 0)})}}x.d(U,{Z:()=>i})},4147:Y=>{"use strict";Y.exports={i8:"9.3.0"}}},Y=>{Y(Y.s=2653)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.b9bdda6c54fb5407.js b/dist/apps/publications/main.b9bdda6c54fb5407.js new file mode 100644 index 000000000..8fc13dd8b --- /dev/null +++ b/dist/apps/publications/main.b9bdda6c54fb5407.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{826:(Y,z,M)=>{"use strict";var C=M(6895),i=M(4650);class D extends C.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends D{static makeCurrent(){(0,C.HT)(new x)}onAndCancel(o,e,t){return o.addEventListener(e,t,!1),()=>{o.removeEventListener(e,t,!1)}}dispatchEvent(o,e){o.dispatchEvent(e)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,e){return(e=e||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,e){return"window"===e?window:"document"===e?o:"body"===e?o.body:null}getBaseHref(o){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function j(n){L=L||document.createElement("a"),L.setAttribute("href",n);const o=L.pathname;return"/"===o.charAt(0)?o:`/${o}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,C.Mx)(document.cookie,o)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,o,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,C.q)(),r=o.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{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 re=new i.OlP("EventManagerPlugins");let ie=(()=>{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})(),Ae=(()=>{class n extends be{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($e),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach($e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $e(n){(0,C.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/"},Ee=/%COMP%/g;function ue(n,o,e){for(let t=0;t{if("__ngUnwrap__"===o)return n;!1===n(o)&&(o.preventDefault(),o.returnValue=!1)}}let _e=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ue(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 ni(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 Je(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=ue(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(ie),i.LFG(Ae),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Ue{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,e){return e?document.createElementNS(Ze[e]||e,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,e){(It(o)?o.content:o).appendChild(e)}insertBefore(o,e,t){o&&(It(o)?o.content:o).insertBefore(e,t)}removeChild(o,e){o&&o.removeChild(e)}selectRootElement(o,e){let t="string"==typeof o?document.querySelector(o):o;if(!t)throw new Error(`The selector "${o}" did not match any elements`);return e||(t.textContent=""),t}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?o.setAttributeNS(l,e,t):o.setAttribute(e,t)}else o.setAttribute(e,t)}removeAttribute(o,e,t){if(t){const r=Ze[t];r?o.removeAttributeNS(r,e):o.removeAttribute(`${t}:${e}`)}else o.removeAttribute(e)}addClass(o,e){o.classList.add(e)}removeClass(o,e){o.classList.remove(e)}setStyle(o,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?o.style.setProperty(e,t,r&i.JOm.Important?"important":""):o.style[e]=t}removeStyle(o,e,t){t&i.JOm.DashCase?o.style.removeProperty(e):o.style[e]=""}setProperty(o,e,t){o[e]=t}setValue(o,e){o.nodeValue=e}listen(o,e,t){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,e,fe(t)):this.eventManager.addEventListener(o,e,fe(t))}}function It(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ni extends Ue{constructor(o,e,t,r){super(o),this.component=t;const l=ue(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Oe(n){return"_ngcontent-%COMP%".replace(Ee,n)}(r+"-"+t.id),this.hostAttr=function Le(n){return"_nghost-%COMP%".replace(Ee,n)}(r+"-"+t.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,e){const t=super.createElement(o,e);return super.setAttribute(t,this.contentAttr,""),t}}class Je extends Ue{constructor(o,e,t,r){super(o),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=ue(r.id,r.styles,[]);for(let d=0;d{class n extends me{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yn=["alt","control","meta","shift"],ri={"\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"},hr={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"},vi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Kr=(()=>{class n extends me{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,C.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(yn.forEach(a=>{const c=t.indexOf(a);c>-1&&(t.splice(c,1),d+=a+".")}),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 Wl(n){let o=n.key;if(null==o){if(o=n.keyIdentifier,null==o)return"Unidentified";o.startsWith("U+")&&(o=String.fromCharCode(parseInt(o.substring(2),16)),3===n.location&&hr.hasOwnProperty(o)&&(o=hr[o]))}return ri[o]||o}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),yn.forEach(l=>{l!=r&&(0,vi[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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ct=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:C.bD},{provide:i.g9A,useValue:function kr(){x.makeCurrent()},multi:!0},{provide:C.K0,useFactory:function ps(){return(0,i.RDi)(document),document},deps:[]}]),Ui=new i.OlP(""),pr=[{provide:i.rWj,useClass:class ne{addToWindow(o){i.dqk.getAngularTestability=(t,r=!0)=>{const l=o.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>o.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(a){d=d||a,l--,0==l&&t(d)};r.forEach(function(a){a.whenStable(s)})})}findTestabilityInTree(o,e,t){return null==e?null:o.getTestability(e)??(t?(0,C.q)().isShadowRoot(e)?this.findTestabilityInTree(o,e.host,!0):this.findTestabilityInTree(o,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Qt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Pr(){return new i.qLn},deps:[]},{provide:re,useClass:Xi,multi:!0,deps:[C.K0,i.R0b,i.Lbi]},{provide:re,useClass:Kr,multi:!0,deps:[C.K0]},{provide:_e,useClass:_e,deps:[ie,Ae,i.AFp]},{provide:i.FYo,useExisting:_e},{provide:be,useExisting:Ae},{provide:Ae,useClass:Ae,deps:[C.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:C.JF,useClass:le,deps:[]},[]];let en=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ui,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...Qt,...pr],imports:[C.ez,i.hGG]}),n})(),ae=(()=>{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Se(){return new ae((0,i.LFG)(C.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Hi=(()=>{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(it),t},providedIn:"root"}),n})(),it=(()=>{class n extends Hi{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.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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ge(n){return new it(n.get(C.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=M(529);class Ut{encodeKey(o){return encodeURIComponent(o)}encodeValue(o){return encodeURIComponent(o)}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}const Rt=new i.OlP("basePath");class Ye{constructor(o={}){this.apiKeys=o.apiKeys,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.withCredentials=o.withCredentials,this.encoder=o.encoder,this.credentials=o.credentials?o.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(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}selectHeaderAccept(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}isJsonMime(o){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==o&&(e.test(o)||"application/json-patch+json"===o.toLowerCase())}lookupCredential(o){const e=this.credentials[o];return"function"==typeof e?e():e}}let nt=(()=>{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 Ye,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 Ut}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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,a="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(We=>{h=this.addToHttpParams(h,We,"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 w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zt=(()=>{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 Ye,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 Ut}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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,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 s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"publicationId")),null!=t&&(s=this.addToHttpParams(s,t,"userId"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new w.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,s,a,c,u,h="body",f=!1,b){let V=new w.LE({encoder:this.encoder});null!=e&&(V=this.addToHttpParams(V,e,"title")),null!=t&&(V=this.addToHttpParams(V,t,"isbn")),null!=r&&(V=this.addToHttpParams(V,r,"doi")),null!=l&&(V=this.addToHttpParams(V,l,"id")),null!=d&&(V=this.addToHttpParams(V,d,"year")),null!=s&&(V=this.addToHttpParams(V,s,"category")),null!=a&&(V=this.addToHttpParams(V,a,"yearSince")),null!=c&&(V=this.addToHttpParams(V,c,"yearTill")),null!=u&&(V=this.addToHttpParams(V,u,"userId"));let he,ee=this.defaultHeaders;he=this.configuration.lookupCredential("BasicAuth"),he&&(ee=ee.set("Authorization","Basic "+he)),he=this.configuration.lookupCredential("BearerAuth"),he&&(ee=ee.set("Authorization","Bearer "+he));let We=b&&b.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(ee=ee.set("Accept",We));let Pt=b&&b.context;void 0===Pt&&(Pt=new w.qT);let Jt="json";return We&&(Jt=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Pt,params:V,responseType:Jt,withCredentials:this.configuration.withCredentials,headers:ee,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,s){let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,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 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:f,params:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Js=(()=>{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 Ye,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 Ut}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 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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,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 s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"owner")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ai=(()=>{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 Ye,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 Ut}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,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,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 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:f,params:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==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 f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ia=(()=>{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 Ye,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 Ut}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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,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 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:f,params:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let 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(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=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=r&&r.context;void 0===a&&(a=new w.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:a,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(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,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 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:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,a="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!=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 w.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:a,reportProgress:c})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,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 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/setLogin`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}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 a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));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 f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"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 w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));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 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: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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,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 w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.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:a,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nn=(()=>{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 Ye,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 Ut}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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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 a=r&&r.context;void 0===a&&(a=new w.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:a,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(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Go=(()=>{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:Ye,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({}),n})();var Mt=(()=>{return(n=Mt||(Mt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",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",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Mt;var n})();let ra=(()=>{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(Mt.PERUNADMIN,Mt.PERUNOBSERVER,Mt.FACILITYADMIN,Mt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Mt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Mt.PERUNADMIN,Mt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Mt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Mt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Mt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Mt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Mt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.VOOBSERVER,Mt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Mt.PERUNADMIN,Mt.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=[],a=[];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))a="User"===V?[V].concat(a):a.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:a})}}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 a of t[s])if(!this.principalHasRole(d,s,a)){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{(0,Or.Xf)(n()).subscribe(o)})}var to=M(9635),ir=M(2843),yi=M(515),xt=M(727),nr=M(4482),En=M(5403);function qo(){return(0,nr.e)((n,o)=>{let e=null;n._refCount++;const t=(0,En.x)(o,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),o.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class Fu extends Gi.y{constructor(o,e){super(),this.source=o,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,nr.A)(o)&&(this.lift=o.lift)}_subscribe(o){return this.getSubject().subscribe(o)}getSubject(){const o=this._subject;return(!o||o.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:o}=this;this._subject=this._connection=null,o?.unsubscribe()}connect(){let o=this._connection;if(!o){o=this._connection=new xt.w0;const e=this.getSubject();o.add(this.source.subscribe((0,En.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),o.closed&&(this._connection=null,o=xt.w0.EMPTY)}return o}refCount(){return qo()(this)}}var Qe=M(4004),St=M(3900),Ot=M(5698),_r=M(3269);function Et(...n){const o=(0,_r.yG)(n);return(0,nr.e)((e,t)=>{(o?(0,La.z)(n,e,o):(0,La.z)(n,e)).subscribe(t)})}var rn=M(5577),rr=M(590),Hn=M(4351),Bt=M(8505),O=M(262);function q(n,o,e,t,r){return(l,d)=>{let s=e,a=o,c=0;l.subscribe((0,En.x)(d,u=>{const h=c++;a=s?n(a,u,h):(s=!0,u),t&&d.next(a)},r&&(()=>{s&&d.next(a),d.complete()})))}}function B(n,o){return(0,nr.e)(q(n,o,arguments.length>=2,!0))}function $(n){return n<=0?()=>yi.E:(0,nr.e)((o,e)=>{let t=[];o.subscribe((0,En.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var ce=M(8068),ye=M(6590),ge=M(4671);function tt(n,o){const e=arguments.length>=2;return t=>t.pipe(n?(0,Gt.h)((r,l)=>n(r,l,t)):ge.y,$(1),e?(0,ye.d)(o):(0,ce.T)(()=>new eo.K))}function pi(n,o=!1){return(0,nr.e)((e,t)=>{let r=0;e.subscribe((0,En.x)(t,l=>{const d=n(l,r++);(d||o)&&t.next(l),!d&&t.complete()}))})}var Kt=M(9718);function Zt(n){return(0,nr.e)((o,e)=>{try{o.subscribe(e)}finally{e.add(n)}})}var Ft=M(8189);const at="primary";class gi{constructor(o){this.params=o||{}}has(o){return Object.prototype.hasOwnProperty.call(this.params,o)}get(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e[0]:e}return null}getAll(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ti(n){return new gi(n)}function Me(n,o,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(o.hasChildren()||t.lengtht[l]===r)}return n===o}function Mi(n){return Array.prototype.concat.apply([],n)}function Ia(n){return n.length>0?n[n.length-1]:null}function Xt(n,o){for(const e in n)n.hasOwnProperty(e)&&o(n[e],e)}function br(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,Ve.of)(n)}const bd={exact:function Vr(n,o,e){if(!aa(n.segments,o.segments)||!ci(n.segments,o.segments,e)||n.numberOfChildren!==o.numberOfChildren)return!1;for(const t in o.children)if(!n.children[t]||!Vr(n.children[t],o.children[t],e))return!1;return!0},subset:ys},jp={exact:function Cn(n,o){return _n(n,o)},subset:function yd(n,o){return Object.keys(o).length<=Object.keys(n).length&&Object.keys(o).every(e=>Br(n[e],o[e]))},ignored:()=>!0};function Wo(n,o,e){return bd[e.paths](n.root,o.root,e.matrixParams)&&jp[e.queryParams](n.queryParams,o.queryParams)&&!("exact"===e.fragment&&n.fragment!==o.fragment)}function ys(n,o,e){return yr(n,o,o.segments,e)}function yr(n,o,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!aa(r,e)||o.hasChildren()||!ci(r,e,t))}if(n.segments.length===e.length){if(!aa(n.segments,e)||!ci(n.segments,e,t))return!1;for(const r in o.children)if(!n.children[r]||!ys(n.children[r],o.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(aa(n.segments,r)&&ci(n.segments,r,t)&&n.children[at])&&yr(n.children[at],o,l,t)}}function ci(n,o,e){return o.every((t,r)=>jp[e](n[r].parameters,t.parameters))}class Oa{constructor(o,e,t){this.root=o,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return Nu.serialize(this)}}class Vt{constructor(o,e){this.segments=o,this.children=e,this.parent=null,Xt(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return no(this)}}class io{constructor(o,e){this.path=o,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ti(this.parameters)),this._parameterMap}toString(){return an(this)}}function aa(n,o){return n.length===o.length&&n.every((e,t)=>e.path===o[t].path)}let Ba=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new Cd},providedIn:"root"}),n})();class Cd{parse(o){const e=new Xl(o);return new Oa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(o){const e=`/${sa(o.root,!0)}`,t=function Pi(n){const o=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${ws(e)}=${ws(r)}`).join("&"):`${ws(e)}=${ws(t)}`}).filter(e=>!!e);return o.length?`?${o.join("&")}`:""}(o.queryParams);return`${e}${t}${"string"==typeof o.fragment?`#${function Yu(n){return encodeURI(n)}(o.fragment)}`:""}`}}const Nu=new Cd;function no(n){return n.segments.map(o=>an(o)).join("/")}function sa(n,o){if(!n.hasChildren())return no(n);if(o){const e=n.children[at]?sa(n.children[at],!1):"",t=[];return Xt(n.children,(r,l)=>{l!==at&&t.push(`${l}:${sa(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function ju(n,o){let e=[];return Xt(n.children,(t,r)=>{r===at&&(e=e.concat(o(t,r)))}),Xt(n.children,(t,r)=>{r!==at&&(e=e.concat(o(t,r)))}),e}(n,(t,r)=>r===at?[sa(n.children[at],!1)]:[`${r}:${sa(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[at]?`${no(n)}/${e[0]}`:`${no(n)}/(${e.join("//")})`}}function ro(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ws(n){return ro(n).replace(/%3B/gi,";")}function ao(n){return ro(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jl(n){return decodeURIComponent(n)}function Ql(n){return Jl(n.replace(/\+/g,"%20"))}function an(n){return`${ao(n.path)}${function Fr(n){return Object.keys(n).map(o=>`;${ao(o)}=${ao(n[o])}`).join("")}(n.parameters)}`}const Uu=/^[^\/()?;=#]+/;function Kl(n){const o=n.match(Uu);return o?o[0]:""}const zu=/^[^=?&#]+/,Yp=/^[^&#]+/;class Xl{constructor(o){this.url=o,this.remaining=o}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){const o={};if(this.consumeOptional("?"))do{this.parseQueryParam(o)}while(this.consumeOptional("&"));return o}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const o=[];for(this.peekStartsWith("(")||o.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),o.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(o.length>0||Object.keys(e).length>0)&&(t[at]=new Vt(o,e)),t}parseSegment(){const o=Kl(this.remaining);if(""===o&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(o),new io(Jl(o),this.parseMatrixParams())}parseMatrixParams(){const o={};for(;this.consumeOptional(";");)this.parseParam(o);return o}parseParam(o){const e=Kl(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Kl(this.remaining);r&&(t=r,this.capture(t))}o[Jl(e)]=Jl(t)}parseQueryParam(o){const e=function Np(n){const o=n.match(zu);return o?o[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Up(n){const o=n.match(Yp);return o?o[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Ql(e),l=Ql(t);if(o.hasOwnProperty(r)){let d=o[r];Array.isArray(d)||(d=[d],o[r]=d),d.push(l)}else o[r]=l}parseParens(o){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Kl(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):o&&(l=at);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[at]:new Vt([],d),this.consumeOptional("//")}return e}peekStartsWith(o){return this.remaining.startsWith(o)}consumeOptional(o){return!!this.peekStartsWith(o)&&(this.remaining=this.remaining.substring(o.length),!0)}capture(o){if(!this.consumeOptional(o))throw new i.vHH(4011,!1)}}function so(n){return n.segments.length>0?new Vt([],{[at]:n}):n}function Cs(n){const o={};for(const t of Object.keys(n.children)){const l=Cs(n.children[t]);(l.segments.length>0||l.hasChildren())&&(o[t]=l)}return function ec(n){if(1===n.numberOfChildren&&n.children[at]){const o=n.children[at];return new Vt(n.segments.concat(o.segments),o.children)}return n}(new Vt(n.segments,o))}function Va(n){return n instanceof Oa}function zp(n,o,e,t,r){if(0===e.length)return oo(o.root,o.root,o.root,t,r);const l=function Gp(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Wu(!0,0,n);let o=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Xt(l.outlets,(a,c)=>{s[c]="string"==typeof a?a.split("/"):a}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,a)=>{0==a&&"."===s||(0==a&&""===s?e=!0:".."===s?o++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new Wu(e,o,t)}(e);return l.toRoot()?oo(o.root,o.root,new Vt([],{}),t,r):function d(a){const c=function Zu(n,o,e,t){if(n.isAbsolute)return new oa(o.root,!0,0);if(-1===t)return new oa(e,e===o.root,0);return function $o(n,o,e){let t=n,r=o,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new oa(t,!1,r-l)}(e,t+(jr(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,o,n.snapshot?._urlSegment,a),u=c.processChildren?Nr(c.segmentGroup,c.index,l.commands):tc(c.segmentGroup,c.index,l.commands);return oo(o.root,c.segmentGroup,u,t,r)}(n.snapshot?._lastPathIndex)}function jr(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Fa(n){return"object"==typeof n&&null!=n&&n.outlets}function oo(n,o,e,t,r){let d,l={};t&&Xt(t,(a,c)=>{l[c]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),d=n===o?e:qu(n,o,e);const s=so(Cs(d));return new Oa(s,l,r)}function qu(n,o,e){const t={};return Xt(n.children,(r,l)=>{t[l]=r===o?e:qu(r,o,e)}),new Vt(n.segments,t)}class Wu{constructor(o,e,t){if(this.isAbsolute=o,this.numberOfDoubleDots=e,this.commands=t,o&&t.length>0&&jr(t[0]))throw new i.vHH(4003,!1);const r=t.find(Fa);if(r&&r!==Ia(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oa{constructor(o,e,t){this.segmentGroup=o,this.processChildren=e,this.index=t}}function tc(n,o,e){if(n||(n=new Vt([],{})),0===n.segments.length&&n.hasChildren())return Nr(n,o,e);const t=function qp(n,o,e){let t=0,r=o;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(Fa(s))break;const a=`${s}`,c=t0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Wp(a,c,d))return l;t+=2}else{if(!Wp(a,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,o,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=tc(n.children[d],o,l))}),Xt(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Vt(n.segments,r)}}function ja(n,o,e){const t=n.segments.slice(0,o);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(o[t]=ja(new Vt([],{}),0,e))}),o}function Zo(n){const o={};return Xt(n,(e,t)=>o[t]=`${e}`),o}function Wp(n,o,e){return n==e.path&&_n(o,e.parameters)}class Yr{constructor(o,e){this.id=o,this.url=e}}class As extends Yr{constructor(o,e,t="imperative",r=null){super(o,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Yr{constructor(o,e,t){super(o,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zn extends Yr{constructor(o,e,t,r){super(o,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qu extends Yr{constructor(o,e,t,r){super(o,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Jo extends Yr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Td extends Yr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Md extends Yr{constructor(o,e,t,r,l){super(o,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ic extends Yr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nc extends Yr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ku{constructor(o){this.route=o,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xd{constructor(o){this.route=o,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Sd{constructor(o){this.snapshot=o,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qo{constructor(o){this.snapshot=o,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vs{constructor(o){this.snapshot=o,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rc{constructor(o){this.snapshot=o,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lo{constructor(o,e,t){this.routerEvent=o,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dd{constructor(o){this._root=o}get root(){return this._root.value}parent(o){const e=this.pathFromRoot(o);return e.length>1?e[e.length-2]:null}children(o){const e=Ko(o,this._root);return e?e.children.map(t=>t.value):[]}firstChild(o){const e=Ko(o,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(o){const e=ac(o,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==o)}pathFromRoot(o){return ac(o,this._root).map(e=>e.value)}}function Ko(n,o){if(n===o.value)return o;for(const e of o.children){const t=Ko(n,e);if(t)return t}return null}function ac(n,o){if(n===o.value)return[o];for(const e of o.children){const t=ac(n,e);if(t.length)return t.unshift(o),t}return[]}class kn{constructor(o,e){this.value=o,this.children=e}toString(){return`TreeNode(${this.value})`}}function co(n){const o={};return n&&n.children.forEach(e=>o[e.value.outlet]=e),o}class Ed extends Dd{constructor(o,e){super(o),this.snapshot=e,lc(this,o)}toString(){return this.snapshot.toString()}}function sc(n,o){const e=function $p(n,o){const d=new ca([],{},{},"",{},at,o,null,n.root,-1,{});return new Ts("",new kn(d,[]))}(n,o),t=new ki([new io("",{})]),r=new ki({}),l=new ki({}),d=new ki({}),s=new ki(""),a=new Gn(t,r,d,s,l,at,o,e.root);return a.snapshot=e.root,new Ed(new kn(a,[]),e)}class Gn{constructor(o,e,t,r,l,d,s,a){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qe.U)(o=>Ti(o)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qe.U)(o=>Ti(o)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function oc(n,o="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==o)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 uo(n){return n.reduce((o,e)=>({params:{...o.params,...e.params},data:{...o.data,...e.data},resolve:{...e.data,...o.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ca{constructor(o,e,t,r,l,d,s,a,c,u,h,f){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=f??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=Ti(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ts extends Dd{constructor(o,e){super(e),this.url=o,lc(this,e)}toString(){return cc(this._root)}}function lc(n,o){o.value._routerState=n,o.children.forEach(e=>lc(n,e))}function cc(n){const o=n.children.length>0?` { ${n.children.map(cc).join(", ")} } `:"";return`${n.value}${o}`}function Na(n){if(n.snapshot){const o=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_n(o.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),o.fragment!==e.fragment&&n.fragment.next(e.fragment),_n(o.params,e.params)||n.params.next(e.params),function Ht(n,o){if(n.length!==o.length)return!1;for(let e=0;e_n(e.parameters,o[t].parameters))}(n.url,o.url);return e&&!(!n.parent!=!o.parent)&&(!n.parent||Xu(n.parent,o.parent))}function ei(n,o,e){if(e&&n.shouldReuseRoute(o.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=o.value;const r=function u_(n,o,e){return o.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ei(n,t,r);return ei(n,t)})}(n,o,e);return new kn(t,r)}{if(n.shouldAttach(o.value)){const l=n.retrieve(o.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=o.value,d.children=o.children.map(s=>ei(n,s)),d}}const t=function h_(n){return new Gn(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)}(o.value),r=o.children.map(l=>ei(n,l));return new kn(t,r)}}const eh="ngNavigationCancelingError";function Jp(n,o){const{redirectTo:e,navigationBehaviorOptions:t}=Va(o)?{redirectTo:o,navigationBehaviorOptions:void 0}:o,r=Qp(!1,0,o);return r.url=e,r.navigationBehaviorOptions=t,r}function Qp(n,o,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[eh]=!0,t.cancellationCode=o,e&&(t.url=e),t}function Hd(n){return Kp(n)&&Va(n.url)}function Kp(n){return n&&n[eh]}class Xo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new dc,this.attachRef=null}}let dc=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Xo,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const el=!1;let _i=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=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=r||at,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,el);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,el);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,el);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 i.vHH(4013,el);this._activatedRoute=e;const r=this.location,d=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,a=new kd(e,s,r.injector);if(t&&function tl(n){return!!n.resolveComponentFactory}(t)){const c=t.resolveComponentFactory(d);this.activated=r.createComponent(c,r.length,a)}else this.activated=r.createComponent(d,{index:r.length,injector:a,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dc),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(o,e,t){this.route=o,this.childContexts=e,this.parent=t}get(o,e){return o===Gn?this.route:o===dc?this.childContexts:this.parent.get(o,e)}}let Xp=(()=>{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")},dependencies:[_i],encapsulation:2}),n})();function th(n,o){return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,o,`Route: ${n.path}`)),n._injector??o}function nh(n){const o=n.children&&n.children.map(nh),e=o?{...n,children:o}:{...n};return!e.component&&!e.loadComponent&&(o||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=Xp),e}function sn(n){return n.outlet||at}function uc(n,o){const e=n.filter(t=>sn(t)===o);return e.push(...n.filter(t=>sn(t)!==o)),e}function Pn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let o=n.parent;o;o=o.parent){const e=o.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ho{constructor(o,e,t,r){this.routeReuseStrategy=o,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(o){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,o),Na(this.futureState.root),this.activateChildRoutes(e,t,o)}deactivateChildRoutes(o,e,t){const r=co(e);o.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),Xt(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(o,e,d.children)}else this.deactivateChildRoutes(o,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(o,e){o.value.component&&this.routeReuseStrategy.shouldDetach(o.value.snapshot)?this.detachAndStoreRouteSubtree(o,e):this.deactivateRouteAndOutlet(o,e)}detachAndStoreRouteSubtree(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=co(o);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(o.value.snapshot,{componentRef:d,route:o,contexts:s})}}deactivateRouteAndOutlet(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=co(o);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(o,e,t){const r=co(e);o.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new rc(l.value.snapshot))}),o.children.length&&this.forwardEvent(new Qo(o.value.snapshot))}activateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(Na(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(o,e,d.children)}else this.activateChildRoutes(o,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),Na(s.route.value),this.activateChildRoutes(o,null,d.children)}else{const s=Pn(r.snapshot),a=s?.get(i._Vd)??null;d.attachRef=null,d.route=r,d.resolver=a,d.injector=s,d.outlet&&d.outlet.activateWith(r,d.injector),this.activateChildRoutes(o,null,d.children)}}else this.activateChildRoutes(o,null,t)}}class Be{constructor(o){this.path=o,this.route=this.path[this.path.length-1]}}class il{constructor(o,e){this.component=o,this.route=e}}function nf(n,o,e){const t=n._root;return Ua(t,o?o._root:null,e,[t.value])}function Nt(n,o,e){return(Pn(o)??e).get(n)}function Ua(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=co(o);return n.children.forEach(d=>{(function ah(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=o?o.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const a=function Id(n,o,e){if("function"==typeof e)return e(n,o);switch(e){case"pathParamsChange":return!aa(n.url,o.url);case"pathParamsOrQueryParamsChange":return!aa(n.url,o.url)||!_n(n.queryParams,o.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xu(n,o)||!_n(n.queryParams,o.queryParams);default:return!Xu(n,o)}}(d,l,l.routeConfig.runGuardsAndResolvers);a?r.canActivateChecks.push(new Be(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Ua(n,o,l.component?s?s.children:null:e,t,r),a&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new il(s.outlet.component,d))}else d&&xs(o,s,r),r.canActivateChecks.push(new Be(t)),Ua(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]}),Xt(l,(d,s)=>xs(d,e.getContext(s),r)),r}function xs(n,o,e){const t=co(n),r=n.value;Xt(t,(l,d)=>{xs(l,r.component?o?o.children.getContext(d):null:o,e)}),e.canDeactivateChecks.push(new il(r.component&&o&&o.outlet&&o.outlet.isActivated?o.outlet.component:null,r))}function za(n){return"function"==typeof n}function Ga(n){return n instanceof eo.K||"EmptyError"===n?.name}const da=Symbol("INITIAL_VALUE");function Ss(){return(0,St.w)(n=>(0,Ra.a)(n.map(o=>o.pipe((0,Ot.q)(1),Et(da)))).pipe((0,Qe.U)(o=>{for(const e of o)if(!0!==e){if(e===da)return da;if(!1===e||e instanceof Oa)return e}return!0}),(0,Gt.h)(o=>o!==da),(0,Ot.q)(1)))}function po(n){return(0,to.z)((0,Bt.b)(o=>{if(Va(o))throw Jp(0,o)}),(0,Qe.U)(o=>!0===o))}const Ds={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uh(n,o,e,t,r){const l=hc(n,o,e);return l.matched?function dh(n,o,e,t){const r=o.canMatch;if(!r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function sh(n){return n&&za(n.canMatch)}(s)?s.canMatch(o,e):s(o,e);return br(a)});return(0,Ve.of)(l).pipe(Ss(),po())}(t=th(o,t),o,e).pipe((0,Qe.U)(d=>!0===d?l:{...Ds})):(0,Ve.of)(l)}function hc(n,o,e){if(""===o.path)return"full"===o.pathMatch&&(n.hasChildren()||e.length>0)?{...Ds}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(o.matcher||Me)(e,n,o);if(!r)return{...Ds};const l={};Xt(r.posParams,(s,a)=>{l[a]=s.path});const d=r.consumed.length>0?{...l,...r.consumed[r.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:d,positionalParamSegments:r.posParams??{}}}function qa(n,o,e,t,r="corrected"){if(e.length>0&&function cf(n,o,e){return e.some(t=>ua(n,o,t)&&sn(t)!==at)}(n,e,t)){const d=new Vt(o,function hh(n,o,e,t){const r={};r[at]=t,t._sourceSegment=n,t._segmentIndexShift=o.length;for(const l of e)if(""===l.path&&sn(l)!==at){const d=new Vt([],{});d._sourceSegment=n,d._segmentIndexShift=o.length,r[sn(l)]=d}return r}(n,o,t,new Vt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function df(n,o,e){return e.some(t=>ua(n,o,t))}(n,e,t)){const d=new Vt(n.segments,function zr(n,o,e,t,r,l){const d={};for(const s of t)if(ua(n,e,s)&&!r[sn(s)]){const a=new Vt([],{});a._sourceSegment=n,a._segmentIndexShift="legacy"===l?n.segments.length:o.length,d[sn(s)]=a}return{...r,...d}}(n,o,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:e}}const l=new Vt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=o.length,{segmentGroup:l,slicedSegments:e}}function ua(n,o,e){return(!(n.hasChildren()||o.length>0)||"full"!==e.pathMatch)&&""===e.path}function fo(n,o,e,t){return!!(sn(n)===t||t!==at&&ua(o,e,n))&&("**"===n.path||hc(o,n,e).matched)}function ph(n,o,e){return 0===o.length&&!n.children[e]}const Vd=!1;class al{constructor(o){this.segmentGroup=o||null}}class Gr{constructor(o){this.urlTree=o}}function ha(n){return(0,ir._)(new al(n))}function fh(n){return(0,ir._)(new Gr(n))}class mh{constructor(o,e,t,r,l){this.injector=o,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const o=qa(this.urlTree.root,[],[],this.config).segmentGroup,e=new Vt(o.segments,o.children);return this.expandSegmentGroup(this.injector,this.config,e,at).pipe((0,Qe.U)(l=>this.createUrlTree(Cs(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(l=>{if(l instanceof Gr)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof al?this.noMatchError(l):l}))}match(o){return this.expandSegmentGroup(this.injector,this.config,o.root,at).pipe((0,Qe.U)(r=>this.createUrlTree(Cs(r),o.queryParams,o.fragment))).pipe((0,O.K)(r=>{throw r instanceof al?this.noMatchError(r):r}))}noMatchError(o){return new i.vHH(4002,Vd)}createUrlTree(o,e,t){const r=so(o);return new Oa(r,e,t)}expandSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(o,e,t).pipe((0,Qe.U)(l=>new Vt([],l))):this.expandSegment(o,t,e,t.segments,r,!0)}expandChildren(o,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,Hn.b)(l=>{const d=t.children[l],s=uc(e,l);return this.expandSegmentGroup(o,s,d,l).pipe((0,Qe.U)(a=>({segment:a,outlet:l})))}),B((l,d)=>(l[d.outlet]=d.segment,l),{}),tt())}expandSegment(o,e,t,r,l,d){return(0,dn.D)(t).pipe((0,Hn.b)(s=>this.expandSegmentAgainstRoute(o,e,t,s,r,l,d).pipe((0,O.K)(c=>{if(c instanceof al)return(0,Ve.of)(null);throw c}))),(0,rr.P)(s=>!!s),(0,O.K)((s,a)=>{if(Ga(s))return ph(e,r,l)?(0,Ve.of)(new Vt([],{})):ha(e);throw s}))}expandSegmentAgainstRoute(o,e,t,r,l,d,s){return fo(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(o,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d):ha(e):ha(e)}expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(o,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(o,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?fh(l):this.lineralizeSegments(t,l).pipe((0,rn.z)(d=>{const s=new Vt(d,{});return this.expandSegment(o,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){const{matched:s,consumedSegments:a,remainingSegments:c,positionalParamSegments:u}=hc(e,r,l);if(!s)return ha(e);const h=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?fh(h):this.lineralizeSegments(r,h).pipe((0,rn.z)(f=>this.expandSegment(o,e,t,f.concat(c),d,!1)))}matchSegmentAgainstRoute(o,e,t,r,l){return"**"===t.path?(o=th(t,o),t.loadChildren?(t._loadedRoutes?(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(o,t)).pipe((0,Qe.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Vt(r,{})))):(0,Ve.of)(new Vt(r,{}))):uh(e,t,r,o).pipe((0,St.w)(({matched:d,consumedSegments:s,remainingSegments:a})=>d?this.getChildConfig(o=t._injector??o,t,r).pipe((0,rn.z)(u=>{const h=u.injector??o,f=u.routes,{segmentGroup:b,slicedSegments:V}=qa(e,s,a,f),ee=new Vt(b.segments,b.children);if(0===V.length&&ee.hasChildren())return this.expandChildren(h,f,ee).pipe((0,Qe.U)(Jt=>new Vt(s,Jt)));if(0===f.length&&0===V.length)return(0,Ve.of)(new Vt(s,{}));const he=sn(t)===l;return this.expandSegment(h,ee,f,V,he?at:l,!0).pipe((0,Qe.U)(Pt=>new Vt(s.concat(Pt.segments),Pt.children)))})):ha(e)))}getChildConfig(o,e,t){return e.children?(0,Ve.of)({routes:e.children,injector:o}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ve.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bd(n,o,e,t){const r=o.canLoad;if(void 0===r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function nl(n){return n&&za(n.canLoad)}(s)?s.canLoad(o,e):s(o,e);return br(a)});return(0,Ve.of)(l).pipe(Ss(),po())}(o,e,t).pipe((0,rn.z)(r=>r?this.configLoader.loadChildren(o,e).pipe((0,Bt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function hf(n){return(0,ir._)(Qp(Vd,3))}())):(0,Ve.of)({routes:[],injector:o})}lineralizeSegments(o,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ve.of)(t);if(r.numberOfChildren>1||!r.children[at])return(0,ir._)(new i.vHH(4e3,Vd));r=r.children[at]}}applyRedirectCommands(o,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),o,t)}applyRedirectCreateUrlTree(o,e,t,r){const l=this.createSegmentGroup(o,e.root,t,r);return new Oa(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(o,e){const t={};return Xt(o,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(o,e,t,r){const l=this.createSegments(o,e.segments,t,r);let d={};return Xt(e.children,(s,a)=>{d[a]=this.createSegmentGroup(o,s,t,r)}),new Vt(l,d)}createSegments(o,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(o,l,r):this.findOrReturn(l,t))}findPosParam(o,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Vd);return r}findOrReturn(o,e){let t=0;for(const r of e){if(r.path===o.path)return e.splice(t),r;t++}return o}}class jd{}class H{constructor(o,e,t,r,l,d,s,a){this.injector=o,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=s,this.urlSerializer=a}recognize(){const o=qa(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,o,at).pipe((0,Qe.U)(e=>{if(null===e)return null;const t=new ca([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},at,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new kn(t,e),l=new Ts(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(o){const e=o.value,t=oc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),o.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(o,e,t):this.processSegment(o,e,t,t.segments,r)}processChildren(o,e,t){return(0,dn.D)(Object.keys(t.children)).pipe((0,Hn.b)(r=>{const l=t.children[r],d=uc(e,r);return this.processSegmentGroup(o,d,l,r)}),B((r,l)=>r&&l?(r.push(...l),r):null),pi(r=>null!==r),(0,ye.d)(null),tt(),(0,Qe.U)(r=>{if(null===r)return null;const l=se(r);return function I(n){n.sort((o,e)=>o.value.outlet===at?-1:e.value.outlet===at?1:o.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(o,e,t,r,l){return(0,dn.D)(e).pipe((0,Hn.b)(d=>this.processSegmentAgainstRoute(d._injector??o,d,t,r,l)),(0,rr.P)(d=>!!d),(0,O.K)(d=>{if(Ga(d))return ph(t,r,l)?(0,Ve.of)([]):(0,Ve.of)(null);throw d}))}processSegmentAgainstRoute(o,e,t,r,l){if(e.redirectTo||!fo(e,t,r,l))return(0,Ve.of)(null);let d;if("**"===e.path){const s=r.length>0?Ia(r).parameters:{},a=Lt(t)+r.length,c=new ca(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),a,or(e),a);d=(0,Ve.of)({snapshot:c,consumedSegments:[],remainingSegments:[]})}else d=uh(t,e,r,o).pipe((0,Qe.U)(({matched:s,consumedSegments:a,remainingSegments:c,parameters:u})=>{if(!s)return null;const h=Lt(t)+a.length;return{snapshot:new ca(a,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),h,or(e),h),consumedSegments:a,remainingSegments:c}}));return d.pipe((0,St.w)(s=>{if(null===s)return(0,Ve.of)(null);const{snapshot:a,consumedSegments:c,remainingSegments:u}=s;o=e._injector??o;const h=e._loadedInjector??o,f=function N(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:V}=qa(t,c,u,f.filter(he=>void 0===he.redirectTo),this.relativeLinkResolution);if(0===V.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,Qe.U)(he=>null===he?null:[new kn(a,he)]));if(0===f.length&&0===V.length)return(0,Ve.of)([new kn(a,[])]);const ee=sn(e)===l;return this.processSegment(h,f,b,V,ee?at:l).pipe((0,Qe.U)(he=>null===he?null:[new kn(a,he)]))}))}}function W(n){const o=n.value.routeConfig;return o&&""===o.path&&void 0===o.redirectTo}function se(n){const o=[],e=new Set;for(const t of n){if(!W(t)){o.push(t);continue}const r=o.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):o.push(t)}for(const t of e){const r=se(t.children);o.push(new kn(t.value,r))}return o.filter(t=>!e.has(t))}function st(n){let o=n;for(;o._sourceSegment;)o=o._sourceSegment;return o}function Lt(n){let o=n,e=o._segmentIndexShift??0;for(;o._sourceSegment;)o=o._sourceSegment,e+=o._segmentIndexShift??0;return e-1}function qi(n){return n.data||{}}function or(n){return n.resolve||{}}const gh=Symbol("RouteTitle");function g_(n){return"string"==typeof n.title||null===n.title}function pf(n){return(0,St.w)(o=>{const e=n(o);return e?(0,dn.D)(e).pipe((0,Qe.U)(()=>o)):(0,Ve.of)(o)})}let Wa=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(l=>l.outlet===at);return t}getResolvedTitleForRoute(e){return e.data[gh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(ol)},providedIn:"root"}),n})(),ol=(()=>{class n extends Wa{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ae))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class lA{}class dA extends class cA{shouldDetach(o){return!1}store(o,e){}shouldAttach(o){return!1}retrieve(o){return null}shouldReuseRoute(o,e){return o.routeConfig===e.routeConfig}}{}const ff=new i.OlP("",{providedIn:"root",factory:()=>({})}),_h=new i.OlP("ROUTES");let mf=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ve.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=br(e.loadComponent()).pipe((0,Bt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Zt(()=>{this.componentLoaders.delete(e)})),r=new Fu(t,()=>new De.x).pipe(qo());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Qe.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let a,c,u=!1;Array.isArray(s)?c=s:(a=s.create(e).injector,c=Mi(a.get(_h,[],i.XFs.Self|i.XFs.Optional)));return{routes:c.map(nh),injector:a}}),Zt(()=>{this.childrenLoaders.delete(t)})),d=new Fu(l,()=>new De.x).pipe(qo());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return br(e()).pipe((0,rn.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,Ve.of)(t):(0,dn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hA{}class pA{shouldProcessUrl(o){return!0}extract(o){return o}merge(o,e){return o}}function h0(n){throw n}function fA(n,o,e){return o.parse("/")}const Nd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},b_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fc(){const n=(0,i.f3M)(Ba),o=(0,i.f3M)(dc),e=(0,i.f3M)(C.Ye),t=(0,i.f3M)(i.zs3),r=(0,i.f3M)(i.Sil),l=(0,i.f3M)(_h,{optional:!0})??[],d=(0,i.f3M)(ff,{optional:!0})??{},s=(0,i.f3M)(ol),a=(0,i.f3M)(Wa,{optional:!0}),c=(0,i.f3M)(hA,{optional:!0}),u=(0,i.f3M)(lA,{optional:!0}),h=new Li(null,n,o,e,t,r,Mi(l));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),h.titleStrategy=a??s,function $a(n,o){n.errorHandler&&(o.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(o.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(o.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(o.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(o.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(o.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(o.canceledNavigationResolution=n.canceledNavigationResolution)}(d,h),h}let Li=(()=>{class n{constructor(e,t,r,l,d,s,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=h0,this.malformedUriErrorHandler=fA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ve.of)(void 0),this.urlHandlingStrategy=new pA,this.routeReuseStrategy=new dA,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(mf),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new xd(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Ku(f)),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(a),this.currentUrlTree=function d_(){return new Oa(new Vt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=sc(this.currentUrlTree,this.rootComponentType),this.transitions=new ki({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Gt.h)(r=>0!==r.id),(0,Qe.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,St.w)(r=>{let l=!1,d=!1;return(0,Ve.of)(r).pipe((0,Bt.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,St.w)(s=>{const a=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==a||a!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return gf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,Ve.of)(s).pipe((0,St.w)(h=>{const f=this.transitions.getValue();return t.next(new As(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?yi.E:Promise.resolve(h)}),function Fd(n,o,e,t){return(0,St.w)(r=>function pc(n,o,e,t,r){return new mh(n,o,e,t,r).apply()}(n,o,e,r.extractedUrl,t).pipe((0,Qe.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Bt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function pa(n,o,e,t,r,l){return(0,rn.z)(d=>function T(n,o,e,t,r,l,d="emptyOnly",s="legacy"){return new H(n,o,e,t,r,d,s,l).recognize().pipe((0,St.w)(a=>null===a?function Yt(n){return new Gi.y(o=>o.error(n))}(new jd):(0,Ve.of)(a)))}(n,o,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,r,l).pipe((0,Qe.U)(s=>({...d,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Bt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"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 Jo(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,We=new As(f,this.serializeUrl(b),V,ee);t.next(We);const Pt=sc(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:Pt,urlAfterRedirects:b,extras:{...he,skipLocationChange:!1,replaceUrl:!1}},(0,Ve.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),yi.E}),(0,Bt.b)(s=>{const a=new Td(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(a)}),(0,Qe.U)(s=>r={...s,guards:nf(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Ri(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ve.of)({...e,guardsResult:!0}):function lh(n,o,e,t){return(0,dn.D)(n).pipe((0,rn.z)(r=>function lf(n,o,e,t,r){const l=o&&o.routeConfig?o.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ve.of)(!0);const d=l.map(s=>{const a=Nt(s,o,r);return br(function rf(n){return n&&za(n.canDeactivate)}(a)?a.canDeactivate(n,o,e,t):a(n,o,e,t)).pipe((0,rr.P)())});return(0,Ve.of)(d).pipe(Ss())}(r.component,r.route,e,o,t)),(0,rr.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,rn.z)(s=>s&&function p_(n){return"boolean"==typeof n}(s)?function ch(n,o,e,t){return(0,dn.D)(o).pipe((0,Hn.b)(r=>(0,La.z)(function rl(n,o){return null!==n&&o&&o(new Sd(n)),(0,Ve.of)(!0)}(r.route.parent,t),function Cr(n,o){return null!==n&&o&&o(new vs(n)),(0,Ve.of)(!0)}(r.route,t),function sf(n,o,e){const t=o[o.length-1],l=o.slice(0,o.length-1).reverse().map(d=>function rh(n){const o=n.routeConfig?n.routeConfig.canActivateChild:null;return o&&0!==o.length?{node:n,guards:o}:null}(d)).filter(d=>null!==d).map(d=>gr(()=>{const s=d.guards.map(a=>{const c=Nt(a,d.node,e);return br(function sr(n){return n&&za(n.canActivateChild)}(c)?c.canActivateChild(t,n):c(t,n)).pipe((0,rr.P)())});return(0,Ve.of)(s).pipe(Ss())}));return(0,Ve.of)(l).pipe(Ss())}(n,r.path,e),function af(n,o,e){const t=o.routeConfig?o.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ve.of)(!0);const r=t.map(l=>gr(()=>{const d=Nt(l,o,e);return br(function Od(n){return n&&za(n.canActivate)}(d)?d.canActivate(o,n):d(o,n)).pipe((0,rr.P)())}));return(0,Ve.of)(r).pipe(Ss())}(n,r.route,e))),(0,rr.P)(r=>!0!==r,!0))}(t,l,n,o):(0,Ve.of)(s)),(0,Qe.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,Bt.b)(s=>{if(r.guardsResult=s.guardsResult,Va(s.guardsResult))throw Jp(0,s.guardsResult);const a=new Md(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(a)}),(0,Gt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),pf(s=>{if(s.guards.canActivateChecks.length)return(0,Ve.of)(s).pipe((0,Bt.b)(a=>{const c=new ic(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),(0,St.w)(a=>{let c=!1;return(0,Ve.of)(a).pipe(function m_(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ve.of)(e);let l=0;return(0,dn.D)(r).pipe((0,Hn.b)(d=>function sl(n,o,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!g_(r)&&(l[gh]=r.title),function aA(n,o,e,t){const r=function sA(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,Ve.of)({});const l={};return(0,dn.D)(r).pipe((0,rn.z)(d=>function oA(n,o,e,t){const r=Nt(n,o,t);return br(r.resolve?r.resolve(o,e):r(o,e))}(n[d],o,e,t).pipe((0,rr.P)(),(0,Bt.b)(s=>{l[d]=s}))),$(1),(0,Kt.h)(l),(0,O.K)(d=>Ga(d)?yi.E:(0,ir._)(d)))}(l,n,o,t).pipe((0,Qe.U)(d=>(n._resolvedData=d,n.data=oc(n,e).resolve,r&&g_(r)&&(n.data[gh]=r.title),null)))}(d.route,t,n,o)),(0,Bt.b)(()=>l++),$(1),(0,rn.z)(d=>l===r.length?(0,Ve.of)(e):yi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Bt.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),(0,Bt.b)(a=>{const c=new nc(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}))}),pf(s=>{const a=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,Bt.b)(h=>{c.component=h}),(0,Qe.U)(()=>{})));for(const h of c.children)u.push(...a(h));return u};return(0,Ra.a)(a(s.targetSnapshot.root)).pipe((0,ye.d)(),(0,Ot.q)(1))}),pf(()=>this.afterPreactivation()),(0,Qe.U)(s=>{const a=function Zp(n,o,e){const t=ei(n,o._root,e?e._root:void 0);return new Ed(t,o)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),(0,Bt.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,o,e)=>(0,Qe.U)(t=>(new ho(o,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,Bt.b)({next(){l=!0},complete(){l=!0}}),Zt(()=>{l||d||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,O.K)(s=>{if(d=!0,Kp(s)){Hd(s)||(this.navigated=!0,this.restoreHistory(r,!0));const a=new zn(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(a),Hd(s)){const c=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gf(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const a=new Qu(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);t.next(a);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return yi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const s={...l};delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,l,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(nh),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:a}=t,c=r||this.routerState.root,u=a?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),zp(c,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Va(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 y_(n){for(let o=0;o{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 la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){if(this.disposed)return Promise.resolve(!1);let s,a,c;d?(s=d.resolve,a=d.reject,c=d.promise):c=new Promise((f,b)=>{s=f,a=b});const u=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...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){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new zn(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),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:function(){return fc()},providedIn:"root"}),n})();function gf(n){return"imperative"!==n}let mc=(()=>{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 De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(Gn),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})(),_f=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof la&&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:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(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:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(Gn),i.Y36(C.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})();class yh{}let f0=(()=>{class n{preload(e,t){return(0,Ve.of)(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mA=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Gt.h)(e=>e instanceof la),(0,Hn.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,i.MMx)(l.providers,e,`Route: ${l.path}`));const d=l._injector??e,s=l._loadedInjector??d;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?r.push(this.preloadConfig(d,l)):(l.children||l._loadedRoutes)&&r.push(this.processRoutes(s,l.children??l._loadedRoutes))}return(0,dn.D)(r).pipe((0,Ft.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ve.of)(null);const l=r.pipe((0,rn.z)(d=>null===d?(0,Ve.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,dn.D)([l,d]).pipe((0,Ft.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Li),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(yh),i.LFG(mf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yf=new i.OlP("");let gA=(()=>{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 As?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof lo&&(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 lo(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 C_=new i.OlP("ROUTER_FORROOT_GUARD"),wf=new i.OlP(""),wh=[C.Ye,{provide:Ba,useClass:Cd},{provide:Li,useFactory:fc},dc,{provide:Gn,useFactory:function A_(n){return n.routerState.root},deps:[Li]},mf];function Cf(){return new i.PXZ("Router",Li)}let Ch=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[wh,[],vf(e),{provide:C_,useFactory:Af,deps:[[Li,new i.FiY,new i.tp0]]},{provide:ff,useValue:t||{}},t?.useHash?{provide:C.S$,useClass:C.Do}:{provide:C.S$,useClass:C.b0},{provide:yf,useFactory:()=>{const n=(0,i.f3M)(Li),o=(0,i.f3M)(C.EM),e=(0,i.f3M)(ff);return e.scrollOffset&&o.setOffset(e.scrollOffset),new gA(n,o,e)}},t?.preloadingStrategy?S_(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Cf},t?.initialNavigation?yA(t):[],[{provide:T_,useFactory:bA},{provide:i.tb,multi:!0,useExisting:T_}]]}}static forChild(e){return{ngModule:n,providers:[vf(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C_,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Af(n){return"guarded"}function vf(n){return[{provide:_h,multi:!0,useValue:n}]}function bA(){const n=(0,i.f3M)(i.zs3);return o=>{const e=n.get(i.z2F);if(o!==e.components[0])return;const t=n.get(Li),r=n.get(M_);1===n.get(x_)&&t.initialNavigation(),n.get(wf,null,i.XFs.Optional)?.setUpPreloading(),n.get(yf,null,i.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const T_=new i.OlP("");function yA(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Li);return()=>{n.setUpLocationChangeListener()}}},{provide:x_,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:x_,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const o=n.get(C.V_,Promise.resolve(null));let e=!1;return()=>o.then(()=>new Promise(r=>{const l=n.get(Li),d=n.get(M_);(function t(r){n.get(Li).events.pipe((0,Gt.h)(d=>d instanceof la||d instanceof zn||d instanceof Qu),(0,Qe.U)(d=>d instanceof la||d instanceof zn&&(0===d.code||1===d.code)&&null),(0,Gt.h)(d=>null!==d),(0,Ot.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||d.closed?(0,Ve.of)(void 0):d),l.initialNavigation()}))}}]:[]]}const M_=new i.OlP("",{factory:()=>new De.x}),x_=new i.OlP("",{providedIn:"root",factory:()=>1});function S_(n){return[mA,{provide:wf,useExisting:mA},{provide:yh,useExisting:n}]}let Ah;try{Ah=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ah=!1}let ll,xi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,C.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&&!Ah)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vA(){if(ll)return ll;if("object"!=typeof document||!document)return ll=new Set(vh),ll;let n=document.createElement("input");return ll=new Set(vh.filter(o=>(n.setAttribute("type",o),n.type===o))),ll}let Ud,zd,Ar,gc;function fa(n){return function Mf(){if(null==Ud&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ud=!0}))}finally{Ud=Ud||!1}return Ud}()?n:!!n.capture}function D_(){if(null==Ar){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ar=!1,Ar;if("scrollBehavior"in document.documentElement.style)Ar=!0;else{const n=Element.prototype.scrollTo;Ar=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ar}function cl(){if("object"!=typeof document||!document)return 0;if(null==zd){const n=document.createElement("div"),o=n.style;n.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),zd=0,0===n.scrollLeft&&(n.scrollLeft=1,zd=0===n.scrollLeft?1:2),n.remove()}return zd}function _c(n){if(function TA(){if(null==gc){const n=typeof document<"u"?document.head:null;gc=!(!n||!n.createShadowRoot&&!n.attachShadow)}return gc}()){const o=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function Es(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const o=n.shadowRoot.activeElement;if(o===n)break;n=o}return n}function An(n){return n.composedPath?n.composedPath()[0]:n.target}function Th(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Zi(n,...o){return o.length?o.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var dl=M(8372);function Ef(n){return(0,Gt.h)((o,e)=>n<=e)}function ul(n,o=ge.y){return n=n??Z_,(0,nr.e)((e,t)=>{let r,l=!0;e.subscribe((0,En.x)(t,d=>{const s=o(d);(l||!n(r,s))&&(l=!1,r=s,t.next(d))}))})}function Z_(n,o){return n===o}var J_=M(5032);function Ke(n){return(0,nr.e)((o,e)=>{(0,Or.Xf)(n).subscribe((0,En.x)(e,()=>e.complete(),J_.Z)),!e.closed&&o.subscribe(e)})}function Fe(n){return null!=n&&"false"!=`${n}`}function Fi(n,o=0){return Q_(n)?Number(n):o}function Q_(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Hf(n){return Array.isArray(n)?n:[n]}function ji(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ji(n){return n instanceof i.SBq?n.nativeElement:n}let kf=(()=>{class n{create(e){return typeof MutationObserver>"u"?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})(),X_=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Ji(e);return new Gi.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 De.x,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(kf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bc=(()=>{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=Fe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Fi(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,dl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(X_),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})(),yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[kf]}),n})();const $d=new Set;let hl,Rf=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Lf}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function eb(n){if(!$d.has(n))try{hl||(hl=document.createElement("style"),hl.setAttribute("type","text/css"),document.head.appendChild(hl)),hl.sheet&&(hl.sheet.insertRule(`@media ${n} {body{ }}`,0),$d.add(n))}catch(o){console.error(o)}}(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 Lf(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let wc=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return tb(Hf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=tb(Hf(e)).map(d=>this._registerQuery(d).observable);let l=(0,Ra.a)(r);return l=(0,La.z)(l.pipe((0,Ot.q)(1)),l.pipe(Ef(1),(0,dl.b)(0))),l.pipe((0,Qe.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:a,query:c})=>{s.matches=s.matches||a,s.breakpoints[c]=a}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Gi.y(d=>{const s=a=>this._zone.run(()=>d.next(a));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Et(t),(0,Qe.U)(({matches:d})=>({query:e,matches:d})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Rf),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tb(n){return n.map(o=>o.split(",")).reduce((o,e)=>o.concat(e)).map(o=>o.trim())}function Cc(n,o){return(n.getAttribute(o)||"").match(/\S+/g)||[]}const ev="cdk-describedby-message",Zd="cdk-describedby-host";let If=0,Of=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+If++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+If++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Bf(t,r);"string"!=typeof t?(ab(t,this._id),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){if(!t||!this._isElementNode(e))return;const l=Bf(t,r);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const d=this._messageRegistry.get(l);d&&0===d.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zd}="${this._id}"]`);for(let t=0;t0!=r.indexOf(ev));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function KA(n,o,e){const t=Cc(n,o);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(o,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Zd,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function rb(n,o,e){const r=Cc(n,o).filter(l=>l!=e.trim());r.length?n.setAttribute(o,r.join(" ")):n.removeAttribute(o)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Zd)}_isElementDescribedByMessage(e,t){const r=Cc(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(C.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bf(n,o){return"string"==typeof n?`${o||""}/${n}`:n}function ab(n,o){n.id||(n.id=`${ev}-${o}-${If++}`)}class $r{constructor(o){this._items=o,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=xt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,o instanceof i.n_E&&o.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=!0){return this._wrap=o,this}withVerticalOrientation(o=!0){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Bt.b)(e=>this._pressedLetters.push(e)),(0,dl.b)(o),(0,Gt.h)(()=>this._pressedLetters.length>0),(0,Qe.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!o[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||Zi(o,"shiftKey"))&&(o.key&&1===o.key.length?this._letterKeyStream.next(o.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],o.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(o){const e=this._getItemsArray(),t="number"==typeof o?o:e.indexOf(o);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o)}_setActiveInWrapMode(o){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+o*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex+o,o)}_setActiveItemByIndex(o,e){const t=this._getItemsArray();if(t[o]){for(;this._skipPredicateFn(t[o]);)if(!t[o+=e])return;this.setActiveItem(o)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class tv extends $r{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles()}}class pl extends $r{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin)}}let Jd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function nv(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 iv(n){try{return n.frameElement}catch{return null}}(function lv(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Ff(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Ff(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function ob(n){let o=n.nodeName.toLowerCase(),e="input"===o&&n.type;return"text"===e||"password"===e||"select"===o||"textarea"===o}(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 ov(n){return!function rv(n){return function sv(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function sb(n){let o=n.nodeName.toLowerCase();return"input"===o||"select"===o||"button"===o||"textarea"===o}(n)||function av(n){return function kt(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vf(n))}(e)&&!this.isDisabled(e)&&(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 Vf(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let o=n.getAttribute("tabindex");return!(!o||isNaN(parseInt(o,10)))}function Ff(n){if(!Vf(n))return null;const o=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}class lb{constructor(o,e,t,r,l=!1){this._element=o,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(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}destroy(){const o=this._startAnchor,e=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.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(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(o)))})}focusFirstTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(o)))})}focusLastTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(o)))})}_getRegionBoundary(o){const e=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return"start"==o?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(o),!!t}return e.focus(o),!0}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){const e=this._getRegionBoundary("start");return e&&e.focus(o),!!e}focusLastTabbableElement(o){const e=this._getRegionBoundary("end");return e&&e.focus(o),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;const e=o.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 o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,e){o?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}_executeOnStable(o){this._ngZone.isStable?o():this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(o)}}let Qd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new lb(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Jd),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cb=(()=>{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=Fe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Fe(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=Es(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Ja(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Hh(n){const o=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!o||-1!==o.identifier||null!=o.radiusX&&1!==o.radiusX||null!=o.radiusY&&1!==o.radiusY)}const jf=new i.OlP("cdk-input-modality-detector-options"),Nf={ignoreKeys:[18,17,224,91,16]},Kd=fa({passive:!0,capture:!0});let sS=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new ki(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(s=>s===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=An(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ja(d)?"keyboard":"mouse"),this._mostRecentTarget=An(d))},this._onTouchstart=d=>{Hh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=An(d))},this._options={...Nf,...l},this.modalityDetected=this._modality.pipe(Ef(1)),this.modalityChanged=this.modalityDetected.pipe(ul()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Kd),r.addEventListener("mousedown",this._onMousedown,Kd),r.addEventListener("touchstart",this._onTouchstart,Kd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Kd),document.removeEventListener("mousedown",this._onMousedown,Kd),document.removeEventListener("touchstart",this._onTouchstart,Kd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(jf,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oS=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function uv(){return null}}),ub=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lS=(()=>{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(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let 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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let c=An(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=l,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const r=Ji(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ve.of)(null);const l=_c(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Ji(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=Ji(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,a])=>this._originChanged(s,t,a)):(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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=An(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,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,kh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,kh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(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,kh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,kh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let d=0;d{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(Tn))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const hb="cdk-high-contrast-black-on-white",Yf="cdk-high-contrast-white-on-black",Uf="cdk-high-contrast-active";let pb=(()=>{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(wc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,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}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Uf,hb,Yf),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Uf,hb):2===t&&e.add(Uf,Yf)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ph=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(pb))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[yc]}),n})();const hv=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function pv(){return(0,i.f3M)(C.K0)}}),fb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Si=(()=>{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 fv(n){const o=n?.toLowerCase()||"";return"auto"===o&&typeof navigator<"u"&&navigator?.language?fb.test(navigator.language)?"rtl":"ltr":"rtl"===o?"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(hv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function uS(n,o){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 vc(n,o){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 gb=["*"];let Rh=(()=>{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})(),ma=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const _v=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function _b(){return!0}});let ot=(()=>{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!Th()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(pb),i.LFG(_v,8),i.LFG(C.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bo,bo]}),n})();function dr(n){return class extends n{constructor(...o){super(...o),this._disabled=!1}get disabled(){return this._disabled}set disabled(o){this._disabled=Fe(o)}}}function Qa(n,o){return class extends n{constructor(...e){super(...e),this.defaultColor=o,this.color=o}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 Tr(n){return class extends n{constructor(...o){super(...o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(o){this._disableRipple=Fe(o)}}}function Tc(n,o=0){return class extends n{constructor(...e){super(...e),this._tabIndex=o,this.defaultTabIndex=o}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Fi(e):this.defaultTabIndex}}}function Mc(n){return class extends n{constructor(...o){super(...o),this.errorState=!1}updateErrorState(){const o=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==o&&(this.errorState=l,this.stateChanges.next())}}}function eu(n){return class extends n{constructor(...o){super(...o),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Gi.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(o){o.next(),o.complete()}}}const ks=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Gf(){return(0,i.f3M)(i.soG)}});class wi{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return null==o||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),r=this.isValid(e);return t&&r?!this.compareDate(o,e):t==r}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}}const ga=new i.OlP("mat-date-formats"),yv=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function qf(n,o){const e=Array(n);for(let t=0;t{class n extends wi{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 qf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return qf(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 qf(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,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(yv.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(ks,8),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const wv={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 wb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:yb}]}),n})(),Cv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ga,useValue:wv}],imports:[wb]}),n})(),fl=(()=>{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})(),Wf=(()=>{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 tu(n,o,e){n.nativeElement.classList.toggle(o,e)}let xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();class pS{constructor(o,e,t,r=!1){this._renderer=o,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Av={enterDuration:225,exitDuration:150},Cb=fa({passive:!0}),vv=["mousedown","touchstart"],Tv=["mouseup","mouseleave","touchend","touchcancel"];class Mv{constructor(o,e,t,r){this._target=o,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ji(t))}fadeInRipple(o,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Av,...t.animation};t.centered&&(o=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function mS(n,o,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(o-e.top),Math.abs(o-e.bottom));return Math.sqrt(t*t+r*r)}(o,e,r),s=o-r.left,a=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=a-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);const h=window.getComputedStyle(u),b=h.transitionDuration,V="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,ee=new pS(this,u,t,V);u.style.transform="scale3d(1, 1, 1)",ee.state=0,t.persistent||(this._mostRecentTransientRipple=ee);let he=null;return!V&&(c||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const We=()=>this._finishRippleTransition(ee),Pt=()=>this._destroyRipple(ee);u.addEventListener("transitionend",We),u.addEventListener("transitioncancel",Pt),he={onTransitionEnd:We,onTransitionCancel:Pt}}),this._activeRipples.set(ee,he),(V||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(o){if(2===o.state||3===o.state)return;const e=o.element,t={...Av,...o.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",o.state=2,(o._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(o)}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut()})}setupTriggerEvents(o){const e=Ji(o);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(vv))}handleEvent(o){"mousedown"===o.type?this._onMousedown(o):"touchstart"===o.type?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Tv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(o){0===o.state?this._startFadeOutTransition(o):2===o.state&&this._destroyRipple(o)}_startFadeOutTransition(o){const e=o===this._mostRecentTransientRipple,{persistent:t}=o.config;o.state=1,!t&&(!e||!this._isPointerDown)&&o.fadeOut()}_destroyRipple(o){const e=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=3,null!==e&&(o.element.removeEventListener("transitionend",e.onTransitionEnd),o.element.removeEventListener("transitioncancel",e.onTransitionCancel)),o.element.remove()}_onMousedown(o){const e=Ja(o),t=this._lastTouchStartEvent&&Date.now(){!o.config.persistent&&(1===o.state||o.config.terminateOnPointerUp&&0===o.state)&&o.fadeOut()}))}_registerEvents(o){this._ngZone.runOutsideAngular(()=>{o.forEach(e=>{this._triggerElement.addEventListener(e,this,Cb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(vv.forEach(o=>{this._triggerElement.removeEventListener(o,this,Cb)}),this._pointerUpEventsRegistered&&Tv.forEach(o=>{this._triggerElement.removeEventListener(o,this,Cb)}))}}const xv=new i.OlP("mat-ripple-global-options");let Mr=(()=>{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 Mv(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(xv,8),i.Y36(i.QbO,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})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})(),Lh=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),Zf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot]}),n})();const Jf=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),Tb=new i.OlP("MatOptgroup");let Mb=0;class Dv{constructor(o,e=!1){this.source=o,this.isUserInput=e}}let Qf=(()=>{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-"+Mb++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Fe(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)&&!Zi(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 Dv(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})(),Sc=(()=>{class n extends Qf{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(Jf,8),i.Y36(Tb,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:gb,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,uS,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,vc,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))},dependencies:[Mr,C.O5,Lh],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function Kf(n,o,e){if(e.length){let t=o.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:[hn,C.ez,ot,Zf]}),n})();const Ih=["mat-button",""],Dc=["*"],Oh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],iu=Qa(dr(Tr(class{constructor(n){this._elementRef=n}})));let jt=(()=>{class n extends iu{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 Oh)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(Tn),i.Y36(i.QbO,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(Mr,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:Ih,ngContentSelectors:Dc,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)(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()))},dependencies:[Mr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[hn,ot,ot]}),n})();var em=M(1144),ba=M(576),tm=M(3268);const im=["addListener","removeListener"],kv=["addEventListener","removeEventListener"],gS=["on","off"];function Ka(n,o,e,t){if((0,ba.m)(e)&&(t=e,e=void 0),t)return Ka(n,o,e).pipe((0,tm.Z)(t));const[r,l]=function Db(n){return(0,ba.m)(n.addEventListener)&&(0,ba.m)(n.removeEventListener)}(n)?kv.map(d=>s=>n[d](o,s,e)):function Pv(n){return(0,ba.m)(n.addListener)&&(0,ba.m)(n.removeListener)}(n)?im.map(nm(n,o)):function Sb(n){return(0,ba.m)(n.on)&&(0,ba.m)(n.off)}(n)?gS.map(nm(n,o)):[];if(!r&&(0,em.z)(n))return(0,rn.z)(d=>Ka(d,o,e))((0,Or.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new Gi.y(d=>{const s=(...a)=>d.next(1l(s)})}function nm(n,o){return e=>t=>n[e](o,t)}var Eb=M(4408);const Mn={schedule(n){let o=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Mn;t&&(o=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=o(l=>{e=void 0,n(l)});return new xt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:o}=Mn;return(o?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:o}=Mn;return(o?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var kb=M(7565);const Pb=new class _S extends kb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Hb extends Eb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=Mn.requestAnimationFrame(()=>o.flush(void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(Mn.cancelAnimationFrame(e),o._scheduled=void 0)}});let rm,Lb=1;const Bh={};function Ib(n){return n in Bh&&(delete Bh[n],!0)}const Ob={setImmediate(n){const o=Lb++;return Bh[o]=!0,rm||(rm=Promise.resolve()),rm.then(()=>Ib(o)&&n()),o},clearImmediate(n){Ib(n)}},{setImmediate:Bb,clearImmediate:Rv}=Ob,Vh={setImmediate(...n){const{delegate:o}=Vh;return(o?.setImmediate||Bb)(...n)},clearImmediate(n){const{delegate:o}=Vh;return(o?.clearImmediate||Rv)(n)},delegate:void 0},am=new class Fb extends kb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Vb extends Eb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=Vh.setImmediate(o.flush.bind(o,void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(Vh.clearImmediate(e),o._scheduled=void 0)}});var Fh=M(4986),sm=M(2805);function Iv(n,o=Fh.z){return function Lv(n){return(0,nr.e)((o,e)=>{let t=!1,r=null,l=null,d=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const c=r;r=null,e.next(c)}d&&e.complete()},a=()=>{l=null,d&&e.complete()};o.subscribe((0,En.x)(e,c=>{t=!0,r=c,l||(0,Or.Xf)(n(c)).subscribe(l=(0,En.x)(e,s,a))},()=>{d=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,sm.H)(n,o))}let wo=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Gi.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Iv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ve.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,Gt.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=Ji(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ka(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(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new Gi.y(d=>this.ngZone.runOutsideAngular(()=>Ka(this.elementRef.nativeElement,"scroll").pipe(Ke(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!=cl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==cl()?e.left=e.right:1==cl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;D_()?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==cl()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==cl()?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(wo),i.Y36(i.R0b),i.Y36(Si,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 De.x,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(Iv(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(C.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})(),_l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bo,Xa,bo,Xa]}),n})();class nu{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;null!=o&&(this._attachedHost=null,o.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(o){this._attachedHost=o}}class bl extends nu{constructor(o,e,t,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Ao extends nu{constructor(o,e,t,r){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}}class Yv extends nu{constructor(o){super(),this.element=o instanceof i.SBq?o.nativeElement:o}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){return o instanceof bl?(this._attachedPortal=o,this.attachComponentPortal(o)):o instanceof Ao?(this._attachedPortal=o,this.attachTemplatePortal(o)):this.attachDomPortal&&o instanceof Yv?(this._attachedPortal=o,this.attachDomPortal(o)):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(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class xS extends yl{constructor(o,e,t,r,l){super(),this.outletElement=o,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,a=this._document.createComment("dom-portal");s.parentNode.insertBefore(a,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=l}attachComponentPortal(o){const t=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component);let r;return o.viewContainerRef?(r=o.viewContainerRef.createComponent(t,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(o.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=o,r}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=o,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}}let DS=(()=>{class n extends Ao{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})(),es=(()=>{class n extends yl{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,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),vo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Ci=M(6451);const Nh=D_();class Uv{constructor(o,e){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}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=ji(-this._previousScrollPosition.left),o.style.top=ji(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,t=o.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,o.classList.remove("cdk-global-scrollblock"),Nh&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Nh&&(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 zv{constructor(o,e,t,r){this._scrollDispatcher=o,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(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 e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-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 Gb{enable(){}disable(){}attach(){}}function cm(n,o){return o.some(e=>n.bottome.bottom||n.righte.right)}function qb(n,o){return o.some(e=>n.tope.bottom||n.lefte.right)}class Gv{constructor(o,e,t,r){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=r,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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();cm(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 qv=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Gb,this.close=d=>new zv(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Uv(this._viewportRuler,this._document),this.reposition=d=>new Gv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wo),i.LFG(ya),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class To{constructor(o){if(this.scrollStrategy=new Gb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const e=Object.keys(o);for(const t of e)void 0!==o[t]&&(this[t]=o[t])}}}class ru{constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}}let Yh=(()=>{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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wv=(()=>{class n extends Yh{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let d=l.length-1;d>-1;d--)if(l[d]._keydownEvents.observers.length>0){const s=l[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ts=(()=>{class n extends Yh{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=An(l)},this._clickListener=l=>{const d=An(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const u=a[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(d)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(xi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mo=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Th()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(o);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){const o=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,o&&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={...this._config,...o},this._updateElementSize()}setDirection(o){this._config={...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=ji(this._config.width),o.height=ji(this._config.height),o.minWidth=ji(this._config.minWidth),o.minHeight=ji(this._config.minHeight),o.maxWidth=ji(this._config.maxWidth),o.maxHeight=ji(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._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(o){if(this._animationsDisabled)return void this._disposeBackdrop(o);o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",this._backdropTransitionendHandler)}),o.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(o)},500))}}_toggleClasses(o,e,t){const r=Hf(e||[]).filter(l=>!!l);r.length&&(t?o.classList.add(...r):o.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe(Ke((0,Ci.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.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",this._backdropTransitionendHandler),o.remove(),this._backdropElement===o&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const xo="cdk-overlay-connected-position-bounding-box",Uh=/([A-Za-z%]+)$/;class xr{constructor(o,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new De.x,this._resizeSubscription=xt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(o)}get positions(){return this._preferredPositions}attach(o){this._validatePositions(),o.hostElement.classList.add(xo),this._overlayRef=o,this._boundingBox=o.hostElement,this._pane=o.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let a=this._getOriginPoint(o,r,s),c=this._getOverlayPoint(a,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!d||d.overlayFit.visibleAreaa&&(a=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&&Rs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xo),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 e=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,e)}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,e,t){let r,l;if("center"==t.originX)r=o.left+o.width/2;else{const d=this._isRtl()?o.right:o.left,s=this._isRtl()?o.left:o.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?o.top+o.height/2:"top"==t.originY?o.top:o.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(o,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:o.x+r,y:o.y+l}}_getOverlayFit(o,e,t,r){const l=Cl(e);let{x:d,y:s}=o,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(d+=a),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(o,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=wl(this._overlayRef.getConfig().minHeight),s=wl(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=s&&s<=l;return(o.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(o,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const r=Cl(e),l=this._viewportRect,d=Math.max(o.x+r.width-l.width,0),s=Math.max(o.y+r.height-l.height,0),a=Math.max(l.top-t.top-o.y,0),c=Math.max(l.left-t.left-o.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:o.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=o.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-o.x+this._viewportMargin,u=o.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=o.x,u=t.right-o.x;else{const b=Math.min(t.right-o.x+t.left,o.x),V=this._lastBoundingBoxSize.width;u=2*b,h=o.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=o.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(o,e){const t=this._calculateBoundingBoxRect(o,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=ji(t.height),r.top=ji(t.top),r.bottom=ji(t.bottom),r.width=ji(t.width),r.left=ji(t.left),r.right=ji(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=ji(l)),d&&(r.maxWidth=ji(d))}this._lastBoundingBoxSize=t,Rs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Rs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Rs(t,this._getExactOverlayY(e,o,u)),Rs(t,this._getExactOverlayX(e,o,u))}else t.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=ji(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=ji(d.maxWidth):l&&(t.maxWidth="")),Rs(this._pane.style,t)}_getExactOverlayY(o,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===o.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=ji(l.y),r}_getExactOverlayX(o,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=ji(l.x),r}_getScrollVisibility(){const o=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qb(o,t),isOriginOutsideView:cm(o,t),isOverlayClipped:qb(e,t),isOverlayOutsideView:cm(e,t)}}_subtractOverflows(o,...e){return e.reduce((t,r)=>t-Math.max(r,0),o)}_getNarrowedViewportRect(){const o=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+o-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:o-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,e){return"x"===e?o.offsetX??this._offsetX:o.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&Hf(o).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof i.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const e=o.width||0,t=o.height||0;return{top:o.y,bottom:o.y+t,left:o.x,right:o.x+e,height:t,width:e}}}function Rs(n,o){for(let e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);return n}function wl(n){if("number"!=typeof n&&null!=n){const[o,e]=n.split(Uh);return e&&"px"!==e?null:parseFloat(o)}return n||null}function Cl(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 Al="cdk-global-overlay-wrapper";class kc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(o){const e=o.getConfig();this._overlayRef=o,this._width&&!e.width&&o.updateSize({width:this._width}),this._height&&!e.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(Al),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._xOffset=o,this._xPosition="left",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._xOffset=o,this._xPosition="right",this}start(o=""){return this._xOffset=o,this._xPosition="start",this}end(o=""){return this._xOffset=o,this._xPosition="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._xPosition="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,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,a=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",V="",ee="";a?ee="flex-start":"center"===u?(ee="center",f?V=h:b=h):f?"left"===u||"end"===u?(ee="flex-end",b=h):("right"===u||"start"===u)&&(ee="flex-start",V=h):"left"===u||"start"===u?(ee="flex-start",b=h):("right"===u||"end"===u)&&(ee="flex-end",V=h),o.position=this._cssPosition,o.marginLeft=a?"0":b,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=a?"0":V,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Al),t.justifyContent=t.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let Pc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new kc}flexibleConnectedTo(e){return new xr(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ya),i.LFG(C.K0),i.LFG(xi),i.LFG(Mo))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=0,pn=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=a,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new To(e);return d.direction=d.direction||this._directionality.value,new on(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Rc++,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 xS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qv),i.LFG(Mo),i.LFG(i._Vd),i.LFG(Pc),i.LFG(Wv),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Si),i.LFG(C.Ye),i.LFG(ts),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Wb=[{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"}],dm=new i.OlP("cdk-connected-overlay-scroll-strategy");let um=(()=>{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})(),hm=(()=>{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=xt.w0.EMPTY,this._attachSubscription=xt.w0.EMPTY,this._detachSubscription=xt.w0.EMPTY,this._positionSubscription=xt.w0.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 Ao(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=Fe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fe(e)}get push(){return this._push}set push(e){this._push=Fe(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=Wb);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&&!Zi(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 To({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 um?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(pi(()=>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(pn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(dm),i.Y36(Si,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 Zb={provide:dm,deps:[pn],useFactory:function $b(n){return()=>n.scrollStrategies.reposition()}};let vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[pn,Zb],imports:[bo,vo,_l,_l]}),n})();class pm{}const Ls="*";function hi(n,o){return{type:7,name:n,definitions:o,options:{}}}function yt(n,o=null){return{type:4,styles:o,timings:n}}function zh(n,o=null){return{type:3,steps:n,options:o}}function fm(n,o=null){return{type:2,steps:n,options:o}}function Pe(n){return{type:6,styles:n,offset:null}}function Dt(n,o,e){return{type:0,name:n,styles:o,options:e}}function Tl(n){return{type:5,steps:n}}function _t(n,o,e=null){return{type:1,expr:n,animation:o,options:e}}function Lc(n=null){return{type:9,options:n}}function Rn(n,o,e=null){return{type:11,selector:n,animation:o,options:e}}function Gh(n){Promise.resolve(null).then(n)}class Ic{constructor(o=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=o+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class qh{constructor(o){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=o;let e=0,t=0,r=0;const l=this.players.length;0==l?Gh(()=>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(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){const e=o*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const o=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=o?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Jb=["connectionContainer"],_m=["inputContainer"],bm=["label"];function Jv(n,o){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function Qb(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Kb(n,o){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 Xb(n,o){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function ey(n,o){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Qv(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,Kb,4,1,"ng-container",12),i.YNc(3,Xb,1,0,"ng-content",12),i.YNc(4,ey,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 ty(n,o){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function iy(n,o){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 ym(n,o){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 wm(n,o){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 ny(n,o){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,wm,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 ry=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ay=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let sy=0;const Cm=new i.OlP("MatError");let is=(()=>{class n{constructor(e,t){this.id="mat-error-"+sy++,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:Cm,useExisting:n}])]}),n})();const oy={transitionMessages:hi("transitionMessages",[Dt("enter",Pe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Pe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),ly=0;const cy=new i.OlP("MatHint");let fn=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+ly++}}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:cy,useExisting:n}])]}),n})(),wa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Kv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Xv=new i.OlP("MatPrefix"),dy=new i.OlP("MatSuffix");let $h=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:dy,useExisting:n}])]}),n})(),Am=0;const tT=Qa(class{constructor(n){this._elementRef=n}},"primary"),hy=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zh=new i.OlP("MatFormField");let Wn=(()=>{class n extends tT{constructor(e,t,r,l,d,s,a){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 De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Am++,this._labelId="mat-form-field-label-"+Am++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fe(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(Et(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ci.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Et(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Et(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ka(this._label.nativeElement,"transitionend").pipe((0,Ot.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:[C.ez,ot,yc,ot]}),n})();function Fc(n){return n&&"function"==typeof n.connect}class py{applyChanges(o,e,t,r,l){o.forEachOperation((d,s,a)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,a);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==a?(e.remove(s),u=3):(c=e.get(s),e.move(c,a),u=2);l&&l({context:c?.context,operation:u,record:d})})}detach(){}}class si{constructor(o=!1,e,t=!0,r){this._multiple=o,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(o?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,t=new Set(o);o.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,o))return!0;return!1}return this._selection.has(o)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let Sr=(()=>{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 jc=new i.OlP("_ViewRepeater");var fy=M(4742),iT=M(1810);function Mm(...n){const o=(0,_r.jO)(n),{args:e,keys:t}=(0,fy.D)(n),r=new Gi.y(l=>{const{length:d}=e;if(!d)return void l.complete();const s=new Array(d);let a=d,c=d;for(let u=0;u{h||(h=!0,c--),s[u]=f},()=>a--,void 0,()=>{(!a||!h)&&(c||l.next(t?(0,iT.n)(t,s):s),l.complete())}))}});return o?r.pipe((0,tm.Z)(o)):r}let my=(()=>{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})(),Ml=(()=>{class n extends my{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const xn=new i.OlP("NgValueAccessor"),_y={provide:xn,useExisting:(0,i.Gpc)(()=>Ln),multi:!0},by=new i.OlP("CompositionEventMode");let Ln=(()=>{class n extends my{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nT(){const n=(0,C.q)()?(0,C.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(by,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([_y]),i.qOj]}),n})();function So(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function xm(n){return null!=n&&"number"==typeof n.length}const ln=new i.OlP("NgValidators"),rs=new i.OlP("NgAsyncValidators"),Qh=/^(?=.{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(o){return function Sm(n){return o=>{if(So(o.value)||So(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e{if(So(o.value)||So(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}(o)}static required(o){return Kh(o)}static requiredTrue(o){return function Em(n){return!0===n.value?null:{required:!0}}(o)}static email(o){return function Hm(n){return So(n.value)||Qh.test(n.value)?null:{email:!0}}(o)}static minLength(o){return function km(n){return o=>So(o.value)||!xm(o.value)?null:o.value.lengthxm(o.value)&&o.value.length>n?{maxlength:{requiredLength:n,actualLength:o.value.length}}:null}(o)}static pattern(o){return function Rm(n){if(!n)return Xh;let o,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(So(t.value))return null;const r=t.value;return o.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(o)}static nullValidator(o){return null}static compose(o){return Ty(o)}static composeAsync(o){return My(o)}}function Kh(n){return So(n.value)?{required:!0}:null}function Xh(n){return null}function yy(n){return null!=n}function wy(n){return(0,i.QGY)(n)?(0,dn.D)(n):n}function Cy(n){let o={};return n.forEach(e=>{o=null!=e?{...o,...e}:o}),0===Object.keys(o).length?null:o}function Ay(n,o){return o.map(e=>e(n))}function vy(n){return n.map(o=>function rT(n){return!n.validate}(o)?o:e=>o.validate(e))}function Ty(n){if(!n)return null;const o=n.filter(yy);return 0==o.length?null:function(e){return Cy(Ay(e,o))}}function Lm(n){return null!=n?Ty(vy(n)):null}function My(n){if(!n)return null;const o=n.filter(yy);return 0==o.length?null:function(e){return Mm(Ay(e,o).map(wy)).pipe((0,Qe.U)(Cy))}}function Im(n){return null!=n?My(vy(n)):null}function xy(n,o){return null===n?[o]:Array.isArray(n)?[...n,o]:[n,o]}function Sy(n){return n._rawValidators}function Dy(n){return n._rawAsyncValidators}function Om(n){return n?Array.isArray(n)?n:[n]:[]}function ep(n,o){return Array.isArray(n)?n.includes(o):n===o}function Ey(n,o){const e=Om(o);return Om(n).forEach(r=>{ep(e,r)||e.push(r)}),e}function Bm(n,o){return Om(o).filter(e=>!ep(n,e))}class Vm{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(o){this._rawValidators=o||[],this._composedValidatorFn=Lm(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Im(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o){this.control&&this.control.reset(o)}hasError(o,e){return!!this.control&&this.control.hasError(o,e)}getError(o,e){return this.control?this.control.getError(o,e):null}}class In extends Vm{get formDirective(){return null}get path(){return null}}class Zr extends Vm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Fm{constructor(o){this._cd=o}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $n=(()=>{class n extends Fm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),jm=(()=>{class n extends Fm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In,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.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const Do="VALID",Sl="INVALID",bi="PENDING",tp="DISABLED";function ip(n){return(du(n)?n.validators:n)||null}function Um(n){return Array.isArray(n)?Lm(n):n||null}function zm(n,o){return(du(o)?o.asyncValidators:n)||null}function Gm(n){return Array.isArray(n)?Im(n):n||null}function du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function qm(n,o,e){const t=n.controls;if(!(o?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function Wm(n,o,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class np{constructor(o,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=o,this._rawAsyncValidators=e,this._composedValidatorFn=Um(this._rawValidators),this._composedAsyncValidatorFn=Gm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get valid(){return this.status===Do}get invalid(){return this.status===Sl}get pending(){return this.status==bi}get disabled(){return this.status===tp}get enabled(){return this.status!==tp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._rawValidators=o,this._composedValidatorFn=Um(o)}setAsyncValidators(o){this._rawAsyncValidators=o,this._composedAsyncValidatorFn=Gm(o)}addValidators(o){this.setValidators(Ey(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Ey(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Bm(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Bm(o,this._rawAsyncValidators))}hasValidator(o){return ep(this._rawValidators,o)}hasAsyncValidator(o){return ep(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){this.touched=!0,this._parent&&!o.onlySelf&&this._parent.markAsTouched(o)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(o=>o.markAllAsTouched())}markAsUntouched(o={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}markAsDirty(o={}){this.pristine=!1,this._parent&&!o.onlySelf&&this._parent.markAsDirty(o)}markAsPristine(o={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}markAsPending(o={}){this.status=bi,!1!==o.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!o.onlySelf&&this._parent.markAsPending(o)}disable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=tp,this.errors=null,this._forEachChild(t=>{t.disable({...o,onlySelf:!0})}),this._updateValue(),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=Do,this._forEachChild(t=>{t.enable({...o,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Do||this.status===bi)&&this._runAsyncValidator(o.emitEvent)),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(o)}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tp:Do}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o){if(this.asyncValidator){this.status=bi,this._hasOwnPendingAsyncValidator=!0;const e=wy(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:o})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(!1!==e.emitEvent)}get(o){let e=o;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(o,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(o)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?tp:this.errors?Sl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bi)?bi:this._anyControlsHaveStatus(Sl)?Sl:Do}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o={}){this.pristine=!this._anyControlsDirty(),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}_updateTouched(o={}){this.touched=this._anyControlsTouched(),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){du(o)&&null!=o.updateOn&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(o){return null}}class rp extends np{constructor(o,e,t){super(ip(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){Wm(this,0,o),Object.keys(o).forEach(t=>{qm(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(Object.keys(o).forEach(t=>{const r=this.controls[t];r&&r.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}}function sp(n,o){return[...o.path,n]}function Eo(n,o){$m(n,o),o.valueAccessor.writeValue(n.value),n.disabled&&o.valueAccessor.setDisabledState?.(!0),function pu(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ry(n,o)})}(n,o),function fT(n,o){const e=(t,r)=>{o.valueAccessor.writeValue(t),r&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,o),function pT(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ry(n,o),"submit"!==n.updateOn&&n.markAsTouched()})}(n,o),function Py(n,o){if(o.valueAccessor.setDisabledState){const e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,o)}function uu(n,o,e=!0){const t=()=>{};o.valueAccessor&&(o.valueAccessor.registerOnChange(t),o.valueAccessor.registerOnTouched(t)),Ho(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function hu(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function $m(n,o){const e=Sy(n);null!==o.validator?n.setValidators(xy(e,o.validator)):"function"==typeof e&&n.setValidators([e]);const t=Dy(n);null!==o.asyncValidator?n.setAsyncValidators(xy(t,o.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();hu(o._rawValidators,r),hu(o._rawAsyncValidators,r)}function Ho(n,o){let e=!1;if(null!==n){if(null!==o.validator){const r=Sy(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==o.asyncValidator){const r=Dy(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return hu(o._rawValidators,t),hu(o._rawAsyncValidators,t),e}function Ry(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Zm(n,o){$m(n,o)}function Qm(n,o){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(o,e.currentValue)}function _T(n,o){n._syncPendingControls(),o.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Iy(n,o){if(!o)return null;let e,t,r;return Array.isArray(o),o.forEach(l=>{l.constructor===Ln?e=l:function FS(n){return Object.getPrototypeOf(n.constructor)===Ml}(l)?t=l:r=l}),r||t||e||null}const op={provide:In,useExisting:(0,i.Gpc)(()=>Dl)},fu=(()=>Promise.resolve(null))();let Dl=(()=>{class n extends In{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new rp({},Lm(e),Im(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Eo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path),r=new rp({});Zm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){fu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_T(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(ln,10),i.Y36(rs,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([op]),i.qOj]}),n})();function Km(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}function Uc(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const zc=class extends np{constructor(o=null,e,t){super(ip(e),zm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Uc(o)?o.value:o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Km(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Km(this._onDisabledChange,o)}_forEachChild(o){}_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(o){Uc(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},Qi=zc,Vy={provide:Zr,useExisting:(0,i.Gpc)(()=>El)},Fy=(()=>Promise.resolve(null))();let El=(()=>{class n extends Zr{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new zc,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Iy(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),Qm(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(){Eo(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){Fy.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);Fy.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?sp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In,9),i.Y36(ln,10),i.Y36(rs,10),i.Y36(xn,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([Vy]),i.qOj,i.TTD]}),n})(),jy=(()=>{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})(),eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const mu=new i.OlP("NgModelWithFormControlWarning"),AT={provide:Zr,useExisting:(0,i.Gpc)(()=>Dr)};let Dr=(()=>{class n extends Zr{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=Iy(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&uu(t,this,!1),Eo(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Qm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uu(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(ln,10),i.Y36(rs,10),i.Y36(xn,10),i.Y36(mu,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([AT]),i.qOj,i.TTD]}),n})();const vT={provide:In,useExisting:(0,i.Gpc)(()=>Hl)};let Hl=(()=>{class n extends In{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&&(Ho(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 Eo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){uu(e.control||null,e,!1),function jS(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,_T(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&&(uu(t||null,e),(n=>n instanceof zc)(r)&&(Eo(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Zm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Ly(n,o){return Ho(n,o)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$m(this.form,this),this._oldForm&&Ho(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(rs,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([vT]),i.qOj,i.TTD]}),n})();const xT={provide:Zr,useExisting:(0,i.Gpc)(()=>lp)};let lp=(()=>{class n extends Zr{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=Iy(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Qm(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 sp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(In,13),i.Y36(ln,10),i.Y36(rs,10),i.Y36(xn,10),i.Y36(mu,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([xT]),i.qOj,i.TTD]}),n})(),Os=(()=>{class n{constructor(){this._validator=Xh}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):Xh,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 kT={provide:ln,useExisting:(0,i.Gpc)(()=>as),multi:!0};let as=(()=>{class n extends Os{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>Kh}enabled(e){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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([kT]),i.qOj]}),n})(),tw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[eg]}),n})(),dg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tw]}),n})(),ko=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:mu,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tw]}),n})();class IT extends np{constructor(o,e,t){super(ip(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){this.controls.push(o),this._registerControl(o),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let r=this._adjustIndex(o);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){Wm(this,0,o),o.forEach((t,r)=>{qm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(o.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(const o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}}function iw(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let ZS=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return iw(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new rp(r,l)}control(e,t,r){let l={};return this.useNonNullable?(iw(t)?l=t:(l.validators=t,l.asyncValidators=r),new zc(e,{...l,nonNullable:!0})):new zc(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new IT(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zc||e instanceof np?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:ko}),n})(),BT=(()=>{class n extends ZS{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:ko}),n})();const nw=["trigger"],rw=["panel"];function aw(n,o){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 VT(n,o){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 FT(n,o){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function jT(n,o){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,VT,2,1,"span",10),i.YNc(2,FT,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 NT(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),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 YT=[[["mat-select-trigger"]],"*"],UT=["mat-select-trigger","*"],sw={transformPanelWrap:hi("transformPanelWrap",[_t("* => void",Rn("@transformPanel",[Lc()],{optional:!0}))]),transformPanel:hi("transformPanel",[Dt("void",Pe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Dt("showing",Pe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Dt("showing-multiple",Pe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",yt("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))])};let ug=0;const hg=new i.OlP("mat-select-scroll-strategy"),$T=new i.OlP("MAT_SELECT_CONFIG"),ZT={provide:hg,deps:[pn],useFactory:function lw(n){return()=>n.scrollStrategies.reposition()}};class _u{constructor(o,e){this.source=o,this.value=e}}const JT=Tr(Tc(dr(Mc(class{constructor(n,o,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=o,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),pg=new i.OlP("MatSelectTrigger");let QT=(()=>{class n extends JT{constructor(e,t,r,l,d,s,a,c,u,h,f,b,V,ee){super(d,l,a,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=(he,We)=>he===We,this._uid="mat-select-"+ug++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ug++,this._panelDoneAnimatingStream=new De.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=gr(()=>{const he=this.options;return he?he.changes.pipe(Et(he),(0,St.w)(()=>(0,Ci.T)(...he.map(We=>We.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ot.q)(1),(0,St.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Gt.h)(he=>he),(0,Qe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Gt.h)(he=>!he),(0,Qe.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=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(){return this._required??this.ngControl?.control?.hasValidator(Ii.required)??!1}set required(e){this._required=Fe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Fe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Fi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new si(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ul(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Et(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Zi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.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||Zi(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(a=>!a.disabled&&!a.selected);this.options.forEach(a=>{a.disabled||(s?a.select():a.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,Ot.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new tv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Ci.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ci.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(fl),i.Y36(i.SBq),i.Y36(Si,8),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36(Zh,8),i.Y36(Zr,10),i.$8M("tabindex"),i.Y36(hg),i.Y36(lS),i.Y36($T,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(nw,5),i.Gf(rw,5),i.Gf(hm,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:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Po=(()=>{class n extends QT{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(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Ot.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=Kf(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Ev(n,o,e,t){return ne+t?Math.max(0,n-t+o):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 _u(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)),a=e.right+d-t.width+(r?0:l);s>0?d+=s+8:a>0&&(d-=a+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 a;return this.disableOptionCentering?0:(a=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*a-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+=Kf(s,this.options,this.optionGroups);const a=r/2;this._scrollTop=this._calculateOverlayScroll(s,a,d),this._offsetY=this._calculateOverlayOffsetY(s,a,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 o;return function(t){return(o||(o=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,pg,5),i.Suo(r,Sc,5),i.Suo(r,Tb,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:19,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-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:Oc,useExisting:n},{provide:Jf,useExisting:n}]),i.qOj],ngContentSelectors:UT,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(YT),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,aw,2,1,"span",3),i.YNc(5,jT,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,NT,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)}},dependencies:[C.mk,C.RF,C.n9,C.ED,hm,um],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[sw.transformPanelWrap,sw.transformPanel]},changeDetection:0}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[ZT],imports:[C.ez,vl,Xf,ot,Xa,Vc,Xf,ot]}),n})();const KT=["tooltip"],bu="tooltip-panel",yu=fa({passive:!0}),fg=new i.OlP("mat-tooltip-scroll-strategy"),mg={provide:fg,deps:[pn],useFactory:function cw(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},dw=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function tM(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let iM=(()=>{class n{constructor(e,t,r,l,d,s,a,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=a,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Fi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Fi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,yu)}),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 bl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${bu}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Zi(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...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,Ot.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY: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 a=`${this._cssClassPrefix}-${bu}-`;s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,yu)})}_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 iM{constructor(e,t,r,l,d,s,a,c,u,h,f,b){super(e,t,r,l,d,s,a,c,u,h,f,b),this._tooltipComponent=_g}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pn),i.Y36(i.SBq),i.Y36(wo),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(xi),i.Y36(Of),i.Y36(Tn),i.Y36(fg),i.Y36(Si,8),i.Y36(dw,8),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),gg=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),_g=(()=>{class n extends gg{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(wc),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(KT,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[C.mk,C.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),Jc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[mg],imports:[Ph,C.ez,vl,ot,ot,Xa]}),n})();function bg(n,o){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function nM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,bg,2,2,"mat-option",18),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)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function rM(n,o){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 aM(n,o){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,nM,3,8,"mat-form-field",14),i.YNc(4,rM,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 sM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),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 hw(n,o){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),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 Qc=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const 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 fw={provide:Qc,deps:[[new i.FiY,new i.tp0,Qc]],useFactory:function pw(n){return n||new Qc}},lM=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),gw=dr(eu(class{}));let _w=(()=>{class n extends gw{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:a}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=a&&(this._showFirstLastButtons=a)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Fi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Fi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Fi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Fi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Fe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Fe(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",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),bw=(()=>{class n extends _w{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(Qc),i.Y36(i.sBO),i.Y36(lM,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","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,aM,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,sM,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.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.YNc(13,hw,3,5,"button",11),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))},dependencies:[C.sg,C.O5,jt,Wn,Po,Sc,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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fw],imports:[C.ez,_a,Ro,Jc,ot]}),n})();var yg=M(1005);const Zn=["mat-menu-item",""];function Kc(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const yw=["*"];function cM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),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 wg={transformMenu:hi("transformMenu",[Dt("void",Pe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Pe({opacity:1,transform:"scale(1)"}))),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))]),fadeInItems:hi("fadeInItems",[Dt("showing",Pe({opacity:1})),_t("void => *",[Pe({opacity:0}),yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ww=new i.OlP("MatMenuContent"),Cg=new i.OlP("MAT_MENU_PANEL"),hM=Tr(dr(class{}));let ss=(()=>{class n extends hM{constructor(e,t,r,l,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=xt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,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-"+vw++}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=Fe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(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 pl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,St.w)(e=>(0,Ci.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),l=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[l]&&!r[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,St.w)(t=>(0,Ci.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Zi(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,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,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Et(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(Aw),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ww,5),i.Suo(r,ss,5),i.Suo(r,ss,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})(),Cu=(()=>{class n extends Xc{constructor(e,t,r,l){super(e,t,r,l),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(Aw),i.Y36(i.sBO))},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:Cg,useExisting:n}]),i.qOj],ngContentSelectors:yw,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,cM,3,6,"ng-template"))},dependencies:[C.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[wg.transformMenu,wg.fadeInItems]},changeDetection:0}),n})();const fp=new i.OlP("mat-menu-scroll-strategy"),Tw={provide:fp,deps:[pn],useFactory:function tD(n){return()=>n.scrollStrategies.reposition()}},vg=fa({passive:!0});let ed=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=a,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xt.w0.EMPTY,this._hoverSubscription=xt.w0.EMPTY,this._menuCloseSubscription=xt.w0.EMPTY,this._handleTouchStart=h=>{Hh(h)||(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 Xc?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,vg),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vg),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Xc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Xc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Gt.h)(r=>"void"===r.toState),(0,Ot.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new To({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",d="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,d)):e.setPositionClasses(l,d)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[d,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[a,c]=[d,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(a="top"===d?"bottom":"top",c="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:a,overlayX:u,overlayY:d,offsetY:f},{originX:l,originY:a,overlayX:h,overlayY:d,offsetY:f},{originX:r,originY:c,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:c,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ve.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Gt.h)(d=>d!==this._menuItemInstance),(0,Gt.h)(()=>this._menuOpen)):(0,Ve.of)();return(0,Ci.T)(e,r,l,t)}_handleMousedown(e){Ja(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,Gt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,yg.g)(0,am)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ot.q)(1),(0,yg.g)(0,am),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ao(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(fp),i.Y36(Cg,8),i.Y36(ss,10),i.Y36(Si,8),i.Y36(Tn),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,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-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Mw=(()=>{class n extends ed{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Tw],imports:[C.ez,ot,hn,vl,Xa,ot]}),n})();var mp=M(3099);const nD=["*"];let gp;function vu(n){return function rD(){if(void 0===gp&&(gp=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(gp=n.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return gp}()?.createHTML(n)||n}function xw(n){return Error(`Unable to find icon with the name "${n}"`)}function Tg(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Mg(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Pl{constructor(o,e,t){this.url=o,this.svgText=e,this.options=t}}let Lo=(()=>{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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Pl(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 Mg(r);const s=vu(d);return this._addSvgIconConfig(e,t,new Pl("",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 Pl(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Mg(t);const d=vu(l);return this._addSvgIconSetConfig(e,new Pl("",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 Tg(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ve.of)(_p(r)):this._loadSvgIconFromConfig(new Pl(e,null)).pipe((0,Bt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Qe.U)(l=>_p(l)))}getNamedSvgIcon(e,t=""){const r=xg(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,ir._)(xw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ve.of)(_p(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Qe.U)(t=>_p(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ve.of)(r):Mm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,O.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,Ve.of)(null)})))).pipe((0,Qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw xw(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,Bt.b)(t=>e.svgText=t),(0,Qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ve.of)(null):this._fetchIcon(e).pipe((0,Bt.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(vu(""));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(vu("")),r=e.attributes;for(let l=0;lvu(c)),Zt(()=>this._inProgressUrlFetches.delete(d)),(0,mp.B)());return this._inProgressUrlFetches.set(d,a),a}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(xg(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;ro?o.pathname+o.search:""}}}),Pw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],mM=Pw.map(n=>`[${n}]`).join(", "),sD=/^url\(['"]?#(.*?)['"]?\)$/;let Di=(()=>{class n extends Dw{constructor(e,t,r,l,d,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=xt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Fe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(mM),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],a=s.getAttribute(d),c=a?a.match(sD):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,Ot.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(Lo),i.$8M("aria-hidden"),i.Y36(Hw),i.Y36(i.qLn),i.Y36(Ew,8))},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:nD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),Rl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function Vs(n){return!!n&&(n instanceof Gi.y||(0,ba.m)(n.lift)&&(0,ba.m)(n.subscribe))}var oD=M(6063);class lD extends De.x{constructor(o=1/0,e=1/0,t=oD.l){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:d}=this;e||(t.push(o),!r&&t.push(l.now()+d)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let d=0;dnew lD(t,o,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class bp{}let _M=(()=>{class n extends bp{getTranslation(e){return(0,Ve.of)({})}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Rw{}let Tu=(()=>{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 Sg(n,o){if(n===o)return!0;if(null===n||null===o)return!1;if(n!=n&&o!=o)return!0;let r,l,d,e=typeof n;if(e==typeof o&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(o))return!1;for(l in d=Object.create(null),n){if(!Sg(n[l],o[l]))return!1;d[l]=!0}for(l in o)if(!(l in d)&&typeof o[l]<"u")return!1;return!0}if(!Array.isArray(o))return!1;if((r=n.length)==o.length){for(l=0;l{td(o[t])?t in n?e[t]=Dg(n[t],o[t]):Object.assign(e,{[t]:o[t]}):Object.assign(e,{[t]:o[t]})}),e}class Mu{}let bM=(()=>{class n extends Mu{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(),!Fs(e)||!Fs(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 Fs(d)?d:r}):e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class id{}let Eg=(()=>{class n extends id{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Lw{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 yp=new i.OlP("USE_STORE"),Iw=new i.OlP("USE_DEFAULT_LANG"),Hg=new i.OlP("DEFAULT_LANGUAGE"),kg=new i.OlP("USE_EXTEND");let Yi=(()=>{class n{constructor(e,t,r,l,d,s=!0,a=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=a,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ve.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ve.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(gM(1),(0,Ot.q)(1));return this.loadingTranslations=t.pipe((0,Qe.U)(r=>this.compiler.compileTranslations(r,e)),gM(1),(0,Ot.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?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={},s=!1;for(let a of t)d[a]=this.getParsedResult(e,a,r),Vs(d[a])&&(s=!0);return s?Mm(t.map(c=>Vs(d[c])?d[c]:(0,Ve.of)(d[c]))).pipe((0,Qe.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)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let d={key:t,translateService:this};typeof r<"u"&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return typeof l<"u"?l:t}get(e,t){if(!Fs(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Hn.b)(r=>Vs(r=this.getParsedResult(r,e,t))?r:(0,Ve.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Vs(r)?r:(0,Ve.of)(r)}}getStreamOnTranslationChange(e,t){if(!Fs(e)||!e.length)throw new Error('Parameter "key" required');return(0,La.z)(gr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,St.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ve.of)(l)})))}stream(e,t){if(!Fs(e)||!e.length)throw new Error('Parameter "key" required');return(0,La.z)(gr(()=>this.get(e,t)),this.onLangChange.pipe((0,St.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Vs(l)?l:(0,Ve.of)(l)})))}instant(e,t){if(!Fs(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Vs(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(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Lw),i.LFG(bp),i.LFG(id),i.LFG(Mu),i.LFG(Rw),i.LFG(Iw),i.LFG(yp),i.LFG(kg),i.LFG(Hg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),wt=(()=>{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);Vs(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(t,this.lastParams))return this.value;let r;if(Fs(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{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(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi,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})(),wp=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:bp,useClass:_M},e.compiler||{provide:id,useClass:Eg},e.parser||{provide:Mu,useClass:bM},e.missingTranslationHandler||{provide:Rw,useClass:Tu},Lw,{provide:yp,useValue:e.isolate},{provide:Iw,useValue:e.useDefaultLang},{provide:kg,useValue:e.extend},{provide:Hg,useValue:e.defaultLanguage},Yi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:bp,useClass:_M},e.compiler||{provide:id,useClass:Eg},e.parser||{provide:Mu,useClass:bM},e.missingTranslationHandler||{provide:Rw,useClass:Tu},{provide:yp,useValue:e.isolate},{provide:Iw,useValue:e.useDefaultLang},{provide:kg,useValue:e.extend},{provide:Hg,useValue:e.defaultLanguage},Yi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),yM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wu,Au,Rl,_a,wp,C.ez]}),n})();var cD=M(5861);function wM(n,o){}class Cp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let CM=(()=>{class n extends yl{constructor(e,t,r,l,d,s,a,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=d,this._ngZone=s,this._overlayRef=a,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Es(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Es();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Es())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Cp),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(Tn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(es,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,wM,0,0,"ng-template",0)},dependencies:[es],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Rg{constructor(o,e){this.overlayRef=o,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Zi(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(o,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(o),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",e=""){return this.overlayRef.updateSize({width:o,height:e}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}}const Lg=new i.OlP("DialogScrollStrategy"),Ow=new i.OlP("DialogData"),uD=new i.OlP("DefaultDialogConfig"),AM={provide:Lg,deps:[pn],useFactory:function Ca(n){return()=>n.scrollStrategies.block()}};let Ig=0,Bw=(()=>{class n{constructor(e,t,r,l,d,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=gr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(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}open(e,t){(t={...this._defaultOptions||new Cp,...t}).id=t.id||"cdk-dialog-"+Ig++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),d=this._overlay.create(l),s=new Rg(d,t),a=this._attachContainer(d,s,t);return s.containerInstance=a,this._attachDialogContent(e,s,a,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Jn(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Jn(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Jn(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new To({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const l=r.injector??r.viewContainerRef?.injector,d=[{provide:Cp,useValue:r},{provide:Rg,useValue:t},{provide:on,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,d.push(...r.container.providers(r))):s=CM;const a=new bl(s,r.viewContainerRef,i.zs3.create({parent:l||this._injector,providers:d}),r.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,t,r,l){const d=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Ao(e,null,s,d))}else{const s=r.attachComponentPortal(new bl(e,l.viewContainerRef,d,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:Ow,useValue:e.data},{provide:Rg,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,r)):d.push(...e.providers)),e.direction&&(!l||!l.get(Si,null,i.XFs.Optional))&&d.push({provide:Si,useValue:{value:e.direction,change:(0,Ve.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:d})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const 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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(pn),i.LFG(i.zs3),i.LFG(uD,8),i.LFG(n,12),i.LFG(Mo),i.LFG(Lg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Jn(n,o){let e=n.length;for(;e--;)o(n[e])}let vM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Bw,AM],imports:[vl,vo,Ph,vo]}),n})();function Og(n,o){}const nd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},TM={dialogContainer:hi("dialogContainer",[Dt("void, exit",Pe({opacity:0,transform:"scale(0.7)"})),Dt("enter",Pe({transform:"none"})),_t("* => enter",zh([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"none",opacity:1})),Rn("@*",Lc(),{optional:!0})]),nd),_t("* => void, * => exit",zh([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pe({opacity:0})),Rn("@*",Lc(),{optional:!0})]),nd)])};class Ll{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=nd.params.enterAnimationDuration,this.exitAnimationDuration=nd.params.exitAnimationDuration}}let Vw=(()=>{class n extends CM{constructor(e,t,r,l,d,s,a,c){super(e,t,r,l,d,s,a,c),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(Tn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Fw=(()=>{class n extends Vw{constructor(e,t,r,l,d,s,a,c,u){super(e,t,r,l,d,s,a,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||nd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||nd.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(i.sBO),i.Y36(Tn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,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._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,Og,0,0,"ng-template",0)},dependencies:[es],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[TM.dialogContainer]}}),n})();class bn{constructor(o,e,t){this._ref=o,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=o.id,t._animationStateChanged.pipe((0,Gt.h)(r=>"opened"===r.state),(0,Ot.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Gt.h)(r=>"closed"===r.state),(0,Ot.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ci.T)(this.backdropClick(),this.keydownEvents().pipe((0,Gt.h)(r=>27===r.keyCode&&!this.disableClose&&!Zi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function jw(n,o,e){n._closeInteractionType=o,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe((0,Gt.h)(e=>"closing"===e.state),(0,Ot.q)(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Er=new i.OlP("MatDialogData"),MM=new i.OlP("mat-dialog-default-options"),Bg=new i.OlP("mat-dialog-scroll-strategy"),Io={provide:Bg,deps:[pn],useFactory:function Vg(n){return()=>n.scrollStrategies.block()}};let Nw=0,Fg=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=a,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=gr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s,this._dialog=t.get(Bw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Ll,...t}).id=t.id||`${this._idPrefix}${Nw++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ll,useValue:t},{provide:Cp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(d,s,a)=>(r=new this._dialogRefConstructor(d,t,a),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(r);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),fi=(()=>{class n extends Fg{constructor(e,t,r,l,d,s,a,c){super(e,t,l,s,a,d,bn,Fw,Er,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(pn),i.LFG(i.zs3),i.LFG(C.Ye,8),i.LFG(MM,8),i.LFG(Bg),i.LFG(n,12),i.LFG(Mo),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xM=0,Qn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+xM++}ngOnInit(){this._dialogRef||(this._dialogRef=function SM(n,o){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?o.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(bn,8),i.Y36(i.SBq),i.Y36(fi))},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})(),Xn=(()=>{class n{constructor(){this.align="start"}}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"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),xu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fi,Io],imports:[vM,vl,vo,ot,ot]}),n})();var pD=M(4327);const Oo=[5,10,25,100];function Uw(n){let o="";return null!==n.titleBefore&&(o+=n.titleBefore+" "),null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),null!==n.titleAfter&&(o+=n.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function Yg(){return(Yg=(0,cD.Z)(function*(n,o){yield qw(n),o()})).apply(this,arguments)}function qw(n){return new Promise(o=>setTimeout(o,n))}function cn(){const n=new Ll;return n.disableClose=!0,n.autoFocus=!1,n}const BM=new Intl.Collator("cs",{numeric:!0});function Bo(n,o,e){const t=o.active,r=o.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),a=e(d,t);return BM.compare(s,a)*("asc"===r?1:-1)}):n}function Il(n,o,e,t,r){o=o.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(o)}function js(n,o){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===o&&(e=t.value)}),e}function Aa(n,o,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};o.forEach(s=>{d[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(d)}),t}function va(n,o="csv",e="export"){if("csv"===o){const t=(a,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(a=>r.map(c=>JSON.stringify(a[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,pD.saveAs)(s,`${e}.${o}`)}}const Kw="GUI_CONFIG.PREF_PAGE_SIZE.";let YM=(()=>{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})(),Xw=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Kw+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(Kw+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(YM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Tk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let Mk=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,Tk,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),d=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",d),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Cu,ss,Mw,Di,jt,C.O5,wt]}),n})();const xk=["topNav"];function Sk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function Dk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const Ek=["*"];let os=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Oo,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=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),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xw))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(i.Gf(xk,5),i.Gf(bw,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.topNav=r.first),i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:Ek,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(4,Sk,1,1,"perun-web-apps-table-options",4),i.qZA(),i.TgZ(5,"div",5),i.Hsn(6),i.qZA(),i.TgZ(7,"div",1)(8,"mat-paginator",6),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(9,Dk,1,1,"perun-web-apps-table-options",4),i.qZA()()),2&e&&(i.xp6(3),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))},dependencies:[bw,C.O5,Mk]}),n})(),On=(()=>{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.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let l=null;for(const d of t)d&&null==l&&(l=d[e]);return null===l?r:this.addMissingValuesToProperty(l,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zg=M(1214);let Su=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Li),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{},s=this.store.getProperty("oidc_client");if(s.oauth_scopes.split(" ").includes("offline_access")&&s.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const a=function FM(n,o){const e=o.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));a&&(d.idphint=a)}return{requestAccessToken:!0,issuer:s.oauth_authority,clientId:s.oauth_client_id,redirectUri:s.oauth_redirect_uri,postLogoutRedirectUri:s.oauth_post_logout_redirect_uri,responseType:s.oauth_response_type,scope:s.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let 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}startIdpFilterKeeper(){this.router.events.pipe((0,Gt.h)(e=>e instanceof la)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(On),i.LFG(fi),i.LFG(Gn),i.LFG(zg.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hk=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn))},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"))},dependencies:[Kn,wt]}),n})();var kk=M(930);function qM(n,o){const e="object"==typeof o;return new Promise((t,r)=>{const l=new kk.Hp({next:d=>{t(d),l.unsubscribe()},error:r,complete:()=>{e?t(o.defaultValue):r(new eo.K)}});n.subscribe(l)})}function Pk(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function Rk(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function Lk(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function Ik(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const Ok=["*"];let Ta=(()=>{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:Ok,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,Pk,2,0,"mat-icon",1),i.YNc(2,Rk,2,0,"mat-icon",1),i.YNc(3,Lk,2,0,"mat-icon",1),i.YNc(4,Ik,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))},dependencies:[Di,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})(),Bk=(()=>{class n{constructor(e){this.dialogRef=e}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Qn,Kn,Xn,jt,Ta,wt]}),n})(),Vk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Di,wt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),Fk=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Er),i.Y36(bn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Qn,Kn,Xn,jt,Ta,wt]}),n})(),WM=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.oauthService=t,this.authService=r,this.store=l}openMfaWindow(){let e=null,t=null;const r=cn();r.width="450px";const l=this.dialog.open(Bk,r);let d=!1;if(l.afterClosed().subscribe(s=>{if(s){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),e=this.setupMfaWindow(),e){const a=cn();a.width="450px",a.panelClass="noBorderDialog",t=this.dialog.open(Vk,a)}}else d=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const s=cn();s.width="450px",s.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(Fk,s)}return new Gi.y(s=>{const a=setInterval(()=>e?.closed?(clearInterval(a),t.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),s.next(!0)):d?(clearInterval(a),s.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(fi),i.LFG(zg.Ct),i.LFG(Su),i.LFG(On))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$M=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=l,this.authzService=d,this.dialog=s,this.router=a,this.mfaHandlerService=c,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return qM(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=cn();this.dialog.open(Hk,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return qM(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(l=>{const d=l.split("=");r[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Gt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const a=s.split("=");d[a[0]]=a[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Su),i.LFG(zg.Ct),i.LFG(On),i.LFG(ra),i.LFG(nt),i.LFG(fi),i.LFG(Li),i.LFG(WM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ED=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}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(Lo),i.LFG(Hi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),jk=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn))},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)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[Qn,Kn,Xn,jt,wt]}),n})(),Nk=(()=>{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})(),Bn=(()=>{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(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HD=(()=>{class n{constructor(e,t,r,l,d,s,a){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s,this.mfaHandlerService=a}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=cn();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(jk,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Bt.b)(d=>{d instanceof w.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,O.K)(d=>{const s=d.error;if("MfaPrivilegeException"===s.type||"MfaRolePrivilegeException"===s.type)return this.mfaHandlerService.openMfaWindow().pipe((0,St.w)(a=>a?("MfaRolePrivilegeException"===s.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,ir._)(()=>s)));{const a=this.formatErrors(d,e);return void 0===a?(0,ir._)(()=>d):(r&&this.notificator.showRPCError(a),(0,ir._)(()=>a))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const 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}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Su),i.LFG(Nk),i.LFG(Bn),i.LFG(On),i.LFG(fi),i.LFG($M),i.LFG(WM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),kD=(()=>{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})(),Yk=(()=>{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.getProperty("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,O.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,O.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,O.K)(a=>this.formatErrors(a,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,O.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,ir._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Bn),i.LFG(Su),i.LFG(On))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gg=(()=>{class n{isAllSelected(e,t,r=(()=>!0)){const l=t.paginator.pageSize??0,d=t.paginator.pageIndex??0,s=t.paginator.hasNextPage(),a=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=d*l,this.pageEnd=this.pageStart+l,this.numSelected=e,this.dataLength=a?t.data.length:t.filteredData.length;const c=t.sort;return s||(this.modulo=this.dataLength%l,this.pageEnd=0===this.modulo?this.pageStart+l:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,c).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.getProperty("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 a=s.split("=");"lang"===a[0]&&(d=a[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(Gn),i.LFG(On))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hC=["*"],zk=["content"];function Gk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function qk(n,o){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Wk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],$k=["mat-drawer","mat-drawer-content","*"];function Zk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Jk(n,o){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Qk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Kk=["mat-sidenav","mat-sidenav-content","*"],PD={transformDrawer:hi("transform",[Dt("open, open-instant",Pe({transform:"none",visibility:"visible"})),Dt("void",Pe({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",yt("0ms")),_t("void <=> open, open-instant => void",yt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},eP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function tP(){return!1}}),ZM=new i.OlP("MAT_DRAWER_CONTAINER");let pC=(()=>{class n extends gl{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)(()=>LD)),i.Y36(i.SBq),i.Y36(wo),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:gl,useExisting:n}]),i.qOj],ngContentSelectors:hC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),RD=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Gt.h)(u=>u),(0,Qe.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,Kt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Gt.h)(u=>!u),(0,Qe.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,Kt.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ka(this._elementRef.nativeElement,"keydown").pipe((0,Gt.h)(u=>27===u.keyCode&&!this.disableClose&&!Zi(u)),Ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ul((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=Fe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Fe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Fe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Ot.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(Qd),i.Y36(Tn),i.Y36(xi),i.Y36(i.R0b),i.Y36(Jd),i.Y36(C.K0,8),i.Y36(ZM,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(zk,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:hC,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())},dependencies:[gl],encapsulation:2,data:{animation:[PD.transformDrawer]},changeDetection:0}),n})(),LD=(()=>{class n{constructor(e,t,r,l,d,s=!1,a){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=a,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Ke(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=Fe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Fe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Et(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Et(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,dl.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Gt.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Ci.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(Si,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(ya),i.Y36(eP),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,pC,5),i.Suo(r,RD,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(pC,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:ZM,useExisting:n}])],ngContentSelectors:$k,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(Wk),i.YNc(0,Gk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,qk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,pC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),JM=(()=>{class n extends pC{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)(()=>OD)),i.Y36(i.SBq),i.Y36(wo),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:gl,useExisting:n}]),i.qOj],ngContentSelectors:hC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),ID=(()=>{class n extends RD{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Fe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Fi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Fi(e)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:hC,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())},dependencies:[gl],encapsulation:2,data:{animation:[PD.transformDrawer]},changeDetection:0}),n})(),OD=(()=>{class n extends LD{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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,JM,5),i.Suo(r,ID,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:ZM,useExisting:n}]),i.qOj],ngContentSelectors:Kk,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(Qk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Jk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,JM],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),BD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Xa,Xa,ot]}),n})();const VD=fa({passive:!0});let iP=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return yi.E;const t=Ji(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,d="cdk-text-field-autofilled",s=a=>{"cdk-text-field-autofill-start"!==a.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===a.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,VD),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,VD)}}),l}stopMonitoring(e){const t=Ji(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})(),FD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const jD=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),nP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let rP=0;const aP=Mc(class{constructor(n,o,e,t){this._defaultErrorStateMatcher=n,this._parentForm=o,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let ls=(()=>{class n extends aP{constructor(e,t,r,l,d,s,a,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+rP++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>vA().has(V)),this._iOSKeyupListener=V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=a||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),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=Fe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ii.required)??!1}set required(e){this._required=Fe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&vA().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=Fe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){nP.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(Zr,10),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36(fl),i.Y36(jD,10),i.Y36(iP),i.Y36(i.R0b),i.Y36(Zh,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:Oc,useExisting:n}]),i.qOj,i.TTD]}),n})(),fC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl],imports:[FD,Vc,ot,FD,Vc]}),n})();function sP(n,o){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 oP=(()=>{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.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",M(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn),i.Y36(Yi),i.Y36(Bn),i.Y36(ai),i.Y36(On))},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)(4,"mat-form-field")(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,sP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(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.TgZ(21,"div",6)(22,"div",7)(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()()()),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")," ")}},dependencies:[C.O5,Ln,$n,as,El,jt,is,Wn,fn,wa,ls,Qn,Kn,Xn,wt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),lP=(()=>{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})(),cP=(()=>{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})(),dP=(()=>{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 uP(n,o){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 hP(n,o){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 pP(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,uP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,hP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=o.$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 fP=function(n){return{"min-height":n}};function mP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,pP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,fP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const Ol=function(n){return{color:n}};function gP(n,o){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,Ol,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function _P(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.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,Ol,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function bP(n,o){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,Ol,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function yP(n,o){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,Ol,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function wP(n,o){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,gP,2,4,"i",17),i.YNc(2,_P,3,8,"span",18),i.YNc(3,bP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,yP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=o.$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 CP=function(n){return{height:n}};function AP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,wP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,CP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function vP(n,o){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,mP,2,4,"div",9),i.YNc(5,AP,2,4,"div",9),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,Ol,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 TP(n,o){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,Ol,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const MP=function(n){return{background:n}};let ND=(()=>{class n{constructor(e,t,r,l,d){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=l,this.authService=d,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=M(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=M(4147).i8,this.authService.isLoggedIn()&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyrightItems}openDialog(e){const t=cn();"reportIssue"===e&&(t.width="550px",this.dialog.open(oP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36(Yi),i.Y36(Nn),i.Y36(fi),i.Y36(Su))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,vP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,TP,3,5,"span",5),i._uU(7,", web application: "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i._uU(10,", server: "),i.TgZ(11,"a",6),i._uU(12),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,MP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,Ol,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(15,Ol,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.guiVersion),i.xp6(2),i.Q6J("href",t.githubBackendRepository,i.LSH)("ngStyle",i.VKq(17,Ol,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.backendVersion))},dependencies:[C.sg,C.O5,C.PC,lP,cP,dP],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 xP(n,o){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 SP(n,o){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const DP=function(n){return{color:n}};function EP(n,o){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,DP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const HP=function(n,o){return{background:n,color:o}},kP=function(n,o){return{"min-height":n,"background-color":o}};let PP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36(Hi),i.Y36(Uk),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,xP,2,1,"div",1),i.YNc(2,SP,3,1,"div",2),i.YNc(3,EP,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,HP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,kP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[C.O5,C.PC,Di,_i,ND],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})();hi("openClose",[Dt("open",Pe({overflow:"hidden"})),Dt("closed",Pe({height:"0px",overflow:"hidden"})),_t("open <=> closed",[yt(".3s ease-in")])]);const RP=hi("flyInOut",[_t(":enter",[Pe({transform:"translateX(100%)"}),yt(".25s")]),_t(":leave",[yt(".5s",Pe({transform:"translateX(100%)"}))])]);hi("rollInOut",[_t(":enter",[Pe({height:"0px"}),yt(".25s")]),_t(":leave",[yt(".25s",Pe({height:"0px"}))])]),hi("routeAnimations",[_t("* => *",[Pe({position:"relative"}),Rn(":enter",[Pe({width:"100%",opacity:0})],{optional:!0}),Rn(":leave",[Pe({position:"absolute",width:"100%",opacity:1}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Rn(":enter",[Pe({position:"absolute",width:"100%",opacity:0}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),hi("tagsOpenClose",[Dt("open",Pe({})),Dt("closed",Pe({width:"0px",height:"0px"})),_t("open <=> closed",[yt(".3s ease-in")])]),hi("switchAnimations",[_t("true => false",[Rn(":enter, :leave",Pe({})),zh([Rn(":enter",[Pe({transform:"translateX(-100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Rn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(100%)"}))],{optional:!0})])]),_t("false => true",[Rn(":enter, :leave",Pe({})),zh([Rn(":enter",[Pe({transform:"translateX(100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Rn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(-100%)"}))],{optional:!0})])])]),hi("slideInOutLeft",[_t(":enter",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[yt("0.5s ease-in",Pe({transform:"translateX(-100%)"}))])]),hi("slideInOutRight",[_t(":enter",[Pe({transform:"translateX(100%)",position:"fixed"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(100%)"}))])]);let YD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez]}),n})();function jP(n,o){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 NP(n,o){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 UP=Qa(class{constructor(n){this._elementRef=n}},"primary"),zP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function GP(){return{diameter:100}}});class Ai extends UP{constructor(o,e,t,r,l,d,s,a){super(o),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=xt.w0.EMPTY,this.mode="determinate";const c=Ai._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===o.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&a&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&a.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(o){this._diameter=Fi(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(o){this._strokeWidth=Fi(o)}get value(){return"determinate"===this.mode?this._value:0}set value(o){this._value=Math.max(0,Math.min(100,Fi(o)))}ngOnInit(){const o=this._elementRef.nativeElement;this._styleRoot=_c(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const o=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${o} ${o}`}_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(o){const e=50*(o.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const o=this._styleRoot,e=this._diameter,t=Ai._diameters;let r=t.get(o);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),o.appendChild(l),r||(r=new Set,t.set(o,r)),r.add(e)}}_getAnimationText(){const o=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*o).replace(/END_VALUE/g,""+.2*o).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ai._diameters=new WeakMap,Ai.\u0275fac=function(o){return new(o||Ai)(i.Y36(i.SBq),i.Y36(xi),i.Y36(C.K0,8),i.Y36(i.QbO,8),i.Y36(zP),i.Y36(i.sBO),i.Y36(ya),i.Y36(i.R0b))},Ai.\u0275cmp=i.Xpm({type:Ai,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(o,e){2&o&&(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(o,e){1&o&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,jP,1,11,"circle",2),i.YNc(3,NP,1,9,"circle",3),i.qZA()),2&o&&(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))},dependencies:[C.RF,C.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let mC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,C.ez,ot]}),n})();function WP(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function $P(n,o){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 ZP(n,o){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 JP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,$P,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,ZP,3,3,"mat-error",11),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 QP=(()=>{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(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let 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: ",M(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(bn),i.Y36(Yi),i.Y36(Bn),i.Y36(ai),i.Y36(Er),i.Y36(On))},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,WP,1,0,"mat-spinner",1),i.YNc(4,JP,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(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()()()),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")," "))},dependencies:[C.O5,Qn,Kn,Xn,jt,is,Wn,wa,Ln,$n,as,El,ls,Ai,wt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),KP=(()=>{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=cn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(QP,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn),i.Y36(fi),i.Y36(Er))},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)(5,"div",3)(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()()()),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")," "))},dependencies:[Qn,Kn,Xn,jt,wt]}),n})();const nR=[[["caption"]],[["colgroup"],["col"]]],rR=["caption","colgroup, col"];function KM(n){return class extends n{constructor(...o){super(...o),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(o){const e=this._sticky;this._sticky=Fe(o),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const o=this._hasStickyChanged;return this._hasStickyChanged=!1,o}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ap=new i.OlP("CDK_TABLE");let vp=(()=>{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})(),Tp=(()=>{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})(),gC=(()=>{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 lR{}const cR=KM(lR);let Bl=(()=>{class n extends cR{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=Fe(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(Ap,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,vp,5),i.Suo(r,Tp,5),i.Suo(r,gC,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 XM{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}}let ex=(()=>{class n extends XM{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bl),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})(),tx=(()=>{class n extends XM{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bl),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 zD{constructor(){this.tasks=[],this.endTasks=[]}}const ix=new i.OlP("_COALESCED_STYLE_SCHEDULER");let GD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new zD,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new zD;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,Ot.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})(),nx=(()=>{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 qg?e.headerCell.template:this instanceof Wg?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 dR extends nx{}const uR=KM(dR);let qg=(()=>{class n extends uR{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(Ap,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class hR extends nx{}const pR=KM(hR);let Wg=(()=>{class n extends pR{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(Ap,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),_C=(()=>{class n extends nx{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(Ap,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Vl=(()=>{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})(),rx=(()=>{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)},dependencies:[Vl],encapsulation:2}),n})(),sx=(()=>{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)},dependencies:[Vl],encapsulation:2}),n})(),bC=(()=>{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 qD=["top","bottom","left","right"];class fR{constructor(o,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=o,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(o,e){const t=[];for(const r of o)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(o,e,t,r=!0){if(!o.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=o[0],d=l.children.length,s=this._getCellWidths(l,r),a=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 o)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(o,e,t){if(!this._isBrowser)return;const r="bottom"===t?o.slice().reverse():o,l="bottom"===t?e.slice().reverse():e,d=[],s=[],a=[];for(let u=0,h=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(o,e){for(const r of e)o.style[r]="",o.classList.remove(this._borderCellCss[r]);qD.some(r=>-1===e.indexOf(r)&&o.style[r])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,r){o.classList.add(this._stickCellCss),r&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of qD)o.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=o.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=o[l]);return t}}const ox=new i.OlP("CDK_SPL");let yC=(()=>{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})(),wC=(()=>{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})(),CC=(()=>{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})(),AC=(()=>{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})(),vC=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=a,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new 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=Fe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Fe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Fc(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,Ot.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const 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 a=s.shift();return a.dataIndex=t,a}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),TC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=TC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TC(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=[],Fc(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;Fc(this.dataSource)?e=this.dataSource.connect(this):Vs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ve.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(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))Vl.mostRecentCellOutlet&&Vl.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 fR(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,Ve.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&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(Si,8),i.Y36(C.K0),i.Y36(xi),i.Y36(jc),i.Y36(ix),i.Y36(ya),i.Y36(ox,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,bC,5),i.Suo(r,Bl,5),i.Suo(r,_C,5),i.Suo(r,qg,5),i.Suo(r,Wg,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(yC,7),i.Gf(wC,7),i.Gf(CC,7),i.Gf(AC,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:Ap,useExisting:n},{provide:jc,useClass:py},{provide:ix,useClass:GD},{provide:ox,useValue:null}])],ngContentSelectors:rR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(nR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yC,wC,CC,AC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function TC(n,o){return n.concat(Array.from(o))}let gR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_l]}),n})();const _R=[[["caption"]],[["colgroup"],["col"]]],bR=["caption","colgroup, col"];let Vo=(()=>{class n extends vC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:jc,useClass:py},{provide:vC,useExisting:n},{provide:Ap,useExisting:n},{provide:ix,useClass:GD},{provide:ox,useValue:null}]),i.qOj],ngContentSelectors:bR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(_R),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yC,wC,CC,AC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Ns=(()=>{class n extends vp{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:vp,useExisting:n}]),i.qOj]}),n})(),Ys=(()=>{class n extends Tp{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:Tp,useExisting:n}]),i.qOj]}),n})(),Us=(()=>{class n extends Bl{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 o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Bl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),zs=(()=>{class n extends ex{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Gs=(()=>{class n extends tx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),Fl=(()=>{class n extends qg{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:qg,useExisting:n}]),i.qOj]}),n})(),Fo=(()=>{class n extends _C{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:_C,useExisting:n}]),i.qOj]}),n})(),jl=(()=>{class n extends rx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:rx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Vl],encapsulation:2}),n})(),jo=(()=>{class n extends sx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:sx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Vl],encapsulation:2}),n})(),MC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gR,ot,ot]}),n})();class Nl extends class ER extends class vm{}{constructor(o=[]){super(),this._renderData=new ki([]),this._filter=new ki(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Q_(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 a=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof a,h=typeof c;u!==h&&("number"===u&&(a+=""),"number"===h&&(c+=""));let f=0;return null!=a&&null!=c?a>c?f=1:a{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(o),this._updateChangeSubscription()}get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription()}_updateChangeSubscription(){const o=this._sort?(0,Ci.T)(this._sort.sortChange,this._sort.initialized):(0,Ve.of)(null),e=this._paginator?(0,Ci.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ve.of)(null),r=(0,Ra.a)([this._data,this._filter]).pipe((0,Qe.U)(([s])=>this._filterData(s))),l=(0,Ra.a)([r,o]).pipe((0,Qe.U)(([s])=>this._orderData(s))),d=(0,Ra.a)([l,e]).pipe((0,Qe.U)(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(s=>this._renderData.next(s))}_filterData(o){return this.filteredData=null==this.filter||""===this.filter?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;const e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}function HR(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function kR(n,o){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 PR(n,o){1&n&&i._UZ(0,"th",18)}function RR(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e)}}function LR(n,o){1&n&&i._UZ(0,"tr",20)}function IR(n,o){1&n&&i._UZ(0,"tr",21)}function OR(n,o){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 BR(n,o){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,kR,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,PR,1,0,"th",12),i.YNc(8,RR,2,1,"td",13),i.BQk(),i.YNc(9,LR,1,0,"tr",14),i.YNc(10,IR,1,0,"tr",15),i.qZA(),i.YNc(11,OR,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 VR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 FR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 $D=(()=>{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 Nl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn),i.Y36(Er))},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")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,HR,1,0,"mat-spinner",1),i.YNc(5,BR,12,8,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,VR,3,4,"button",5),i.YNc(11,FR,3,4,"button",6),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))},dependencies:[C.O5,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Qn,Kn,Xn,jt,Ai,Ta,wt]}),n})(),ZR=(()=>{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(bn),i.Y36(Er))},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")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(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()()()),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")," "))},dependencies:[Qn,Xn,jt,wt]}),n})();function tL(n,o){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function iL(n,o){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 nL=(()=>{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=cn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(KP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Gw(n,o){Yg.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi),i.Y36(kD))},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")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,tL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,iL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),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," "))},dependencies:[C.O5,Di,wt],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 rL(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,d=i.oxw();return i.KtG(d.removeNotification(l))}),i.qZA()()}if(2&n){const e=o.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const aL=function(n){return{top:n}};let sL=(()=>{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(Bn),i.Y36(kD))},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,rL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,aL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[C.sg,C.PC,nL],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:[RP]}}),n})(),oL=(()=>{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(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const JD=["*"],cL=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],dL=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],mL=dr(Tr(class{})),gL=Tr(class{}),_L=new i.OlP("MatList"),QD=new i.OlP("MatNavList");let bL=(()=>{class n extends mL{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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:QD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:JD,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),KD=(()=>{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})(),XD=(()=>{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})(),yL=(()=>{class n extends gL{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,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(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Fe(e)}ngAfterContentInit(){!function $f(n,o,e="mat"){n.changes.pipe(Et(n)).subscribe(({length:t})=>{tu(o,`${e}-2-line`,!1),tu(o,`${e}-3-line`,!1),tu(o,`${e}-multi-line`,!1),2===t||3===t?tu(o,`${e}-${t}-line`,!0):t>3&&tu(o,`${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(QD,8),i.Y36(_L,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,KD,5),i.Suo(r,XD,5),i.Suo(r,Wf,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:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:dL,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(cL),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()))},dependencies:[Mr],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:[xc,hn,ot,Zf,C.ez,xc,ot,Zf,lx]}),n})();function ML(n,o){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function xL(n,o){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 SL=function(n){return{color:n}};function DL(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.shouldHideMenu())}),i.YNc(1,ML,1,1,"mat-icon",3),i.YNc(2,xL,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,SL,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 EL=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof la&&(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(oL),i.Y36(On),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",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,DL,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[C.sg,C.O5,C.PC,Di,bL,yL,Mr,mc,wt],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})();const HL=["*",[["mat-toolbar-row"]]],kL=["*","mat-toolbar-row"],PL=Qa(class{constructor(n){this._elementRef=n}});let RL=(()=>{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})(),LL=(()=>{class n extends PL{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(C.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RL,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:kL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(HL),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%}"],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({imports:[ot,ot]}),n})();function IL(n,o){1&n&&(i.TgZ(0,"div",13)(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()())}const OL=function(n){return{background:n}},xC=function(n){return{color:n}};let BL=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.getProperty("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36(Su),i.Y36(Hi))},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"],[1,"display-flex"],["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)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA()(),i._UZ(5,"a",3)(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA()(),i.YNc(10,IL,7,0,"div",6),i.TgZ(11,"div",7)(12,"button",8)(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA()(),i.TgZ(17,"mat-menu",null,11)(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA()()()()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,OL,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,xC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,xC,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,xC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,xC,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"))}},dependencies:[C.O5,C.PC,jt,Di,Cu,ss,Mw,LL,mc,_f,wt],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row}#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})();const VL=["footer"],nE=function(n){return{background:n}},FL=function(n){return{"min-height":n}};function jL(n,o){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container")(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5)(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()()()()),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,FL,t.contentHeight))}}function NL(n,o){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 YL=(()=>{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.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||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(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36($M),i.Y36(i.sBO),i.Y36(ra),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(VL,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,jL,12,13,"div",0),i.YNc(2,NL,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()))},dependencies:[C.O5,C.PC,ID,OD,JM,_i,PP,ND,sL,EL,BL,wt],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 UL{constructor(o,e="/assets/i18n/",t=".json"){this.http=o,this.prefix=e,this.suffix=t}getTranslation(o){return this.http.get(`${this.prefix}${o}${this.suffix}`)}}let zL=(()=>{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.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function GL(n){return[Jr(tinycolor(n).lighten(52),"50"),Jr(tinycolor(n).lighten(37),"100"),Jr(tinycolor(n).lighten(26),"200"),Jr(tinycolor(n).lighten(12),"300"),Jr(tinycolor(n).lighten(6),"400"),Jr(tinycolor(n),"500"),Jr(tinycolor(n).darken(6),"600"),Jr(tinycolor(n).darken(12),"700"),Jr(tinycolor(n).darken(18),"800"),Jr(tinycolor(n).darken(24),"900"),Jr(tinycolor(n).lighten(50).saturate(30),"A100"),Jr(tinycolor(n).lighten(30).saturate(30),"A200"),Jr(tinycolor(n).lighten(10).saturate(15),"A400"),Jr(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const a=`--${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(a,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=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),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.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(On),i.LFG(nt),i.LFG(ae),i.LFG(Nn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jr(n,o){const e=tinycolor(n),t=e.toRgb();return{name:o,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let qL=(()=>{class n{constructor(e,t,r,l,d,s){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.mfaHandlerService=s,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 this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}loadPolicies(){return qM(this.authzSevice.getAllPolicies()).then(e=>{this.guiAuthResolver.setPerunPolicies(e)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($M),i.LFG(zL),i.LFG(C.Ye),i.LFG(nt),i.LFG(ra),i.LFG(WM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WL=new i.OlP("perun-api-service");function rE(n){return new i.vHH(3e3,!1)}function DI(){return typeof window<"u"&&typeof window.document<"u"}function cx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function sd(n){switch(n.length){case 0:return new Ic;case 1:return n[0];default:return new qh(n)}}function aE(n,o,e,t,r=new Map,l=new Map){const d=[],s=[];let a=-1,c=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==a,b=f&&c||new Map;u.forEach((V,ee)=>{let he=ee,We=V;if("offset"!==ee)switch(he=o.normalizePropertyName(he,d),We){case"!":We=r.get(ee);break;case Ls:We=l.get(ee);break;default:We=o.normalizeStyleValue(ee,he,We,d)}b.set(he,We)}),f||s.push(b),c=b,a=h}),d.length)throw function gI(n){return new i.vHH(3502,!1)}();return s}function dx(n,o,e,t){switch(o){case"start":n.onStart(()=>t(e&&ux(e,"start",n)));break;case"done":n.onDone(()=>t(e&&ux(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&ux(e,"destroy",n)))}}function ux(n,o,e){const l=hx(n.element,n.triggerName,n.fromState,n.toState,o||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function hx(n,o,e,t,r="",l=0,d){return{element:n,triggerName:o,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function Ma(n,o,e){let t=n.get(o);return t||n.set(o,t=e),t}function sE(n){const o=n.indexOf(":");return[n.substring(1,o),n.slice(o+1)]}let px=(n,o)=>!1,oE=(n,o,e)=>[],lE=null;function fx(n){const o=n.parentNode||n.host;return o===lE?null:o}(cx()||typeof Element<"u")&&(DI()?(lE=(()=>document.documentElement)(),px=(n,o)=>{for(;o;){if(o===n)return!0;o=fx(o)}return!1}):px=(n,o)=>n.contains(o),oE=(n,o,e)=>{if(e)return Array.from(n.querySelectorAll(o));const t=n.querySelector(o);return t?[t]:[]});let Du=null,cE=!1;const dE=px,uE=oE;let hE=(()=>{class n{validateStyleProperty(e){return function HI(n){Du||(Du=function kI(){return typeof document<"u"?document.body:null}()||{},cE=!!Du.style&&"WebkitAppearance"in Du.style);let o=!0;return Du.style&&!function EI(n){return"ebkit"==n.substring(1,6)}(n)&&(o=n in Du.style,!o&&cE&&(o="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Du.style)),o}(e)}matchesElement(e,t){return!1}containsElement(e,t){return dE(e,t)}getParentElement(e){return fx(e)}query(e,t,r){return uE(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],a){return new Ic(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),mx=(()=>{class n{}return n.NOOP=new hE,n})();const gx="ng-enter",SC="ng-leave",DC="ng-trigger",EC=".ng-trigger",fE="ng-animating",_x=".ng-animating";function od(n){if("number"==typeof n)return n;const o=n.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:bx(parseFloat(o[1]),o[2])}function bx(n,o){return"s"===o?1e3*n:n}function HC(n,o,e){return n.hasOwnProperty("duration")?n:function LI(n,o,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 o.push(rE()),{duration:0,delay:0,easing:""};r=bx(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(l=bx(parseFloat(a),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,a=o.length;r<0&&(o.push(function $L(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(o.push(function ZL(){return new i.vHH(3101,!1)}()),s=!0),s&&o.splice(a,0,rE())}return{duration:r,delay:l,easing:d}}(n,o,e)}function $g(n,o={}){return Object.keys(n).forEach(e=>{o[e]=n[e]}),o}function mE(n){const o=new Map;return Object.keys(n).forEach(e=>{o.set(e,n[e])}),o}function ld(n,o=new Map,e){if(e)for(let[t,r]of e)o.set(t,r);for(let[t,r]of n)o.set(t,r);return o}function _E(n,o,e){return e?o+":"+e+";":""}function bE(n){let o="";for(let e=0;e{const l=wx(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),cx()&&bE(n))}function Eu(n,o){n.style&&(o.forEach((e,t)=>{const r=wx(t);n.style[r]=""}),cx()&&bE(n))}function Zg(n){return Array.isArray(n)?1==n.length?n[0]:fm(n):n}const yx=new RegExp("{{\\s*(.+?)\\s*}}","g");function yE(n){let o=[];if("string"==typeof n){let e;for(;e=yx.exec(n);)o.push(e[1]);yx.lastIndex=0}return o}function kC(n,o,e){const t=n.toString(),r=t.replace(yx,(l,d)=>{let s=o[d];return null==s&&(e.push(function QL(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function PC(n){const o=[];let e=n.next();for(;!e.done;)o.push(e.value),e=n.next();return o}const BI=/-+([a-z0-9])/g;function wx(n){return n.replace(BI,(...o)=>o[1].toUpperCase())}function VI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xa(n,o,e){switch(o.type){case 7:return n.visitTrigger(o,e);case 0:return n.visitState(o,e);case 1:return n.visitTransition(o,e);case 2:return n.visitSequence(o,e);case 3:return n.visitGroup(o,e);case 4:return n.visitAnimate(o,e);case 5:return n.visitKeyframes(o,e);case 6:return n.visitStyle(o,e);case 8:return n.visitReference(o,e);case 9:return n.visitAnimateChild(o,e);case 10:return n.visitAnimateRef(o,e);case 11:return n.visitQuery(o,e);case 12:return n.visitStagger(o,e);default:throw function KL(n){return new i.vHH(3004,!1)}()}}function wE(n,o){return window.getComputedStyle(n)[o]}function zI(n,o){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function GI(n,o,e){if(":"==n[0]){const a=function qI(n,o){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 a)return void o.push(a);n=a}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function uI(n){return new i.vHH(3015,!1)}()),o;const r=t[1],l=t[2],d=t[3];o.push(CE(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&o.push(CE(d,r))}(t,e,o)):e.push(n),e}const OC=new Set(["true","1"]),BC=new Set(["false","0"]);function CE(n,o){const e=OC.has(n)||BC.has(n),t=OC.has(o)||BC.has(o);return(r,l)=>{let d="*"==n||n==r,s="*"==o||o==l;return!d&&e&&"boolean"==typeof r&&(d=r?OC.has(n):BC.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?OC.has(o):BC.has(o)),d&&s}}const WI=new RegExp("s*:selfs*,?","g");function Cx(n,o,e,t){return new $I(n).build(o,e,t)}class $I{constructor(o){this._driver=o}build(o,e,t){const r=new QI(e);return this._resetContextStyleTimingState(r),xa(this,Zg(o),r)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==o.name.charAt(0)&&e.errors.push(function eI(){return new i.vHH(3006,!1)}()),o.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const a=s,c=a.name;c.toString().split(/\s*,\s*/).forEach(u=>{a.name=u,l.push(this.visitState(a,e))}),a.name=c}else if(1==s.type){const a=this.visitTransition(s,e);t+=a.queryCount,r+=a.depCount,d.push(a)}else e.errors.push(function tI(){return new i.vHH(3007,!1)}())}),{type:7,name:o.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(o,e){const t=this.visitStyle(o.styles,e),r=o.options&&o.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(a=>{yE(a).forEach(c=>{d.hasOwnProperty(c)||l.add(c)})})}),l.size&&(PC(l.values()),e.errors.push(function iI(n,o){return new i.vHH(3008,!1)}()))}return{type:0,name:o.name,style:t,options:r?{params:r}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;const t=xa(this,Zg(o.animation),e);return{type:1,matchers:zI(o.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Hu(o.options)}}visitSequence(o,e){return{type:2,steps:o.steps.map(t=>xa(this,t,e)),options:Hu(o.options)}}visitGroup(o,e){const t=e.currentTime;let r=0;const l=o.steps.map(d=>{e.currentTime=t;const s=xa(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Hu(o.options)}}visitAnimate(o,e){const t=function XI(n,o){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ax(HC(n,o).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Ax(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=HC(e,o);return Ax(r.duration,r.delay,r.easing)}(o.timings,e.errors);e.currentAnimateTimings=t;let r,l=o.styles?o.styles:Pe({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=o.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Pe(c)}e.currentTime+=t.duration+t.delay;const a=this.visitStyle(d,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(o,e){const t=this._makeStyleAst(o,e);return this._validateStyleAst(t,e),t}_makeStyleAst(o,e){const t=[],r=Array.isArray(o.styles)?o.styles:[o.styles];for(let s of r)"string"==typeof s?s===Ls?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(mE(s));let l=!1,d=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(d=s.get("easing"),s.delete("easing")),!l))for(let a of s.values())if(a.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:d,offset:o.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(o,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),o.styles.forEach(d=>{"string"!=typeof d&&d.forEach((s,a)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(a);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function rI(n,o,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&c.set(a,{startTime:l,endTime:r}),e.options&&function OI(n,o,e){const t=o.params||{},r=yE(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function JL(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(o,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function aI(){return new i.vHH(3011,!1)}()),t;let l=0;const d=[];let s=!1,a=!1,c=0;const u=o.steps.map(We=>{const Pt=this._makeStyleAst(We,e);let Jt=null!=Pt.offset?Pt.offset:function KI(n){if("string"==typeof n)return null;let o=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;o=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;o=parseFloat(e.get("offset")),e.delete("offset")}return o}(Pt.styles),Bi=0;return null!=Jt&&(l++,Bi=Pt.offset=Jt),a=a||Bi<0||Bi>1,s=s||Bi0&&l{const Jt=f>0?Pt==b?1:f*Pt:d[Pt],Bi=Jt*he;e.currentTime=V+ee.delay+Bi,ee.duration=Bi,this._validateStyleAst(We,e),We.offset=Jt,t.styles.push(We)}),t}visitReference(o,e){return{type:8,animation:xa(this,Zg(o.animation),e),options:Hu(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:9,options:Hu(o.options)}}visitAnimateRef(o,e){return{type:10,animation:this.visitReference(o.animation,e),options:Hu(o.options)}}visitQuery(o,e){const t=e.currentQuerySelector,r=o.options||{};e.queryCount++,e.currentQuery=o;const[l,d]=function ZI(n){const o=!!n.split(/\s*,\s*/).find(e=>":self"==e);return o&&(n=n.replace(WI,"")),n=n.replace(/@\*/g,EC).replace(/@\w+/g,e=>EC+"-"+e.slice(1)).replace(/:animating/g,_x),[n,o]}(o.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ma(e.collectedStyles,e.currentQuerySelector,new Map);const s=xa(this,Zg(o.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:o.selector,options:Hu(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(function cI(){return new i.vHH(3013,!1)}());const t="full"===o.timings?{duration:0,delay:0,easing:"full"}:HC(o.timings,e.errors,!0);return{type:12,animation:xa(this,Zg(o.animation),e),timings:t,options:null}}}class QI{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hu(n){return n?(n=$g(n)).params&&(n.params=function JI(n){return n?$g(n):null}(n.params)):n={},n}function Ax(n,o,e){return{duration:n,delay:o,easing:e}}function vx(n,o,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:o,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class VC{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,e){let t=this._map.get(o);t||this._map.set(o,t=[]),t.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const iO=new RegExp(":enter","g"),rO=new RegExp(":leave","g");function Tx(n,o,e,t,r,l=new Map,d=new Map,s,a,c=[]){return(new aO).buildKeyframes(n,o,e,t,r,l,d,s,a,c)}class aO{buildKeyframes(o,e,t,r,l,d,s,a,c,u=[]){c=c||new VC;const h=new Mx(o,e,c,r,l,u,[]);h.options=a;const f=a.delay?od(a.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([d],null,h.errors,a),xa(this,t,h);const b=h.timelines.filter(V=>V.containsAnimation());if(b.length&&s.size){let V;for(let ee=b.length-1;ee>=0;ee--){const he=b[ee];if(he.element===e){V=he;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([s],null,h.errors,a)}return b.length?b.map(V=>V.buildKeyframes()):[vx(e,[],[],[],0,f,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(o.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=o}visitAnimateRef(o,e){const t=e.createSubContext(o.options);t.transformIntoNewTimeline(),this.visitReference(o.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=o}_visitSubInstructions(o,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?od(t.duration):null,s=null!=t.delay?od(t.delay):null;return 0!==d&&o.forEach(a=>{const c=e.appendInstructionToTimeline(a,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(o,e){e.updateOptions(o.options,!0),xa(this,o.animation,e),e.previousNode=o}visitSequence(o,e){const t=e.subContextCount;let r=e;const l=o.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=FC);const d=od(l.delay);r.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>xa(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){const t=[];let r=e.currentTimeline.currentTime;const l=o.options&&o.options.delay?od(o.options.delay):0;o.steps.forEach(d=>{const s=e.createSubContext(o.options);l&&s.delayNextStep(l),xa(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=o}_visitTiming(o,e){if(o.dynamic){const t=o.strValue;return HC(e.params?kC(t,e.params,e.errors):t,e.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){const t=e.currentAnimateTimings=this._visitTiming(o.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=o.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||o.easing;o.isEmptyStep?t.applyEmptyStep(l):t.setStyles(o.styles,l,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,o.styles.forEach(a=>{s.forwardTime((a.offset||0)*l),s.setStyles(a.styles,a.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=o}visitQuery(o,e){const t=e.currentTimeline.currentTime,r=o.options||{},l=r.delay?od(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=FC);let d=t;const s=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(o.options,c);l&&h.delayNextStep(l),c===e.element&&(a=h.currentTimeline),xa(this,o.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){const t=e.parentContext,r=e.currentTimeline,l=o.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let a=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":a=s-a;break;case"full":a=t.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const h=u.currentTime;xa(this,o.animation,e),e.previousNode=o,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const FC={};class Mx{constructor(o,e,t,r,l,d,s,a){this._driver=o,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=FC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new jC(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;const t=o;let r=this.options;null!=t.duration&&(r.duration=od(t.duration)),null!=t.delay&&(r.delay=od(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]=kC(l[s],d,this.errors))})}}_copyOptions(){const o={};if(this.options){const e=this.options.params;if(e){const t=o.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return o}createSubContext(o=null,e,t){const r=e||this.element,l=new Mx(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(o),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(o){return this.previousNode=FC,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,t){const r={duration:e??o.duration,delay:this.currentTimeline.currentTime+(t??0)+o.delay,easing:""},l=new sO(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,r,o.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,t,r,l,d){let s=[];if(r&&s.push(this.element),o.length>0){o=(o=o.replace(iO,"."+this._enterClassName)).replace(rO,"."+this._leaveClassName);let c=this._driver.query(this.element,o,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(function dI(n){return new i.vHH(3014,!1)}()),s}}class jC{constructor(o,e,t,r){this._driver=o,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new jC(this._driver,o,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Ls),this._currentKeyframe.set(e,Ls);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},d=function oO(n,o){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||o.keys();for(let l of t)e.set(l,Ls)}else ld(r,e)}),e}(o,this._globalTimelineStyles);for(let[s,a]of d){const c=kC(a,l,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ls),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,a)=>{const c=ld(s,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?o.add(h):u===Ls&&e.add(h)}),t||c.set("offset",a/this.duration),r.push(c)});const l=o.size?PC(o.values()):[],d=e.size?PC(e.values()):[];if(t){const s=r[0],a=new Map(s);s.set("offset",0),a.set("offset",1),r=[s,a]}return vx(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class sO extends jC{constructor(o,e,t,r,l,d,s=!1){super(o,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 o=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,a=ld(o[0]);a.set("offset",0),l.push(a);const c=ld(o[0]);c.set("offset",TE(s)),l.push(c);const u=o.length-1;for(let h=1;h<=u;h++){let f=ld(o[h]);const b=f.get("offset");f.set("offset",TE((e+b*t)/d)),l.push(f)}t=d,e=0,r="",o=l}return vx(this.element,o,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function TE(n,o=3){const e=Math.pow(10,o-1);return Math.round(n*e)/e}class xx{}const lO=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class cO extends xx{normalizePropertyName(o,e){return wx(o)}normalizeStyleValue(o,e,t,r){let l="";const d=t.toString().trim();if(lO.has(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(function XL(n,o){return new i.vHH(3005,!1)}())}return d+l}}function ME(n,o,e,t,r,l,d,s,a,c,u,h,f){return{type:0,element:n,triggerName:o,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const Sx={};class xE{constructor(o,e,t){this._triggerName=o,this.ast=e,this._stateStyles=t}match(o,e,t,r){return function dO(n,o,e,t,r){return n.some(l=>l(o,e,t,r))}(this.ast.matchers,o,e,t,r)}buildStyles(o,e,t){let r=this._stateStyles.get("*");return void 0!==o&&(r=this._stateStyles.get(o?.toString())||r),r?r.buildStyles(e,t):new Map}build(o,e,t,r,l,d,s,a,c,u){const h=[],f=this.ast.options&&this.ast.options.params||Sx,V=this.buildStyles(t,s&&s.params||Sx,h),ee=a&&a.params||Sx,he=this.buildStyles(r,ee,h),We=new Set,Pt=new Map,Jt=new Map,Bi="void"===r,qs={params:uO(ee,f),delay:this.ast.options?.delay},us=u?[]:Tx(o,e,this.ast.animation,l,d,V,he,qs,c,h);let Hr=0;if(us.forEach(Gl=>{Hr=Math.max(Gl.duration+Gl.delay,Hr)}),h.length)return ME(e,this._triggerName,t,r,Bi,V,he,[],[],Pt,Jt,Hr,h);us.forEach(Gl=>{const ql=Gl.element,x1=Ma(Pt,ql,new Set);Gl.preStyleProps.forEach(Ru=>x1.add(Ru));const l_=Ma(Jt,ql,new Set);Gl.postStyleProps.forEach(Ru=>l_.add(Ru)),ql!==e&&We.add(ql)});const zl=PC(We.values());return ME(e,this._triggerName,t,r,Bi,V,he,us,zl,Pt,Jt,Hr)}}function uO(n,o){const e=$g(o);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class hO{constructor(o,e,t){this.styles=o,this.defaultParams=e,this.normalizer=t}buildStyles(o,e){const t=new Map,r=$g(this.defaultParams);return Object.keys(o).forEach(l=>{const d=o[l];null!==d&&(r[l]=d)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,s)=>{d&&(d=kC(d,r,e));const a=this.normalizer.normalizePropertyName(s,e);d=this.normalizer.normalizeStyleValue(s,a,d,e),t.set(a,d)})}),t}}class fO{constructor(o,e,t){this.name=o,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new hO(r.style,r.options&&r.options.params||{},t))}),SE(this.states,"true","1"),SE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new xE(o,r,this.states))}),this.fallbackTransition=function mO(n,o,e){return new xE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,t,r){return this.transitionFactories.find(d=>d.match(o,e,t,r))||null}matchStyles(o,e,t){return this.fallbackTransition.buildStyles(o,e,t)}}function SE(n,o,e){n.has(o)?n.has(e)||n.set(e,n.get(o)):n.has(e)&&n.set(o,n.get(e))}const gO=new VC;class _O{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,e){const t=[],l=Cx(this._driver,e,t,[]);if(t.length)throw function _I(n){return new i.vHH(3503,!1)}();this._animations.set(o,l)}_buildPlayer(o,e,t){const r=o.element,l=aE(0,this._normalizer,0,o.keyframes,e,t);return this._driver.animate(r,l,o.duration,o.delay,o.easing,[],!0)}create(o,e,t={}){const r=[],l=this._animations.get(o);let d;const s=new Map;if(l?(d=Tx(this._driver,e,l,gx,SC,new Map,new Map,t,gO,r),d.forEach(u=>{const h=Ma(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function bI(){return new i.vHH(3300,!1)}()),d=[]),r.length)throw function yI(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Ls))})});const c=sd(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(o,c),c.onDestroy(()=>this.destroy(o)),this.players.push(c),c}destroy(o){const e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(o){const e=this._playersById.get(o);if(!e)throw function wI(n){return new i.vHH(3301,!1)}();return e}listen(o,e,t,r){const l=hx(e,"","","");return dx(this._getPlayer(o),t,l,r),()=>{}}command(o,e,t,r){if("register"==t)return void this.register(o,r[0]);if("create"==t)return void this.create(o,e,r[0]||{});const l=this._getPlayer(o);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(o)}}}const DE="ng-animate-queued",Dx="ng-animate-disabled",AO=[],EE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cs="__ng_removed";class Ex{constructor(o,e=""){this.namespaceId=e;const t=o&&o.hasOwnProperty("value");if(this.value=function SO(n){return n??null}(t?o.value:o),t){const l=$g(o);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const e=o.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Jg="void",Hx=new Ex(Jg);class TO{constructor(o,e,t){this.id=o,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,ds(e,this._hostClassName)}listen(o,e,t,r){if(!this._triggers.has(e))throw function CI(n,o){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function AI(n){return new i.vHH(3303,!1)}();if(!function DO(n){return"start"==n||"done"==n}(t))throw function vI(n,o){return new i.vHH(3400,!1)}();const l=Ma(this._elementListeners,o,[]),d={name:e,phase:t,callback:r};l.push(d);const s=Ma(this._engine.statesByElement,o,new Map);return s.has(e)||(ds(o,DC),ds(o,DC+"-"+e),s.set(e,Hx)),()=>{this._engine.afterFlush(()=>{const a=l.indexOf(d);a>=0&&l.splice(a,1),this._triggers.has(e)||s.delete(e)})}}register(o,e){return!this._triggers.has(o)&&(this._triggers.set(o,e),!0)}_getTrigger(o){const e=this._triggers.get(o);if(!e)throw function TI(n){return new i.vHH(3401,!1)}();return e}trigger(o,e,t,r=!0){const l=this._getTrigger(e),d=new kx(this.id,e,o);let s=this._engine.statesByElement.get(o);s||(ds(o,DC),ds(o,DC+"-"+e),this._engine.statesByElement.set(o,s=new Map));let a=s.get(e);const c=new Ex(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s.set(e,c),a||(a=Hx),c.value!==Jg&&a.value===c.value){if(!function kO(n,o){const e=Object.keys(n),t=Object.keys(o);if(e.length!=t.length)return!1;for(let r=0;r{Eu(o,he),No(o,We)})}return}const f=Ma(this._engine.playersByElement,o,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(a.value,c.value,o,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:b,fromState:a,toState:c,player:d,isFallbackTransition:V}),V||(ds(o,DE),d.onStart(()=>{Mp(o,DE)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(o);if(he){let We=he.indexOf(d);We>=0&&he.splice(We,1)}}),this.players.push(d),f.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const e=this._engine.playersByElement.get(o);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){const t=this._engine.driver.query(o,EC,!0);t.forEach(r=>{if(r[cs])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(o,e,t,r){const l=this._engine.statesByElement.get(o),d=new Map;if(l){const s=[];if(l.forEach((a,c)=>{if(d.set(c,a.value),this._triggers.has(c)){const u=this.trigger(o,c,Jg,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,d),t&&sd(s).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const e=this._elementListeners.get(o),t=this._engine.statesByElement.get(o);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const a=this._triggers.get(d).fallbackTransition,c=t.get(d)||Hx,u=new Ex(Jg),h=new kx(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:a,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(o,e){const t=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(o):[];if(l&&l.length)r=!0;else{let d=o;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(o),r)t.markElementAsRemoved(this.id,o,!1,e);else{const l=o[cs];(!l||l===EE)&&(t.afterFlush(()=>this.clearElementCache(o)),t.destroyInnerAnimations(o),t._onRemovalComplete(o,e))}}insertNode(o,e){ds(o,this._hostClassName)}drainQueuedTransitions(o){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 a=hx(l,t.triggerName,t.fromState.value,t.toState.value);a._data=o,dx(t.player,s.phase,a,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(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let e=!1;return this._elementListeners.has(o)&&(e=!0),e=!!this._queue.find(t=>t.element===o)||e,e}}class MO{constructor(o,e,t){this.bodyNode=o,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(o,e){this.onRemovalComplete(o,e)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&o.push(t)})}),o}createNamespace(o,e){const t=new TO(o,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[o]=t}_balanceNamespaceList(o,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,s=this.driver.getParentElement(e);for(;s;){const a=r.get(s);if(a){const c=t.indexOf(a);t.splice(c+1,0,o),d=!0;break}s=this.driver.getParentElement(s)}d||t.unshift(o)}else t.push(o);return r.set(e,o),o}register(o,e){let t=this._namespaceLookup[o];return t||(t=this.createNamespace(o,e)),t}registerTrigger(o,e,t){let r=this._namespaceLookup[o];r&&r.register(e,t)&&this.totalAnimations++}destroy(o,e){if(!o)return;const t=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[o];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const e=new Set,t=this.statesByElement.get(o);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(o,e,t,r){if(NC(e)){const l=this._fetchNamespace(o);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(o,e,t,r){if(!NC(e))return;const l=e[cs];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){const d=this._fetchNamespace(o);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),ds(o,Dx)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Mp(o,Dx))}removeNode(o,e,t,r){if(NC(e)){const l=o?this._fetchNamespace(o):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(o,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==o&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(o,e,t,r,l){this.collectedLeaveElements.push(e),e[cs]={namespaceId:o,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(o,e,t,r,l){return NC(e)?this._fetchNamespace(o).listen(e,t,r,l):()=>{}}_buildInstruction(o,e,t,r,l){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,t,r,o.fromState.options,o.toState.options,e,l)}destroyInnerAnimations(o){let e=this.driver.query(o,EC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(o,_x,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(o){const e=this.playersByElement.get(o);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(o){const e=this.playersByQueriedElement.get(o);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return sd(this.players).onDone(()=>o());o()})}processLeaveNode(o){const e=o[cs];if(e&&e.setForRemoval){if(o[cs]=EE,e.namespaceId){this.destroyInnerAnimations(o);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(Dx)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(o=-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?sd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(o){throw function MI(n){return new i.vHH(3402,!1)}()}_flushAnimations(o,e){const t=new VC,r=[],l=new Map,d=[],s=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(rt=>{u.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let Ct=0;Ct{const Ct=gx+ee++;V.set(gt,Ct),rt.forEach(oi=>ds(oi,Ct))});const he=[],We=new Set,Pt=new Set;for(let rt=0;rtWe.add(oi)):Pt.add(gt))}const Jt=new Map,Bi=PE(f,Array.from(We));Bi.forEach((rt,gt)=>{const Ct=SC+ee++;Jt.set(gt,Ct),rt.forEach(oi=>ds(oi,Ct))}),o.push(()=>{b.forEach((rt,gt)=>{const Ct=V.get(gt);rt.forEach(oi=>Mp(oi,Ct))}),Bi.forEach((rt,gt)=>{const Ct=Jt.get(gt);rt.forEach(oi=>Mp(oi,Ct))}),he.forEach(rt=>{this.processLeaveNode(rt)})});const qs=[],us=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(Ct=>{const oi=Ct.player,Vn=Ct.element;if(qs.push(oi),this.collectedEnterElements.length){const ur=Vn[cs];if(ur&&ur.setForMove){if(ur.previousTriggersValues&&ur.previousTriggersValues.has(Ct.triggerName)){const Lu=ur.previousTriggersValues.get(Ct.triggerName),hs=this.statesByElement.get(Ct.element);if(hs&&hs.has(Ct.triggerName)){const rA=hs.get(Ct.triggerName);rA.value=Lu,hs.set(Ct.triggerName,rA)}}return void oi.destroy()}}const Uo=!h||!this.driver.containsElement(h,Vn),Ea=Jt.get(Vn),hd=V.get(Vn),Ki=this._buildInstruction(Ct,t,hd,Ea,Uo);if(Ki.errors&&Ki.errors.length)return void us.push(Ki);if(Uo)return oi.onStart(()=>Eu(Vn,Ki.fromStyles)),oi.onDestroy(()=>No(Vn,Ki.toStyles)),void r.push(oi);if(Ct.isFallbackTransition)return oi.onStart(()=>Eu(Vn,Ki.fromStyles)),oi.onDestroy(()=>No(Vn,Ki.toStyles)),void r.push(oi);const E1=[];Ki.timelines.forEach(ur=>{ur.stretchStartingKeyframe=!0,this.disabledNodes.has(ur.element)||E1.push(ur)}),Ki.timelines=E1,t.append(Vn,Ki.timelines),d.push({instruction:Ki,player:oi,element:Vn}),Ki.queriedElements.forEach(ur=>Ma(s,ur,[]).push(oi)),Ki.preStyleProps.forEach((ur,Lu)=>{if(ur.size){let hs=a.get(Lu);hs||a.set(Lu,hs=new Set),ur.forEach((rA,u0)=>hs.add(u0))}}),Ki.postStyleProps.forEach((ur,Lu)=>{let hs=c.get(Lu);hs||c.set(Lu,hs=new Set),ur.forEach((rA,u0)=>hs.add(u0))})});if(us.length){const rt=[];us.forEach(gt=>{rt.push(function xI(n,o){return new i.vHH(3505,!1)}())}),qs.forEach(gt=>gt.destroy()),this.reportError(rt)}const Hr=new Map,zl=new Map;d.forEach(rt=>{const gt=rt.element;t.has(gt)&&(zl.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Hr))}),r.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(oi=>{Ma(Hr,gt,[]).push(oi),oi.destroy()})});const Gl=he.filter(rt=>LE(rt,a,c)),ql=new Map;kE(ql,this.driver,Pt,c,Ls).forEach(rt=>{LE(rt,a,c)&&Gl.push(rt)});const l_=new Map;b.forEach((rt,gt)=>{kE(l_,this.driver,new Set(rt),a,"!")}),Gl.forEach(rt=>{const gt=ql.get(rt),Ct=l_.get(rt);ql.set(rt,new Map([...Array.from(gt?.entries()??[]),...Array.from(Ct?.entries()??[])]))});const Ru=[],S1=[],D1={};d.forEach(rt=>{const{element:gt,player:Ct,instruction:oi}=rt;if(t.has(gt)){if(u.has(gt))return Ct.onDestroy(()=>No(gt,oi.toStyles)),Ct.disabled=!0,Ct.overrideTotalTime(oi.totalTime),void r.push(Ct);let Vn=D1;if(zl.size>1){let Ea=gt;const hd=[];for(;Ea=Ea.parentNode;){const Ki=zl.get(Ea);if(Ki){Vn=Ki;break}hd.push(Ea)}hd.forEach(Ki=>zl.set(Ki,Vn))}const Uo=this._buildAnimation(Ct.namespaceId,oi,Hr,l,l_,ql);if(Ct.setRealPlayer(Uo),Vn===D1)Ru.push(Ct);else{const Ea=this.playersByElement.get(Vn);Ea&&Ea.length&&(Ct.parentPlayer=sd(Ea)),r.push(Ct)}}else Eu(gt,oi.fromStyles),Ct.onDestroy(()=>No(gt,oi.toStyles)),S1.push(Ct),u.has(gt)&&r.push(Ct)}),S1.forEach(rt=>{const gt=l.get(rt.element);if(gt&>.length){const Ct=sd(gt);rt.setRealPlayer(Ct)}}),r.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!Uo.destroyed);Vn.length?EO(this,gt,Vn):this.processLeaveNode(gt)}return he.length=0,Ru.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Ru}elementContainsData(o,e){let t=!1;const r=e[cs];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(o).elementContainsData(e)||t}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(o);s&&(d=s)}else{const s=this.playersByElement.get(o);if(s){const a=!l||l==Jg;s.forEach(c=>{c.queued||!a&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(o,e,t){const l=e.element,d=e.isRemovalTransition?void 0:o,s=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const c=a.element,u=c!==l,h=Ma(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)})}Eu(l,e.fromStyles)}_buildAnimation(o,e,t,r,l,d){const s=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[cs];if(he&&he.removedBeforeQueried)return new Ic(V.duration,V.delay);const We=ee!==a,Pt=function HO(n){const o=[];return RE(n,o),o}((t.get(ee)||AO).map(Hr=>Hr.getRealPlayer())).filter(Hr=>!!Hr.element&&Hr.element===ee),Jt=l.get(ee),Bi=d.get(ee),qs=aE(0,this._normalizer,0,V.keyframes,Jt,Bi),us=this._buildPlayer(V,qs,Pt);if(V.subTimeline&&r&&h.add(ee),We){const Hr=new kx(o,s,ee);Hr.setRealPlayer(us),c.push(Hr)}return us});c.forEach(V=>{Ma(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function xO(n,o,e){let t=n.get(o);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(o)}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>ds(V,fE));const b=sd(f);return b.onDestroy(()=>{u.forEach(V=>Mp(V,fE)),No(a,e.toStyles)}),h.forEach(V=>{Ma(r,V,[]).push(b)}),b}_buildPlayer(o,e,t){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,t):new Ic(o.duration,o.delay)}}class kx{constructor(o,e,t){this.namespaceId=o,this.triggerName=e,this.element=t,this._player=new Ic,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>dx(o,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){Ma(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}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(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const e=this._player;e.triggerCallback&&e.triggerCallback(o)}}function NC(n){return n&&1===n.nodeType}function HE(n,o){const e=n.style.display;return n.style.display=o??"none",e}function kE(n,o,e,t,r){const l=[];e.forEach(a=>l.push(HE(a)));const d=[];t.forEach((a,c)=>{const u=new Map;a.forEach(h=>{const f=o.computeStyle(c,h,r);u.set(h,f),(!f||0==f.length)&&(c[cs]=vO,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(a=>HE(a,l[s++])),d}function PE(n,o){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==o.length)return e;const r=new Set(o),l=new Map;function d(s){if(!s)return 1;let a=l.get(s);if(a)return a;const c=s.parentNode;return a=e.has(c)?c:r.has(c)?1:d(c),l.set(s,a),a}return o.forEach(s=>{const a=d(s);1!==a&&e.get(a).push(s)}),e}function ds(n,o){n.classList?.add(o)}function Mp(n,o){n.classList?.remove(o)}function EO(n,o,e){sd(e).onDone(()=>n.processLeaveNode(o))}function RE(n,o){for(let e=0;er.add(l)):o.set(n,t),e.delete(n),!0}class YC{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new MO(o,e,t),this._timelineEngine=new _O(o,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(o,e,t,r,l){const d=o+"-"+r;let s=this._triggerCache[d];if(!s){const a=[],u=Cx(this._driver,l,a,[]);if(a.length)throw function mI(n,o){return new i.vHH(3404,!1)}();s=function pO(n,o,e){return new fO(n,o,e)}(r,u,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,t,r){this._transitionEngine.insertNode(o,e,t,r)}onRemove(o,e,t,r){this._transitionEngine.removeNode(o,e,r||!1,t)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,t,r){if("@"==t.charAt(0)){const[l,d]=sE(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(o,e,t,r)}listen(o,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=sE(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(o,e,t,r,l)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let RO=(()=>{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=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&No(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(No(this._element,this._initialStyles),this._endStyles&&(No(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Eu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Eu(this._element,this._endStyles),this._endStyles=null),No(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Px(n){let o=null;return n.forEach((e,t)=>{(function LO(n){return"display"===n||"position"===n})(t)&&(o=o||new Map,o.set(t,e))}),o}class IE{constructor(o,e,t,r){this.element=o,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const e=[];return o.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(o,e,t){return o.animate(this._convertKeyframesToObject(e),t)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&o.set(r,this._finished?t:wE(this.element,r))}),this.currentSnapshot=o}triggerCallback(o){const e="start"===o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class IO{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,e){return!1}containsElement(o,e){return dE(o,e)}getParentElement(o){return fx(o)}query(o,e,t){return uE(o,e,t)}computeStyle(o,e,t){return window.getComputedStyle(o)[e]}animate(o,e,t,r,l,d=[]){const a={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(a.easing=l);const c=new Map,u=d.filter(b=>b instanceof IE);(function FI(n,o){return 0===n||0===o})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((V,ee)=>c.set(ee,V))});let h=function II(n){return n.length?n[0]instanceof Map?n:n.map(o=>mE(o)):[]}(e).map(b=>ld(b));h=function jI(n,o,e){if(e.size&&o.length){let t=o[0],r=[];if(e.forEach((l,d)=>{t.has(d)||r.push(d),t.set(d,l)}),r.length)for(let l=1;ld.set(s,wE(n,s)))}}return o}(o,h,c);const f=function PO(n,o){let e=null,t=null;return Array.isArray(o)&&o.length?(e=Px(o[0]),o.length>1&&(t=Px(o[o.length-1]))):o instanceof Map&&(e=Px(o)),e||t?new RO(n,e,t):null}(o,h);return new IE(o,h,a,f)}}let OO=(()=>{class n extends pm{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)?fm(e):e;return OE(this._renderer,null,t,"register",[r]),new BO(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class BO extends class Zv{}{constructor(o,e){super(),this._id=o,this._renderer=e}create(o,e){return new VO(this._id,o,e||{},this._renderer)}}class VO{constructor(o,e,t,r){this.id=o,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(o,e){return this._renderer.listen(this.element,`@@${this.id}:${o}`,e)}_command(o,...e){return OE(this._renderer,this.element,this.id,o,e)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}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(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(n,o,e,t,r){return n.setProperty(o,`@@${e}:${t}`,r)}const BE="@.disabled";let FO=(()=>{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=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 VE("",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 a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(a),new jO(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(YC),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class VE{constructor(o,e,t){this.namespaceId=o,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(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,t,r=!0){this.delegate.insertBefore(o,e,t),this.engine.onInsert(this.namespaceId,e,o,r)}removeChild(o,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,t,r){this.delegate.setAttribute(o,e,t,r)}removeAttribute(o,e,t){this.delegate.removeAttribute(o,e,t)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,t,r){this.delegate.setStyle(o,e,t,r)}removeStyle(o,e,t){this.delegate.removeStyle(o,e,t)}setProperty(o,e,t){"@"==e.charAt(0)&&e==BE?this.disableAnimations(o,!!t):this.delegate.setProperty(o,e,t)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,t){return this.delegate.listen(o,e,t)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}}class jO extends VE{constructor(o,e,t,r){super(e,t,r),this.factory=o,this.namespaceId=e}setProperty(o,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==BE?this.disableAnimations(o,t=void 0===t||!!t):this.engine.process(this.namespaceId,o,e.slice(1),t):this.delegate.setProperty(o,e,t)}listen(o,e,t){if("@"==e.charAt(0)){const r=function NO(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o);let l=e.slice(1),d="";return"@"!=l.charAt(0)&&([l,d]=function YO(n){const o=n.indexOf(".");return[n.substring(0,o),n.slice(o+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(o,e,t)}}const FE=[{provide:pm,useClass:OO},{provide:xx,useFactory:function zO(){return new cO}},{provide:YC,useClass:(()=>{class n extends YC{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(mx),i.LFG(xx),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function GO(n,o,e){return new FO(n,o,e)},deps:[_e,YC,i.R0b]}],Rx=[{provide:mx,useFactory:()=>new IO},{provide:i.QbO,useValue:"BrowserAnimations"},...FE],jE=[{provide:mx,useClass:hE},{provide:i.QbO,useValue:"NoopAnimations"},...FE];let qO=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?jE:Rx}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Rx,imports:[en]}),n})(),WO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,xu,_a,wp]}),n})();const $O=["*",[["mat-card-footer"]]],ZO=["*","mat-card-footer"];let NE=(()=>{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})(),YE=(()=>{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})(),UE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:ZO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t($O),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-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),zE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const JO=["input"],QO=["label"],KO=function(n){return{enterDuration:n}},XO=["*"],eB=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:GE});function GE(){return{color:"accent",clickAction:"check-indeterminate"}}let tB=0;const qE=GE(),iB={provide:xn,useExisting:(0,i.Gpc)(()=>cd),multi:!0};class nB{}const rB=Tc(Qa(Tr(dr(class{constructor(n){this._elementRef=n}}))));let aB=(()=>{class n extends rB{constructor(e,t,r,l,d,s,a){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,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||qE,this.color=this.defaultColor=this._options.color||qE.color,this.tabIndex=parseInt(d)||0,this.id=this._uniqueId=`${e}${++tB}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Fe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Fe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Fe(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=Fe(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(JO,5),i.Gf(QO,5),i.Gf(Mr,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),cd=(()=>{class n extends aB{constructor(e,t,r,l,d,s,a){super("mat-checkbox-",e,t,l,d,s,a),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new nB;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Tn),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(eB,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",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"},exportAs:["matCheckbox"],features:[i._Bn([iB]),i.qOj],ngContentSelectors:XO,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(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.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()()),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,KO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Mr,bc],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),WE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),zC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[hn,ot,yc,WE,ot,WE]}),n})(),lB=0;const Lx=new i.OlP("CdkAccordion");let cB=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+lB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Fe(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:Lx,useExisting:n}]),i.TTD]}),n})(),dB=0,uB=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=xt.w0.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-"+dB++,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=Fe(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=Fe(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(Lx,12),i.Y36(i.sBO),i.Y36(Sr))},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:Lx,useValue:void 0}])]}),n})(),hB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const pB=["body"];function fB(n,o){}const mB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],gB=["mat-expansion-panel-header","*","mat-action-row"];function _B(n,o){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const bB=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],yB=["mat-panel-title","mat-panel-description","*"],Ix=new i.OlP("MAT_ACCORDION"),$E="225ms cubic-bezier(0.4,0.0,0.2,1)",ZE={indicatorRotate:hi("indicatorRotate",[Dt("collapsed, void",Pe({transform:"rotate(0deg)"})),Dt("expanded",Pe({transform:"rotate(180deg)"})),_t("expanded <=> collapsed, void => collapsed",yt($E))]),bodyExpansion:hi("bodyExpansion",[Dt("collapsed, void",Pe({height:"0px",visibility:"hidden"})),Dt("expanded",Pe({height:"*",visibility:"visible"})),_t("expanded <=> collapsed, void => collapsed",yt($E))])},JE=new i.OlP("MAT_EXPANSION_PANEL");let wB=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(JE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),CB=0;const QE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let KE=(()=>{class n extends uB{constructor(e,t,r,l,d,s,a){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 De.x,this._headerId="mat-expansion-panel-header-"+CB++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ul((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())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Et(null),(0,Gt.h)(()=>this.expanded&&!this._portal),(0,Ot.q)(1)).subscribe(()=>{this._portal=new Ao(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(Ix,12),i.Y36(i.sBO),i.Y36(Sr),i.Y36(i.s_b),i.Y36(C.K0),i.Y36(i.QbO,8),i.Y36(QE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wB,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(pB,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:Ix,useValue:void 0},{provide:JE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:gB,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(mB),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,fB,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))},dependencies:[es],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ZE.bodyExpansion]},changeDetection:0}),n})();class AB{}const vB=Tc(AB);let XE=(()=>{class n extends vB{constructor(e,t,r,l,d,s,a){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=xt.w0.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,Gt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):yi.E;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=(0,Ci.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,Gt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Gt.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:Zi(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(KE,1),i.Y36(i.SBq),i.Y36(Tn),i.Y36(i.sBO),i.Y36(QE,8),i.Y36(i.QbO,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:yB,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(bB),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,_B,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[C.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ZE.indicatorRotate]},changeDetection:0}),n})(),TB=(()=>{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})(),MB=(()=>{class n extends cB{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=Fe(e)}ngAfterContentInit(){this._headers.changes.pipe(Et(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new pl(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 o;return function(t){return(o||(o=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,XE,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:Ix,useExisting:n}]),i.qOj]}),n})(),eH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,hB,vo]}),n})(),iH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xc,ot,xc,ot]}),n})();function DB(n,o){1&n&&i.Hsn(0)}const EB=["*"];let nH=(()=>{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})(),rH=(()=>{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})(),HB=0;const aH=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Ox=(()=>{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=Fe(e)}get optional(){return this._optional}set optional(e){this._optional=Fe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Fe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Fe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>Qg)),i.Y36(aH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,rH,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:EB,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,DB,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Qg=(()=>{class n{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new De.x,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=HB++}get linear(){return this._linear}set linear(e){this._linear=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Fi(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Et(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Et(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new pl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ve.of)()).pipe(Et(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],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=Zi(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=Es();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(Qg))},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})(),PB=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qg))},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})(),RB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bo]}),n})();function LB(n,o){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function IB(n,o){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 OB(n,o){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 BB(n,o){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 VB(n,o){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 FB(n,o){if(1&n&&(i.ynx(0,9),i.YNc(1,IB,2,1,"span",10),i.YNc(2,OB,2,1,"span",11),i.YNc(3,BB,2,1,"span",11),i.YNc(4,VB,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 jB(n,o){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 NB(n,o){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 YB(n,o){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 UB(n,o){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 zB(n,o){}function GB(n,o){if(1&n&&(i.Hsn(0),i.YNc(1,zB,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const qB=["*"];function WB(n,o){1&n&&i._UZ(0,"div",11)}const sH=function(n,o){return{step:n,i:o}};function $B(n,o){if(1&n&&(i.ynx(0),i.GkF(1,9),i.YNc(2,WB,1,0,"div",10),i.BQk()),2&n){const e=o.$implicit,t=o.index,r=o.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,sH,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}const oH=function(n){return{animationDuration:n}},lH=function(n,o){return{value:n,params:o}};function ZB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.GkF(1,13),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",i.WLB(7,lH,r._getAnimationDirection(t),i.VKq(5,oH,r._getAnimationDuration())))("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 JB(n,o){if(1&n&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,$B,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,ZB,2,10,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function QB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&n){const e=o.$implicit,t=o.index,r=o.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,sH,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",i.WLB(14,lH,l._getAnimationDirection(t),i.VKq(12,oH,l._getAnimationDuration())))("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 KB(n,o){if(1&n&&(i.ynx(0),i.YNc(1,QB,6,17,"div",14),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function XB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const l=i.CHM(e).step;return i.KtG(l.select())})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onKeydown(r))}),i.qZA()}if(2&n){const e=o.step,t=o.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 GC=(()=>{class n extends rH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),qC=(()=>{class n{constructor(){this.changes=new De.x,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 tV={provide:qC,deps:[[new i.FiY,new i.tp0,qC]],useFactory:function eV(n){return n||new qC}},iV=Qa(class extends nH{constructor(o){super(o)}},"primary");let cH=(()=>{class n extends iV{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 GC?null:this.label}_templateLabel(){return this.label instanceof GC?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(qC),i.Y36(Tn),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")(2,"div",1),i.YNc(3,LB,1,2,"ng-container",2),i.YNc(4,FB,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,jB,2,1,"div",5),i.YNc(7,NB,2,1,"div",5),i.YNc(8,YB,2,1,"div",6),i.YNc(9,UB,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))},dependencies:[C.O5,C.tP,C.RF,C.n9,C.ED,Di,Mr],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),n})();const hH={horizontalStepTransition:hi("horizontalStepTransition",[Dt("previous",Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Dt("current",Pe({transform:"none",visibility:"inherit"})),Dt("next",Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_t("* => *",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:hi("verticalStepTransition",[Dt("previous",Pe({height:"0px",visibility:"hidden"})),Dt("next",Pe({height:"0px",visibility:"hidden"})),Dt("current",Pe({height:"*",visibility:"inherit"})),_t("* <=> current",yt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let nV=(()=>{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})(),rV=(()=>{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})(),pH=(()=>{class n extends Ox{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=xt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,St.w)(()=>this._stepper.selectionChange.pipe((0,Qe.U)(e=>e.selectedStep===this),Et(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ao(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)(()=>fH)),i.Y36(fl,4),i.Y36(i.s_b),i.Y36(aH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,GC,5),i.Suo(r,rV,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:fl,useExisting:n},{provide:Ox,useExisting:n}]),i.qOj],ngContentSelectors:qB,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,GB,2,1,"ng-template"))},dependencies:[es],encapsulation:2,changeDetection:0}),n})(),fH=(()=>{class n extends Qg{constructor(e,t,r){super(e,t,r),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new De.x,this._animationDuration="";const l=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===l?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ul((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.sBO),i.Y36(i.SBq))},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,pH,5),i.Suo(r,nV,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(cH,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,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)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:Qg,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,JB,5,2,"div",1),i.YNc(2,KB,2,1,"ng-container",2),i.BQk(),i.YNc(3,XB,1,23,"ng-template",null,3,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[C.sg,C.O5,C.tP,C.RF,C.n9,cH],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[hH.horizontalStepTransition,hH.verticalStepTransition]},changeDetection:0}),n})(),aV=(()=>{class n extends kB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),sV=(()=>{class n extends PB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=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})(),mH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[tV,fl],imports:[ot,C.ez,vo,_a,RB,Rl,hn,ot]}),n})();const oV=["mat-calendar-body",""];function lV(n,o){if(1&n&&(i.TgZ(0,"tr",2)(1,"td",3),i._uU(2),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 cV(n,o){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 dV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",7)(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._cellClicked(d,r))})("focus",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._emitActiveDateChange(d,r))}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 uV(n,o){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,cV,2,6,"td",5),i.YNc(2,dV,5,47,"td",6),i.qZA()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function hV(n,o){if(1&n&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&n){const e=o.$implicit;i.xp6(2),i.Oqu(e.long),i.xp6(2),i.Oqu(e.narrow)}}const pV=["*"];function fV(n,o){}function mV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("_userSelection",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 gV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("monthSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._monthSelectedInYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 _V(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("yearSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._yearSelectedInMultiYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._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 bV(n,o){}const yV=["button"];function wV(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const CV=[[["","matDatepickerToggleIcon",""]]],AV=["[matDatepickerToggleIcon]"];let Kg=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Bx{constructor(o,e,t,r,l={},d=o,s){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=s}}let xp=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=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)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols: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,Ot.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Vx(e,this.startValue,this.endValue)}_isRangeEnd(e){return Fx(e,this.startValue,this.endValue)}_isInRange(e){return jx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Vx(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 Fx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return jx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Vx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Fx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return jx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(gH(e)?t=e:gH(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",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:oV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,lV,3,6,"tr",0),i.YNc(1,uV,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset=o&&n===e}function jx(n,o,e,t){return t&&null!==o&&null!==e&&o!==e&&n>=o&&n<=e}class Qr{constructor(o,e){this.start=o,this.end=e}}let dd=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new De.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),vV=(()=>{class n extends dd{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(wi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const _H={provide:dd,deps:[[new i.FiY,new i.tp0,dd],wi],useFactory:function MV(n,o){return n||new vV(o)}},WC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let bH=(()=>{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=xt.w0.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 Qr?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(Et(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let l,d;this._selected instanceof Qr?(l=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):l=d=this._getDateInCurrentMonth(this._selected),(l!==t||d!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!Zi(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const 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()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,s)=>({long:d,narrow:t[s]}));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 Qr?(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(ga,8),i.Y36(wi,8),i.Y36(Si,8),i.Y36(WC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(xp,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","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,hV,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("activeDateChange",function(l){return t._updateActiveDate(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),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))},dependencies:[C.sg,xp],encapsulation:2,changeDetection:0}),n})(),yH=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=xt.w0.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),wH(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?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(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Xg(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,r=this._dateAdapter.createDate(t,0,1),l=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Xg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Xg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Xg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Bx(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=xt.w0.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 Qr?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(Et(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._getDateFromMonth(t);this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Bx(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(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+HV++,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)-Xg(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):wH(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kg),i.Y36((0,i.Gpc)(()=>Ux)),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(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.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()()()),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))},dependencies:[jt],encapsulation:2,changeDetection:0}),n})(),Ux=(()=>{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 De.x,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 Qr?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 bl(this.headerComponent||kV),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=t||r||e.dateFilter;if(l&&!l.firstChange){const d=this._getCurrentViewComponent();d&&(this._changeDetectorRef.detectChanges(),d._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Qr||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(Kg),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(bH,5),i.Gf(AH,5),i.Gf(yH,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([_H]),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,fV,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,mV,1,8,"mat-month-view",2),i.YNc(3,gV,1,6,"mat-year-view",3),i.YNc(4,_V,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"))},dependencies:[C.RF,C.n9,Xd,es,bH,AH,yH],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const vH={transformPanel:hi("transformPanel",[_t("void => enter-dropdown",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(1, 0.8)"}),Pe({opacity:1,transform:"scale(1, 1)"})]))),_t("void => enter-dialog",yt("150ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(0.7)"}),Pe({transform:"none",opacity:1})]))),_t("* => void",yt("100ms linear",Pe({opacity:0})))]),fadeInCalendar:hi("fadeInCalendar",[Dt("void",Pe({opacity:0})),Dt("enter",Pe({opacity:1})),_t("void => *",yt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let PV=0;const TH=new i.OlP("mat-datepicker-scroll-strategy"),LV={provide:TH,deps:[pn],useFactory:function RV(n){return()=>n.scrollStrategies.reposition()}},IV=Qa(class{constructor(n){this._elementRef=n}});let OV=(()=>{class n extends IV{constructor(e,t,r,l,d,s){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new xt.w0,this._animationDone=new De.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Qr;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)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(dd),i.Y36(wi),i.Y36(WC,8),i.Y36(Kg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ux,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)(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,bV,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()()),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)}},dependencies:[C.mk,jt,cb,es,Ux],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[vH.transformPanel,vH.fadeInCalendar]},changeDetection:0}),n})(),MH=(()=>{class n{constructor(e,t,r,l,d,s,a){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=s,this._model=a,this._inputStateChanges=xt.w0.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-"+PV++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new De.x,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=Fe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Fe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Fe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function K_(n,o=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(o);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Fe(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 xr&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Es(),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,Ot.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new bl(OV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new To({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()}),r.keydownEvents().subscribe(l=>{const d=l.keyCode;(38===d||40===d||37===d||39===d||33===d||34===d)&&l.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,Ot.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,Ci.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Gt.h)(t=>27===t.keyCode&&!Zi(t)||this.datepickerInput&&Zi(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pn),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(TH),i.Y36(wi,8),i.Y36(Si,8),i.Y36(dd))},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})(),zx=(()=>{class n extends MH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([_H,{provide:MH,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class $C{constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}}let BV=(()=>{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 De.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=xt.w0.EMPTY,this._localeSubscription=xt.w0.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)),s=this._getMinDate();return!s||!d||this._dateAdapter.compareDate(s,d)<=0?null:{matDatepickerMin:{min:s,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMaxDate();return!s||!d||this._dateAdapter.compareDate(s,d)>=0?null:{matDatepickerMax:{max:s,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=Fe(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 $C(this,this._elementRef.nativeElement)),this.dateChange.emit(new $C(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function VV(n,o){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!o.isDateInstance(r)||!o.isDateInstance(l))return!0;if(!o.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);const l=!this._dateAdapter.sameDate(r,this.value);!r||l?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(r),this.dateInput.emit(new $C(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new $C(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const FV={provide:xn,useExisting:(0,i.Gpc)(()=>e_),multi:!0},jV={provide:ln,useExisting:(0,i.Gpc)(()=>e_),multi:!0};let e_=(()=>{class n extends BV{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=xt.w0.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(wi,8),i.Y36(ga,8),i.Y36(Zh,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([FV,jV,{provide:jD,useExisting:n}]),i.qOj]}),n})(),NV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),Gx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=xt.w0.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=Fe(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,Ve.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ve.of)(),r=this.datepicker?(0,Ci.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ve.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ci.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kg),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,NV,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(yV,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:AV,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(CV),i.TgZ(0,"button",0,1),i.YNc(2,wV,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))},dependencies:[C.O5,jt],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),qx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Kg,LV],imports:[C.ez,_a,vl,Ph,vo,ot,Xa]}),n})();const YV=["mat-sort-header",""];function UV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),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 zV=["*"],xH=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),GV=eu(dr(class{}));let Da=(()=>{class n extends GV{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,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=Fe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function qV(n,o){let e=["asc","desc"];return"desc"==n&&e.reverse(),o||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),l=r.indexOf(this.direction)+1;return l>=r.length&&(l=0),r[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xH,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 ud=ma.ENTERING+" "+Rh.STANDARD_CURVE,Sp={indicator:hi("indicator",[Dt("active-asc, asc",Pe({transform:"translateY(0px)"})),Dt("active-desc, desc",Pe({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",yt(ud))]),leftPointer:hi("leftPointer",[Dt("active-asc, asc",Pe({transform:"rotate(-45deg)"})),Dt("active-desc, desc",Pe({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),rightPointer:hi("rightPointer",[Dt("active-asc, asc",Pe({transform:"rotate(45deg)"})),Dt("active-desc, desc",Pe({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),arrowOpacity:hi("arrowOpacity",[Dt("desc-to-active, asc-to-active, active",Pe({opacity:1})),Dt("desc-to-hint, asc-to-hint, hint",Pe({opacity:.54})),Dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Pe({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",yt("0ms")),_t("* <=> *",yt(ud))]),arrowPosition:hi("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",yt(ud,Tl([Pe({transform:"translateY(-25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",yt(ud,Tl([Pe({transform:"translateY(25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(-25%)"})]))),Dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Pe({transform:"translateY(0)"})),Dt("hint-to-desc, active-to-desc, desc",Pe({transform:"translateY(-25%)"})),Dt("hint-to-asc, active-to-asc, asc",Pe({transform:"translateY(25%)"}))]),allowChildren:hi("allowChildren",[_t("* <=> *",[Rn("@*",Lc(),{optional:!0})])])};let ZC=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $V={provide:ZC,deps:[[new i.FiY,new i.tp0,ZC]],useFactory:function WV(n){return n||new ZC}},ZV=dr(class{});let Dp=(()=>{class n extends ZV{constructor(e,t,r,l,d,s,a,c){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Ci.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(ZC),i.Y36(i.sBO),i.Y36(Da,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Tn),i.Y36(i.SBq),i.Y36(Of,8),i.Y36(xH,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:YV,ngContentSelectors:zV,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,UV,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)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[C.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Sp.indicator,Sp.leftPointer,Sp.rightPointer,Sp.arrowOpacity,Sp.arrowPosition,Sp.allowChildren]},changeDetection:0}),n})(),Wx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$V],imports:[C.ez,ot]}),n})();function JV(n,o){1&n&&i.Hsn(0)}const SH=["*"];function QV(n,o){}const KV=function(n){return{animationDuration:n}},XV=function(n,o){return{value:n,params:o}},eF=["tabListContainer"],tF=["tabList"],iF=["tabListInner"],nF=["nextPaginator"],rF=["previousPaginator"],aF=["tabBodyWrapper"],sF=["tabHeader"];function oF(n,o){}function lF(n,o){if(1&n&&i.YNc(0,oF,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function cF(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function dF(n,o){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,s=i.oxw(),a=i.MAs(1);return i.KtG(s._handleClick(l,a,d))})("cdkFocusChange",function(r){const d=i.CHM(e).index,s=i.oxw();return i.KtG(s._tabFocusChanged(r,d))}),i.TgZ(1,"div",7),i.YNc(2,lF,1,1,"ng-template",8),i.YNc(3,cF,1,1,"ng-template",null,9,i.W1O),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 uF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._setTabBodyWrapperHeight(r))}),i.qZA()}if(2&n){const e=o.$implicit,t=o.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)("preserveContent",r.preserveContent),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const hF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function pF(){return o=>({left:o?(o.offsetLeft||0)+"px":"0",width:o?(o.offsetWidth||0)+"px":"0"})}});let DH=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(hF),i.Y36(i.QbO,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 EH=new i.OlP("MatTabContent");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:[["","matTabContent",""]],features:[i._Bn([{provide:EH,useExisting:n}])]}),n})();const HH=new i.OlP("MatTabLabel"),kH=new i.OlP("MAT_TAB");let mF=(()=>{class n extends DS{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(kH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:HH,useExisting:n}]),i.qOj]}),n})();const gF=dr(class{}),PH=new i.OlP("MAT_TAB_GROUP");let RH=(()=>{class n extends gF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new De.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ao(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(PH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,HH,5),i.Suo(r,EH,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:kH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:SH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,JV,1,0,"ng-template"))},encapsulation:2}),n})();const _F={translateTab:hi("translateTab",[Dt("center, void, left-origin-center, right-origin-center",Pe({transform:"none"})),Dt("left",Pe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Dt("right",Pe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_t("* => left, * => right, left => center, right => center",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),_t("void => left-origin-center",[Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),_t("void => right-origin-center",[Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let bF=(()=>{class n extends es{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=xt.w0.EMPTY,this._leavingSub=xt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Et(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>LH)),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),yF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=xt.w0.EMPTY,this._translateTabComplete=new De.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ul((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(Si,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),LH=(()=>{class n extends yF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(es,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,QV,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,XV,t._position,i.VKq(1,KV,t.animationDuration)))},dependencies:[bF],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[_F.translateTab]}}),n})();const IH=new i.OlP("MAT_TABS_CONFIG"),wF=dr(class{});let OH=(()=>{class n extends wF{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 BH=fa({passive:!0});let vF=(()=>{class n{constructor(e,t,r,l,d,s,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new De.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new De.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{Ka(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Fi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Ka(this._previousPaginator.nativeElement,"touchstart",BH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ka(this._nextPaginator.nativeElement,"touchstart",BH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ve.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new pl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(r),(0,Ci.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return"function"!=typeof ResizeObserver?yi.E:this._items.changes.pipe(Et(this._items),(0,St.w)(e=>new Gi.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(l=>{r.observe(l.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Ef(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Zi(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 s,a;"ltr"==this._getLayoutDirection()?(s=l,a=s+d):(a=this._tabListInner.nativeElement.offsetWidth-l,s=a-d);const c=this.scrollDistance,u=this.scrollDistance+r;su&&(this.scrollDistance+=a-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(),(0,sm.H)(650,100).pipe(Ke((0,Ci.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(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),TF=(()=>{class n extends vF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Fe(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(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),MF=(()=>{class n extends TF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,OH,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(DH,7),i.Gf(eF,7),i.Gf(tF,7),i.Gf(iF,7),i.Gf(nF,5),i.Gf(rF,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:SH,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"button",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.TgZ(11,"button",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)("disabled",t._disableScrollBefore||null),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)("disabled",t._disableScrollAfter||null))},dependencies:[Mr,bc,DH],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),xF=0;class SF{}const DF=Qa(Tr(class{constructor(n){this._elementRef=n}}),"primary");let EF=(()=>{class n extends DF{constructor(e,t,r,l){super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=xt.w0.EMPTY,this._tabLabelSubscription=xt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=xF++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Fi(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=Fi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Fe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,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._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let l=0;l{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Et(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new SF;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,Ci.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(IH,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),HF=(()=>{class n extends EF{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(IH,8),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RH,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(aF,5),i.Gf(sF,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:PH,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","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(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,dF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,uF,1,11,"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))},dependencies:[C.mk,C.sg,C.O5,es,Mr,Xd,OH,LH,MF],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),FH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,vo,hn,yc,Ph,ot]}),n})(),jH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),NH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[jH,hn,ot,yc,jH,ot]}),n})();const GH=new i.OlP("mat-chips-default-options");let Zx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl,{provide:GH,useValue:{separatorKeyCodes:[13]}}],imports:[ot]}),n})(),qH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,zE,lx,eH,_a,iH,zC,Rl,MC,xu,mC,Vc,fC,_l,dg,ko,mH,qx,Cv,BD,tE,Au,iE,Wx,wu,Jc,Ro,hn,MC,NH,Zx,zE,lx,eH,_a,iH,zC,Rl,MC,xu,mC,Vc,fC,_l,dg,ko,mH,qx,Cv,BD,tE,Au,iE,Wx,wu,Jc,Ro,hn,FH,NH,Zx]}),n})(),tj=(()=>{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(bn),i.Y36(Er))},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)(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)(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),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")," "))},dependencies:[jt,Qn,Kn,Xn,wt]}),n})(),ij=(()=>{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})(),WH=(()=>{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})(),JC=(()=>{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})(),Jx=(()=>{class n{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return this.tableCheckboxService.isAllSelected(t,e,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Gg,16))},n.\u0275pipe=i.Yjl({name:"isAllSelected",type:n,pure:!0}),n})();function nj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function rj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",23)(1,"mat-checkbox",24),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function aj(n,o){1&n&&(i.ynx(0,18),i.YNc(1,nj,2,3,"th",19),i.YNc(2,rj,2,2,"td",20),i.BQk())}function sj(n,o){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,"PUBLICATIONS_LIST.TABLE_ID")," "))}function oj(n,o){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function lj(n,o){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,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function cj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function dj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function uj(n,o){if(1&n&&(i.TgZ(0,"td",26),i.YNc(1,cj,4,3,"button",27),i.YNc(2,dj,4,3,"button",27),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function hj(n,o){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,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function pj(n,o){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function fj(n,o){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,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function mj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function gj(n,o){if(1&n&&(i.TgZ(0,"td",26),i.YNc(1,mj,4,3,"span",29),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function _j(n,o){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,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function bj(n,o){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function yj(n,o){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,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function wj(n,o){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function Cj(n,o){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,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function Aj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function vj(n,o){if(1&n&&(i.TgZ(0,"td",26),i.YNc(1,Aj,3,1,"span",29),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function Tj(n,o){1&n&&(i.TgZ(0,"th",30),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 Mj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",26)(1,"button",31),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.showCite(l))})("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!1)}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function xj(n,o){1&n&&i._UZ(0,"tr",32)}const $H=function(n,o){return[n,o]};function Sj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"tr",33),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null)}),i.qZA()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,$H,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,$H,t.routerPath,e.id))}}function Dj(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),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"))}const Ej=function(n){return{all:n}};let Ep=(()=>{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 si(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Oo,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(s=>this.changeLockMessage=s),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(s=>this.locked=s),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(s=>this.unlocked=s)}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+=Uw(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 Nl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.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=cn();t.width="500px",t.data=e,this.dialog.open(tj,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)=>Bo(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(Gg),i.Y36(zt),i.Y36(fi),i.Y36(Bn),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(Da,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:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,aj,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,sj,3,3,"th",5),i.YNc(7,oj,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,lj,3,3,"th",5),i.YNc(10,uj,3,2,"td",6),i.BQk(),i.ynx(11,8),i.YNc(12,hj,3,3,"th",5),i.YNc(13,pj,2,1,"td",6),i.BQk(),i.ynx(14,9),i.YNc(15,fj,3,3,"th",5),i.YNc(16,gj,2,1,"td",6),i.BQk(),i.ynx(17,10),i.YNc(18,_j,3,3,"th",5),i.YNc(19,bj,2,1,"td",6),i.BQk(),i.ynx(20,11),i.YNc(21,yj,3,3,"th",5),i.YNc(22,wj,2,1,"td",6),i.BQk(),i.ynx(23,12),i.YNc(24,Cj,3,3,"th",5),i.YNc(25,vj,2,1,"td",6),i.BQk(),i.ynx(26,13),i.YNc(27,Tj,3,3,"th",14),i.YNc(28,Mj,4,3,"td",6),i.BQk(),i.YNc(29,xj,1,0,"tr",15),i.YNc(30,Sj,1,10,"tr",16),i.qZA()()(),i.YNc(31,Dj,3,3,"perun-web-apps-alert",17)),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(1),i.Q6J("ngIf",i.VKq(12,Ej,i.xi3(4,9,t.dataSource,t.selection.selected.length))),i.xp6(26),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))},dependencies:[C.sg,C.O5,jt,cd,Di,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,Zc,mc,Ta,os,WH,wt,JC,Jx],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Hj(n,o){1&n&&i._UZ(0,"mat-spinner",7)}const kj=function(){return["id","title","year"]};function Pj(n,o){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,kj))}}let Qx=(()=>{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(bn),i.Y36(Er),i.Y36(Bn),i.Y36(Yi),i.Y36(zt))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,Hj,1,0,"mat-spinner",2),i.YNc(5,Pj,4,7,"div",3),i.TgZ(6,"div",4)(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()()()),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")," "))},dependencies:[C.O5,jt,Qn,Kn,Xn,Ai,Ep,wt]}),n})(),Hp=(()=>{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"))},dependencies:[Di,jt,Zc,wt],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 kp=M(5439);const Pu=kp||M.t(kp,2),ZH=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Lj(){return{useUtc:!1}}});function Ij(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this._options=t,this.setLocale(e||Pu.locale())}setLocale(e){super.setLocale(e);let t=Pu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:Ij(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,Pu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Pu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Pu.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?Pu.utc(e,t,r,l):Pu(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ks,8),i.LFG(ZH,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Oj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:t_,deps:[ks,ZH]}]}),n})(),JH=(()=>{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(){i.CHM(r);const d=i.MAs(7);return i.KtG(d.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(7);return i.KtG(t.chosenYearHandler(t.startYear,d,s))}),i.qZA()(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(15);return i.KtG(d.open())}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(15);return i.KtG(t.chosenYearHandler(t.endYear,d,s))}),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)}},dependencies:[Wn,wa,$h,ls,Ln,$n,Dr,zx,e_,Gx,wt],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function Bj(n,o){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const QC=kp,Vj={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Kx=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Qi,this.code=new Qi,this.startYear=new Qi(QC()),this.endYear=new Qi(QC())}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,C.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,C.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 Qi(QC()),this.endYear=new Qi(QC()),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(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:wi,useClass:t_,deps:[ks]},{provide:ga,useValue:Vj}])],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)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1)(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.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1)(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,Bj,2,2,"mat-option",8),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()()),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")," "))},dependencies:[C.sg,jt,Di,Wn,wa,ls,Ln,$n,Dr,Po,Sc,JH,wt],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 Fj(n,o){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 jj(n,o){1&n&&i._UZ(0,"mat-spinner",11)}let Nj=(()=>{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 si(!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=cn();e.width="500px",e.data=this.selected.selected,this.dialog.open(Qx,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(Gn),i.Y36(zt),i.Y36(fi),i.Y36(Lo),i.Y36(Hi))},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)(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.TgZ(6,"div",4)(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.YNc(12,Fj,1,4,"perun-web-apps-publications-list",8),i.YNc(13,jj,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))},dependencies:[C.O5,jt,Di,Ai,Hp,Ep,Kx,wt],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function Yj(n,o){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 Uj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(7,Yj,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 zj(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let Gj=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new si(!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=cn();e.width="500px",e.data=this.selected.selected,this.dialog.open(Qx,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(Gn),i.Y36(zt),i.Y36(fi),i.Y36(nt))},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)(1,"h1",1)(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.YNc(7,Uj,8,5,"div",4),i.YNc(8,zj,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))},dependencies:[C.O5,jt,Di,Ai,Hp,Ep,Kx,wt]}),n})(),qj=(()=>{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(Li))},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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6)(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.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6)(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()()()()()()),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")," "))},dependencies:[UE,NE,YE,jt,Di,wt],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 Wj=["input"];let $j=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Qi,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),Ka(this.input.nativeElement,"keyup").pipe((0,Qe.U)(e=>e.target.value),(0,dl.b)(500),ul()).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(Wj,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","","data-cy","filter-input",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()()),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," "))},dependencies:[Ln,$n,is,Wn,Dr,ls,wt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function Zj(n,o){1&n&&i._UZ(0,"th",20)}function Jj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Qj(n,o){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 Kj(n,o){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function Xj(n,o){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 e2(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function t2(n,o){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 n2(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function r2(n,o){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 a2(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function s2(n,o){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 o2(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function l2(n,o){1&n&&i._UZ(0,"th",26)}function c2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onAddClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function d2(n,o){1&n&&i._UZ(0,"th",26)}function u2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onRemoveClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function h2(n,o){1&n&&i._UZ(0,"tr",29)}const QH=function(n){return["/authors",n]};function p2(n,o){if(1&n&&i._UZ(0,"tr",30),2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,QH,e.id))("routerLink",t.disableRouting?null:i.VKq(6,QH,e.id))}}function f2(n,o){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 m2(n,o){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 Xx=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Oo,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 zw(n){let o="";return null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}(e);case"organization":return js(e,"organization");case"email":return js(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 Uw(e);case"organization":return js(e,"organization");case"email":return js(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return js(e,"organization");case"email":return js(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Nl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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)=>Il(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Bo(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(os,7),i.Gf(Da,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Zj,1,0,"th",4),i.YNc(5,Jj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Qj,3,3,"th",7),i.YNc(8,Kj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,Xj,3,3,"th",7),i.YNc(11,e2,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,t2,3,3,"th",7),i.YNc(14,n2,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,r2,3,3,"th",7),i.YNc(17,a2,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,s2,3,3,"th",7),i.YNc(20,o2,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,l2,1,0,"th",15),i.YNc(23,c2,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,d2,1,0,"th",15),i.YNc(26,u2,4,3,"td",8),i.BQk(),i.YNc(27,h2,1,0,"tr",17),i.YNc(28,p2,1,8,"tr",18),i.qZA()()(),i.YNc(29,f2,3,3,"perun-web-apps-alert",19),i.YNc(30,m2,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))},dependencies:[C.O5,jt,cd,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,mc,Ta,os,WH,wt,JC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function g2(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const _2=function(){return["id","name","organization","email","numberOfPublications"]};function b2(n,o){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,_2))("filterValue",e.filterValue)("tableId",e.tableId)}}let y2=(()=>{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(zt))},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)(1,"h1",1)(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.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,g2,1,0,"mat-spinner",6),i.YNc(10,b2,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))},dependencies:[C.O5,Di,Ai,Hp,$j,Xx,wt]}),n})();function w2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function C2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(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.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.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(24),i.ALo(25,"translate"),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 A2=(()=>{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 Qi(null,[Ii.required,Ii.pattern("^[\\w.-]+( [\\w.-]+)*$"),Ii.maxLength(128)]),this.rankCtrl=new Qi(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(bn),i.Y36(Bn),i.Y36(zt),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,w2,1,0,"mat-spinner",2),i.YNc(5,C2,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))},dependencies:[C.O5,jt,Qn,Kn,Xn,Ai,is,Wn,ls,Ln,$n,as,Dr,Zc,wt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function v2(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function T2(n,o){1&n&&i._UZ(0,"th",14)}function M2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function x2(n,o){1&n&&i._UZ(0,"tr",16)}function S2(n,o){1&n&&i._UZ(0,"tr",17)}function D2(n,o){if(1&n&&(i.TgZ(0,"div",6)(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,T2,1,0,"th",10),i.YNc(10,M2,2,1,"td",11),i.BQk(),i.YNc(11,x2,1,0,"tr",12),i.YNc(12,S2,1,0,"tr",13),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 E2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",18)(1,"button",19),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),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 H2=(()=>{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 Nl(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(bn),i.Y36(Er),i.Y36(Bn),i.Y36(Yi),i.Y36(zt))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,v2,1,0,"mat-spinner",2),i.YNc(5,D2,13,9,"div",3),i.YNc(6,E2,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))},dependencies:[C.O5,jt,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Qn,Kn,Xn,Ai,wt]}),n})();function k2(n,o){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 P2(n,o){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 i_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Qi}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","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,k2,2,4,"input",1),i.YNc(2,P2,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[C.O5,Ln,$n,Wn,Dr,ls,ij,wt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function R2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function L2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(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.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(18),i.ALo(19,"translate"),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 I2=(()=>{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(s=>this.successMessage=s)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Qi(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(bn),i.Y36(Er),i.Y36(Bn),i.Y36(zt),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,R2,1,0,"mat-spinner",2),i.YNc(5,L2,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))},dependencies:[C.O5,jt,Qn,Kn,Xn,Ai,is,Wn,ls,Ln,$n,as,Dr,Zc,wt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function O2(n,o){1&n&&i._UZ(0,"th",15)}function B2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function V2(n,o){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 F2(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function j2(n,o){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 N2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function Y2(n,o){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 U2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.updateCategory(r))}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function z2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,U2,3,0,"button",21),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function G2(n,o){1&n&&i._UZ(0,"tr",23)}function q2(n,o){1&n&&i._UZ(0,"tr",24)}function W2(n,o){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 $2=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new si(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Oo,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 Nl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Bo(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.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=cn();t.width="400px",t.data=e,this.dialog.open(I2,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(Gg),i.Y36(fi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(Da,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,O2,1,0,"th",4),i.YNc(5,B2,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,V2,3,3,"th",7),i.YNc(8,F2,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,j2,3,3,"th",7),i.YNc(11,N2,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Y2,3,3,"th",7),i.YNc(14,z2,3,2,"td",10),i.BQk(),i.YNc(15,G2,1,0,"tr",12),i.YNc(16,q2,1,0,"tr",13),i.qZA()()(),i.YNc(17,W2,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))},dependencies:[C.O5,jt,cd,Di,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,Ta,os,wt]}),n})();function Z2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 J2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 Q2(n,o){1&n&&i._UZ(0,"mat-spinner",10)}const K2=function(){return["select","id","name","rank"]},X2=function(){return["name","rank"]};function eN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,K2):i.DdM(6,X2))("tableId",e.tableId)("selection",e.selected)}}let tN=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new si(!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=cn();e.width="400px",e.data={},this.dialog.open(A2,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=cn();e.width="400px",e.data=this.selected.selected,this.dialog.open(H2,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fi),i.Y36(ra))},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)(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,Z2,3,3,"button",3),i.YNc(6,J2,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,Q2,1,0,"mat-spinner",6),i.YNc(9,eN,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))},dependencies:[C.O5,jt,Ai,Hp,i_,$2,wt]}),n})();function iN(n,o){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 nN(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function rN(n,o){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 aN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function sN(n,o){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 oN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function lN(n,o){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 cN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function dN(n,o){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 uN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function hN(n,o){1&n&&i._UZ(0,"tr",17)}function pN(n,o){1&n&&i._UZ(0,"tr",18)}function fN(n,o){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 mN=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Oo}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 Nl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Bo(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(os,7),i.Gf(Da,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,iN,3,3,"th",4),i.YNc(5,nN,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,rN,3,3,"th",4),i.YNc(8,aN,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,sN,3,3,"th",4),i.YNc(11,oN,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,lN,3,3,"th",4),i.YNc(14,cN,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,dN,3,3,"th",4),i.YNc(17,uN,2,1,"td",7),i.BQk(),i.YNc(18,hN,1,0,"tr",11),i.YNc(19,pN,1,0,"tr",12),i.qZA()()(),i.YNc(20,fN,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))},dependencies:[C.O5,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,Ta,os,wt]}),n})();function gN(n,o){1&n&&i._UZ(0,"mat-spinner",6)}function _N(n,o){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 bN=(()=>{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(zt))},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)(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,gN,1,0,"mat-spinner",4),i.YNc(7,_N,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))},dependencies:[C.O5,Ai,Hp,i_,mN,wt]}),n})();function yN(n,o){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 wN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(11,yN,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 CN(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let AN=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new si(!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=cn();e.width="500px",e.data=this.selected.selected,this.dialog.open(Qx,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(Gn),i.Y36(zt),i.Y36(ia),i.Y36(fi))},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)(1,"h1",1)(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.YNc(7,wN,12,11,"div",4),i.YNc(8,CN,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))},dependencies:[C.O5,jt,Di,Ai,Hp,Ep,Kx,wt,JC]}),n})();function vN(n,o){1&n&&i._UZ(0,"mat-spinner",2)}function TN(n,o){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 MN(n,o){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 i.KtG(r.editing=!r.editing)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function xN(n,o){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 SN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,xN,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 DN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.save())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),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 EN(n,o){1&n&&i._UZ(0,"th",21)}function HN(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij("",e.key,":")}}function kN(n,o){1&n&&i._UZ(0,"th",21)}function PN(n,o){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 RN(n,o){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 LN(n,o){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 IN(n,o){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 ON(n,o){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,IN,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 BN(n,o){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function VN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ON,2,1,"span",1),i.YNc(2,BN,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 FN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(7);return i.KtG(r.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27)(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),d=i.oxw(4);return i.KtG(d.chosenYearHandler(r,l))}),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 jN(n,o){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function NN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field")(1,"mat-select",31),i.YNc(2,jN,2,2,"mat-option",32),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 YN(n,o){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 UN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,YN,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 zN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.isbn=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function GN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.doi=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function qN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"textarea",36),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.main=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function WN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,FN,8,7,"mat-form-field",25),i.YNc(2,NN,3,2,"mat-form-field",1),i.YNc(3,UN,3,2,"mat-form-field",1),i.YNc(4,zN,2,1,"mat-form-field",6),i.YNc(5,GN,2,1,"mat-form-field",6),i.YNc(6,qN,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 $N(n,o){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,PN,10,9,"span",1),i.YNc(2,RN,3,4,"span",1),i.YNc(3,LN,2,1,"span",1),i.YNc(4,VN,3,2,"div",1),i.YNc(5,WN,7,6,"div",1),i.qZA()),2&n){const e=o.$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 ZN(n,o){1&n&&i._UZ(0,"tr",37)}function JN(n,o){if(1&n&&(i.TgZ(0,"div")(1,"div",3),i.YNc(2,TN,2,1,"h3",4),i.YNc(3,MN,4,3,"button",5),i.YNc(4,SN,3,2,"mat-form-field",6),i.YNc(5,DN,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,EN,1,0,"th",10),i.YNc(9,HN,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,kN,1,0,"th",10),i.YNc(12,$N,6,5,"td",13),i.BQk(),i.YNc(13,ZN,1,0,"tr",14),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 KH=kp,QN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let KN=(()=>{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 si(!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(zt),i.Y36(Bn),i.Y36(Yi))},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:wi,useClass:t_,deps:[ks]},{provide:ga,useValue:QN}])],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,vN,1,0,"mat-spinner",0),i.YNc(2,JN,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,jt,Di,Vo,Ys,Us,Ns,Fo,zs,Gs,jo,Ai,is,Wn,wa,$h,ls,Ln,$n,El,Dr,zx,e_,Gx,Zc,Po,Sc,C.uU,wt],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 XN=function(){return["id","name","organization","email","add"]};function eY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.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,XN))}}function tY(n,o){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 iY(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,eY,1,5,"perun-web-apps-authors-list",13),i.YNc(2,tY,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 nY(n,o){1&n&&i._UZ(0,"mat-spinner",17)}const rY=function(){return["id","name","organization","email","remove"]};function aY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.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,rY))}}function sY(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,aY,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 oY(n,o){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 lY(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,iY,3,2,"div",6),i.YNc(2,nY,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,sY,2,1,"div",6),i.YNc(7,oY,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 cY(n,o){1&n&&i._UZ(0,"mat-spinner",17)}let dY=(()=>{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 si(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Qi("",[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(bn),i.Y36(Er),i.Y36(Bn),i.Y36(zt),i.Y36(Yi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),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.YNc(15,lY,8,7,"div",6),i.qZA(),i.YNc(16,cY,1,0,"mat-spinner",7),i.TgZ(17,"div",8)(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()()()),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")," "))},dependencies:[C.O5,jt,Di,Qn,Kn,Xn,Ai,is,Wn,ls,Ln,$n,Dr,Ta,Xx,wt],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function uY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 hY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 pY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const fY=function(){return["id","name","organization","email"]},mY=function(){return["select","id","name","organization","email"]};function gY(n,o){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,fY):i.DdM(6,mY))}}let XH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!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=cn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(dY,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=cn();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($D,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(fi),i.Y36(zt),i.Y36(Bn),i.Y36(Yi))},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,uY,3,3,"button",1),i.YNc(2,hY,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,pY,1,0,"mat-spinner",4),i.YNc(5,gY,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))},dependencies:[C.O5,jt,Ai,i_,Xx,wt]}),n})();function _Y(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function bY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"mat-checkbox",20),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function yY(n,o){1&n&&(i.ynx(0,14),i.YNc(1,_Y,2,3,"th",15),i.YNc(2,bY,2,2,"td",16),i.BQk())}function wY(n,o){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.OWNERS_LIST.ID")," "))}function CY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function AY(n,o){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.OWNERS_LIST.NAME")," "))}function vY(n,o){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.Oqu(e.name)}}function TY(n,o){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.OWNERS_LIST.CONTACT")," "))}function MY(n,o){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.contact)}}function xY(n,o){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.OWNERS_LIST.TYPE")," "))}function SY(n,o){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.type)}}function DY(n,o){1&n&&i._UZ(0,"tr",24)}function EY(n,o){1&n&&i._UZ(0,"tr",25)}function HY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",26),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 kY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",26),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"))}const PY=function(n){return{all:n}};let RY=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new si(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Oo}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Bo(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 Nl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}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(ra),i.Y36(Gg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(Da,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:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,yY,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,wY,3,3,"th",5),i.YNc(7,CY,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,AY,3,3,"th",5),i.YNc(10,vY,2,2,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,TY,3,3,"th",5),i.YNc(13,MY,2,1,"td",8),i.BQk(),i.ynx(14,10),i.YNc(15,xY,3,3,"th",5),i.YNc(16,SY,2,1,"td",8),i.BQk(),i.YNc(17,DY,1,0,"tr",11),i.YNc(18,EY,1,0,"tr",12),i.qZA()()(),i.YNc(19,HY,3,3,"perun-web-apps-alert",13),i.YNc(20,kY,3,3,"perun-web-apps-alert",13)),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(1),i.Q6J("ngIf",i.VKq(13,PY,i.xi3(4,10,t.dataSource,t.selection.selected.length))),i.xp6(14),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))},dependencies:[C.O5,cd,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,Ta,os,wt,Jx]}),n})();function LY(n,o){1&n&&i._UZ(0,"mat-spinner",4)}const IY=function(){return["select","id","name","contact"]};function OY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterValue=r)}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8)(5,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(9),i.ALo(10,"translate"),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,IY))("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 BY=(()=>{class n{constructor(e,t,r,l,d,s,a){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=s,this.cabinetManagerService=a,this.selected=new si(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.getProperty("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(String(r.id))):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(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(bn),i.Y36(Er),i.Y36(Js),i.Y36(On),i.Y36(Bn),i.Y36(Yi),i.Y36(zt))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,LY,1,0,"mat-spinner",2),i.YNc(5,OY,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))},dependencies:[C.O5,jt,Qn,Kn,Xn,Ai,i_,RY,wt]}),n})();function VY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function FY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function jY(n,o){1&n&&(i.ynx(0,13),i.YNc(1,VY,2,3,"th",14),i.YNc(2,FY,2,2,"td",15),i.BQk())}function NY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function YY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function UY(n,o){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,"THANKS_LIST.NAME")," "))}function zY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function GY(n,o){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,"THANKS_LIST.CREATED_BY")," "))}function qY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function WY(n,o){1&n&&i._UZ(0,"tr",23)}function $Y(n,o){1&n&&i._UZ(0,"tr",24)}function ZY(n,o){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.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function JY(n,o){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,"THANKS_LIST.NO_THANKS"),"\n"))}const QY=function(n){return{all:n}};let KY=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Oo,this.selection=new si(!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 Nl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Bo(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(Gg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(Da,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:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,jY,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,NY,3,3,"th",5),i.YNc(7,YY,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,UY,3,3,"th",5),i.YNc(10,zY,2,1,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,GY,3,3,"th",5),i.YNc(13,qY,2,1,"td",8),i.BQk(),i.YNc(14,WY,1,0,"tr",10),i.YNc(15,$Y,1,0,"tr",11),i.qZA()()(),i.YNc(16,ZY,3,3,"perun-web-apps-alert",12),i.YNc(17,JY,3,3,"perun-web-apps-alert",12)),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(1),i.Q6J("ngIf",i.VKq(13,QY,i.xi3(4,10,t.dataSource,t.selection.selected.length))),i.xp6(11),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))},dependencies:[C.O5,cd,Vo,Ys,Fl,Us,Ns,Fo,zs,Gs,jl,jo,Da,Dp,Ta,os,wt,Jx]}),n})();function XY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 e3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 t3(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const n3=function(){return["id","name","createdBy"]},r3=function(){return["select","id","name","createdBy"]};function a3(n,o){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,n3):i.DdM(6,r3))("selection",e.selection)}}let e1=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!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=cn();e.width="800px",e.data=this.publication,this.dialog.open(BY,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=cn();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($D,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(fi),i.Y36(zt),i.Y36(Bn),i.Y36(Yi))},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,XY,3,3,"button",1),i.YNc(2,e3,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,t3,1,0,"mat-spinner",4),i.YNc(5,a3,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))},dependencies:[C.O5,jt,Ai,i_,KY,wt]}),n})();function s3(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function o3(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function l3(n,o){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()()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function c3(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function d3(n,o){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 u3(n,o){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 h3(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function p3(n,o){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 f3(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function m3(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function g3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.refreshPublication())}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function _3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,o3,6,3,"h1",4),i.YNc(2,l3,5,3,"h1",4),i.YNc(3,c3,6,3,"h1",4),i.YNc(4,d3,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(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLock())}),i.YNc(12,u3,3,3,"span",7),i.YNc(13,h3,2,0,"mat-icon",2),i.YNc(14,p3,3,3,"span",7),i.YNc(15,f3,2,0,"mat-icon",2),i.qZA()(),i.TgZ(16,"mat-card")(17,"mat-card-content"),i.YNc(18,m3,1,0,"mat-spinner",1),i.YNc(19,g3,1,2,"perun-web-apps-publication-detail-list",8),i.qZA()(),i.TgZ(20,"mat-card",9)(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.TgZ(26,"mat-card",9)(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()()()}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 n_=(()=>{class n{constructor(e,t,r,l,d,s,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=s,this.translate=a,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new si(!0,[]),this.selectionThanks=new si(!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(Gn),i.Y36(zt),i.Y36(Lo),i.Y36(Hi),i.Y36(fi),i.Y36(Bn),i.Y36(Yi))},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,s3,1,0,"mat-spinner",1),i.YNc(2,_3,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},dependencies:[C.O5,UE,NE,YE,jt,Di,Ai,KN,XH,e1,wt,JC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),e0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Rl,C.ez]}),n})();function t0(n,o,e){for(let t in o)if(o.hasOwnProperty(t)){const r=o[t];r?n.setProperty(t,r,e?.has(t)?"important":""):n.removeProperty(t)}return n}function Pp(n,o){const e=o?"":"none";t0(n.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function t1(n,o,e){t0(n.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},e)}function KC(n,o){return o&&"none"!=o?n+" "+o:n}function n1(n){const o=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*o}function n0(n,o){return n.getPropertyValue(o).split(",").map(t=>t.trim())}function r0(n){const o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function a0(n,o,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&o>=l&&o<=d}function r_(n,o,e){n.top+=o,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function r1(n,o,e,t){const{top:r,right:l,bottom:d,left:s,width:a,height:c}=n,u=a*o,h=c*o;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:r0(e)})})}handleScroll(o){const e=An(o),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,a=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&r_(c.clientRect,s,a)}),r.top=l,r.left=d,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function s1(n){const o=n.cloneNode(!0),e=o.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();o.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&this._initializeDragSequence(a,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const a=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(a.x-this._pickupPositionOnPage.x)+Math.abs(a.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}s.preventDefault();const c=this._getConstrainedPointerPosition(a);if(this._hasMoved=!0,this._lastKnownPointerPosition=a,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,a);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.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._nativeDragStart=s=>{if(this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(o).withParent(e.parentDragRef||null),this._parentPositions=new a1(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(o){const e=Fe(o);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Pp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(t=>Ji(t)),this._handles.forEach(t=>Pp(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(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){const e=Ji(o);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,XC),e.addEventListener("touchstart",this._pointerDown,d1),e.addEventListener("dragstart",this._nativeDragStart,XC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?Ji(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),Pp(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),Pp(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){const o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){const o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){a_(o)&&(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(),t1(t,!1,s0),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:o}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(o,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=a_(e),l=!r&&0!==e.button,d=this._rootElement,s=An(e),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Hh(e):Ja(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||a||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._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=r0(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,o,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(o){t1(this._rootElement,!0,s0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(o),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:o}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r,event:o}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,o,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,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,o,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,o,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,e):this._applyPreviewTransform(o-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const o=this._previewTemplate,e=this.previewClass,t=o?o.template:null;let r;if(t&&o){const l=o.matchSize?this._initialClientRect:null,d=o.viewContainer.createEmbeddedView(t,o.context);d.detectChanges(),r=h1(d,this._document),this._previewRef=d,o.matchSize?p1(r,l):r.style.transform=eA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=s1(this._rootElement),p1(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return t0(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},s0),Pp(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 o=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);const e=function y3(n){const o=getComputedStyle(n),e=n0(o,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=n0(o,"transition-duration"),d=n0(o,"transition-delay");return n1(l[r])+n1(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{(!d||An(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const o=this._placeholderTemplate,e=o?o.template:null;let t;return e?(this._placeholderRef=o.viewContainer.createEmbeddedView(e,o.context),this._placeholderRef.detectChanges(),t=h1(this._placeholderRef,this._document)):t=s1(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(o,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():o,d=a_(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-o.left+(d.pageX-l.left-s.left),y:l.top-o.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(o){const e=this._getViewportScrollPosition(),t=a_(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,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(o){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(o,this,this._initialClientRect,this._pickupPositionInElement):o;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,{width:a,height:c}=this._getPreviewRect(),u=s.top+d,h=s.bottom-(c-d);t=u1(t,s.left+l,s.right-(a-l)),r=u1(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(o){const{x:e,y:t}=o,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 o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,Pp(this._rootElement,o))}_removeRootElementListeners(o){o.removeEventListener("mousedown",this._pointerDown,XC),o.removeEventListener("touchstart",this._pointerDown,d1),o.removeEventListener("dragstart",this._nativeDragStart,XC)}_applyRootElementTransform(o,e){const t=eA(o,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=KC(t,this._initialTransform)}_applyPreviewTransform(o,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=eA(o,e);this._preview.style.transform=KC(r,t)}_getDragDistance(o){const e=this._pickupPositionOnPage;return e?{x:o.x-e.x,y:o.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:e}=this._passiveTransform;if(0===o&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,d=t.right-r.right,s=r.top-t.top,a=t.bottom-r.bottom;r.width>t.width?(l>0&&(o+=l),d>0&&(o-=d)):o=0,r.height>t.height?(s>0&&(e+=s),a>0&&(e-=a)):e=0,(o!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:o})}_getDragStartDelay(o){const e=this.dragStartDelay;return"number"==typeof e?e:a_(o)?e.touch:e?e.mouse:0}_updateOnScroll(o){const e=this._parentPositions.handleScroll(o);if(e){const t=An(o);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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=_c(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,e){const t=this._previewContainer||"global";if("parent"===t)return o;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Ji(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(o){return this._handles.find(e=>o.target&&(o.target===e||e.contains(o.target)))}}function eA(n,o){return`translate3d(${Math.round(n)}px, ${Math.round(o)}px, 0)`}function u1(n,o,e){return Math.max(o,Math.min(e,n))}function a_(n){return"t"===n.type[0]}function h1(n,o){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===o.ELEMENT_NODE)return e[0];const t=o.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function p1(n,o){n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.transform=eA(o.left,o.top)}function s_(n,o){return Math.max(0,Math.min(o,n))}class T3{constructor(o,e){this._element=o,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(o){this.withItems(o)}sort(o,e,t,r){const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(o,e,t,r);if(-1===d&&l.length>0)return null;const s="horizontal"===this.orientation,a=l.findIndex(he=>he.drag===o),c=l[d],h=c.clientRect,f=a>d?1:-1,b=this._getItemOffsetPx(l[a].clientRect,h,f),V=this._getSiblingOffsetPx(a,l,f),ee=l.slice();return function v3(n,o,e){const t=s_(o,n.length-1),r=s_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ee[We]===he)return;const Pt=he.drag===o,Jt=Pt?b:V,Bi=Pt?o.getPlaceholderElement():he.drag.getRootElement();he.offset+=Jt,s?(Bi.style.transform=KC(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),r_(he.clientRect,0,Jt)):(Bi.style.transform=KC(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),r_(he.clientRect,Jt,0))}),this._previousSwap.overlaps=a0(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:d}}enter(o,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(o,e,t):r,d=this._activeDraggables,s=d.indexOf(o),a=o.getPlaceholderElement();let c=d[l];if(c===o&&(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(a,u),d.splice(l,0,o)}else Ji(this._element).appendChild(a),d.push(o);a.style.transform="",this._cacheItemPositions()}withItems(o){this._activeDraggables=o.slice(),this._cacheItemPositions()}withSortPredicate(o){this._sortPredicate=o}reset(){this._activeDraggables.forEach(o=>{const e=o.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===o)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===o)}updateOnScroll(o,e){this._itemPositions.forEach(({clientRect:t})=>{r_(t,o,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const o="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:r0(t)}}).sort((e,t)=>o?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(o,e,t){const r="horizontal"===this.orientation;let l=r?e.left-o.left:e.top-o.top;return-1===t&&(l+=r?e.width-o.width:e.height-o.height),l}_getSiblingOffsetPx(o,e,t){const r="horizontal"===this.orientation,l=e[o].clientRect,d=e[o+-1*t];let s=l[r?"width":"height"]*t;if(d){const a=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[a]-l[c]:s+=l[a]-d.clientRect[c]}return s}_shouldEnterAsFirstChild(o,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?o>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?o<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(o,e,t,r){const l="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===o)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(a.left)&&e=Math.floor(a.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function b3(n=0,o=Fh.z){return n<0&&(n=0),(0,sm.H)(n,n,o)}(0,Pb).pipe(Ke(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=Ji(o),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new a1(t),this._sortStrategy=new T3(this.element,e),this._sortStrategy.withSortPredicate((d,s)=>this.sortPredicate(d,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(o)),this._sortStrategy.enter(o,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,e,t,r,l,d,s,a={}){this._reset(),this.dropped.next({item:o,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s,event:a})}withItems(o){const e=this._draggables;return this._draggables=o,o.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===o.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._sortStrategy.direction=o,this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){return this._sortStrategy.orientation=o,this}withScrollableParents(o){const e=Ji(this.element);return this._scrollableElements=-1===o.indexOf(e)?[e,...o]:o.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,e,t,r){if(this.sortingDisabled||!this._clientRect||!r1(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(o,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||r1(d.clientRect,.05,o,e)&&([r,l]=function x3(n,o,e,t){const r=g1(o,t),l=_1(o,e);let d=0,s=0;if(r){const a=n.scrollTop;1===r?a>0&&(d=1):n.scrollHeight-a>n.clientHeight&&(d=2)}if(l){const a=n.scrollLeft;1===l?a>0&&(s=1):n.scrollWidth-a>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,o,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),a={width:d,height:s,top:0,right:d,bottom:s,left:0};r=g1(a,e),l=_1(a,o),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 o=Ji(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const o=Ji(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(o).clientRect}_reset(){this._isDragging=!1;const o=Ji(this.element).style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(o,e){return null!=this._clientRect&&a0(this._clientRect,o,e)}_getSiblingContainerFromPosition(o,e,t){return this._siblings.find(r=>r._canReceive(o,e,t))}_canReceive(o,e,t){if(!this._clientRect||!a0(this._clientRect,e,t)||!this.enterPredicate(o,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Ji(this.element);return r===l||l.contains(r)}_startReceiving(o,e){const t=this._activeSiblings;!t.has(o)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(o),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(o);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const o=_c(Ji(this.element));this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const o=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,o))}}function g1(n,o){const{top:e,bottom:t,height:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}function _1(n,o){const{left:e,right:t,width:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}const tA=fa({passive:!1,capture:!0});let S3=(()=>{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 De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tA)})}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,tA)}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:tA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:tA}),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 Gi.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,Ci.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(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const D3={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let E3=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=D3){return new A3(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new M3(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b),i.LFG(ya),i.LFG(S3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),H3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[E3],imports:[Xa]}),n})(),k3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),O3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),z3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[O3,ot,ot]}),n})(),r6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[hn,ot,ot]}),n})();new i.OlP("mat-selectsearch-default-options");let c6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[C.ez,ko,_a,zC,Rl,mC,Jc]]}),n})(),d6=(()=>{class n extends yb{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const u6={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 C1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:d6},{provide:ga,useValue:u6}],imports:[C.ez,zC,MC,dg,Zx,H3,wp,Ch,Wx,wu,mC,e0,Rl,Au,_a,Jc,Vc,ko,fC,hn,YD,k3,z3,qx,r6,Xf,Ro,c6,_l,xu,yM,qH]}),n})(),z6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,_a,Rl,Ch,C1,wp,Vc,ko,fC,e0]}),n})(),G6=(()=>{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(Su),i.Y36(Li))},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)(1,"div",1)(2,"div",2)(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()()()()()),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")," "))},dependencies:[jt,Di,wt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function q6(n,o){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 W6=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Qi(null,[Ii.required]),this.passwordCtrl=new Qi(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(nt))},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)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,q6,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(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.TgZ(15,"mat-form-field",4)(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.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()()()()()),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")," "))},dependencies:[C.O5,jt,Di,is,Wn,wa,Ln,$n,as,Dr,ls,Ta,wt],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 $6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function Z6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function J6(n,o){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 Q6(n,o){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 K6(n,o){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function X6(n,o){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 eU(n,o){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 tU(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function iU(n,o){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()()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function nU(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",38)(1,"div",28)(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40)(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)(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),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 rU(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function aU(n,o){1&n&&i._UZ(0,"mat-spinner",5)}const sU=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function oU(n,o){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),d=i.oxw(2);return i.KtG(d.loadPublicationDetail(r,l))}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,sU))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function lU(n,o){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,aU,1,0,"mat-spinner",3),i.YNc(2,oU,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 cU(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function dU(n,o){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 uU(n,o){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,cU,1,1,"ng-template",44),i.YNc(2,dU,2,1,"ng-template",45),i.qZA())}function hU(n,o){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),i.YNc(3,rU,2,3,"ng-template",44),i.YNc(4,lU,3,2,"ng-template",45),i.qZA(),i.YNc(5,uU,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function pU(n,o){1&n&&(i.TgZ(0,"div",28)(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function fU(n,o){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 mU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.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 gU(n,o){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,fU,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,mU,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 _U(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function bU(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function yU(n,o){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 wU(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,yU,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 CU(n,o){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 AU(n,o){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,CU,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),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 vU(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function TU(n,o){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 MU(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function xU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.stepChanged(r))}),i.TgZ(1,"mat-step",7),i.YNc(2,Z6,2,3,"ng-template",8),i.TgZ(3,"form",9)(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11)(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,J6,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(22);return i.KtG(r.open())}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16)(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),d=i.oxw();return i.KtG(d.chosenYearHandler(r,l))}),i.qZA(),i.YNc(23,Q6,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field")(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,K6,2,2,"mat-option",21),i.qZA(),i.YNc(28,X6,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")(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,eU,3,3,"mat-error",14),i.qZA()()(),i.TgZ(40,"div",25)(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA()()(),i.TgZ(44,"mat-step",27),i.YNc(45,tU,2,3,"ng-template",8),i.TgZ(46,"form",28)(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,iU,5,3,"div",29),i.YNc(51,nU,16,12,"perun-web-apps-alert",30),i.YNc(52,hU,6,1,"mat-tab-group",14),i.YNc(53,pU,6,3,"div",29),i.qZA(),i.YNc(54,gU,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,_U,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,bU,1,0,"mat-spinner",3),i.YNc(61,wU,5,4,"div",14),i.YNc(62,AU,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,vU,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,TU,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,MU,1,0,"mat-spinner",3),i.TgZ(70,"div",25)(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 i.KtG(r.redirect(["all-publications",r.publication.id]))}),i._uU(75),i.ALo(76,"translate"),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 SU=kp,DU={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let EU=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=s,this.storeService=a,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new si(!0,[]),this.thanksSelection=new si(!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=SU(),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(){this.innerLoading=!0;const e=this.publicationControl.get("title").value??null,t=this.publicationControl.get("doi").value??null,r=this.publicationControl.get("isbn").value??null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(l=>{this.similarPublications=l,this.filteredPublications=l,setTimeout(()=>{this.duplicateCheck=0===l.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(BT),i.Y36(zt),i.Y36(fi),i.Y36(Li),i.Y36(Bn),i.Y36(Yi),i.Y36(On),i.Y36(ia))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:wi,useClass:t_,deps:[ks]},{provide:ga,useValue:DU}])],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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,$6,1,0,"mat-spinner",3),i.YNc(8,xU,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))},dependencies:[C.sg,C.O5,jt,cd,Di,Ai,is,Wn,wa,$h,ls,jy,Ln,$n,jm,as,Dl,Hl,lp,pH,GC,fH,aV,sV,zx,e_,Gx,Po,Sc,HF,mF,RH,fF,Ta,Ep,n_,XH,e1,wt],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 HU(n,o){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function kU(n,o){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 PU(n,o){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 RU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.selectPubSystem())}),i.YNc(7,HU,2,2,"mat-option",7),i.qZA()(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.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 i.KtG(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){i.CHM(e);const l=i.oxw();return i.KtG(l.userAsAuthor=r)}),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,kU,3,3,"perun-web-apps-alert",12),i.YNc(21,PU,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 LU(n,o){1&n&&i._UZ(0,"mat-spinner",17)}function IU(n,o){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 OU(n,o){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function BU(n,o){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,s=i.oxw(2);return i.KtG(s.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 VU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(2);return i.KtG(l.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 FU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw(2);return i.KtG(d.editPublication(l))}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,IU,3,3,"i",3),i.YNc(5,OU,2,0,"mat-icon",24),i.qZA()(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,BU,3,3,"button",20),i.YNc(9,VU,3,3,"button",27),i.qZA()()}if(2&n){const e=o.$implicit,t=o.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 jU(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.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 NU(n,o){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(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.onSubmit())}),i._uU(3),i.ALo(4,"translate"),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 YU(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,FU,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,jU,3,3,"button",20),i.qZA(),i.YNc(8,NU,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 M1=kp,UU={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},zU=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:G6},{path:"service-access",component:W6},{path:"all-publications",component:Nj},{path:"my-publications",component:Gj},{path:"create-publication",component:qj},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,s){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=s,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Qi,this.publications=[],this.selected=new si(!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 Qi(M1().subtract(1,"year")),this.endYear=new Qi(M1()),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=cn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(ZR,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(zt),i.Y36(On),i.Y36(Bn),i.Y36(Yi),i.Y36(Li),i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:wi,useClass:t_,deps:[ks]},{provide:ga,useValue:UU}])],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)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,RU,22,20,"div",3),i.YNc(8,LU,1,0,"mat-spinner",4),i.YNc(9,YU,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))},dependencies:[C.sg,C.O5,MB,KE,XE,TB,jt,cd,Di,Ai,Wn,wa,$n,El,Dr,Zc,Po,Sc,Ta,Ep,n_,JH,wt],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:EU},{path:"authors",component:y2},{path:"authors/:authorId",component:AN},{path:"authors/:authorId/publication/:publicationId",component:n_},{path:"all-publications/:publicationId",component:n_},{path:"my-publications/:publicationId",component:n_},{path:"categories",component:tN},{path:"publication-systems",component:bN}];let GU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ch.forRoot(zU,{preloadingStrategy:f0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Ch]}),n})();const qU={provide:w.TP,useExisting:(0,i.Gpc)(()=>HD),multi:!0};function WU(n){return new UL(n,"./assets/i18n/",".json")}function $U(n){const o={basePath:n.getProperty("api_url")};return new Ye(o)}const ZU=n=>()=>n.loadConfigs();let JU=(()=>{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(ED),i.LFG(Yi))},n.\u0275mod=i.oAB({type:n,bootstrap:[YL]}),n.\u0275inj=i.cJS({providers:[ED,{provide:i.ip1,useFactory:ZU,multi:!0,deps:[qL]},{provide:Ye,useFactory:$U,deps:[On]},HD,qU,{provide:WL,useClass:Yk},Oj,{provide:zg.Hy,useFactory:()=>localStorage}],imports:[en,wp.forRoot({loader:{provide:bp,useFactory:WU,deps:[w.eN]}}),qO,qH,WO,Go,w.JF,GU,e0,YD,z6,FH,yM,zg.zr.forRoot(),C1]}),n})();(0,i.G48)(),ct().bootstrapModule(JU).catch(n=>console.error(n))},1302:function(Y,z,M){var C;!function(i,D){var x={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var D=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 x(le,re,ie,me,be){for(var Ae,$e,Ze,Ee,ve,xe,lt,Re,Oe,Le,ue,fe,Ce;be>=64;){for(Ae=re[0],$e=re[1],Ze=re[2],Ee=re[3],ve=re[4],xe=re[5],lt=re[6],Re=re[7],Le=0;Le<16;Le++)le[Le]=(255&ie[ue=me+4*Le])<<24|(255&ie[ue+1])<<16|(255&ie[ue+2])<<8|255&ie[ue+3];for(Le=16;Le<64;Le++)le[Le]=((fe=((Oe=le[Le-2])>>>17|Oe<<15)^(Oe>>>19|Oe<<13)^Oe>>>10)+le[Le-7]|0)+((Ce=((Oe=le[Le-15])>>>7|Oe<<25)^(Oe>>>18|Oe<<14)^Oe>>>3)+le[Le-16]|0);for(Le=0;Le<64;Le++)fe=(((ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7))+(ve&xe^~ve<)|0)+(Re+(D[Le]+le[Le]|0)|0)|0,Ce=((Ae>>>2|Ae<<30)^(Ae>>>13|Ae<<19)^(Ae>>>22|Ae<<10))+(Ae&$e^Ae&Ze^$e&Ze)|0,Re=lt,lt=xe,xe=ve,ve=Ee+fe|0,Ee=Ze,Ze=$e,$e=Ae,Ae=fe+Ce|0;re[0]+=Ae,re[1]+=$e,re[2]+=Ze,re[3]+=Ee,re[4]+=ve,re[5]+=xe,re[6]+=lt,re[7]+=Re,me+=64,be-=64}return me}var S=function(){function le(){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 le.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},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(me=x(this.temp,this.state,re,me,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,me=this.bufferLength,be=ie/536870912|0,Ae=ie<<3,$e=ie%64<56?64:128;this.buffer[me]=128;for(var Ze=me+1;Ze<$e-8;Ze++)this.buffer[Ze]=0;this.buffer[$e-8]=be>>>24&255,this.buffer[$e-7]=be>>>16&255,this.buffer[$e-6]=be>>>8&255,this.buffer[$e-5]=be>>>0&255,this.buffer[$e-4]=Ae>>>24&255,this.buffer[$e-3]=Ae>>>16&255,this.buffer[$e-2]=Ae>>>8&255,this.buffer[$e-1]=Ae>>>0&255,x(this.temp,this.state,this.buffer,0,$e),this.finished=!0}for(Ze=0;Ze<8;Ze++)re[4*Ze+0]=this.state[Ze]>>>24&255,re[4*Ze+1]=this.state[Ze]>>>16&255,re[4*Ze+2]=this.state[Ze]>>>8&255,re[4*Ze+3]=this.state[Ze]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var me=0;me1&&re.update(le),ie&&re.update(ie),re.update(me),re.finish(le),me[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=j;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,me){void 0===re&&(re=J),void 0===me&&(me=32);for(var be=new Uint8Array([1]),Ae=j(re,le),$e=new P(Ae),Ze=new Uint8Array($e.digestLength),Ee=Ze.length,ve=new Uint8Array(me),xe=0;xe>>24&255,$e[1]=lt>>>16&255,$e[2]=lt>>>8&255,$e[3]=lt>>>0&255,be.reset(),be.update(re),be.update($e),be.finish(Ee);for(var Re=0;Re=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}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,j=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&&!j?function(J,Q,ne){var le=L.URL||L.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?P(re):S(re.href)?x(J,Q,ne):P(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){P(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function D(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))x(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(L.HTMLElement)||L.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||re&&ie||j)&&typeof FileReader<"u"){var be=new FileReader;be.onloadend=function(){var Ze=be.result;Ze=me?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Ze:location=Ze,le=null},be.readAsDataURL(J)}else{var Ae=L.URL||L.webkitURL,$e=Ae.createObjectURL(J);le?le.location=$e:location.href=$e,le=null,setTimeout(function(){Ae.revokeObjectURL($e)},4e4)}});L.saveAs=U.saveAs=U,Y.exports=U}.apply(z,[]))&&(Y.exports=i)},7088:function(Y,z,M){!function(C){"use strict";C.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(D){return/^nm$/i.test(D)},meridiem:function(D,x,S){return D<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(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(M(5439))},2502:function(Y,z,M){!function(C){"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},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},x=function(L){return function(j,U,J,Q){var ne=i(j),le=D[L][i(j)];return 2===ne&&(le=le[U?0:1]),le.replace(/%d/i,j)}},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"];C.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,j,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:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(M(5439))},128:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},4519:function(Y,z,M){!function(C){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},x={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(j){return function(U,J,Q,ne){var le=D(U),re=x[j][D(U)];return 2===le&&(re=re[J?0:1]),re.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"];C.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(j){return"\u0645"===j},meridiem:function(j,U,J){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: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(j){return j.replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(M(5439))},5443:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},7642:function(Y,z,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};C.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 D[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}})}(M(5439))},8592:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},7038:function(Y,z,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=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(J,Q,ne,le){var re=x(J),ie=S[U][x(J)];return 2===re&&(ie=ie[Q?0:1]),ie.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"];C.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,J,Q){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(J){return D[J]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(M(5439))},1213:function(Y,z,M){!function(C){"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"};C.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(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},9191:function(Y,z,M){!function(C){"use strict";function D(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)}C.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:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},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}})}(M(5439))},322:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===x?D+"-\u0432\u0438":2===x?D+"-\u0440\u0438":7===x||8===x?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(M(5439))},8042:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},5903:function(Y,z,M){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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 D[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}})}(M(5439))},9620:function(Y,z,M){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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 D[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}})}(M(5439))},9645:function(Y,z,M){!function(C){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};C.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 D[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}})}(M(5439))},5020:function(Y,z,M){!function(C){"use strict";function i(ie,me,be){return ie+" "+function S(ie,me){return 2===me?function P(ie){var me={m:"v",b:"v",d:"z"};return void 0===me[ie.charAt(0)]?ie:me[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[be],ie)}function x(ie){return ie>9?x(ie%10):ie}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],j=/^(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,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];C.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:le,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:le,monthsRegex:j,monthsShortRegex:j,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 D(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,me,be){return ie<12?"a.m.":"g.m."}})}(M(5439))},4792:function(Y,z,M){!function(C){"use strict";function i(x,S,P){var L=x+" ";switch(P){case"ss":return L+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return L+(1===x?"dan":"dana");case"MM":return L+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return L+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}C.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}})}(M(5439))},7980:function(Y,z,M){!function(C){"use strict";C.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(D,x){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),D+S},week:{dow:1,doy:4}})}(M(5439))},7322:function(Y,z,M){!function(C){"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("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),x=[/^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,J,Q,ne){var le=U+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(U)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(U)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(U)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(U)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(U)?"roky":"let"):le+"lety"}}C.defineLocale("cs",{months:i,monthsShort:D,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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},365:function(Y,z,M){!function(C){"use strict";C.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(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\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}})}(M(5439))},2092:function(Y,z,M){!function(C){"use strict";C.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(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(M(5439))},7387:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},9459:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.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}})}(M(5439))},3694:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.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}})}(M(5439))},4307:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.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}})}(M(5439))},9659:function(Y,z,M){!function(C){"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"],D=["\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"];C.defineLocale("dv",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,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}})}(M(5439))},3460:function(Y,z,M){!function(C){"use strict";C.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(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.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(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").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(x,S){var P=this._calendarEl[x],L=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(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}})}(M(5439))},4369:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(M(5439))},530:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(M(5439))},9998:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},3391:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},5414:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(M(5439))},9615:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(M(5439))},1248:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},3767:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},4530:function(Y,z,M){!function(C){"use strict";C.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(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,x,S){return D>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}})}(M(5439))},8944:function(Y,z,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^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;C.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},9116:function(Y,z,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^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;C.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(M(5439))},3609:function(Y,z,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^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;C.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},6866:function(Y,z,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^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;C.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(M(5439))},6725:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?j[P][2]?j[P][2]:j[P][1]:L?j[P][0]:j[P][1]}C.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}})}(M(5439))},7931:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},6417:function(Y,z,M){!function(C){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};C.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 D[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}})}(M(5439))},944:function(Y,z,M){!function(C){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function x(L,j,U,J){var Q="";switch(U){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(L,j){return L<10?j?D[L]:i[L]:L}(L,J)+" "+Q}C.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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},1766:function(Y,z,M){!function(C){"use strict";C.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(D){return D},week:{dow:1,doy:4}})}(M(5439))},5867:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},6848:function(Y,z,M){!function(C){"use strict";C.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(D,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(M(5439))},7773:function(Y,z,M){!function(C){"use strict";C.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(D,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(M(5439))},1636:function(Y,z,M){!function(C){"use strict";var x=/(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];C.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:x,monthsShortRegex:x,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,j){switch(j){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}})}(M(5439))},4940:function(Y,z,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");C.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)?D[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}})}(M(5439))},1402:function(Y,z,M){!function(C){"use strict";C.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(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(M(5439))},6924:function(Y,z,M){!function(C){"use strict";C.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(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(M(5439))},6398:function(Y,z,M){!function(C){"use strict";C.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(D){return 0===D.indexOf("un")?"n"+D:"en "+D},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}})}(M(5439))},2457:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={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:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \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:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?j[P][0]:j[P][1]}C.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(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},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(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(M(5439))},2545:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return L?j[P][0]:j[P][1]}C.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(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(M(5439))},2641:function(Y,z,M){!function(C){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};C.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 D[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}})}(M(5439))},7536:function(Y,z,M){!function(C){"use strict";C.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(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \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(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,x,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(M(5439))},6335:function(Y,z,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},x=[/^\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];C.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:x,longMonthsParse:x,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(j){return D[j]})},postformat:function(L){return L.replace(/\d/g,function(j){return i[j]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0930\u093e\u0924"===j?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===j?L:"\u0926\u094b\u092a\u0939\u0930"===j?L>=10?L:L+12:"\u0936\u093e\u092e"===j?L+12:void 0},meridiem:function(L,j,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}})}(M(5439))},7458:function(Y,z,M){!function(C){"use strict";function i(x,S,P){var L=x+" ";switch(P){case"ss":return L+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return L+(1===x?"dan":"dana");case"MM":return L+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return L+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}C.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}})}(M(5439))},6540:function(Y,z,M){!function(C){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(P,L,j,U){var J=P;switch(j){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return J+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return J+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return J+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return J+(U||L?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}C.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,j){return P<12?!0===j?"de":"DE":!0===j?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},5283:function(Y,z,M){!function(C){"use strict";C.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(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<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(D,x){switch(x){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(M(5439))},8780:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"pagi"===x?D:"siang"===x?D>=11?D:D+12:"sore"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"siang":D<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}})}(M(5439))},4205:function(Y,z,M){!function(C){"use strict";function i(S){return S%100==11||S%10!=1}function D(S,P,L,j){var U=S+" ";switch(L){case"s":return P||j?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(P||j?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(P||j?"m\xedn\xfatur":"m\xedn\xfatum"):P?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(P||j?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return P?"dagur":j?"dag":"degi";case"dd":return i(S)?P?U+"dagar":U+(j?"daga":"d\xf6gum"):P?U+"dagur":U+(j?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":j?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?U+"m\xe1nu\xf0ir":U+(j?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?U+"m\xe1nu\xf0ur":U+(j?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||j?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(P||j?"\xe1r":"\xe1rum"):U+(P||j?"\xe1r":"\xe1ri")}}C.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:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},9985:function(Y,z,M){!function(C){"use strict";C.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(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},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}})}(M(5439))},4211:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},1003:function(Y,z,M){!function(C){"use strict";C.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(D,x){return"\u5143"===x[1]?1:parseInt(x[1]||D,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(D){return"\u5348\u5f8c"===D},meridiem:function(D,x,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,x){switch(x){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},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"}})}(M(5439))},420:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"enjing"===x?D:"siyang"===x?D>=11?D:D+12:"sonten"===x||"ndalu"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"enjing":D<15?"siyang":D<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}})}(M(5439))},851:function(Y,z,M){!function(C){"use strict";C.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(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(x,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},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(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(M(5439))},6074:function(Y,z,M){!function(C){"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"};C.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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},3343:function(Y,z,M){!function(C){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};C.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 D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(M(5439))},4799:function(Y,z,M){!function(C){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};C.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 D[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}})}(M(5439))},3549:function(Y,z,M){!function(C){"use strict";C.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(D,x){switch(x){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,x,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(M(5439))},1037:function(Y,z,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=["\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"];C.defineLocale("ku",{months:x,monthsShort:x,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,j){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 D[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}})}(M(5439))},3125:function(Y,z,M){!function(C){"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"};C.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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},9586:function(Y,z,M){!function(C){"use strict";function i(L,j,U,J){var Q={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 j?Q[U][0]:Q[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 j=L%10;return S(0===j?L/10:j)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}C.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 D(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function x(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}})}(M(5439))},2349:function(Y,z,M){!function(C){"use strict";C.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(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,x,S){return D<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(D){return"\u0e97\u0eb5\u0ec8"+D}})}(M(5439))},2400:function(Y,z,M){!function(C){"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 x(U,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(U){return U%10==0||U>10&&U<20}function P(U){return i[U].split("_")}function L(U,J,Q,ne){var le=U+" ";return 1===U?le+x(0,J,Q[0],ne):J?le+(S(U)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(U)?P(Q)[1]:P(Q)[2])}C.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 D(U,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:x,mm:L,h:x,hh:L,d:x,dd:L,M:x,MM:L,y:x,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(M(5439))},9991:function(Y,z,M){!function(C){"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 D(j,U,J){return J?U%10==1&&U%100!=11?j[2]:j[3]:U%10==1&&U%100!=11?j[0]:j[1]}function x(j,U,J){return j+" "+D(i[J],j,U)}function S(j,U,J){return D(i[J],j,U)}C.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(j,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},8477:function(Y,z,M){!function(C){"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(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:x+" "+i.correctGrammaticalCase(x,L)}};C.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}})}(M(5439))},5118:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},5943:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===x?D+"-\u0432\u0438":2===x?D+"-\u0440\u0438":7===x||8===x?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(M(5439))},3849:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?D+12:D},meridiem:function(D,x,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(M(5439))},1977:function(Y,z,M){!function(C){"use strict";function i(x,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 x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}C.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(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<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(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(M(5439))},6184:function(Y,z,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function x(P,L,j,U){var J="";if(L)switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}C.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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return D[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,j){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}})}(M(5439))},4524:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"pagi"===x?D:"tengahari"===x?D>=11?D:D+12:"petang"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"tengahari":D<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}})}(M(5439))},485:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"pagi"===x?D:"tengahari"===x?D>=11?D:D+12:"petang"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"tengahari":D<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}})}(M(5439))},6681:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},2024:function(Y,z,M){!function(C){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};C.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 D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(M(5439))},2688:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},8914:function(Y,z,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};C.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 D[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}})}(M(5439))},2272:function(Y,z,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^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;C.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},1758:function(Y,z,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^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;C.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},1510:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},2797:function(Y,z,M){!function(C){"use strict";C.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(D,x){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),D+S},week:{dow:1,doy:4}})}(M(5439))},7944:function(Y,z,M){!function(C){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};C.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 D[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}})}(M(5439))},1605:function(Y,z,M){!function(C){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),x=[/^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(j){return j%10<5&&j%10>1&&~~(j/10)%10!=1}function P(j,U,J){var Q=j+" ";switch(J){case"ss":return Q+(S(j)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return Q+(S(j)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return Q+(S(j)?"godziny":"godzin");case"ww":return Q+(S(j)?"tygodnie":"tygodni");case"MM":return Q+(S(j)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(j)?"lata":"lat")}}C.defineLocale("pl",{months:function(j,U){return j?/D MMMM/.test(U)?D[j.month()]:i[j.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,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}})}(M(5439))},3840:function(Y,z,M){!function(C){"use strict";C.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"})}(M(5439))},4225:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},5128:function(Y,z,M){!function(C){"use strict";function i(x,S,P){var j=" ";return(x%100>=20||x>=100&&x%100==0)&&(j=" de "),x+j+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}C.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}})}(M(5439))},5127:function(Y,z,M){!function(C){"use strict";function D(P,L,j){return"m"===j?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var j=P.split("_");return L%10==1&&L%100!=11?j[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?j[1]:j[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"}[j],+P)}var x=[/^\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];C.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:x,longMonthsParse:x,shortMonthsParse:x,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:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},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,j){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}})}(M(5439))},2525:function(Y,z,M){!function(C){"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"],D=["\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"];C.defineLocale("sd",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\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}})}(M(5439))},9893:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},3123:function(Y,z,M){!function(C){"use strict";C.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(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,x,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(M(5439))},3027:function(Y,z,M){!function(C){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function x(L){return L>1&&L<5}function S(L,j,U,J){var Q=L+" ";switch(U){case"s":return j||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return j||J?Q+(x(L)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return j?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return j||J?Q+(x(L)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return j?"hodina":J?"hodinu":"hodinou";case"hh":return j||J?Q+(x(L)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return j||J?"de\u0148":"d\u0148om";case"dd":return j||J?Q+(x(L)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return j||J?"mesiac":"mesiacom";case"MM":return j||J?Q+(x(L)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return j||J?"rok":"rokom";case"yy":return j||J?Q+(x(L)?"roky":"rokov"):Q+"rokmi"}}C.defineLocale("sk",{months:i,monthsShort:D,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}})}(M(5439))},8106:function(Y,z,M){!function(C){"use strict";function i(x,S,P,L){var j=x+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return j+(1===x?S?"sekundo":"sekundi":2===x?S||L?"sekundi":"sekundah":x<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return j+(1===x?S?"minuta":"minuto":2===x?S||L?"minuti":"minutama":x<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return j+(1===x?S?"ura":"uro":2===x?S||L?"uri":"urama":x<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return j+(1===x?S||L?"dan":"dnem":2===x?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return j+(1===x?S||L?"mesec":"mesecem":2===x?S||L?"meseca":"mesecema":x<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return j+(1===x?S||L?"leto":"letom":2===x?S||L?"leti":"letoma":x<5?S||L?"leta":"leti":S||L?"let":"leti")}}C.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}})}(M(5439))},8799:function(Y,z,M){!function(C){"use strict";C.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(D){return"M"===D.charAt(0)},meridiem:function(D,x,S){return D<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}})}(M(5439))},2872:function(Y,z,M){!function(C){"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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,L){var U,j=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?j[0]:j[1]:(U=i.correctGrammaticalCase(x,j),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+U)}};C.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}})}(M(5439))},7949:function(Y,z,M){!function(C){"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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,L){var U,j=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":L||S?j[0]:j[1]:(U=i.correctGrammaticalCase(x,j),"yy"===P&&S&&"godinu"===U?x+" godina":x+" "+U)}};C.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}})}(M(5439))},6167:function(Y,z,M){!function(C){"use strict";C.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(D,x,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,x){return 12===D&&(D=0),"ekuseni"===x?D:"emini"===x?D>=11?D:D+12:"entsambama"===x||"ebusuku"===x?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(M(5439))},9713:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(M(5439))},1982:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},2732:function(Y,z,M){!function(C){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};C.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 D[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}})}(M(5439))},3636:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===x?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?D+12:void 0},meridiem:function(D,x,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(M(5439))},2115:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},9801:function(Y,z,M){!function(C){"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"};C.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(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},2868:function(Y,z,M){!function(C){"use strict";C.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(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,x,S){return D<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"}})}(M(5439))},1310:function(Y,z,M){!function(C){"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"};C.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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(M(5439))},2360:function(Y,z,M){!function(C){"use strict";C.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(D){return D},week:{dow:1,doy:4}})}(M(5439))},6645:function(Y,z,M){!function(C){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(j,U,J,Q){var ne=function P(j){var U=Math.floor(j%1e3/100),J=Math.floor(j%100/10),Q=j%10,ne="";return U>0&&(ne+=i[U]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(j);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}C.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 D(j){var U=j;return-1!==j.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==j.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==j.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function x(j){var U=j;return-1!==j.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==j.indexOf("jar")?U.slice(0,-3)+"wen":-1!==j.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}})}(M(5439))},8374:function(Y,z,M){!function(C){"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"};C.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(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(M(5439))},256:function(Y,z,M){!function(C){"use strict";function D(x,S,P,L){var j={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return L||S?j[P][0]:j[P][1]}C.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(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>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:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},1631:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},1595:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},6050:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?D+12:D>=11?D:D+12},meridiem:function(D,x,S){var P=100*D+x;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(D,x){switch(x){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(M(5439))},5610:function(Y,z,M){!function(C){"use strict";function D(L,j,U){return"m"===U?j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?j?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,j){var U=L.split("_");return j%10==1&&j%100!=11?U[0]:j%10>=2&&j%10<=4&&(j%100<10||j%100>=20)?U[1]:U[2]}({ss:j?"\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:j?"\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:j?"\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"}}C.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 x(L,j){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(j)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(j)?"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:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},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,j,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,j){switch(j){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}})}(M(5439))},6077:function(Y,z,M){!function(C){"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"],D=["\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"];C.defineLocale("ur",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\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}})}(M(5439))},2207:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},2862:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},8093:function(Y,z,M){!function(C){"use strict";C.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(D){return/^ch$/i.test(D)},meridiem:function(D,x,S){return D<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(D){return D},week:{dow:1,doy:4}})}(M(5439))},5590:function(Y,z,M){!function(C){"use strict";C.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(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},9058:function(Y,z,M){!function(C){"use strict";C.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}})}(M(5439))},7908:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:D>=11?D:D+12},meridiem:function(D,x,S){var P=100*D+x;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(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},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}})}(M(5439))},8867:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;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(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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"}})}(M(5439))},1133:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;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(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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"}})}(M(5439))},3291:function(Y,z,M){!function(C){"use strict";C.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(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;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(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},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"}})}(M(5439))},5439:function(Y,z,M){(Y=M.nmd(Y)).exports=function(){"use strict";var C,me;function i(){return C.apply(null,arguments)}function x(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function S(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function P(T,H){return Object.prototype.hasOwnProperty.call(T,H)}function L(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var H;for(H in T)if(P(T,H))return!1;return!0}function j(T){return void 0===T}function U(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function J(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function Q(T,H){var N,I=[],W=T.length;for(N=0;N>>0;for(N=0;N0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-N.length)).toString().substr(1)+N}var ni=/(\[[^\[]*\])|(\\)?([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,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Xi={},yn={};function ze(T,H,I,N){var W=N;"string"==typeof N&&(W=function(){return this[N]()}),T&&(yn[T]=W),H&&(yn[H[0]]=function(){return It(W.apply(this,arguments),H[1],H[2])}),I&&(yn[I]=function(){return this.localeData().ordinal(W.apply(this,arguments),T)})}function ri(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function vi(T,H){return T.isValid()?(H=Kr(H,T.localeData()),Xi[H]=Xi[H]||function hr(T){var I,N,H=T.match(ni);for(I=0,N=H.length;I=0&&Je.test(T);)T=T.replace(Je,N),Je.lastIndex=0,I-=1;return T}var pr={};function Qt(T,H){var I=T.toLowerCase();pr[I]=pr[I+"s"]=pr[H]=T}function en(T){return"string"==typeof T?pr[T]||pr[T.toLowerCase()]:void 0}function zo(T){var I,N,H={};for(N in T)P(T,N)&&(I=en(N))&&(H[I]=T[N]);return H}var er={};function Wt(T,H){er[T]=H}function ae(T){return T%4==0&&T%100!=0||T%400==0}function te(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function de(T){var H=+T,I=0;return 0!==H&&isFinite(H)&&(I=te(H)),I}function ke(T,H){return function(I){return null!=I?(vt(this,T,I),i.updateOffset(this,H),this):dt(this,T)}}function dt(T,H){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+H]():NaN}function vt(T,H,I){T.isValid()&&!isNaN(I)&&("FullYear"===H&&ae(T.year())&&1===T.month()&&29===T.date()?(I=de(I),T._d["set"+(T._isUTC?"UTC":"")+H](I,T.month(),jn(I,T.month()))):T._d["set"+(T._isUTC?"UTC":"")+H](I))}var zi,Ei=/\d/,Tt=/\d\d/,Sn=/\d{3}/,mt=/\d{4}/,$t=/[+-]?\d{6}/,pt=/\d\d?/,Fn=/\d\d\d\d?/,Xr=/\d\d\d\d\d\d?/,Vi=/\d{1,3}/,Rr=/\d{1,4}/,fr=/[+-]?\d{1,6}/,tr=/\d+/,ea=/[+-]?\d+/,fd=/Z|[+-]\d\d:?\d\d/gi,fs=/Z|[+-]\d\d(?::?\d\d)?/gi,Ni=/[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 Ne(T,H,I){zi[T]=ue(H)?H:function(N,W){return N&&I?I:H}}function Hi(T,H){return P(zi,T)?zi[T](H._strict,H._locale):new RegExp(function Ge(T){return it(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,N,W,se){return I||N||W||se}))}(T))}function it(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}zi={};var ii={};function w(T,H){var I,W,N=H;for("string"==typeof T&&(T=[T]),U(H)&&(N=function(se,we){we[H]=de(se)}),W=T.length,I=0;I68?1900:2e3)};var ka=ke("FullYear",!0);function Un(T,H,I,N,W,se,we){var st;return T<100&&T>=0?(st=new Date(T+400,H,I,N,W,se,we),isFinite(st.getFullYear())&&st.setFullYear(T)):st=new Date(T,H,I,N,W,se,we),st}function gs(T){var H,I;return T<100&&T>=0?((I=Array.prototype.slice.call(arguments))[0]=T+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(T)):H=new Date(Date.UTC.apply(null,arguments)),H}function gd(T,H,I){var N=7+H-I;return-(7+gs(T,0,N).getUTCDay()-H)%7+N-1}function Zl(T,H,I,N,W){var Lt,di,st=1+7*(H-1)+(7+I-N)%7+gd(T,N,W);return st<=0?di=na(Lt=T-1)+st:st>na(T)?(Lt=T+1,di=st-na(T)):(Lt=T,di=st),{year:Lt,dayOfYear:di}}function Xs(T,H,I){var se,we,N=gd(T.year(),H,I),W=Math.floor((T.dayOfYear()-N-1)/7)+1;return W<1?se=W+Ir(we=T.year()-1,H,I):W>Ir(T.year(),H,I)?(se=W-Ir(T.year(),H,I),we=T.year()+1):(we=T.year(),se=W),{week:se,year:we}}function Ir(T,H,I){var N=gd(T,H,I),W=gd(T+1,H,I);return(na(T)-N+W)/7}ze("w",["ww",2],"wo","week"),ze("W",["WW",2],"Wo","isoWeek"),Qt("week","w"),Qt("isoWeek","W"),Wt("week",5),Wt("isoWeek",5),Ne("w",pt),Ne("ww",pt,Tt),Ne("W",pt),Ne("WW",pt,Tt),Ut(["w","ww","W","WW"],function(T,H,I,N){H[N.substr(0,1)]=de(T)});function _d(T,H){return T.slice(H,7).concat(T.slice(0,H))}ze("d",0,"do","day"),ze("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),ze("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),ze("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),ze("e",0,0,"weekday"),ze("E",0,0,"isoWeekday"),Qt("day","d"),Qt("weekday","e"),Qt("isoWeekday","E"),Wt("day",11),Wt("weekday",11),Wt("isoWeekday",11),Ne("d",pt),Ne("e",pt),Ne("E",pt),Ne("dd",function(T,H){return H.weekdaysMinRegex(T)}),Ne("ddd",function(T,H){return H.weekdaysShortRegex(T)}),Ne("dddd",function(T,H){return H.weekdaysRegex(T)}),Ut(["dd","ddd","dddd"],function(T,H,I,N){var W=I._locale.weekdaysParse(T,N,I._strict);null!=W?H.d=W:ie(I).invalidWeekday=T}),Ut(["d","e","E"],function(T,H,I,N){H[N]=de(T)});var Bp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fp=Ni,Go=Ni,Mt=Ni;function Ve(T,H,I){var N,W,se,we=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)se=le([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(se,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null}function gr(){function T(qi,or){return or.length-qi.length}var se,we,st,Lt,di,H=[],I=[],N=[],W=[];for(se=0;se<7;se++)we=le([2e3,1]).day(se),st=it(this.weekdaysMin(we,"")),Lt=it(this.weekdaysShort(we,"")),di=it(this.weekdays(we,"")),H.push(st),I.push(Lt),N.push(di),W.push(st),W.push(Lt),W.push(di);H.sort(T),I.sort(T),N.sort(T),W.sort(T),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function to(){return this.hours()%12||12}function yi(T,H){ze(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function xt(T,H){return H._meridiemParse}ze("H",["HH",2],0,"hour"),ze("h",["hh",2],0,to),ze("k",["kk",2],0,function ir(){return this.hours()||24}),ze("hmm",0,0,function(){return""+to.apply(this)+It(this.minutes(),2)}),ze("hmmss",0,0,function(){return""+to.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),ze("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),ze("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),yi("a",!0),yi("A",!1),Qt("hour","h"),Wt("hour",13),Ne("a",xt),Ne("A",xt),Ne("H",pt),Ne("h",pt),Ne("k",pt),Ne("HH",pt,Tt),Ne("hh",pt,Tt),Ne("kk",pt,Tt),Ne("hmm",Fn),Ne("hmmss",Xr),Ne("Hmm",Fn),Ne("Hmmss",Xr),w(["H","HH"],3),w(["k","kk"],function(T,H,I){var N=de(T);H[3]=24===N?0:N}),w(["a","A"],function(T,H,I){I._isPm=I._locale.isPM(T),I._meridiem=T}),w(["h","hh"],function(T,H,I){H[3]=de(T),ie(I).bigHour=!0}),w("hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N)),ie(I).bigHour=!0}),w("hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W)),ie(I).bigHour=!0}),w("Hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N))}),w("Hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W))});var qo=ke("Hours",!0);var _r,Qe={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:wn,monthsShort:Lr,week:{dow:0,doy:6},weekdays:Bp,weekdaysMin:Vp,weekdaysShort:Vu,meridiemParse:/[ap]\.?m?\.?/i},St={},Ot={};function Et(T,H){var I,N=Math.min(T.length,H.length);for(I=0;I0;){if(W=Bt(se.slice(0,I).join("-")))return W;if(N&&N.length>=I&&Et(se,N)>=I-1)break;I--}H++}return _r}(T)}function ye(T){var H,I=T._a;return I&&-2===ie(T).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>jn(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,ie(T)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(T)._overflowWeeks&&-1===H&&(H=7),ie(T)._overflowWeekday&&-1===H&&(H=8),ie(T).overflow=H),T}var ge=/^\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)?)?$/,tt=/^\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)?)?$/,pi=/Z|[+-]\d\d(?::?\d\d)?/,Kt=[["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]],Zt=[["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/]],Ft=/^\/?Date\((-?\d+)/i,at=/^(?:(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}))$/,gi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ti(T){var H,I,se,we,st,Lt,N=T._i,W=ge.exec(N)||tt.exec(N),di=Kt.length,qi=Zt.length;if(W){for(ie(T).iso=!0,H=0,I=di;H7)&&(Lt=!0)):(se=T._locale._week.dow,we=T._locale._week.doy,di=Xs(ci(),se,we),I=Xt(H.gg,T._a[0],di.year),N=Xt(H.w,di.week),null!=H.d?((W=H.d)<0||W>6)&&(Lt=!0):null!=H.e?(W=H.e+se,(H.e<0||H.e>6)&&(Lt=!0)):W=se),N<1||N>Ir(I,se,we)?ie(T)._overflowWeeks=!0:null!=Lt?ie(T)._overflowWeekday=!0:(st=Zl(I,N,W,se,we),T._a[0]=st.year,T._dayOfYear=st.dayOfYear)}(T),null!=T._dayOfYear&&(we=Xt(T._a[0],W[0]),(T._dayOfYear>na(we)||0===T._dayOfYear)&&(ie(T)._overflowDayOfYear=!0),I=gs(we,0,T._dayOfYear),T._a[1]=I.getUTCMonth(),T._a[2]=I.getUTCDate()),H=0;H<3&&null==T._a[H];++H)T._a[H]=N[H]=W[H];for(;H<7;H++)T._a[H]=N[H]=T._a[H]??(2===H?1:0);24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?gs:Un).apply(null,N),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==se&&(ie(T).weekdayMismatch=!0)}}function bd(T){if(T._f!==i.ISO_8601)if(T._f!==i.RFC_2822){T._a=[],ie(T).empty=!0;var I,N,W,se,we,di,qi,H=""+T._i,st=H.length,Lt=0;for(qi=(W=Kr(T._f,T._locale).match(ni)||[]).length,I=0;I0&&ie(T).unusedInput.push(we),H=H.slice(H.indexOf(N)+N.length),Lt+=N.length),yn[se]?(N?ie(T).empty=!1:ie(T).unusedTokens.push(se),Rt(se,N,T)):T._strict&&!N&&ie(T).unusedTokens.push(se);ie(T).charsLeftOver=st-Lt,H.length>0&&ie(T).unusedInput.push(H),T._a[3]<=12&&!0===ie(T).bigHour&&T._a[3]>0&&(ie(T).bigHour=void 0),ie(T).parsedDateParts=T._a.slice(0),ie(T).meridiem=T._meridiem,T._a[3]=function jp(T,H,I){var N;return null==I?H:null!=T.meridiemHour?T.meridiemHour(H,I):(null!=T.isPM&&((N=T.isPM(I))&&H<12&&(H+=12),!N&&12===H&&(H=0)),H)}(T._locale,T._a[3],T._meridiem),null!==(di=ie(T).era)&&(T._a[0]=T._locale.erasConvertYear(di,T._a[0])),bs(T),ye(T)}else Ia(T);else Ti(T)}function yd(T){var H=T._i,I=T._f;return T._locale=T._locale||$(T._l),null===H||void 0===I&&""===H?Ae({nullInput:!0}):("string"==typeof H&&(T._i=H=T._locale.preparse(H)),xe(H)?new ve(ye(H)):(J(H)?T._d=H:x(I)?function Wo(T){var H,I,N,W,se,we,st=!1,Lt=T._f.length;if(0===Lt)return ie(T).invalidFormat=!0,void(T._d=new Date(NaN));for(W=0;Wthis?this:T:Ae()});function io(T,H){var I,N;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return ci();for(I=H[0],N=1;N=0?new Date(T+400,H,I)-lo:new Date(T,H,I).valueOf()}function Ko(T,H,I){return T<100&&T>=0?Date.UTC(T+400,H,I)-lo:Date.UTC(T,H,I)}function Hd(T,H){return H.erasAbbrRegex(T)}function el(){var W,se,T=[],H=[],I=[],N=[],we=this.eras();for(W=0,se=we.length;W(se=Ir(T,N,W))&&(H=se),Pd.call(this,T,H,I,N,W))}function Pd(T,H,I,N,W){var se=Zl(T,H,I,N,W),we=gs(se.year,0,se.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}ze("N",0,0,"eraAbbr"),ze("NN",0,0,"eraAbbr"),ze("NNN",0,0,"eraAbbr"),ze("NNNN",0,0,"eraName"),ze("NNNNN",0,0,"eraNarrow"),ze("y",["y",1],"yo","eraYear"),ze("y",["yy",2],0,"eraYear"),ze("y",["yyy",3],0,"eraYear"),ze("y",["yyyy",4],0,"eraYear"),Ne("N",Hd),Ne("NN",Hd),Ne("NNN",Hd),Ne("NNNN",function Kp(T,H){return H.erasNameRegex(T)}),Ne("NNNNN",function Xo(T,H){return H.erasNarrowRegex(T)}),w(["N","NN","NNN","NNNN","NNNNN"],function(T,H,I,N){var W=I._locale.erasParse(T,N,I._strict);W?ie(I).era=W:ie(I).invalidEra=T}),Ne("y",tr),Ne("yy",tr),Ne("yyy",tr),Ne("yyyy",tr),Ne("yo",function dc(T,H){return H._eraYearOrdinalRegex||tr}),w(["y","yy","yyy","yyyy"],0),w(["yo"],function(T,H,I,N){var W;I._locale._eraYearOrdinalRegex&&(W=T.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(T,W):parseInt(T,10)}),ze(0,["gg",2],0,function(){return this.weekYear()%100}),ze(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_i("gggg","weekYear"),_i("ggggg","weekYear"),_i("GGGG","isoWeekYear"),_i("GGGGG","isoWeekYear"),Qt("weekYear","gg"),Qt("isoWeekYear","GG"),Wt("weekYear",1),Wt("isoWeekYear",1),Ne("G",ea),Ne("g",ea),Ne("GG",pt,Tt),Ne("gg",pt,Tt),Ne("GGGG",Rr,mt),Ne("gggg",Rr,mt),Ne("GGGGG",fr,$t),Ne("ggggg",fr,$t),Ut(["gggg","ggggg","GGGG","GGGGG"],function(T,H,I,N){H[N.substr(0,2)]=de(T)}),Ut(["gg","GG"],function(T,H,I,N){H[N]=i.parseTwoDigitYear(T)}),ze("Q",0,"Qo","quarter"),Qt("quarter","Q"),Wt("quarter",7),Ne("Q",Ei),w("Q",function(T,H){H[1]=3*(de(T)-1)}),ze("D",["DD",2],"Do","date"),Qt("date","D"),Wt("date",9),Ne("D",pt),Ne("DD",pt,Tt),Ne("Do",function(T,H){return T?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),w(["D","DD"],2),w("Do",function(T,H){H[2]=de(T.match(pt)[0])});var Rd=ke("Date",!0);ze("DDD",["DDDD",3],"DDDo","dayOfYear"),Qt("dayOfYear","DDD"),Wt("dayOfYear",4),Ne("DDD",Vi),Ne("DDDD",Sn),w(["DDD","DDDD"],function(T,H,I){I._dayOfYear=de(T)}),ze("m",["mm",2],0,"minute"),Qt("minute","m"),Wt("minute",14),Ne("m",pt),Ne("mm",pt,Tt),w(["m","mm"],4);var tf=ke("Minutes",!1);ze("s",["ss",2],0,"second"),Qt("second","s"),Wt("second",15),Ne("s",pt),Ne("ss",pt,Tt),w(["s","ss"],5);var sn,uc,nh=ke("Seconds",!1);for(ze("S",0,0,function(){return~~(this.millisecond()/100)}),ze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ze(0,["SSS",3],0,"millisecond"),ze(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ze(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ze(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ze(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ze(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ze(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Qt("millisecond","ms"),Wt("millisecond",16),Ne("S",Vi,Ei),Ne("SS",Vi,Tt),Ne("SSS",Vi,Sn),sn="SSSS";sn.length<=9;sn+="S")Ne(sn,tr);function Pn(T,H){H[6]=de(1e3*("0."+T))}for(sn="S";sn.length<=9;sn+="S")w(sn,Pn);uc=ke("Milliseconds",!1),ze("z",0,0,"zoneAbbr"),ze("zz",0,0,"zoneName");var Be=ve.prototype;function rh(T){return T}Be.add=oo,Be.calendar=function Ju(T,H){1===arguments.length&&(arguments[0]?Gp(arguments[0])?(T=arguments[0],H=void 0):Zu(arguments[0])&&(H=arguments[0],T=void 0):(T=void 0,H=void 0));var I=T||ci(),N=an(I,this).startOf("day"),W=i.calendarFormat(this,N)||"sameElse",se=H&&(ue(H[W])?H[W].call(this,I):H[W]);return this.format(se||this.localeData().calendar(W,this,ci(I)))},Be.clone=function tc(){return new ve(this)},Be.diff=function Yr(T,H,I){var N,W,se;if(!this.isValid())return NaN;if(!(N=an(T,this)).isValid())return NaN;switch(W=6e4*(N.utcOffset()-this.utcOffset()),H=en(H)){case"year":se=As(this,N)/12;break;case"month":se=As(this,N);break;case"quarter":se=As(this,N)/3;break;case"second":se=(this-N)/1e3;break;case"minute":se=(this-N)/6e4;break;case"hour":se=(this-N)/36e5;break;case"day":se=(this-N-W)/864e5;break;case"week":se=(this-N-W)/6048e5;break;default:se=this-N}return I?se:te(se)},Be.endOf=function kn(T){var H,I;if(void 0===(T=en(T))||"millisecond"===T||!this.isValid())return this;switch(I=this._isUTC?Ko:Dd,T){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+=rc-Ur(H+(this._isUTC?0:this.utcOffset()*vs),rc)-1;break;case"minute":H=this._d.valueOf(),H+=vs-Ur(H,vs)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Ur(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Be.format=function Jo(T){T||(T=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=vi(this,T);return this.localeData().postformat(H)},Be.from=function Td(T,H){return this.isValid()&&(xe(T)&&T.isValid()||ci(T).isValid())?un({to:this,from:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.fromNow=function Md(T){return this.from(ci(),T)},Be.to=function ic(T,H){return this.isValid()&&(xe(T)&&T.isValid()||ci(T).isValid())?un({from:this,to:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.toNow=function nc(T){return this.to(ci(),T)},Be.get=function et(T){return ue(this[T=en(T)])?this[T]():this},Be.invalidAt=function Ts(){return ie(this).overflow},Be.isAfter=function Nr(T,H){var I=xe(T)?T:ci(T);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=en(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?vi(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",vi(I,"Z")):vi(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Be.inspect=function Qu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,N,T="moment",H="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+T+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+N+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Be.toJSON=function oc(){return this.isValid()?this.toISOString():null},Be.toString=function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Be.unix=function Ed(){return Math.floor(this.valueOf()/1e3)},Be.valueOf=function co(){return this._d.valueOf()-6e4*(this._offset||0)},Be.creationData=function lc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Be.eraName=function Zp(){var T,H,I,N=this.localeData().eras();for(T=0,H=N.length;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Be.isLocal=function so(){return!!this.isValid()&&!this._isUTC},Be.isUtcOffset=function Cs(){return!!this.isValid()&&this._isUTC},Be.isUtc=ec,Be.isUTC=ec,Be.zoneAbbr=function Ld(){return this._isUTC?"UTC":""},Be.zoneName=function ho(){return this._isUTC?"Coordinated Universal Time":""},Be.dates=Re("dates accessor is deprecated. Use date instead.",Rd),Be.months=Re("months accessor is deprecated. Use month instead",Nn),Be.years=Re("years accessor is deprecated. Use year instead",ka),Be.zone=Re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Uu(T,H){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,H),this):-this.utcOffset()}),Be.isDSTShifted=Re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Xl(){if(!j(this._isDSTShifted))return this._isDSTShifted;var H,T={};return Ee(T,this),(T=yd(T))._a?(H=T._isUTC?le(T._a):ci(T._a),this._isDSTShifted=this.isValid()&&function Yu(T,H,I){var we,N=Math.min(T.length,H.length),W=Math.abs(T.length-H.length),se=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var Nt=_e.prototype;function Ua(T,H,I,N){var W=$(),se=le().set(N,H);return W[I](se,T)}function ah(T,H,I){if(U(T)&&(H=T,T=void 0),T=T||"",null!=H)return Ua(T,H,I,"month");var N,W=[];for(N=0;N<12;N++)W[N]=Ua(T,N,I,"month");return W}function Id(T,H,I,N){"boolean"==typeof T?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=T,T=!1,U(H)&&(I=H,H=void 0),H=H||"");var we,W=$(),se=T?W._week.dow:0,st=[];if(null!=I)return Ua(H,(I+se)%7,N,"day");for(we=0;we<7;we++)st[we]=Ua(H,(we+se)%7,N,"day");return st}Nt.calendar=function At(T,H,I){var N=this._calendar[T]||this._calendar.sameElse;return ue(N)?N.call(H,I):N},Nt.longDateFormat=function Ws(T){var H=this._longDateFormat[T],I=this._longDateFormat[T.toUpperCase()];return H||!I?H:(this._longDateFormat[T]=I.match(ni).map(function(N){return"MMMM"===N||"MM"===N||"DD"===N||"dddd"===N?N.slice(1):N}).join(""),this._longDateFormat[T])},Nt.invalidDate=function $s(){return this._invalidDate},Nt.ordinal=function ps(T){return this._ordinal.replace("%d",T)},Nt.preparse=rh,Nt.postformat=rh,Nt.relativeTime=function ct(T,H,I,N){var W=this._relativeTime[I];return ue(W)?W(T,H,I,N):W.replace(/%d/i,T)},Nt.pastFuture=function Ui(T,H){var I=this._relativeTime[T>0?"future":"past"];return ue(I)?I(H):I.replace(/%s/i,H)},Nt.set=function fe(T){var H,I;for(I in T)P(T,I)&&(ue(H=T[I])?this[I]=H:this["_"+I]=H);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Nt.eras=function cc(T,H){var I,N,W,se=this._eras||$("en")._eras;for(I=0,N=se.length;I=0)return se[N]},Nt.erasConvertYear=function Xu(T,H){var I=T.since<=T.until?1:-1;return void 0===H?i(T.since).year():i(T.since).year()+(H-T.offset)*I},Nt.erasAbbrRegex=function Jp(T){return P(this,"_erasAbbrRegex")||el.call(this),T?this._erasAbbrRegex:this._erasRegex},Nt.erasNameRegex=function eh(T){return P(this,"_erasNameRegex")||el.call(this),T?this._erasNameRegex:this._erasRegex},Nt.erasNarrowRegex=function Qp(T){return P(this,"_erasNarrowRegex")||el.call(this),T?this._erasNarrowRegex:this._erasRegex},Nt.months=function $l(T,H){return T?x(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Js).test(H)?"format":"standalone"][T.month()]:x(this._months)?this._months:this._months.standalone},Nt.monthsShort=function Qs(T,H){return T?x(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Js.test(H)?"format":"standalone"][T.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Nt.monthsParse=function Ha(T,H,I){var N,W,se;if(this._monthsParseExact)return Ks.call(this,T,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(W=le([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(se="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[N]=new RegExp(se.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[N].test(T))return N;if(I&&"MMM"===H&&this._shortMonthsParse[N].test(T))return N;if(!I&&this._monthsParse[N].test(T))return N}},Nt.monthsRegex=function gn(T){return this._monthsParseExact?(P(this,"_monthsRegex")||Yn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=md),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},Nt.monthsShortRegex=function Iu(T){return this._monthsParseExact?(P(this,"_monthsRegex")||Yn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},Nt.week=function Ou(T){return Xs(T,this._week.dow,this._week.doy).week},Nt.firstDayOfYear=function Rp(){return this._week.doy},Nt.firstDayOfWeek=function mr(){return this._week.dow},Nt.weekdays=function ra(T,H){var I=x(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===T?_d(I,this._week.dow):T?I[T.day()]:I},Nt.weekdaysMin=function dn(T){return!0===T?_d(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},Nt.weekdaysShort=function Gt(T){return!0===T?_d(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},Nt.weekdaysParse=function De(T,H,I){var N,W,se;if(this._weekdaysParseExact)return Ve.call(this,T,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(W=le([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(se="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[N]=new RegExp(se.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[N].test(T))return N;if(I&&"ddd"===H&&this._shortWeekdaysParse[N].test(T))return N;if(I&&"dd"===H&&this._minWeekdaysParse[N].test(T))return N;if(!I&&this._weekdaysParse[N].test(T))return N}},Nt.weekdaysRegex=function La(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||gr.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Fp),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},Nt.weekdaysShortRegex=function Gi(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||gr.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Go),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Nt.weekdaysMinRegex=function Or(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||gr.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mt),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Nt.isPM=function nr(T){return"p"===(T+"").toLowerCase().charAt(0)},Nt.meridiem=function Fu(T,H,I){return T>11?I?"pm":"PM":I?"am":"AM"},O("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(T){var H=T%10;return T+(1===de(T%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Re("moment.lang is deprecated. Use moment.locale instead.",O),i.langData=Re("moment.langData is deprecated. Use moment.localeData instead.",$);var sr=Math.abs;function sh(T,H,I,N){var W=un(H,I);return T._milliseconds+=N*W._milliseconds,T._days+=N*W._days,T._months+=N*W._months,T._bubble()}function Ga(T){return T<0?Math.floor(T):Math.ceil(T)}function Ss(T){return 4800*T/146097}function Ri(T){return 146097*T/4800}function Cr(T){return function(){return this.as(T)}}var rl=Cr("ms"),af=Cr("s"),sf=Cr("m"),lf=Cr("h"),Bd=Cr("d"),po=Cr("w"),dh=Cr("M"),Ds=Cr("Q"),uh=Cr("y");function zr(T){return function(){return this.isValid()?this._data[T]:NaN}}var hh=zr("milliseconds"),cf=zr("seconds"),df=zr("minutes"),ua=zr("hours"),fo=zr("days"),ph=zr("months"),Vd=zr("years");var Gr=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function fh(T,H,I,N,W){return W.relativeTime(H||1,!!I,T,N)}var Fd=Math.abs;function qr(T){return(T>0)-(T<0)||+T}function jd(){if(!this.isValid())return this.localeData().invalidDate();var N,W,se,we,Lt,di,qi,or,T=Fd(this._milliseconds)/1e3,H=Fd(this._days),I=Fd(this._months),st=this.asSeconds();return st?(N=te(T/60),W=te(N/60),T%=60,N%=60,se=te(I/12),I%=12,we=T?T.toFixed(3).replace(/\.?0+$/,""):"",Lt=st<0?"-":"",di=qr(this._months)!==qr(st)?"-":"",qi=qr(this._days)!==qr(st)?"-":"",or=qr(this._milliseconds)!==qr(st)?"-":"",Lt+"P"+(se?di+se+"Y":"")+(I?di+I+"M":"")+(H?qi+H+"D":"")+(W||N||T?"T":"")+(W?or+W+"H":"")+(N?or+N+"M":"")+(T?or+we+"S":"")):"P0D"}var Yt=sa.prototype;return Yt.isValid=function Nu(){return this._isValid},Yt.abs=function rf(){var T=this._data;return this._milliseconds=sr(this._milliseconds),this._days=sr(this._days),this._months=sr(this._months),T.milliseconds=sr(T.milliseconds),T.seconds=sr(T.seconds),T.minutes=sr(T.minutes),T.hours=sr(T.hours),T.months=sr(T.months),T.years=sr(T.years),this},Yt.add=function f_(T,H){return sh(this,T,H,1)},Yt.subtract=function oh(T,H){return sh(this,T,H,-1)},Yt.as=function lh(T){if(!this.isValid())return NaN;var H,I,N=this._milliseconds;if("month"===(T=en(T))||"quarter"===T||"year"===T)switch(H=this._days+N/864e5,I=this._months+Ss(H),T){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(Ri(this._months)),T){case"week":return H/7+N/6048e5;case"day":return H+N/864e5;case"hour":return 24*H+N/36e5;case"minute":return 1440*H+N/6e4;case"second":return 86400*H+N/1e3;case"millisecond":return Math.floor(864e5*H)+N;default:throw new Error("Unknown unit "+T)}},Yt.asMilliseconds=rl,Yt.asSeconds=af,Yt.asMinutes=sf,Yt.asHours=lf,Yt.asDays=Bd,Yt.asWeeks=po,Yt.asMonths=dh,Yt.asQuarters=Ds,Yt.asYears=uh,Yt.valueOf=function ch(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN},Yt._bubble=function da(){var W,se,we,st,Lt,T=this._milliseconds,H=this._days,I=this._months,N=this._data;return T>=0&&H>=0&&I>=0||T<=0&&H<=0&&I<=0||(T+=864e5*Ga(Ri(I)+H),H=0,I=0),N.milliseconds=T%1e3,W=te(T/1e3),N.seconds=W%60,se=te(W/60),N.minutes=se%60,we=te(se/60),N.hours=we%24,H+=te(we/24),I+=Lt=te(Ss(H)),H-=Ga(Ri(Lt)),st=te(I/12),I%=12,N.days=H,N.months=I,N.years=st,this},Yt.clone=function hc(){return un(this)},Yt.get=function qa(T){return T=en(T),this.isValid()?this[T+"s"]():NaN},Yt.milliseconds=hh,Yt.seconds=cf,Yt.minutes=df,Yt.hours=ua,Yt.days=fo,Yt.weeks=function al(){return te(this.days()/7)},Yt.months=ph,Yt.years=Vd,Yt.humanize=function mh(T,H){if(!this.isValid())return this.localeData().invalidDate();var W,se,I=!1,N=ha;return"object"==typeof T&&(H=T,T=!1),"boolean"==typeof T&&(I=T),"object"==typeof H&&(N=Object.assign({},ha,H),null!=H.s&&null==H.ss&&(N.ss=H.s-1)),se=function uf(T,H,I,N){var W=un(T).abs(),se=Gr(W.as("s")),we=Gr(W.as("m")),st=Gr(W.as("h")),Lt=Gr(W.as("d")),di=Gr(W.as("M")),qi=Gr(W.as("w")),or=Gr(W.as("y")),pa=se<=I.ss&&["s",se]||se0,pa[4]=N,fh.apply(null,pa)}(this,!I,N,W=this.localeData()),I&&(se=W.pastFuture(+this,se)),W.postformat(se)},Yt.toISOString=jd,Yt.toString=jd,Yt.toJSON=jd,Yt.locale=Ku,Yt.localeData=Sd,Yt.toIsoString=Re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jd),Yt.lang=xd,ze("X",0,0,"unix"),ze("x",0,0,"valueOf"),Ne("x",ea),Ne("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(T,H,I){I._d=new Date(1e3*parseFloat(T))}),w("x",function(T,H,I){I._d=new Date(de(T))}),i.version="2.29.4",function D(T){C=T}(ci),i.fn=Be,i.min=function wd(){return io("isBefore",[].slice.call(arguments,0))},i.max=function aa(){return io("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function il(T){return ci(1e3*T)},i.months=function xs(T,H){return ah(T,H,"months")},i.isDate=J,i.locale=O,i.invalid=Ae,i.duration=un,i.isMoment=xe,i.weekdays=function p_(T,H,I){return Id(T,H,I,"weekdays")},i.parseZone=function nf(){return ci.apply(null,arguments).parseZone()},i.localeData=$,i.isDuration=ro,i.monthsShort=function za(T,H){return ah(T,H,"monthsShort")},i.weekdaysMin=function Od(T,H,I){return Id(T,H,I,"weekdaysMin")},i.defineLocale=q,i.updateLocale=function B(T,H){if(null!=H){var I,N,W=Qe;null!=St[T]&&null!=St[T].parentLocale?St[T].set(Ce(St[T]._config,H)):(null!=(N=Bt(T))&&(W=N._config),H=Ce(W,H),null==N&&(H.abbr=T),(I=new _e(H)).parentLocale=St[T],St[T]=I),O(T)}else null!=St[T]&&(null!=St[T].parentLocale?(St[T]=St[T].parentLocale,T===O()&&O(T)):null!=St[T]&&delete St[T]);return St[T]},i.locales=function ce(){return Ue(St)},i.weekdaysShort=function nl(T,H,I){return Id(T,H,I,"weekdaysShort")},i.normalizeUnits=en,i.relativeTimeRounding=function hf(T){return void 0===T?Gr:"function"==typeof T&&(Gr=T,!0)},i.relativeTimeThreshold=function pc(T,H){return void 0!==ha[T]&&(void 0===H?ha[T]:(ha[T]=H,"s"===T&&(ha.ss=H-1),!0))},i.calendarFormat=function $o(T,H){var I=T.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=Be,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}()},9751:(Y,z,M)=>{"use strict";M.d(z,{y:()=>j});var C=M(930),i=M(727),D=M(8822),x=M(9635),S=M(2416),P=M(576),L=M(2806);let j=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,me){const be=function Q(ne){return ne&&ne instanceof C.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new C.Hp(re,ie,me);return(0,L.x)(()=>{const{operator:Ae,source:$e}=this;be.add(Ae?Ae.call(be,$e):$e?this._subscribe(be):this._trySubscribe(be))}),be}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=U(ie))((me,be)=>{const Ae=new C.Hp({next:$e=>{try{re($e)}catch(Ze){be(Ze),Ae.unsubscribe()}},error:be,complete:me});this.subscribe(Ae)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[D.L](){return this}pipe(...re){return(0,x.U)(re)(this)}toPromise(re){return new(re=U(re))((ie,me)=>{let be;this.subscribe(Ae=>be=Ae,Ae=>me(Ae),()=>ie(be))})}}return ne.create=le=>new ne(le),ne})();function U(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(Y,z,M)=>{"use strict";M.d(z,{x:()=>L});var C=M(9751),i=M(727);const x=(0,M(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=M(8737),P=M(2806);let L=(()=>{class U extends C.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new j(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new x}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new C.y;return Q.source=this,Q}}return U.create=(J,Q)=>new j(J,Q),U})();class j extends L{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(Y,z,M)=>{"use strict";M.d(z,{Hp:()=>me,Lv:()=>ne});var C=M(576),i=M(727),D=M(2416),x=M(7849),S=M(5032);const P=U("C",void 0,void 0);function U(Ee,ve,xe){return{kind:Ee,value:ve,error:xe}}var J=M(3410),Q=M(2806);class ne extends i.w0{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,i.Nn)(ve)&&ve.add(this)):this.destination=Ze}static create(ve,xe,lt){return new me(ve,xe,lt)}next(ve){this.isStopped?$e(function j(Ee){return U("N",Ee,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?$e(function L(Ee){return U("E",void 0,Ee)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?$e(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(Ee,ve){return le.call(Ee,ve)}class ie{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:xe}=this;if(xe.next)try{xe.next(ve)}catch(lt){be(lt)}}error(ve){const{partialObserver:xe}=this;if(xe.error)try{xe.error(ve)}catch(lt){be(lt)}else be(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(xe){be(xe)}}}class me extends ne{constructor(ve,xe,lt){let Re;if(super(),(0,C.m)(ve)||!ve)Re={next:ve??void 0,error:xe??void 0,complete:lt??void 0};else{let Oe;this&&D.v.useDeprecatedNextContext?(Oe=Object.create(ve),Oe.unsubscribe=()=>this.unsubscribe(),Re={next:ve.next&&re(ve.next,Oe),error:ve.error&&re(ve.error,Oe),complete:ve.complete&&re(ve.complete,Oe)}):Re=ve}this.destination=new ie(Re)}}function be(Ee){D.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(Ee):(0,x.h)(Ee)}function $e(Ee,ve){const{onStoppedNotification:xe}=D.v;xe&&J.z.setTimeout(()=>xe(Ee,ve))}const Ze={closed:!0,next:S.Z,error:function Ae(Ee){throw Ee},complete:S.Z}},727:(Y,z,M)=>{"use strict";M.d(z,{Lc:()=>P,w0:()=>S,Nn:()=>L});var C=M(576);const D=(0,M(3888).d)(U=>function(Q){U(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var x=M(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,C.m)(ne))try{ne()}catch(re){J=re instanceof D?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{j(re)}catch(ie){J=J??[],ie instanceof D?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new D(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)j(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,x.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,x.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const U=new S;return U.closed=!0,U})();const P=S.EMPTY;function L(U){return U instanceof S||U&&"closed"in U&&(0,C.m)(U.remove)&&(0,C.m)(U.add)&&(0,C.m)(U.unsubscribe)}function j(U){(0,C.m)(U)?U():U.unsubscribe()}},2416:(Y,z,M)=>{"use strict";M.d(z,{v:()=>C});const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,z,M)=>{"use strict";M.d(z,{a:()=>J});var C=M(9751),i=M(4742),D=M(2076),x=M(4671),S=M(3268),P=M(3269),L=M(1810),j=M(5403),U=M(9672);function J(...le){const re=(0,P.yG)(le),ie=(0,P.jO)(le),{args:me,keys:be}=(0,i.D)(le);if(0===me.length)return(0,D.D)([],re);const Ae=new C.y(function Q(le,re,ie=x.y){return me=>{ne(re,()=>{const{length:be}=le,Ae=new Array(be);let $e=be,Ze=be;for(let Ee=0;Ee{const ve=(0,D.D)(le[Ee],re);let xe=!1;ve.subscribe((0,j.x)(me,lt=>{Ae[Ee]=lt,xe||(xe=!0,Ze--),Ze||me.next(ie(Ae.slice()))},()=>{--$e||me.complete()}))},me)},me)}}(me,re,be?$e=>(0,L.n)(be,$e):x.y));return ie?Ae.pipe((0,S.Z)(ie)):Ae}function ne(le,re,ie){le?(0,U.f)(ie,le,re):re()}},7272:(Y,z,M)=>{"use strict";M.d(z,{z:()=>S});var C=M(8189),D=M(3269),x=M(2076);function S(...P){return function i(){return(0,C.J)(1)}()((0,x.D)(P,(0,D.yG)(P)))}},515:(Y,z,M)=>{"use strict";M.d(z,{E:()=>i});const i=new(M(9751).y)(S=>S.complete())},2076:(Y,z,M)=>{"use strict";M.d(z,{D:()=>lt});var C=M(8421),i=M(9672),D=M(4482),x=M(5403);function S(Re,Oe=0){return(0,D.e)((Le,ue)=>{Le.subscribe((0,x.x)(ue,fe=>(0,i.f)(ue,Re,()=>ue.next(fe),Oe),()=>(0,i.f)(ue,Re,()=>ue.complete(),Oe),fe=>(0,i.f)(ue,Re,()=>ue.error(fe),Oe)))})}function P(Re,Oe=0){return(0,D.e)((Le,ue)=>{ue.add(Re.schedule(()=>Le.subscribe(ue),Oe))})}var U=M(9751),Q=M(2202),ne=M(576);function re(Re,Oe){if(!Re)throw new Error("Iterable cannot be null");return new U.y(Le=>{(0,i.f)(Le,Oe,()=>{const ue=Re[Symbol.asyncIterator]();(0,i.f)(Le,Oe,()=>{ue.next().then(fe=>{fe.done?Le.complete():Le.next(fe.value)})},0,!0)})})}var ie=M(3670),me=M(8239),be=M(1144),Ae=M(6495),$e=M(2206),Ze=M(4532),Ee=M(3260);function lt(Re,Oe){return Oe?function xe(Re,Oe){if(null!=Re){if((0,ie.c)(Re))return function L(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,be.z)(Re))return function J(Re,Oe){return new U.y(Le=>{let ue=0;return Oe.schedule(function(){ue===Re.length?Le.complete():(Le.next(Re[ue++]),Le.closed||this.schedule())})})}(Re,Oe);if((0,me.t)(Re))return function j(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,$e.D)(Re))return re(Re,Oe);if((0,Ae.T)(Re))return function le(Re,Oe){return new U.y(Le=>{let ue;return(0,i.f)(Le,Oe,()=>{ue=Re[Q.h](),(0,i.f)(Le,Oe,()=>{let fe,Ce;try{({value:fe,done:Ce}=ue.next())}catch(_e){return void Le.error(_e)}Ce?Le.complete():Le.next(fe)},0,!0)}),()=>(0,ne.m)(ue?.return)&&ue.return()})}(Re,Oe);if((0,Ee.L)(Re))return function ve(Re,Oe){return re((0,Ee.Q)(Re),Oe)}(Re,Oe)}throw(0,Ze.z)(Re)}(Re,Oe):(0,C.Xf)(Re)}},8421:(Y,z,M)=>{"use strict";M.d(z,{Xf:()=>le});var C=M(655),i=M(1144),D=M(8239),x=M(9751),S=M(3670),P=M(2206),L=M(4532),j=M(6495),U=M(3260),J=M(576),Q=M(7849),ne=M(8822);function le(Ee){if(Ee instanceof x.y)return Ee;if(null!=Ee){if((0,S.c)(Ee))return function re(Ee){return new x.y(ve=>{const xe=Ee[ne.L]();if((0,J.m)(xe.subscribe))return xe.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ee);if((0,i.z)(Ee))return function ie(Ee){return new x.y(ve=>{for(let xe=0;xe{Ee.then(xe=>{ve.closed||(ve.next(xe),ve.complete())},xe=>ve.error(xe)).then(null,Q.h)})}(Ee);if((0,P.D)(Ee))return Ae(Ee);if((0,j.T)(Ee))return function be(Ee){return new x.y(ve=>{for(const xe of Ee)if(ve.next(xe),ve.closed)return;ve.complete()})}(Ee);if((0,U.L)(Ee))return function $e(Ee){return Ae((0,U.Q)(Ee))}(Ee)}throw(0,L.z)(Ee)}function Ae(Ee){return new x.y(ve=>{(function Ze(Ee,ve){var xe,lt,Re,Oe;return(0,C.mG)(this,void 0,void 0,function*(){try{for(xe=(0,C.KL)(Ee);!(lt=yield xe.next()).done;)if(ve.next(lt.value),ve.closed)return}catch(Le){Re={error:Le}}finally{try{lt&&!lt.done&&(Oe=xe.return)&&(yield Oe.call(xe))}finally{if(Re)throw Re.error}}ve.complete()})})(Ee,ve).catch(xe=>ve.error(xe))})}},6451:(Y,z,M)=>{"use strict";M.d(z,{T:()=>P});var C=M(8189),i=M(8421),D=M(515),x=M(3269),S=M(2076);function P(...L){const j=(0,x.yG)(L),U=(0,x._6)(L,1/0),J=L;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,C.J)(U)((0,S.D)(J,j)):D.E}},9646:(Y,z,M)=>{"use strict";M.d(z,{of:()=>D});var C=M(3269),i=M(2076);function D(...x){const S=(0,C.yG)(x);return(0,i.D)(x,S)}},102:(Y,z,M)=>{"use strict";M.d(z,{S:()=>P});var C=M(9751),i=M(8421);const{isArray:D}=Array;var S=M(5403);function P(...j){return 1===(j=function x(j){return 1===j.length&&D(j[0])?j[0]:j}(j)).length?(0,i.Xf)(j[0]):new C.y(function L(j){return U=>{let J=[];for(let Q=0;J&&!U.closed&&Q{if(J){for(let le=0;le{"use strict";M.d(z,{_:()=>D});var C=M(9751),i=M(576);function D(x,S){const P=(0,i.m)(x)?x:()=>x,L=j=>j.error(P());return new C.y(S?j=>S.schedule(L,0,j):L)}},2805:(Y,z,M)=>{"use strict";M.d(z,{H:()=>S});var C=M(9751),i=M(4986),D=M(3532),x=M(1165);function S(P=0,L,j=i.P){let U=-1;return null!=L&&((0,D.K)(L)?j=L:U=L),new C.y(J=>{let Q=(0,x.q)(P)?+P-j.now():P;Q<0&&(Q=0);let ne=0;return j.schedule(function(){J.closed||(J.next(ne++),0<=U?this.schedule(void 0,U):J.complete())},Q)})}},5403:(Y,z,M)=>{"use strict";M.d(z,{x:()=>i});var C=M(930);function i(x,S,P,L,j){return new D(x,S,P,L,j)}class D extends C.Lv{constructor(S,P,L,j,U,J){super(S),this.onFinalize=U,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=j?function(Q){try{j(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(Y,z,M)=>{"use strict";M.d(z,{K:()=>x});var C=M(8421),i=M(5403),D=M(4482);function x(S){return(0,D.e)((P,L)=>{let J,j=null,U=!1;j=P.subscribe((0,i.x)(L,void 0,void 0,Q=>{J=(0,C.Xf)(S(Q,x(S)(P))),j?(j.unsubscribe(),j=null,J.subscribe(L)):U=!0})),U&&(j.unsubscribe(),j=null,J.subscribe(L))})}},4351:(Y,z,M)=>{"use strict";M.d(z,{b:()=>D});var C=M(5577),i=M(576);function D(x,S){return(0,i.m)(S)?(0,C.z)(x,S,1):(0,C.z)(x,1)}},8372:(Y,z,M)=>{"use strict";M.d(z,{b:()=>x});var C=M(4986),i=M(4482),D=M(5403);function x(S,P=C.z){return(0,i.e)((L,j)=>{let U=null,J=null,Q=null;const ne=()=>{if(U){U.unsubscribe(),U=null;const re=J;J=null,j.next(re)}};function le(){const re=Q+S,ie=P.now();if(ie{J=re,Q=P.now(),U||(U=P.schedule(le,S),j.add(U))},()=>{ne(),j.complete()},void 0,()=>{J=U=null}))})}},6590:(Y,z,M)=>{"use strict";M.d(z,{d:()=>D});var C=M(4482),i=M(5403);function D(x){return(0,C.e)((S,P)=>{let L=!1;S.subscribe((0,i.x)(P,j=>{L=!0,P.next(j)},()=>{L||P.next(x),P.complete()}))})}},1005:(Y,z,M)=>{"use strict";M.d(z,{g:()=>ne});var C=M(4986),i=M(7272),D=M(5698),x=M(4482),S=M(5403),P=M(5032),j=M(9718),U=M(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,D.q)(1),function L(){return(0,x.e)((le,re)=>{le.subscribe((0,S.x)(re,P.Z))})}()),ie.pipe(J(le))):(0,U.z)((ie,me)=>le(ie,me).pipe((0,D.q)(1),(0,j.h)(ie)))}var Q=M(2805);function ne(le,re=C.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(Y,z,M)=>{"use strict";M.d(z,{h:()=>D});var C=M(4482),i=M(5403);function D(x,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,U=>x.call(S,U,j++)&&L.next(U)))})}},590:(Y,z,M)=>{"use strict";M.d(z,{P:()=>L});var C=M(6805),i=M(9300),D=M(5698),x=M(6590),S=M(8068),P=M(4671);function L(j,U){const J=arguments.length>=2;return Q=>Q.pipe(j?(0,i.h)((ne,le)=>j(ne,le,Q)):P.y,(0,D.q)(1),J?(0,x.d)(U):(0,S.T)(()=>new C.K))}},4004:(Y,z,M)=>{"use strict";M.d(z,{U:()=>D});var C=M(4482),i=M(5403);function D(x,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,U=>{L.next(x.call(S,U,j++))}))})}},9718:(Y,z,M)=>{"use strict";M.d(z,{h:()=>i});var C=M(4004);function i(D){return(0,C.U)(()=>D)}},8189:(Y,z,M)=>{"use strict";M.d(z,{J:()=>D});var C=M(5577),i=M(4671);function D(x=1/0){return(0,C.z)(i.y,x)}},5577:(Y,z,M)=>{"use strict";M.d(z,{z:()=>j});var C=M(4004),i=M(8421),D=M(4482),x=M(9672),S=M(5403),L=M(576);function j(U,J,Q=1/0){return(0,L.m)(J)?j((ne,le)=>(0,C.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(U(ne,le))),Q):("number"==typeof J&&(Q=J),(0,D.e)((ne,le)=>function P(U,J,Q,ne,le,re,ie,me){const be=[];let Ae=0,$e=0,Ze=!1;const Ee=()=>{Ze&&!be.length&&!Ae&&J.complete()},ve=lt=>Ae{re&&J.next(lt),Ae++;let Re=!1;(0,i.Xf)(Q(lt,$e++)).subscribe((0,S.x)(J,Oe=>{le?.(Oe),re?ve(Oe):J.next(Oe)},()=>{Re=!0},void 0,()=>{if(Re)try{for(Ae--;be.length&&Aexe(Oe)):xe(Oe)}Ee()}catch(Oe){J.error(Oe)}}))};return U.subscribe((0,S.x)(J,ve,()=>{Ze=!0,Ee()})),()=>{me?.()}}(ne,le,U,Q)))}},3099:(Y,z,M)=>{"use strict";M.d(z,{B:()=>S});var C=M(8421),i=M(7579),D=M(930),x=M(4482);function S(L={}){const{connector:j=(()=>new i.x),resetOnError:U=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=L;return ne=>{let le,re,ie,me=0,be=!1,Ae=!1;const $e=()=>{re?.unsubscribe(),re=void 0},Ze=()=>{$e(),le=ie=void 0,be=Ae=!1},Ee=()=>{const ve=le;Ze(),ve?.unsubscribe()};return(0,x.e)((ve,xe)=>{me++,!Ae&&!be&&$e();const lt=ie=ie??j();xe.add(()=>{me--,0===me&&!Ae&&!be&&(re=P(Ee,Q))}),lt.subscribe(xe),!le&&me>0&&(le=new D.Hp({next:Re=>lt.next(Re),error:Re=>{Ae=!0,$e(),re=P(Ze,U,Re),lt.error(Re)},complete:()=>{be=!0,$e(),re=P(Ze,J),lt.complete()}}),(0,C.Xf)(ve).subscribe(le))})(ne)}}function P(L,j,...U){if(!0===j)return void L();if(!1===j)return;const J=new D.Hp({next:()=>{J.unsubscribe(),L()}});return j(...U).subscribe(J)}},3900:(Y,z,M)=>{"use strict";M.d(z,{w:()=>x});var C=M(8421),i=M(4482),D=M(5403);function x(S,P){return(0,i.e)((L,j)=>{let U=null,J=0,Q=!1;const ne=()=>Q&&!U&&j.complete();L.subscribe((0,D.x)(j,le=>{U?.unsubscribe();let re=0;const ie=J++;(0,C.Xf)(S(le,ie)).subscribe(U=(0,D.x)(j,me=>j.next(P?P(le,me,ie,re++):me),()=>{U=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(Y,z,M)=>{"use strict";M.d(z,{q:()=>x});var C=M(515),i=M(4482),D=M(5403);function x(S){return S<=0?()=>C.E:(0,i.e)((P,L)=>{let j=0;P.subscribe((0,D.x)(L,U=>{++j<=S&&(L.next(U),S<=j&&L.complete())}))})}},8505:(Y,z,M)=>{"use strict";M.d(z,{b:()=>S});var C=M(576),i=M(4482),D=M(5403),x=M(4671);function S(P,L,j){const U=(0,C.m)(P)||L||j?{next:P,error:L,complete:j}:P;return U?(0,i.e)((J,Q)=>{var ne;null===(ne=U.subscribe)||void 0===ne||ne.call(U);let le=!0;J.subscribe((0,D.x)(Q,re=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,re),Q.next(re)},()=>{var re;le=!1,null===(re=U.complete)||void 0===re||re.call(U),Q.complete()},re=>{var ie;le=!1,null===(ie=U.error)||void 0===ie||ie.call(U,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=U.unsubscribe)||void 0===re||re.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):x.y}},8068:(Y,z,M)=>{"use strict";M.d(z,{T:()=>x});var C=M(6805),i=M(4482),D=M(5403);function x(P=S){return(0,i.e)((L,j)=>{let U=!1;L.subscribe((0,D.x)(j,J=>{U=!0,j.next(J)},()=>U?j.complete():j.error(P())))})}function S(){return new C.K}},7414:(Y,z,M)=>{"use strict";M.d(z,{V:()=>U});var C=M(4986),i=M(1165),D=M(4482),x=M(8421),S=M(3888),P=M(5403),L=M(9672);const j=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function U(Q,ne){const{first:le,each:re,with:ie=J,scheduler:me=ne??C.z,meta:be=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,D.e)((Ae,$e)=>{let Ze,Ee,ve=null,xe=0;const lt=Re=>{Ee=(0,L.f)($e,me,()=>{try{Ze.unsubscribe(),(0,x.Xf)(ie({meta:be,lastValue:ve,seen:xe})).subscribe($e)}catch(Oe){$e.error(Oe)}},Re)};Ze=Ae.subscribe((0,P.x)($e,Re=>{Ee?.unsubscribe(),xe++,$e.next(ve=Re),re>0&<(re)},void 0,void 0,()=>{Ee?.closed||Ee?.unsubscribe(),ve=null})),!xe&<(null!=le?"number"==typeof le?le:+le-me.now():re)})}function J(Q){throw new j(Q)}},4408:(Y,z,M)=>{"use strict";M.d(z,{o:()=>S});var C=M(727);class i extends C.w0{constructor(L,j){super()}schedule(L,j=0){return this}}const D={setInterval(P,L,...j){const{delegate:U}=D;return U?.setInterval?U.setInterval(P,L,...j):setInterval(P,L,...j)},clearInterval(P){const{delegate:L}=D;return(L?.clearInterval||clearInterval)(P)},delegate:void 0};var x=M(8737);class S extends i{constructor(L,j){super(L,j),this.scheduler=L,this.work=j,this.pending=!1}schedule(L,j=0){if(this.closed)return this;this.state=L;const U=this.id,J=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId(J,U,j)),this.pending=!0,this.delay=j,this.id=this.id||this.requestAsyncId(J,this.id,j),this}requestAsyncId(L,j,U=0){return D.setInterval(L.flush.bind(L,this),U)}recycleAsyncId(L,j,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return j;D.clearInterval(j)}execute(L,j){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(L,j);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,j){let J,U=!1;try{this.work(L)}catch(Q){U=!0,J=Q||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:L,scheduler:j}=this,{actions:U}=j;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(U,this),null!=L&&(this.id=this.recycleAsyncId(j,L,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,z,M)=>{"use strict";M.d(z,{v:()=>D});var C=M(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,L){return new this.schedulerActionCtor(this,S).schedule(L,P)}}i.now=C.l.now;class D extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let L;this._active=!0;do{if(L=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,L){for(;S=P.shift();)S.unsubscribe();throw L}}}},4986:(Y,z,M)=>{"use strict";M.d(z,{P:()=>x,z:()=>D});var C=M(4408);const D=new(M(7565).v)(C.o),x=D},6063:(Y,z,M)=>{"use strict";M.d(z,{l:()=>C});const C={now:()=>(C.delegate||Date).now(),delegate:void 0}},3410:(Y,z,M)=>{"use strict";M.d(z,{z:()=>C});const C={setTimeout(i,D,...x){const{delegate:S}=C;return S?.setTimeout?S.setTimeout(i,D,...x):setTimeout(i,D,...x)},clearTimeout(i){const{delegate:D}=C;return(D?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(Y,z,M)=>{"use strict";M.d(z,{h:()=>i});const i=function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,z,M)=>{"use strict";M.d(z,{L:()=>C});const C="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,z,M)=>{"use strict";M.d(z,{K:()=>i});const i=(0,M(3888).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,z,M)=>{"use strict";M.d(z,{_6:()=>P,jO:()=>x,yG:()=>S});var C=M(576),i=M(3532);function D(L){return L[L.length-1]}function x(L){return(0,C.m)(D(L))?L.pop():void 0}function S(L){return(0,i.K)(D(L))?L.pop():void 0}function P(L,j){return"number"==typeof D(L)?L.pop():j}},4742:(Y,z,M)=>{"use strict";M.d(z,{D:()=>S});const{isArray:C}=Array,{getPrototypeOf:i,prototype:D,keys:x}=Object;function S(L){if(1===L.length){const j=L[0];if(C(j))return{args:j,keys:null};if(function P(L){return L&&"object"==typeof L&&i(L)===D}(j)){const U=x(j);return{args:U.map(J=>j[J]),keys:U}}}return{args:L,keys:null}}},8737:(Y,z,M)=>{"use strict";function C(i,D){if(i){const x=i.indexOf(D);0<=x&&i.splice(x,1)}}M.d(z,{P:()=>C})},3888:(Y,z,M)=>{"use strict";function C(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}M.d(z,{d:()=>C})},1810:(Y,z,M)=>{"use strict";function C(i,D){return i.reduce((x,S,P)=>(x[S]=D[P],x),{})}M.d(z,{n:()=>C})},2806:(Y,z,M)=>{"use strict";M.d(z,{O:()=>x,x:()=>D});var C=M(2416);let i=null;function D(S){if(C.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:L,error:j}=i;if(i=null,L)throw j}}else S()}function x(S){C.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(Y,z,M)=>{"use strict";function C(i,D,x,S=0,P=!1){const L=D.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(L),!P)return L}M.d(z,{f:()=>C})},4671:(Y,z,M)=>{"use strict";function C(i){return i}M.d(z,{y:()=>C})},1144:(Y,z,M)=>{"use strict";M.d(z,{z:()=>C});const C=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(Y,z,M)=>{"use strict";M.d(z,{D:()=>i});var C=M(576);function i(D){return Symbol.asyncIterator&&(0,C.m)(D?.[Symbol.asyncIterator])}},1165:(Y,z,M)=>{"use strict";function C(i){return i instanceof Date&&!isNaN(i)}M.d(z,{q:()=>C})},576:(Y,z,M)=>{"use strict";function C(i){return"function"==typeof i}M.d(z,{m:()=>C})},3670:(Y,z,M)=>{"use strict";M.d(z,{c:()=>D});var C=M(8822),i=M(576);function D(x){return(0,i.m)(x[C.L])}},6495:(Y,z,M)=>{"use strict";M.d(z,{T:()=>D});var C=M(2202),i=M(576);function D(x){return(0,i.m)(x?.[C.h])}},8239:(Y,z,M)=>{"use strict";M.d(z,{t:()=>i});var C=M(576);function i(D){return(0,C.m)(D?.then)}},3260:(Y,z,M)=>{"use strict";M.d(z,{L:()=>x,Q:()=>D});var C=M(655),i=M(576);function D(S){return(0,C.FC)(this,arguments,function*(){const L=S.getReader();try{for(;;){const{value:j,done:U}=yield(0,C.qq)(L.read());if(U)return yield(0,C.qq)(void 0);yield yield(0,C.qq)(j)}}finally{L.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(Y,z,M)=>{"use strict";M.d(z,{K:()=>i});var C=M(576);function i(D){return D&&(0,C.m)(D.schedule)}},4482:(Y,z,M)=>{"use strict";M.d(z,{A:()=>i,e:()=>D});var C=M(576);function i(x){return(0,C.m)(x?.lift)}function D(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,z,M)=>{"use strict";M.d(z,{Z:()=>x});var C=M(4004);const{isArray:i}=Array;function x(S){return(0,C.U)(P=>function D(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(Y,z,M)=>{"use strict";function C(){}M.d(z,{Z:()=>C})},9635:(Y,z,M)=>{"use strict";M.d(z,{U:()=>D,z:()=>i});var C=M(4671);function i(...x){return D(x)}function D(x){return 0===x.length?C.y:1===x.length?x[0]:function(P){return x.reduce((L,j)=>j(L),P)}}},7849:(Y,z,M)=>{"use strict";M.d(z,{h:()=>D});var C=M(2416),i=M(3410);function D(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=C.v;if(!S)throw x;S(x)})}},4532:(Y,z,M)=>{"use strict";function C(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}M.d(z,{z:()=>C})},6700:(Y,z,M)=>{var C={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=D(x);return M(S)}function D(x){if(!M.o(C,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return C[x]}i.keys=function(){return Object.keys(C)},i.resolve=D,Y.exports=i,i.id=6700},655:(Y,z,M)=>{"use strict";function j(ue,fe,Ce,_e){return new(Ce||(Ce=Promise))(function(je,At){function It(Xi){try{Je(_e.next(Xi))}catch(yn){At(yn)}}function ni(Xi){try{Je(_e.throw(Xi))}catch(yn){At(yn)}}function Je(Xi){Xi.done?je(Xi.value):function Ue(je){return je instanceof Ce?je:new Ce(function(At){At(je)})}(Xi.value).then(It,ni)}Je((_e=_e.apply(ue,fe||[])).next())})}function be(ue){return this instanceof be?(this.v=ue,this):new be(ue)}function Ae(ue,fe,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,_e=Ce.apply(ue,fe||[]),je=[];return Ue={},At("next"),At("throw"),At("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue;function At(ze){_e[ze]&&(Ue[ze]=function(ri){return new Promise(function(hr,vi){je.push([ze,ri,hr,vi])>1||It(ze,ri)})})}function It(ze,ri){try{!function ni(ze){ze.value instanceof be?Promise.resolve(ze.value.v).then(Je,Xi):yn(je[0][2],ze)}(_e[ze](ri))}catch(hr){yn(je[0][3],hr)}}function Je(ze){It("next",ze)}function Xi(ze){It("throw",ze)}function yn(ze,ri){ze(ri),je.shift(),je.length&&It(je[0][0],je[0][1])}}function Ze(ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,fe=ue[Symbol.asyncIterator];return fe?fe.call(ue):(ue=function ne(ue){var fe="function"==typeof Symbol&&Symbol.iterator,Ce=fe&&ue[fe],_e=0;if(Ce)return Ce.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&_e>=ue.length&&(ue=void 0),{value:ue&&ue[_e++],done:!ue}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ue),Ce={},_e("next"),_e("throw"),_e("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function _e(je){Ce[je]=ue[je]&&function(At){return new Promise(function(It,ni){!function Ue(je,At,It,ni){Promise.resolve(ni).then(function(Je){je({value:Je,done:It})},At)}(It,ni,(At=ue[je](At)).done,At.value)})}}}M.d(z,{FC:()=>Ae,KL:()=>Ze,mG:()=>j,qq:()=>be})},6895:(Y,z,M)=>{"use strict";M.d(z,{Do:()=>Ze,ED:()=>gs,EM:()=>_r,HT:()=>S,JF:()=>Bt,K0:()=>L,Mx:()=>md,NF:()=>qo,O5:()=>gn,Ov:()=>Bu,PC:()=>Ir,RF:()=>Pa,S$:()=>be,V_:()=>J,Ye:()=>Ee,b0:()=>$e,bD:()=>yi,ez:()=>ir,mk:()=>$l,n9:()=>Un,p6:()=>ke,q:()=>D,sg:()=>Nn,tP:()=>Ou,uU:()=>Go,w_:()=>P});var C=M(4650);let i=null;function D(){return i}function S(O){i||(i=O)}class P{}const L=new C.OlP("DocumentToken");let j=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return function U(){return(0,C.LFG)(Q)}()},providedIn:"platform"}),O})();const J=new C.OlP("Location Initialized");let Q=(()=>{class O extends j{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",B,!1),()=>$.removeEventListener("popstate",B)}onHashChange(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",B,!1),()=>$.removeEventListener("hashchange",B)}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(B){this.location.pathname=B}pushState(B,$,ce){ne()?this._history.pushState(B,$,ce):this.location.hash=ce}replaceState(B,$,ce){ne()?this._history.replaceState(B,$,ce):this.location.hash=ce}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(L))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function le(){return new Q((0,C.LFG)(L))}()},providedIn:"platform"}),O})();function ne(){return!!window.history.pushState}function re(O,q){if(0==O.length)return q;if(0==q.length)return O;let B=0;return O.endsWith("/")&&B++,q.startsWith("/")&&B++,2==B?O+q.substring(1):1==B?O+q:O+"/"+q}function ie(O){const q=O.match(/#|\?|$/),B=q&&q.index||O.length;return O.slice(0,B-("/"===O[B-1]?1:0))+O.slice(B)}function me(O){return O&&"?"!==O[0]?"?"+O:O}let be=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return(0,C.f3M)($e)},providedIn:"root"}),O})();const Ae=new C.OlP("appBaseHref");let $e=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,C.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return re(this._baseHref,B)}path(B=!1){const $=this._platformLocation.pathname+me(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&B?`${$}${ce}`:$}pushState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Ze=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=$&&(this._baseHref=$)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let $=this._platformLocation.hash;return null==$&&($="#"),$.length>0?$.substring(1):$}prepareExternalUrl(B){const $=re(this._baseHref,B);return $.length>0?"#"+$:$}pushState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac}),O})(),Ee=(()=>{class O{constructor(B){this._subject=new C.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const $=this._locationStrategy.getBaseHref();this._baseHref=ie(lt($)),this._locationStrategy.onPopState(ce=>{this._subject.emit({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,$=""){return this.path()==this.normalize(B+me($))}normalize(B){return O.stripTrailingSlash(function xe(O,q){return O&&q.startsWith(O)?q.substring(O.length):q}(this._baseHref,lt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,$="",ce=null){this._locationStrategy.pushState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}replaceState(B,$="",ce=null){this._locationStrategy.replaceState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){this._locationStrategy.historyGo?.(B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(B);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",$){this._urlChangeListeners.forEach(ce=>ce(B,$))}subscribe(B,$,ce){return this._subject.subscribe({next:B,error:$,complete:ce})}}return O.normalizeQueryParams=me,O.joinWithSlash=re,O.stripTrailingSlash=ie,O.\u0275fac=function(B){return new(B||O)(C.LFG(be))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function ve(){return new Ee((0,C.LFG)(be))}()},providedIn:"root"}),O})();function lt(O){return O.replace(/\/index.html$/,"")}var ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function ze(O,q){return Ui((0,C.cg1)(O)[C.wAp.DateFormat],q)}function ri(O,q){return Ui((0,C.cg1)(O)[C.wAp.TimeFormat],q)}function hr(O,q){return Ui((0,C.cg1)(O)[C.wAp.DateTimeFormat],q)}function vi(O,q){const B=(0,C.cg1)(O),$=B[C.wAp.NumberSymbols][q];if(typeof $>"u"){if(q===_e.CurrencyDecimal)return B[C.wAp.NumberSymbols][_e.Decimal];if(q===_e.CurrencyGroup)return B[C.wAp.NumberSymbols][_e.Group]}return $}function Pr(O){if(!O[C.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[C.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ui(O,q){for(let B=q;B>-1;B--)if(typeof O[B]<"u")return O[B];throw new Error("Locale data API: locale data undefined")}function pr(O){const[q,B]=O.split(":");return{hours:+q,minutes:+B}}const er=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wt={},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 ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),de=(()=>((de=de||{})[de.DayPeriods=0]="DayPeriods",de[de.Days=1]="Days",de[de.Months=2]="Months",de[de.Eras=3]="Eras",de))();function ke(O,q,B,$){let ce=function zi(O){if(Hi(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[ce,ye=1,ge=1]=O.split("-").map(tt=>+tt);return dt(ce,ye-1,ge)}const B=parseFloat(O);if(!isNaN(O-B))return new Date(B);let $;if($=O.match(er))return function Ne(O){const q=new Date(0);let B=0,$=0;const ce=O[8]?q.setUTCFullYear:q.setFullYear,ye=O[8]?q.setUTCHours:q.setHours;O[9]&&(B=Number(O[9]+O[10]),$=Number(O[9]+O[11])),ce.call(q,Number(O[1]),Number(O[2])-1,Number(O[3]));const ge=Number(O[4]||0)-B,tt=Number(O[5]||0)-$,pi=Number(O[6]||0),Kt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return ye.call(q,ge,tt,pi,Kt),q}($)}const q=new Date(O);if(!Hi(q))throw new Error(`Unable to convert "${O}" into a date`);return q}(O);q=vt(B,q)||q;let tt,ge=[];for(;q;){if(tt=Se.exec(q),!tt){ge.push(q);break}{ge=ge.concat(tt.slice(1));const Zt=ge.pop();if(!Zt)break;q=Zt}}let pi=ce.getTimezoneOffset();$&&(pi=fs($,pi),ce=function Ni(O,q,B){const $=B?-1:1,ce=O.getTimezoneOffset();return function ti(O,q){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+q),O}(O,$*(fs(q,ce)-ce))}(ce,$,!0));let Kt="";return ge.forEach(Zt=>{const Ft=function fd(O){if(ea[O])return ea[O];let q;switch(O){case"G":case"GG":case"GGG":q=mt(de.Eras,fe.Abbreviated);break;case"GGGG":q=mt(de.Eras,fe.Wide);break;case"GGGGG":q=mt(de.Eras,fe.Narrow);break;case"y":q=Tt(te.FullYear,1,0,!1,!0);break;case"yy":q=Tt(te.FullYear,2,0,!0,!0);break;case"yyy":q=Tt(te.FullYear,3,0,!1,!0);break;case"yyyy":q=Tt(te.FullYear,4,0,!1,!0);break;case"Y":q=tr(1);break;case"YY":q=tr(2,!0);break;case"YYY":q=tr(3);break;case"YYYY":q=tr(4);break;case"M":case"L":q=Tt(te.Month,1,1);break;case"MM":case"LL":q=Tt(te.Month,2,1);break;case"MMM":q=mt(de.Months,fe.Abbreviated);break;case"MMMM":q=mt(de.Months,fe.Wide);break;case"MMMMM":q=mt(de.Months,fe.Narrow);break;case"LLL":q=mt(de.Months,fe.Abbreviated,ue.Standalone);break;case"LLLL":q=mt(de.Months,fe.Wide,ue.Standalone);break;case"LLLLL":q=mt(de.Months,fe.Narrow,ue.Standalone);break;case"w":q=fr(1);break;case"ww":q=fr(2);break;case"W":q=fr(1,!0);break;case"d":q=Tt(te.Date,1);break;case"dd":q=Tt(te.Date,2);break;case"c":case"cc":q=Tt(te.Day,1);break;case"ccc":q=mt(de.Days,fe.Abbreviated,ue.Standalone);break;case"cccc":q=mt(de.Days,fe.Wide,ue.Standalone);break;case"ccccc":q=mt(de.Days,fe.Narrow,ue.Standalone);break;case"cccccc":q=mt(de.Days,fe.Short,ue.Standalone);break;case"E":case"EE":case"EEE":q=mt(de.Days,fe.Abbreviated);break;case"EEEE":q=mt(de.Days,fe.Wide);break;case"EEEEE":q=mt(de.Days,fe.Narrow);break;case"EEEEEE":q=mt(de.Days,fe.Short);break;case"a":case"aa":case"aaa":q=mt(de.DayPeriods,fe.Abbreviated);break;case"aaaa":q=mt(de.DayPeriods,fe.Wide);break;case"aaaaa":q=mt(de.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":q=mt(de.DayPeriods,fe.Abbreviated,ue.Standalone,!0);break;case"bbbb":q=mt(de.DayPeriods,fe.Wide,ue.Standalone,!0);break;case"bbbbb":q=mt(de.DayPeriods,fe.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":q=mt(de.DayPeriods,fe.Abbreviated,ue.Format,!0);break;case"BBBB":q=mt(de.DayPeriods,fe.Wide,ue.Format,!0);break;case"BBBBB":q=mt(de.DayPeriods,fe.Narrow,ue.Format,!0);break;case"h":q=Tt(te.Hours,1,-12);break;case"hh":q=Tt(te.Hours,2,-12);break;case"H":q=Tt(te.Hours,1);break;case"HH":q=Tt(te.Hours,2);break;case"m":q=Tt(te.Minutes,1);break;case"mm":q=Tt(te.Minutes,2);break;case"s":q=Tt(te.Seconds,1);break;case"ss":q=Tt(te.Seconds,2);break;case"S":q=Tt(te.FractionalSeconds,1);break;case"SS":q=Tt(te.FractionalSeconds,2);break;case"SSS":q=Tt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=pt(ae.Short);break;case"ZZZZZ":q=pt(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=pt(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=pt(ae.Long);break;default:return null}return ea[O]=q,q}(Zt);Kt+=Ft?Ft(ce,B,pi):"''"===Zt?"'":Zt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kt}function dt(O,q,B){const $=new Date(0);return $.setFullYear(O,q,B),$.setHours(0,0,0),$}function vt(O,q){const B=function je(O){return(0,C.cg1)(O)[C.wAp.LocaleId]}(O);if(Wt[B]=Wt[B]||{},Wt[B][q])return Wt[B][q];let $="";switch(q){case"shortDate":$=ze(O,Ce.Short);break;case"mediumDate":$=ze(O,Ce.Medium);break;case"longDate":$=ze(O,Ce.Long);break;case"fullDate":$=ze(O,Ce.Full);break;case"shortTime":$=ri(O,Ce.Short);break;case"mediumTime":$=ri(O,Ce.Medium);break;case"longTime":$=ri(O,Ce.Long);break;case"fullTime":$=ri(O,Ce.Full);break;case"short":const ce=vt(O,"shortTime"),ye=vt(O,"shortDate");$=et(hr(O,Ce.Short),[ce,ye]);break;case"medium":const ge=vt(O,"mediumTime"),tt=vt(O,"mediumDate");$=et(hr(O,Ce.Medium),[ge,tt]);break;case"long":const pi=vt(O,"longTime"),Kt=vt(O,"longDate");$=et(hr(O,Ce.Long),[pi,Kt]);break;case"full":const Zt=vt(O,"fullTime"),Ft=vt(O,"fullDate");$=et(hr(O,Ce.Full),[Zt,Ft])}return $&&(Wt[B][q]=$),$}function et(O,q){return q&&(O=O.replace(/\{([^}]+)}/g,function(B,$){return null!=q&&$ in q?q[$]:B})),O}function ht(O,q,B="-",$,ce){let ye="";(O<0||ce&&O<=0)&&(ce?O=1-O:(O=-O,ye=B));let ge=String(O);for(;ge.length0||tt>-B)&&(tt+=B),O===te.Hours)0===tt&&-12===B&&(tt=12);else if(O===te.FractionalSeconds)return function Ei(O,q){return ht(O,3).substring(0,q)}(tt,q);const pi=vi(ge,_e.MinusSign);return ht(tt,q,pi,$,ce)}}function mt(O,q,B=ue.Format,$=!1){return function(ce,ye){return function $t(O,q,B,$,ce,ye){switch(B){case de.Months:return function ni(O,q,B){const $=(0,C.cg1)(O),ye=Ui([$[C.wAp.MonthsFormat],$[C.wAp.MonthsStandalone]],q);return Ui(ye,B)}(q,ce,$)[O.getMonth()];case de.Days:return function It(O,q,B){const $=(0,C.cg1)(O),ye=Ui([$[C.wAp.DaysFormat],$[C.wAp.DaysStandalone]],q);return Ui(ye,B)}(q,ce,$)[O.getDay()];case de.DayPeriods:const ge=O.getHours(),tt=O.getMinutes();if(ye){const Kt=function ps(O){const q=(0,C.cg1)(O);return Pr(q),(q[C.wAp.ExtraData][2]||[]).map($=>"string"==typeof $?pr($):[pr($[0]),pr($[1])])}(q),Zt=function Zs(O,q,B){const $=(0,C.cg1)(O);Pr($);const ye=Ui([$[C.wAp.ExtraData][0],$[C.wAp.ExtraData][1]],q)||[];return Ui(ye,B)||[]}(q,ce,$),Ft=Kt.findIndex(at=>{if(Array.isArray(at)){const[gi,Ti]=at,Me=ge>=gi.hours&&tt>=gi.minutes,Ht=ge0?Math.floor(ce/60):Math.ceil(ce/60);switch(O){case ae.Short:return(ce>=0?"+":"")+ht(ge,2,ye)+ht(Math.abs(ce%60),2,ye);case ae.ShortGMT:return"GMT"+(ce>=0?"+":"")+ht(ge,1,ye);case ae.Long:return"GMT"+(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);case ae.Extended:return 0===$?"Z":(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);default:throw new Error(`Unknown zone width "${O}"`)}}}function Rr(O){return dt(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function fr(O,q=!1){return function(B,$){let ce;if(q){const ye=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,ge=B.getDate();ce=1+Math.floor((ge+ye)/7)}else{const ye=Rr(B),ge=function Vi(O){const q=dt(O,0,1).getDay();return dt(O,0,1+(q<=4?4:11)-q)}(ye.getFullYear()),tt=ye.getTime()-ge.getTime();ce=1+Math.round(tt/6048e5)}return ht(ce,O,vi($,_e.MinusSign))}}function tr(O,q=!1){return function(B,$){return ht(Rr(B).getFullYear(),O,vi($,_e.MinusSign),q)}}const ea={};function fs(O,q){O=O.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(B)?q:B}function Hi(O){return O instanceof Date&&!isNaN(O.valueOf())}function md(O,q){q=encodeURIComponent(q);for(const B of O.split(";")){const $=B.indexOf("="),[ce,ye]=-1==$?[B,""]:[B.slice(0,$),B.slice($+1)];if(ce.trim()===q)return decodeURIComponent(ye)}return null}let $l=(()=>{class O{constructor(B,$,ce,ye){this._iterableDiffers=B,this._keyValueDiffers=$,this._ngEl=ce,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachChangedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachRemovedItem($=>{$.previousValue&&this._toggleClass($.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem($=>{if("string"!=typeof $.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,C.AaK)($.item)}`);this._toggleClass($.item,!0)}),B.forEachRemovedItem($=>this._toggleClass($.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!0)):Object.keys(B).forEach($=>this._toggleClass($,!!B[$])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!1)):Object.keys(B).forEach($=>this._toggleClass($,!1)))}_toggleClass(B,$){(B=B.trim())&&B.split(/\s+/g).forEach(ce=>{$?this._renderer.addClass(this._ngEl.nativeElement,ce):this._renderer.removeClass(this._ngEl.nativeElement,ce)})}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class ia{constructor(q,B,$,ce){this.$implicit=q,this.ngForOf=B,this.index=$,this.count=ce}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 Nn=(()=>{class O{constructor(B,$,ce){this._viewContainer=B,this._template=$,this._differs=ce,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const $=this._viewContainer;B.forEachOperation((ce,ye,ge)=>{if(null==ce.previousIndex)$.createEmbeddedView(this._template,new ia(ce.item,this._ngForOf,-1,-1),null===ge?void 0:ge);else if(null==ge)$.remove(null===ye?void 0:ye);else if(null!==ye){const tt=$.get(ye);$.move(tt,ge),nn(tt,ce)}});for(let ce=0,ye=$.length;ce{nn($.get(ce.currentIndex),ce)})}static ngTemplateContextGuard(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function nn(O,q){O.context.$implicit=q.item}let gn=(()=>{class O{constructor(B,$){this._viewContainer=B,this._context=new Yn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){na("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){na("ngIfElse",B),this._elseTemplateRef=B,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(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class Yn{constructor(){this.$implicit=null,this.ngIf=null}}function na(O,q){if(q&&!q.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,C.AaK)(q)}'.`)}class ka{constructor(q,B){this._viewContainerRef=q,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(q){q&&!this._created?this.create():!q&&this._created&&this.destroy()}}let Pa=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const $=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let $=0;${class O{constructor(B,$,ce){this.ngSwitch=ce,ce._addCase(),this._view=new ka(B,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Pa,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),gs=(()=>{class O{constructor(B,$,ce){ce._addDefault(new ka(B,$))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Pa,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchDefault",""]],standalone:!0}),O})(),Ir=(()=>{class O{constructor(B,$,ce){this._ngEl=B,this._differs=$,this._renderer=ce,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,$){const[ce,ye]=B.split("."),ge=-1===ce.indexOf("-")?void 0:C.JOm.DashCase;null!=$?this._renderer.setStyle(this._ngEl.nativeElement,ce,ye?`${$}${ye}`:$,ge):this._renderer.removeStyle(this._ngEl.nativeElement,ce,ge)}_applyChanges(B){B.forEachRemovedItem($=>this._setStyle($.key,null)),B.forEachAddedItem($=>this._setStyle($.key,$.currentValue)),B.forEachChangedItem($=>this._setStyle($.key,$.currentValue))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),Ou=(()=>{class O{constructor(B){this._viewContainerRef=B,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(B){if(B.ngTemplateOutlet||B.ngTemplateOutletInjector){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ce,ngTemplateOutletContext:ye,ngTemplateOutletInjector:ge}=this;this._viewRef=$.createEmbeddedView(ce,ye,ge?{injector:ge}:void 0)}else this._viewRef=null}else this._viewRef&&B.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[C.TTD]}),O})();function mr(O,q){return new C.vHH(2100,!1)}class Rp{createSubscription(q,B){return q.subscribe({next:B,error:$=>{throw $}})}dispose(q){q.unsubscribe()}}class Lp{createSubscription(q,B){return q.then(B,$=>{throw $})}dispose(q){}}const Ip=new Lp,Op=new Rp;let Bu=(()=>{class O{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,$=>this._updateLatestValue(B,$))}_selectStrategy(B){if((0,C.QGY)(B))return Ip;if((0,C.F4k)(B))return Op;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,$){B===this._obj&&(this._latestValue=$,this._ref.markForCheck())}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.sBO,16))},O.\u0275pipe=C.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})();const Fp=new C.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Go=(()=>{class O{constructor(B,$){this.locale=B,this.defaultTimezone=$}transform(B,$="mediumDate",ce,ye){if(null==B||""===B||B!=B)return null;try{return ke(B,$,ye||this.locale,ce??this.defaultTimezone??void 0)}catch(ge){throw mr()}}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.soG,16),C.Y36(Fp,24))},O.\u0275pipe=C.Yjl({name:"date",type:O,pure:!0,standalone:!0}),O})(),ir=(()=>{class O{}return O.\u0275fac=function(B){return new(B||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({}),O})();const yi="browser";function qo(O){return O===yi}let _r=(()=>{class O{}return O.\u0275prov=(0,C.Yz7)({token:O,providedIn:"root",factory:()=>new Et((0,C.LFG)(L),window)}),O})();class Et{constructor(q,B){this.document=q,this.window=B,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(q){this.supportsScrolling()&&this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){if(!this.supportsScrolling())return;const B=function rr(O,q){const B=O.getElementById(q)||O.getElementsByName(q)[0];if(B)return B;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const $=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let ce=$.currentNode;for(;ce;){const ye=ce.shadowRoot;if(ye){const ge=ye.getElementById(q)||ye.querySelector(`[name="${q}"]`);if(ge)return ge}ce=$.nextNode()}}return null}(this.document,q);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(q){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=q)}}scrollToElement(q){const B=q.getBoundingClientRect(),$=B.left+this.window.pageXOffset,ce=B.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo($-ye[0],ce-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const q=rn(this.window.history)||rn(Object.getPrototypeOf(this.window.history));return!(!q||!q.writable&&!q.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function rn(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Bt{}},529:(Y,z,M)=>{"use strict";M.d(z,{JF:()=>zo,LE:()=>Ae,TP:()=>It,WM:()=>J,Zn:()=>Ce,eN:()=>je,qT:()=>Ze});var C=M(6895),i=M(4650),D=M(9646),x=M(9751),S=M(4351),P=M(9300),L=M(4004);class j{}class U{}class J{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(te=>{const de=te.indexOf(":");if(de>0){const ke=te.slice(0,de),dt=ke.toLowerCase(),vt=te.slice(de+1).trim();this.maybeSetNormalizedName(ke,dt),this.headers.has(dt)?this.headers.get(dt).push(vt):this.headers.set(dt,[vt])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(te=>{let de=ae[te];const ke=te.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(ke,de),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const te=this.headers.get(ae.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,te){return this.clone({name:ae,value:te,op:"a"})}set(ae,te){return this.clone({name:ae,value:te,op:"s"})}delete(ae,te){return this.clone({name:ae,value:te,op:"d"})}maybeSetNormalizedName(ae,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ae)}init(){this.lazyInit&&(this.lazyInit instanceof J?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(te=>{this.headers.set(te,ae.headers.get(te)),this.normalizedNames.set(te,ae.normalizedNames.get(te))})}clone(ae){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),te}applyUpdate(ae){const te=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let de=ae.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(ae.name,te);const ke=("a"===ae.op?this.headers.get(te):void 0)||[];ke.push(...de),this.headers.set(te,ke);break;case"d":const dt=ae.value;if(dt){let vt=this.headers.get(te);if(!vt)return;vt=vt.filter(et=>-1===dt.indexOf(et)),0===vt.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,vt)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ae(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(ae){return me(ae)}encodeValue(ae){return me(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(Se){return encodeURIComponent(Se).replace(re,(ae,te)=>ie[te]??ae)}function be(Se){return`${Se}`}class Ae{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new ne,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Se,ae){const te=new Map;return Se.length>0&&Se.replace(/^\?/,"").split("&").forEach(ke=>{const dt=ke.indexOf("="),[vt,et]=-1==dt?[ae.decodeKey(ke),""]:[ae.decodeKey(ke.slice(0,dt)),ae.decodeValue(ke.slice(dt+1))],ht=te.get(vt)||[];ht.push(et),te.set(vt,ht)}),te}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(te=>{const de=ae.fromObject[te],ke=Array.isArray(de)?de.map(be):[be(de)];this.map.set(te,ke)})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const te=this.map.get(ae);return te?te[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,te){return this.clone({param:ae,value:te,op:"a"})}appendAll(ae){const te=[];return Object.keys(ae).forEach(de=>{const ke=ae[de];Array.isArray(ke)?ke.forEach(dt=>{te.push({param:de,value:dt,op:"a"})}):te.push({param:de,value:ke,op:"a"})}),this.clone(te)}set(ae,te){return this.clone({param:ae,value:te,op:"s"})}delete(ae,te){return this.clone({param:ae,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const te=this.encoder.encodeKey(ae);return this.map.get(ae).map(de=>te+"="+this.encoder.encodeValue(de)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const te=new Ae({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ae),te}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 te=("a"===ae.op?this.map.get(ae.param):void 0)||[];te.push(be(ae.value)),this.map.set(ae.param,te);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let de=this.map.get(ae.param)||[];const ke=de.indexOf(be(ae.value));-1!==ke&&de.splice(ke,1),de.length>0?this.map.set(ae.param,de):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(ae,te){return this.map.set(ae,te),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 ve(Se){return typeof ArrayBuffer<"u"&&Se instanceof ArrayBuffer}function xe(Se){return typeof Blob<"u"&&Se instanceof Blob}function lt(Se){return typeof FormData<"u"&&Se instanceof FormData}class Oe{constructor(ae,te,de,ke){let dt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Ee(Se){switch(Se){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==de?de:null,dt=ke):dt=de,dt&&(this.reportProgress=!!dt.reportProgress,this.withCredentials=!!dt.withCredentials,dt.responseType&&(this.responseType=dt.responseType),dt.headers&&(this.headers=dt.headers),dt.context&&(this.context=dt.context),dt.params&&(this.params=dt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Ze),this.params){const vt=this.params.toString();if(0===vt.length)this.urlWithParams=te;else{const et=te.indexOf("?");this.urlWithParams=te+(-1===et?"?":etSn.set(mt,ae.setHeaders[mt]),ht)),ae.setParams&&(Ei=Object.keys(ae.setParams).reduce((Sn,mt)=>Sn.set(mt,ae.setParams[mt]),Ei)),new Oe(te,de,dt,{params:Ei,headers:ht,context:Tt,reportProgress:et,responseType:ke,withCredentials:vt})}}var Le=(()=>((Le=Le||{})[Le.Sent=0]="Sent",Le[Le.UploadProgress=1]="UploadProgress",Le[Le.ResponseHeader=2]="ResponseHeader",Le[Le.DownloadProgress=3]="DownloadProgress",Le[Le.Response=4]="Response",Le[Le.User=5]="User",Le))();class ue{constructor(ae,te=200,de="OK"){this.headers=ae.headers||new J,this.status=void 0!==ae.status?ae.status:te,this.statusText=ae.statusText||de,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends ue{constructor(ae={}){super(ae),this.type=Le.ResponseHeader}clone(ae={}){return new fe({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 ue{constructor(ae={}){super(ae),this.type=Le.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 _e extends ue{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 Ue(Se,ae){return{body:ae,headers:Se.headers,context:Se.context,observe:Se.observe,params:Se.params,reportProgress:Se.reportProgress,responseType:Se.responseType,withCredentials:Se.withCredentials}}let je=(()=>{class Se{constructor(te){this.handler=te}request(te,de,ke={}){let dt;if(te instanceof Oe)dt=te;else{let ht,Ei;ht=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(Ei=ke.params instanceof Ae?ke.params:new Ae({fromObject:ke.params})),dt=new Oe(te,de,void 0!==ke.body?ke.body:null,{headers:ht,context:ke.context,params:Ei,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const vt=(0,D.of)(dt).pipe((0,S.b)(ht=>this.handler.handle(ht)));if(te instanceof Oe||"events"===ke.observe)return vt;const et=vt.pipe((0,P.h)(ht=>ht instanceof Ce));switch(ke.observe||"body"){case"body":switch(dt.responseType){case"arraybuffer":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ht.body}));case"blob":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof Blob))throw new Error("Response is not a Blob.");return ht.body}));case"text":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&"string"!=typeof ht.body)throw new Error("Response is not a string.");return ht.body}));default:return et.pipe((0,L.U)(ht=>ht.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,de={}){return this.request("DELETE",te,de)}get(te,de={}){return this.request("GET",te,de)}head(te,de={}){return this.request("HEAD",te,de)}jsonp(te,de){return this.request("JSONP",te,{params:(new Ae).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,de={}){return this.request("OPTIONS",te,de)}patch(te,de,ke={}){return this.request("PATCH",te,Ue(ke,de))}post(te,de,ke={}){return this.request("POST",te,Ue(ke,de))}put(te,de,ke={}){return this.request("PUT",te,Ue(ke,de))}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(j))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class At{constructor(ae,te){this.next=ae,this.interceptor=te}handle(ae){return this.interceptor.intercept(ae,this.next)}}const It=new i.OlP("HTTP_INTERCEPTORS");let ni=(()=>{class Se{intercept(te,de){return de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Ws=/^\)\]\}',?\n/;let $s=(()=>{class Se{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(de=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach(($t,pt)=>ke.setRequestHeader($t,pt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const $t=te.detectContentTypeHeader();null!==$t&&ke.setRequestHeader("Content-Type",$t)}if(te.responseType){const $t=te.responseType.toLowerCase();ke.responseType="json"!==$t?$t:"text"}const dt=te.serializeBody();let vt=null;const et=()=>{if(null!==vt)return vt;const $t=ke.statusText||"OK",pt=new J(ke.getAllResponseHeaders()),Fn=function pd(Se){return"responseURL"in Se&&Se.responseURL?Se.responseURL:/^X-Request-URL:/m.test(Se.getAllResponseHeaders())?Se.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return vt=new fe({headers:pt,status:ke.status,statusText:$t,url:Fn}),vt},ht=()=>{let{headers:$t,status:pt,statusText:Fn,url:Xr}=et(),Vi=null;204!==pt&&(Vi=typeof ke.response>"u"?ke.responseText:ke.response),0===pt&&(pt=Vi?200:0);let Rr=pt>=200&&pt<300;if("json"===te.responseType&&"string"==typeof Vi){const fr=Vi;Vi=Vi.replace(Ws,"");try{Vi=""!==Vi?JSON.parse(Vi):null}catch(tr){Vi=fr,Rr&&(Rr=!1,Vi={error:tr,text:Vi})}}Rr?(de.next(new Ce({body:Vi,headers:$t,status:pt,statusText:Fn,url:Xr||void 0})),de.complete()):de.error(new _e({error:Vi,headers:$t,status:pt,statusText:Fn,url:Xr||void 0}))},Ei=$t=>{const{url:pt}=et(),Fn=new _e({error:$t,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:pt||void 0});de.error(Fn)};let Tt=!1;const Sn=$t=>{Tt||(de.next(et()),Tt=!0);let pt={type:Le.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),"text"===te.responseType&&!!ke.responseText&&(pt.partialText=ke.responseText),de.next(pt)},mt=$t=>{let pt={type:Le.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),de.next(pt)};return ke.addEventListener("load",ht),ke.addEventListener("error",Ei),ke.addEventListener("timeout",Ei),ke.addEventListener("abort",Ei),te.reportProgress&&(ke.addEventListener("progress",Sn),null!==dt&&ke.upload&&ke.upload.addEventListener("progress",mt)),ke.send(dt),de.next({type:Le.Sent}),()=>{ke.removeEventListener("error",Ei),ke.removeEventListener("abort",Ei),ke.removeEventListener("load",ht),ke.removeEventListener("timeout",Ei),te.reportProgress&&(ke.removeEventListener("progress",Sn),null!==dt&&ke.upload&&ke.upload.removeEventListener("progress",mt)),ke.readyState!==ke.DONE&&ke.abort()}})}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.JF))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const kr=new i.OlP("XSRF_COOKIE_NAME"),Pr=new i.OlP("XSRF_HEADER_NAME");class ps{}let Zs=(()=>{class Se{constructor(te,de,ke){this.doc=te,this.platform=de,this.cookieName=ke,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,C.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.K0),i.LFG(i.Lbi),i.LFG(kr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ct=(()=>{class Se{constructor(te,de){this.tokenService=te,this.headerName=de}intercept(te,de){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return de.handle(te);const dt=this.tokenService.getToken();return null!==dt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,dt)})),de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(ps),i.LFG(Pr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Ui=(()=>{class Se{constructor(te,de){this.backend=te,this.injector=de,this.chain=null}handle(te){if(null===this.chain){const de=this.injector.get(It,[]);this.chain=de.reduceRight((ke,dt)=>new At(ke,dt),this.backend)}return this.chain.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(U),i.LFG(i.zs3))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),en=(()=>{class Se{static disable(){return{ngModule:Se,providers:[{provide:ct,useClass:ni}]}}static withOptions(te={}){return{ngModule:Se,providers:[te.cookieName?{provide:kr,useValue:te.cookieName}:[],te.headerName?{provide:Pr,useValue:te.headerName}:[]]}}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[ct,{provide:It,useExisting:ct,multi:!0},{provide:ps,useClass:Zs},{provide:kr,useValue:"XSRF-TOKEN"},{provide:Pr,useValue:"X-XSRF-TOKEN"}]}),Se})(),zo=(()=>{class Se{}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[je,{provide:j,useClass:Ui},$s,{provide:U,useExisting:$s}],imports:[en.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Se})()},4650:(Y,z,M)=>{"use strict";M.d(z,{$8M:()=>oc,$Z:()=>gb,AFp:()=>Dg,ALo:()=>ow,AaK:()=>j,AsE:()=>Ii,BQk:()=>gm,CHM:()=>_n,CRH:()=>oM,CZH:()=>td,CqO:()=>Jb,D6c:()=>SD,DdM:()=>nw,Dn7:()=>lw,EJc:()=>wt,EiD:()=>A_,EpF:()=>Ic,F$t:()=>ty,F4k:()=>Wh,FYo:()=>EA,FiY:()=>po,G48:()=>mD,Gf:()=>fw,GfV:()=>PA,GkF:()=>Gh,Gpc:()=>Q,Gre:()=>Rm,Hsn:()=>iy,Ikx:()=>lu,JOm:()=>Hs,JVY:()=>cA,Jf7:()=>GA,KtG:()=>Br,L6k:()=>dA,LAX:()=>ff,LFG:()=>Ri,LSH:()=>Af,Lbi:()=>Lw,Lck:()=>kT,MAs:()=>fm,MMx:()=>up,NdJ:()=>_m,O4$:()=>Uu,OlP:()=>ei,Oqu:()=>rs,PXZ:()=>Kn,Q6J:()=>Pe,QGY:()=>qh,QP$:()=>ss,QbO:()=>Hg,Qsj:()=>HA,R0b:()=>Jn,RDi:()=>I,Rgc:()=>Ro,SBq:()=>lr,Sil:()=>Cp,Suo:()=>mw,TTD:()=>ki,TgZ:()=>_t,Tol:()=>Tm,Udp:()=>vm,VKq:()=>rw,W1O:()=>yg,WFA:()=>bm,WLB:()=>aw,XFs:()=>ct,Xpm:()=>Fn,Xts:()=>Tf,Y36:()=>vc,YKP:()=>sg,YNc:()=>yt,Yjl:()=>fs,Yz7:()=>ri,ZZ4:()=>eC,_Bn:()=>ag,_UZ:()=>Lc,_Vd:()=>Wr,_c5:()=>MD,_uU:()=>ln,aQg:()=>tC,c2e:()=>kg,cJS:()=>vi,cg1:()=>Hy,d8E:()=>Nc,dDg:()=>MM,dqk:()=>de,eBb:()=>uA,eFA:()=>Oo,ekj:()=>Fc,eoX:()=>Bg,f3M:()=>ch,g9A:()=>Eg,h0i:()=>qc,hGG:()=>xD,hij:()=>Qh,iGM:()=>pw,ifc:()=>te,ip1:()=>Fs,kL8:()=>lT,kcU:()=>zu,lG2:()=>fd,lcZ:()=>gu,lqb:()=>An,lri:()=>jw,mCW:()=>Nd,n5z:()=>Ed,n_E:()=>Po,oAB:()=>fr,oJD:()=>v_,oxw:()=>ey,pB0:()=>__,q3G:()=>Wi,qLn:()=>Sh,qOj:()=>Nh,qZA:()=>mm,qzn:()=>ol,rWj:()=>Er,s9C:()=>ym,sBO:()=>_D,sIi:()=>ru,s_b:()=>yu,soG:()=>Pg,tb:()=>yp,tp0:()=>Ds,uIk:()=>Rs,vHH:()=>ie,vpe:()=>Bs,wAp:()=>ft,xDo:()=>Kh,xi3:()=>hg,xp6:()=>Vf,ynx:()=>Rn,z2F:()=>jg,z3N:()=>Wa,zSh:()=>cl,zs3:()=>Ja});var C=M(7579),i=M(727),D=M(9751),x=M(6451),S=M(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function j(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(j).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 U(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return j(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function me(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function be(p){return"string"==typeof p?p:null==p?"":String(p)}function ve(p,m){throw new ie(-201,!1)}function ni(p,m){null==p&&function Je(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function vi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Kr(p){return Wl(p,kr)||Wl(p,ps)}function Wl(p,m){return p.hasOwnProperty(m)?p[m]:null}function $s(p){return p&&(p.hasOwnProperty(Pr)||p.hasOwnProperty(Zs))?p[Pr]:null}const kr=P({\u0275prov:P}),Pr=P({\u0275inj:P}),ps=P({ngInjectableDef:P}),Zs=P({ngInjectorDef:P});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let Ui;function Qt(p){const m=Ui;return Ui=p,m}function en(p,m,g){const _=Kr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&ct.Optional?null:void 0!==m?m:void ve(j(p))}function er(p){return{toString:p}.toString()}var Wt=(()=>((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),vt={},et=[],ht=P({\u0275cmp:P}),Ei=P({\u0275dir:P}),Tt=P({\u0275pipe:P}),Sn=P({\u0275mod:P}),mt=P({\u0275fac:P}),$t=P({__NG_ELEMENT_ID__:P});let pt=0;function Fn(p){return er(()=>{const g=!0===p.standalone,_={},y={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||et,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+pt++,styles:p.styles||et,_:null,setInput:null,schemas:p.schemas||null,tView:null},v=p.dependencies,E=p.features;return y.inputs=ea(p.inputs,_),y.outputs=ea(p.outputs),E&&E.forEach(k=>k(y)),y.directiveDefs=v?()=>("function"==typeof v?v():v).map(Vi).filter(Rr):null,y.pipeDefs=v?()=>("function"==typeof v?v():v).map(zi).filter(Rr):null,y})}function Vi(p){return ti(p)||Ni(p)}function Rr(p){return null!==p}function fr(p){return er(()=>({type:p.type,bootstrap:p.bootstrap||et,declarations:p.declarations||et,imports:p.imports||et,exports:p.exports||et,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ea(p,m){if(null==p)return vt;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 fd=Fn;function fs(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function ti(p){return p[ht]||null}function Ni(p){return p[Ei]||null}function zi(p){return p[Tt]||null}function Ne(p,m){const g=p[Sn]||null;if(!g&&!0===m)throw new Error(`Type ${j(p)} does not have '\u0275mod' property.`);return g}function gn(p){return Array.isArray(p)&&"object"==typeof p[1]}function Yn(p){return Array.isArray(p)&&!0===p[1]}function na(p){return 0!=(8&p.flags)}function ka(p){return 2==(2&p.flags)}function Pa(p){return 1==(1&p.flags)}function Un(p){return null!==p.template}function gs(p){return 0!=(256&p[2])}function Ve(p,m){return p.hasOwnProperty(mt)?p[mt]:null}class De{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ki(){return eo}function eo(p){return p.type.prototype.ngOnChanges&&(p.setInput=La),Ra}function Ra(){const p=Or(this),m=p?.current;if(m){const g=p.previous;if(g===vt)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function La(p,m,g,_){const y=Or(p)||function gr(p,m){return p[Gi]=m}(p,{previous:vt,current:null}),v=y.current||(y.current={}),E=y.previous,k=this.declaredInputs[g],R=E[k];v[k]=new De(R&&R.currentValue,m,E===vt),p[_]=m}ki.ngInherit=!0;const Gi="__ngSimpleChanges__";function Or(p){return p[Gi]||null}function Qe(p){for(;Array.isArray(p);)p=p[0];return p}function _r(p,m){return Qe(m[p])}function Et(p,m){return Qe(m[p.index])}function rr(p,m){return p.data[m]}function Hn(p,m){return p[m]}function Bt(p,m){const g=m[p];return gn(g)?g:g[0]}function O(p){return 4==(4&p[2])}function q(p){return 64==(64&p[2])}function $(p,m){return null==m?null:p[m]}function ce(p){p[18]=0}function ye(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 ge={lFrame:ro(null),bindingsEnabled:!0};function at(){return ge.bindingsEnabled}function Me(){return ge.lFrame.lView}function Ht(){return ge.lFrame.tView}function _n(p){return ge.lFrame.contextLView=p,p[8]}function Br(p){return ge.lFrame.contextLView=null,p}function Mi(){let p=Ia();for(;null!==p&&64===p.type;)p=p.parent;return p}function Ia(){return ge.lFrame.currentTNode}function Xt(p,m){const g=ge.lFrame;g.currentTNode=p,g.isParent=m}function br(){return ge.lFrame.isParent}function bs(){ge.lFrame.isParent=!1}function Cn(){const p=ge.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Vr(){return ge.lFrame.bindingIndex}function ys(){return ge.lFrame.bindingIndex++}function yr(p){const m=ge.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Vt(p,m){const g=ge.lFrame;g.bindingIndex=g.bindingRootIndex=p,wd(m)}function wd(p){ge.lFrame.currentDirectiveIndex=p}function aa(p){const m=ge.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function ju(){return ge.lFrame.currentQueryIndex}function Ba(p){ge.lFrame.currentQueryIndex=p}function Cd(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function Nu(p,m,g){if(g&ct.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&ct.Host||(y=Cd(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=ge.lFrame=sa();return _.currentTNode=m,_.lView=p,!0}function no(p){const m=sa(),g=p[1];ge.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function sa(){const p=ge.lFrame,m=null===p?null:p.child;return null===m?ro(p):m}function ro(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 ws(){const p=ge.lFrame;return ge.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Yu=ws;function ao(){const p=ws();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 an(){return ge.lFrame.selectedIndex}function Fr(p){ge.lFrame.selectedIndex=p}function Pi(){const p=ge.lFrame;return rr(p.tView,p.selectedIndex)}function Uu(){ge.lFrame.currentNamespace="svg"}function zu(){!function Np(){ge.lFrame.currentNamespace=null}()}function Xl(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:F,ngOnDestroy:G}=v;E&&(p.contentHooks||(p.contentHooks=[])).push(-g,E),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=G&&(p.destroyHooks||(p.destroyHooks=[])).push(g,G)}}function so(p,m,g){Va(p,m,3,g)}function Cs(p,m,g,_){(3&p[2])===g&&Va(p,m,g,_)}function ec(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Va(p,m,g,_){const v=_??-1,E=m.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<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 wr{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function oa(p,m,g){let _=0;for(;_m){E=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let vd=!0;function Zo(p){const m=vd;return vd=p,m}let la=0;const zn={};function Jo(p,m){const g=Md(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Td(_.data,p),Td(m,null),Td(_.blueprint,null));const y=ic(p,m),v=p.injectorIndex;if(tc(y)){const E=Nr(y),k=ja(y,m),R=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[E+F]|R[E+F]}return m[v+8]=y,v}function Td(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Md(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ic(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=Gn(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function nc(p,m,g){!function Qu(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty($t)&&(_=g[$t]),null==_&&(_=g[$t]=la++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:co:m}(g);if("function"==typeof v){if(!Nu(m,p,_))return _&ct.Host?xd(y,0,_):Sd(m,g,_,y);try{const E=v(_);if(null!=E||_&ct.Optional)return E;ve()}finally{Yu()}}else if("number"==typeof v){let E=null,k=Md(p,m),R=-1,F=_&ct.Host?m[16][6]:null;for((-1===k||_&ct.SkipSelf)&&(R=-1===k?ic(p,m):m[k+8],-1!==R&&ac(_,!1)?(E=m[1],k=Nr(R),m=ja(R,m)):k=-1);-1!==k;){const G=m[1];if(Ko(v,k,G.data)){const X=rc(k,m,g,E,_,F);if(X!==zn)return X}R=m[k+8],-1!==R&&ac(_,m[1].data[k+8]===F)&&Ko(v,k,m)?(E=G,k=Nr(R),m=ja(R,m)):k=-1}}return y}function rc(p,m,g,_,y,v){const E=m[1],k=E.data[p+8],G=lo(k,E,g,null==_?ka(k)&&vd:_!=E&&0!=(3&k.type),y&ct.Host&&v===k);return null!==G?Ur(m,E,G,k):zn}function lo(p,m,g,_,y){const v=p.providerIndexes,E=m.data,k=1048575&v,R=p.directiveStart,G=v>>20,oe=y?k+G:p.directiveEnd;for(let pe=_?k:k+G;pe=R&&Te.type===g)return pe}if(y){const pe=E[R];if(pe&&Un(pe)&&pe.type===g)return R}return null}function Ur(p,m,g,_){let y=p[g];const v=m.data;if(function Gu(p){return p instanceof wr}(y)){const E=y;E.resolving&&function $e(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function Ae(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():be(p)}(v[g]));const k=Zo(E.canSeeViewProviders);E.resolving=!0;const R=E.injectImpl?Qt(E.injectImpl):null;Nu(p,_,ct.Default);try{y=p[g]=E.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Up(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const E=eo(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,E),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,E)}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!==R&&Qt(R),Zo(k),E.resolving=!1,Yu()}}return y}function Ko(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[mt]||sc(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[mt]||sc(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function sc(p){return le(p)?()=>{const m=sc(ne(p));return m&&m()}:Ve(p)}function Gn(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function oc(p){return function Ku(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($u(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}(Mi(),p)}const ca="__parameters__";function Na(p,m,g){return er(()=>{const _=function cc(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 E=new y(...v);return k.annotation=E,k;function k(R,F,G){const X=R.hasOwnProperty(ca)?R[ca]:Object.defineProperty(R,ca,{value:[]})[ca];for(;X.length<=G;)X.push(null);return(X[G]=X[G]||[]).push(E),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class ei{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=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ar(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?Ya(g,m):m(g))}function ih(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Pd(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ms(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function tf(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 Ld(p,m){const g=ho(p,m);if(g>=0)return p[1|g]}function ho(p,m){return function il(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),E=p[v<m?y=v:_=v+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return W}()?.createHTML(p)||p}function pa(p){return function or(){if(void 0===qi&&(qi=null,de.trustedTypes))try{qi=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return qi}()?.createHTML(p)||p}class sl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class aA extends sl{getTypeName(){return"HTML"}}class sA extends sl{getTypeName(){return"Style"}}class oA extends sl{getTypeName(){return"Script"}}class g_ extends sl{getTypeName(){return"URL"}}class pf extends sl{getTypeName(){return"ResourceURL"}}function Wa(p){return p instanceof sl?p.changingThisBreaksApplicationSecurity:p}function ol(p,m){const g=function lA(p){return p instanceof sl&&p.getTypeName()||null}(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 cA(p){return new aA(p)}function dA(p){return new sA(p)}function uA(p){return new oA(p)}function ff(p){return new g_(p)}function __(p){return new pf(p)}class mf{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class hA{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=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Nd(m.trim())).join(", ")),this.buf.push(" ",E,'="',wf(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();bf.hasOwnProperty(g)&&!Li.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(wf(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 m0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C_=/([^\#-~ |!])/g;function wf(p){return p.replace(/&/g,"&").replace(m0,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(C_,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function A_(p,m){let g=null;try{wh=wh||function _h(p){const m=new hA(p);return function pA(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new mf(m):m}(p);let _=m?String(m):"";g=wh.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=wh.getInertBodyElement(_)}while(_!==v);return we((new mo).sanitizeChildren(Cf(g)||g))}finally{if(g){const _=Cf(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Cf(p){return"content"in p&&function Ch(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Wi=(()=>((Wi=Wi||{})[Wi.NONE=0]="NONE",Wi[Wi.HTML=1]="HTML",Wi[Wi.STYLE=2]="STYLE",Wi[Wi.SCRIPT=3]="SCRIPT",Wi[Wi.URL=4]="URL",Wi[Wi.RESOURCE_URL=5]="RESOURCE_URL",Wi))();function v_(p){const m=Yd();return m?pa(m.sanitize(Wi.HTML,p)||""):ol(p,"HTML")?pa(Wa(p)):A_(function N(){return void 0!==H?H:typeof document<"u"?document:void 0}(),be(p))}function Af(p){const m=Yd();return m?m.sanitize(Wi.URL,p)||"":ol(p,"URL")?Wa(p):Nd(be(p))}function Yd(){const p=Me();return p&&p[12]}const Tf=new ei("ENVIRONMENT_INITIALIZER"),S_=new ei("INJECTOR",-1),CA=new ei("INJECTOR_DEF_TYPES");class Ah{get(m,g=nl){if(g===nl){const _=new Error(`NullInjectorError: No provider for ${j(m)}!`);throw _.name="NullInjectorError",_}return g}}function xi(...p){return{\u0275providers:AA(0,p)}}function AA(p,...m){const g=[],_=new Set;let y;return Ya(m,v=>{const E=v;vh(E,g,[],_)&&(y||(y=[]),y.push(E))}),void 0!==y&&ll(y,g),g}function ll(p,m){for(let g=0;g{m.push(v)})}}function vh(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,v=$s(p);const E=!v&&ti(p);if(v||E){if(E&&!E.standalone)return!1;y=p}else{const R=p.ngModule;if(v=$s(R),!v)return!1;y=R}const k=_.has(y);if(E){if(k)return!1;if(_.add(y),E.dependencies){const R="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const F of R)vh(F,m,g,_)}}else{if(!v)return!1;{if(null!=v.imports&&!k){let F;_.add(y);try{Ya(v.imports,G=>{vh(G,m,g,_)&&(F||(F=[]),F.push(G))})}finally{}void 0!==F&&ll(F,m)}if(!k){const F=Ve(y)||(()=>new y);m.push({provide:y,useFactory:F,deps:et},{provide:CA,useValue:y,multi:!0},{provide:Tf,useValue:()=>Ri(y),multi:!0})}const R=v.providers;null==R||k||Ya(R,G=>{m.push(G)})}}return y!==p&&void 0!==p.providers}const Ud=P({provide:String,useValue:P});function Mf(p){return null!==p&&"object"==typeof p&&Ud in p}function Ar(p){return"function"==typeof p}const cl=new ei("Set Injector scope."),gc={},TA={};let _c;function Es(){return void 0===_c&&(_c=new Ah),_c}class An{}class Th extends An{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,k_(m,E=>this.processProvider(E)),this.records.set(S_,$i(void 0,this)),y.has("environment")&&this.records.set(An,$i(void 0,this));const v=this.records.get(cl);null!=v&&"string"==typeof v.value&&this.scopes.add(v.value),this.injectorDefTypes=new Set(this.get(CA.multi,et,ct.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=da(this),_=Qt(void 0);try{return m()}finally{da(g),Qt(_)}}get(m,g=nl,_=ct.Default){this.assertNotDestroyed();const y=da(this),v=Qt(void 0);try{if(!(_&ct.SkipSelf)){let k=this.records.get(m);if(void 0===k){const R=function DA(p){return"function"==typeof p||"object"==typeof p&&p instanceof ei}(m)&&Kr(m);k=R&&this.injectableDefInScope(R)?$i(E_(m),gc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&ct.Self?Es():this.parent).get(m,g=_&ct.Optional&&g===nl?null:g)}catch(E){if("NullInjectorError"===E.name){if((E[sr]=E[sr]||[]).unshift(j(m)),y)throw E;return function sf(p,m,g,_){const y=p[sr];throw m[oh]&&y.unshift(m[oh]),p.message=function lf(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=j(m);if(Array.isArray(m))y=m.map(j).join(" -> ");else if("object"==typeof m){let v=[];for(let E in m)if(m.hasOwnProperty(E)){let k=m[E];v.push(E+":"+("string"==typeof k?JSON.stringify(k):j(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(sh,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[sr]=null,p}(E,m,"R3InjectorError",this.source)}throw E}finally{Qt(v),da(y)}}resolveInjectorInitializers(){const m=da(this),g=Qt(void 0);try{const _=this.get(Tf.multi,et,ct.Self);for(const y of _)y()}finally{da(m),Qt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(j(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=Ar(m=ne(m))?m:ne(m&&m.provide);const _=function H_(p){return Mf(p)?$i(void 0,p.useValue):$i(MA(p),gc)}(m);if(Ar(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=$i(void 0,gc,!0),y.factory=()=>Cr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===gc&&(g.value=TA,g.value=g.factory()),"object"==typeof g.value&&g.value&&function SA(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function E_(p){const m=Kr(p),g=null!==m?m.factory:Ve(p);if(null!==g)return g;if(p instanceof ei)throw new ie(204,!1);if(p instanceof Function)return function xf(p){const m=p.length;if(m>0)throw Ms(m,"?"),new ie(204,!1);const g=function Ws(p){const m=p&&(p[kr]||p[ps]);if(m){const g=function pd(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 ie(204,!1)}function MA(p,m,g){let _;if(Ar(p)){const y=ne(p);return Ve(y)||E_(y)}if(Mf(p))_=()=>ne(p.useValue);else if(function zd(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Cr(p.deps||[]));else if(function fa(p){return!(!p||!p.useExisting)}(p))_=()=>Ri(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function xA(p){return!!p.deps}(p))return Ve(y)||E_(y);_=()=>new y(...Cr(p.deps))}return _}function $i(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function _0(p){return!!p.\u0275providers}function k_(p,m){for(const g of p)Array.isArray(g)?k_(g,m):_0(g)?k_(g.\u0275providers,m):m(g)}class vn{}class xh{resolveComponentFactory(m){throw function Mh(p){const m=Error(`No component factory found for ${j(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Wr=(()=>{class p{}return p.NULL=new xh,p})();function Za(){return vr(Mi(),Me())}function vr(p,m){return new lr(Et(p,m))}let lr=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Za,p})();function b0(p){return p instanceof lr?p.nativeElement:p}class EA{}let HA=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function kA(){const p=Me(),g=Bt(Mi().index,p);return(gn(g)?g:p)[11]}(),p})(),y0=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class PA{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const w0=new PA("14.1.2"),P_={};function V_(p){return p.ngOriginalError}class Sh{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&V_(m);for(;g&&V_(g);)g=V_(g);return g||null}}const F_=new Map;let R0=0;const N_="__ngContext__";function qn(p,m){gn(m)?(p[N_]=m[20],function I0(p){F_.set(p[20],p)}(m)):p[N_]=m}function Dh(p){const m=p[N_];return"number"==typeof m?function VA(p){return F_.get(p)||null}(m):m||null}function Y_(p){const m=Dh(p);return m?gn(m)?m:m.lView:null}const Y0=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function GA(p){return p.ownerDocument.defaultView}function _o(p){return p instanceof Function?p():p}var Hs=(()=>((Hs=Hs||{})[Hs.Important=1]="Important",Hs[Hs.DashCase=2]="DashCase",Hs))();function z_(p,m){return undefined(p,m)}function Eh(p){const m=p[3];return Yn(m)?m[3]:m}function G_(p){return ZA(p[13])}function q_(p){return ZA(p[4])}function ZA(p){for(;null!==p&&!Yn(p);)p=p[4];return p}function Wd(p,m,g,_,y){if(null!=_){let v,E=!1;Yn(_)?v=_:gn(_)&&(E=!0,_=_[0]);const k=Qe(_);0===p&&null!==g?null==y?Fe(m,g,k):Ke(m,g,k,y||null,!0):1===p&&null!==g?Ke(m,g,k,y||null,!0):2===p?function eb(p,m,g){const _=ji(p,m);_&&function Q_(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,k,E):3===p&&m.destroyNode(k),null!=v&&function nb(p,m,g,_,y){const v=g[7];v!==Qe(g)&&Wd(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Pd(p,10+m);!function Q0(p,m){wc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const E=v[19];null!==E&&E.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Zi(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&wc(p,m,g,3,null,null),function eS(p){let m=p[13];if(!m)return dl(p[1],p);for(;m;){let g=null;if(gn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)gn(m)&&dl(m[1],m),m=m[3];null===m&&(m=p),gn(m)&&dl(m[1],m),g=m&&m[4]}m=g}}(m)}}function dl(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function ul(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const E=_[y=g[v+1]];g[v].call(E)}if(null!==_){for(let v=y+1;v<_.length;v++)(0,_[v])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&Yn(m[3])){g!==m[3]&&QA(g,m);const _=m[19];null!==_&&_.detachView(p)}!function FA(p){F_.delete(p[20])}(m)}}function Z_(p,m,g){return function J_(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===te.None||y===te.Emulated)return null}return Et(_,g)}(p,m.parent,g)}function Ke(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Fe(p,m,g){p.appendChild(m,g)}function Fi(p,m,g,_,y){null!==_?Ke(p,m,g,_,y):Fe(p,m,g)}function ji(p,m){return p.parentNode(m)}function K_(p,m,g){return X_(p,m,g)}let X_=function kf(p,m,g){return 40&p.type?Et(p,g):null};function Pf(p,m,g,_){const y=Z_(p,_,m),v=m[11],k=K_(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[X+1].toLowerCase();const pe=8&_?oe:null;if(pe&&-1!==XA(pe,F,0)||2&_&&F!==oe){if($r(_))return!1;E=!0}}}}else{if(!E&&!$r(_)&&!$r(R))return!1;if(E&&$r(R))continue;E=!1,_=R|1&_}}return $r(_)||E}function $r(p){return 0==(1&p)}function tv(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+="."+E:4&_&&(y+=" "+E);else""!==y&&!$r(E)&&(m+=sb(v,y),y=""),_=E,v=v||!$r(_);g++}return""!==y&&(m+=sb(v,y)),m}const kt={};function Vf(p){Ff(Ht(),Me(),an()+p,!1)}function Ff(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&so(m,v,g)}else{const v=p.preOrderHooks;null!==v&&Cs(m,v,0,g)}Fr(g)}function cv(p,m=null,g=null,_){const y=dv(p,m,g,_);return y.resolveInjectorInitializers(),y}function dv(p,m=null,g=null,_,y=new Set){const v=[g||et,xi(p)];return _=_||("object"==typeof p?void 0:j(p)),new Th(v,m||Es(),_||null,y)}let Ja=(()=>{class p{static create(g,_){if(Array.isArray(g))return cv({name:""},_,g,"");{const y=g.name??"";return cv({name:y},g.parent,g.providers,y)}}}return p.THROW_IF_NOT_FOUND=nl,p.NULL=new Ah,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Ri(S_)}),p.__NG_ELEMENT_ID__=-1,p})();function vc(p,m=ct.Default){const g=Me();return null===g?Ri(p,m):Qo(Mi(),g,ne(p),m)}function gb(){throw new Error("invalid")}function Rh(p,m){return p<<17|m<<2}function ma(p){return p>>17&32767}function ot(p){return 2|p}function yo(p){return(131068&p)>>2}function bb(p,m){return-131069&p|m<<2}function dr(p){return 1|p}function Kf(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Ff(p,m,22,!1),g(_,y)}finally{Fr(v)}}function _a(p,m,g){if(na(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)!=R&&k.push(R),k.push(_,y,E)}}function Ob(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Bb(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Vh(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&jb(g)}}function jb(p){for(let _=G_(p);null!==_;_=q_(_))for(let y=10;y<_.length;y++){const v=_[y];if(q(v))if(512&v[2]){const E=v[1];iu(E,v,E.template,v[8])}else v[5]>0&&jb(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&jb(y)}}function AS(p,m){const g=Bt(m,p),_=g[1];(function Bv(p,m){for(let g=m.length;gPromise.resolve(null))();function jv(p){return p[7]||(p[7]=[])}function Nv(p){return p.cleanup||(p.cleanup=[])}function Xa(p,m,g){return(null===p||Un(p))&&(g=function St(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function _l(p,m){const g=p[9],_=g?g.get(Sh,null):null;_&&_.handleError(m)}function Ub(p,m,g,_,y){for(let v=0;v-1&&(Df(m,_),Pd(g,_))}this._attachedToViewContainer=!1}Zi(this._lView[1],this._lView)}onDestroy(m){nm(this._lView[1],this._lView,null,m)}markForCheck(){gl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Nb(p,m,g){const _=m[10];_.begin&&_.begin();try{iu(p,m,p.template,g)}catch(y){throw _l(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function X0(p,m){wc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class TS extends jh{constructor(m){super(m),this._view=m}detectChanges(){Fv(this._view)}checkNoChanges(){}get context(){return null}}class nu extends Wr{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ti(m);return new yl(g,this.ngModule)}}function bl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class Yv{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,P_,_);return y!==P_||g===P_?y:this.parentInjector.get(m,g,_)}}class yl extends vn{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function av(p){return p.map(rv).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return bl(this.componentDef.inputs)}get outputs(){return bl(this.componentDef.outputs)}create(m,g,_,y){let v=(y=y||this.ngModule)instanceof An?y:y?.injector;v&&null!==this.componentDef.getStandaloneInjector&&(v=this.componentDef.getStandaloneInjector(v)||v);const E=v?new Yv(m,v):m,k=E.get(EA,null);if(null===k)throw new ie(407,!1);const R=E.get(y0,null),F=k.createRenderer(null,this.componentDef),G=this.componentDef.selectors[0][0]||"div",X=_?function Ka(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(F,_,this.componentDef.encapsulation):$_(k.createRenderer(null,this.componentDef),G,function Ao(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(G)),oe=this.componentDef.onPush?288:272,pe=function HS(p,m){return{components:[],scheduler:p||Y0,clean:vS,playerHandler:m||null,flags:0}}(),Te=im(0,null,null,1,0,null,null,null,null,null),Ie=Ih(null,Te,pe,oe,null,null,k,F,R,E,null);let qe,Xe;no(Ie);try{const bt=function ES(p,m,g,_,y,v){const E=g[1];g[22]=p;const R=Dc(E,22,2,"#host",null),F=R.mergedAttrs=m.hostAttrs;null!==F&&(om(R,F,!0),null!==p&&(oa(y,p,F),null!==R.classes&&Cc(y,p,R.classes),null!==R.styles&&rb(y,p,R.styles)));const G=_.createRenderer(p,m),X=Ih(g,tm(m),null,m.onPush?32:16,g[22],R,_,G,v||null,null,null);return E.firstCreatePass&&(nc(Jo(R,g),E,m.type),Bb(E,R),Vb(R,g.length,1)),wo(g,X),g[22]=X}(X,this.componentDef,Ie,k,F);if(X)if(_)oa(F,X,["ng-version",w0.full]);else{const{attrs:He,classes:ut}=function sv(p){const m=[],g=[];let _=1,y=2;for(;_0&&Cc(F,X,ut.join(" "))}if(Xe=rr(Te,22),void 0!==g){const He=Xe.projection=[];for(let ut=0;ut=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=$o(y.hostAttrs,g=$o(g,y.hostAttrs))}}(_)}function zb(p){return p===vt?{}:p===et?[]:p}function zv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Gb(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function cm(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let To=null;function Hc(){if(!To){const p=de.Symbol;if(p&&p.iterator)To=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(Qe(qt[_.index])):_.index;let ut=null;if(!k&&R&&(ut=function Jv(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof E&&(v+=2)}return null}(p,m,y,_.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=v,ut.__ngLastListenerFn__=v,pe=!1;else{v=Xb(_,m,X,v,!1);const qt=g.listen(Xe,y,v);oe.push(v,qt),G&&G.push(y,He,bt,bt+1)}}else v=Xb(_,m,X,v,!1);const Te=_.outputs;let Ie;if(pe&&null!==Te&&(Ie=Te[y])){const qe=Ie.length;if(qe)for(let Xe=0;Xe0;)m=m[15],p--;return m}(p,ge.lFrame.contextLView))[8]}(p)}function Qv(p,m){let g=null;const _=function nS(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 fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wa(p){return p.substring(fn.key,fn.keyEnd)}function eT(p,m){const g=fn.textEnd;return g===m?-1:(m=fn.keyEnd=function uy(p,m,g){for(;m32;)m++;return m}(p,fn.key=m,g),Bc(p,m,g))}function Bc(p,m,g){for(;m=0;g=eT(m,g))Pn(p,wa(m),!0)}function ns(p,m,g,_){const y=Me(),v=Ht(),E=yr(2);v.firstUpdatePass&&fy(v,p,E,_),m!==kt&&on(y,E,m)&&by(v,v.data[an()],y,y[11],p,y[E+1]=function So(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=j(Wa(p)))),p}(m,g),_,E)}function Sr(p,m,g,_){const y=Ht(),v=yr(2);y.firstUpdatePass&&fy(y,null,v,_);const E=Me();if(g!==kt&&on(E,v,g)){const k=y.data[an()];if(xm(k,_)&&!jc(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=U(R,g||"")),Dt(y,k,E,g,_)}else!function nT(p,m,g,_,y,v,E,k){y===kt&&(y=et);let R=0,F=0,G=0=p.expandoStartIndex}function fy(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[an()],E=jc(p,g);xm(v,_)&&null===m&&!E&&(m=!1),m=function iT(p,m,g,_){const y=aa(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=ou(g=xn(null,p,m,g,_),m.attrs,_),v=null);else{const E=m.directiveStylingLast;if(-1===E||p[E]!==y)if(g=xn(y,p,m,g,_),null===v){let R=function Mm(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==yo(_))return p[ma(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=xn(null,p,m,R[1],_),R=ou(R,m.attrs,_),function my(p,m,g,_){p[ma(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function Ml(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else G=g;if(y)if(0!==R){const oe=ma(p[k+1]);p[_+1]=Rh(oe,k),0!==oe&&(p[oe+1]=bb(p[oe+1],_)),p[k+1]=function _v(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=Rh(k,0),0!==k&&(p[k+1]=bb(p[k+1],_)),k=_;else p[_+1]=Rh(R,0),0===k?k=_:p[R+1]=bb(p[R+1],_),R=_;F&&(p[_+1]=ot(p[_+1])),ly(p,G,_,!0),ly(p,G,_,!1),function IS(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&ho(v,m)>=0&&(g[_+1]=dr(g[_+1]))}(m,G,p,_,v),E=Rh(k,R),v?m.classBindings=E:m.styleBindings=E}(y,v,m,g,E,_)}}function xn(p,m,g,_,y){let v=null;const E=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],F=Array.isArray(R),G=F?R[1]:R,X=null===G;let oe=g[y+1];oe===kt&&(oe=X?et:void 0);let pe=X?Ld(oe,_):G===_?oe:void 0;if(F&&!Jh(pe)&&(pe=Ld(R,_)),Jh(pe)&&(k=pe,E))return k;const Te=p[y+1];y=E?ma(Te):yo(Te)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(k=Ld(R,_))}return k}function Jh(p){return void 0!==p}function xm(p,m){return 0!=(p.flags&(m?16:32))}function ln(p,m=""){const g=Me(),_=Ht(),y=p+22,v=_.firstCreatePass?Dc(_,y,1,m,null):_.data[y],E=g[y]=function W_(p,m){return p.createText(m)}(g[11],m);Pf(_,g,E,v),Xt(v,!1)}function rs(p){return Qh("",p,""),rs}function Qh(p,m,g){const _=Me(),y=Cl(_,p,m,g);return y!==kt&&Co(_,an(),y),Qh}function Ii(p,m,g,_,y){const v=Me(),E=function au(p,m,g,_,y,v){const k=xo(p,Vr(),g,y);return yr(2),k?m+be(g)+_+be(y)+v:kt}(v,p,m,g,_,y);return E!==kt&&Co(v,an(),E),Ii}function Kh(p,m,g,_,y,v,E,k,R,F,G){const X=Me(),oe=kc(X,p,m,g,_,y,v,E,k,R,F,G);return oe!==kt&&Co(X,an(),oe),Kh}function Rm(p,m,g){Sr(Pn,si,Cl(Me(),p,m,g),!0)}function lu(p,m,g){const _=Me();return on(_,ys(),m)&&Mn(Ht(),Pi(),_,p,m,_[11],g,!0),lu}function Nc(p,m,g){const _=Me();if(on(_,ys(),m)){const v=Ht(),E=Pi();Mn(v,E,_,p,m,Xa(aa(v.data),E,_),g,!0)}return Nc}const xl=void 0;var oT=["en",[["a","p"],["AM","PM"],xl],[["AM","PM"],xl,xl],[["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"]],xl,[["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"]],xl,[["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}",xl,"{1} 'at' {0}",xl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Nm(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let cu={};function Hy(p){const m=function ky(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=cT(m);if(g)return g;const _=m.split("-")[0];if(g=cT(_),g)return g;if("en"===_)return oT;throw new ie(701,!1)}function lT(p){return Hy(p)[ft.PluralCase]}function cT(p){return p in cu||(cu[p]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[p]),cu[p]}var ft=(()=>((ft=ft||{})[ft.LocaleId=0]="LocaleId",ft[ft.DayPeriodsFormat=1]="DayPeriodsFormat",ft[ft.DayPeriodsStandalone=2]="DayPeriodsStandalone",ft[ft.DaysFormat=3]="DaysFormat",ft[ft.DaysStandalone=4]="DaysStandalone",ft[ft.MonthsFormat=5]="MonthsFormat",ft[ft.MonthsStandalone=6]="MonthsStandalone",ft[ft.Eras=7]="Eras",ft[ft.FirstDayOfWeek=8]="FirstDayOfWeek",ft[ft.WeekendRange=9]="WeekendRange",ft[ft.DateFormat=10]="DateFormat",ft[ft.TimeFormat=11]="TimeFormat",ft[ft.DateTimeFormat=12]="DateTimeFormat",ft[ft.NumberSymbols=13]="NumberSymbols",ft[ft.NumberFormats=14]="NumberFormats",ft[ft.CurrencyCode=15]="CurrencyCode",ft[ft.CurrencySymbol=16]="CurrencySymbol",ft[ft.CurrencyName=17]="CurrencyName",ft[ft.Currencies=18]="Currencies",ft[ft.Directionality=19]="Directionality",ft[ft.PluralCase=20]="PluralCase",ft[ft.ExtraData=21]="ExtraData",ft))();const Yc="en-US";let ip=Yc;function ng(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let v=0;v>20;if(Ar(p)||!p.multi){const pe=new wr(R,y,vc),Te=rg(k,m,y?G:G+oe,X);-1===Te?(nc(Jo(F,E),v,k),Jy(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),E.push(pe)):(g[Te]=pe,E[Te]=pe)}else{const pe=rg(k,m,G+oe,X),Te=rg(k,m,G,G+oe),Ie=pe>=0&&g[pe],qe=Te>=0&&g[Te];if(y&&!qe||!y&&!Ie){nc(Jo(F,E),v,k);const Xe=function HT(p,m,g,_,y){const v=new wr(p,g,vc);return v.multi=[],v.index=m,v.componentProviders=0,dp(v,y,_&&!g),v}(y?Ky:Qy,g.length,y,_,R);!y&&qe&&(g[Te].providerFactory=Xe),Jy(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(Xe),E.push(Xe)}else Jy(v,p,pe>-1?pe:Te,dp(g[y?Te:pe],R,!y&&_));!y&&_&&qe&&g[Te].componentProviders++}}}function Jy(p,m,g,_){const y=Ar(m),v=function D_(p){return!!p.useClass}(m);if(y||v){const R=(v?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const G=F.indexOf(g);-1===G?F.push(g,[_,R]):F[G+1].push(_,R)}else F.push(g,R)}}}function dp(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function rg(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Qy(p,m,g,_){return Os(this.multi,[])}function Ky(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const E=this.providerFactory.componentProviders,k=Ur(g,g[1],this.providerFactory.index,_);v=k.slice(0,E),Os(y,v);for(let R=E;R{g.providersResolver=(_,y)=>function Zy(p,m,g){const _=Ht();if(_.firstCreatePass){const y=Un(p);ng(g,_.data,_.blueprint,y,!0),ng(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class qc{}class sg{}function kT(p,m){return new as(p,m??null)}class as extends qc{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nu(this);const _=Ne(m);this._bootstrapComponents=_o(_.bootstrap),this._r3Injector=dv(m,g,[{provide:qc,useValue:this},{provide:Wr,useValue:this.componentFactoryResolver}],j(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Wc extends sg{constructor(m){super(),this.moduleType=m}create(m){return new as(this.moduleType,m)}}class PT extends qc{constructor(m,g,_){super(),this.componentFactoryResolver=new nu(this),this.instance=null;const y=new Th([...m,{provide:qc,useValue:this},{provide:Wr,useValue:this.componentFactoryResolver}],g||Es(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function up(p,m,g=null){return new PT(p,m,g).injector}function nw(p,m,g){const _=Cn()+p,y=Me();return y[_]===kt?ts(y,_,g?m.call(g):m()):function Mo(p,m){return p[m]}(y,_)}function rw(p,m,g,_){return zT(Me(),Cn(),p,m,g,_)}function aw(p,m,g,_,y){return GT(Me(),Cn(),p,m,g,_,y)}function hp(p,m){const g=p[m];return g===kt?void 0:g}function zT(p,m,g,_,y,v){const E=m+g;return on(p,E,y)?ts(p,E+1,v?_.call(v,y):_(y)):hp(p,E+1)}function GT(p,m,g,_,y,v,E){const k=m+g;return xo(p,k,y,v)?ts(p,k+2,E?_.call(E,y,v):_(y,v)):hp(p,k+2)}function ug(p,m,g,_,y,v,E,k){const R=m+g;return function Uh(p,m,g,_,y){const v=xo(p,m,g,_);return on(p,m+2,y)||v}(p,R,y,v,E)?ts(p,R+3,k?_.call(k,y,v,E):_(y,v,E)):hp(p,R+3)}function ow(p,m){const g=Ht();let _;const y=p+22;g.firstCreatePass?(_=function qT(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=Ve(_.type)),E=Qt(vc);try{const k=Zo(!1),R=v();return Zo(k),function zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Me(),y,R),R}finally{Qt(E)}}function gu(p,m,g){const _=p+22,y=Me(),v=Hn(y,_);return _u(y,_)?zT(y,Cn(),m,v.transform,g,v):v.transform(g)}function hg(p,m,g,_){const y=p+22,v=Me(),E=Hn(v,y);return _u(v,y)?GT(v,Cn(),m,E.transform,g,_,E):E.transform(g,_)}function lw(p,m,g,_,y){const v=p+22,E=Me(),k=Hn(E,v);return _u(E,v)?ug(E,Cn(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function _u(p,m){return p[1].data[m].pure}function pg(p){return m=>{setTimeout(p,void 0,m)}}const Bs=class JT extends C.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,v=g||(()=>null),E=_;if(m&&"object"==typeof m){const R=m;y=R.next?.bind(R),v=R.error?.bind(R),E=R.complete?.bind(R)}this.__isAsync&&(v=pg(v),y&&(y=pg(y)),E&&(E=pg(E)));const k=super.subscribe({next:y,error:v,complete:E});return m instanceof i.w0&&m.add(k),k}};function QT(){return this._results[Hc()]()}class Po{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=Hc(),_=Po.prototype;_[g]||(_[g]=QT)}get changes(){return this._changes||(this._changes=new Bs)}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=ar(m);(this._changesDetected=!function th(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=QS,p})();const KT=Ro,XT=class extends KT{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Ih(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(y[19]=E.createEmbeddedView(_)),Oh(_,y,m),new jh(y)}};function QS(){return bu(Mi(),Me())}function bu(p,m){return 4&p.type?new XT(m,p,vr(p,m)):null}let yu=(()=>{class p{}return p.__NG_ELEMENT_ID__=eM,p})();function eM(){return dw(Mi(),Me())}const KS=yu,fg=class extends KS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return vr(this._hostTNode,this._hostLView)}get injector(){return new kn(this._hostTNode,this._hostLView)}get parentInjector(){const m=ic(this._hostTNode,this._hostLView);if(tc(m)){const g=ja(m,this._hostLView),_=Nr(m);return new kn(g[1].data[_+8],g)}return new kn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=cw(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,v;"number"==typeof _?y=_:null!=_&&(y=_.index,v=_.injector);const E=m.createEmbeddedView(g||{},v);return this.insert(E,y),E}createComponent(m,g,_,y,v){const E=m&&!function tl(p){return"function"==typeof p}(m);let k;if(E)k=g;else{const X=g||{};k=X.index,_=X.injector,y=X.projectableNodes,v=X.environmentInjector||X.ngModuleRef}const R=E?m:new yl(ti(m)),F=_||this.parentInjector;if(!v&&null==R.ngModule){const oe=(E?F:this.parentInjector).get(An,null);oe&&(v=oe)}const G=R.create(F,y,void 0,v);return this.insert(G.hostView,k),G}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return Yn(p[3])}(_)){const G=this.indexOf(m);if(-1!==G)this.detach(G);else{const X=_[3],oe=new fg(X,X[6],X[3]);oe.detach(oe.indexOf(m))}}const v=this._adjustIndex(g),E=this._lContainer;!function tS(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(E[k/2]);else{const F=v[k+1],G=m[-R];for(let X=10;X{class p{constructor(g){this.appInits=g,this.resolve=Tu,this.reject=Tu,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(E)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Ri(Fs,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Dg=new ei("AppId",{providedIn:"root",factory:function Mu(){return`${id()}${id()}${id()}`}});function id(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Eg=new ei("Platform Initializer"),Lw=new ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yp=new ei("appBootstrapListener"),Hg=new ei("AnimationModuleType");let kg=(()=>{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,providedIn:"platform"}),p})();const Pg=new ei("LocaleId",{providedIn:"root",factory:()=>ch(Pg,ct.Optional|ct.SkipSelf)||function Yi(){return typeof $localize<"u"&&$localize.locale||Yc}()}),wt=new ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class wM{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let Cp=(()=>{class p{compileModuleSync(g){return new Wc(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=_o(Ne(g).declarations).reduce((E,k)=>{const R=ti(k);return R&&E.push(new yl(R)),E},[]);return new wM(_,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,providedIn:"root"}),p})();const AM=(()=>Promise.resolve(0))();function Ig(p){typeof Zone>"u"?AM.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 Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const v=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new v("Angular"))}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 Bw(){let p=de.requestAnimationFrame,m=de.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function TM(p){const m=()=>{!function nd(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(de,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Ll(p),p.isCheckStableRunning=!0,Og(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Ll(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,E,k)=>{try{return Vw(p),g.invokeTask(y,v,E,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),Fw(p)}},onInvoke:(g,_,y,v,E,k,R)=>{try{return Vw(p),g.invoke(y,v,E,k,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),Fw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Ll(p),Og(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jn.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Jn.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,E=v.scheduleEventTask("NgZoneEvent: "+y,m,vM,Tu,Tu);try{return v.runTask(E,g,_)}finally{v.cancelTask(E)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const vM={};function Og(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 Ll(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Vw(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Fw(p){p._nesting--,Og(p)}class bn{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}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,_)}}const jw=new ei(""),Er=new ei("");let Vg,MM=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Vg||(function hD(p){Vg=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Jn.assertNotInAngularZone(),Ig(()=>{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())Ig(()=>{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(E=>E.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}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Ri(Jn),Ri(Bg),Ri(Er))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),Bg=(()=>{class p{constructor(){this._applications=new Map}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 Vg?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Io=null;const Nw=new ei("AllowMultipleToken"),Fg=new ei("PlatformDestroyListeners");class Kn{constructor(m,g){this.name=m,this.token=g}}function Oo(p,m,g=[]){const _=`Platform: ${m}`,y=new ei(_);return(v=[])=>{let E=Yw();if(!E||E.injector.get(Nw,!1)){const k=[...g,...v,{provide:y,useValue:!0}];p?p(k):function Xn(p){if(Io&&!Io.get(Nw,!1))throw new ie(400,!1);Io=p;const m=p.get(EM);(function xu(p){const m=p.get(Eg,null);m&&m.forEach(g=>g())})(p)}(function DM(p=[],m){return Ja.create({name:m,providers:[{provide:cl,useValue:"platform"},{provide:Fg,useValue:new Set([()=>Io=null])},...p]})}(k,_))}return function fD(p){const m=Yw();if(!m)throw new ie(401,!1);return m}()}}function Yw(){return Io?.get(EM)??null}let EM=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function Uw(p,m){let g;return g="noop"===p?new bn:("zone.js"===p?void 0:p)||new Jn(m),g}(_?.ngZone,function HM(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),v=[{provide:Jn,useValue:y}];return y.run(()=>{const E=Ja.create({providers:v,parent:this.injector,name:g.moduleType.name}),k=g.create(E),R=k.injector.get(Sh,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const F=y.onError.subscribe({next:G=>{R.handleError(G)}});k.onDestroy(()=>{Ng(this._modules,k),F.unsubscribe()})}),function zw(p,m,g){try{const _=g();return qh(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const F=k.injector.get(td);return F.runInitializers(),F.donePromise.then(()=>(function Um(p){ni(p,"Expected localeId to be defined"),"string"==typeof p&&(ip=p.toLowerCase().replace(/_/g,"-"))}(k.injector.get(Pg,Yc)||Yc),this._moduleDoBootstrap(k),k))})})}bootstrapModule(g,_=[]){const y=kM({},_);return function xM(p,m,g){const _=new Wc(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(jg);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Fg,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Ri(Ja))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function kM(p,m){return Array.isArray(m)?m.reduce(kM,p):{...p,...m}}let jg=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new D.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),E=new D.y(k=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{Jn.assertNotInAngularZone(),Ig(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{Jn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{R.unsubscribe(),F.unsubscribe()}});this.isStable=(0,x.T)(v,E.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof vn;if(!this._injector.get(td).done)throw!y&&ss(g),new ie(405,false);let E;E=y?g:this._injector.get(Wr).resolveComponentFactory(g),this.componentTypes.push(E.componentType);const k=function Qn(p){return p.isBoundToModule}(E)?void 0:this._injector.get(qc),F=E.create(Ja.NULL,[],_||E.selector,k),G=F.location.nativeElement,X=F.injector.get(jw,null);return X?.registerApplication(G),F.onDestroy(()=>{this.detachView(F.hostView),Ng(this.components,F),X?.unregisterApplication(G)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new ie(101,!1);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;Ng(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(yp,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Ng(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Ri(Jn),Ri(An),Ri(Sh))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Ng(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let qw=!0;function mD(){qw=!1}let _D=(()=>{class p{}return p.__NG_ELEMENT_ID__=bD,p})();function bD(p){return function RM(p,m,g){if(ka(p)&&!g){const _=Bt(p.index,m);return new jh(_,_)}return 47&p.type?new jh(m[16],m):null}(Mi(),Me(),16==(16&p))}class VM{constructor(){}supports(m){return ru(m)}create(m){return new Jw(m)}}const AD=(p,m)=>m;class Jw{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||AD}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 E=!_||g&&g.currentIndex{E=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,E)?(_&&(g=this._verifyReinsertion(g,k,E,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,E,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 vD(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 jM),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 jM),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 vD{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 FM{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 jM{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new FM,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 NM(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,E=y._next;return v&&(v._next=E),E&&(E._prev=v),y._next=null,y._prev=null,y}const _=new YM(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 YM{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 Xw(){return new eC([new VM])}let eC=(()=>{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,_||Xw()),deps:[[p,new Ds,new po]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Xw}),p})();function UM(){return new tC([new Qw])}let tC=(()=>{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,_||UM()),deps:[[p,new Ds,new po]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:UM}),p})();const MD=Oo(null,"core",[]);let xD=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Ri(jg))},p.\u0275mod=fr({type:p}),p.\u0275inj=vi({}),p})();function SD(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let z;return function(C){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(C||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(M){return this.data.get(M)}removeItem(M){this.data.delete(M)}setItem(M,C){this.data.set(M,C)}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,M=null){super(z),this.info=M}}class OAuthInfoEvent extends OAuthEvent{constructor(z,M=null){super(z),this.info=M}}class OAuthErrorEvent extends OAuthEvent{constructor(z,M,C=null){super(z),this.reason=M,this.params=C}}function b64DecodeUnicode(Y){const z=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(M){return"%"+("00"+M.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=M=>{location.href=M},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let C=M.inferHashAlgorithm(z.idTokenHeader),i=yield M.calcHash(z.accessToken,C),x=base64UrlEncode(i.substr(0,i.length/2)),S=z.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(z){let M=z.alg;if(!M.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+M);return"sha-"+M.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(M){let C=M||window.location.hash;if(C=decodeURIComponent(C),0!==C.indexOf("#"))return{};const i=C.indexOf("?");return C=C.substr(i>-1?i+1:1),this.parseQueryString(C)}parseQueryString(M){const C={};let i,D,x,S,P,L,j;if(null===M)return C;i=M.split("&");for(let U=0;U>6,D[S++]=128|63&P):P<55296||P>=57344?(D[S++]=224|P>>12,D[S++]=128|P>>6&63,D[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&Y.charCodeAt(++C)),D[S++]=240|P>>18,D[S++]=128|P>>12&63,D[S++]=128|P>>6&63,D[S++]=128|63&P);Y=D}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(z,!0).update(Y).array());var L=[],j=[];for(C=0;C<64;++C){var U=Y[C]||0;L[C]=92^U,j[C]=54^U}Sha256.call(this,z,M),this.update(j),this.oKeyPad=L,this.inner=!0,this.sharedMemory=M}Sha256.prototype.update=function(Y){if(!this.finalized){var z,M=typeof Y;if("string"!==M){if("object"!==M)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);z=!0}for(var C,D,i=0,x=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=C<>2]|=(192|C>>6)<>2]|=(128|63&C)<=57344?(S[D>>2]|=(224|C>>12)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<>2]|=(240|C>>18)<>2]|=(128|C>>12&63)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<=64?(this.block=S[16],this.start=D-64,this.hash(),this.hashed=!0):this.start=D}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,z=this.lastByteIndex;Y[16]=this.block,Y[z>>2]|=EXTRA[3&z],this.block=Y[16],z>=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 L,Q,re,ie,me,be,Y=this.h0,z=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+(((Q=P[L-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[L-7]+(((Q=P[L-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(be=z&M,L=0;L<64;L+=4)this.first?(this.is224?(re=300032,S=(Q=P[0]-1413257819)-150054599<<0,C=Q+24177077<<0):(re=704751109,S=(Q=P[0]-210244248)-1521486534<<0,C=Q+143694565<<0),this.first=!1):(S=C+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&D^~i&x)+K[L]+P[L])<<0,C=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((re=Y&z)^Y&M^be))<<0),x=M+(Q=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&D)+K[L+1]+P[L+1])<<0,M=Q+(((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+((ie=C&Y)^C&z^re))<<0,D=z+(Q=D+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[L+2]+P[L+2])<<0,z=Q+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((me=M&C)^M&Y^ie))<<0,i=Y+(Q=i+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&x^~D&S)+K[L+3]+P[L+3])<<0,Y=Q+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((be=z&M)^z&C^me))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+z<<0,this.h2=this.h2+M<<0,this.h3=this.h3+C<<0,this.h4=this.h4+i<<0,this.h5=this.h5+D<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,z=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=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[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[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[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[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D]+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];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 Y=this.h0,z=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,z>>24&255,z>>16&255,z>>8&255,255&z,M>>24&255,M>>16&255,M>>8&255,255&M,C>>24&255,C>>16&255,C>>8&255,255&C,i>>24&255,i>>16&255,i>>8&255,255&i,D>>24&255,D>>16&255,D>>8&255,255&D,x>>24&255,x>>16&255,x>>8&255,255&x];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 Y=new ArrayBuffer(this.is224?28:32),z=new DataView(Y);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),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 z,M=Y,C=new Uint8Array(M.length);for(z=0;z{class Y{calcHash(M,C){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(M)))})()}toHashString2(M){let C="";for(let i of M)C+=String.fromCharCode(i);return C}toHashString(M){const C=new Uint8Array(M);let i="";for(let D of C)i+=String.fromCharCode(D);return i}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(M,C,i,D,x,S,P,L,j,U){super(),this.ngZone=M,this.http=C,this.config=x,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__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=j,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),D&&(this.tokenValidationHandler=D),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(J){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",J)}if(this.checkLocalStorageAccessable()){const J=window?.navigator?.userAgent;(J?.includes("MSIE ")||J?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const M="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(M,M),localStorage.removeItem(M),0))}catch{return!1}}configure(M){Object.assign(this,new AuthConfig,M),this.config=Object.assign({},new AuthConfig,M),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)(M=>"token_received"===M.type)).subscribe(M=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(M={},C,i=!0){let D=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?D=!0:"logout"===x.type&&(D=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==C||"any"===C||x.info===C)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{D&&this.refreshInternal(M,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(M,C){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(M,C):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(M=null){return this.loadDiscoveryDocument().then(C=>this.tryLogin(M))}loadDiscoveryDocumentAndLogin(M=null){return this.loadDiscoveryDocumentAndTryLogin(M=M||{}).then(C=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof M.state?M.state:""),!1))}debug(...M){this.showDebugInformation&&this.logger.debug.apply(this.logger,M)}validateUrlFromDiscoveryDocument(M){const C=[],i=this.validateUrlForHttps(M),D=this.validateUrlAgainstIssuer(M);return i||C.push("https for all urls required. Also for urls received by discovery."),D||C.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),C}validateUrlForHttps(M){if(!M)return!0;const C=M.toLowerCase();return!(!1!==this.requireHttps&&(!C.match(/^http:\/\/localhost($|[:\/])/)&&!C.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||C.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(M,C){if(!M)throw new Error(`'${C}' should not be null`);if(!this.validateUrlForHttps(M))throw new Error(`'${C}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(M){return!this.strictDiscoveryDocumentValidation||!M||M.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type)).subscribe(M=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const M=this.getAccessTokenExpiration(),C=this.getAccessTokenStoredAt(),i=this.calcTimeout(C,M);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(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}setupIdTokenTimer(){const M=this.getIdTokenExpiration(),C=this.getIdTokenStoredAt(),i=this.calcTimeout(C,M);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(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}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(M,C){const i=this.dateTimeService.now();return Math.max(0,(C-M)*this.timeoutFactor-(i-M))}setStorage(M){this._storage=M,this.configChanged()}loadDiscoveryDocument(M=null){return new Promise((C,i)=>{M||((M=this.issuer||"").endsWith("/")||(M+="/"),M+=".well-known/openid-configuration"),this.validateUrlForHttps(M)?this.http.get(M).subscribe(D=>{if(!this.validateDiscoveryDocument(D))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=D.authorization_endpoint,this.logoutUrl=D.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=D.grant_types_supported,this.issuer=D.issuer,this.tokenEndpoint=D.token_endpoint,this.userinfoEndpoint=D.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=D.jwks_uri,this.sessionCheckIFrameUrl=D.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(D),this.revocationEndpoint=D.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:D,jwks:x});this.eventsSubject.next(P),C(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},D=>{this.logger.error("error loading discovery document",D),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),i(D)}):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((M,C)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),M(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),C(i)}):M(null)})}validateDiscoveryDocument(M){let C;return this.skipIssuerCheck||M.issuer===this.issuer?(C=this.validateUrlFromDiscoveryDocument(M.authorization_endpoint),C.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.end_session_endpoint),C.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.token_endpoint),C.length>0&&this.logger.error("error validating token_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(M.revocation_endpoint),C.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(M.userinfo_endpoint),C.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.jwks_uri),C.length>0?(this.logger.error("error validating jwks_uri in discovery document",C),!1):(this.sessionChecksEnabled&&!M.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: "+M.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(M,C,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((M,C)=>{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(D=>{if(this.debug("userinfo received",JSON.stringify(D)),D.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(D.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void C("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");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),M({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),M(JSON.parse(D.body))},D=>{this.logger.error("error loading user info",D),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",D)),C(D)})})}fetchTokenUsingPasswordFlow(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:M,password:C},i)}fetchTokenUsingGrant(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let D=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",M).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(D=D.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(D=D.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))D=D.set(x,this.customQueryParams[x]);for(const x of Object.keys(C))D=D.set(x,C[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,D,{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),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(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((M,C)=>{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")),D=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);D=D.set("Authorization","Basic "+x)}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 x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:D}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.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=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),M(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),C(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=M=>{const C=this.processMessageEventMessage(M);this.tryLogin({customHashFragment:C,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(M={},C=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(M.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const D=this.document.getElementById(this.silentRefreshIFrameName);D&&this.document.body.removeChild(D),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,C,M).then(U=>{x.setAttribute("src",U),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});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)()),j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,L,j]).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(M){return this.initLoginFlowInPopup(M)}initLoginFlowInPopup(M){return M=M||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(C=>new Promise((i,D)=>{let P,S=null;M.windowRef?M.windowRef&&!M.windowRef.closed&&(S=M.windowRef,S.location.href=C):S=window.open(C,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(M));const L=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},le=>{U(),D(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(U(),D(new OAuthErrorEvent("popup_closed",{})))},500):D(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),L(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),L(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(M){const C=M.height||470,i=M.width||500,D=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${C},top=${window.screenTop+(window.outerHeight-C)/2},left=${D}`}processMessageEventMessage(M){let C="#";if(this.silentRefreshMessagePrefix&&(C+=this.silentRefreshMessagePrefix),!M||!M.data||"string"!=typeof M.data)return;const i=M.data;return i.startsWith(C)?"#"+i.substr(C.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=M=>{const C=M.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(C)){switch(M.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",M)}else this.debug("sessionCheckEventListener","wrong origin",C,"expected",i,"event",M)},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(M=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(M=>{this.debug("token refresh after session change worked")}).catch(M=>{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)(M=>"silently_refreshed"===M.type||"silent_refresh_timeout"===M.type||"silent_refresh_error"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(M=>{"silently_refreshed"!==M.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 M=this.document.getElementById(this.sessionCheckIFrameName);M&&this.document.body.removeChild(M);const C=this.document.createElement("iframe");C.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),C.setAttribute("src",this.sessionCheckIFrameUrl),C.style.display="none",this.document.body.appendChild(C),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 M=this.document.getElementById(this.sessionCheckIFrameName);M||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const C=this.getSessionState();C||this.stopSessionCheckTimer(),M.contentWindow.postMessage(this.clientId+" "+C,this.issuer)}createLoginUrl(M="",C="",i="",D=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let L;L=i||S.redirectUri;const j=yield S.createAndSaveNonce();if(M=M?j+S.config.nonceStateSeparator+encodeURIComponent(M):j,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const U=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+U+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(M)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}C&&(Q+="&login_hint="+encodeURIComponent(C)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(j)),D&&(Q+="&prompt=none");for(const ne of Object.keys(x))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(M="",C=""){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={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(M,D,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(M="",C=""){""!==this.loginUrl?this.initImplicitFlowInternal(M,C):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(M,C))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(M){const C=this;if(M.onTokenReceived){const i={idClaims:C.getIdentityClaims(),idToken:C.getIdToken(),accessToken:C.getAccessToken(),state:C.state};M.onTokenReceived(i)}}storeAccessTokenResponse(M,C,i,D,x){if(this._storage.setItem("access_token",M),D&&!Array.isArray(D)?this._storage.setItem("granted_scopes",JSON.stringify(D.split(" "))):D&&Array.isArray(D)&&this._storage.setItem("granted_scopes",JSON.stringify(D)),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)}C&&this._storage.setItem("refresh_token",C),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(M=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(M).then(C=>!0):this.tryLoginImplicitFlow(M)}parseQueryString(M){return M&&0!==M.length?("?"===M.charAt(0)&&(M=M.substr(1)),this.urlHelper.parseQueryString(M)):{}}tryLoginCodeFlow(M=null){var C=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(M=M||{}).customHashFragment?M.customHashFragment.substring(1):window.location.search,D=C.getCodePartsFromUrl(i),x=D.code,S=D.state,P=D.session_state;if(!M.preventClearHashAfterLogin){const U=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,U)}let[L,j]=C.parseState(S);if(C.state=j,D.error){C.debug("error trying to login"),C.handleLoginError(M,D);const U=new OAuthErrorEvent("code_error",{},D);return C.eventsSubject.next(U),Promise.reject(U)}if(!M.disableNonceCheck){if(!L)return C.saveRequestedRoute(),Promise.resolve();if(!M.disableOAuth2StateCheck&&!C.validateNonce(L)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return C.eventsSubject.next(J),Promise.reject(J)}return C.storeSessionState(P),x&&(yield C.getTokenFromCode(x,M),C.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const M=this._storage.getItem("requested_route");M&&history.replaceState(null,"",window.location.origin+M)}getCodePartsFromUrl(M){return M&&0!==M.length?("?"===M.charAt(0)&&(M=M.substr(1)),this.urlHelper.parseQueryString(M)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(M,C){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",M).set("redirect_uri",C.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let D;D=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),D?i=i.set("code_verifier",D):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,C)}fetchAndProcessToken(M,C){C=C||{},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 D=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+D)}return this.useHttpBasicAuth||(M=M.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(M=M.set("client_secret",this.dummyClientSecret)),new Promise((D,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))M=M.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,M,{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,C.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),x(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(M=null){let C;C=(M=M||{}).customHashFragment?this.urlHelper.getHashFragmentParams(M.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",C);const i=C.state;let[D,x]=this.parseState(i);if(this.state=x,C.error){this.debug("error trying to login"),this.handleLoginError(M,C);const U=new OAuthErrorEvent("token_error",{},C);return this.eventsSubject.next(U),Promise.reject(U)}const S=C.access_token,P=C.id_token,L=C.session_state,j=C.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!M.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&&!M.disableNonceCheck&&!this.validateNonce(D)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j),this.oidc?this.processIdToken(P,S,M.disableNonceCheck).then(U=>M.validationHandler?M.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(J=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!M.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(M),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&&!M.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(M),Promise.resolve(!0))}parseState(M){let C=M,i="";if(M){const D=M.indexOf(this.config.nonceStateSeparator);D>-1&&(C=M.substr(0,D),i=M.substr(D+this.config.nonceStateSeparator.length))}return[C,i]}validateNonce(M){let C;return C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),C===M||(console.error("Validating access_token failed, wrong state/nonce.",C,M),!1)}storeIdToken(M){this._storage.setItem("id_token",M.idToken),this._storage.setItem("id_token_claims_obj",M.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+M.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(M){this._storage.setItem("session_state",M)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(M,C){M.onLoginError&&M.onLoginError(C),this.clearHashAfterLogin&&!M.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(M=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:M}processIdToken(M,C,i=!1){const D=M.split("."),S=b64DecodeUnicode(this.padBase64(D[0])),P=JSON.parse(S),j=b64DecodeUnicode(this.padBase64(D[1])),U=JSON.parse(j);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(me=>me!==this.clientId)){const me="Wrong audience: "+U.aud.join(",");return this.logger.warn(me),Promise.reject(me)}}else if(U.aud!==this.clientId){const me="Wrong audience: "+U.aud;return this.logger.warn(me),Promise.reject(me)}if(!U.sub){const me="No sub claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const me=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(me),Promise.reject(me)}if(!U.iat){const me="No iat claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const me="Wrong issuer: "+U.iss;return this.logger.warn(me),Promise.reject(me)}if(!i&&U.nonce!==J){const me="Wrong nonce: "+U.nonce;return this.logger.warn(me),Promise.reject(me)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const me="An at_hash is needed!";return this.logger.warn(me),Promise.reject(me)}const Q=this.dateTimeService.now(),ne=1e3*U.iat,le=1e3*U.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const me="Token has expired";return console.error(me),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(me)}const ie={accessToken:C,idToken:M,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(me=>({idToken:M,idTokenClaims:U,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(me=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!me){const be="Wrong at_hash";return this.logger.warn(be),Promise.reject(be)}return this.checkSignature(ie).then(be=>{const $e={idToken:M,idTokenClaims:U,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?$e:this.checkAtHash(ie).then(Ze=>{if(this.requestAccessToken&&!Ze){const Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}return $e})})})}getIdentityClaims(){const M=this._storage.getItem("id_token_claims_obj");return M?JSON.parse(M):null}getGrantedScopes(){const M=this._storage.getItem("granted_scopes");return M?JSON.parse(M):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(M){for(;M.length%4!=0;)M+="=";return M}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 M=this._storage.getItem("expires_at"),C=this.dateTimeService.new();return!(M&&parseInt(M,10)=0&&null!==this._storage.getItem(M)?JSON.parse(this._storage.getItem(M)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(M={},C=""){let i=!1;"boolean"==typeof M&&(i=M,M={});const D=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||!D&&!this.postLogoutRedirectUri)return;let x;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)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(D)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});D&&(S=S.set("id_token_hint",D));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),C&&(S=S.set("state",C)));for(let L in M)S=S.set(L,M[L]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const M=this;return this.createNonce().then(function(C){return M.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",C):M._storage.setItem("nonce",C),C})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const M=this.document.getElementById(this.silentRefreshIFrameName);M&&M.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const C=this.document.getElementById(this.sessionCheckIFrameName);C&&C.remove()}createNonce(){return new Promise(M=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,D="";const x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>C.charCodeAt(P%C.length)),D=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(M,C))}initCodeFlowInternal(M="",C={}){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={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(M,D,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!M.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const C=yield M.createNonce();return[base64UrlEncode(yield M.crypto.calcHash(C,"sha-256")),C]})()}extractRecognizedCustomParameters(M){let C=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{M[i]&&C.set(i,JSON.stringify(M[i]))}),C}revokeTokenAndLogout(M={},C=!1){let i=this.revocationEndpoint,D=this.getAccessToken(),x=this.getRefreshToken();if(!D)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,j)=>{let U,J;if(D){let Q=S.set("token",D).set("token_type_hint","access_token");U=this.http.post(i,Q,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let Q=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);C&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,J]).subscribe(Q=>{this.logOut(M),L(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),j(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(M){return new(M||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(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(M,C,i){this.oAuthService=M,this.errorHandler=C,this.moduleConfig=i}checkUrl(M){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(M):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(C=>M.toLowerCase().startsWith(C.toLowerCase()))}intercept(M,C){const i=M.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)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=M.headers.set("Authorization","Bearer "+x);M=M.clone({headers:P})}return C.handle(M).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):C.handle(M).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):C.handle(M)}}return Y.\u0275fac=function(M){return new(M||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(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(M=null,C=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:C},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:M},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,z,M)=>{"use strict";function C(D,x,S,P,L,j,U){try{var J=D[j](U),Q=J.value}catch(ne){return void S(ne)}J.done?x(Q):Promise.resolve(Q).then(P,L)}function i(D){return function(){var x=this,S=arguments;return new Promise(function(P,L){var j=D.apply(x,S);function U(Q){C(j,P,L,U,J,"next",Q)}function J(Q){C(j,P,L,U,J,"throw",Q)}U(void 0)})}}M.d(z,{Z:()=>i})},4147:Y=>{"use strict";Y.exports={i8:"9.4.0"}}},Y=>{Y(Y.s=826)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/assets/i18n/cs.json b/dist/apps/user-profile/assets/i18n/cs.json index 0e7087476..2be2753a1 100644 --- a/dist/apps/user-profile/assets/i18n/cs.json +++ b/dist/apps/user-profile/assets/i18n/cs.json @@ -374,6 +374,22 @@ "CLOSE": "Zrušit", "COPY": "Zkopírovat hodnotu" }, + "MFA_REQUIRED_DIALOG": { + "TITLE": "Vyžadována step-up authentizace", + "INFO": "Pro vykonání této akce musíte provést step-up authentizaci.", + "CANCEL": "Zrušit", + "STEP_UP": "Step-up authentizace" + }, + "NO_MFA_TOKEN": { + "TITLE": "Žádný MFA token", + "INFO": "Potřebujete mít alespoň jeden aktivní MFA token. Prosím upravte Vaše MFA tokeny.", + "CANCEL": "Zrušit", + "MANAGE_TOKENS": "Spravovat tokeny" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modalní okno otevřeno.", + "MODAL_WARNING": "Pokud se Vám žádné okno neotevřelo, zkontrolujte si prosím nastavení svého prohlížeče." + }, "MAIL_CHANGE_FAILED_DIALOG": { "TITLE": "Zmněna preferovaného emailu se nezdařila", "INFO": "Žádost o změnu preferovaného emailu neexistuje nebo již není platná", diff --git a/dist/apps/user-profile/assets/i18n/en.json b/dist/apps/user-profile/assets/i18n/en.json index aa99db5f8..f482a9876 100644 --- a/dist/apps/user-profile/assets/i18n/en.json +++ b/dist/apps/user-profile/assets/i18n/en.json @@ -450,6 +450,22 @@ "DESCRIPTION": "Your session has expired. Please sign in to continue.", "SIGN_IN": "Sign in" }, + "MFA_REQUIRED_DIALOG": { + "TITLE": "Step-up authentication required", + "INFO": "To perform this action you need to execute step-up authentication.", + "CANCEL": "Cancel", + "STEP_UP": "Step-up authentication" + }, + "NO_MFA_TOKEN": { + "TITLE": "No MFA token", + "INFO": "You need to have at least one active MFA token. Please manage your MFA tokens.", + "CANCEL": "Cancel", + "MANAGE_TOKENS": "Manage tokens" + }, + "FOCUS_ON_MFA_DIALOG": { + "MODAL": "Modal window is opened.", + "MODAL_WARNING": "Please check your browser settings if no modal window is open." + }, "MAIL_CHANGE_FAILED_DIALOG": { "TITLE": "Preferred mail change failed", "INFO": "Preferred email change request does not exist or is not valid anymore", diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 535f698df..1e21af7ba 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.07fb08bd6a2952aa.js b/dist/apps/user-profile/main.07fb08bd6a2952aa.js new file mode 100644 index 000000000..08dc213d5 --- /dev/null +++ b/dist/apps/user-profile/main.07fb08bd6a2952aa.js @@ -0,0 +1 @@ +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{8609:(j,Y,T)=>{"use strict";var w=T(6895),i=T(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends E{static makeCurrent(){(0,w.HT)(new x)}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 F(n){k=k||document.createElement("a"),k.setAttribute("href",n);const a=k.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 k,S=null;const q=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(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{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 ae=new i.OlP("EventManagerPlugins");let ie=(()=>{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})(),ve=(()=>{class n extends Ae{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,r.push(t.appendChild(c))})}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(Qe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Qe))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Qe(n){(0,w.q)().remove(n)}const Xe={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/"},He=/%COMP%/g;function he(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ye=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new We(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 oi(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 Ke(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=he(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(ie),i.LFG(ve),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class We{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Xe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Xe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Xe[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,me(t)):this.eventManager.addEventListener(a,e,me(t))}}function Ft(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class oi extends We{constructor(a,e,t,r){super(a),this.component=t;const l=he(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ve(n){return"_ngcontent-%COMP%".replace(He,n)}(r+"-"+t.id),this.hostAttr=function Ne(n){return"_nghost-%COMP%".replace(He,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 Ke extends We{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=he(r.id,r.styles,[]);for(let c=0;c{class n extends ge{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 En=["alt","control","meta","shift"],li={"\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"},qn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Dn=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),c=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,c))}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 c="";if(En.forEach(o=>{const d=t.indexOf(o);d>-1&&(t.splice(d,1),c+=o+".")}),c+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=c,s}static getEventFullKey(e){let t="",r=function hi(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&&qn.hasOwnProperty(a)&&(a=qn[a]))}return li[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),En.forEach(l=>{l!=r&&(0,Ci[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 be=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function mr(){x.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function de(){return(0,i.RDi)(document),document},deps:[]}]),qe=new i.OlP(""),ot=[{provide:i.rWj,useClass:class ne{addToWindow(a){i.dqk.getAngularTestability=(t,r=!0)=>{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,c=!1;const s=function(o){c=c||o,l--,0==l&&t(c)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],lt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function On(){return new i.qLn},deps:[]},{provide:ae,useClass:en,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ae,useClass:Dn,multi:!0,deps:[w.K0]},{provide:ye,useClass:ye,deps:[ie,ve,i.AFp]},{provide:i.FYo,useExisting:ye},{provide:Ae,useExisting:ve},{provide:ve,useClass:ve,deps:[w.K0]},{provide:ie,useClass:ie,deps:[ae,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let Jt=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:q,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qe,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...lt,...ot],imports:[w.ez,i.hGG]}),n})(),se=(()=>{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 Le(){return new se((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let $i=(()=>{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(ct),t},providedIn:"root"}),n})(),ct=(()=>{class n extends $i{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.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 et(n){return new ct(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=T(529);class Kt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const zt=new i.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 Qt=(()=>{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 Je,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 Kt}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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,c,s,o,d,u,h,f,b="body",N=!1,X){let pe=new M.LE({encoder:this.encoder});null!=e&&(pe=this.addToHttpParams(pe,e,"attributeName")),null!=t&&(pe=this.addToHttpParams(pe,t,"attributeId")),null!=r&&(pe=this.addToHttpParams(pe,r,"facility")),null!=l&&(pe=this.addToHttpParams(pe,l,"user")),null!=c&&(pe=this.addToHttpParams(pe,c,"vo")),null!=s&&(pe=this.addToHttpParams(pe,s,"resource")),null!=o&&(pe=this.addToHttpParams(pe,o,"member")),null!=d&&(pe=this.addToHttpParams(pe,d,"group")),null!=u&&(pe=this.addToHttpParams(pe,u,"host")),null!=h&&(pe=this.addToHttpParams(pe,h,"userExtSource")),null!=f&&(pe=this.addToHttpParams(pe,f,"key"));let _t,Pe=this.defaultHeaders;_t=this.configuration.lookupCredential("BasicAuth"),_t&&(Pe=Pe.set("Authorization","Basic "+_t)),_t=this.configuration.lookupCredential("BearerAuth"),_t&&(Pe=Pe.set("Authorization","Bearer "+_t));let Rt=X&&X.httpHeaderAccept;void 0===Rt&&(Rt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Rt&&(Pe=Pe.set("Accept",Rt));let Ut=X&&X.context;void 0===Ut&&(Ut=new M.qT);let oa="json";return Rt&&(oa=Rt.startsWith("text")?"text":this.configuration.isJsonMime(Rt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ut,params:pe,responseType:oa,withCredentials:this.configuration.withCredentials,headers:Pe,observe:b,reportProgress:N})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRules(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,c,s,o,d,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!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=d&&(b=this.addToHttpParams(b,d,"userExtSource"));let X,N=this.defaultHeaders;X=this.configuration.lookupCredential("BasicAuth"),X&&(N=N.set("Authorization","Basic "+X)),X=this.configuration.lookupCredential("BearerAuth"),X&&(N=N.set("Authorization","Bearer "+X));let pe=f&&f.httpHeaderAccept;void 0===pe&&(pe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==pe&&(N=N.set("Accept",pe));let Pe=f&&f.context;void 0===Pe&&(Pe=new M.qT);let _t="json";return pe&&(_t=pe.startsWith("text")?"text":this.configuration.isJsonMime(pe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Pe,params:b,responseType:_t,withCredentials:this.configuration.withCredentials,headers:N,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"user")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c,s,o="body",d=!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==c)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!=c&&(h=this.addToHttpParams(h,c,"member")),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let X=u&&u.context;void 0===X&&(X=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:X,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}removeAttributesForFacilityResourceUserMember(e,t,r,l,c,s="body",o=!1,d){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==c)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")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=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:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeResourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeVoAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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})}setAttributeActionCriticality(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeDefinition")),null!=t&&(o=this.addToHttpParams(o,t,"action")),null!=r&&(o=this.addToHttpParams(o,r,"critical"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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/setAttributeActionCriticality`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{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 Je,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 Kt}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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,r,l,c,s,o="body",d=!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(Pe=>{h=this.addToHttpParams(h,Pe,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let X=u&&u.context;void 0===X&&(X=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:X,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:d,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),In=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yn=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}deleteGroup(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"members[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupUnions(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getGroupsWhereMemberIsActive(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bn=(()=>{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 Je,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 Kt}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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,l,c,s,o="body",d=!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(Pe=>{h=this.addToHttpParams(h,Pe,"attrsNames[]")}),c&&c.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedStatuses[]")}),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let X=u&&u.context;void 0===X&&(X=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:X,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}findCompleteRichMembersForVo(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"allowedStatuses[]")}),null!=r&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getAllMembers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"allowedStatuses[]")}),l&&l.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}moveMembership(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeSponsor(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=r&&(d=this.addToHttpParams(d,r,"emailAttributeURN")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:N,params:u,responseType:X,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}setStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}updateSponsorshipValidity(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:c,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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mi=(()=>{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 Je,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 Kt}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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"memberId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"voId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ac=(()=>{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 Je,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 Kt}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarRichIdentities(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/consolidate`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendInvitationForGroup(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:c,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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{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 Je,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 Kt}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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}addAdminToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"groups[]")}),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}assignGroupToResource(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:N,params:u,responseType:X,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResource(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"facility")),null!=r&&(d=this.addToHttpParams(d,r,"name")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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})}getMailingServiceRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAssignments(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRichAdmins(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"specificAttributes")}),null!=r&&(d=this.addToHttpParams(d,r,"allUserAttributes")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ki=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changeNonAuthzPassword/token`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/checkPasswordStrength`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/createAlternativePassword`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,r,l,c,s,o="body",d=!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!=c&&(h=this.addToHttpParams(h,c,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let X=u&&u.context;void 0===X&&(X=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:X,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/reservePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/reservePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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})}setLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"login")),null!=r&&(o=this.addToHttpParams(o,r,"namespace"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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/setLogin`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tr=(()=>{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 Je,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 Kt}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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:d,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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nn=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}findCandidatesForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,c,s="body",o=!1,d){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==c)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(pe=>{u=this.addToHttpParams(u,pe,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:N,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,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.GROUPOBSERVER="GROUPOBSERVER",n.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",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",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Bt;var n})();let Ua=(()=>{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 c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}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 c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let c=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const N of Object.keys(b.entitiesToManage))o="User"===N?[N].concat(o):o.concat(N);break}const d=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(c,d),h=this.resolveAuthorization(s,d);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 c of Object.keys(r)){const s=r[c];if(null===s)this.principalRoles.has(c)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(c,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 c=r.shift();if(t.has(c))continue;const s=this.getPerunPolicy(c);if(!s)return[];t.set(c,s),r=r.concat(s.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Wr.Xf)(n()).subscribe(a)})}var nl=T(9635),Un=T(2843),Ur=T(515),Nt=T(727),Gn=T(4482),br=T(5403);function Ts(){return(0,Gn.e)((n,a)=>{let e=null;n._refCount++;const t=(0,br.x)(a,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),a.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class oc extends Ln.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Gn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Nt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,br.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Nt.w0.EMPTY)}return a}refCount(){return Ts()(this)}}var At=T(4004),It=T(3900),dt=T(5698),fo=T(3269);function ti(...n){const a=(0,fo.yG)(n);return(0,Gn.e)((e,t)=>{(a?(0,$a.z)(n,e,a):(0,$a.z)(n,e)).subscribe(t)})}var Ti=T(5577),Ar=T(590),yr=T(4351),gi=T(8505),ai=T(262);function I(n,a,e,t,r){return(l,c)=>{let s=e,o=a,d=0;l.subscribe((0,br.x)(c,u=>{const h=d++;o=s?n(o,u,h):(s=!0,u),t&&c.next(o)},r&&(()=>{s&&c.next(o),c.complete()})))}}function U(n,a){return(0,Gn.e)(I(n,a,arguments.length>=2,!0))}function B(n){return n<=0?()=>Ur.E:(0,Gn.e)((a,e)=>{let t=[];a.subscribe((0,br.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var G=T(8068),re=T(6590),Me=T(4671);function _e(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,Yt.h)((r,l)=>n(r,l,t)):Me.y,B(1),e?(0,re.d)(a):(0,G.T)(()=>new Ga.K))}function nt(n,a=!1){return(0,Gn.e)((e,t)=>{let r=0;e.subscribe((0,br.x)(t,l=>{const c=n(l,r++);(c||a)&&t.next(l),!c&&t.complete()}))})}var xi=T(9718);function ii(n){return(0,Gn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(n)}})}var di=T(8189);const tt="primary";class ln{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 _i(n){return new ln(n)}function yn(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 Gr(n){return Array.prototype.concat.apply([],n)}function Bi(n){return n.length>0?n[n.length-1]:null}function Oi(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function Ni(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,Hn.D)(Promise.resolve(n)):(0,$e.of)(n)}const gg={exact:function Vn(n,a,e){if(!ga(n.segments,a.segments)||!ar(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Vn(n.children[t],a.children[t],e))return!1;return!0},subset:dc},lc={exact:function cc(n,a){return yt(n,a)},subset:function ma(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>Za(n[e],a[e]))},ignored:()=>!0};function uf(n,a,e){return gg[e.paths](n.root,a.root,e.matrixParams)&&lc[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function dc(n,a,e){return xs(n,a,a.segments,e)}function xs(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ga(r,e)||a.hasChildren()||!ar(r,e,t))}if(n.segments.length===e.length){if(!ga(n.segments,e)||!ar(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!dc(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!!(ga(n.segments,r)&&ar(n.segments,r,t)&&n.children[tt])&&xs(n.children[tt],a,l,t)}}function ar(n,a,e){return a.every((t,r)=>lc[e](n[r].parameters,t.parameters))}class ui{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,Oi(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ol(this)}}class sl{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_i(this.parameters)),this._parameterMap}toString(){return pc(this)}}function ga(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}let _d=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new _a},providedIn:"root"}),n})();class _a{parse(a){const e=new gf(a);return new ui(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ss(a.root,!0)}`,t=function $r(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Ja(e)}=${Ja(r)}`).join("&"):`${Ja(e)}=${Ja(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function uc(n){return encodeURI(n)}(a.fragment)}`:""}`}}const hf=new _a;function ol(n){return n.segments.map(a=>pc(a)).join("/")}function Ss(n,a){if(!n.hasChildren())return ol(n);if(a){const e=n.children[tt]?Ss(n.children[tt],!1):"",t=[];return Oi(n.children,(r,l)=>{l!==tt&&t.push(`${l}:${Ss(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function gd(n,a){let e=[];return Oi(n.children,(t,r)=>{r===tt&&(e=e.concat(a(t,r)))}),Oi(n.children,(t,r)=>{r!==tt&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===tt?[Ss(n.children[tt],!1)]:[`${r}:${Ss(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[tt]?`${ol(n)}/${e[0]}`:`${ol(n)}/(${e.join("//")})`}}function go(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ja(n){return go(n).replace(/%3B/gi,";")}function hc(n){return go(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Es(n){return decodeURIComponent(n)}function eh(n){return Es(n.replace(/\+/g,"%20"))}function pc(n){return`${hc(n.path)}${function Pn(n){return Object.keys(n).map(a=>`;${hc(a)}=${hc(n[a])}`).join("")}(n.parameters)}`}const qi=/^[^\/()?;=#]+/;function ll(n){const a=n.match(qi);return a?a[0]:""}const pf=/^[^=?&#]+/,ff=/^[^&#]+/;class gf{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[tt]=new Wt(a,e)),t}parseSegment(){const a=ll(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(a),new sl(Es(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=ll(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=ll(this.remaining);r&&(t=r,this.capture(t))}a[Es(e)]=Es(t)}parseQueryParam(a){const e=function th(n){const a=n.match(pf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function mf(n){const a=n.match(ff);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const r=eh(e),l=eh(t);if(a.hasOwnProperty(r)){let c=a[r];Array.isArray(c)||(c=[c],a[r]=c),c.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ll(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=tt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[tt]:new Wt([],c),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 i.vHH(4011,!1)}}function _o(n){return n.segments.length>0?new Wt([],{[tt]:n}):n}function Ds(n){const a={};for(const t of Object.keys(n.children)){const l=Ds(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function fc(n){if(1===n.numberOfChildren&&n.children[tt]){const a=n.children[tt];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}function Zr(n){return n instanceof ui}function ih(n,a,e,t,r){var l;if(0===e.length)return ba(a.root,a.root,a.root,t,r);const c=function ah(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new rh(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Oi(l.outlets,(o,d)=>{s[d]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===c?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new rh(e,a,t)}(e);if(c.toRoot())return ba(a.root,a.root,new Wt([],{}),t,r);const o=function s(u){var h;const f=function sh(n,a,e,t){if(n.isAbsolute)return new dl(a.root,!0,0);if(-1===t)return new dl(e,e===a.root,0);return function bd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new dl(t,!1,r-l)}(e,t+(cl(n.commands[0])?0:1),n.numberOfDoubleDots)}(c,a,null===(h=n.snapshot)||void 0===h?void 0:h._urlSegment,u),b=f.processChildren?bo(f.segmentGroup,f.index,c.commands):bc(f.segmentGroup,f.index,c.commands);return ba(a.root,f.segmentGroup,b,t,r)}(null===(l=n.snapshot)||void 0===l?void 0:l._lastPathIndex);return o}function cl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Jr(n){return"object"==typeof n&&null!=n&&n.outlets}function ba(n,a,e,t,r){let c,l={};t&&Oi(t,(o,d)=>{l[d]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),c=n===a?e:nh(n,a,e);const s=_o(Ds(c));return new ui(s,l,r)}function nh(n,a,e){const t={};return Oi(n.children,(r,l)=>{t[l]=r===a?e:nh(r,a,e)}),new Wt(n.segments,t)}class rh{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&cl(t[0]))throw new i.vHH(4003,!1);const r=t.find(Jr);if(r&&r!==Bi(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dl{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function bc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return bo(n,a,e);const t=function Ao(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const c=n.segments[r],s=e[t];if(Jr(s))break;const o=`${s}`,d=t0&&void 0===o)break;if(o&&d&&"object"==typeof d&&void 0===d.outlets){if(!ul(o,d,c))return l;t+=2}else{if(!ul(o,{},c))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[c]=bc(n.children[c],a,l))}),Oi(n.children,(l,c)=>{void 0===t[c]&&(r[c]=l)}),new Wt(n.segments,r)}}function Ad(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Ad(new Wt([],{}),0,e))}),a}function Ac(n){const a={};return Oi(n,(e,t)=>a[t]=`${e}`),a}function ul(n,a,e){return n==e.path&&yt(a,e.parameters)}class Qa{constructor(a,e){this.id=a,this.url=e}}class yc extends Qa{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Jn extends Qa{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Mc extends Qa{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Dr extends Qa{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _f extends Qa{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hl extends Qa{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yd extends Qa{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Md extends Qa{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wc extends Qa{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cc{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oh{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wd{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cd{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hs{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fl{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hr{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=vc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=vc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=gl(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return gl(a,this._root).map(e=>e.value)}}function vc(n,a){if(n===a.value)return a;for(const e of a.children){const t=vc(n,e);if(t)return t}return null}function gl(n,a){if(n===a.value)return[a];for(const e of a.children){const t=gl(n,e);if(t.length)return t.unshift(a),t}return[]}class Qr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lr(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class lh extends Hr{constructor(a,e){super(a),this.snapshot=e,Xa(this,a)}toString(){return this.snapshot.toString()}}function vd(n,a){const e=function Td(n,a){const c=new Aa([],{},{},"",{},tt,a,null,n.root,-1,{});return new Ls("",new Qr(c,[]))}(n,a),t=new Zi([new sl("",{})]),r=new Zi({}),l=new Zi({}),c=new Zi({}),s=new Zi(""),o=new Qn(t,r,c,s,l,tt,a,e.root);return o.snapshot=e.root,new lh(new Qr(o,[]),e)}class Qn{constructor(a,e,t,r,l,c,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,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,At.U)(a=>_i(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(a=>_i(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xd(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 Sd(n){return n.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Aa{constructor(a,e,t,r,l,c,s,o,d,u,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this.routeConfig=o,this._urlSegment=d,this._lastPathIndex=u,this._correctedLastPathIndex=f??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=_i(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ls extends Hr{constructor(a,e){super(e),this.url=a,Xa(this,e)}toString(){return Ed(this._root)}}function Xa(n,a){a.value._routerState=n,a.children.forEach(e=>Xa(n,e))}function Ed(n){const a=n.children.length>0?` { ${n.children.map(Ed).join(", ")} } `:"";return`${n.value}${a}`}function _l(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,yt(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),yt(a.params,e.params)||n.params.next(e.params),function Ee(n,a){if(n.length!==a.length)return!1;for(let e=0;eyt(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ka(n.parent,a.parent))}function bl(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function Si(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return bl(n,t,r);return bl(n,t)})}(n,a,e);return new Qr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(s=>bl(n,s)),c}}const t=function Ag(n){return new Qn(new Zi(n.url),new Zi(n.params),new Zi(n.queryParams),new Zi(n.fragment),new Zi(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>bl(n,l));return new Qr(t,r)}}const ch="ngNavigationCancelingError";function bf(n,a){const{redirectTo:e,navigationBehaviorOptions:t}=Zr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=Af(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function Af(n,a,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[ch]=!0,t.cancellationCode=a,e&&(t.url=e),t}function yf(n){return Dd(n)&&Zr(n.url)}function Dd(n){return n&&n[ch]}class yg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ya,this.attachRef=null}}let ya=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new yg,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hd=!1;let es=(()=>{class n{constructor(e,t,r,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,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=r||tt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Hd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Hd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Hd);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 i.vHH(4013,Hd);this._activatedRoute=e;const r=this.location,c=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,o=new Yi(e,s,r.injector);if(t&&function Ld(n){return!!n.resolveComponentFactory}(t)){const d=t.resolveComponentFactory(c);this.activated=r.createComponent(d,r.length,o)}else this.activated=r.createComponent(c,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Yi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Qn?this.route:a===ya?this.childContexts:this.parent.get(a,e)}}let Mo=(()=>{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")},dependencies:[es],encapsulation:2}),n})();function Mf(n,a){var e;return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,a,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:a}function Rd(n){const a=n.children&&n.children.map(Rd),e=a?{...n,children:a}:{...n};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=Mo),e}function Pr(n){return n.outlet||tt}function is(n,a){const e=n.filter(t=>Pr(t)===a);return e.push(...n.filter(t=>Pr(t)!==a)),e}function Tc(n){var a;if(!n)return null;if(null!==(a=n.routeConfig)&&void 0!==a&&a._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class kd{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),_l(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Lr(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,r[c],t),delete r[c]}),Oi(r,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const c=t.getContext(r.outlet);c&&this.deactivateChildRoutes(a,e,c.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=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);if(t&&t.outlet){const c=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],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=Lr(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hs(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Cd(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(_l(r),r===l)if(r.component){const s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,s.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),_l(o.route.value),this.activateChildRoutes(a,null,s.children)}else{var c;const o=Tc(r.snapshot),d=null!==(c=o?.get(i._Vd))&&void 0!==c?c:null;s.attachRef=null,s.route=r,s.resolver=d,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(a,null,s.children)}}else this.activateChildRoutes(a,null,t)}}class Ps{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Fe{constructor(a,e){this.component=a,this.route=e}}function uh(n,a,e){const t=n._root;return Zt(t,a?a._root:null,e,[t.value])}function yl(n,a,e){return(Tc(a)??e).get(n)}function Zt(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Lr(a);return n.children.forEach(c=>{(function xc(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,c=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const o=function hh(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!ga(n.url,a.url);case"pathParamsOrQueryParamsChange":return!ga(n.url,a.url)||!yt(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ka(n,a)||!yt(n.queryParams,a.queryParams);default:return!Ka(n,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Ps(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Zt(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fe(s.outlet.component,c))}else c&&Rs(a,s,r),r.canActivateChecks.push(new Ps(t)),Zt(n,null,l.component?s?s.children:null:e,t,r)})(c,l[c.value.outlet],e,t.concat([c.value]),r),delete l[c.value.outlet]}),Oi(l,(c,s)=>Rs(c,e.getContext(s),r)),r}function Rs(n,a,e){const t=Lr(n),r=n.value;Oi(t,(l,c)=>{Rs(l,r.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Fe(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function ks(n){return"function"==typeof n}function Ec(n){return n instanceof Ga.K||"EmptyError"===n?.name}const Ma=Symbol("INITIAL_VALUE");function Rr(){return(0,It.w)(n=>(0,fa.a)(n.map(a=>a.pipe((0,dt.q)(1),ti(Ma)))).pipe((0,At.U)(a=>{for(const e of a)if(!0!==e){if(e===Ma)return Ma;if(!1===e||e instanceof ui)return e}return!0}),(0,Yt.h)(a=>a!==Ma),(0,dt.q)(1)))}function Dc(n){return(0,nl.z)((0,gi.b)(a=>{if(Zr(a))throw bf(0,a)}),(0,At.U)(a=>!0===a))}const Hc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(n,a,e,t,r){const l=Id(n,a,e);return l.matched?function Cl(n,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function vf(n){return n&&ks(n.canMatch)}(s)?s.canMatch(a,e):s(a,e);return Ni(o)});return(0,$e.of)(l).pipe(Rr(),Dc())}(t=Mf(a,t),a,e).pipe((0,At.U)(c=>!0===c?l:{...Hc})):(0,$e.of)(l)}function Id(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?{...Hc}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const l=(a.matcher||yn)(e,n,a);if(!l)return{...Hc};const c={};Oi(l.posParams,(o,d)=>{c[d]=o.path});const s=l.consumed.length>0?{...c,...l.consumed[l.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:l.consumed,remainingSegments:e.slice(l.consumed.length),parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function vl(n,a,e,t,r="corrected"){if(e.length>0&&function gh(n,a,e){return e.some(t=>Lc(n,a,t)&&Pr(t)!==tt)}(n,e,t)){const c=new Wt(a,function Xr(n,a,e,t){const r={};r[tt]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Pr(l)!==tt){const c=new Wt([],{});c._sourceSegment=n,c._segmentIndexShift=a.length,r[Pr(l)]=c}return r}(n,a,t,new Wt(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Hf(n,a,e){return e.some(t=>Lc(n,a,t))}(n,e,t)){const c=new Wt(n.segments,function Tl(n,a,e,t,r,l){const c={};for(const s of t)if(Lc(n,e,s)&&!r[Pr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,c[Pr(s)]=o}return{...r,...c}}(n,a,e,t,n.children,r));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Lc(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Os(n,a,e,t){return!!(Pr(n)===t||t!==tt&&Lc(a,e,n))&&("**"===n.path||Id(a,n,e).matched)}function vo(n,a,e){return 0===a.length&&!n.children[e]}const Pc=!1;class Bd{constructor(a){this.segmentGroup=a||null}}class Nd{constructor(a){this.urlTree=a}}function or(n){return(0,Un._)(new Bd(n))}function To(n){return(0,Un._)(new Nd(n))}class Rc{constructor(a,e,t,r,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const a=vl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,tt).pipe((0,At.U)(l=>this.createUrlTree(Ds(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ai.K)(l=>{if(l instanceof Nd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Bd?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,tt).pipe((0,At.U)(r=>this.createUrlTree(Ds(r),a.queryParams,a.fragment))).pipe((0,ai.K)(r=>{throw r instanceof Bd?this.noMatchError(r):r}))}noMatchError(a){return new i.vHH(4002,Pc)}createUrlTree(a,e,t){const r=_o(a);return new ui(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,At.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,Hn.D)(r).pipe((0,yr.b)(l=>{const c=t.children[l],s=is(e,l);return this.expandSegmentGroup(a,s,c,l).pipe((0,At.U)(o=>({segment:o,outlet:l})))}),U((l,c)=>(l[c.outlet]=c.segment,l),{}),_e())}expandSegment(a,e,t,r,l,c){return(0,Hn.D)(t).pipe((0,yr.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,c).pipe((0,ai.K)(d=>{if(d instanceof Bd)return(0,$e.of)(null);throw d}))),(0,Ar.P)(s=>!!s),(0,ai.K)((s,o)=>{if(Ec(s))return vo(e,r,l)?(0,$e.of)(new Wt([],{})):or(e);throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,c,s){return Os(r,e,l,c)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,c):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c):or(e):or(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?To(l):this.lineralizeSegments(t,l).pipe((0,Ti.z)(c=>{const s=new Wt(c,{});return this.expandSegment(a,s,e,c,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){const{matched:s,consumedSegments:o,remainingSegments:d,positionalParamSegments:u}=Id(e,r,l);if(!s)return or(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?To(h):this.lineralizeSegments(r,h).pipe((0,Ti.z)(f=>this.expandSegment(a,e,t,f.concat(d),c,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){return"**"===t.path?(a=Mf(t,a),t.loadChildren?(t._loadedRoutes?(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,At.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}))):Co(e,t,r,a).pipe((0,It.w)(({matched:c,consumedSegments:s,remainingSegments:o})=>{var d;return c?(a=null!==(d=t._injector)&&void 0!==d?d:a,this.getChildConfig(a,t,r).pipe((0,Ti.z)(h=>{var f;const b=null!==(f=h.injector)&&void 0!==f?f:a,N=h.routes,{segmentGroup:X,slicedSegments:pe}=vl(e,s,o,N),Pe=new Wt(X.segments,X.children);if(0===pe.length&&Pe.hasChildren())return this.expandChildren(b,N,Pe).pipe((0,At.U)(oa=>new Wt(s,oa)));if(0===N.length&&0===pe.length)return(0,$e.of)(new Wt(s,{}));const _t=Pr(t)===l;return this.expandSegment(b,Pe,N,pe,_t?tt:l,!0).pipe((0,At.U)(Ut=>new Wt(s.concat(Ut.segments),Ut.children)))}))):or(e)}))}getChildConfig(a,e,t){return e.children?(0,$e.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,$e.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Df(n,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function wg(n){return n&&ks(n.canLoad)}(s)?s.canLoad(a,e):s(a,e);return Ni(o)});return(0,$e.of)(l).pipe(Rr(),Dc())}(a,e,t).pipe((0,Ti.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,gi.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Pf(n){return(0,Un._)(Af(Pc,3))}())):(0,$e.of)({routes:[],injector:a})}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[tt])return(0,Un._)(new i.vHH(4e3,Pc));r=r.children[tt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new ui(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return Oi(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 c={};return Oi(e.children,(s,o)=>{c[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,c)}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 i.vHH(4001,Pc);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class Is{}class v{constructor(a,e,t,r,l,c,s,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=s,this.urlSerializer=o}recognize(){const a=vl(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,tt).pipe((0,At.U)(e=>{if(null===e)return null;const t=new Aa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qr(t,e),l=new Ls(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=xd(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Hn.D)(Object.keys(t.children)).pipe((0,yr.b)(r=>{const l=t.children[r],c=is(e,r);return this.processSegmentGroup(a,c,l,r)}),U((r,l)=>r&&l?(r.push(...l),r):null),nt(r=>null!==r),(0,re.d)(null),_e(),(0,At.U)(r=>{if(null===r)return null;const l=$(r);return function H(n){n.sort((a,e)=>a.value.outlet===tt?-1:e.value.outlet===tt?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,r,l){return(0,Hn.D)(e).pipe((0,yr.b)(c=>{var s;return this.processSegmentAgainstRoute(null!==(s=c._injector)&&void 0!==s?s:a,c,t,r,l)}),(0,Ar.P)(c=>!!c),(0,ai.K)(c=>{if(Ec(c))return vo(t,r,l)?(0,$e.of)([]):(0,$e.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,r,l){if(e.redirectTo||!Os(e,t,r,l))return(0,$e.of)(null);let c;if("**"===e.path){var s,o;const d=r.length>0?Bi(r).parameters:{},u=ft(t)+r.length,h=new Aa(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(s=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==s?s:null,e,we(t),u,cn(e),u);c=(0,$e.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else c=Co(t,e,r,a).pipe((0,At.U)(({matched:d,consumedSegments:u,remainingSegments:h,parameters:f})=>{var b,N;if(!d)return null;const X=ft(t)+u.length;return{snapshot:new Aa(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(b=null!==(N=e.component)&&void 0!==N?N:e._loadedComponent)&&void 0!==b?b:null,e,we(t),X,cn(e),X),consumedSegments:u,remainingSegments:h}}));return c.pipe((0,It.w)(d=>{var u,h;if(null===d)return(0,$e.of)(null);const{snapshot:f,consumedSegments:b,remainingSegments:N}=d;a=null!==(u=e._injector)&&void 0!==u?u:a;const X=null!==(h=e._loadedInjector)&&void 0!==h?h:a,pe=function O(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:_t}=vl(t,b,N,pe.filter(Ut=>void 0===Ut.redirectTo),this.relativeLinkResolution);if(0===_t.length&&Pe.hasChildren())return this.processChildren(X,pe,Pe).pipe((0,At.U)(Ut=>null===Ut?null:[new Qr(f,Ut)]));if(0===pe.length&&0===_t.length)return(0,$e.of)([new Qr(f,[])]);const Rt=Pr(e)===l;return this.processSegment(X,pe,Pe,_t,Rt?tt:l).pipe((0,At.U)(Ut=>null===Ut?null:[new Qr(f,Ut)]))}))}}function z(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function $(n){const a=[],e=new Set;for(const t of n){if(!z(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=$(t.children);a.push(new Qr(t.value,r))}return a.filter(t=>!e.has(t))}function we(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ft(n){var a;let e=n,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function Mi(n){return n.data||{}}function cn(n){return n.resolve||{}}const Ir=Symbol("RouteTitle");function Tg(n){return"string"==typeof n.title||null===n.title}function kf(n){return(0,It.w)(a=>{const e=n(a);return e?(0,Hn.D)(e).pipe((0,At.U)(()=>a)):(0,$e.of)(a)})}let xg=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var l;t=null!==(l=this.getResolvedTitleForRoute(r))&&void 0!==l?l:t,r=r.children.find(c=>c.outlet===tt)}return t}getResolvedTitleForRoute(e){return e.data[Ir]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(ns)},providedIn:"root"}),n})(),ns=(()=>{class n extends xg{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(se))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class kc{}class My extends class yy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Of=new i.OlP("",{providedIn:"root",factory:()=>({})}),If=new i.OlP("ROUTES");let bh=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,$e.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Ni(e.loadComponent()).pipe((0,gi.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),ii(()=>{this.componentLoaders.delete(e)})),r=new oc(t,()=>new De.x).pipe(Ts());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,At.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,d,u=!1;Array.isArray(s)?d=s:(o=s.create(e).injector,d=Gr(o.get(If,[],i.XFs.Self|i.XFs.Optional)));return{routes:d.map(Rd),injector:o}}),ii(()=>{this.childrenLoaders.delete(t)})),c=new oc(l,()=>new De.x).pipe(Ts());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Ni(e()).pipe((0,Ti.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,$e.of)(t):(0,Hn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Cy{}class vy{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Ty(n){throw n}function RT(n,a,e){return a.parse("/")}const xy={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wa(){var n,a;const e=(0,i.f3M)(_d),t=(0,i.f3M)(ya),r=(0,i.f3M)(w.Ye),l=(0,i.f3M)(i.zs3),c=(0,i.f3M)(i.Sil),s=null!==(n=(0,i.f3M)(If,{optional:!0}))&&void 0!==n?n:[],o=null!==(a=(0,i.f3M)(Of,{optional:!0}))&&void 0!==a?a:{},d=(0,i.f3M)(ns),u=(0,i.f3M)(xg,{optional:!0}),h=(0,i.f3M)(Cy,{optional:!0}),f=(0,i.f3M)(kc,{optional:!0}),b=new Ai(null,e,t,r,l,c,Gr(s));return h&&(b.urlHandlingStrategy=h),f&&(b.routeReuseStrategy=f),b.titleStrategy=u??d,function Eg(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)}(o,b),b}let Ai=(()=>{class n{constructor(e,t,r,l,c,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 De.x,this.errorHandler=Ty,this.malformedUriErrorHandler=RT,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,$e.of)(void 0),this.urlHandlingStrategy=new vy,this.routeReuseStrategy=new My,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(bh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new oh(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Cc(f)),this.ngModule=c.get(i.h0i),this.console=c.get(i.c2e);const h=c.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function al(){return new ui(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=vd(this.currentUrlTree,this.rootComponentType),this.transitions=new Zi({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,Yt.h)(r=>0!==r.id),(0,At.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,It.w)(r=>{let l=!1,c=!1;return(0,$e.of)(r).pipe((0,gi.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,It.w)(s=>{const o=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Bf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,It.w)(h=>{const f=this.transitions.getValue();return t.next(new yc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Ur.E:Promise.resolve(h)}),function _h(n,a,e,t){return(0,It.w)(r=>function Rf(n,a,e,t,r){return new Rc(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,At.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,gi.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Or(n,a,e,t,r,l){return(0,Ti.z)(c=>function Xt(n,a,e,t,r,l,c="emptyOnly",s="legacy"){return new v(n,a,e,t,r,c,s,l).recognize().pipe((0,It.w)(o=>null===o?function Vd(n){return new Ln.y(a=>a.error(n))}(new Is):(0,$e.of)(o)))}(n,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,r,l).pipe((0,At.U)(s=>({...c,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,gi.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"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 _f(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:N,restoredState:X,extras:pe}=s,Pe=new yc(f,this.serializeUrl(b),N,X);t.next(Pe);const _t=vd(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:_t,urlAfterRedirects:b,extras:{...pe,skipLocationChange:!1,replaceUrl:!1}},(0,$e.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),Ur.E}),(0,gi.b)(s=>{const o=new hl(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,At.U)(s=>r={...s,guards:uh(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function ph(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,$e.of)({...e,guardsResult:!0}):function Wi(n,a,e,t){return(0,Hn.D)(n).pipe((0,Ti.z)(r=>function Ef(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 c=l.map(s=>{const o=yl(s,a,r);return Ni(function wr(n){return n&&ks(n.canDeactivate)}(o)?o.canDeactivate(n,a,e,t):o(n,a,e,t)).pipe((0,Ar.P)())});return(0,$e.of)(c).pipe(Rr())}(r.component,r.route,e,a,t)),(0,Ar.P)(r=>!0!==r,!0))}(c,t,r,n).pipe((0,Ti.z)(s=>s&&function Sc(n){return"boolean"==typeof n}(s)?function fh(n,a,e,t){return(0,Hn.D)(a).pipe((0,yr.b)(r=>(0,$a.z)(function kr(n,a){return null!==n&&a&&a(new wd(n)),(0,$e.of)(!0)}(r.route.parent,t),function mh(n,a){return null!==n&&a&&a(new pl(n)),(0,$e.of)(!0)}(r.route,t),function Sf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function Cf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(c)).filter(c=>null!==c).map(c=>rr(()=>{const s=c.guards.map(o=>{const d=yl(o,c.node,e);return Ni(function Od(n){return n&&ks(n.canActivateChild)}(d)?d.canActivateChild(t,n):d(t,n)).pipe((0,Ar.P)())});return(0,$e.of)(s).pipe(Rr())}));return(0,$e.of)(l).pipe(Rr())}(n,r.path,e),function wl(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=>rr(()=>{const c=yl(l,a,e);return Ni(function Ml(n){return n&&ks(n.canActivate)}(c)?c.canActivate(a,n):c(a,n)).pipe((0,Ar.P)())}));return(0,$e.of)(r).pipe(Rr())}(n,r.route,e))),(0,Ar.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,At.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,gi.b)(s=>{if(r.guardsResult=s.guardsResult,Zr(s.guardsResult))throw bf(0,s.guardsResult);const o=new yd(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,Yt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),kf(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,gi.b)(o=>{const d=new Md(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}),(0,It.w)(o=>{let d=!1;return(0,$e.of)(o).pipe(function Cg(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,Hn.D)(r).pipe((0,yr.b)(c=>function vg(n,a,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!Tg(r)&&(l[Ir]=r.title),function xl(n,a,e,t){const r=function by(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,Hn.D)(r).pipe((0,Ti.z)(c=>function Ay(n,a,e,t){const r=yl(n,a,t);return Ni(r.resolve?r.resolve(a,e):r(a,e))}(n[c],a,e,t).pipe((0,Ar.P)(),(0,gi.b)(s=>{l[c]=s}))),B(1),(0,xi.h)(l),(0,ai.K)(c=>Ec(c)?Ur.E:(0,Un._)(c)))}(l,n,a,t).pipe((0,At.U)(c=>(n._resolvedData=c,n.data=xd(n,e).resolve,r&&Tg(r)&&(n.data[Ir]=r.title),null)))}(c.route,t,n,a)),(0,gi.b)(()=>l++),B(1),(0,Ti.z)(c=>l===r.length?(0,$e.of)(e):Ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,gi.b)({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,gi.b)(o=>{const d=new wc(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}))}),kf(s=>{const o=d=>{var u;const h=[];null!==(u=d.routeConfig)&&void 0!==u&&u.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe((0,gi.b)(f=>{d.component=f}),(0,At.U)(()=>{})));for(const f of d.children)h.push(...o(f));return h};return(0,fa.a)(o(s.targetSnapshot.root)).pipe((0,re.d)(),(0,dt.q)(1))}),kf(()=>this.afterPreactivation()),(0,At.U)(s=>{const o=function bg(n,a,e){const t=bl(n,a._root,e?e._root:void 0);return new lh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:o}}),(0,gi.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,At.U)(t=>(new kd(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,gi.b)({next(){l=!0},complete(){l=!0}}),ii(()=>{var s;l||c||this.cancelNavigationTransition(r,"",1),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,ai.K)(s=>{if(c=!0,Dd(s)){yf(s)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new Mc(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(d),yf(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Bf(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const d=new Dr(r.id,this.serializeUrl(r.extractedUrl),s,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(d);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return Ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},c=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(c){const o={...c};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Rd),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:c,queryParamsHandling:s,preserveFragment:o}=t,d=r||this.routerState.root,u=o?this.currentUrlTree.fragment:c;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),ih(d,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Zr(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 Dg(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Jn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,c){if(this.disposed)return Promise.resolve(!1);let s,o,d;c?(s=c.resolve,o=c.reject,d=c.promise):d=new Promise((N,X)=>{s=N,o=X});const u=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(l.replaceUrl||l.skipLocationChange){var f;h=null!==(f=this.browserPageId)&&void 0!==f?f:0}else{var b;h=(null!==(b=this.browserPageId)&&void 0!==b?b:0)+1}else h=0;return this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:o,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(N=>Promise.reject(N))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...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){if("computed"===this.canceledNavigationResolution){var r,l;const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Mc(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),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:function(){return wa()},providedIn:"root"}),n})();function Bf(n){return"imperative"!==n}let So=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Qn),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})(),yh=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof Jn&&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,c){if(0!==e||t||r||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(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:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Qn),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})();class Mh{}let Nf=(()=>{class n{preload(e,t){return t().pipe((0,ai.K)(()=>(0,$e.of)(null)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sy=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn),(0,yr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var l,c;o.providers&&!o._injector&&(o._injector=(0,i.MMx)(o.providers,e,`Route: ${o.path}`));const d=null!==(l=o._injector)&&void 0!==l?l:e,u=null!==(c=o._loadedInjector)&&void 0!==c?c:d;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(d,o));else if(o.children||o._loadedRoutes){var s;r.push(this.processRoutes(u,null!==(s=o.children)&&void 0!==s?s:o._loadedRoutes))}}return(0,Hn.D)(r).pipe((0,di.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,$e.of)(null);const l=r.pipe((0,Ti.z)(c=>{var s;return null===c?(0,$e.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(null!==(s=c.injector)&&void 0!==s?s:e,c.routes))}));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Hn.D)([l,c]).pipe((0,di.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Mh),i.LFG(bh))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ey=new i.OlP("");let Lg=(()=>{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 yc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fl&&(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 fl(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 Pg=new i.OlP("ROUTER_FORROOT_GUARD"),Rg=new i.OlP(""),kg=[w.Ye,{provide:_d,useClass:_a},{provide:Ai,useFactory:wa},ya,{provide:Qn,useFactory:function wh(n){return n.routerState.root},deps:[Ai]},bh];function Og(){return new i.PXZ("Router",Ai)}let Oc=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[kg,[],Ch(e),{provide:Pg,useFactory:Hy,deps:[[Ai,new i.FiY,new i.tp0]]},{provide:Of,useValue:t||{}},null!=t&&t.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Ey,useFactory:()=>{const n=(0,i.f3M)(Ai),a=(0,i.f3M)(w.EM),e=(0,i.f3M)(Of);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Lg(n,a,e)}},null!=t&&t.preloadingStrategy?Vf(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Og},null!=t&&t.initialNavigation?Ly(t):[],[{provide:Ng,useFactory:Bg},{provide:i.tb,multi:!0,useExisting:Ng}]]}}static forChild(e){return{ngModule:n,providers:[Ch(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pg,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Hy(n){return"guarded"}function Ch(n){return[{provide:If,multi:!0,useValue:n}]}function Bg(){const n=(0,i.f3M)(i.zs3);return a=>{var e,t;const r=n.get(i.z2F);if(a!==r.components[0])return;const l=n.get(Ai),c=n.get(Vg);1===n.get(Fg)&&l.initialNavigation(),null===(e=n.get(Rg,null,i.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=n.get(Ey,null,i.XFs.Optional))||void 0===t||t.init(),l.resetRootComponentType(r.componentTypes[0]),c.next(),c.complete()}}const Ng=new i.OlP("");function Ly(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ai);return()=>{n.setUpLocationChangeListener()}}},{provide:Fg,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:Fg,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const a=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const l=n.get(Ai),c=n.get(Vg);(function t(r){n.get(Ai).events.pipe((0,Yt.h)(c=>c instanceof Jn||c instanceof Mc||c instanceof Dr),(0,At.U)(c=>c instanceof Jn||c instanceof Mc&&(0===c.code||1===c.code)&&null),(0,Yt.h)(c=>null!==c),(0,dt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||c.closed?(0,$e.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Vg=new i.OlP("",{factory:()=>new De.x}),Fg=new i.OlP("",{providedIn:"root",factory:()=>1});function Vf(n){return[Sy,{provide:Rg,useExisting:Sy},{provide:Mh,useExisting:n}]}let vh;try{vh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vh=!1}let Sl,Vi=(()=>{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&&!vh)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ff=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Th(){if(Sl)return Sl;if("object"!=typeof document||!document)return Sl=new Set(Ff),Sl;let n=document.createElement("input");return Sl=new Set(Ff.filter(a=>(n.setAttribute("type",a),n.type===a))),Sl}let xh,jd,Do,Yd;function Kr(n){return function Oy(){if(null==xh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xh=!0}))}finally{xh=xh||!1}return xh}()?n:!!n.capture}function Ho(){if(null==Do){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Do=!1,Do;if("scrollBehavior"in document.documentElement.style)Do=!0;else{const n=Element.prototype.scrollTo;Do=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Do}function qd(){if("object"!=typeof document||!document)return 0;if(null==jd){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),jd=0,0===n.scrollLeft&&(n.scrollLeft=1,jd=0===n.scrollLeft?1:2),n.remove()}return jd}function Eh(n){if(function Sh(){if(null==Yd){const n=typeof document<"u"?document.head:null;Yd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Yd}()){const a=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Wd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function lr(n){return n.composedPath?n.composedPath()[0]:n.target}function Bs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function wn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var Zd=T(8372);function Oh(n){return(0,Yt.h)((a,e)=>n<=e)}function Ih(n,a=Me.y){return n=n??rM,(0,Gn.e)((e,t)=>{let r,l=!0;e.subscribe((0,br.x)(t,c=>{const s=a(c);(l||!n(r,s))&&(l=!1,r=s,t.next(c))}))})}function rM(n,a){return n===a}var l1=T(5032);function at(n){return(0,Gn.e)((a,e)=>{(0,Wr.Xf)(n).subscribe((0,br.x)(e,()=>e.complete(),l1.Z)),!e.closed&&a.subscribe(e)})}function je(n){return null!=n&&"false"!=`${n}`}function Ji(n,a=0){return qf(n)?Number(n):a}function qf(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Jd(n){return Array.isArray(n)?n:[n]}function Rn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fi(n){return n instanceof i.SBq?n.nativeElement:n}let Yf=(()=>{class n{create(e){return typeof MutationObserver>"u"?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})(),c1=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Fi(e);return new Ln.y(r=>{const c=this._observeElement(t).subscribe(r);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,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(Yf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bh=(()=>{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=Ji(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Zd.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(c1),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})(),El=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yf]}),n})();const Qd=new Set;let Vs,d1=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u1}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Wf(n){if(!Qd.has(n))try{Vs||(Vs=document.createElement("style"),Vs.setAttribute("type","text/css"),document.head.appendChild(Vs)),Vs.sheet&&(Vs.sheet.insertRule(`@media ${n} {body{ }}`,0),Qd.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function u1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Nh=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Bc(Jd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Bc(Jd(e)).map(c=>this._registerQuery(c).observable);let l=(0,fa.a)(r);return l=(0,$a.z)(l.pipe((0,dt.q)(1)),l.pipe(Oh(1),(0,Zd.b)(0))),l.pipe((0,At.U)(c=>{const s={matches:!1,breakpoints:{}};return c.forEach(({matches:o,query:d})=>{s.matches=s.matches||o,s.breakpoints[d]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Ln.y(c=>{const s=o=>this._zone.run(()=>c.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(ti(t),(0,At.U)(({matches:c})=>({query:e,matches:c})),at(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(d1),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bc(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function Xd(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Gf="cdk-describedby-message",$f="cdk-describedby-host";let Vh=0,p1=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Vh++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Vh++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Fh(t,r);"string"!=typeof t?(f1(t,this._id),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 c=Fh(t,r);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const s=this._messageRegistry.get(c);s&&0===s.referenceCount&&this._deleteMessageElement(c)}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(`[${$f}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Gf));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function lM(n,a,e){const t=Xd(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($f,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function cM(n,a,e){const r=Xd(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($f)}_isElementDescribedByMessage(e,t){const r=Xd(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=r.indexOf(c)}_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(Vi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function f1(n,a){n.id||(n.id=`${Gf}-${a}-${Vh++}`)}class m1{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,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,gi.b)(e=>this._pressedLetters.push(e)),(0,Zd.b)(a),(0,Yt.h)(()=>this._pressedLetters.length>0),(0,At.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||wn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ta extends m1{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class zh extends m1{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 Kd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function hM(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 uM(n){try{return n.frameElement}catch{return null}}(function _M(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Zf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Zf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _1(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 b1(n){return!function g1(n){return function mM(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function pM(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function fM(n){return function gM(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vt(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vt(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Zf(n){if(!Vt(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 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,dt.q)(1)).subscribe(a)}}let eu=(()=>{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(Kd),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tu(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function as(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 MM=new i.OlP("cdk-input-modality-detector-options"),Jf={ignoreKeys:[18,17,224,91,16]},Nc=Kr({passive:!0,capture:!0});let kx=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Zi(null),this._lastTouchMs=0,this._onKeydown=c=>{var s,o;null!==(s=this._options)&&void 0!==s&&null!==(o=s.ignoreKeys)&&void 0!==o&&o.some(d=>d===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=lr(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(tu(c)?"keyboard":"mouse"),this._mostRecentTarget=lr(c))},this._onTouchstart=c=>{as(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=lr(c))},this._options={...Jf,...l},this.modalityDetected=this._modality.pipe(Oh(1)),this.modalityChanged=this.modalityDetected.pipe(Ih()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Nc),r.addEventListener("mousedown",this._onMousedown,Nc),r.addEventListener("touchstart",this._onTouchstart,Nc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Nc),document.removeEventListener("mousedown",this._onMousedown,Nc),document.removeEventListener("touchstart",this._onTouchstart,Nc))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(MM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ox=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ix(){return null}}),wM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let A1=(()=>{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,c;return 1===t.length&&"number"==typeof t[0]?c=t[0]:[l,c]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==c&&r&&(c=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,c){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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let d=lr(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const r=Fi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=Eh(r)||this._getDocument(),c=this._elementInfo.get(r);if(c)return t&&(c.checkChildren=!0),c.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Fi(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=Fi(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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=lr(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,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fs),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fs)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(at(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,Fs),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fs),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(Nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,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}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(qh,iu,y1),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qh,iu):2===t&&e.add(qh,y1)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[El]}),n})();const TM=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function xM(){return(0,i.f3M)(w.K0)}}),SM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Fn=(()=>{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 w1(n){var a;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?SM.test(navigator.language)?"rtl":"ltr":"rtl"===e?"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(TM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function DM(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 Bx(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 Vc=["*"];let v1=(()=>{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})(),Uh=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const T1=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ta(){return!0}});let gt=(()=>{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!Bs()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1),i.LFG(T1,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ro,Ro]}),n})();function xa(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 ss(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 Sa(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 Oo(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?Ji(e):this.defaultTabIndex}}}function E1(n){return class extends n{constructor(...a){super(...a),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 nu(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ln.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const Gh=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Xf(){return(0,i.f3M)(i.soG)}});class Br{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Fc=new i.OlP("mat-date-formats"),Nx=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Kf(n,a){const e=Array(n);for(let t=0;t{class n extends Br{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 Kf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Kf(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 Kf(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,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Nx.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(Gh,8),i.LFG(Vi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const HM={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:Br,useClass:D1}]}),n})(),e0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Fc,useValue:HM}],imports:[LM]}),n})(),zc=(()=>{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})(),PM=(()=>{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 jc(n,a,e){n.nativeElement.classList.toggle(a,e)}let $h=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();class n0{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const RM={enterDuration:225,exitDuration:150},H1=Kr({passive:!0}),kM=["mousedown","touchstart"],OM=["mouseup","mouseleave","touchend","touchcancel"];class IM{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...RM,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const c=t.radius||function Fx(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,d=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-c+"px",u.style.top=o-c+"px",u.style.height=2*c+"px",u.style.width=2*c+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,N="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,X=new n0(this,u,t,N);u.style.transform="scale3d(1, 1, 1)",X.state=0,t.persistent||(this._mostRecentTransientRipple=X);let pe=null;return!N&&(d||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(X),_t=()=>this._destroyRipple(X);u.addEventListener("transitionend",Pe),u.addEventListener("transitioncancel",_t),pe={onTransitionEnd:Pe,onTransitionCancel:_t}}),this._activeRipples.set(X,pe),(N||!d)&&this._finishRippleTransition(X),X}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...RM,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Fi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(kM))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(OM),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=tu(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,H1)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(kM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}),this._pointerUpEventsRegistered&&OM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}))}}const BM=new i.OlP("mat-ripple-global-options");let ia=(()=>{class n{constructor(e,t,r,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new IM(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Vi),i.Y36(BM,8),i.Y36(i.QbO,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})(),na=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),zs=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt]}),n})();const r0=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),au=new i.OlP("MatOptgroup");let Io=0;class a0{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let FM=(()=>{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-"+Io++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=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)&&!wn(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 a0(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})(),js=(()=>{class n extends FM{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(r0,8),i.Y36(au,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:Vc,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,DM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Bx,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))},dependencies:[ia,w.O5,zs],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function s0(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let c=0;ce+t?Math.max(0,n-t+a):e}let su=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,w.ez,gt,ru]}),n})();const zM=["mat-button",""],Zh=["*"],qc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Jh=ss(xa(Sa(class{constructor(n){this._elementRef=n}})));let St=(()=>{class n extends Jh{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 qc)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(vr),i.Y36(i.QbO,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(ia,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:zM,ngContentSelectors:Zh,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)(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()))},dependencies:[ia],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),Ea=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();var P1=T(1144),Da=T(576),Qh=T(3268);const R1=["addListener","removeListener"],c0=["addEventListener","removeEventListener"],jM=["on","off"];function qs(n,a,e,t){if((0,Da.m)(e)&&(t=e,e=void 0),t)return qs(n,a,e).pipe((0,Qh.Z)(t));const[r,l]=function I1(n){return(0,Da.m)(n.addEventListener)&&(0,Da.m)(n.removeEventListener)}(n)?c0.map(c=>s=>n[c](a,s,e)):function O1(n){return(0,Da.m)(n.addListener)&&(0,Da.m)(n.removeListener)}(n)?R1.map(k1(n,a)):function qM(n){return(0,Da.m)(n.on)&&(0,Da.m)(n.off)}(n)?jM.map(k1(n,a)):[];if(!r&&(0,P1.z)(n))return(0,Ti.z)(c=>qs(c,a,e))((0,Wr.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new Ln.y(c=>{const s=(...o)=>c.next(1l(s)})}function k1(n,a){return e=>t=>n[e](a,t)}var d0=T(4408);const lu={schedule(n){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=lu;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(l=>{e=void 0,n(l)});return new Nt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:a}=lu;return(a?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:a}=lu;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var u0=T(7565);const WM=new class YM extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Nr extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=lu.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(lu.cancelAnimationFrame(e),a._scheduled=void 0)}});let Xh,h0=1;const Kh={};function B1(n){return n in Kh&&(delete Kh[n],!0)}const UM={setImmediate(n){const a=h0++;return Kh[a]=!0,Xh||(Xh=Promise.resolve()),Xh.then(()=>B1(a)&&n()),a},clearImmediate(n){B1(n)}},{setImmediate:$M,clearImmediate:N1}=UM,ep={setImmediate(...n){const{delegate:a}=ep;return(a?.setImmediate||$M)(...n)},clearImmediate(n){const{delegate:a}=ep;return(a?.clearImmediate||N1)(n)},delegate:void 0},tp=new class V1 extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class ZM extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ep.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ep.clearImmediate(e),a._scheduled=void 0)}});var Ha=T(4986),f0=T(2805);function m0(n,a=Ha.z){return function p0(n){return(0,Gn.e)((a,e)=>{let t=!1,r=null,l=null,c=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const d=r;r=null,e.next(d)}c&&e.complete()},o=()=>{l=null,c&&e.complete()};a.subscribe((0,br.x)(e,d=>{t=!0,r=d,l||(0,Wr.Xf)(n(d)).subscribe(l=(0,br.x)(e,s,o))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,f0.H)(n,a))}let Yc=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ln.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(m0(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,Yt.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=Fi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>qs(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(Vi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bo=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new Ln.y(c=>this.ngZone.runOutsideAngular(()=>qs(this.elementRef.nativeElement,"scroll").pipe(at(this._destroyed)).subscribe(c)))}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!=qd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==qd()?e.left=e.right:1==qd()&&(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;Ho()?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 c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?r:t:"end"==e&&(e=c?t:r),c&&2==qd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==qd()?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(Yc),i.Y36(i.R0b),i.Y36(Fn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),No=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,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(m0(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(Vi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),La=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Dl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ro,La,Ro,La]}),n})();class A0{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 Wc extends A0{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Hl extends A0{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class iw extends A0{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class y0{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Wc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Hl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof iw?(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 nw extends y0{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=c=>{const s=c.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=c,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||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let rp=(()=>{class n extends y0{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const c=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(s,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(c,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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return 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})(),Fo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var zi=T(6451);const M0=Ho();class w0{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=Rn(-this._previousScrollPosition.left),a.style.top=Rn(-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||"",c=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),M0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),M0&&(t.scrollBehavior=l,r.scrollBehavior=c)}}_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 C0{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 Y1{enable(){}disable(){}attach(){}}function v0(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function W1(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class rw{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();v0(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 aw=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Y1,this.close=c=>new C0(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new w0(this._viewportRuler,this._document),this.reposition=c=>new rw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yc),i.LFG(No),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class cu{constructor(a){if(this.scrollStrategy=new Y1,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 Kx{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let U1=(()=>{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})(),x0=(()=>{class n extends U1{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const s=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sw=(()=>{class n extends U1{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=lr(l)},this._clickListener=l=>{const c=lr(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let d=o.length-1;d>-1;d--){const u=o[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(c)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Vi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vr=(()=>{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||Bs()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Rn(this._config.width),a.height=Rn(this._config.height),a.minWidth=Rn(this._config.minWidth),a.minHeight=Rn(this._config.minHeight),a.maxWidth=Rn(this._config.maxWidth),a.maxHeight=Rn(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=Jd(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(at((0,zi.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const $n="cdk-overlay-connected-position-bounding-box",Ll=/([A-Za-z%]+)$/;class sp{constructor(a,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new De.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add($n),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let c;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),d=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(d,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,d,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!c||c.overlayFit.visibleAreao&&(o=u,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&zn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($n),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 c=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?c: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=Pl(e);let{x:c,y:s}=a,o=this._getOffset(r,"x"),d=this._getOffset(r,"y");o&&(c+=o),d&&(s+=d);let f=0-s,b=s+l.height-t.height,N=this._subtractOverflows(l.width,0-c,c+l.width-t.width),X=this._subtractOverflows(l.height,f,b),pe=N*X;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:X===l.height,fitsInViewportHorizontally:N==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,c=op(this._overlayRef.getConfig().minHeight),s=op(this._overlayRef.getConfig().minWidth),d=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=c&&c<=r)&&d}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=Pl(e),l=this._viewportRect,c=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),d=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?d||-c:a.xN&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-N/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),N=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>N&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-N/2)}return{top:c,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,c=this._overlayRef.getConfig().maxWidth;r.height=Rn(t.height),r.top=Rn(t.top),r.bottom=Rn(t.bottom),r.width=Rn(t.width),r.left=Rn(t.left),r.right=Rn(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=Rn(l)),c&&(r.maxWidth=Rn(c))}this._lastBoundingBoxSize=t,zn(this._boundingBox.style,r)}_resetBoundingBoxStyles(){zn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){zn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();zn(t,this._getExactOverlayY(e,a,u)),zn(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),d=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),d&&(s+=`translateY(${d}px)`),t.transform=s.trim(),c.maxHeight&&(r?t.maxHeight=Rn(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(r?t.maxWidth=Rn(c.maxWidth):l&&(t.maxWidth="")),zn(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=Rn(l.y),r}_getExactOverlayX(a,e,t){let c,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=Rn(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:W1(a,t),isOriginOutsideView:v0(a,t),isOverlayClipped:W1(e,t),isOverlayOutsideView:v0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Jd(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 zn(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function op(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Ll);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Pl(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 Rl="cdk-global-overlay-wrapper";class Gc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Rl),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:c,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||c&&"100%"!==c&&"100vw"!==c),d=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",N="",X="";o?X="flex-start":"center"===u?(X="center",f?N=h:b=h):f?"left"===u||"end"===u?(X="flex-end",b=h):("right"===u||"start"===u)&&(X="flex-start",N=h):"left"===u||"start"===u?(X="flex-start",b=h):("right"===u||"end"===u)&&(X="flex-end",N=h),a.position=this._cssPosition,a.marginLeft=o?"0":b,a.marginTop=d?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":N,e.justifyContent=X,e.alignItems=d?"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(Rl),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let $c=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Gc}flexibleConnectedTo(e){return new sp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(No),i.LFG(w.K0),i.LFG(Vi),i.LFG(Vr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zc=0,Cn=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=s,this._ngZone=o,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),c=new cu(e);return c.direction=c.direction||this._directionality.value,new Ys(l,t,r,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Zc++,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 nw(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(aw),i.LFG(Vr),i.LFG(i._Vd),i.LFG($c),i.LFG(x0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Fn),i.LFG(w.Ye),i.LFG(sw),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Jc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lp=new i.OlP("cdk-connected-overlay-scroll-strategy");let S0=(()=>{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})(),E0=(()=>{class n{constructor(e,t,r,l,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Nt.w0.EMPTY,this._attachSubscription=Nt.w0.EMPTY,this._detachSubscription=Nt.w0.EMPTY,this._positionSubscription=Nt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new 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 Hl(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=Jc);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&&!wn(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 cu({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 S0?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(nt(()=>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(Cn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(lp),i.Y36(Fn,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 $1={provide:lp,deps:[Cn],useFactory:function G1(n){return()=>n.scrollStrategies.reposition()}};let zo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cn,$1],imports:[Ro,Fo,Dl,Dl]}),n})();class D0{}const Ws="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Dt(n,a=null){return{type:4,styles:a,timings:n}}function hu(n,a=null){return{type:3,steps:n,options:a}}function J1(n,a=null){return{type:2,steps:n,options:a}}function Ie(n){return{type:6,styles:n,offset:null}}function kt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Us(n){return{type:5,steps:n}}function Pt(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function kl(n=null){return{type:9,options:n}}function Fr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function pu(n){Promise.resolve(null).then(n)}class Ol{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){pu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class P0{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?pu(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,s)=>Math.max(c,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}}const X1=["connectionContainer"],K1=["inputContainer"],R0=["label"];function k0(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function lw(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function e_(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 t_(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function i_(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function n_(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,e_,4,1,"ng-container",12),i.YNc(3,t_,1,0,"ng-content",12),i.YNc(4,i_,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 cw(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function r_(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 a_(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 O0(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 cp(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,O0,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 I0=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],s_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const B0=new i.OlP("MatError");let jo=(()=>{class n{constructor(e,t){this.id="mat-error-"+o_++,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:B0,useExisting:n}])]}),n})();const l_={transitionMessages:wi("transitionMessages",[kt("enter",Ie({opacity:1,transform:"translateY(0%)"})),Pt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),Dt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Qc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),uw=0;const N0=new i.OlP("MatHint");let hw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+uw++}}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:N0,useExisting:n}])]}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),c_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const pw=new i.OlP("MatPrefix"),V0=new i.OlP("MatSuffix");let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:V0,useExisting:n}])]}),n})(),F0=0;const fw=ss(class{constructor(n){this._elementRef=n}},"primary"),mw=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Xc=new i.OlP("MatFormField");let un=(()=>{class n extends fw{constructor(e,t,r,l,c,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=c,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F0++,this._labelId="mat-form-field-label-"+F0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=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(ti(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(at(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(at(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,zi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ti(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ti(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(at(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,qs(this._label.nativeElement,"transitionend").pipe((0,dt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(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*N+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,gt,El,gt]}),n})();function Kc(n){return n&&"function"==typeof n.connect}class Pa{applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;if(null==c.previousIndex){const f=t(c,s,o);d=e.createEmbeddedView(f.templateRef,f.context,f.index),u=1}else null==o?(e.remove(s),u=3):(d=e.get(s),e.move(d,o),u=2);var h;l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){}}class vn{constructor(a=!1,e,t=!0,r){this._multiple=a,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(a?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let zr=(()=>{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 dr=new i.OlP("_ViewRepeater");var f_=T(4742),m_=T(1810);function z0(...n){const a=(0,fo.jO)(n),{args:e,keys:t}=(0,f_.D)(n),r=new Ln.y(l=>{const{length:c}=e;if(!c)return void l.complete();const s=new Array(c);let o=c,d=c;for(let u=0;u{h||(h=!0,d--),s[u]=f},()=>o--,void 0,()=>{(!o||!h)&&(d||l.next(t?(0,m_.n)(t,s):s),l.complete())}))}});return a?r.pipe((0,Qh.Z)(a)):r}let g_=(()=>{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})(),Bl=(()=>{class n extends g_{}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 Xn=new i.OlP("NgValueAccessor"),gw={provide:Xn,useExisting:(0,i.Gpc)(()=>hn),multi:!0},_w=new i.OlP("CompositionEventMode");let hn=(()=>{class n extends g_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function __(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(_w,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([gw]),i.qOj]}),n})();function Ra(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function A_(n){return null!=n&&"number"==typeof n.length}const Tn=new i.OlP("NgValidators"),$s=new i.OlP("NgAsyncValidators"),q0=/^(?=.{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 Qi{static min(a){return function dp(n){return a=>{if(Ra(a.value)||Ra(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Ra(a.value)||Ra(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 W0(a)}static requiredTrue(a){return function up(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function U0(n){return Ra(n.value)||q0.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function G0(n){return a=>Ra(a.value)||!A_(a.value)?null:a.value.lengthA_(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Z0(n){if(!n)return mu;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(Ra(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 T_(a)}static composeAsync(a){return x_(a)}}function W0(n){return Ra(n.value)?{required:!0}:null}function mu(n){return null}function y_(n){return null!=n}function M_(n){return(0,i.QGY)(n)?(0,Hn.D)(n):n}function w_(n){let a={};return n.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function C_(n,a){return a.map(e=>e(n))}function v_(n){return n.map(a=>function bw(n){return!n.validate}(a)?a:e=>a.validate(e))}function T_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return w_(C_(e,a))}}function J0(n){return null!=n?T_(v_(n)):null}function x_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return z0(C_(e,a).map(M_)).pipe((0,At.U)(w_))}}function Q0(n){return null!=n?x_(v_(n)):null}function S_(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function E_(n){return n._rawValidators}function D_(n){return n._rawAsyncValidators}function X0(n){return n?Array.isArray(n)?n:[n]:[]}function hp(n,a){return Array.isArray(n)?n.includes(a):n===a}function H_(n,a){const e=X0(a);return X0(n).forEach(r=>{hp(e,r)||e.push(r)}),e}function L_(n,a){return X0(a).filter(e=>!hp(n,e))}class K0{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=J0(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Q0(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 Kn extends K0{get formDirective(){return null}get path(){return null}}class ra extends K0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class em{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let pn=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),td=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,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.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const _u="VALID",Nl="INVALID",Js="PENDING",Ii="DISABLED";function R_(n){return(bu(n)?n.validators:n)||null}function im(n){return Array.isArray(n)?J0(n):n||null}function fp(n,a){return(bu(a)?a.asyncValidators:n)||null}function k_(n){return Array.isArray(n)?Q0(n):n||null}function bu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function nm(n,a,e){const t=n.controls;if(!(a?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function rm(n,a,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class Au{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=im(this._rawValidators),this._composedAsyncValidatorFn=k_(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===_u}get invalid(){return this.status===Nl}get pending(){return this.status==Js}get disabled(){return this.status===Ii}get enabled(){return this.status!==Ii}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=im(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=k_(a)}addValidators(a){this.setValidators(H_(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(H_(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(L_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(L_(a,this._rawAsyncValidators))}hasValidator(a){return hp(this._rawValidators,a)}hasAsyncValidator(a){return hp(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=Js,!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=Ii,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=_u,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_u||this.status===Js)&&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()?Ii:_u}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Js,this._hasOwnPendingAsyncValidator=!0;const e=M_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Ii:this.errors?Nl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Js)?Js:this._anyControlsHaveStatus(Nl)?Nl:_u}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){bu(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mp extends Au{constructor(a,e,t){super(R_(e),fp(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={}){rm(this,0,a),Object.keys(a).forEach(t=>{nm(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,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}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function gp(n,a){return[...a.path,n]}function Mu(n,a){var e,t;_p(n,a),a.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function Cu(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&I_(n,a)})}(n,a),function Sw(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 vu(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&I_(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function O_(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Vl(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),bp(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function wu(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _p(n,a){const e=E_(n);null!==a.validator?n.setValidators(S_(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=D_(n);null!==a.asyncValidator?n.setAsyncValidators(S_(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();wu(a._rawValidators,r),wu(a._rawAsyncValidators,r)}function bp(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=E_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=D_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return wu(a._rawValidators,t),wu(a._rawAsyncValidators,t),e}function I_(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function B_(n,a){_p(n,a)}function am(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Lw(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function z_(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===hn?e=l:function Hw(n){return Object.getPrototypeOf(n.constructor)===Bl}(l)?t=l:r=l}),r||t||e||null}const j_={provide:Kn,useExisting:(0,i.Gpc)(()=>Fl)},Yo=(()=>Promise.resolve(null))();let Fl=(()=>{class n extends Kn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new mp({},J0(e),Q0(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Yo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Mu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path),r=new mp({});B_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Yo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Lw(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(Tn,10),i.Y36($s,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([j_]),i.qOj]}),n})();function q_(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}function sm(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const ls=class extends Au{constructor(a=null,e,t){super(R_(e),fp(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}),bu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sm(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){sm(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}},ka=ls,Ow={provide:ra,useExisting:(0,i.Gpc)(()=>cs)},om=(()=>Promise.resolve(null))();let cs=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._changeDetectorRef=c,this.control=new ls,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(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),am(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Mu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){om.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);om.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?gp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,9),i.Y36(Tn,10),i.Y36($s,10),i.Y36(Xn,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([Ow]),i.qOj,i.TTD]}),n})(),Ap=(()=>{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 Iw={provide:Xn,useExisting:(0,i.Gpc)(()=>Tu),multi:!0};let Tu=(()=>{class n extends Bl{writeValue(e){this.setProperty("value",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([Iw]),i.qOj]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const cm=new i.OlP("NgModelWithFormControlWarning"),dm={provide:ra,useExisting:(0,i.Gpc)(()=>Oa)};let Oa=(()=>{class n extends ra{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=z_(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Vl(t,this,!1),Mu(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}am(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vl(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(Tn,10),i.Y36($s,10),i.Y36(Xn,10),i.Y36(cm,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([dm]),i.qOj,i.TTD]}),n})();const Z_={provide:Kn,useExisting:(0,i.Gpc)(()=>Qs)};let Qs=(()=>{class n extends Kn{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&&(bp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Mu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Vl(e.control||null,e,!1),function cS(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Lw(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&&(Vl(t||null,e),(n=>n instanceof ls)(r)&&(Mu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);B_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function N_(n,a){return bp(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_p(this.form,this),this._oldForm&&bp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tn,10),i.Y36($s,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([Z_]),i.qOj,i.TTD]}),n})();const zw={provide:ra,useExisting:(0,i.Gpc)(()=>yp)};let yp=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),am(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 gp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,13),i.Y36(Tn,10),i.Y36($s,10),i.Y36(Xn,10),i.Y36(cm,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([zw]),i.qOj,i.TTD]}),n})(),jl=(()=>{class n{constructor(){this._validator=mu}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):mu,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 ab={provide:Tn,useExisting:(0,i.Gpc)(()=>aa),multi:!0};let aa=(()=>{class n extends jl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>W0}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([ab]),i.qOj]}),n})(),cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[U_]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})(),Xs=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})();class Am extends Au{constructor(a,e,t){super(R_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){rm(this,0,a),a.forEach((t,r)=>{nm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function db(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Jw=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return db(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new mp(r,l)}control(e,t,r){let l={};return this.useNonNullable?(db(t)?l=t:(l.validators=t,l.asyncValidators=r),new ls(e,{...l,nonNullable:!0})):new ls(e,t,r)}array(e,t,r){const l=e.map(c=>this._createControl(c));return new Am(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof ls||e instanceof Au?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:Xs}),n})(),Qw=(()=>{class n extends Jw{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return 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:Xs}),n})();const Xw=["trigger"],ub=["panel"];function hb(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 pb(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 Kw(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function eC(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,pb,2,1,"span",10),i.YNc(2,Kw,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 tC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),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 iC=[[["mat-select-trigger"]],"*"],nC=["mat-select-trigger","*"],fb={transformPanelWrap:wi("transformPanelWrap",[Pt("* => void",Fr("@transformPanel",[kl()],{optional:!0}))]),transformPanel:wi("transformPanel",[kt("void",Ie({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),kt("showing",Ie({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),kt("showing-multiple",Ie({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Pt("void => *",Dt("120ms cubic-bezier(0, 0, 0.2, 1)")),Pt("* => void",Dt("100ms 25ms linear",Ie({opacity:0})))])};let ym=0;const wm=new i.OlP("mat-select-scroll-strategy"),Ab=new i.OlP("MAT_SELECT_CONFIG"),aC={provide:wm,deps:[Cn],useFactory:function bb(n){return()=>n.scrollStrategies.reposition()}};class sC{constructor(a,e){this.source=a,this.value=e}}const Eu=Sa(Oo(xa(E1(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),oC=new i.OlP("MatSelectTrigger");let ds=(()=>{class n extends Eu{constructor(e,t,r,l,c,s,o,d,u,h,f,b,N,X){var pe,Pe,_t;super(c,l,o,d,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=N,this._defaultOptions=X,this._panelOpen=!1,this._compareWith=(Rt,Ut)=>Rt===Ut,this._uid="mat-select-"+ym++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ym++,this._panelDoneAnimatingStream=new De.x,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!==(Pe=null===(_t=this._defaultOptions)||void 0===_t?void 0:_t.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=rr(()=>{const Rt=this.options;return Rt?Rt.changes.pipe(ti(Rt),(0,It.w)(()=>(0,zi.T)(...Rt.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,dt.q)(1),(0,It.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Yt.h)(Rt=>Rt),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Yt.h)(Rt=>!Rt),(0,At.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=X?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=X.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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Qi.required))&&void 0!==e&&e}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){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Ji(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new vn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ih(),at(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(at(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ti(null),at(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,c=this._keyManager;if(!c.isTyping()&&l&&!wn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;c.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,c=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(c||13!==r&&32!==r||!t.activeItem||wn(e))if(!c&&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,dt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ta(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(at(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(at(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,zi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(at(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,zi.T)(...this.options.map(t=>t._stateChanges)).pipe(at(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(No),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(zc),i.Y36(i.SBq),i.Y36(Fn,8),i.Y36(Fl,8),i.Y36(Qs,8),i.Y36(Xc,8),i.Y36(ra,10),i.$8M("tabindex"),i.Y36(wm),i.Y36(A1),i.Y36(Ab,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(Xw,5),i.Gf(ub,5),i.Gf(E0,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:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Tp=(()=>{class n extends ds{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(at(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,dt.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=s0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:o0((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 sC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let d=this._selectionModel.selected[0]||this.options.first;c=d&&d.group?32:16}r||(c*=-1);const s=0-(e.left+c-(r?l:0)),o=e.right+c-t.width+(r?0:l);s>0?c+=s+8:o>0&&(c-=o+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),c=(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-c))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,c=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;d>c?this._adjustPanelUp(d,c):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),c=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=s0(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,c),this._offsetY=this._calculateOverlayOffsetY(s,o,c),this._checkOverlayWithinViewport(c)}_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,oC,5),i.Suo(r,js,5),i.Suo(r,au,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:19,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-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:Qc,useExisting:n},{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:nC,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(iC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,hb,2,1,"span",3),i.YNc(5,eC,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,tC,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)}},dependencies:[w.mk,w.RF,w.n9,w.ED,E0,S0],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fb.transformPanelWrap,fb.transformPanel]},changeDetection:0}),n})(),Wo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[aC],imports:[w.ez,zo,su,gt,La,os,su,gt]}),n})();const Du=["tooltip"],Mb="tooltip-panel",Hu=Kr({passive:!0}),wb=new i.OlP("mat-tooltip-scroll-strategy"),vb={provide:wb,deps:[Cn],useFactory:function Cb(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cm=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Tb(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let cC=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=c,this._platform=s,this._ariaDescriber=o,this._focusMonitor=d,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(at(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=Ji(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ji(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(at(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,Hu)}),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 Wc(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(at(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(at(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Mb}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(at(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(at(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(at(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&27===l.keyCode&&!wn(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...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:c}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:c}}}_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:c}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1),at(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 c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${Mb}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const l=t.relatedTarget;(!l||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(l))&&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,Hu)})}_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})(),ur=(()=>{class n extends cC{constructor(e,t,r,l,c,s,o,d,u,h,f,b){super(e,t,r,l,c,s,o,d,u,h,f,b),this._tooltipComponent=vm}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cn),i.Y36(i.SBq),i.Y36(Yc),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Vi),i.Y36(p1),i.Y36(vr),i.Y36(wb),i.Y36(Fn,8),i.Y36(Cm,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),bS=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),vm=(()=>{class n extends bS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(Nh),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(Du,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),Ks=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vb],imports:[Yh,w.ez,zo,gt,gt,La]}),n})();function Tm(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 xm(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,Tm,2,2,"mat-option",18),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)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function uC(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 hC(n,a){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,xm,3,8,"mat-form-field",14),i.YNc(4,uC,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 pC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),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 fC(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),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 Lu=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const 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 xb={provide:Lu,deps:[[new i.FiY,new i.tp0,Lu]],useFactory:function Sm(n){return n||new Lu}},Eb=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),gC=xa(nu(class{}));let Db=(()=>{class n extends gC{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:c,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=c&&(this._pageSizeOptions=c),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Ji(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Ji(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Ji(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Ji(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",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Em=(()=>{class n extends Db{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(Lu),i.Y36(i.sBO),i.Y36(Eb,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","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,hC,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,pC,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.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.YNc(13,fC,3,5,"button",11),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))},dependencies:[w.sg,w.O5,St,un,Tp,js,ur],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Pu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xb],imports:[w.ez,Ea,Wo,Ks,gt]}),n})();var Sp=T(1005);const _C=["mat-menu-item",""];function hr(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Wl=["*"];function bC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),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 Ep={transformMenu:wi("transformMenu",[kt("void",Ie({opacity:0,transform:"scale(0.8)"})),Pt("void => enter",Dt("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),Pt("* => void",Dt("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:wi("fadeInItems",[kt("showing",Ie({opacity:1})),Pt("void => *",[Ie({opacity:0}),Dt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Hb=new i.OlP("MatMenuContent"),Hp=new i.OlP("MAT_MENU_PANEL"),yC=Sa(xa(class{}));let Ru=(()=>{class n extends yC{constructor(e,t,r,l,c){var s;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,null==l||null===(s=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,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,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-"+Dm++}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 zh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,It.w)(e=>(0,zi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const l=e.toArray(),c=Math.max(0,Math.min(l.length-1,r.activeItemIndex||0));l[c]&&!l[c].disabled?r.setActiveItem(c):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,It.w)(t=>(0,zi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:wn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.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){var r;const l=this._classList;l["mat-menu-before"]="before"===e,l["mat-menu-after"]="after"===e,l["mat-menu-above"]="above"===t,l["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ti(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(Ul),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Hb,5),i.Suo(r,Ru,5),i.Suo(r,Ru,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})(),Hm=(()=>{class n extends rd{constructor(e,t,r,l){super(e,t,r,l),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(Ul),i.Y36(i.sBO))},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:Hp,useExisting:n}]),i.qOj],ngContentSelectors:Wl,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,bC,3,6,"ng-template"))},dependencies:[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;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ep.transformMenu,Ep.fadeInItems]},changeDetection:0}),n})();const ku=new i.OlP("mat-menu-scroll-strategy"),MS={provide:ku,deps:[Cn],useFactory:function Lm(n){return()=>n.scrollStrategies.reposition()}},Pb=Kr({passive:!0});let Rb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=h=>{as(h)||(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=c instanceof rd?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pb),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pb),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof rd&&(e._startAnimation(),e._directDescendantItems.changes.pipe(at(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof rd?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Yt.h)(l=>"void"===l.toState),(0,dt.q)(1),at(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new cu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",c="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,d]=[c,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===c?"bottom":"top",d="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:u,overlayY:c,offsetY:f},{originX:l,originY:o,overlayX:h,overlayY:c,offsetY:f},{originX:r,originY:d,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:d,overlayX:h,overlayY:s,offsetY:-f}])}_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,Yt.h)(c=>c!==this._menuItemInstance),(0,Yt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,zi.T)(e,r,l,t)}_handleMousedown(e){tu(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,Yt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Sp.g)(0,tp)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof rd&&this.menu._isAnimating?this.menu._animationDone.pipe((0,dt.q)(1),(0,Sp.g)(0,tp),at(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Hl(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(ku),i.Y36(Hp,8),i.Y36(Ru,10),i.Y36(Fn,8),i.Y36(vr),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,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-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Gl=(()=>{class n extends Rb{}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})(),Ou=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[MS],imports:[w.ez,gt,na,zo,La,gt]}),n})();var Pm=T(3099);const Rm=["*"];let km;function Lp(n){var a;return(null===(a=function CC(){if(void 0===km&&(km=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(km=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return km}())||void 0===a?void 0:a.createHTML(n))||n}function kb(n){return Error(`Unable to find icon with the name "${n}"`)}function Ob(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Om(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Uo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Iu=(()=>{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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Uo(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const c=this._sanitizer.sanitize(i.q3G.HTML,r);if(!c)throw Om(r);const s=Lp(c);return this._addSvgIconConfig(e,t,new Uo("",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 Uo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Om(t);const c=Lp(l);return this._addSvgIconSetConfig(e,new Uo("",c,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 Ob(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(Pp(r)):this._loadSvgIconFromConfig(new Uo(e,null)).pipe((0,gi.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,At.U)(l=>Pp(l)))}getNamedSvgIcon(e,t=""){const r=Bb(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 c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,Un._)(kb(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(Pp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,At.U)(t=>Pp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):z0(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,ai.K)(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,c.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),(0,$e.of)(null)})))).pipe((0,At.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw kb(e);return c}))}_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 c=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(c,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,gi.b)(t=>e.svgText=t),(0,At.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,gi.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,r);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),r);const s=this._svgElementFromString(Lp(""));return s.appendChild(c),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(Lp("")),r=e.attributes;for(let l=0;lLp(u)),ii(()=>this._inProgressUrlFetches.delete(s)),(0,Pm.B)());return this._inProgressUrlFetches.set(s,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Bb(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:""}}}),Im=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],SC=Im.map(n=>`[${n}]`).join(", "),EC=/^url\(['"]?#(.*?)['"]?\)$/;let Ui=(()=>{class n extends xC{constructor(e,t,r,l,c,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),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=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(SC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(c),d=o?o.match(EC):null;if(d){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:c,value:d[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,dt.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(Iu),i.$8M("aria-hidden"),i.Y36(Fb),i.Y36(i.qLn),i.Y36(Vb,8))},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:Rm,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),Ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();function eo(n){return!!n&&(n instanceof Ln.y||(0,Da.m)(n.lift)&&(0,Da.m)(n.subscribe))}var wS=T(6063);class CS extends De.x{constructor(a=1/0,e=1/0,t=wS.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!r&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let c=0;cnew CS(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class Rp{}let HC=(()=>{class n extends Rp{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 jb{}let LC=(()=>{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 $l(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,c,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),n){if(!$l(n[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{kp(a[t])?t in n?e[t]=Bu(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Nu{}let Bm=(()=>{class n extends Nu{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(),!Zl(e)||!Zl(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 c=this.getValue(t,l);return Zl(c)?c: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 Nm{}let Op=(()=>{class n extends Nm{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 Vm{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 Fm=new i.OlP("USE_STORE"),Ip=new i.OlP("USE_DEFAULT_LANG"),qb=new i.OlP("DEFAULT_LANGUAGE"),zm=new i.OlP("USE_EXTEND");let bi=(()=>{class n{constructor(e,t,r,l,c,s=!0,o=!1,d=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=s,this.isolate=o,this.extend=d,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,dt.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 typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(DC(1),(0,dt.q)(1));return this.loadingTranslations=t.pipe((0,At.U)(r=>this.compiler.compileTranslations(r,e)),DC(1),(0,dt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Bu(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 c={},s=!1;for(let o of t)c[o]=this.getParsedResult(e,o,r),eo(c[o])&&(s=!0);return s?z0(t.map(d=>eo(c[d])?c[d]:(0,$e.of)(c[d]))).pipe((0,At.U)(d=>{let u={};return d.forEach((h,f)=>{u[t[f]]=h}),u})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let c={key:t,translateService:this};typeof r<"u"&&(c.interpolateParams=r),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Zl(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,yr.b)(r=>eo(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return eo(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Zl(e)||!e.length)throw new Error('Parameter "key" required');return(0,$a.z)(rr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,It.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Zl(e)||!e.length)throw new Error('Parameter "key" required');return(0,$a.z)(rr(()=>this.get(e,t)),this.onLangChange.pipe((0,It.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return eo(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Zl(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(eo(r)){if(e instanceof Array){let l={};return e.forEach((c,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(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vm),i.LFG(Rp),i.LFG(Nm),i.LFG(Nu),i.LFG(jb),i.LFG(Ip),i.LFG(Fm),i.LFG(zm),i.LFG(qb))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),rt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(r){let c=this.translate.getParsedResult(r,e,t);eo(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if($l(e,this.lastKey)&&$l(t,this.lastParams))return this.value;let r;if(Zl(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{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(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi,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})(),Vu=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Rp,useClass:HC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Nu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:LC},Vm,{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},bi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Rp,useClass:HC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Nu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:LC},{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},bi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),PC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Pu,Ou,Ia,Ea,Vu,w.ez]}),n})();var TS=T(5861);function xS(n,a){}class Bp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Yb=(()=>{class n extends y0{constructor(e,t,r,l,c,s,o,d){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=s,this._overlayRef=o,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Wd(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Wd();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wd())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(eu),i.Y36(w.K0,8),i.Y36(Bp),i.Y36(Kd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(rp,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,xS,0,0,"ng-template",0)},dependencies:[rp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Wb{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!wn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Ub=new i.OlP("DialogScrollStrategy"),Gb=new i.OlP("DialogData"),$b=new i.OlP("DefaultDialogConfig"),Ba={provide:Ub,deps:[Cn],useFactory:function ES(n){return()=>n.scrollStrategies.block()}};let RC=0,Np=(()=>{class n{constructor(e,t,r,l,c,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=rr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(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}open(e,t){(t={...this._defaultOptions||new Bp,...t}).id=t.id||"cdk-dialog-"+RC++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),s=new Wb(c,t),o=this._attachContainer(c,s,t);return s.containerInstance=o,this._attachDialogContent(e,s,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){jm(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jm(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jm(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new cu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var l,c;const s=null!==(l=r.injector)&&void 0!==l?l:null===(c=r.viewContainerRef)||void 0===c?void 0:c.injector,o=[{provide:Bp,useValue:r},{provide:Wb,useValue:t},{provide:Ys,useValue:e}];let d;r.container?"function"==typeof r.container?d=r.container:(d=r.container.type,o.push(...r.container.providers(r))):d=Yb;const u=new Wc(d,r.viewContainerRef,i.zs3.create({parent:s||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,t,r,l){const c=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Hl(e,null,s,c))}else{const s=r.attachComponentPortal(new Wc(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:Gb,useValue:e.data},{provide:Wb,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,r)):c.push(...e.providers)),e.direction&&(!l||!l.get(Fn,null,i.XFs.Optional))&&c.push({provide:Fn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const 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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Cn),i.LFG(i.zs3),i.LFG($b,8),i.LFG(n,12),i.LFG(Vr),i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function jm(n,a){let e=n.length;for(;e--;)a(n[e])}let jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Np,Ba],imports:[zo,Fo,Yh,Fo]}),n})();function kC(n,a){}const Go={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},OC={dialogContainer:wi("dialogContainer",[kt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),kt("enter",Ie({transform:"none"})),Pt("* => enter",hu([Dt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),Fr("@*",kl(),{optional:!0})]),Go),Pt("* => void, * => exit",hu([Dt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),Fr("@*",kl(),{optional:!0})]),Go)])};class Fu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Go.params.enterAnimationDuration,this.exitAnimationDuration=Go.params.exitAnimationDuration}}let qm=(()=>{class n extends Yb{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(eu),i.Y36(w.K0,8),i.Y36(Fu),i.Y36(Kd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Zb=(()=>{class n extends qm{constructor(e,t,r,l,c,s,o,d,u){super(e,t,r,l,c,s,o,u),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Go.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Go.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(eu),i.Y36(w.K0,8),i.Y36(Fu),i.Y36(Kd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(i.sBO),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,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._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,kC,0,0,"ng-template",0)},dependencies:[rp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[OC.dialogContainer]}}),n})();class Li{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,Yt.h)(r=>"opened"===r.state),(0,dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Yt.h)(r=>"closed"===r.state),(0,dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,zi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Yt.h)(r=>27===r.keyCode&&!this.disableClose&&!wn(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function IC(n,a,e){n._closeInteractionType=a,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,Yt.h)(e=>"closing"===e.state),(0,dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const fn=new i.OlP("MatDialogData"),Jb=new i.OlP("mat-dialog-default-options"),Qb=new i.OlP("mat-dialog-scroll-strategy"),Ym={provide:Qb,deps:[Cn],useFactory:function NC(n){return()=>n.scrollStrategies.block()}};let $o=0,Xb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=o,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=rr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s,this._dialog=t.get(Np)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Fu,...t}).id=t.id||`${this._idPrefix}${$o++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Fu,useValue:t},{provide:Bp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(c,s,o)=>{var d;return r=new this._dialogRefConstructor(c,t,o),r.updatePosition(null===(d=t)||void 0===d?void 0:d.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(r);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Pi=(()=>{class n extends Xb{constructor(e,t,r,l,c,s,o,d){super(e,t,l,s,o,c,Li,Zb,fn,d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Cn),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(Jb,8),i.LFG(Qb),i.LFG(n,12),i.LFG(Vr),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),to=0,mn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+to++}ngOnInit(){this._dialogRef||(this._dialogRef=function VC(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(Li,8),i.Y36(i.SBq),i.Y36(Pi))},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})(),rn=(()=>{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})(),Xi=(()=>{class n{constructor(){this.align="start"}}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"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Vp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Pi,Ym],imports:[jr,zo,Fo,gt,gt]}),n})();var Kb=T(4327);const zu=[5,10,25,100];function zp(){return(zp=(0,TS.Z)(function*(n,a){yield UC(n),a()})).apply(this,arguments)}function UC(n){return new Promise(a=>setTimeout(a,n))}function ni(){const n=new Fu;return n.disableClose=!0,n.autoFocus=!1,n}function Zo(n){return"virt"===n.namespace.split(":")[4]}const Um=new Intl.Collator("cs",{numeric:!0});function ju(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,c)=>{const s=e(l,t),o=e(c,t);return Um.compare(s,o)*("asc"===r?1:-1)}):n}function Jl(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(c=>{l+=";"+t(n,c)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function pr(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 c={};a.forEach(s=>{c[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(c)}),t}function Na(n,a="csv",e="export"){if("csv"===a){const t=(o,d)=>null===d?"":d,r=Object.keys(n[0]),l=n.map(o=>r.map(d=>JSON.stringify(o[d],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const c=l.join("\r\n"),s=new Blob([c],{type:"text/csv"});(0,Kb.saveAs)(s,`${e}.${a}`)}}function ev(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const Gm="GUI_CONFIG.PREF_PAGE_SIZE.";let rv=(()=>{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})(),av=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Gm+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(Gm+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let rL=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,nL,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),c=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",c),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Hm,Ru,Gl,Ui,St,w.O5,rt]}),n})();const aL=["topNav"];function sL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function oL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const lL=["*"];let us=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=zu,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=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),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(av))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(i.Gf(aL,5),i.Gf(Em,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.topNav=r.first),i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:lL,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(4,sL,1,1,"perun-web-apps-table-options",4),i.qZA(),i.TgZ(5,"div",5),i.Hsn(6),i.qZA(),i.TgZ(7,"div",1)(8,"mat-paginator",6),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(9,oL,1,1,"perun-web-apps-table-options",4),i.qZA()()),2&e&&(i.xp6(3),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))},dependencies:[Em,w.O5,rL]}),n})();class ZS{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 $t=(()=>{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.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?r:this.addMissingValuesToProperty(l,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var od=T(1214);let Ql=(()=>{class n{constructor(e,t,r,l,c){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(Ai),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},s=this.store.getProperty("oidc_client");if(s.oauth_scopes.split(" ").includes("offline_access")&&s.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const o=function iv(n,a){const e=a.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));o&&(c.idphint=o)}return{requestAccessToken:!0,issuer:s.oauth_authority,clientId:s.oauth_client_id,redirectUri:s.oauth_redirect_uri,postLogoutRedirectUri:s.oauth_post_logout_redirect_uri,responseType:s.oauth_response_type,scope:s.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],r=t[c[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG($t),i.LFG(Pi),i.LFG(Qn),i.LFG(od.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cL=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li))},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"))},dependencies:[rn,rt]}),n})();var dL=T(930);function JS(n,a){const e="object"==typeof a;return new Promise((t,r)=>{const l=new dL.Hp({next:c=>{t(c),l.unsubscribe()},error:r,complete:()=>{e?t(a.defaultValue):r(new Ga.K)}});n.subscribe(l)})}function uL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function hL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function pL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function fL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const mL=["*"];let kn=(()=>{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:mL,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,uL,2,0,"mat-icon",1),i.YNc(2,hL,2,0,"mat-icon",1),i.YNc(3,pL,2,0,"mat-icon",1),i.YNc(4,fL,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))},dependencies:[Ui,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})(),gL=(()=>{class n{constructor(e){this.dialogRef=e}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[mn,rn,Xi,St,kn,rt]}),n})(),_L=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ui,rt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),bL=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[mn,rn,Xi,St,kn,rt]}),n})(),lv=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.oauthService=t,this.authService=r,this.store=l}openMfaWindow(){let e=null,t=null;const r=ni();r.width="450px";const l=this.dialog.open(gL,r);let c=!1;if(l.afterClosed().subscribe(s=>{if(s){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),e=this.setupMfaWindow(),e){const o=ni();o.width="450px",o.panelClass="noBorderDialog",t=this.dialog.open(_L,o)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const s=ni();s.width="450px",s.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(bL,s)}return new Ln.y(s=>{const o=setInterval(()=>e?.closed?(clearInterval(o),t.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),s.next(!0)):c?(clearInterval(o),s.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pi),i.LFG(od.Ct),i.LFG(Ql),i.LFG($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cv=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=l,this.authzService=c,this.dialog=s,this.router=o,this.mfaHandlerService=d,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.redirectToOriginDestination();if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return JS(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ni();this.dialog.open(cL,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return JS(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e]))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(l=>{const c=l.split("=");r[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Yt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const c={};return l.forEach(s=>{const o=s.split("=");c[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ql),i.LFG(od.Ct),i.LFG($t),i.LFG(Ua),i.LFG(ht),i.LFG(Pi),i.LFG(Ai),i.LFG(lv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QS=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}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(Iu),i.LFG($i))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),AL=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li))},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)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[mn,rn,Xi,St,rt]}),n})(),$m=(()=>{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})(),fr=(()=>{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,c){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:c,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(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XS=(()=>{class n{constructor(e,t,r,l,c,s,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=c,this.initAuthService=s,this.mfaHandlerService=o}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=ni();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(AL,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ii(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,gi.b)(c=>{c instanceof M.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,ai.K)(c=>{const s=c.error;if("MfaPrivilegeException"===s.type||"MfaRolePrivilegeException"===s.type)return this.mfaHandlerService.openMfaWindow().pipe((0,It.w)(o=>o?("MfaRolePrivilegeException"===s.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Un._)(()=>s)));{const o=this.formatErrors(c,e);return void 0===o?(0,Un._)(()=>c):(r&&this.notificator.showRPCError(o),(0,Un._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const 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}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ql),i.LFG($m),i.LFG(fr),i.LFG($t),i.LFG(Pi),i.LFG(cv),i.LFG(lv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),KS=(()=>{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})(),yL=(()=>{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.getProperty("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,ai.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,ai.K)(s=>this.formatErrors(s,l,c,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:s}).pipe((0,ai.K)(o=>this.formatErrors(o,l,c,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,ai.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const c=e.error;return c.call=t,c.payload=r,l&&this.notificator.showRPCError(e.error),(0,Un._)(c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(fr),i.LFG(Ql),i.LFG($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gA=(()=>{class n{isAllSelected(e,t,r=(()=>!0)){const l=t.paginator.pageSize??0,c=t.paginator.pageIndex??0,s=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=c*l,this.pageEnd=this.pageStart+l,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const d=t.sort;return s||(this.modulo=this.dataLength%l,this.pageEnd=0===this.modulo?this.pageStart+l:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,d).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{d?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.getProperty("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(c=o[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qn),i.LFG($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_A=(()=>{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||r.newApps.consolidator===t||r.newApps.linker===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);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($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ML=(()=>{class n{setEntity(e){this.entity=e}getEntity(){return this.entity}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wL=(()=>{class n{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($t),i.LFG(od.Ct),i.LFG(M.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bA=["*"],CL=["content"];function vL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function TL(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const xL=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],SL=["mat-drawer","mat-drawer-content","*"];function EL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function DL(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const HL=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],LL=["mat-sidenav","mat-sidenav-content","*"],eE={transformDrawer:wi("transform",[kt("open, open-instant",Ie({transform:"none",visibility:"visible"})),kt("void",Ie({"box-shadow":"none",visibility:"hidden"})),Pt("void => open-instant",Dt("0ms")),Pt("void <=> open, open-instant => void",Dt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},RL=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function kL(){return!1}}),uv=new i.OlP("MAT_DRAWER_CONTAINER");let AA=(()=>{class n extends Bo{constructor(e,t,r,l,c){super(r,l,c),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)(()=>iE)),i.Y36(i.SBq),i.Y36(Yc),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:Bo,useExisting:n}]),i.qOj],ngContentSelectors:bA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),tE=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=c,this._interactivityChecker=s,this._doc=o,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Yt.h)(u=>u),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,xi.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Yt.h)(u=>!u),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,xi.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{qs(this._elementRef.nativeElement,"keydown").pipe((0,Yt.h)(u=>27===u.keyCode&&!this.disableClose&&!wn(u)),at(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Ih((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(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}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(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,dt.q)(1)).subscribe(c=>l(c?"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(eu),i.Y36(vr),i.Y36(Vi),i.Y36(i.R0b),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(uv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(CL,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:bA,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())},dependencies:[Bo],encapsulation:2,data:{animation:[eE.transformDrawer]},changeDetection:0}),n})(),iE=(()=>{class n{constructor(e,t,r,l,c,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 De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(at(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(at(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 this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(ti(this._allDrawers),at(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ti(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,Zd.b)(10),at(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,Yt.h)(t=>t.fromState!==t.toState),at(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(at(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(at(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(at((0,zi.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(Fn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(No),i.Y36(RL),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,AA,5),i.Suo(r,tE,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(AA,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:uv,useExisting:n}])],ngContentSelectors:SL,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(xL),i.YNc(0,vL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,TL,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,AA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n extends AA{constructor(e,t,r,l,c){super(e,t,r,l,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>rE)),i.Y36(i.SBq),i.Y36(Yc),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:Bo,useExisting:n}]),i.qOj],ngContentSelectors:bA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),nE=(()=>{class n extends tE{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=Ji(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ji(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:bA,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())},dependencies:[Bo],encapsulation:2,data:{animation:[eE.transformDrawer]},changeDetection:0}),n})(),rE=(()=>{class n extends iE{}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,hv,5),i.Suo(r,nE,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:uv,useExisting:n}]),i.qOj],ngContentSelectors:LL,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(HL),i.YNc(0,EL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,DL,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,hv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,La,La,gt]}),n})();function aE(n){for(let e in n){var a;let t=null!==(a=n[e])&&void 0!==a?a:"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const fv="inline",yA=["row","column","row-reverse","column-reverse"];function sE(n){let[a,e,t]=function oE(n){var a,e;n=null!==(a=null===(e=n)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,l]=n.split(" ");return yA.find(c=>c===t)||(t=yA[0]),r===fv&&(r=l!==fv?l:"",l=fv),[t,OL(r),!!l]}(n);return function IL(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 OL(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 NL={provide:i.tb,useFactory:function BL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${lE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${lE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},lE="flex-layout-";let mv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[NL]}),n})();class qu{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 qu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let VL=(()=>{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 c=r.get(t);("number"==typeof c||"string"==typeof c)&&(l=c+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},io=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>gv}),jp=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),_v=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function cE(n,a){var e,t;return n=null!==(e=null===(t=n)||void 0===t?void 0:t.clone())&&void 0!==e?e:new qu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class xn{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let Ki=(()=>{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:aE(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:aE(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 FL(n,a){var e;return null!==(e=dE(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],c=Array.isArray(l)?l:[l];c.sort();for(let s of c)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):zL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VL),i.LFG(jp),i.LFG(i.Lbi),i.LFG(io))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=dE(n);t[a]=e??"",function jL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function dE(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const c=l.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,c).trim()]=l.substr(c+1).trim()}}}return a}function Jm(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function qL(n,a){return(n.priority||0)-(a.priority||0)}let bv=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Zi(new qu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,Yt.h)(c=>!t||e.indexOf(c.mediaQuery)>-1)),l=new Ln.y(c=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(d=>{c.next(d)}),this.source.next(o)}c.complete()});return(0,zi.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function YL(n,a){const e=n.filter(t=>!uE[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=>uE[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const c=o=>{this._zone.run(()=>this.source.next(new qu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(c),this.pendingRemoveListenerFns.push(()=>s.removeListener(c)),this.registry.set(l,s)),s.matches&&r.push(new qu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function WL(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 uE={},UL=[{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}],hE="(orientation: portrait) and (max-width: 599.98px)",pE="(orientation: landscape) and (max-width: 959.98px)",fE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",mE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",gE="(orientation: portrait) and (min-width: 840px)",_E="(orientation: landscape) and (min-width: 1280px)",Kl={HANDSET:`${hE}, ${pE}`,TABLET:`${fE} , ${mE}`,WEB:`${gE}, ${_E} `,HANDSET_PORTRAIT:`${hE}`,TABLET_PORTRAIT:`${fE} `,WEB_PORTRAIT:`${gE}`,HANDSET_LANDSCAPE:`${pE}`,TABLET_LANDSCAPE:`${mE}`,WEB_LANDSCAPE:`${_E}`},GL=[{alias:"handset",priority:2e3,mediaQuery:Kl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kl.WEB_PORTRAIT,overlapping:!0}],$L=/(\.|-|_)/g;function ZL(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const KL=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(_v),a=(0,i.f3M)(io),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function XL(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(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 QL(n){return n.forEach(a=>{a.suffix||(a.suffix=function JL(n){return n.replace($L,"|").split("|").map(ZL).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:UL).concat(a.addOrientationBps?GL:[]),e)}});let Av=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(qL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);var c;return l||(l=null!==(c=this.items.find(t))&&void 0!==c?c:null,this.findByMap.set(e,l)),null!==(r=l)&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(KL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qp="print",eP={alias:qp,mediaQuery:qp,priority:1e3};let tP=(()=>{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 iP,this.deactivations=[]}withPrintQuery(e){return[...e,qp]}isPrintEvent(e){return e.mediaQuery.startsWith(qp)}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(Jm)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,l;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(l=t)||void 0===l?void 0:l.mediaQuery)&&void 0!==r?r:""),cE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new qu(!0,qp))),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),c=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||c)&&(this.deactivations.push(r),this.deactivations.sort(Jm))}}}}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(Av),i.LFG(io),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class iP{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(eP),a.sort(Jm),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function nP(n){var a;return null!==(a=n?.mediaQuery.startsWith(qp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let an=(()=>{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 De.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=cE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(Jm),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Jm),this.updateStyles())}}init(e,t,r,l,c=[]){bE(this.updateMap,e,t,r),bE(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,c)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const c=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(c)return c.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){let c=this.elementMap.get(e);if(c){var s;const d=(null!==(s=c.get(l))&&void 0!==s?s:new Map).set(t,r);c.set(l,d),this.elementMap.set(e,c)}else c=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,c);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,Yt.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((c,s)=>{this.updateElement(t,s,c),r.delete(s)}),r.forEach(c=>{if(l=this.getActivatedValues(e,c),l){const s=l.get(c);this.updateElement(t,c,s)}else this.clearElement(t,c)})})}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 c=l.get(t);c&&(c(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,c)=>r.delete(c)),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((c,s)=>this.updateElement(e,s,c)))}}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,zi.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,gi.b)(this.hook.interceptEvents(this)),(0,Yt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bv),i.LFG(Av),i.LFG(tP))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bE(n,a,e,t){if(void 0!==t){var r;const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let gn=(()=>{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 De.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let c=this.styleCache.get(e);(!c||!l)&&(c=r.buildStyles(e,t),l&&this.styleCache.set(e,c)),this.mru={...c},this.applyStyleToElement(c),r.sideEffect(e,c,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 c=sE(r);this.styler.applyStyleToElements(c,[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(xn),i.Y36(Ki),i.Y36(an))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class bP{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 wE(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function vE(n){const[a,...e]=n.split(":");return new bP(a,e.join(":"))}function TE(n,a){return a.key&&(n[a.key]=a.value),n}let MP=(()=>{class n extends gn{constructor(e,t,r,l,c,s,o,d,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,c,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=d&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(wE(e)){case"string":return xE(function AP(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return xE(e,t);default:return function CE(n,a){let e=[];return"set"===wE(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function yP(n,a){return n.map(vE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(TE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ki),i.Y36(an),i.Y36($i),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(jp),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const wP=["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 wA=(()=>{class n extends MP{constructor(){super(...arguments),this.inputs=wP}}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 xE(n,a){return n.map(vE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(TE,{})}let SE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mv]}),n})();const EE=Kr({passive:!0});let CP=(()=>{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=Fi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,c="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,EE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,EE)}}),l}stopMonitoring(e){const t=Fi(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(Vi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new De.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Ji(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ji(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=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(()=>{qs(this._getWindow(),"resize").pipe(m0(16),at(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,c=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const s=e.scrollHeight-4;return e.classList.remove(c),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(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Vi),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})(),DE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const HE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),vP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let TP=0;const xP=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let jn=(()=>{class n extends xP{constructor(e,t,r,l,c,s,o,d,u,h){super(s,l,c,r),this._elementRef=e,this._platform=t,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+TP++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(N=>Th().has(N)),this._iOSKeyupListener=N=>{const X=N.target;!X.value&&0===X.selectionStart&&0===X.selectionEnd&&(X.setSelectionRange(1,1),X.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Qi.required))&&void 0!==e&&e}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Th().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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const 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(){vP.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(Vi),i.Y36(ra,10),i.Y36(Fl,8),i.Y36(Qs,8),i.Y36(zc),i.Y36(HE,10),i.Y36(CP),i.Y36(i.R0b),i.Y36(Xc,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:Qc,useExisting:n}]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[zc],imports:[DE,os,gt,DE,os]}),n})();function SP(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 EP=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",T(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(bi),i.Y36(fr),i.Y36(mi),i.Y36($t))},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)(4,"mat-form-field")(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,SP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(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.TgZ(21,"div",6)(22,"div",7)(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()()()),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")," ")}},dependencies:[w.O5,hn,pn,aa,cs,St,jo,un,hw,Hi,jn,mn,rn,Xi,rt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),LE=(()=>{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})(),DP=(()=>{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})(),HP=(()=>{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 LP(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 PP(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 RP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,LP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,PP,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 kP=function(n){return{"min-height":n}};function OP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,RP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,kP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const ec=function(n){return{color:n}};function IP(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,ec,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function BP(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,l=i.oxw(3);return i.KtG(l.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,ec,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function NP(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,ec,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function VP(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,ec,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function FP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,IP,2,4,"i",17),i.YNc(2,BP,3,8,"span",18),i.YNc(3,NP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,VP,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 zP=function(n){return{height:n}};function jP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,FP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,zP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,OP,2,4,"div",9),i.YNc(5,jP,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,ec,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 YP(n,a){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),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,ec,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const WP=function(n){return{background:n}};let PE=(()=>{class n{constructor(e,t,r,l,c){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=l,this.authService=c,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=T(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=T(4147).i8,this.authService.isLoggedIn()&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyrightItems}openDialog(e){const t=ni();"reportIssue"===e&&(t.width="550px",this.dialog.open(EP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(bi),i.Y36(tr),i.Y36(Pi),i.Y36(Ql))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(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,YP,3,5,"span",5),i._uU(7,", web application: "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i._uU(10,", server: "),i.TgZ(11,"a",6),i._uU(12),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,WP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,ec,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(15,ec,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.guiVersion),i.xp6(2),i.Q6J("href",t.githubBackendRepository,i.LSH)("ngStyle",i.VKq(17,ec,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.backendVersion))},dependencies:[w.sg,w.O5,w.PC,LE,DP,HP],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})();wi("openClose",[kt("open",Ie({overflow:"hidden"})),kt("closed",Ie({height:"0px",overflow:"hidden"})),Pt("open <=> closed",[Dt(".3s ease-in")])]);const UP=wi("flyInOut",[Pt(":enter",[Ie({transform:"translateX(100%)"}),Dt(".25s")]),Pt(":leave",[Dt(".5s",Ie({transform:"translateX(100%)"}))])]);wi("rollInOut",[Pt(":enter",[Ie({height:"0px"}),Dt(".25s")]),Pt(":leave",[Dt(".25s",Ie({height:"0px"}))])]),wi("routeAnimations",[Pt("* => *",[Ie({position:"relative"}),Fr(":enter",[Ie({width:"100%",opacity:0})],{optional:!0}),Fr(":leave",[Ie({position:"absolute",width:"100%",opacity:1}),Dt("0.15s",Ie({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Fr(":enter",[Ie({position:"absolute",width:"100%",opacity:0}),Dt("0.15s",Ie({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[kt("open",Ie({})),kt("closed",Ie({width:"0px",height:"0px"})),Pt("open <=> closed",[Dt(".3s ease-in")])]),wi("switchAnimations",[Pt("true => false",[Fr(":enter, :leave",Ie({})),hu([Fr(":enter",[Ie({transform:"translateX(-100%)"}),Dt("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Dt("1s ease-in-out",Ie({transform:"translateX(100%)"}))],{optional:!0})])]),Pt("false => true",[Fr(":enter, :leave",Ie({})),hu([Fr(":enter",[Ie({transform:"translateX(100%)"}),Dt("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Dt("1s ease-in-out",Ie({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Pt(":enter",[Ie({transform:"translateX(-100%)",position:"relative"}),Dt("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Dt("0.5s ease-in",Ie({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Pt(":enter",[Ie({transform:"translateX(100%)",position:"fixed"}),Dt("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Ie({transform:"translateX(-100%)",position:"relative"}),Dt("0.5s ease-in",Ie({transform:"translateX(100%)"}))])]);let RE=(()=>{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})(),vA=(()=>{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.getProperty("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(bi,16),i.Y36($t,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function GP(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 $P(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 JP=ss(class{constructor(n){this._elementRef=n}},"primary"),QP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function XP(){return{diameter:100}}});class Ei extends JP{constructor(a,e,t,r,l,c,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const d=Ei._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(t.head)||d.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&c&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Ji(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Ji(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Ji(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=Ei._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(".","_")}}Ei._diameters=new WeakMap,Ei.\u0275fac=function(a){return new(a||Ei)(i.Y36(i.SBq),i.Y36(Vi),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(QP),i.Y36(i.sBO),i.Y36(No),i.Y36(i.R0b))},Ei.\u0275cmp=i.Xpm({type:Ei,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(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,GP,1,11,"circle",2),i.YNc(3,$P,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))},dependencies:[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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Wp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,w.ez,gt]}),n})(),TA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ia,w.ez]}),n})(),eR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,os,Ks,Xs,Yp,Vu,Wp,Ia,TA]}),n})();class tR{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const kE=(n,a,e,t=500)=>r=>(0,f0.H)(t).pipe((0,It.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength({password:r.value,namespace:n}):(0,$e.of)(null))),(0,At.U)(()=>null),(0,ai.K)(l=>{const c={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,$e.of)(c)}));function iR(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function nR(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 rR(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 aR(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 sR(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 oR(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 OE=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new tR,this.allPasswordRequirements=this.store.getProperty("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_requirements_help":"password_requirements_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"!==this.language?"en"===this.language?"password_requirements_help":"password_requirements_help_cs":"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(bi),i.Y36(ki),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,iR,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,nR,2,2,"mat-icon",5),i.YNc(8,rR,3,3,"mat-error",6),i.YNc(9,aR,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8)(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,sR,3,3,"mat-error",6),i.YNc(18,oR,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA()()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),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))},dependencies:[w.O5,jo,un,Hi,d_,ur,hn,pn,td,aa,Qs,yp,jn,Ei,Ui,kn,rt],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 fR(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function mR(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 gR(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 _R(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,mR,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,gR,3,3,"mat-error",11),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 bR=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=c,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let 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: ",T(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(Li),i.Y36(bi),i.Y36(fr),i.Y36(mi),i.Y36(fn),i.Y36($t))},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,fR,1,0,"mat-spinner",1),i.YNc(4,_R,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(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()()()),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")," "))},dependencies:[w.O5,mn,rn,Xi,St,jo,un,Hi,hn,pn,aa,cs,jn,Ei,rt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),AR=(()=>{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=ni();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(bR,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(Pi),i.Y36(fn))},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)(5,"div",3)(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()()()),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")," "))},dependencies:[mn,rn,Xi,St,rt]}),n})();const yR=[[["caption"]],[["colgroup"],["col"]]],MR=["caption","colgroup, col"];function wv(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 Up=new i.OlP("CDK_TABLE");let Gp=(()=>{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})(),$p=(()=>{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})(),xA=(()=>{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 TR{}const xR=wv(TR);let tc=(()=>{class n extends xR{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Gp,5),i.Suo(r,$p,5),i.Suo(r,xA,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 Cv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let vv=(()=>{class n extends Cv{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tc),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})(),Tv=(()=>{class n extends Cv{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(tc),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 BE{constructor(){this.tasks=[],this.endTasks=[]}}const xv=new i.OlP("_COALESCED_STYLE_SCHEDULER");let NE=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new BE,this._getScheduleObservable().pipe(at(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new BE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Hn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,dt.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})(),Sv=(()=>{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 Qm?e.headerCell.template:this instanceof Xm?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 SR extends Sv{}const ER=wv(SR);let Qm=(()=>{class n extends ER{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class DR extends Sv{}const HR=wv(DR);let Xm=(()=>{class n extends HR{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),SA=(()=>{class n extends Sv{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),ic=(()=>{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})(),Ev=(()=>{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)},dependencies:[ic],encapsulation:2}),n})(),Hv=(()=>{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)},dependencies:[ic],encapsulation:2}),n})(),EA=(()=>{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 VE=["top","bottom","left","right"];class LR{constructor(a,e,t,r,l=!0,c=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=c,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],c=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),d=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",N=f?"left":"right";for(const X of a)for(let pe=0;pee[pe]?X:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((X,pe)=>t[pe+h]?X: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,c=[],s=[],o=[];for(let u=0,h=0;u{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]);VE.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 VE)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 Lv=new i.OlP("CDK_SPL");let DA=(()=>{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})(),HA=(()=>{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})(),LA=(()=>{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})(),PA=(()=>{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})(),RA=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=c,this._platform=o,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new Zi({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(at(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(),Kc(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,c)=>this._getEmbeddedViewArgs(r.item,c),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,dt.q)(1),at(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(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.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(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.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,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),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(c)?r.get(c):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,s)=>c||!!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=[],Kc(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;Kc(this.dataSource)?e=this.dataSource.connect(this):eo(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(at(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),c=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!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(c=>c.when&&c.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 c=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))ic.mostRecentCellOutlet&&ic.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 c of r.outlets)l.appendChild(c.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 LR(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(at(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),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.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(Fn,8),i.Y36(w.K0),i.Y36(Vi),i.Y36(dr),i.Y36(xv),i.Y36(No),i.Y36(Lv,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,EA,5),i.Suo(r,tc,5),i.Suo(r,SA,5),i.Suo(r,Qm,5),i.Suo(r,Xm,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(DA,7),i.Gf(HA,7),i.Gf(LA,7),i.Gf(PA,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:Up,useExisting:n},{provide:dr,useClass:Pa},{provide:xv,useClass:NE},{provide:Lv,useValue:null}])],ngContentSelectors:MR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(yR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[DA,HA,LA,PA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function kA(n,a){return n.concat(Array.from(a))}let RR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Dl]}),n})();const kR=[[["caption"]],[["colgroup"],["col"]]],OR=["caption","colgroup, col"];let no=(()=>{class n extends RA{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:dr,useClass:Pa},{provide:RA,useExisting:n},{provide:Up,useExisting:n},{provide:xv,useClass:NE},{provide:Lv,useValue:null}]),i.qOj],ngContentSelectors:OR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(kR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[DA,HA,LA,PA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),hs=(()=>{class n extends Gp{}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:Gp,useExisting:n}]),i.qOj]}),n})(),ps=(()=>{class n extends $p{}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:$p,useExisting:n}]),i.qOj]}),n})(),fs=(()=>{class n extends tc{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:tc,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),ms=(()=>{class n extends vv{}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})(),gs=(()=>{class n extends Tv{}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})(),ro=(()=>{class n extends Qm{}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:Qm,useExisting:n}]),i.qOj]}),n})(),ao=(()=>{class n extends SA{}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:SA,useExisting:n}]),i.qOj]}),n})(),so=(()=>{class n extends Ev{}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:Ev,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),oo=(()=>{class n extends Hv{}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:Hv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),Km=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[RR,gt,gt]}),n})();class Jo extends class UR extends class nS{}{constructor(a=[]){super(),this._renderData=new Zi([]),this._filter=new Zi(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(qf(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((c,s)=>{let o=this.sortingDataAccessor(c,r),d=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof d;u!==h&&("number"===u&&(o+=""),"number"===h&&(d+=""));let f=0;return null!=o&&null!=d?o>d?f=1:o{const r=Object.keys(e).reduce((c,s)=>c+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Zi(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,zi.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,zi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,fa.a)([this._data,this._filter]).pipe((0,At.U)(([o])=>this._filterData(o))),c=(0,fa.a)([l,e]).pipe((0,At.U)(([o])=>this._orderData(o))),s=(0,fa.a)([c,t]).pipe((0,At.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 GR(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function $R(n,a){1&n&&i._UZ(0,"th",15)}function ZR(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 JR(n,a){1&n&&i._UZ(0,"tr",17)}function QR(n,a){1&n&&i._UZ(0,"tr",18)}function XR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4)(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,$R,1,0,"th",8),i.YNc(13,ZR,2,1,"td",9),i.BQk(),i.YNc(14,JR,1,0,"tr",10),i.YNc(15,QR,1,0,"tr",11),i.qZA()(),i.TgZ(16,"div",12)(17,"button",13),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),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 KR=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=c,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 Jo(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(Li),i.Y36(fn),i.Y36(ki),i.Y36(bi),i.Y36(fr))},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,GR,1,0,"mat-spinner",1),i.YNc(6,XR,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))},dependencies:[w.O5,no,ps,ro,fs,hs,ao,ms,gs,so,oo,mn,rn,Xi,St,Ei,rt,si]}),n})();class ek{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let tk=(()=>{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 ek(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 ik=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Pv=(()=>{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 c=r.copy();c||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(c)):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(tk),i.Y36(i.R0b),i.Y36(ik,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})(),zE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),OA=(()=>{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(Li),i.Y36(fn))},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)(3,"textarea",2),i._uU(4),i.qZA()(),i.TgZ(5,"div",3)(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()()),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")," "))},dependencies:[mn,rn,Xi,St,CA,jn,Pv,rt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),nk=(()=>{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(Li),i.Y36(fn))},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)(4,"mat-form-field")(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA()()(),i.TgZ(6,"div",3)(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()()),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")," "))},dependencies:[mn,rn,Xi,St,un,hn,pn,cs,CA,jn,rt]}),n})(),rk=(()=>{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(Li),i.Y36(fn))},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)(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA()(),i.TgZ(9,"div",3)(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()()),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")," "))},dependencies:[mn,rn,Xi,St,rt]}),n})();function ak(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 sk(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 ok=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=c,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 ka(null,[Qi.required,Qi.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,c)=>l===c.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(Li),i.Y36(fn),i.Y36(bi),i.Y36(fr),i.Y36(ki),i.Y36(Ql))},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,ak,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3)(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,sk,4,5,"mat-error",5),i.qZA()(),i.TgZ(12,"div",6)(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()()),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"))," "))},dependencies:[w.O5,mn,rn,Xi,St,jo,un,hn,pn,aa,jn,Oa,kn,rt,si]}),n})(),gk=(()=>{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(Li),i.Y36(Ai))},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)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[mn,rn,Xi,St,kn,rt]}),n})();function _k(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 bk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(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 i.KtG(r.showOldPassword=!r.showOldPassword)}),i._uU(8),i.qZA(),i.YNc(9,_k,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),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 Ak(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"div",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.close())}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changePassword())}),i._uU(6),i.ALo(7,"translate"),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 Mk=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=c,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Qi.required],passwordCtrl:["",Qi.required,[kE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:ZS.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(fn),i.Y36(Qw),i.Y36(ki),i.Y36($m),i.Y36(fr),i.Y36(bi))},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,bk,11,9,"form",2),i.YNc(5,Ak,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,yk,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))},dependencies:[w.O5,mn,rn,Xi,St,jo,un,Hi,d_,Ap,hn,pn,td,aa,jn,Ei,Qs,yp,Ui,OE,rt],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 wk=["input"],Ck=function(n){return{enterDuration:n}},vk=["*"],Tk=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function xk(){return{color:"accent"}}});let qE=0;const Sk={provide:Xn,useExisting:(0,i.Gpc)(()=>UE),multi:!0};class YE{constructor(a,e){this.source=a,this.value=e}}const WE=new i.OlP("MatRadioGroup");let Ek=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+qE++,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 YE(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})(),UE=(()=>{class n extends Ek{}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,GE,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([Sk,{provide:WE,useExisting:n}]),i.qOj]}),n})();class Dk{constructor(a){this._elementRef=a}}const Hk=Sa(Oo(Dk));let Lk=(()=>{class n extends Hk{constructor(e,t,r,l,c,s,o,d){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=c,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++qE,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,d&&(this.tabIndex=Ji(d,0)),this._removeUniqueSelectionListener=c.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)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new YE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const l=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;l&&(l.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(wk,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})(),GE=(()=>{class n extends Lk{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(WE,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(zr),i.Y36(i.QbO,8),i.Y36(Tk,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:vk,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2),i._UZ(3,"span",3)(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.TgZ(9,"span",9)(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),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)("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(17,Ck,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[ia],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),$E=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();function Pk(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function Rk(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 kk(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 Ok(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.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()()}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 Ik(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 Bk(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 Nk(n,a){if(1&n&&(i.TgZ(0,"div",5)(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.TgZ(8,"p")(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p")(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,Rk,3,3,"span",9),i.YNc(19,kk,3,3,"span",9),i.YNc(20,Ok,10,12,"mat-radio-group",10),i.YNc(21,Ik,3,3,"span",9),i.YNc(22,Bk,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 Vk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15)(1,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),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 Fk=(()=>{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(Li),i.Y36(fn),i.Y36(ja),i.Y36(Yn))},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"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,Pk,1,0,"mat-spinner",1),i.YNc(5,Nk,23,17,"div",2),i.YNc(6,Vk,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))},dependencies:[w.O5,mn,rn,Xi,St,pn,cs,Ei,UE,GE,rt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function zk(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function jk(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 qk=(()=>{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=ni();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(AR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fp(n,a){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(KS))},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")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,zk,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,jk,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),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," "))},dependencies:[w.O5,Ui,rt],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 Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.removeNotification(l))}),i.qZA()()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const Wk=function(n){return{top:n}};let Uk=(()=>{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(fr),i.Y36(KS))},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,Yk,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,Wk,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,qk],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:[UP]}}),n})();function Gk(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 $k(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const Zk=function(n){return{color:n}};function Jk(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,Zk,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const Qk=function(n,a){return{background:n,color:a}},Xk=function(n,a){return{"min-height":n,"background-color":a}};let Kk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36($i),i.Y36(dv),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,Gk,2,1,"div",1),i.YNc(2,$k,3,1,"div",2),i.YNc(3,Jk,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,Qk,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,Xk,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,Ui,es,PE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})(),eO=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.getProperty("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.getProperty("external_services").forEach(l=>{const c={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.getProperty("supported_languages").forEach(o=>{c[`label_${o}`]=String(l[`label_${o}`])??l.label_en}),t.push(c)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const kv=["*"],tO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],iO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],JE=xa(Sa(class{})),oO=Sa(class{}),QE=new i.OlP("MatList"),XE=new i.OlP("MatNavList");let lO=(()=>{class n extends JE{constructor(){super(...arguments),this._stateChanges=new De.x}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:XE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Ov=(()=>{class n extends JE{constructor(e){super(),this._elementRef=e,this._stateChanges=new De.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return 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:QE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),KE=(()=>{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})(),eD=(()=>{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})(),IA=(()=>{class n extends oO{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const c=this._getHostElement();"button"===c.nodeName.toLowerCase()&&!c.hasAttribute("type")&&c.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(at(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function t0(n,a,e="mat"){n.changes.pipe(ti(n)).subscribe(({length:t})=>{jc(a,`${e}-2-line`,!1),jc(a,`${e}-3-line`,!1),jc(a,`${e}-multi-line`,!1),2===t||3===t?jc(a,`${e}-${t}-line`,!0):t>3&&jc(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(XE,8),i.Y36(QE,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,KE,5),i.Suo(r,eD,5),i.Suo(r,PM,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:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:iO,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(tO),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()))},dependencies:[ia],encapsulation:2,changeDetection:0}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,na,gt,ru,w.ez,$h,gt,ru,Rv]}),n})();const fO=function(n){return{color:n}};function mO(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,c=i.oxw();return i.KtG(l.external?c.goToURL(l.link):c.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()()}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,fO,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 gO=(()=>{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.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(c=>{c instanceof Jn&&(this.currentUrl=c.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.getProperty("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(eO),i.Y36($t),i.Y36(Ai),i.Y36(bi))},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,mO,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.PC,Ui,lO,IA,So,wA,ia,rt,si,LE],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})();const _O=["*",[["mat-toolbar-row"]]],bO=["*","mat-toolbar-row"],AO=ss(class{constructor(n){this._elementRef=n}});let yO=(()=>{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})(),MO=(()=>{class n extends AO{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(Vi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,yO,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:bO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(_O),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%}"],encapsulation:2,changeDetection:0}),n})(),Bv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const Nv=function(n){return{color:n}};function wO(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()()),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,Nv,e.iconColor))}}function CO(n,a){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,Nv,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function vO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let TO=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql))},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:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,wO,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,CO,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,vO,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);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(6,Nv,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,Ui,Hm,Ru,Gl,St,ur,rt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const iD=function(n){return{color:n}};function xO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,iD,e.iconColor))}}function SO(n,a){1&n&&(i.TgZ(0,"div",8)(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()())}const EO=function(n){return{background:n}},DO=function(){return[]},HO=function(){return["/"]};let LO=(()=>{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.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.adminLabel=this.storeService.getProperty("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.getProperty("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.adminLabel=this.storeService.getProperty("en"===e.lang?"admin_gui_label_en":"admin_gui_label_cs")}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36($i),i.Y36(bi),i.Y36(_A))},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)(1,"div",1),i.YNc(2,xO,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.YNc(6,SO,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,EO,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,DO):i.DdM(16,HO)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,iD,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))},dependencies:[w.O5,w.PC,Ui,yh,St,wA,MO,TO],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 PO(n,a){if(1&n&&(i.TgZ(0,"span",1)(1,"a",2),i._uU(2),i.qZA()()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let RO=(()=>{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,Yt.h)(e=>e instanceof Jn)).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 c=l.snapshot.url.map(o=>o.path).join("/");""!==c&&(t+=`/${c}`);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(Ai),i.Y36(Qn),i.Y36(bi))},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,PO,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},dependencies:[w.sg,yh],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})();const kO=["footer"],nD=function(n){return{background:n}},OO=function(n){return{"min-height":n}};function IO(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2)(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(5);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(3,"mat-sidenav-container")(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7)(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),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,nD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,nD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,OO,t.contentHeight))}}function BO(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 NO=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=c,this.preferredLangService=s,this.titleService=o,this.document=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.getProperty("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){if(this.translateService.onLangChange.subscribe(e=>{const t=this.store.getProperty("document_title");this.titleService.setTitle("en"===e.lang?t.en:t.cs),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown){const e=this.preferredLangService.getPreferredLanguage(null);this.headerLabel=this.store.getProperty("en"===e?"header_label_en":"header_label_cs")}else this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(c=>"preferredLanguage"===c.friendlyName)?.value??null,l=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(l)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Qt),i.Y36(bi),i.Y36(cv),i.Y36(i.sBO),i.Y36(dv),i.Y36(se),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(kO,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,IO,14,12,"ng-template",0),i.YNc(1,BO,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()))},dependencies:[w.O5,w.PC,nE,rE,hv,es,wA,PE,Uk,Kk,gO,LO,RO],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 rD=T(1158);function VO(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,l=i.oxw();return i.KtG(l.removeValue(r))}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA()()}}function FO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9)(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,c=i.oxw();return i.KtG(c.readonly&&c.attribute.displayName&&c.showValue(c.keys[l],c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.keys[c]=r)}),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,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.values[c]=r)}),i.qZA()(),i.YNc(7,VO,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 zO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function jO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function qO(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();return i.KtG(r.onShowChange())}),i.YNc(1,zO,2,0,"mat-icon",17),i.YNc(2,jO,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 YO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addValue())}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA()()}}let WO=(()=>{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=Zo(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))},dependencies:[w.sg,w.O5,Ap,hn,pn,td,aa,cs,Fl,Ui,St,ur,un,jn],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 UO=["input"],GO=["label"],$O=function(n){return{enterDuration:n}},ZO=["*"],JO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:aD});function aD(){return{color:"accent",clickAction:"check-indeterminate"}}let QO=0;const sD=aD(),XO={provide:Xn,useExisting:(0,i.Gpc)(()=>nc),multi:!0};class KO{}const eI=Oo(ss(Sa(xa(class{constructor(n){this._elementRef=n}}))));let tI=(()=>{class n extends eI{constructor(e,t,r,l,c,s,o){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,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||sD,this.color=this.defaultColor=this._options.color||sD.color,this.tabIndex=parseInt(c)||0,this.id=this._uniqueId=`${e}${++QO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=je(e);t!=this.checked&&(this._checked=t,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._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(UO,5),i.Gf(GO,5),i.Gf(ia,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),nc=(()=>{class n extends tI{constructor(e,t,r,l,c,s,o){super("mat-checkbox-",e,t,l,c,s,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new KO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(JO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",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"},exportAs:["matCheckbox"],features:[i._Bn([XO]),i.qOj],ngContentSelectors:ZO,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(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.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()()),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,$O,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[ia,Bh],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),oD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,El,oD,gt,oD]}),n})(),Vv=(()=>{class n{transform(e){return e.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function rI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())})("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.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 aI(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 sI=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zo(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,rI,2,4,"mat-checkbox",0),i.YNc(2,aI,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))},dependencies:[w.O5,nc,pn,cs,Hi,Vv]}),n})();function Fv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,null!=e&&e.has(t)?"important":""):n.removeProperty(t)}return n}function Zp(n,a){const e=a?"":"none";Fv(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 lD(n,a,e){Fv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function BA(n,a){return a&&"none"!=a?n+" "+a:n}function cD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function zv(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function jv(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 qv(n,a,e){const{top:t,bottom:r,left:l,right:c}=n;return e>=t&&e<=r&&a>=l&&a<=c}function tg(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function dD(n,a,e,t){const{top:r,right:l,bottom:c,left:s,width:o,height:d}=n,u=o*a,h=d*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:jv(e)})})}handleScroll(a){const e=lr(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,c;if(e===this._document){const d=this.getViewportScrollPosition();l=d.top,c=d.left}else l=e.scrollTop,c=e.scrollLeft;const s=r.top-l,o=r.left-c;return this.positions.forEach((d,u)=>{d.clientRect&&e!==u&&e.contains(u)&&tg(d.clientRect,s,o)}),r.top=l,r.left=c,{top:s,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function hD(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._getTargetHandle(s);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),N=this._dropContainer;if(!b)return void this._endDragSequence(s);(!N||!N.isDragging()&&!N.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,o);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=d.x-u.x+this._passiveTransform.x,h.y=d.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new uD(t),c.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=>Zp(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=>Fi(t)),this._handles.forEach(t=>Zp(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=Fi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,NA),e.addEventListener("touchstart",this._pointerDown,gD),e.addEventListener("dragstart",this._nativeDragStart,NA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Fi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Zp(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Zp(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ig(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(),c=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),lD(t,!1,Yv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=ig(e),l=!r&&0!==e.button,c=this._rootElement,s=lr(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?as(e):tu(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||d)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=jv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){lD(this._rootElement,!0,Yv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),c=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,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.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),r=bD(c,this._document),this._previewRef=c,a.matchSize?AD(r,l):r.style.transform=VA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=hD(this._rootElement),AD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Fv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Yv),Zp(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 lI(n){const a=getComputedStyle(n),e=zv(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=zv(a,"transition-duration"),c=zv(a,"transition-delay");return cD(l[r])+cD(c[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=c=>{var s;(!c||lr(c)===this._preview&&"transform"===c.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=bD(this._placeholderRef,this._document)):t=hD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():a,c=ig(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-s.left),y:l.top-a.top+(c.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ig(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 c=this._ownerSVGElement.getScreenCTM();if(c){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(c.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,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,s=this._boundaryRect,{width:o,height:d}=this._getPreviewRect(),u=s.top+c,h=s.bottom-(d-c);t=_D(t,s.left+l,s.right-(o-l)),r=_D(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),s=Math.abs(t-l.y);return c>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,Zp(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,NA),a.removeEventListener("touchstart",this._pointerDown,gD),a.removeEventListener("dragstart",this._nativeDragStart,NA)}_applyRootElementTransform(a,e){const t=VA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=BA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,l=VA(a,e);this._preview.style.transform=BA(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._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,c=t.right-r.right,s=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,r.height>t.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:ig(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=lr(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&tg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=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 Fi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function VA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function _D(n,a,e){return Math.max(a,Math.min(e,n))}function ig(n){return"t"===n.type[0]}function bD(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 AD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=VA(a.left,a.top)}function yD(n,a,e){const t=ng(a,n.length-1),r=ng(e,n.length-1);if(t===r)return;const l=n[t],c=r0)return null;const s="horizontal"===this.orientation,o=l.findIndex(pe=>pe.drag===a),d=l[c],h=d.clientRect,f=o>c?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),N=this._getSiblingOffsetPx(o,l,f),X=l.slice();return yD(l,o,c),l.forEach((pe,Pe)=>{if(X[Pe]===pe)return;const _t=pe.drag===a,Rt=_t?b:N,Ut=_t?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=Rt,s?(Ut.style.transform=BA(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),tg(pe.clientRect,0,Rt)):(Ut.style.transform=BA(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),tg(pe.clientRect,Rt,0))}),this._previousSwap.overlaps=qv(h,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:o,currentIndex:c}}enter(a,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,c=this._activeDraggables,s=c.indexOf(a),o=a.getPlaceholderElement();let d=c[l];if(d===a&&(d=c[l+1]),!d&&(null==l||-1===l||l-1&&c.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const u=d.getRootElement();u.parentElement.insertBefore(o,u),c.splice(l,0,a)}else Fi(this._element).appendChild(o),c.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(l=>l.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{tg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:jv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let s=l[r?"width":"height"]*t;if(c){const o=r?"left":"top",d=r?"right":"bottom";-1===t?s-=c.clientRect[o]-l[d]:s+=l[o]-c.clientRect[d]}return s}_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 c=t[t.length-1].clientRect;return r?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return r?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const d=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function oI(n=0,a=Ha.z){return n<0&&(n=0),(0,f0.H)(n,n,a)}(0,WM).pipe(at(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-s):2===this._verticalScrollDirection&&c.scrollBy(0,s),1===this._horizontalScrollDirection?c.scrollBy(-s,0):2===this._horizontalScrollDirection&&c.scrollBy(s,0)})},this.element=Fi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new uD(t),this._sortStrategy=new hI(this.element,e),this._sortStrategy.withSortPredicate((c,s)=>this.sortPredicate(c,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,c,s,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:c,dropPoint:s,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Fi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!dD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((c,s)=>{s===this._document||!c.clientRect||t||dD(c.clientRect,.05,a,e)&&([r,l]=function fI(n,a,e,t){const r=CD(a,t),l=vD(a,e);let c=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(c=1):n.scrollHeight-o>n.clientHeight&&(c=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[c,s]}(s,c.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:c,height:s}=this._viewportRuler.getViewportSize(),o={width:c,height:s,top:0,right:c,bottom:s,left:0};r=CD(o,e),l=vD(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=Fi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Fi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Fi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&qv(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!qv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Fi(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._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Fi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function CD(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 vD(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 FA=Kr({passive:!1,capture:!0});let mI=(()=>{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 De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,FA)})}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,FA)}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:FA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:FA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Ln.y(r=>this._ngZone.runOutsideAngular(()=>{const c=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,zi.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 gI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Wv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=gI){return new uI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new pI(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(No),i.LFG(mI))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TD=new i.OlP("CDK_DRAG_PARENT"),xD=new i.OlP("CdkDropListGroup"),SD=new i.OlP("CDK_DRAG_CONFIG");let _I=0;const ED=new i.OlP("CdkDropList");let bI=(()=>{class n{constructor(e,t,r,l,c,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=c,this._group=s,this._destroyed=new De.x,this.connectedTo=[],this.id="cdk-drop-list-"+_I++,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=(d,u)=>this.enterPredicate(d.data,u.data),this._dropListRef.sortPredicate=(d,u,h)=>this.sortPredicate(d,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(ti(this._dir.value),at(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Jd(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(c=>c.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=Ji(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:c,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=l??!1,this.autoScrollDisabled=c??!1,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(Wv),i.Y36(i.sBO),i.Y36(Yc),i.Y36(Fn,8),i.Y36(xD,12),i.Y36(SD,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:xD,useValue:void 0},{provide:ED,useExisting:n}])]}),n})();const DD=new i.OlP("CdkDragHandle"),AI=new i.OlP("CdkDragPlaceholder"),yI=new i.OlP("CdkDragPreview");let wI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=c,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new De.x,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 Ln.y(b=>{const N=this._dragRef.moved.pipe((0,At.U)(X=>({source:this,pointerPosition:X.pointerPosition,event:X.event,delta:X.delta,distance:X.distance}))).subscribe(b);return()=>{N.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex: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()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,dt.q)(1),at(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(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Fi(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,c=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:Ji(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(c).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=n._dragInstances.find(l=>l.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:c,boundaryElement:s,draggingDisabled:o,rootElementSelector:d,previewContainer:u}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),c&&(this.previewClass=c),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(ti(this._handles),(0,gi.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,It.w)(e=>(0,zi.T)(...e.map(t=>t._stateChanges.pipe(ti(t))))),at(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(ED,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(SD,8),i.Y36(Fn,8),i.Y36(Wv),i.Y36(i.sBO),i.Y36(DD,10),i.Y36(TD,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,yI,5),i.Suo(r,AI,5),i.Suo(r,DD,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:TD,useExisting:n}]),i.TTD]}),n})(),CI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Wv],imports:[La]}),n})();const vI=["*"],HD=new i.OlP("MatChipRemove"),LD=new i.OlP("MatChipAvatar"),PD=new i.OlP("MatChipTrailingIcon");class TI{constructor(a){this._elementRef=a}}const xI=Oo(ss(Sa(TI),"primary"),-1);let zA=(()=>{class n extends xI{constructor(e,t,r,l,c,s,o,d){super(e),this._ngZone=t,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new De.x,this._onBlur=new De.x,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 IM(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=d&&parseInt(d)||-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,dt.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(Vi),i.Y36(BM,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(i.QbO,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,LD,5),i.Suo(r,PD,5),i.Suo(r,HD,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:[1,"mat-chip","mat-focus-indicator"],hostVars:15,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)("role",t.role)("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",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const RD=new i.OlP("mat-chips-default-options"),HI=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let LI=0;class PI{constructor(a,e){this.source=a,this.value=e}}let kD=(()=>{class n extends HI{constructor(e,t,r,l,c,s,o){super(s,l,c,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new De.x,this._uid="mat-chip-list-"+LI++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===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._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Qi.required))&&void 0!==e&&e}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,zi.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,zi.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,zi.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,zi.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new zh(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(at(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(at(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ti(null),at(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 vn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(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 PI(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(Fn,8),i.Y36(Fl,8),i.Y36(Qs,8),i.Y36(zc),i.Y36(ra,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,zA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,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-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:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:Qc,useExisting:n}]),i.qOj],ngContentSelectors:vI,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:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),RI=0,OD=(()=>{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-"+RI++,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&&!wn(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!wn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(RD))},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})(),Uv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[zc,{provide:RD,useValue:{separatorKeyCodes:[13]}}],imports:[gt]}),n})();function kI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.dragDisabled=!1)}),i._uU(1,"drag_indicator"),i.qZA()}}function OI(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,l=i.oxw();return i.KtG(l.edit(r))}),i._uU(1,"edit"),i.qZA()}}function II(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,l=i.oxw();return i.KtG(l.remove(r))}),i._uU(1,"cancel"),i.qZA()}}function BI(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,c=i.oxw();return c.remove(l),i.KtG(c._sendEventToParent())}),i.YNc(1,kI,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))}),i._uU(3),i.qZA(),i.YNc(4,OI,2,0,"mat-icon",7),i.YNc(5,II,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 NI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function VI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function FI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"span",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(3,NI,2,0,"mat-icon",15),i.YNc(4,VI,2,0,"mat-icon",15),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 zI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12)(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.add(r))})("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())}),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 jI=(()=>{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=!Zo(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=Zo(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=ni();t.width="400px",t.data={name:e},this.dialog.open(rk,t).afterClosed().subscribe(l=>{if(l){const c=this.attribute.value.indexOf(e);this.attribute.value.splice(c,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,yD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=ni();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(nk,r).afterClosed().subscribe(c=>{c&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=ni();r.width="350px",r.data={value:e,title:t},this.dialog.open(OA,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(Pi),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")(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,BI,6,9,"mat-chip",2),i.YNc(4,FI,5,4,"div",3),i.YNc(5,zI,2,3,"mat-form-field",3),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))},dependencies:[w.sg,w.O5,kD,zA,OD,bI,wI,Ui,St,ur,un,jn],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})(),qI=(()=>{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=Zo(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=ni();r.width="350px",r.data={value:e,title:t},this.dialog.open(OA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi))},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)(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()()),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))},dependencies:[hn,pn,cs,un,jn,Vv],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),YI=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zo(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=ni();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(OA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi))},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)(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()()),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))},dependencies:[hn,Tu,pn,cs,un,jn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const WI=["map"];function UI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function GI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function $I(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 ZI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function JI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let Gv=(()=>{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(WI,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,UI,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,GI,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,$I,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,ZI,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,JI,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))},dependencies:[w.O5,sI,jI,WO,qI,YI]}),n})();function QI(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function XI(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,c=i.oxw(4);return i.KtG(c.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 KI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",14),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentLang=r)}),i.YNc(2,XI,4,6,"mat-option",15),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 eB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeEmail())}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),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 tB(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,c=i.oxw(4);return i.KtG(c.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 iB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",19),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentTimezone=r)}),i.YNc(2,tB,2,2,"mat-option",15),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 nB(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function rB(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 aB(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,nB,2,0,"p",20),i.YNc(2,rB,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 sB(n,a){if(1&n&&(i.TgZ(0,"tr")(1,"td",7)(2,"div",8),i._uU(3),i.qZA()(),i.TgZ(4,"td",9),i.YNc(5,KI,3,2,"mat-form-field",10),i.YNc(6,eB,6,2,"div",11),i.YNc(7,iB,3,2,"mat-form-field",10),i.YNc(8,aB,3,2,"div",12),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 oB(n,a){if(1&n&&(i.TgZ(0,"table",4)(1,"tbody")(2,"tr")(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.YNc(9,sB,9,6,"tr",6),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 lB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=c,this.route=s,this.router=o,this.notificator=d,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.getProperty("supported_languages"),this.timeZones=rD.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=ni();l.width="600px",this.dialog.open(gk,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new vA).transform(t);const r=t.userAttributes.find(u=>"preferredMail"===u.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(u=>"preferredLanguage"===u.friendlyName);const c=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(c),this.currentLang=c,this.timezoneAttribute=t.userAttributes.find(u=>"timezone"===u.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const s=this.storeService.getProperty("profile_page_attributes");let o=0;const d=this.storeService.getProperty("supported_languages");s.forEach(u=>{const h=t.userAttributes.find(f=>f.friendlyName===u.friendly_name);h?(o++,this.addAttribute(h,u,d)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${u.is_virtual?"virt":"def"}:${u.friendly_name}`).subscribe(f=>{this.addAttribute(f,u,d),o++,this.loading=o!==s.length}),this.loading=o!==s.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=ni();e.width="350px",e.data={userId:this.userId},this.dialog.open(ok,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const l={attribute:e};for(const c of r)l[`displayName_${c}`]=t?.[`display_name_${c}`]?.length?t[`display_name_${c}`]:e.displayName,l[`tooltip_${c}`]=t[`tooltip_${c}`]??"";this.additionalAttributes.push(l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Pi),i.Y36(ht),i.Y36(Qt),i.Y36(ki),i.Y36(Qn),i.Y36(Ai),i.Y36(fr),i.Y36($t),i.Y36($m),i.Y36(dv))},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,QI,1,0,"mat-spinner",1),i.YNc(2,oB,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,w.RF,w.n9,w.ED,Ui,St,Gv,un,Tp,js,Ei,ur,w.gd,rt,si],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})(),cB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Ui,rt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),dB=(()=>{class n{constructor(e,t,r,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=l}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let l=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const o=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let f;if(h){const N=ni();N.width="450px",N.panelClass="noBorderDialog",f=this.dialog.open(cB,N)}window.addEventListener("message",N=>{sessionStorage.setItem("linkedResult",N.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const N=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(N)}},1e3)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_A),i.LFG($t),i.LFG(od.Ct),i.LFG(Pi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$v=(()=>{class n{}return n.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",n.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",n.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",n.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",n.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",n.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",n.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",n.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",n.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",n.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",n.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",n.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",n.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",n.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",n.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",n.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",n.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",n.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",n.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",n.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",n.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",n.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",n.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",n.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",n.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",n.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",n.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",n})();const uB=["mat-sort-header",""];function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),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 pB=["*"],ID=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),fB=nu(xa(class{}));let _s=(()=>{class n extends fB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,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 c=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear);let s=function mB(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,c),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(ID,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 ld=Uh.ENTERING+" "+v1.STANDARD_CURVE,Jp={indicator:wi("indicator",[kt("active-asc, asc",Ie({transform:"translateY(0px)"})),kt("active-desc, desc",Ie({transform:"translateY(10px)"})),Pt("active-asc <=> active-desc",Dt(ld))]),leftPointer:wi("leftPointer",[kt("active-asc, asc",Ie({transform:"rotate(-45deg)"})),kt("active-desc, desc",Ie({transform:"rotate(45deg)"})),Pt("active-asc <=> active-desc",Dt(ld))]),rightPointer:wi("rightPointer",[kt("active-asc, asc",Ie({transform:"rotate(45deg)"})),kt("active-desc, desc",Ie({transform:"rotate(-45deg)"})),Pt("active-asc <=> active-desc",Dt(ld))]),arrowOpacity:wi("arrowOpacity",[kt("desc-to-active, asc-to-active, active",Ie({opacity:1})),kt("desc-to-hint, asc-to-hint, hint",Ie({opacity:.54})),kt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ie({opacity:0})),Pt("* => asc, * => desc, * => active, * => hint, * => void",Dt("0ms")),Pt("* <=> *",Dt(ld))]),arrowPosition:wi("arrowPosition",[Pt("* => desc-to-hint, * => desc-to-active",Dt(ld,Us([Ie({transform:"translateY(-25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-desc, * => active-to-desc",Dt(ld,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(25%)"})]))),Pt("* => asc-to-hint, * => asc-to-active",Dt(ld,Us([Ie({transform:"translateY(25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-asc, * => active-to-asc",Dt(ld,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(-25%)"})]))),kt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ie({transform:"translateY(0)"})),kt("hint-to-desc, active-to-desc, desc",Ie({transform:"translateY(-25%)"})),kt("hint-to-asc, active-to-asc, asc",Ie({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Pt("* <=> *",[Fr("@*",kl(),{optional:!0})])])};let jA=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _B={provide:jA,deps:[[new i.FiY,new i.tp0,jA]],useFactory:function gB(n){return n||new jA}},bB=xa(class{});let rg=(()=>{class n extends bB{constructor(e,t,r,l,c,s,o,d){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=c,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=d?.arrowPosition),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(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,zi.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(jA),i.Y36(i.sBO),i.Y36(_s,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(vr),i.Y36(i.SBq),i.Y36(p1,8),i.Y36(ID,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:uB,ngContentSelectors:pB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,hB,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)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jp.indicator,Jp.leftPointer,Jp.rightPointer,Jp.arrowOpacity,Jp.arrowPosition,Jp.allowChildren]},changeDetection:0}),n})(),qA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_B],imports:[w.ez,gt]}),n})(),AB=(()=>{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})(),BD=(()=>{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})(),yB=(()=>{class n{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function MB(n,a){1&n&&i._UZ(0,"th",18)}function wB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),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 CB(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 vB(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 TB(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 xB(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 SB(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 EB(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 DB(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 HB(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 LB(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 PB(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 RB(n,a){1&n&&i._UZ(0,"tr",26)}const ND=function(n,a){return["/admin","users",n,"identities",a]};function kB(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,ND,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,ND,t.userId,e.userExtSource.id))}}function OB(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 IB(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 BB=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new vn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=zu}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 Jo(this.userExtSources),this.setDataSource()}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>ju(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(Qn),i.Y36(Ua))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(us,7),i.Gf(_s,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,MB,1,0,"th",4),i.YNc(5,wB,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,CB,4,5,"th",7),i.YNc(8,vB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,TB,4,5,"th",10),i.YNc(11,xB,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,SB,4,5,"th",7),i.YNc(14,EB,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,DB,4,5,"th",7),i.YNc(17,HB,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,LB,4,5,"th",7),i.YNc(20,PB,3,4,"td",14),i.BQk(),i.YNc(21,RB,1,0,"tr",15),i.YNc(22,kB,1,12,"tr",16),i.qZA()()(),i.YNc(23,OB,3,3,"perun-web-apps-alert",17),i.YNc(24,IB,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))},dependencies:[w.O5,nc,no,ps,ro,fs,hs,ao,ms,gs,so,oo,So,_s,rg,kn,ur,us,BD,w.uU,rt,yB,si],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 NB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function VB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.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 i.KtG(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 FB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addIdentity())}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeIdentity(r.idpSelection))}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i._UZ(9,"perun-web-apps-user-ext-sources-list",7),i.YNc(10,VB,14,22,"div",3),i.TgZ(11,"h1",8),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.TgZ(15,"mat-icon",9),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i._uU(18," info_outline "),i.qZA()(),i._UZ(19,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,16,i.lcZ(4,18,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(7,20,i.lcZ(8,22,"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(13,24,i.lcZ(14,26,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(16,28,i.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let zB=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=l,this.translate=c,this.notificator=s,this.registrarManagerService=o,this.openLinkerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new vn(!0,[]),this.certSelection=new vn(!0,[]),this.otherSelection=new vn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.getProperty("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[$v.UES_SOURCE_IDP_NAME,$v.UES_DEF_MAIL]).subscribe(l=>{let c;l.filter(s=>"mail"===s.baseFriendlyName&&null===s.value).map(s=>r.attributes.push(s)),l.filter(s=>"sourceIdPName"===s.baseFriendlyName&&s?.value).map(s=>c=s.value),c?(r.userExtSource.extSource.name=c,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,$v.UES_IDP_ORGANIZATION_NAME).subscribe(s=>{t--,s?.value&&(r.userExtSource.extSource.name=s.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=ni();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(KR,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.getProperty("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ki),i.Y36($t),i.Y36(Pi),i.Y36(Qt),i.Y36(bi),i.Y36(fr),i.Y36(ac),i.Y36(dB))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,NB,1,0,"mat-spinner",2),i.YNc(6,FB,20,32,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"IDENTITIES.IDP"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Ui,St,BB,Ei,ur,rt,si],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const jB=["panel"];function qB(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 YB=["*"];let WB=0;class UB{constructor(a,e){this.source=a,this.option=e}}const GB=Sa(class{}),VD=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function $B(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let ZB=(()=>{class n extends GB{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Nt.w0.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-"+WB++,this.inertGroups=l?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function aM(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 ta(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 UB(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(VD),i.Y36(Vi))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(jB,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",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),JB=(()=>{class n extends ZB{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,au,5),i.Suo(r,js,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:r0,useExisting:n}]),i.qOj],ngContentSelectors:YB,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,qB,3,4,"ng-template"))},dependencies:[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}"],encapsulation:2,changeDetection:0}),n})();const FD=new i.OlP("mat-autocomplete-scroll-strategy"),XB={provide:FD,deps:[Cn],useFactory:function QB(n){return()=>n.scrollStrategies.reposition()}},KB={provide:Xn,useExisting:(0,i.Gpc)(()=>zD),multi:!0};let eN=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=c,this._dir=o,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new De.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=rr(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(ti(b),(0,It.w)(()=>(0,zi.T)(...b.map(N=>N.onSelectionChange)))):this._zone.onStable.pipe((0,dt.q)(1),(0,It.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,zi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Yt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,At.U)(e=>e instanceof a0?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,zi.T)(qs(this._document,"click"),qs(this._document,"auxclick"),qs(this._document,"touchend")).pipe((0,Yt.h)(e=>{const t=lr(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=wn(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const l=this.autocomplete._keyManager.activeItem,c=38===t||40===t;9===t||c&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):c&&this._canOpen()&&this.openPanel(),(c||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,dt.q)(1)),t=this.autocomplete.options.changes.pipe((0,gi.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Sp.g)(0));return(0,zi.T)(e,t).pipe((0,It.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,dt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Hl(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new cu({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 c;c="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(c)}_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=s0(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 c=l._getHostElement(),s=o0(c.offsetTop,c.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!wn(t)||38===t.keyCode&&wn(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cn),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(FD),i.Y36(Fn,8),i.Y36(Xc,9),i.Y36(w.K0,8),i.Y36(No),i.Y36(VD,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})(),zD=(()=>{class n extends eN{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)})("click",function(){return t._handleClick()}),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?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([KB]),i.qOj]}),n})(),tN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[XB],imports:[zo,su,gt,w.ez,La,su,gt]}),n})(),iN=(()=>{class n{transform(e){return e?.value??"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function nN(n,a){1&n&&i._UZ(0,"th",17)}function rN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),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 aN(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 sN(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 oN(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 lN(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 cN(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 dN(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 uN(n,a){1&n&&i._UZ(0,"th",20)}function hN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.extend(l))}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),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 pN(n,a){1&n&&i._UZ(0,"tr",25)}function fN(n,a){1&n&&i._UZ(0,"tr",26)}function mN(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 jD=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new vn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=zu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Jo(this.members),this.setDataSource()}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>ju(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(us,7),i.Gf(_s,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,nN,1,0,"th",4),i.YNc(5,rN,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,aN,4,5,"th",7),i.YNc(8,sN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,oN,4,5,"th",7),i.YNc(11,lN,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,cN,4,5,"th",12),i.YNc(14,dN,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,uN,1,0,"th",7),i.YNc(17,hN,6,8,"td",10),i.BQk(),i.YNc(18,pN,1,0,"tr",14),i.YNc(19,fN,1,0,"tr",15),i.qZA()()(),i.YNc(20,mN,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))},dependencies:[w.O5,St,kn,no,ps,ro,fs,hs,ao,ms,gs,so,oo,nc,_s,rg,us,rt,si,iN]}),n})();function gN(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 _N(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7)(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){i.CHM(e);const l=i.oxw();return i.KtG(l.filterByVo(r))}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,gN,2,2,"mat-option",12),i.ALo(14,"async"),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 bN(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function AN(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 yN=function(){return["name","description","expirationAttribute","extend"]};function MN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.extendMembership(r))}),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,yN))}}const wN=function(){return["name","description"]};function CN(n,a){if(1&n&&(i.TgZ(0,"div",18)(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,wN))}}let vN=(()=>{class n{constructor(e,t,r,l,c,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=c,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new ka,this.selection=new vn(!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(ti(""),(0,At.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(c=>{e+=c.length,this.loading=0===e&&0!==t,c.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(c=>{this.adminMemberships.push({entity:c,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 c=l.length;this.loading=0!==c,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{c--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==c})})})}),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.getProperty("registrar_base_url"),r=e.entity,l=this.vos.find(c=>c.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(ki),i.Y36(Bn),i.Y36(Yn),i.Y36($t),i.Y36(nn),i.Y36(Qt))},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,_N,15,19,"mat-form-field",2),i.YNc(6,bN,1,0,"mat-spinner",3),i.YNc(7,AN,4,5,"perun-web-apps-alert",4),i.YNc(8,MN,6,9,"div",5),i.YNc(9,CN,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))},dependencies:[w.sg,w.O5,kn,un,Hi,js,jn,hn,pn,Oa,Ei,JB,zD,jD,w.Ov,rt,si]}),n})();function TN(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 xN(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 Qp=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new ka}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","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,TN,2,4,"input",1),i.YNc(2,xN,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,hn,pn,un,Oa,jn,AB,rt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})();function SN(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 EN=(()=>{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,SN,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[w.O5,Ui,ur,rt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function DN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),i.Q2q("data-cy","",e.groupName,"-active")}}function HN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),i.Q2q("data-cy","",e.groupName,"-inactive")}}function LN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),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 PN(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()()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let RN=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new i.vpe}changeStatus(){const e=ni();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(Fk,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,DN,4,4,"span",1),i.YNc(2,HN,4,4,"span",1),i.YNc(3,LN,4,4,"span",1),i.YNc(4,PN,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))},dependencies:[w.O5,Ui,ur,rt]}),n})(),kN=(()=>{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})(),ON=(()=>{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})(),Zv=(()=>{class n{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return this.tableCheckboxService.isAllSelected(t,e,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gA,16))},n.\u0275pipe=i.Yjl({name:"isAllSelected",type:n,pure:!0}),n})();function IN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",25)(1,"mat-checkbox",26),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function BN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",27)(1,"span",28),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",29),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.itemSelectionToggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw(2);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 NN(n,a){1&n&&(i.ynx(0,22),i.YNc(1,IN,2,3,"th",23),i.YNc(2,BN,4,9,"td",24),i.BQk())}function VN(n,a){1&n&&(i.TgZ(0,"th",30),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 FN(n,a){if(1&n&&(i.TgZ(0,"td",31),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function zN(n,a){1&n&&i._UZ(0,"th",32)}function jN(n,a){if(1&n&&(i.TgZ(0,"td",33),i._UZ(1,"perun-web-apps-recently-viewed-icon",34),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function qN(n,a){1&n&&i._UZ(0,"th",32)}function YN(n,a){1&n&&(i.TgZ(0,"mat-icon",36),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 WN(n,a){if(1&n&&(i.TgZ(0,"td",33),i.YNc(1,YN,3,3,"mat-icon",35),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function UN(n,a){1&n&&(i.TgZ(0,"th",30),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 GN(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function $N(n,a){1&n&&(i.TgZ(0,"th",30),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 ZN(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function JN(n,a){1&n&&(i.TgZ(0,"th",30),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 QN(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function XN(n,a){1&n&&(i.TgZ(0,"th",30),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 KN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",33)(1,"perun-web-apps-group-resource-status",37),i.NdJ("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable.emit())}),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 e3(n,a){1&n&&(i.TgZ(0,"th",30),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 t3(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function n3(n,a){1&n&&(i.TgZ(0,"th",30),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 r3(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function a3(n,a){1&n&&(i.TgZ(0,"th",30),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 s3(n,a){if(1&n&&(i.TgZ(0,"td",33),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 o3(n,a){1&n&&(i.TgZ(0,"th",30),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 l3(n,a){if(1&n&&(i.TgZ(0,"td",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function c3(n,a){1&n&&i._UZ(0,"tr",38)}const d3=function(n){return[n]};function u3(n,a){if(1&n&&(i._UZ(0,"tr",39),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,d3,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function h3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",40),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 p3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",40),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"))}const f3=function(n){return{all:n}};let m3=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new vn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=zu,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 c="";return e.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new Jo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>ju(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}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(Ua),i.Y36(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(us,7),i.Gf(_s,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:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,NN,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,VN,3,3,"th",5),i.YNc(7,FN,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,zN,1,0,"th",8),i.YNc(10,jN,2,2,"td",9),i.BQk(),i.ynx(11,10),i.YNc(12,qN,1,0,"th",8),i.YNc(13,WN,2,1,"td",9),i.BQk(),i.ynx(14,11),i.YNc(15,UN,3,3,"th",5),i.YNc(16,GN,2,2,"td",9),i.BQk(),i.ynx(17,12),i.YNc(18,$N,3,3,"th",5),i.YNc(19,ZN,2,1,"td",9),i.BQk(),i.ynx(20,13),i.YNc(21,JN,3,3,"th",5),i.YNc(22,QN,2,1,"td",9),i.BQk(),i.ynx(23,14),i.YNc(24,XN,3,3,"th",5),i.YNc(25,KN,2,5,"td",9),i.BQk(),i.ynx(26,15),i.YNc(27,e3,3,3,"th",5),i.YNc(28,t3,2,1,"td",9),i.BQk(),i.ynx(29,16),i.YNc(30,n3,3,3,"th",5),i.YNc(31,r3,2,1,"td",9),i.BQk(),i.ynx(32,17),i.YNc(33,a3,3,3,"th",5),i.YNc(34,s3,3,3,"td",9),i.BQk(),i.ynx(35,18),i.YNc(36,o3,3,3,"th",5),i.YNc(37,l3,2,1,"td",9),i.BQk(),i.YNc(38,c3,1,0,"tr",19),i.YNc(39,u3,3,14,"tr",20),i.qZA()()(),i.YNc(40,h3,3,3,"perun-web-apps-alert",21),i.YNc(41,p3,3,3,"perun-web-apps-alert",21)),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(1),i.Q6J("ngIf",i.VKq(14,f3,i.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),i.xp6(35),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))},dependencies:[w.O5,nc,no,ps,ro,fs,hs,ao,ms,gs,so,oo,So,_s,rg,kn,Ui,ur,us,BD,EN,RN,rt,kN,ON,Zv],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})(),g3=0;const Jv=new i.OlP("CdkAccordion");let _3=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+g3++,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:Jv,useExisting:n}]),i.TTD]}),n})(),b3=0,A3=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Nt.w0.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-"+b3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&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(Jv,12),i.Y36(i.sBO),i.Y36(zr))},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:Jv,useValue:void 0}])]}),n})(),y3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const M3=["body"];function w3(n,a){}const C3=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],v3=["mat-expansion-panel-header","*","mat-action-row"];function T3(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const x3=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],S3=["mat-panel-title","mat-panel-description","*"],Qv=new i.OlP("MAT_ACCORDION"),qD="225ms cubic-bezier(0.4,0.0,0.2,1)",YD={indicatorRotate:wi("indicatorRotate",[kt("collapsed, void",Ie({transform:"rotate(0deg)"})),kt("expanded",Ie({transform:"rotate(180deg)"})),Pt("expanded <=> collapsed, void => collapsed",Dt(qD))]),bodyExpansion:wi("bodyExpansion",[kt("collapsed, void",Ie({height:"0px",visibility:"hidden"})),kt("expanded",Ie({height:"*",visibility:"visible"})),Pt("expanded <=> collapsed, void => collapsed",Dt(qD))])},WD=new i.OlP("MAT_EXPANSION_PANEL");let ag=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(WD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),E3=0;const UD=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let sg=(()=>{class n extends A3{constructor(e,t,r,l,c,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 De.x,this._headerId="mat-expansion-panel-header-"+E3++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(Ih((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.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._lazyContent._expansionPanel===this&&this.opened.pipe(ti(null),(0,Yt.h)(()=>this.expanded&&!this._portal),(0,dt.q)(1)).subscribe(()=>{this._portal=new Hl(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(Qv,12),i.Y36(i.sBO),i.Y36(zr),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(UD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,ag,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(M3,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:Qv,useValue:void 0},{provide:WD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:v3,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(C3),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,w3,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))},dependencies:[rp],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[YD.bodyExpansion]},changeDetection:0}),n})();class D3{}const H3=Oo(D3);let og=(()=>{class n extends H3{constructor(e,t,r,l,c,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=Nt.w0.EMPTY;const d=e.accordion?e.accordion._stateChanges.pipe((0,Yt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Ur.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,zi.T)(e.opened,e.closed,d,e._inputChanges.pipe((0,Yt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Yt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.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:wn(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(sg,1),i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.Y36(UD,8),i.Y36(i.QbO,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:S3,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(x3),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,T3,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[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-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[YD.indicatorRotate]},changeDetection:0}),n})(),YA=(()=>{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})(),WA=(()=>{class n extends _3{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(ti(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zh(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,og,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:Qv,useExisting:n}]),i.qOj]}),n})(),Xv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,y3,Fo]}),n})();function L3(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const P3=function(){return["name","description"]};function R3(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,P3))("disableRouting",!0)}}function k3(n,a){if(1&n&&(i.YNc(0,L3,1,0,"mat-spinner",6),i.YNc(1,R3,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 O3(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,c=i.oxw();return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,k3,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let I3=(()=>{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(ki),i.Y36(Bn),i.Y36(ja),i.Y36($t))},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)(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,O3,5,1,"mat-expansion-panel",3),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))},dependencies:[w.sg,w.O5,Qp,m3,WA,sg,og,YA,ag,Ei,rt,si]}),n})();function B3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilter(r))}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function N3(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const V3=function(){return["name","expirationAttribute","extend"]};function F3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.extendMembership(r))}),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,V3))}}function z3(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 j3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,F3,2,5,"div",9),i.YNc(6,z3,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 q3(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 Y3=function(){return["name"]};function W3(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,Y3))}}function U3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,q3,4,5,"perun-web-apps-alert",10),i.YNc(6,W3,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 G3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new vn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.getProperty("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const c=r.find(s=>s.voId===l.id);c?this.membersService.getRichMemberWithAttributes(c.id).subscribe(s=>{const o=s.memberAttributes.find(d=>"membershipExpiration"===d.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(ki),i.Y36($t),i.Y36(Bn))},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,B3,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,N3,1,0,"mat-spinner",3),i.YNc(7,j3,7,7,"div",4),i.YNc(8,U3,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))},dependencies:[w.O5,Qp,kn,Ei,jD,rt,si]}),n})(),$3=(()=>{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())},dependencies:[es]}),n})(),Z3=(()=>{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(Li),i.Y36(fn))},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)(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.TgZ(11,"div",3)(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()()),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"))," "))},dependencies:[St,mn,rn,Xi,Pv,rt,si],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function J3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function Q3(n,a){1&n&&i._UZ(0,"th",16)}function X3(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 K3(n,a){1&n&&i._UZ(0,"tr",18)}function eV(n,a){1&n&&i._UZ(0,"tr",19)}function tV(n,a){if(1&n&&(i.TgZ(0,"div",8)(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,Q3,1,0,"th",12),i.YNc(12,X3,2,1,"td",13),i.BQk(),i.YNc(13,K3,1,0,"tr",14),i.YNc(14,eV,1,0,"tr",15),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 iV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Jo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(fn),i.Y36(ki))},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,J3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,tV,15,13,"div",3),i.TgZ(7,"div",4)(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()()),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"))," "))},dependencies:[w.O5,St,mn,rn,Xi,no,ps,ro,fs,hs,ao,ms,gs,so,oo,Ei,rt,si]}),n})();function nV(n,a){1&n&&i._UZ(0,"th",12)}function rV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13)(1,"mat-checkbox",14),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),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 aV(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 sV(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 oV(n,a){1&n&&i._UZ(0,"tr",17)}function lV(n,a){1&n&&i._UZ(0,"tr",18)}function cV(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 GD=(()=>{class n{constructor(){this.values=[],this.selection=new vn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Jo(this.values),this.setDataSource()}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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(us,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","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,nV,1,0,"th",4),i.YNc(5,rV,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,aV,2,1,"th",7),i.YNc(8,sV,2,1,"td",8),i.BQk(),i.YNc(9,oV,1,0,"tr",9),i.YNc(10,lV,1,0,"tr",10),i.qZA()()(),i.YNc(11,cV,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))},dependencies:[w.O5,kn,no,ps,ro,fs,hs,ao,ms,gs,so,oo,nc,us],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function dV(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 uV(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let hV=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=c,this.altPasswordCtrl=new ka(null,[Qi.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new vn(!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({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=ni();t.width="600px",t.data={password:e},this.dialog.open(Z3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const c=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*c);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=ni();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(iV,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Qt),i.Y36(Pi),i.Y36(bi),i.Y36(ki))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),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,dV,1,4,"perun-web-apps-string-list",8),i.YNc(27,uV,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))},dependencies:[w.O5,St,kn,un,jn,hn,pn,Oa,Ei,GD,rt,si]}),n})();function pV(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1)(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()()),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 fV=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.getProperty("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t))},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,pV,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,Ui,Ov,IA,So,ia,rt,si],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),mV=(()=>{class n extends xn{buildStyles(e,{display:t}){const r=sE(e);return{...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 gV=["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 _V=(()=>{class n extends gn{constructor(e,t,r,l,c){super(e,r,t,l),this._config=c,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=ZD.get(l))&&void 0!==t?t:new Map,ZD.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(Ki),i.Y36(mV),i.Y36(an),i.Y36(io))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),$D=(()=>{class n extends _V{constructor(){super(...arguments),this.inputs=gV}}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 ZD=new Map;let JV=(()=>{class n extends xn{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 QV=["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 XV=(()=>{class n extends gn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=KV,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ki),i.Y36(JV),i.Y36(an))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const KV=new Map;let XD=(()=>{class n extends XV{constructor(){super(...arguments),this.inputs=QV}}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})(),KD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mv,Ro]}),n})();function gF(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 _F=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=c,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",c.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 ka(null,[Qi.required]),this.newValueControl=new ka(null,[Qi.required,Qi.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new vA).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(Li),i.Y36(fn),i.Y36(mi),i.Y36(fr),i.Y36(bi))},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)(5,"div")(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.TgZ(12,"div")(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.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,gF,2,2,"mat-option",7),i.qZA()(),i.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA()()(),i.TgZ(33,"div",10)(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()()()),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"))," "))},dependencies:[w.sg,St,$D,XD,un,Tp,js,mn,Xi,jn,hn,Tu,pn,aa,Oa,rt,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 bF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function AF(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 yF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"p")(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,c=i.oxw();return i.KtG(c.requestChangeQuota(l,r))}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),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 MF(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 wF(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,c=i.oxw(4);return i.KtG(c.getResAttributes(l.id))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,yF,15,16,"div",7),i.YNc(5,MF,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 CF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,wF,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function vF(n,a){if(1&n&&(i.YNc(0,bF,1,0,"mat-spinner",5),i.YNc(1,AF,4,5,"perun-web-apps-alert",6),i.YNc(2,CF,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 TF(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,c=i.oxw();return i.KtG(c.getMembersResources(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,vF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let xF=(()=>{class n{constructor(e,t,r,l,c,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,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(c=>{this.attributesManagerService.getResourceAttributes(c.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(c),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=ni();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(_F,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($t),i.Y36(ki),i.Y36(Bn),i.Y36(ja),i.Y36(Qt),i.Y36(Pi))},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"],[1,"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,TF,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))},dependencies:[w.sg,w.O5,St,Qp,kn,WA,sg,og,YA,ag,Ei,rt,si],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),n})();function SF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function EF(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 DF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.deselectResource())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeSelectedResource(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"div",10)(5,"mat-checkbox",11),i.NdJ("change",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.setOptOut())}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),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 HF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,DF,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function LF(n,a){if(1&n&&(i.YNc(0,SF,1,0,"mat-spinner",5),i.YNc(1,EF,4,5,"perun-web-apps-alert",6),i.YNc(2,HF,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 PF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.deselectVo())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changeSelectedVo(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,LF,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 RF=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.route=s,this.router=o,this.notificator=d,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.sort(ev),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.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,c.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(c.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const d=s.find(u=>"optOutMailingList"===u.friendlyName);d&&"true"!==o?.value&&(this.optOuts.push({resource:c.id,member:t.id,attribute:d}),this.resources.push(c),this.selectedResource===c.name&&(this.getOptOutAttribute(c),this.changeSelectedResource(c))),this.loading=0!==l})})})}),this.resources.sort(ev)})}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($t),i.Y36(ki),i.Y36(Bn),i.Y36(ja),i.Y36(Qt),i.Y36(Qn),i.Y36(Ai),i.Y36(fr),i.Y36(bi))},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,PF,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))},dependencies:[w.sg,w.O5,Qp,kn,WA,sg,og,YA,ag,nc,Ei,rt,si]}),n})();function kF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function OF(n,a){1&n&&i._UZ(0,"th",17)}function IF(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 BF(n,a){1&n&&i._UZ(0,"tr",19)}function NF(n,a){1&n&&i._UZ(0,"tr",20)}function VF(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,OF,1,0,"th",13),i.YNc(3,IF,2,1,"td",14),i.BQk(),i.YNc(4,BF,1,0,"tr",15),i.YNc(5,NF,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 FF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1)(1,"div",5)(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,VF,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8)(10,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),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 GA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Jo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(fn),i.Y36(Qt))},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,kF,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,FF,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))},dependencies:[w.O5,St,mn,rn,Xi,no,ps,ro,fs,hs,ao,ms,gs,so,oo,Ei,rt,si]}),n})();function zF(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 jF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeValue())}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function qF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),i.NdJ("valueChange",function(r){const c=i.CHM(e).index,s=i.oxw(2);return i.KtG(s.shells[c]=r)}),i.YNc(3,jF,2,2,"mat-option",9),i.qZA()(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw(2);return i.KtG(c.removeShell(l))}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),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 YF(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,qF,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let WF=(()=>{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(c=>this.removeDialogDescription=c),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c)}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=ni();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(GA,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({next:()=>{this.getAttribute()},error:()=>this.loading=!1})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Qt),i.Y36(Pi),i.Y36(bi))},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,zF,4,5,"perun-web-apps-alert",3),i.YNc(13,YF,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))},dependencies:[w.sg,w.O5,Ov,IA,St,kn,un,Tp,js,rt,si]}),n})();function UF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function GF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),i._UZ(4,"input",7),i.qZA()()(),i.TgZ(5,"div",8)(6,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),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 $F=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new ka(null,Qi.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(fn),i.Y36(Qt))},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,UF,1,0,"mat-spinner",2),i.YNc(6,GF,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))},dependencies:[w.O5,St,un,mn,rn,Xi,jn,hn,pn,aa,Oa,Ei,rt,si]}),n})();function ZF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2)(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.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,c=r.index,s=i.oxw();return i.KtG(s.removeGroupName(l,c))}),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 JF=(()=>{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(c=>this.removeDialogDescription=c),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(c=>this.alertText=c),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.namespaces=this.store.getProperty("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new vn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=ni();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open($F,r).afterClosed().subscribe(c=>{c&&this.getAttribute(e)})}removeGroupName(e,t){const r=ni();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(GA,r).afterClosed().subscribe(c=>{c&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Qt),i.Y36(Pi),i.Y36(bi))},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,ZF,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))},dependencies:[w.sg,St,GD,rt,si]}),n})();function QF(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 XF(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 KF(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 ez=(()=>{class n{constructor(e,t,r,l,c){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=c,c.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),c.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),c.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new ka("",[Qi.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qt),i.Y36($t),i.Y36(ki),i.Y36(fr),i.Y36(bi))},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,QF,4,5,"perun-web-apps-alert",1),i.YNc(5,XF,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2)(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),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.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,KF,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))},dependencies:[w.O5,Ui,St,kn,un,jn,hn,pn,Oa,ur,rt,si]}),n})();function tz(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 Qo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new ka(null,[Qi.required,Qi.pattern(Qo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}Qo.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"],Qo.sshKeyPattern="^("+Qo.allowedSshKeys.join("|")+").+$",Qo.\u0275fac=function(a){return new(a||Qo)(i.Y36(Li),i.Y36(fn),i.Y36(Qt))},Qo.\u0275cmp=i.Xpm({type:Qo,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)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,tz,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(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()()),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"))," "))},dependencies:[w.O5,St,jo,un,mn,rn,Xi,CA,jn,hn,pn,aa,Oa,rt,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 iz=(()=>{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(Li),i.Y36(fn))},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)(1,"textarea",1),i._uU(2),i.qZA()(),i.TgZ(3,"mat-dialog-actions")(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),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"))," "))},dependencies:[St,Xi,CA,jn,rt,si],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function nz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.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.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!1))}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),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 rz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",9)(4,"mat-icon"),i._uU(5," file_copy "),i.qZA()(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!0))}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let az=(()=>{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 vn(!1,[]),this.selectionAdmin=new vn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}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=ni();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Qo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=ni();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(GA,r).afterClosed().subscribe(c=>{c&&(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=ni();t.width="600px",t.data={value:e},this.dialog.open(iz,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Qt),i.Y36(Pi),i.Y36(bi))},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 w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(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,nz,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,rz,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))},dependencies:[w.sg,Ui,Ov,IA,St,Pv,ia,ur,rt,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})(),sz=(()=>{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 oz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)("aria-label",t.checkboxLabel())}}function lz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",20)(1,"mat-checkbox",21),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(c):null)}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw(2);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 cz(n,a){1&n&&(i.ynx(0,15),i.YNc(1,oz,2,3,"th",16),i.YNc(2,lz,4,8,"td",17),i.BQk())}function dz(n,a){1&n&&(i.TgZ(0,"th",22),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 uz(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.id)}}function hz(n,a){1&n&&(i.TgZ(0,"th",22),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 pz(n,a){if(1&n&&(i.TgZ(0,"td",24),i.ALo(1,"multiWordDataCy"),i.TgZ(2,"div",25),i._uU(3),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw();i.Q2q("data-cy","",i.lcZ(1,3,e.friendlyName),"-friendlyName"),i.xp6(2),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function fz(n,a){1&n&&(i.TgZ(0,"th",26),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 mz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.onValueChange(l))}),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 gz(n,a){1&n&&(i.TgZ(0,"th",22),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 _z(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.description)}}function bz(n,a){1&n&&i._UZ(0,"tr",28)}function Az(n,a){if(1&n&&(i._UZ(0,"tr",29),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 yz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",30),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 Mz(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",30),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")}}const wz=function(n){return{all:n}};let Cz=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new vn(!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=zu}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Zo(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}canBeSelected(e){return!Zo(e)&&e.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Jo(function JC(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>ju(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.dataSource,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}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(Ua),i.Y36(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(us,7),i.Gf(_s,7),i.Gf(Gv,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:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,cz,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,dz,3,3,"th",5),i.YNc(7,uz,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,hz,3,3,"th",5),i.YNc(10,pz,4,5,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,fz,3,3,"th",10),i.YNc(13,mz,2,2,"td",8),i.BQk(),i.ynx(14,11),i.YNc(15,gz,3,3,"th",5),i.YNc(16,_z,2,1,"td",8),i.BQk(),i.YNc(17,bz,1,0,"tr",12),i.YNc(18,Az,2,5,"tr",13),i.qZA()()(),i.YNc(19,yz,3,3,"perun-web-apps-alert",14),i.YNc(20,Mz,3,3,"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(1),i.Q6J("ngIf",i.VKq(14,wz,i.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),i.xp6(14),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))},dependencies:[w.O5,nc,no,ps,ro,fs,hs,ao,ms,gs,so,oo,_s,rg,kn,ur,us,Gv,rt,sz,Vv,Zv],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 vz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function Tz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function xz(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 Sz(n,a){if(1&n&&(i.YNc(0,Tz,1,0,"mat-spinner",3),i.YNc(1,xz,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 Ez(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function Dz(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 Hz(n,a){if(1&n&&(i.YNc(0,Ez,1,0,"mat-spinner",3),i.YNc(1,Dz,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 Lz(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,c=i.oxw(2);return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()(),i.YNc(6,Hz,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 Pz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),i.NdJ("opened",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.getUserData())}),i.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()(),i.YNc(7,Sz,2,2,"ng-template",7),i.qZA(),i.YNc(8,Lz,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 Rz=(()=>{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 vA).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(ki),i.Y36(Bn),i.Y36(Qt),i.Y36($t))},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)(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,vz,1,0,"mat-spinner",3),i.YNc(9,Pz,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))},dependencies:[w.sg,w.O5,Qp,Cz,WA,sg,og,YA,ag,Ei,rt,si]}),n})(),kz=(()=>{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")},dependencies:[es]}),n})(),Vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Gz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Vz,gt,gt]}),n})(),Jz=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sj={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Cn],useFactory:function aj(n){return()=>n.scrollStrategies.reposition()}};let nT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Jz,sj],imports:[w.ez,Ea,zo,Yh,Fo,gt,La]}),n})();new i.OlP("mat-selectsearch-default-options");let mj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Xs,Ea,eg,Ia,Wp,Ks]]}),n})(),rT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),a2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,gt,$h,gt]}),n})(),bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ro]}),n})(),aT=(()=>{class n{constructor(){this.changes=new De.x,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 Dj={provide:aT,deps:[[new i.FiY,new i.tp0,aT]],useFactory:function Ej(n){return n||new aT}};let c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Dj,zc],imports:[gt,w.ez,Fo,Ea,bj,Ia,na,gt]}),n})(),kj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Fo,na,El,Yh,gt]}),n})();const Oj=["input"],Ij=function(n){return{enterDuration:n}},Bj=["*"],Nj=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Vj=0;const Fj={provide:Xn,useExisting:(0,i.Gpc)(()=>d2),multi:!0};class zj{constructor(a,e){this.source=a,this.checked=e}}const jj=Oo(ss(Sa(xa(class{constructor(n){this._elementRef=n}}))));let qj=(()=>{class n extends jj{constructor(e,t,r,l,c,s,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=c,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,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=c.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${o}${++Vj}`}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=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),n})(),d2=(()=>{class n extends qj{constructor(e,t,r,l,c,s){super(e,t,r,l,c,s,"mat-slide-toggle-")}_createChangeEvent(e){return new zj(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(Nj),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&i.Gf(Oj,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",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"},exportAs:["matSlideToggle"],features:[i._Bn([Fj]),i.qOj],ngContentSelectors:Bj,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(10);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),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(4),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,Ij,t._noopAnimations?0:150))}},dependencies:[ia,Bh],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),n})(),u2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[u2,na,gt,El,u2,gt]}),n})(),Uj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,rT,Rv,Xv,Ea,a2,eg,Ia,Km,Vp,Wp,os,Yp,Dl,Cp,Xs,c2,nT,e0,pv,Iv,Ou,Bv,qA,Pu,Ks,Wo,na,Km,sT,Uv,rT,Rv,Xv,Ea,a2,eg,Ia,Km,Vp,Wp,os,Yp,Dl,Cp,Xs,c2,nT,e0,pv,Iv,Ou,Bv,qA,Pu,Ks,Wo,na,kj,sT,Uv]}),n})(),Gj=(()=>{class n extends D1{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 $j={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 h2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Br,useClass:Gj},{provide:Fc,useValue:$j}],imports:[w.ez,eg,Km,Cp,Uv,CI,Vu,Oc,qA,Pu,Wp,TA,Ia,Ou,Ea,Ks,os,Xs,Yp,na,RE,zE,Gz,nT,$E,su,Wo,mj,Dl,Vp,PC,Uj]}),n})();function Zj(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 Jj(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 Qj(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 Xj(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 Kj(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 e4(n,a){1&n&&i._UZ(0,"th",16)}function t4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.resetPassword(l.friendlyNameParameter))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),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 n4(n,a){1&n&&i._UZ(0,"th",16)}function r4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changePassword(l))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),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 a4(n,a){1&n&&i._UZ(0,"tr",22)}function s4(n,a){1&n&&i._UZ(0,"tr",23)}let o4=(()=>{class n{constructor(e,t,r,l,c,s,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=c,this.otherApplicationService=s,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new i.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new Jo(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const l=this.logins.find(c=>c.friendlyNameParameter===r);l&&this.changePassword(l)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=ni();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(Mk,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qt),i.Y36($t),i.Y36(Pi),i.Y36(Qn),i.Y36(Ai),i.Y36(_A),i.Y36(ML))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Zj,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),i.ynx(9,6),i.YNc(10,Jj,4,5,"th",7),i.YNc(11,Qj,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,Xj,4,5,"th",7),i.YNc(14,Kj,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,e4,1,0,"th",7),i.YNc(17,t4,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,n4,1,0,"th",7),i.YNc(20,r4,5,6,"td",12),i.BQk(),i.YNc(21,a4,1,0,"tr",14),i.YNc(22,s4,1,0,"tr",15),i.qZA()()()()),2&e&&(i.xp6(1),i.hij(" ",t.authenticationPage?"":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&&!t.authenticationPage),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[w.O5,no,ps,ro,fs,hs,ao,ms,gs,so,oo,_s,kn,St,rt,si],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function x4(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 S4(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 E4(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 D4(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 L4=(()=>{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){const t=e.dataTransfer?.files[0]??e.target?.files[0],l=new FileReader;t.type.match(/image-*/)?(l.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,l.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{c(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))},c=s=>new Promise((o,d)=>{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 N=h.getContext("2d");N.drawImage(u,0,0,f,b);const X=N.canvas.toDataURL();o(X)},u.onerror=h=>d(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 d(f,b,N,X){X.beginPath(),X.rect(20*f,20*b,20,20),X.fillStyle="rgb("+N.join(",")+")",X.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"),N=function u(){const f=[];for(let b=0;b<3;b++){const N=Math.floor(256*Math.random()),X=Math.max(120,N),pe=Math.min(200,X);f.push(pe)}return f}();for(let X=0;X{class n{constructor(e,t,r,l,c,s,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=l,this.authService=c,this.httpClient=s,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.getProperty("mfa").enforce_mfa_attribute;this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,rD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const l in this.categories)if(this.categories[l].value){t=!0,this.includeCategories.push(l);for(const c in this.categories[l].rps)this.categories[l].rps_value[c]?t=!0:(e=!1,this.excludeRps.push(c))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadOidcConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Qt),i.Y36($t),i.Y36(od.Ct),i.Y36(Ql),i.Y36(M.eN),i.Y36(wL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&i.Gf(P4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(i.YNc(0,R4,1,0,"mat-spinner",0),i.TgZ(1,"div",1)(2,"span",2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.TgZ(5,"mat-slide-toggle",3,4),i.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.showDetailSettings()}),i.TgZ(11,"mat-icon"),i._uU(12),i.qZA()()()(),i.TgZ(13,"button",6),i.NdJ("click",function(){return t.saveSettings()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.YNc(16,B4,3,3,"div",7),i.YNc(17,N4,1,0,"mat-spinner",0),i.qZA()),2&e&&(i.Q6J("ngIf",t.loadingMfa),i.xp6(1),i.Q6J("hidden",t.loadingMfa),i.xp6(1),i.Q6J("matTooltip",i.lcZ(3,13,i.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.hij("",i.lcZ(8,17,i.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),i.xp6(3),i.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),i.xp6(1),i.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),i.xp6(1),i.hij(" ",i.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),i.xp6(2),i.Q6J("ngIf",t.showDetail),i.xp6(1),i.Q6J("ngIf",t.loadingCategories))},dependencies:[w.sg,w.O5,Ui,St,Ei,ur,d2,w.Nd,rt,si],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),n})();const F4=["toggle"];function z4(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",9),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function j4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(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,z4,2,1,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddImg())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteImg())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),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 q4(n,a){1&n&&i._UZ(0,"mat-spinner",10)}let Y4=(()=>{class n{constructor(e,t,r,l,c){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.notificatorService=c,this.imageSrc="",this.mfaUrl="",this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(s=>this.removeDialogDescription=s),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(s=>this.saveImgSuccess=s),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(s=>this.removeImgSuccess=s)}ngOnInit(){const e=this.store.getProperty("mfa");this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs}),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs,this.displayImageBlock=this.store.getProperty("mfa").enable_security_image,this.displayImageBlock&&this.loadImage()}loadImage(){this.loadingImg=!0;const e=this.store.getProperty("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})}onAddImg(){const e=ni();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(L4,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}onDeleteImg(){const e=ni();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(GA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Qt),i.Y36($t),i.Y36(bi),i.Y36(fr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(F4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:12,vars:11,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,j4,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,"button",3),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._UZ(9,"br")(10,"perun-web-apps-mfa-settings"),i.qZA(),i.YNc(11,q4,1,0,"mat-spinner",4)),2&e&&(i.Q6J("hidden",t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,5,i.lcZ(5,7,"AUTHENTICATION.MFA"))),i.xp6(4),i.hij(" ",i.lcZ(8,9,"AUTHENTICATION.MFA_INFO")," "),i.xp6(4),i.Q6J("ngIf",t.loadingImg))},dependencies:[w.O5,St,Ei,V4,rt,si]}),n})(),W4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Ea,Ia,Oc,h2,Vu,os,Xs,Yp,TA]}),n})(),U4=(()=>{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(Ql),i.Y36(Ai))},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)(1,"div",1)(2,"div",2)(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()()()()()),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")," "))},dependencies:[St,Ui,rt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function G4(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 $4=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new ka(null,[Qi.required]),this.passwordCtrl=new ka(null,[Qi.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(ht))},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)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,G4,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(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.TgZ(15,"mat-form-field",4)(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.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()()()()()),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")," "))},dependencies:[w.O5,St,Ui,jo,un,Hi,hn,pn,aa,Oa,jn,kn,rt],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})(),Z4=(()=>{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")},dependencies:[es]}),n})();function J4(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function Q4(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 X4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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,Q4,2,1,"li",7),i.qZA()(),i.TgZ(13,"div",0)(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.rejectConsent())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.grantConsent())}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),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 K4=(()=>{class n{constructor(e,t,r,l,c,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=c,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({next:r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},error:r=>{this.loading=!1,"ConsentNotExistsException"!==r.name&&this.notificator.showRPCError(r),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})}})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe(()=>{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(fr),i.Y36(bi),i.Y36(In),i.Y36(Qn),i.Y36($m),i.Y36(Ai))},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)(1,"div",1),i.YNc(2,J4,1,0,"mat-spinner",2),i.YNc(3,X4,22,22,"div",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,St,Ei,rt,si],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function eq(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function tq(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function iq(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let nq=(()=>{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,eq,7,5,"span",0),i.YNc(1,tq,7,5,"span",0),i.YNc(2,iq,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))},dependencies:[w.O5,Ui,rt,si],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function rq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function aq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(c):null)}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function sq(n,a){1&n&&(i.ynx(0,13),i.YNc(1,rq,2,2,"th",14),i.YNc(2,aq,2,1,"td",15),i.BQk())}function oq(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,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function lq(n,a){if(1&n&&(i.TgZ(0,"td",21),i._UZ(1,"perun-web-apps-consent-status",22),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function cq(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,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function dq(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.consentHub.name," ")}}function uq(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 hq(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 pq(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 fq(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 mq(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,l=i.oxw();return i.KtG(l.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 gq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",31),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.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 _q(n,a){if(1&n&&(i.TgZ(0,"td",21)(1,"div",23)(2,"div",24),i.YNc(3,uq,4,5,"div",25),i.YNc(4,hq,4,5,"div",25),i.YNc(5,pq,4,5,"div",25),i.TgZ(6,"ul"),i.YNc(7,fq,2,1,"li",26),i.qZA(),i.TgZ(8,"div",27),i.YNc(9,mq,4,5,"button",28),i.YNc(10,gq,4,5,"button",29),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 bq(n,a){1&n&&i._UZ(0,"tr",32)}function Aq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",33),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.expandedConsent=c.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 yq(n,a){1&n&&i._UZ(0,"tr",34)}function Mq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",35),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 wq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",35),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 Cq=function(n){return{all:n}},vq=function(){return["expandedDetail"]};let Tq=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new vn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=zu}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 Jo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(pr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(pr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>ju(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.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(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(us,7),i.Gf(_s,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:18,vars:17,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,sq,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,oq,4,5,"th",5),i.YNc(7,lq,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,cq,4,5,"th",5),i.YNc(10,dq,2,1,"td",6),i.BQk(),i.ynx(11,8),i.YNc(12,_q,11,8,"td",6),i.BQk(),i.YNc(13,bq,1,0,"tr",9),i.YNc(14,Aq,1,2,"tr",10),i.YNc(15,yq,1,0,"tr",11),i.qZA()()(),i.YNc(16,Mq,4,5,"perun-web-apps-alert",12),i.YNc(17,wq,4,5,"perun-web-apps-alert",12)),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(1),i.Q6J("ngIf",i.VKq(14,Cq,i.xi3(4,11,t.dataSource,t.selection.selected.length))),i.xp6(10),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(16,vq)),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))},dependencies:[w.sg,w.O5,nc,no,ps,ro,fs,hs,ao,ms,gs,so,oo,_s,rg,kn,St,us,nq,rt,si,Zv],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",[kt("collapsed",Ie({height:"0px",minHeight:"0"})),kt("expanded",Ie({height:"*"})),Pt("expanded <=> collapsed",Dt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const m2=function(){return["status","name"]};function xq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.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){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),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,m2))}}function Sq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.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){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),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,m2))}}function Eq(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let Dq=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=c,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(l=>l.id===e)??this.signedConsents.find(l=>l.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(fr),i.Y36(bi),i.Y36($t),i.Y36(In))},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,xq,9,15,"div",2),i.YNc(6,Sq,9,15,"div",2),i.YNc(7,Eq,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))},dependencies:[w.O5,Qp,Tq,Ei,rt,si]}),n})();function Hq(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function Lq(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let Pq=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=c,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",Qi.required,[kE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",Qi.required]},{validators:ZS.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,It.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li),i.Y36(fn),i.Y36(ki),i.Y36(fr),i.Y36(bi),i.Y36(Qw),i.Y36($m))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Hq,1,0,"mat-spinner",1),i.YNc(5,Lq,2,3,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[w.O5,St,mn,rn,Xi,td,Qs,Ei,OE,rt,si]}),n})();function Rq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.openPwdReset())}),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,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function kq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.activateAccount())}),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,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Oq(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Rq,4,5,"button",3),i.YNc(2,kq,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const Iq=function(n){return{exists:n}},Bq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:U4},{path:"service-access",component:$4},{path:"profile",component:kz,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:lB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:zB,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:vN,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:I3,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:G3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:Rz,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:Z4,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:Dq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:K4,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:$3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:fV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:hV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:Y4,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:xF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,c){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=c,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.getProperty("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=ni();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(Pq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ki),i.Y36($t),i.Y36(_A),i.Y36(Pi),i.Y36(Ai))},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",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,Oq,3,2,"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,Iq,i.lcZ(9,11,t.loginExists$))))},dependencies:[w.O5,St,w.Ov,rt,si]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:RF,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:WF,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:JF,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:ez,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:az,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:o4,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Nq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Oc.forRoot(Bq,{preloadingStrategy:Nf,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),n})();class Vq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function g2(n){return new i.vHH(3e3,!1)}function M6(){return typeof window<"u"&&typeof window.document<"u"}function oT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function cd(n){switch(n.length){case 0:return new Ol;case 1:return n[0];default:return new P0(n)}}function _2(n,a,e,t,r=new Map,l=new Map){const c=[],s=[];let o=-1,d=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==o,b=f&&d||new Map;u.forEach((N,X)=>{let pe=X,Pe=N;if("offset"!==X)switch(pe=a.normalizePropertyName(pe,c),Pe){case"!":Pe=r.get(X);break;case Ws:Pe=l.get(X);break;default:Pe=a.normalizeStyleValue(X,pe,Pe,c)}b.set(pe,Pe)}),f||s.push(b),d=b,o=h}),c.length)throw function c6(n){return new i.vHH(3502,!1)}();return s}function lT(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&cT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&cT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&cT(e,"destroy",n)))}}function cT(n,a,e){const l=dT(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),c=n._data;return null!=c&&(l._data=c),l}function dT(n,a,e,t,r="",l=0,c){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!c}}function Va(n,a,e){let t=n.get(a);return t||n.set(a,t=e),t}function b2(n){const a=n.indexOf(":");return[n.substring(1,a),n.slice(a+1)]}let uT=(n,a)=>!1,A2=(n,a,e)=>[],y2=null;function hT(n){const a=n.parentNode||n.host;return a===y2?null:a}(oT()||typeof Element<"u")&&(M6()?(y2=(()=>document.documentElement)(),uT=(n,a)=>{for(;a;){if(a===n)return!0;a=hT(a)}return!1}):uT=(n,a)=>n.contains(a),A2=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Wu=null,M2=!1;const w2=uT,C2=A2;let v2=(()=>{class n{validateStyleProperty(e){return function C6(n){Wu||(Wu=function v6(){return typeof document<"u"?document.body:null}()||{},M2=!!Wu.style&&"WebkitAppearance"in Wu.style);let a=!0;return Wu.style&&!function w6(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Wu.style,!a&&M2&&(a="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Wu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return w2(e,t)}getParentElement(e){return hT(e)}query(e,t,r){return C2(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,c,s=[],o){return new Ol(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),pT=(()=>{class n{}return n.NOOP=new v2,n})();const fT="ng-enter",KA="ng-leave",ey="ng-trigger",ty=".ng-trigger",x2="ng-animating",mT=".ng-animating";function dd(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:gT(parseFloat(a[1]),a[2])}function gT(n,a){return"s"===a?1e3*n:n}function iy(n,a,e){return n.hasOwnProperty("duration")?n:function S6(n,a,e){let r,l=0,c="";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(g2()),{duration:0,delay:0,easing:""};r=gT(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=gT(parseFloat(o),s[4]));const d=s[5];d&&(c=d)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push(function Fq(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(a.push(function zq(){return new i.vHH(3101,!1)}()),s=!0),s&&a.splice(o,0,g2())}return{duration:r,delay:l,easing:c}}(n,a,e)}function cg(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function S2(n){const a=new Map;return Object.keys(n).forEach(e=>{a.set(e,n[e])}),a}function ud(n,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of n)a.set(t,r);return a}function D2(n,a,e){return e?a+":"+e+";":""}function H2(n){let a="";for(let e=0;e{const l=bT(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),oT()&&H2(n))}function Uu(n,a){n.style&&(a.forEach((e,t)=>{const r=bT(t);n.style[r]=""}),oT()&&H2(n))}function dg(n){return Array.isArray(n)?1==n.length?n[0]:J1(n):n}const _T=new RegExp("{{\\s*(.+?)\\s*}}","g");function L2(n){let a=[];if("string"==typeof n){let e;for(;e=_T.exec(n);)a.push(e[1]);_T.lastIndex=0}return a}function ny(n,a,e){const t=n.toString(),r=t.replace(_T,(l,c)=>{let s=a[c];return null==s&&(e.push(function qq(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function ry(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const H6=/-+([a-z0-9])/g;function bT(n){return n.replace(H6,(...a)=>a[1].toUpperCase())}function L6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fa(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 function Yq(n){return new i.vHH(3004,!1)}()}}function P2(n,a){return window.getComputedStyle(n)[a]}function B6(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function N6(n,a,e){if(":"==n[0]){const o=function V6(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(function r6(n){return new i.vHH(3015,!1)}()),a;const r=t[1],l=t[2],c=t[3];a.push(R2(r,c));"<"==l[0]&&!("*"==r&&"*"==c)&&a.push(R2(c,r))}(t,e,a)):e.push(n),e}const ly=new Set(["true","1"]),cy=new Set(["false","0"]);function R2(n,a){const e=ly.has(n)||cy.has(n),t=ly.has(a)||cy.has(a);return(r,l)=>{let c="*"==n||n==r,s="*"==a||a==l;return!c&&e&&"boolean"==typeof r&&(c=r?ly.has(n):cy.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?ly.has(a):cy.has(a)),c&&s}}const F6=new RegExp("s*:selfs*,?","g");function AT(n,a,e,t){return new z6(n).build(a,e,t)}class z6{constructor(a){this._driver=a}build(a,e,t){const r=new Y6(e);return this._resetContextStyleTimingState(r),Fa(this,dg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function Uq(){return new i.vHH(3006,!1)}()),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,d=o.name;d.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=d}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,c.push(o)}else e.errors.push(function Gq(){return new i.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,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,c=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(o=>{L2(o).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}),l.size&&(ry(l.values()),e.errors.push(function $q(n,a){return new i.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Fa(this,dg(a.animation),e);return{type:1,matchers:B6(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Gu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Fa(this,t,e)),options:Gu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(c=>{e.currentTime=t;const s=Fa(this,c,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Gu(a.options)}}visitAnimate(a,e){const t=function U6(n,a){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return yT(iy(n,a).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=yT(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=iy(e,a);return yT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Ie({});if(5==l.type)r=this.visitKeyframes(l,e);else{let c=a.styles,s=!1;if(!c){s=!0;const d={};t.easing&&(d.easing=t.easing),c=Ie(d)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(c,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=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let s of r)"string"==typeof s?s===Ws?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(S2(s));let l=!1,c=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(c=s.get("easing"),s.delete("easing")),!l))for(let o of s.values())if(o.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,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(c=>{"string"!=typeof c&&c.forEach((s,o)=>{const d=e.collectedStyles.get(e.currentQuerySelector),u=d.get(o);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function Jq(n,a,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&d.set(o,{startTime:l,endTime:r}),e.options&&function D6(n,a,e){const t=a.params||{},r=L2(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function jq(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Qq(){return new i.vHH(3011,!1)}()),t;let l=0;const c=[];let s=!1,o=!1,d=0;const u=a.steps.map(Pe=>{const _t=this._makeStyleAst(Pe,e);let Rt=null!=_t.offset?_t.offset:function W6(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(_t.styles),Ut=0;return null!=Rt&&(l++,Ut=_t.offset=Rt),o=o||Ut<0||Ut>1,s=s||Ut0&&l{const Rt=f>0?_t==b?1:f*_t:c[_t],Ut=Rt*pe;e.currentTime=N+X.delay+Ut,X.duration=Ut,this._validateStyleAst(Pe,e),Pe.offset=Rt,t.styles.push(Pe)}),t}visitReference(a,e){return{type:8,animation:Fa(this,dg(a.animation),e),options:Gu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Gu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Gu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function j6(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(F6,"")),n=n.replace(/@\*/g,ty).replace(/@\w+/g,e=>ty+"-"+e.slice(1)).replace(/:animating/g,mT),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Va(e.collectedStyles,e.currentQuerySelector,new Map);const s=Fa(this,dg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:c,animation:s,originalSelector:a.selector,options:Gu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function t6(){return new i.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:iy(a.timings,e.errors,!0);return{type:12,animation:Fa(this,dg(a.animation),e),timings:t,options:null}}}class Y6{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gu(n){return n?(n=cg(n)).params&&(n.params=function q6(n){return n?cg(n):null}(n.params)):n={},n}function yT(n,a,e){return{duration:n,delay:a,easing:e}}function MT(n,a,e,t,r,l,c=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:c,subTimeline:s}}class dy{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 Z6=new RegExp(":enter","g"),Q6=new RegExp(":leave","g");function wT(n,a,e,t,r,l=new Map,c=new Map,s,o,d=[]){return(new X6).buildKeyframes(n,a,e,t,r,l,c,s,o,d)}class X6{buildKeyframes(a,e,t,r,l,c,s,o,d,u=[]){d=d||new dy;const h=new CT(a,e,d,r,l,u,[]);h.options=o;const f=o.delay?dd(o.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,o),Fa(this,t,h);const b=h.timelines.filter(N=>N.containsAnimation());if(b.length&&s.size){let N;for(let X=b.length-1;X>=0;X--){const pe=b[X];if(pe.element===e){N=pe;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([s],null,h.errors,o)}return b.length?b.map(N=>N.buildKeyframes()):[MT(e,[],[],[],0,f,"",!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,c=this._visitSubInstructions(t,r,r.options);l!=c&&e.transformIntoNewTimeline(c)}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 c=null!=t.duration?dd(t.duration):null,s=null!=t.delay?dd(t.delay):null;return 0!==c&&a.forEach(o=>{const d=e.appendInstructionToTimeline(o,c,s);l=Math.max(l,d.duration+d.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Fa(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=uy);const c=dd(l.delay);r.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>Fa(this,c,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?dd(a.options.delay):0;a.steps.forEach(c=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Fa(this,c,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return iy(e.params?ny(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.hasCurrentStyleProperties()&&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?dd(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=uy);let c=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((d,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,d);l&&h.delayNextStep(l),d===e.element&&(o=h.currentTimeline),Fa(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),s=c*(e.currentQueryTotal-1);let o=c*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;Fa(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const uy={};class CT{constructor(a,e,t,r,l,c,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=c,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new hy(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=dd(t.duration)),null!=t.delay&&(r.delay=dd(t.delay));const l=t.params;if(l){let c=r.params;c||(c=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!c.hasOwnProperty(s))&&(c[s]=ny(l[s],c,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 CT(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=uy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new K6(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,c){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(Z6,"."+this._enterClassName)).replace(Q6,"."+this._leaveClassName);let d=this._driver.query(this.element,a,1!=t);0!==t&&(d=t<0?d.slice(d.length+t,d.length):d.slice(0,t)),s.push(...d)}return!l&&0==s.length&&c.push(function n6(n){return new i.vHH(3014,!1)}()),s}}class hy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new hy(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Ws),this._currentKeyframe.set(e,Ws);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},c=function eY(n,a){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||a.keys();for(let l of t)e.set(l,Ws)}else ud(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,d]of c){const u=ny(d,l,t);var s;this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(s=this._globalTimelineStyles.get(o))&&void 0!==s?s:Ws),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const d=ud(s,new Map,this._backFill);d.forEach((u,h)=>{"!"===u?a.add(h):u===Ws&&e.add(h)}),t||d.set("offset",o/this.duration),r.push(d)});const l=a.size?ry(a.values()):[],c=e.size?ry(e.values()):[];if(t){const s=r[0],o=new Map(s);s.set("offset",0),o.set("offset",1),r=[s,o]}return MT(this.element,r,l,c,this.duration,this.startTime,this.easing,!1)}}class K6 extends hy{constructor(a,e,t,r,l,c,s=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:c.duration,delay:c.delay,easing:c.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=[],c=t+e,s=e/c,o=ud(a[0]);o.set("offset",0),l.push(o);const d=ud(a[0]);d.set("offset",I2(s)),l.push(d);const u=a.length-1;for(let h=1;h<=u;h++){let f=ud(a[h]);const b=f.get("offset");f.set("offset",I2((e+b*t)/c)),l.push(f)}t=c,e=0,r="",a=l}return MT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function I2(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class vT{}const tY=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class iY extends vT{normalizePropertyName(a,e){return bT(a)}normalizeStyleValue(a,e,t,r){let l="";const c=t.toString().trim();if(tY.has(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(function Wq(n,a){return new i.vHH(3005,!1)}())}return c+l}}function B2(n,a,e,t,r,l,c,s,o,d,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:s,queriedElements:o,preStyleProps:d,postStyleProps:u,totalTime:h,errors:f}}const TT={};class N2{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function nY(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){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,l,c,s,o,d,u){var h;const f=[],b=this.ast.options&&this.ast.options.params||TT,X=this.buildStyles(t,s&&s.params||TT,f),pe=o&&o.params||TT,Pe=this.buildStyles(r,pe,f),_t=new Set,Rt=new Map,Ut=new Map,oa="void"===r,el={params:rY(pe,b),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},la=u?[]:wT(a,e,this.ast.animation,l,c,X,Pe,el,d,f);let ys=0;if(la.forEach(lo=>{ys=Math.max(lo.duration+lo.delay,ys)}),f.length)return B2(e,this._triggerName,t,r,oa,X,Pe,[],[],Rt,Ut,ys,f);la.forEach(lo=>{const hg=lo.element,pg=Va(Rt,hg,new Set);lo.preStyleProps.forEach(tf=>pg.add(tf));const fg=Va(Ut,hg,new Set);lo.postStyleProps.forEach(tf=>fg.add(tf)),hg!==e&&_t.add(hg)});const gy=ry(_t.values());return B2(e,this._triggerName,t,r,oa,X,Pe,la,gy,Rt,Ut,ys)}}function rY(n,a){const e=cg(a);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class aY{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=cg(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(r[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,s)=>{c&&(c=ny(c,r,e));const o=this.normalizer.normalizePropertyName(s,e);c=this.normalizer.normalizeStyleValue(s,o,c,e),t.set(o,c)})}),t}}class oY{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new aY(r.style,r.options&&r.options.params||{},t))}),V2(this.states,"true","1"),V2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new N2(a,r,this.states))}),this.fallbackTransition=function lY(n,a,e){return new N2(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,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(c=>c.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function V2(n,a,e){n.has(a)?n.has(e)||n.set(e,n.get(a)):n.has(e)&&n.set(a,n.get(e))}const cY=new dy;class dY{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=AT(this._driver,e,t,[]);if(t.length)throw function d6(n){return new i.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const r=a.element,l=_2(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.get(a);let c;const s=new Map;if(l?(c=wT(this._driver,e,l,fT,KA,new Map,new Map,t,cY,r),c.forEach(u=>{const h=Va(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function u6(){return new i.vHH(3300,!1)}()),c=[]),r.length)throw function h6(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Ws))})});const d=cd(c.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(a,d),d.onDestroy(()=>this.destroy(a)),this.players.push(d),d}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function p6(n){return new i.vHH(3301,!1)}();return e}listen(a,e,t,r){const l=dT(e,"","","");return lT(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 F2="ng-animate-queued",xT="ng-animate-disabled",mY=[],z2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bs="__ng_removed";class ST{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function yY(n){return n??null}(t?a.value:a),t){const l=cg(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 ug="void",ET=new ST(ug);class _Y{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,As(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function f6(n,a){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function m6(n){return new i.vHH(3303,!1)}();if(!function MY(n){return"start"==n||"done"==n}(t))throw function g6(n,a){return new i.vHH(3400,!1)}();const l=Va(this._elementListeners,a,[]),c={name:e,phase:t,callback:r};l.push(c);const s=Va(this._engine.statesByElement,a,new Map);return s.has(e)||(As(a,ey),As(a,ey+"-"+e),s.set(e,ET)),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(c);o>=0&&l.splice(o,1),this._triggers.has(e)||s.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function _6(n){return new i.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),c=new DT(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(As(a,ey),As(a,ey+"-"+e),this._engine.statesByElement.set(a,s=new Map));let o=s.get(e);const d=new ST(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&d.absorbOptions(o.options),s.set(e,d),o||(o=ET),d.value!==ug&&o.value===d.value){if(!function vY(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Uu(a,pe),Ko(a,Pe)})}return}const f=Va(this._engine.playersByElement,a,[]);f.forEach(X=>{X.namespaceId==this.id&&X.triggerName==e&&X.queued&&X.destroy()});let b=l.matchTransition(o.value,d.value,a,d.params),N=!1;if(!b){if(!r)return;b=l.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:d,player:c,isFallbackTransition:N}),N||(As(a,F2),c.onStart(()=>{ef(a,F2)})),c.onDone(()=>{let X=this.players.indexOf(c);X>=0&&this.players.splice(X,1);const pe=this._engine.playersByElement.get(a);if(pe){let Pe=pe.indexOf(c);Pe>=0&&pe.splice(Pe,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,ty,!0);t.forEach(r=>{if(r[bs])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(c=>c.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),c=new Map;if(l){const s=[];if(l.forEach((o,d)=>{if(c.set(d,o.value),this._triggers.has(d)){const u=this.trigger(a,d,ug,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&cd(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 c=l.name;if(r.has(c))return;r.add(c);const o=this._triggers.get(c).fallbackTransition,d=t.get(c)||ET,u=new ST(ug),h=new DT(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:o,fromState:d,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 c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[bs];(!l||l===z2)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){As(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(s=>{if(s.name==t.triggerName){const o=dT(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,lT(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,c=r.transition.ast.depCount;return 0==l||0==c?l-c: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 bY{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 _Y(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,s=this.driver.getParentElement(e);for(;s;){const o=r.get(s);if(o){const d=t.indexOf(o);t.splice(d+1,0,a),c=!0;break}s=this.driver.getParentElement(s)}c||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,r){if(py(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!py(e))return;const l=e[bs];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.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),As(a,xT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ef(a,xT))}removeNode(a,e,t,r){if(py(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[bs]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return py(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,ty,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,mT,!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 cd(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[bs];if(t&&t.setForRemoval){if(a[bs]=z2,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(xT)&&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?cd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function b6(n){return new i.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new dy,r=[],l=new Map,c=[],s=new Map,o=new Map,d=new Map,u=new Set;this.disabledNodes.forEach(ut=>{u.add(ut);const Ct=this.driver.query(ut,".ng-animate-queued",!0);for(let Ht=0;Ht{const Ht=fT+X++;N.set(Ct,Ht),ut.forEach(ri=>As(ri,Ht))});const pe=[],Pe=new Set,_t=new Set;for(let ut=0;utPe.add(ri)):_t.add(Ct))}const Rt=new Map,Ut=Y2(f,Array.from(Pe));Ut.forEach((ut,Ct)=>{const Ht=KA+X++;Rt.set(Ct,Ht),ut.forEach(ri=>As(ri,Ht))}),a.push(()=>{b.forEach((ut,Ct)=>{const Ht=N.get(Ct);ut.forEach(ri=>ef(ri,Ht))}),Ut.forEach((ut,Ct)=>{const Ht=Rt.get(Ct);ut.forEach(ri=>ef(ri,Ht))}),pe.forEach(ut=>{this.processLeaveNode(ut)})});const oa=[],el=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(Ht=>{const ri=Ht.player,Sn=Ht.element;if(oa.push(ri),this.collectedEnterElements.length){const Tr=Sn[bs];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(Ht.triggerName)){const $u=Tr.previousTriggersValues.get(Ht.triggerName),Ms=this.statesByElement.get(Ht.element);if(Ms&&Ms.has(Ht.triggerName)){const _y=Ms.get(Ht.triggerName);_y.value=$u,Ms.set(Ht.triggerName,_y)}}return void ri.destroy()}}const tl=!h||!this.driver.containsElement(h,Sn),za=Rt.get(Sn),hd=N.get(Sn),_n=this._buildInstruction(Ht,t,hd,za,tl);if(_n.errors&&_n.errors.length)return void el.push(_n);if(tl)return ri.onStart(()=>Uu(Sn,_n.fromStyles)),ri.onDestroy(()=>Ko(Sn,_n.toStyles)),void r.push(ri);if(Ht.isFallbackTransition)return ri.onStart(()=>Uu(Sn,_n.fromStyles)),ri.onDestroy(()=>Ko(Sn,_n.toStyles)),void r.push(ri);const lH=[];_n.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||lH.push(Tr)}),_n.timelines=lH,t.append(Sn,_n.timelines),c.push({instruction:_n,player:ri,element:Sn}),_n.queriedElements.forEach(Tr=>Va(s,Tr,[]).push(ri)),_n.preStyleProps.forEach((Tr,$u)=>{if(Tr.size){let Ms=o.get($u);Ms||o.set($u,Ms=new Set),Tr.forEach((_y,PT)=>Ms.add(PT))}}),_n.postStyleProps.forEach((Tr,$u)=>{let Ms=d.get($u);Ms||d.set($u,Ms=new Set),Tr.forEach((_y,PT)=>Ms.add(PT))})});if(el.length){const ut=[];el.forEach(Ct=>{ut.push(function A6(n,a){return new i.vHH(3505,!1)}())}),oa.forEach(Ct=>Ct.destroy()),this.reportError(ut)}const la=new Map,ys=new Map;c.forEach(ut=>{const Ct=ut.element;t.has(Ct)&&(ys.set(Ct,Ct),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,la))}),r.forEach(ut=>{const Ct=ut.element;this._getPreviousPlayers(Ct,!1,ut.namespaceId,ut.triggerName,null).forEach(ri=>{Va(la,Ct,[]).push(ri),ri.destroy()})});const gy=pe.filter(ut=>U2(ut,o,d)),lo=new Map;q2(lo,this.driver,_t,d,Ws).forEach(ut=>{U2(ut,o,d)&&gy.push(ut)});const pg=new Map;b.forEach((ut,Ct)=>{q2(pg,this.driver,new Set(ut),o,"!")}),gy.forEach(ut=>{var Ct,Ht;const ri=lo.get(ut),Sn=pg.get(ut);lo.set(ut,new Map([...Array.from(null!==(Ct=ri?.entries())&&void 0!==Ct?Ct:[]),...Array.from(null!==(Ht=Sn?.entries())&&void 0!==Ht?Ht:[])]))});const fg=[],tf=[],oH={};c.forEach(ut=>{const{element:Ct,player:Ht,instruction:ri}=ut;if(t.has(Ct)){if(u.has(Ct))return Ht.onDestroy(()=>Ko(Ct,ri.toStyles)),Ht.disabled=!0,Ht.overrideTotalTime(ri.totalTime),void r.push(Ht);let Sn=oH;if(ys.size>1){let za=Ct;const hd=[];for(;za=za.parentNode;){const _n=ys.get(za);if(_n){Sn=_n;break}hd.push(za)}hd.forEach(_n=>ys.set(_n,Sn))}const tl=this._buildAnimation(Ht.namespaceId,ri,la,l,pg,lo);if(Ht.setRealPlayer(tl),Sn===oH)fg.push(Ht);else{const za=this.playersByElement.get(Sn);za&&za.length&&(Ht.parentPlayer=cd(za)),r.push(Ht)}}else Uu(Ct,ri.fromStyles),Ht.onDestroy(()=>Ko(Ct,ri.toStyles)),tf.push(Ht),u.has(Ct)&&r.push(Ht)}),tf.forEach(ut=>{const Ct=l.get(ut.element);if(Ct&&Ct.length){const Ht=cd(Ct);ut.setRealPlayer(Ht)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!tl.destroyed);Sn.length?wY(this,Ct,Sn):this.processLeaveNode(Ct)}return pe.length=0,fg.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Ct=this.players.indexOf(ut);this.players.splice(Ct,1)}),ut.play()}),fg}elementContainsData(a,e){let t=!1;const r=e[bs];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 c=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(c=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==ug;s.forEach(d=>{d.queued||!o&&d.triggerName!=r||c.push(d)})}}return(t||r)&&(c=c.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const d=o.element,u=d!==l,h=Va(t,d,[]);this._getPreviousPlayers(d,u,c,s,e.toState).forEach(b=>{const N=b.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),b.destroy(),h.push(b)})}Uu(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,c){const s=e.triggerName,o=e.element,d=[],u=new Set,h=new Set,f=e.timelines.map(N=>{const X=N.element;u.add(X);const pe=X[bs];if(pe&&pe.removedBeforeQueried)return new Ol(N.duration,N.delay);const Pe=X!==o,_t=function CY(n){const a=[];return W2(n,a),a}((t.get(X)||mY).map(la=>la.getRealPlayer())).filter(la=>!!la.element&&la.element===X),Rt=l.get(X),Ut=c.get(X),oa=_2(0,this._normalizer,0,N.keyframes,Rt,Ut),el=this._buildPlayer(N,oa,_t);if(N.subTimeline&&r&&h.add(X),Pe){const la=new DT(a,s,X);la.setRealPlayer(el),d.push(la)}return el});d.forEach(N=>{Va(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function AY(n,a,e){let t=n.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}return t}(this.playersByQueriedElement,N.element,N))}),u.forEach(N=>As(N,x2));const b=cd(f);return b.onDestroy(()=>{u.forEach(N=>ef(N,x2)),Ko(o,e.toStyles)}),h.forEach(N=>{Va(r,N,[]).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 Ol(a.duration,a.delay)}}class DT{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Ol,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>lT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Va(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 py(n){return n&&1===n.nodeType}function j2(n,a){const e=n.style.display;return n.style.display=a??"none",e}function q2(n,a,e,t,r){const l=[];e.forEach(o=>l.push(j2(o)));const c=[];t.forEach((o,d)=>{const u=new Map;o.forEach(h=>{const f=a.computeStyle(d,h,r);u.set(h,f),(!f||0==f.length)&&(d[bs]=gY,c.push(d))}),n.set(d,u)});let s=0;return e.forEach(o=>j2(o,l[s++])),c}function Y2(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 c(s){if(!s)return 1;let o=l.get(s);if(o)return o;const d=s.parentNode;return o=e.has(d)?d:r.has(d)?1:c(d),l.set(s,o),o}return a.forEach(s=>{const o=c(s);1!==o&&e.get(o).push(s)}),e}function As(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function ef(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function wY(n,a,e){cd(e).onDone(()=>n.processLeaveNode(a))}function W2(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class fy{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new bY(a,e,t),this._timelineEngine=new dY(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const c=a+"-"+r;let s=this._triggerCache[c];if(!s){const o=[],u=AT(this._driver,l,o,[]);if(o.length)throw function l6(n,a){return new i.vHH(3404,!1)}();s=function sY(n,a,e){return new oY(n,a,e)}(r,u,this._normalizer),this._triggerCache[c]=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,c]=b2(t);this._timelineEngine.command(l,e,c,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[c,s]=b2(t);return this._timelineEngine.listen(c,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 xY=(()=>{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=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Ko(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ko(this._element,this._initialStyles),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Uu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uu(this._element,this._endStyles),this._endStyles=null),Ko(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function HT(n){let a=null;return n.forEach((e,t)=>{(function SY(n){return"display"===n||"position"===n})(t)&&(a=a||new Map,a.set(t,e))}),a}class G2{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:P2(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class EY{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return w2(a,e)}getParentElement(a){return hT(a)}query(a,e,t){return C2(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,c=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const d=new Map,u=c.filter(b=>b instanceof G2);(function P6(n,a){return 0===n||0===a})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((N,X)=>d.set(X,N))});let h=function E6(n){return n.length?n[0]instanceof Map?n:n.map(a=>S2(a)):[]}(e).map(b=>ud(b));h=function R6(n,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((l,c)=>{t.has(c)||r.push(c),t.set(c,l)}),r.length)for(let l=1;lc.set(s,P2(n,s)))}}return a}(a,h,d);const f=function TY(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=HT(a[0]),a.length>1&&(t=HT(a[a.length-1]))):a instanceof Map&&(e=HT(a)),e||t?new xY(n,e,t):null}(a,h);return new G2(a,h,o,f)}}let DY=(()=>{class n extends D0{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)?J1(e):e;return $2(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(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class HY extends class Z1{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new LY(this._id,a,e||{},this._renderer)}}class LY{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 $2(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function $2(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const Z2="@.disabled";let PY=(()=>{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,c)=>{const s=c?.parentNode(l);s&&c.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 J2("",l,this.engine),this._rendererCache.set(l,u)),u}const c=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(c,s,e,u.name,u)};return t.data.animation.forEach(o),new RY(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[c,s]=l;c(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(fy),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class J2{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==Z2?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 RY extends J2{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==Z2?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function kY(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function OY(n){const a=n.indexOf(".");return[n.substring(0,a),n.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,c,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}const Q2=[{provide:D0,useClass:DY},{provide:vT,useFactory:function BY(){return new iY}},{provide:fy,useClass:(()=>{class n extends fy{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(pT),i.LFG(vT),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function NY(n,a,e){return new PY(n,a,e)},deps:[ye,fy,i.R0b]}],LT=[{provide:pT,useFactory:()=>new EY},{provide:i.QbO,useValue:"BrowserAnimations"},...Q2],X2=[{provide:pT,useClass:v2},{provide:i.QbO,useValue:"NoopAnimations"},...Q2];let VY=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?X2:LT}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:LT,imports:[Jt]}),n})(),FY=(()=>{class n{constructor(e,t,r,l,c){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),r()})}setEntityTheme(e,t){const r=function zY(n){return[sa(tinycolor(n).lighten(52),"50"),sa(tinycolor(n).lighten(37),"100"),sa(tinycolor(n).lighten(26),"200"),sa(tinycolor(n).lighten(12),"300"),sa(tinycolor(n).lighten(6),"400"),sa(tinycolor(n),"500"),sa(tinycolor(n).darken(6),"600"),sa(tinycolor(n).darken(12),"700"),sa(tinycolor(n).darken(18),"800"),sa(tinycolor(n).darken(24),"900"),sa(tinycolor(n).lighten(50).saturate(30),"A100"),sa(tinycolor(n).lighten(30).saturate(30),"A200"),sa(tinycolor(n).lighten(10).saturate(15),"A400"),sa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,d=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,d)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new 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.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG($t),i.LFG(ht),i.LFG(se),i.LFG(tr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sa(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 jY=(()=>{class n{constructor(e,t,r,l){this.initAuthService=e,this.appConfigService=t,this.location=r,this.mfaHandlerService=l,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 this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cv),i.LFG(FY),i.LFG(w.Ye),i.LFG(lv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mv]}),n})(),uW=(()=>{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:io,useValue:{...gv,...e}},{provide:_v,useValue:t,multi:!0},{provide:jp,useValue:!0}]:[{provide:io,useValue:{...gv,...e}},{provide:_v,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jp),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[KD,SE,sH,KD,SE,sH]}),n})();const hW=new i.OlP("perun-api-service"),pW={provide:M.TP,useExisting:(0,i.Gpc)(()=>XS),multi:!0};function fW(n){return new Vq(n,"./assets/i18n/",".json")}function mW(n){const a={basePath:n.getProperty("api_url")};return new Je(a)}const gW=n=>()=>n.initialize();let _W=(()=>{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(QS),i.LFG(bi))},n.\u0275mod=i.oAB({type:n,bootstrap:[NO]}),n.\u0275inj=i.cJS({providers:[QS,{provide:i.ip1,useFactory:gW,multi:!0,deps:[jY]},{provide:Je,useFactory:mW,deps:[$t]},vA,XS,pW,{provide:hW,useClass:yL},se,{provide:od.Hy,useFactory:()=>localStorage}],imports:[Jt,VY,M.JF,Vu.forRoot({loader:{provide:Rp,useFactory:fW,deps:[M.eN]}}),Nq,Ia,pv,Iv,Oc,Ea,uW,Bv,h2,TA,Xv,os,Wo,Vp,Km,Yp,Xs,eg,Pu,Wp,qA,rT,zE,RE,tN,na,Ks,sT,$E,Cp,W4,PC,Ou,od.zr.forRoot(),eR]}),n})();(0,i.G48)(),be().bootstrapModule(_W).catch(n=>console.error(n))},1302:function(j,Y,T){var w;!function(i,E){var x={};!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 x(le,ae,ie,ge,Ae){for(var ve,Qe,Xe,He,Te,Se,pt,Be,Ve,Ne,he,me,Ce;Ae>=64;){for(ve=ae[0],Qe=ae[1],Xe=ae[2],He=ae[3],Te=ae[4],Se=ae[5],pt=ae[6],Be=ae[7],Ne=0;Ne<16;Ne++)le[Ne]=(255&ie[he=ge+4*Ne])<<24|(255&ie[he+1])<<16|(255&ie[he+2])<<8|255&ie[he+3];for(Ne=16;Ne<64;Ne++)le[Ne]=((me=((Ve=le[Ne-2])>>>17|Ve<<15)^(Ve>>>19|Ve<<13)^Ve>>>10)+le[Ne-7]|0)+((Ce=((Ve=le[Ne-15])>>>7|Ve<<25)^(Ve>>>18|Ve<<14)^Ve>>>3)+le[Ne-16]|0);for(Ne=0;Ne<64;Ne++)me=(((Te>>>6|Te<<26)^(Te>>>11|Te<<21)^(Te>>>25|Te<<7))+(Te&Se^~Te&pt)|0)+(Be+(E[Ne]+le[Ne]|0)|0)|0,Ce=((ve>>>2|ve<<30)^(ve>>>13|ve<<19)^(ve>>>22|ve<<10))+(ve&Qe^ve&Xe^Qe&Xe)|0,Be=pt,pt=Se,Se=Te,Te=He+me|0,He=Xe,Xe=Qe,Qe=ve,ve=me+Ce|0;ae[0]+=ve,ae[1]+=Qe,ae[2]+=Xe,ae[3]+=He,ae[4]+=Te,ae[5]+=Se,ae[6]+=pt,ae[7]+=Be,ge+=64,Ae-=64}return ge}var S=function(){function le(){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 le.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},le.prototype.clean=function(){for(var ae=0;ae0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=x(this.temp,this.state,ae,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;return this},le.prototype.finish=function(ae){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,Ae=ie/536870912|0,ve=ie<<3,Qe=ie%64<56?64:128;this.buffer[ge]=128;for(var Xe=ge+1;Xe>>24&255,this.buffer[Qe-7]=Ae>>>16&255,this.buffer[Qe-6]=Ae>>>8&255,this.buffer[Qe-5]=Ae>>>0&255,this.buffer[Qe-4]=ve>>>24&255,this.buffer[Qe-3]=ve>>>16&255,this.buffer[Qe-2]=ve>>>8&255,this.buffer[Qe-1]=ve>>>0&255,x(this.temp,this.state,this.buffer,0,Qe),this.finished=!0}for(Xe=0;Xe<8;Xe++)ae[4*Xe+0]=this.state[Xe]>>>24&255,ae[4*Xe+1]=this.state[Xe]>>>16&255,ae[4*Xe+2]=this.state[Xe]>>>8&255,ae[4*Xe+3]=this.state[Xe]>>>0&255;return this},le.prototype.digest=function(){var ae=new Uint8Array(this.digestLength);return this.finish(ae),ae},le.prototype._saveState=function(ae){for(var ie=0;iethis.blockSize)(new S).update(ae).finish(ie).clean();else for(var ge=0;ge1&&ae.update(le),ie&&ae.update(ie),ae.update(ge),ae.finish(le),ge[0]++}i.HMAC=P,i.hash=k,i.default=k,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,ae,ie,ge){void 0===ae&&(ae=J),void 0===ge&&(ge=32);for(var Ae=new Uint8Array([1]),ve=F(ae,le),Qe=new P(ve),Xe=new Uint8Array(Qe.digestLength),He=Xe.length,Te=new Uint8Array(ge),Se=0;Se>>24&255,Qe[1]=pt>>>16&255,Qe[2]=pt>>>8&255,Qe[3]=pt>>>0&255,Ae.reset(),Ae.update(ae),Ae.update(Qe),Ae.finish(He);for(var Be=0;Be=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}var k="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,F=k.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),q=k.saveAs||("object"!=typeof window||window!==k?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,Q,ne){var le=k.URL||k.webkitURL,ae=document.createElement("a");ae.download=Q=Q||J.name||"download",ae.rel="noopener","string"==typeof J?(ae.href=J,ae.origin===location.origin?P(ae):S(ae.href)?x(J,Q,ne):P(ae,ae.target="_blank")):(ae.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(ae.href)},4e4),setTimeout(function(){P(ae)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))x(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,Q,ne);var ae="application/octet-stream"===J.type,ie=/constructor/i.test(k.HTMLElement)||k.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ae&&ie||F)&&typeof FileReader<"u"){var Ae=new FileReader;Ae.onloadend=function(){var Xe=Ae.result;Xe=ge?Xe:Xe.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Xe:location=Xe,le=null},Ae.readAsDataURL(J)}else{var ve=k.URL||k.webkitURL,Qe=ve.createObjectURL(J);le?le.location=Qe:location.href=Qe,le=null,setTimeout(function(){ve.revokeObjectURL(Qe)},4e4)}});k.saveAs=q.saveAs=q,j.exports=q}.apply(Y,[]))&&(j.exports=i)},1158:(j,Y,T)=>{(j.exports=T(7867)).tz.load(T(1128))},7867:function(j,Y,T){var w,i,E;!function(x,S){"use strict";j.exports?j.exports=S(T(5439)):(i=[T(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(Y,i):w)&&(j.exports=E))}(0,function(x){"use strict";void 0===x.version&&x.default&&(x=x.default);var Q,P={},k={},F={},q={},J={};(!x||"string"!=typeof x.version)&&Dn("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ne=x.version.split("."),le=+ne[0],ae=+ne[1];function ie(de){return de>96?de-87:de>64?de-29:de-48}function ge(de){var Re=0,be=de.split("."),qe=be[0],ot=be[1]||"",lt=1,sn=0,ci=1;for(45===de.charCodeAt(0)&&(Re=1,ci=-1);Re= 2.6.0. You are using Moment.js "+x.version+". See momentjs.com"),He.prototype={_set:function(de){this.name=de.name,this.abbrs=de.abbrs,this.untils=de.untils,this.offsets=de.offsets,this.population=de.population},_index:function(de){var qe,Re=+de,be=this.untils;for(qe=0;qesn&&hi.moveInvalidForward&&(lt=sn),Re3){var Re=q[We(de)];if(Re)return Re;Dn("Moment Timezone found "+de+" from the Intl api, but did not have that data loaded.")}}catch{}var Jt,sn,ci,be=function Ve(){var qe,ot,lt,de=(new Date).getFullYear()-2,Re=new Se(new Date(de,0,1)),be=[Re];for(lt=1;lt<48;lt++)(ot=new Se(new Date(de,lt,1))).offset!==Re.offset&&(qe=Be(Re,ot),be.push(qe),be.push(new Se(new Date(qe.at+6e4)))),Re=ot;for(lt=0;lt<4;lt++)be.push(new Se(new Date(de+lt,0,1))),be.push(new Se(new Date(de+lt,6,1)));return be}(),qe=be.length,ot=function me(de){var ot,lt,Jt,Re=de.length,be={},qe=[];for(ot=0;ot0?lt[0].zone.name:void 0}()),Q},hi.names=function Ft(){var de,Re=[];for(de in q)q.hasOwnProperty(de)&&(P[de]||P[k[de]])&&q[de]&&Re.push(q[de]);return Re.sort()},hi.Zone=He,hi.unpack=Xe,hi.unpackBase60=ge,hi.needsOffset=Ci,hi.moveInvalidForward=!0,hi.moveAmbiguousForward=!1,hi.countries=function oi(){return Object.keys(F)},hi.zonesForCountry=function Ge(de,Re){if(!(de=function En(de){return de=de.toUpperCase(),F[de]||null}(de)))return null;var be=de.zones.sort();return Re?be.map(function(qe){return{name:qe,offset:mt(qe).utcOffset(new Date)}}):be};var bn=x.fn;function co(de){return function(){return this._z?this._z.abbr(this):de.call(this)}}function ca(de){return function(){return this._z=null,de.apply(this,arguments)}}x.tz=hi,x.defaultZone=null,x.updateOffset=function(de,Re){var qe,be=x.defaultZone;if(void 0===de._z&&(be&&Ci(de)&&!de._isUTC&&(de._d=x.utc(de._a)._d,de.utc().add(be.parse(de),"minutes")),de._z=be),de._z)if(qe=de._z.utcOffset(de),Math.abs(qe)<16&&(qe/=60),void 0!==de.utcOffset){var ot=de._z;de.utcOffset(-qe,Re),de._z=ot}else de.zone(qe,Re)},bn.tz=function(de,Re){if(de){if("string"!=typeof de)throw new Error("Time zone name must be a string, got "+de+" ["+typeof de+"]");return this._z=mt(de),this._z?x.updateOffset(this,Re):Dn("Moment Timezone has no data for "+de+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},bn.zoneName=co(bn.zoneName),bn.zoneAbbr=co(bn.zoneAbbr),bn.utc=ca(bn.utc),bn.local=ca(bn.local),bn.utcOffset=function mr(de){return function(){return arguments.length>0&&(this._z=null),de.apply(this,arguments)}}(bn.utcOffset),x.tz.setDefault=function(de){return(le<2||2===le&&ae<9)&&Dn("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+x.version+"."),x.defaultZone=de?mt(de):null,x};var On=x.momentProperties;return"[object Array]"===Object.prototype.toString.call(On)?(On.push("_z"),On.push("_a")):On&&(On._z=null),x})},7088:function(j,Y,T){!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,x,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}})}(T(5439))},2502:function(j,Y,T){!function(w){"use strict";var i=function(k){return 0===k?0:1===k?1:2===k?2:k%100>=3&&k%100<=10?3:k%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"]},x=function(k){return function(F,q,J,Q){var ne=i(F),le=E[k][i(F)];return 2===ne&&(le=le[q?0:1]),le.replace(/%d/i,F)}},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(k){return"\u0645"===k},meridiem:function(k,F,q){return k<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:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(k){return k.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(T(5439))},128:function(j,Y,T){!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}})}(T(5439))},4519:function(j,Y,T){!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(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},x={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(F){return function(q,J,Q,ne){var le=E(q),ae=x[F][E(q)];return 2===le&&(ae=ae[J?0:1]),ae.replace(/%d/i,q)}},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"];w.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(F){return"\u0645"===F},meridiem:function(F,q,J){return F<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(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},5443:function(j,Y,T){!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}})}(T(5439))},7642:function(j,Y,T){!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,P,k){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}})}(T(5439))},8592:function(j,Y,T){!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}})}(T(5439))},7038:function(j,Y,T){!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"},x=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%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(q){return function(J,Q,ne,le){var ae=x(J),ie=S[q][x(J)];return 2===ae&&(ie=ie[Q?0:1]),ie.replace(/%d/i,J)}},k=["\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:k,monthsShort:k,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(q){return"\u0645"===q},meridiem:function(q,J,Q){return q<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(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},1213:function(j,Y,T){!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(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9191:function(j,Y,T){!function(w){"use strict";function E(S,P,k){return"m"===k?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===k?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var k=S.split("_");return P%10==1&&P%100!=11?k[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?k[1]:k[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"}[k],+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,P,k){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}})}(T(5439))},322:function(j,Y,T){!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 x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},8042:function(j,Y,T){!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}})}(T(5439))},5903:function(j,Y,T){!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(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,k){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}})}(T(5439))},9620:function(j,Y,T){!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(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,k){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}})}(T(5439))},9645:function(j,Y,T){!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(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,k){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}})}(T(5439))},5020:function(j,Y,T){!function(w){"use strict";function i(ie,ge,Ae){return ie+" "+function S(ie,ge){return 2===ge?function P(ie){var ge={m:"v",b:"v",d:"z"};return void 0===ge[ie.charAt(0)]?ie:ge[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[Ae],ie)}function x(ie){return ie>9?x(ie%10):ie}var k=[/^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],F=/^(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,le=[/^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:le,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:le,monthsRegex:F,monthsShortRegex:F,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:k,longMonthsParse:k,shortMonthsParse:k,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(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,ge,Ae){return ie<12?"a.m.":"g.m."}})}(T(5439))},4792:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var k=x+" ";switch(P){case"ss":return k+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return k+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return k+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return k+(1===x?"dan":"dana");case"MM":return k+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return k+(1===x?"godina":2===x||3===x||4===x?"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}})}(T(5439))},7980:function(j,Y,T){!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,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7322:function(j,Y,T){!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("_"),x=[/^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(q){return q>1&&q<5&&1!=~~(q/10)}function k(q,J,Q,ne){var le=q+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(q)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(q)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(q)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(q)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(q)?"roky":"let"):le+"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:x,longMonthsParse:x,shortMonthsParse:x,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:k,ss:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},365:function(j,Y,T){!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}})}(T(5439))},2092:function(j,Y,T){!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}})}(T(5439))},7387:function(j,Y,T){!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}})}(T(5439))},9459:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},3694:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},4307:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},9659:function(j,Y,T){!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,P,k){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}})}(T(5439))},3460:function(j,Y,T){!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(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.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(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").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(x,S){var P=this._calendarEl[x],k=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.replace("{}",k%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}})}(T(5439))},4369:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(T(5439))},530:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9998:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3391:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},5414:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9615:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(T(5439))},1248:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3767:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},4530:function(j,Y,T){!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,x,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}})}(T(5439))},8944:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},9116:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(T(5439))},3609:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},6866:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(T(5439))},6725:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?F[P][2]?F[P][2]:F[P][1]:k?F[P][0]:F[P][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}})}(T(5439))},7931:function(j,Y,T){!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}})}(T(5439))},6417:function(j,Y,T){!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,P,k){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}})}(T(5439))},944:function(j,Y,T){!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 x(k,F,q,J){var Q="";switch(q){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(k,F){return k<10?F?E[k]:i[k]:k}(k,J)+" "+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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1766:function(j,Y,T){!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}})}(T(5439))},5867:function(j,Y,T){!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}})}(T(5439))},6848:function(j,Y,T){!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,x){switch(x){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")}}})}(T(5439))},7773:function(j,Y,T){!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,x){switch(x){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}})}(T(5439))},1636:function(j,Y,T){!function(w){"use strict";var x=/(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:x,monthsShortRegex:x,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(k,F){switch(F){case"D":return k+(1===k?"er":"");default:case"M":case"Q":case"DDD":case"d":return k+(1===k?"er":"e");case"w":case"W":return k+(1===k?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},4940:function(j,Y,T){!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,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}})}(T(5439))},1402:function(j,Y,T){!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(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6924:function(j,Y,T){!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(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6398:function(j,Y,T){!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}})}(T(5439))},2457:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={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:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \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:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return k?F[P][0]:F[P][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(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},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(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(T(5439))},2545:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return k?F[P][0]:F[P][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(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(T(5439))},2641:function(j,Y,T){!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(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,k){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}})}(T(5439))},7536:function(j,Y,T){!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,x,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"}})}(T(5439))},6335:function(j,Y,T){!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"},x=[/^\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:x,longMonthsParse:x,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(k){return k.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return E[F]})},postformat:function(k){return k.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(k,F){return 12===k&&(k=0),"\u0930\u093e\u0924"===F?k<4?k:k+12:"\u0938\u0941\u092c\u0939"===F?k:"\u0926\u094b\u092a\u0939\u0930"===F?k>=10?k:k+12:"\u0936\u093e\u092e"===F?k+12:void 0},meridiem:function(k,F,q){return k<4?"\u0930\u093e\u0924":k<10?"\u0938\u0941\u092c\u0939":k<17?"\u0926\u094b\u092a\u0939\u0930":k<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(T(5439))},7458:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var k=x+" ";switch(P){case"ss":return k+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return k+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return k+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return k+(1===x?"dan":"dana");case"MM":return k+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return k+(1===x?"godina":2===x||3===x||4===x?"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}})}(T(5439))},6540:function(j,Y,T){!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(P,k,F,q){var J=P;switch(F){case"s":return q||k?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(q||k)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(q||k?" perc":" perce");case"mm":return J+(q||k?" perc":" perce");case"h":return"egy"+(q||k?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(q||k?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(q||k?" nap":" napja");case"dd":return J+(q||k?" nap":" napja");case"M":return"egy"+(q||k?" h\xf3nap":" h\xf3napja");case"MM":return J+(q||k?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(q||k?" \xe9v":" \xe9ve");case"yy":return J+(q||k?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[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(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,k,F){return P<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.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}})}(T(5439))},5283:function(j,Y,T){!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,x){switch(x){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}})}(T(5439))},8780:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"siang"===x?E>=11?E:E+12:"sore"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},4205:function(j,Y,T){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,k,F){var q=S+" ";switch(k){case"s":return P||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?q+(P||F?"sek\xfandur":"sek\xfandum"):q+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?q+(P||F?"m\xedn\xfatur":"m\xedn\xfatum"):P?q+"m\xedn\xfata":q+"m\xedn\xfatu";case"hh":return i(S)?q+(P||F?"klukkustundir":"klukkustundum"):q+"klukkustund";case"d":return P?"dagur":F?"dag":"degi";case"dd":return i(S)?P?q+"dagar":q+(F?"daga":"d\xf6gum"):P?q+"dagur":q+(F?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?q+"m\xe1nu\xf0ir":q+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?q+"m\xe1nu\xf0ur":q+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||F?"\xe1r":"\xe1ri";case"yy":return i(S)?q+(P||F?"\xe1r":"\xe1rum"):q+(P||F?"\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}})}(T(5439))},9985:function(j,Y,T){!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}})}(T(5439))},4211:function(j,Y,T){!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}})}(T(5439))},1003:function(j,Y,T){!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,x){return"\u5143"===x[1]?1:parseInt(x[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,x,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,x){switch(x){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"}})}(T(5439))},420:function(j,Y,T){!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,x){return 12===E&&(E=0),"enjing"===x?E:"siyang"===x?E>=11?E:E+12:"sonten"===x||"ndalu"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},851:function(j,Y,T){!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(x,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}})}(T(5439))},6074:function(j,Y,T){!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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},3343:function(j,Y,T){!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,P,k){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}})}(T(5439))},4799:function(j,Y,T){!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(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,k){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}})}(T(5439))},3549:function(j,Y,T){!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,x){switch(x){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,x,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(T(5439))},1037:function(j,Y,T){!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"},x=["\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:x,monthsShort:x,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,k,F){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(k){return E[k]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(k){return i[k]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},3125:function(j,Y,T){!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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9586:function(j,Y,T){!function(w){"use strict";function i(k,F,q,J){var Q={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 F?Q[q][0]:Q[q][1]}function S(k){if(k=parseInt(k,10),isNaN(k))return!1;if(k<0)return!0;if(k<10)return 4<=k&&k<=7;if(k<100){var F=k%10;return S(0===F?k/10:F)}if(k<1e4){for(;k>=10;)k/=10;return S(k)}return S(k/=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(k){return S(k.substr(0,k.indexOf(" ")))?"a "+k:"an "+k},past:function x(k){return S(k.substr(0,k.indexOf(" ")))?"viru "+k:"virun "+k},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}})}(T(5439))},2349:function(j,Y,T){!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,x,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}})}(T(5439))},2400:function(j,Y,T){!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 x(q,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(q){return q%10==0||q>10&&q<20}function P(q){return i[q].split("_")}function k(q,J,Q,ne){var le=q+" ";return 1===q?le+x(0,J,Q[0],ne):J?le+(S(q)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(q)?P(Q)[1]:P(Q)[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(q,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:k,m:x,mm:k,h:x,hh:k,d:x,dd:k,M:x,MM:k,y:x,yy:k},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(q){return q+"-oji"},week:{dow:1,doy:4}})}(T(5439))},9991:function(j,Y,T){!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(F,q,J){return J?q%10==1&&q%100!=11?F[2]:F[3]:q%10==1&&q%100!=11?F[0]:F[1]}function x(F,q,J){return F+" "+E(i[J],F,q)}function S(F,q,J){return E(i[J],F,q)}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 P(F,q){return q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8477:function(j,Y,T){!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(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var k=i.words[P];return 1===P.length?S?k[0]:k[1]:x+" "+i.correctGrammaticalCase(x,k)}};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}})}(T(5439))},5118:function(j,Y,T){!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}})}(T(5439))},5943:function(j,Y,T){!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 x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},3849:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?E+12:E},meridiem:function(E,x,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"}})}(T(5439))},1977:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){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 x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}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(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<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(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(T(5439))},6184:function(j,Y,T){!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 x(P,k,F,q){var J="";if(k)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(k){return E[k]})},postformat:function(P){return P.replace(/\d/g,function(k){return i[k]})},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,k){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===k||"\u0938\u0915\u093e\u0933\u0940"===k?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===k||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===k||"\u0930\u093e\u0924\u094d\u0930\u0940"===k?P>=12?P:P+12:void 0},meridiem:function(P,k,F){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}})}(T(5439))},4524:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},485:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},6681:function(j,Y,T){!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}})}(T(5439))},2024:function(j,Y,T){!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(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},2688:function(j,Y,T){!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}})}(T(5439))},8914:function(j,Y,T){!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(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,k){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}})}(T(5439))},2272:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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(k){return k+(1===k||8===k||k>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1758:function(j,Y,T){!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("_"),x=[/^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(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.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:x,longMonthsParse:x,shortMonthsParse:x,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(k){return k+(1===k||8===k||k>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1510:function(j,Y,T){!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}})}(T(5439))},2797:function(j,Y,T){!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,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7944:function(j,Y,T){!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(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,k){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}})}(T(5439))},1605:function(j,Y,T){!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("_"),x=[/^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(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function P(F,q,J){var Q=F+" ";switch(J){case"ss":return Q+(S(F)?"sekundy":"sekund");case"m":return q?"minuta":"minut\u0119";case"mm":return Q+(S(F)?"minuty":"minut");case"h":return q?"godzina":"godzin\u0119";case"hh":return Q+(S(F)?"godziny":"godzin");case"ww":return Q+(S(F)?"tygodnie":"tygodni");case"MM":return Q+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,q){return F?/D MMMM/.test(q)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},3840:function(j,Y,T){!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"})}(T(5439))},4225:function(j,Y,T){!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}})}(T(5439))},5128:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var F=" ";return(x%100>=20||x>=100&&x%100==0)&&(F=" de "),x+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}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}})}(T(5439))},5127:function(j,Y,T){!function(w){"use strict";function E(P,k,F){return"m"===F?k?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,k){var F=P.split("_");return k%10==1&&k%100!=11?F[0]:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?F[1]:F[2]}({ss:k?"\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:k?"\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"}[F],+P)}var x=[/^\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:x,longMonthsParse:x,shortMonthsParse:x,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,k,F){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,k){switch(k){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}})}(T(5439))},2525:function(j,Y,T){!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,P,k){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}})}(T(5439))},9893:function(j,Y,T){!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}})}(T(5439))},3123:function(j,Y,T){!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,x,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(T(5439))},3027:function(j,Y,T){!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 x(k){return k>1&&k<5}function S(k,F,q,J){var Q=k+" ";switch(q){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?Q+(x(k)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?Q+(x(k)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?Q+(x(k)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?Q+(x(k)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?Q+(x(k)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?Q+(x(k)?"roky":"rokov"):Q+"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}})}(T(5439))},8106:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F=x+" ";switch(P){case"s":return S||k?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===x?S?"sekundo":"sekundi":2===x?S||k?"sekundi":"sekundah":x<5?S||k?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===x?S?"minuta":"minuto":2===x?S||k?"minuti":"minutama":x<5?S||k?"minute":"minutami":S||k?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===x?S?"ura":"uro":2===x?S||k?"uri":"urama":x<5?S||k?"ure":"urami":S||k?"ur":"urami");case"d":return S||k?"en dan":"enim dnem";case"dd":return F+(1===x?S||k?"dan":"dnem":2===x?S||k?"dni":"dnevoma":S||k?"dni":"dnevi");case"M":return S||k?"en mesec":"enim mesecem";case"MM":return F+(1===x?S||k?"mesec":"mesecem":2===x?S||k?"meseca":"mesecema":x<5?S||k?"mesece":"meseci":S||k?"mesecev":"meseci");case"y":return S||k?"eno leto":"enim letom";case"yy":return F+(1===x?S||k?"leto":"letom":2===x?S||k?"leti":"letoma":x<5?S||k?"leta":"leti":S||k?"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}})}(T(5439))},8799:function(j,Y,T){!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,x,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}})}(T(5439))},2872:function(j,Y,T){!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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,k){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":k||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===q?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+q)}};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}})}(T(5439))},7949:function(j,Y,T){!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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,k){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":k||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"godinu"===q?x+" godina":x+" "+q)}};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}})}(T(5439))},6167:function(j,Y,T){!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,x,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,x){return 12===E&&(E=0),"ekuseni"===x?E:"emini"===x?E>=11?E:E+12:"entsambama"===x||"ebusuku"===x?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(T(5439))},9713:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(T(5439))},1982:function(j,Y,T){!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}})}(T(5439))},2732:function(j,Y,T){!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(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,k){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}})}(T(5439))},3636:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===x?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},2115:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9801:function(j,Y,T){!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(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},2868:function(j,Y,T){!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,x,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"}})}(T(5439))},1310:function(j,Y,T){!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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},2360:function(j,Y,T){!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}})}(T(5439))},6645:function(j,Y,T){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,q,J,Q){var ne=function P(F){var q=Math.floor(F%1e3/100),J=Math.floor(F%100/10),Q=F%10,ne="";return q>0&&(ne+=i[q]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" 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(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"leS":-1!==F.indexOf("jar")?q.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?q.slice(0,-3)+"nem":q+" pIq"},past:function x(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?q.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?q.slice(0,-3)+"ben":q+" 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}})}(T(5439))},8374:function(j,Y,T){!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(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},256:function(j,Y,T){!function(w){"use strict";function E(x,S,P,k){var F={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return k||S?F[P][0]:F[P][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(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>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}})}(T(5439))},1631:function(j,Y,T){!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}})}(T(5439))},1595:function(j,Y,T){!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}})}(T(5439))},6050:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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}})}(T(5439))},5610:function(j,Y,T){!function(w){"use strict";function E(k,F,q){return"m"===q?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===q?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":k+" "+function i(k,F){var q=k.split("_");return F%10==1&&F%100!=11?q[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?q[1]:q[2]}({ss:F?"\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:F?"\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:F?"\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"}[q],+k)}function S(k){return function(){return k+"\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 x(k,F){var q={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===k?q.nominative.slice(1,7).concat(q.nominative.slice(0,1)):k?q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][k.day()]:q.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(k){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(k)},meridiem:function(k,F,q){return k<4?"\u043d\u043e\u0447\u0456":k<12?"\u0440\u0430\u043d\u043a\u0443":k<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(k,F){switch(F){case"M":case"d":case"DDD":case"w":case"W":return k+"-\u0439";case"D":return k+"-\u0433\u043e";default:return k}},week:{dow:1,doy:7}})}(T(5439))},6077:function(j,Y,T){!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,P,k){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}})}(T(5439))},2207:function(j,Y,T){!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}})}(T(5439))},2862:function(j,Y,T){!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}})}(T(5439))},8093:function(j,Y,T){!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,x,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}})}(T(5439))},5590:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9058:function(j,Y,T){!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}})}(T(5439))},7908:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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}})}(T(5439))},8867:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},1133:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},3291:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},5439:function(j,Y,T){(j=T.nmd(j)).exports=function(){"use strict";var w,ge;function i(){return w.apply(null,arguments)}function x(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function S(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function P(v,H){return Object.prototype.hasOwnProperty.call(v,H)}function k(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var H;for(H in v)if(P(v,H))return!1;return!0}function F(v){return void 0===v}function q(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function J(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function Q(v,H){var z,O=[],$=v.length;for(z=0;z<$;++z)O.push(H(v[z],z));return O}function ne(v,H){for(var O in H)P(H,O)&&(v[O]=H[O]);return P(H,"toString")&&(v.toString=H.toString),P(H,"valueOf")&&(v.valueOf=H.valueOf),v}function le(v,H,O,z){return ar(v,H,O,z,!0).utc()}function ie(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function Ae(v){if(null==v._isValid){var H=ie(v),O=ge.call(H.parsedDateParts,function($){return null!=$}),z=!isNaN(v._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&O);if(v._strict&&(z=z&&0===H.charsLeftOver&&0===H.unusedTokens.length&&void 0===H.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return z;v._isValid=z}return v._isValid}function ve(v){var H=le(NaN);return null!=v?ne(ie(H),v):ie(H).userInvalidated=!0,H}ge=Array.prototype.some?Array.prototype.some:function(v){var z,H=Object(this),O=H.length>>>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 oi=/(\[[^\[]*\])|(\\)?([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,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,en={},En={};function Ge(v,H,O,z){var $=z;"string"==typeof z&&($=function(){return this[z]()}),v&&(En[v]=$),H&&(En[H[0]]=function(){return Ft($.apply(this,arguments),H[1],H[2])}),O&&(En[O]=function(){return this.localeData().ordinal($.apply(this,arguments),v)})}function li(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Ci(v,H){return v.isValid()?(H=Dn(H,v.localeData()),en[H]=en[H]||function qn(v){var O,z,H=v.match(oi);for(O=0,z=H.length;O=0&&Ke.test(v);)v=v.replace(Ke,z),Ke.lastIndex=0,O-=1;return v}var ot={};function lt(v,H){var O=v.toLowerCase();ot[O]=ot[O+"s"]=ot[H]=v}function Jt(v){return"string"==typeof v?ot[v]||ot[v.toLowerCase()]:void 0}function sn(v){var O,z,H={};for(z in v)P(v,z)&&(O=Jt(z))&&(H[O]=v[z]);return H}var ci={};function ei(v,H){ci[v]=H}function se(v){return v%4==0&&v%100!=0||v%400==0}function te(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function ue(v){var H=+v,O=0;return 0!==H&&isFinite(H)&&(O=te(H)),O}function ke(v,H){return function(O){return null!=O?(Ot(this,v,O),i.updateOffset(this,H),this):bt(this,v)}}function bt(v,H){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+H]():NaN}function Ot(v,H,O){v.isValid()&&!isNaN(O)&&("FullYear"===H&&se(v.year())&&1===v.month()&&29===v.date()?(O=ue(O),v._d["set"+(v._isUTC?"UTC":"")+H](O,v.month(),Yn(O,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+H](O))}var on,ji=/\d/,Lt=/\d\d/,gr=/\d{3}/,Et=/\d{4}/,Gt=/[+-]?\d{6}/,vt=/\d\d?/,er=/\d\d\d\d?/,da=/\d\d\d\d\d\d?/,Gi=/\d{1,3}/,qr=/\d{1,4}/,xr=/[+-]?\d{1,6}/,_r=/\d+/,ua=/[+-]?\d+/,pd=/Z|[+-]\d\d:?\d\d/gi,ws=/Z|[+-]\d\d(?::?\d\d)?/gi,tn=/[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 Ue(v,H,O){on[v]=he(H)?H:function(z,$){return z&&O?O:H}}function $i(v,H){return P(on,v)?on[v](H._strict,H._locale):new RegExp(function et(v){return ct(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,$,ce){return O||z||$||ce}))}(v))}function ct(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}on={};var fi={};function M(v,H){var O,$,z=H;for("string"==typeof v&&(v=[v]),q(H)&&(z=function(ce,we){we[H]=ue(ce)}),$=v.length,O=0;O<$;O++)fi[v[O]]=z}function Kt(v,H){M(v,function(O,z,$,ce){$._w=$._w||{},H(O,$._w,$,ce)})}function zt(v,H,O){null!=H&&P(fi,v)&&fi[v](H,O._a,O,v)}var vi;function Yn(v,H){if(isNaN(v)||isNaN(H))return NaN;var O=function An(v,H){return(v%H+H)%H}(H,12);return v+=(H-O)/12,1===O?se(v)?29:28:31-O%7%2}vi=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var H;for(H=0;H68?1900:2e3)};var Ya=ke("FullYear",!0);function nr(v,H,O,z,$,ce,we){var ft;return v<100&&v>=0?(ft=new Date(v+400,H,O,z,$,ce,we),isFinite(ft.getFullYear())&&ft.setFullYear(v)):ft=new Date(v,H,O,z,$,ce,we),ft}function vs(v){var H,O;return v<100&&v>=0?((O=Array.prototype.slice.call(arguments))[0]=v+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(v)):H=new Date(Date.UTC.apply(null,arguments)),H}function fd(v,H,O){var z=7+H-O;return-(7+vs(v,0,z).getUTCDay()-H)%7+z-1}function sc(v,H,O,z,$){var jt,Mi,ft=1+7*(H-1)+(7+O-z)%7+fd(v,z,$);return ft<=0?Mi=pa(jt=v-1)+ft:ft>pa(v)?(jt=v+1,Mi=ft-pa(v)):(jt=v,Mi=ft),{year:jt,dayOfYear:Mi}}function po(v,H,O){var ce,we,z=fd(v.year(),H,O),$=Math.floor((v.dayOfYear()-z-1)/7)+1;return $<1?ce=$+Yr(we=v.year()-1,H,O):$>Yr(v.year(),H,O)?(ce=$-Yr(v.year(),H,O),we=v.year()+1):(we=v.year(),ce=$),{week:ce,year:we}}function Yr(v,H,O){var z=fd(v,H,O),$=fd(v+1,H,O);return(pa(v)-z+$)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),lt("week","w"),lt("isoWeek","W"),ei("week",5),ei("isoWeek",5),Ue("w",vt),Ue("ww",vt,Lt),Ue("W",vt),Ue("WW",vt,Lt),Kt(["w","ww","W","WW"],function(v,H,O,z){H[z.substr(0,1)]=ue(v)});function md(v,H){return v.slice(H,7).concat(v.slice(0,H))}Ge("d",0,"do","day"),Ge("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),Ge("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),Ge("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),lt("day","d"),lt("weekday","e"),lt("isoWeekday","E"),ei("day",11),ei("weekday",11),ei("isoWeekday",11),Ue("d",vt),Ue("e",vt),Ue("E",vt),Ue("dd",function(v,H){return H.weekdaysMinRegex(v)}),Ue("ddd",function(v,H){return H.weekdaysShortRegex(v)}),Ue("dddd",function(v,H){return H.weekdaysRegex(v)}),Kt(["dd","ddd","dddd"],function(v,H,O,z){var $=O._locale.weekdaysParse(v,z,O._strict);null!=$?H.d=$:ie(O).invalidWeekday=v}),Kt(["d","e","E"],function(v,H,O,z){H[z]=ue(v)});var cf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),df=tn,Bt=tn,Ua=tn;function De(v,H,O){var z,$,ce,we=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)ce=le([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(ce,"").toLocaleLowerCase();return O?"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null}function nl(){function v(cn,Or){return Or.length-cn.length}var ce,we,ft,jt,Mi,H=[],O=[],z=[],$=[];for(ce=0;ce<7;ce++)we=le([2e3,1]).day(ce),ft=ct(this.weekdaysMin(we,"")),jt=ct(this.weekdaysShort(we,"")),Mi=ct(this.weekdays(we,"")),H.push(ft),O.push(jt),z.push(Mi),$.push(ft),$.push(jt),$.push(Mi);H.sort(v),O.sort(v),z.sort(v),$.sort(v),this._weekdaysRegex=new RegExp("^("+$.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 Un(){return this.hours()%12||12}function Nt(v,H){Ge(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Gn(v,H){return H._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Un),Ge("k",["kk",2],0,function Ur(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Un.apply(this)+Ft(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Un.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Nt("a",!0),Nt("A",!1),lt("hour","h"),ei("hour",13),Ue("a",Gn),Ue("A",Gn),Ue("H",vt),Ue("h",vt),Ue("k",vt),Ue("HH",vt,Lt),Ue("hh",vt,Lt),Ue("kk",vt,Lt),Ue("hmm",er),Ue("hmmss",da),Ue("Hmm",er),Ue("Hmmss",da),M(["H","HH"],3),M(["k","kk"],function(v,H,O){var z=ue(v);H[3]=24===z?0:z}),M(["a","A"],function(v,H,O){O._isPm=O._locale.isPM(v),O._meridiem=v}),M(["h","hh"],function(v,H,O){H[3]=ue(v),ie(O).bigHour=!0}),M("hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z)),ie(O).bigHour=!0}),M("hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($)),ie(O).bigHour=!0}),M("Hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z))}),M("Hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($))});var oc=ke("Hours",!0);var ti,It={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:Wn,monthsShort:Bn,week:{dow:0,doy:6},weekdays:cf,weekdaysMin:Xu,weekdaysShort:Qu,meridiemParse:/[ap]\.?m?\.?/i},dt={},fo={};function Ti(v,H){var O,z=Math.min(v.length,H.length);for(O=0;O0;){if($=ai(ce.slice(0,O).join("-")))return $;if(z&&z.length>=O&&Ti(ce,z)>=O-1)break;O--}H++}return ti}(v)}function Me(v){var H,O=v._a;return O&&-2===ie(v).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>Yn(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,ie(v)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(v)._overflowWeeks&&-1===H&&(H=7),ie(v)._overflowWeekday&&-1===H&&(H=8),ie(v).overflow=H),v}var _e=/^\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)?)?$/,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)?)?$/,xi=/Z|[+-]\d\d(?::?\d\d)?/,ii=[["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]],di=[["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/]],tt=/^\/?Date\((-?\d+)/i,ln=/^(?:(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}))$/,_i={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yn(v){var H,O,ce,we,ft,jt,z=v._i,$=_e.exec(z)||nt.exec(z),Mi=ii.length,cn=di.length;if($){for(ie(v).iso=!0,H=0,O=Mi;H7)&&(jt=!0)):(ce=v._locale._week.dow,we=v._locale._week.doy,Mi=po(ui(),ce,we),O=Ni(H.gg,v._a[0],Mi.year),z=Ni(H.w,Mi.week),null!=H.d?(($=H.d)<0||$>6)&&(jt=!0):null!=H.e?($=H.e+ce,(H.e<0||H.e>6)&&(jt=!0)):$=ce),z<1||z>Yr(O,ce,we)?ie(v)._overflowWeeks=!0:null!=jt?ie(v)._overflowWeekday=!0:(ft=sc(O,z,$,ce,we),v._a[0]=ft.year,v._dayOfYear=ft.dayOfYear)}(v),null!=v._dayOfYear&&(we=Ni(v._a[0],$[0]),(v._dayOfYear>pa(we)||0===v._dayOfYear)&&(ie(v)._overflowDayOfYear=!0),O=vs(we,0,v._dayOfYear),v._a[1]=O.getUTCMonth(),v._a[2]=O.getUTCDate()),H=0;H<3&&null==v._a[H];++H)v._a[H]=z[H]=$[H];for(;H<7;H++)v._a[H]=z[H]=v._a[H]??(2===H?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?vs:nr).apply(null,z),ce=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==ce&&(ie(v).weekdayMismatch=!0)}}function lc(v){if(v._f!==i.ISO_8601)if(v._f!==i.RFC_2822){v._a=[],ie(v).empty=!0;var O,z,$,ce,we,Mi,cn,H=""+v._i,ft=H.length,jt=0;for(cn=($=Dn(v._f,v._locale).match(oi)||[]).length,O=0;O0&&ie(v).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),jt+=z.length),En[ce]?(z?ie(v).empty=!1:ie(v).unusedTokens.push(ce),zt(ce,z,v)):v._strict&&!z&&ie(v).unusedTokens.push(ce);ie(v).charsLeftOver=ft-jt,H.length>0&&ie(v).unusedInput.push(H),v._a[3]<=12&&!0===ie(v).bigHour&&v._a[3]>0&&(ie(v).bigHour=void 0),ie(v).parsedDateParts=v._a.slice(0),ie(v).meridiem=v._meridiem,v._a[3]=function uf(v,H,O){var z;return null==O?H:null!=v.meridiemHour?v.meridiemHour(H,O):(null!=v.isPM&&((z=v.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(v._locale,v._a[3],v._meridiem),null!==(Mi=ie(v).era)&&(v._a[0]=v._locale.erasConvertYear(Mi,v._a[0])),al(v),Me(v)}else mo(v);else yn(v)}function dc(v){var H=v._i,O=v._f;return v._locale=v._locale||G(v._l),null===H||void 0===O&&""===H?ve({nullInput:!0}):("string"==typeof H&&(v._i=H=v._locale.preparse(H)),Se(H)?new Te(Me(H)):(J(H)?v._d=H:x(O)?function cc(v){var H,O,z,$,ce,we,ft=!1,jt=v._f.length;if(0===jt)return ie(v).invalidFormat=!0,void(v._d=new Date(NaN));for($=0;$this?this:v:ve()});function Ku(v,H){var O,z;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return ui();for(O=H[0],z=1;z=0?new Date(v+400,H,O)-ml:new Date(v,H,O).valueOf()}function gl(v,H,O){return v<100&&v>=0?Date.UTC(v+400,H,O)-ml:Date.UTC(v,H,O)}function Dd(v,H){return H.erasAbbrRegex(v)}function es(){var $,ce,v=[],H=[],O=[],z=[],we=this.eras();for($=0,ce=we.length;$(ce=Yr(v,z,$))&&(H=ce),wo.call(this,v,H,O,z,$))}function wo(v,H,O,z,$){var ce=sc(v,H,O,z,$),we=vs(ce.year,0,ce.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),Ue("N",Dd),Ue("NN",Dd),Ue("NNN",Dd),Ue("NNNN",function yg(v,H){return H.erasNameRegex(v)}),Ue("NNNNN",function ya(v,H){return H.erasNarrowRegex(v)}),M(["N","NN","NNN","NNNN","NNNNN"],function(v,H,O,z){var $=O._locale.erasParse(v,z,O._strict);$?ie(O).era=$:ie(O).invalidEra=v}),Ue("y",_r),Ue("yy",_r),Ue("yyy",_r),Ue("yyyy",_r),Ue("yo",function Hd(v,H){return H._eraYearOrdinalRegex||_r}),M(["y","yy","yyy","yyyy"],0),M(["yo"],function(v,H,O,z){var $;O._locale._eraYearOrdinalRegex&&($=v.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(v,$):parseInt(v,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),lt("weekYear","gg"),lt("isoWeekYear","GG"),ei("weekYear",1),ei("isoWeekYear",1),Ue("G",ua),Ue("g",ua),Ue("GG",vt,Lt),Ue("gg",vt,Lt),Ue("GGGG",qr,Et),Ue("gggg",qr,Et),Ue("GGGGG",xr,Gt),Ue("ggggg",xr,Gt),Kt(["gggg","ggggg","GGGG","GGGGG"],function(v,H,O,z){H[z.substr(0,2)]=ue(v)}),Kt(["gg","GG"],function(v,H,O,z){H[z]=i.parseTwoDigitYear(v)}),Ge("Q",0,"Qo","quarter"),lt("quarter","Q"),ei("quarter",7),Ue("Q",ji),M("Q",function(v,H){H[1]=3*(ue(v)-1)}),Ge("D",["DD",2],"Do","date"),lt("date","D"),ei("date",9),Ue("D",vt),Ue("DD",vt,Lt),Ue("Do",function(v,H){return v?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),M(["D","DD"],2),M("Do",function(v,H){H[2]=ue(v.match(vt)[0])});var Pd=ke("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),lt("dayOfYear","DDD"),ei("dayOfYear",4),Ue("DDD",Gi),Ue("DDDD",gr),M(["DDD","DDDD"],function(v,H,O){O._dayOfYear=ue(v)}),Ge("m",["mm",2],0,"minute"),lt("minute","m"),ei("minute",14),Ue("m",vt),Ue("mm",vt,Lt),M(["m","mm"],4);var Rd=ke("Minutes",!1);Ge("s",["ss",2],0,"second"),lt("second","s"),ei("second",15),Ue("s",vt),Ue("ss",vt,Lt),M(["s","ss"],5);var is,Tc,Pr=ke("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),lt("millisecond","ms"),ei("millisecond",16),Ue("S",Gi,ji),Ue("SS",Gi,Lt),Ue("SSS",Gi,gr),is="SSSS";is.length<=9;is+="S")Ue(is,_r);function sr(v,H){H[6]=ue(1e3*("0."+v))}for(is="S";is.length<=9;is+="S")M(is,sr);Tc=ke("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Te.prototype;function yl(v){return v}Fe.add=nh,Fe.calendar=function bc(v,H){1===arguments.length&&(arguments[0]?dl(arguments[0])?(v=arguments[0],H=void 0):bd(arguments[0])&&(H=arguments[0],v=void 0):(v=void 0,H=void 0));var O=v||ui(),z=Pn(O,this).startOf("day"),$=i.calendarFormat(this,z)||"sameElse",ce=H&&(he(H[$])?H[$].call(this,O):H[$]);return this.format(ce||this.localeData().calendar($,this,ui(O)))},Fe.clone=function bo(){return new Te(this)},Fe.diff=function yc(v,H,O){var z,$,ce;if(!this.isValid())return NaN;if(!(z=Pn(v,this)).isValid())return NaN;switch($=6e4*(z.utcOffset()-this.utcOffset()),H=Jt(H)){case"year":ce=Jn(this,z)/12;break;case"month":ce=Jn(this,z);break;case"quarter":ce=Jn(this,z)/3;break;case"second":ce=(this-z)/1e3;break;case"minute":ce=(this-z)/6e4;break;case"hour":ce=(this-z)/36e5;break;case"day":ce=(this-z-$)/864e5;break;case"week":ce=(this-z-$)/6048e5;break;default:ce=this-z}return O?ce:te(ce)},Fe.endOf=function Lr(v){var H,O;if(void 0===(v=Jt(v))||"millisecond"===v||!this.isValid())return this;switch(O=this._isUTC?gl:vc,v){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+=fl-Hr(H+(this._isUTC?0:this.utcOffset()*Hs),fl)-1;break;case"minute":H=this._d.valueOf(),H+=Hs-Hr(H,Hs)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Hr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Fe.format=function hl(v){v||(v=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Ci(this,v);return this.localeData().postformat(H)},Fe.from=function yd(v,H){return this.isValid()&&(Se(v)&&v.isValid()||ui(v).isValid())?Mn({to:this,from:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.fromNow=function Md(v){return this.from(ui(),v)},Fe.to=function wc(v,H){return this.isValid()&&(Se(v)&&v.isValid()||ui(v).isValid())?Mn({from:this,to:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.toNow=function Cc(v){return this.to(ui(),v)},Fe.get=function it(v){return he(this[v=Jt(v)])?this[v]():this},Fe.invalidAt=function Xa(){return ie(this).overflow},Fe.isAfter=function Ao(v,H){var O=Se(v)?v:ui(v);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Jt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?Ci(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ci(O,"Z")):Ci(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function _f(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,v="moment",H="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+v+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function Sd(){return this.isValid()?this.toISOString():null},Fe.toString=function Mc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function vd(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Ed(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function bl(){var v,H,O,z=this.localeData().eras();for(v=0,H=z.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function Ds(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function fc(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Zr,Fe.isUTC=Zr,Fe.zoneAbbr=function kd(){return this._isUTC?"UTC":""},Fe.zoneName=function Ps(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Be("dates accessor is deprecated. Use date instead.",Pd),Fe.months=Be("months accessor is deprecated. Use month instead",tr),Fe.years=Be("years accessor is deprecated. Use year instead",Ya),Fe.zone=Be("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ll(v,H){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,H),this):-this.utcOffset()}),Fe.isDSTShifted=Be("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function _o(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,v={};return He(v,this),(v=dc(v))._a?(H=v._isUTC?le(v._a):ui(v._a),this._isDSTShifted=this.isValid()&&function hc(v,H,O){var we,z=Math.min(v.length,H.length),$=Math.abs(v.length-H.length),ce=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var Zt=ye.prototype;function xc(v,H,O,z){var $=G(),ce=le().set(z,H);return $[O](ce,v)}function hh(v,H,O){if(q(v)&&(H=v,v=void 0),v=v||"",null!=H)return xc(v,H,O,"month");var z,$=[];for(z=0;z<12;z++)$[z]=xc(v,z,O,"month");return $}function Rs(v,H,O,z){"boolean"==typeof v?(q(H)&&(O=H,H=void 0),H=H||""):(O=H=v,v=!1,q(H)&&(O=H,H=void 0),H=H||"");var we,$=G(),ce=v?$._week.dow:0,ft=[];if(null!=O)return xc(H,(O+ce)%7,z,"day");for(we=0;we<7;we++)ft[we]=xc(H,(we+ce)%7,z,"day");return ft}Zt.calendar=function mt(v,H,O){var z=this._calendar[v]||this._calendar.sameElse;return he(z)?z.call(H,O):z},Zt.longDateFormat=function bn(v){var H=this._longDateFormat[v],O=this._longDateFormat[v.toUpperCase()];return H||!O?H:(this._longDateFormat[v]=O.match(oi).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[v])},Zt.invalidDate=function ca(){return this._invalidDate},Zt.ordinal=function de(v){return this._ordinal.replace("%d",v)},Zt.preparse=yl,Zt.postformat=yl,Zt.relativeTime=function be(v,H,O,z){var $=this._relativeTime[O];return he($)?$(v,H,O,z):$.replace(/%d/i,v)},Zt.pastFuture=function qe(v,H){var O=this._relativeTime[v>0?"future":"past"];return he(O)?O(H):O.replace(/%s/i,H)},Zt.set=function me(v){var H,O;for(O in v)P(v,O)&&(he(H=v[O])?this[O]=H:this["_"+O]=H);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Zt.eras=function _l(v,H){var O,z,$,ce=this._eras||G("en")._eras;for(O=0,z=ce.length;O=0)return ce[z]},Zt.erasConvertYear=function bg(v,H){var O=v.since<=v.until?1:-1;return void 0===H?i(v.since).year():i(v.since).year()+(H-v.offset)*O},Zt.erasAbbrRegex=function Af(v){return P(this,"_erasAbbrRegex")||es.call(this),v?this._erasAbbrRegex:this._erasRegex},Zt.erasNameRegex=function bf(v){return P(this,"_erasNameRegex")||es.call(this),v?this._erasNameRegex:this._erasRegex},Zt.erasNarrowRegex=function yf(v){return P(this,"_erasNarrowRegex")||es.call(this),v?this._erasNarrowRegex:this._erasRegex},Zt.months=function ja(v,H){return v?x(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||il).test(H)?"format":"standalone"][v.month()]:x(this._months)?this._months:this._months.standalone},Zt.monthsShort=function uo(v,H){return v?x(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[il.test(H)?"format":"standalone"][v.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Zt.monthsParse=function qa(v,H,O){var z,$,ce;if(this._monthsParseExact)return ho.call(this,v,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if($=le([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months($,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort($,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(ce="^"+this.months($,"")+"|^"+this.monthsShort($,""),this._monthsParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(v))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(v))return z;if(!O&&this._monthsParse[z].test(v))return z}},Zt.monthsRegex=function Nn(v){return this._monthsParseExact?(P(this,"_monthsRegex")||ir.call(this),v?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=ac),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},Zt.monthsShortRegex=function Zu(v){return this._monthsParseExact?(P(this,"_monthsRegex")||ir.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=mi),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},Zt.week=function nf(v){return po(v,this._week.dow,this._week.doy).week},Zt.firstDayOfYear=function rf(){return this._week.doy},Zt.firstDayOfWeek=function Sr(){return this._week.dow},Zt.weekdays=function Yt(v,H){var O=x(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===v?md(O,this._week.dow):v?O[v.day()]:O},Zt.weekdaysMin=function $e(v){return!0===v?md(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},Zt.weekdaysShort=function Hn(v){return!0===v?md(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},Zt.weekdaysParse=function Zi(v,H,O){var z,$,ce;if(this._weekdaysParseExact)return De.call(this,v,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if($=le([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays($,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort($,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin($,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(ce="^"+this.weekdays($,"")+"|^"+this.weekdaysShort($,"")+"|^"+this.weekdaysMin($,""),this._weekdaysParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(v))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(v))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(v))return z;if(!O&&this._weekdaysParse[z].test(v))return z}},Zt.weekdaysRegex=function Ln(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nl.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=df),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},Zt.weekdaysShortRegex=function Wr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nl.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Zt.weekdaysMinRegex=function rr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nl.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ua),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Zt.isPM=function br(v){return"p"===(v+"").toLowerCase().charAt(0)},Zt.meridiem=function At(v,H,O){return v>11?O?"pm":"PM":O?"am":"AM"},I("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(v){var H=v%10;return v+(1===ue(v%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Be("moment.lang is deprecated. Use moment.locale instead.",I),i.langData=Be("moment.langData is deprecated. Use moment.localeData instead.",G);var wr=Math.abs;function Tf(v,H,O,z){var $=Mn(H,O);return v._milliseconds+=z*$._milliseconds,v._days+=z*$._days,v._months+=z*$._months,v._bubble()}function Ma(v){return v<0?Math.floor(v):Math.ceil(v)}function ph(v){return 4800*v/146097}function Wi(v){return 146097*v/4800}function kr(v){return function(){return this.as(v)}}var wl=kr("ms"),Sf=kr("s"),Ef=kr("m"),Df=kr("h"),Dc=kr("d"),Cl=kr("w"),Hc=kr("M"),Co=kr("Q"),Id=kr("y");function Xr(v){return function(){return this.isValid()?this._data[v]:NaN}}var gh=Xr("milliseconds"),Hf=Xr("seconds"),Lc=Xr("minutes"),Os=Xr("hours"),vo=Xr("days"),Pc=Xr("months"),Bd=Xr("years");var or=Math.round,To={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lf(v,H,O,z,$){return $.relativeTime(H||1,!!O,v,z)}var xo=Math.abs;function Is(v){return(v>0)-(v<0)||+v}function Vd(){if(!this.isValid())return this.localeData().invalidDate();var z,$,ce,we,jt,Mi,cn,Or,v=xo(this._milliseconds)/1e3,H=xo(this._days),O=xo(this._months),ft=this.asSeconds();return ft?(z=te(v/60),$=te(z/60),v%=60,z%=60,ce=te(O/12),O%=12,we=v?v.toFixed(3).replace(/\.?0+$/,""):"",jt=ft<0?"-":"",Mi=Is(this._months)!==Is(ft)?"-":"",cn=Is(this._days)!==Is(ft)?"-":"",Or=Is(this._milliseconds)!==Is(ft)?"-":"",jt+"P"+(ce?Mi+ce+"Y":"")+(O?Mi+O+"M":"")+(H?cn+H+"D":"")+($||z||v?"T":"")+($?Or+$+"H":"")+(z?Or+z+"M":"")+(v?Or+we+"S":"")):"P0D"}var Xt=go.prototype;return Xt.isValid=function ol(){return this._isValid},Xt.abs=function vf(){var v=this._data;return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),v.milliseconds=wr(v.milliseconds),v.seconds=wr(v.seconds),v.minutes=wr(v.minutes),v.hours=wr(v.hours),v.months=wr(v.months),v.years=wr(v.years),this},Xt.add=function xf(v,H){return Tf(this,v,H,1)},Xt.subtract=function Ec(v,H){return Tf(this,v,H,-1)},Xt.as=function fh(v){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(v=Jt(v))||"quarter"===v||"year"===v)switch(H=this._days+z/864e5,O=this._months+ph(H),v){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Wi(this._months)),v){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 "+v)}},Xt.asMilliseconds=wl,Xt.asSeconds=Sf,Xt.asMinutes=Ef,Xt.asHours=Df,Xt.asDays=Dc,Xt.asWeeks=Cl,Xt.asMonths=Hc,Xt.asQuarters=Co,Xt.asYears=Id,Xt.valueOf=function mh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},Xt._bubble=function Rr(){var $,ce,we,ft,jt,v=this._milliseconds,H=this._days,O=this._months,z=this._data;return v>=0&&H>=0&&O>=0||v<=0&&H<=0&&O<=0||(v+=864e5*Ma(Wi(O)+H),H=0,O=0),z.milliseconds=v%1e3,$=te(v/1e3),z.seconds=$%60,ce=te($/60),z.minutes=ce%60,we=te(ce/60),z.hours=we%24,H+=te(we/24),O+=jt=te(ph(H)),H-=Ma(Wi(jt)),ft=te(O/12),O%=12,z.days=H,z.months=O,z.years=ft,this},Xt.clone=function vl(){return Mn(this)},Xt.get=function Tl(v){return v=Jt(v),this.isValid()?this[v+"s"]():NaN},Xt.milliseconds=gh,Xt.seconds=Hf,Xt.minutes=Lc,Xt.hours=Os,Xt.days=vo,Xt.weeks=function Nd(){return te(this.days()/7)},Xt.months=Pc,Xt.years=Bd,Xt.humanize=function _h(v,H){if(!this.isValid())return this.localeData().invalidDate();var $,ce,O=!1,z=To;return"object"==typeof v&&(H=v,v=!1),"boolean"==typeof v&&(O=v),"object"==typeof H&&(z=Object.assign({},To,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),ce=function Pf(v,H,O,z){var $=Mn(v).abs(),ce=or($.as("s")),we=or($.as("m")),ft=or($.as("h")),jt=or($.as("d")),Mi=or($.as("M")),cn=or($.as("w")),Or=or($.as("y")),Ir=ce<=O.ss&&["s",ce]||ce0,Ir[4]=z,Lf.apply(null,Ir)}(this,!O,z,$=this.localeData()),O&&(ce=$.pastFuture(+this,ce)),$.postformat(ce)},Xt.toISOString=Vd,Xt.toString=Vd,Xt.toJSON=Vd,Xt.locale=oh,Xt.localeData=Cd,Xt.toIsoString=Be("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vd),Xt.lang=wd,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),Ue("x",ua),Ue("X",/[+-]?\d+(\.\d{1,3})?/),M("X",function(v,H,O){O._d=new Date(1e3*parseFloat(v))}),M("x",function(v,H,O){O._d=new Date(ue(v))}),i.version="2.29.4",function E(v){w=v}(ui),i.fn=Fe,i.min=function ga(){return Ku("isBefore",[].slice.call(arguments,0))},i.max=function gd(){return Ku("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function uh(v){return ui(1e3*v)},i.months=function ks(v,H){return hh(v,H,"months")},i.isDate=J,i.locale=I,i.invalid=ve,i.duration=Mn,i.isMoment=Se,i.weekdays=function wg(v,H,O){return Rs(v,H,O,"weekdays")},i.parseZone=function Cf(){return ui.apply(null,arguments).parseZone()},i.localeData=G,i.isDuration=Ja,i.monthsShort=function Sc(v,H){return hh(v,H,"monthsShort")},i.weekdaysMin=function Od(v,H,O){return Rs(v,H,O,"weekdaysMin")},i.defineLocale=U,i.updateLocale=function B(v,H){if(null!=H){var O,z,$=It;null!=dt[v]&&null!=dt[v].parentLocale?dt[v].set(Ce(dt[v]._config,H)):(null!=(z=ai(v))&&($=z._config),H=Ce($,H),null==z&&(H.abbr=v),(O=new ye(H)).parentLocale=dt[v],dt[v]=O),I(v)}else null!=dt[v]&&(null!=dt[v].parentLocale?(dt[v]=dt[v].parentLocale,v===I()&&I(v)):null!=dt[v]&&delete dt[v]);return dt[v]},i.locales=function re(){return We(dt)},i.weekdaysShort=function Ml(v,H,O){return Rs(v,H,O,"weekdaysShort")},i.normalizeUnits=Jt,i.relativeTimeRounding=function Rf(v){return void 0===v?or:"function"==typeof v&&(or=v,!0)},i.relativeTimeThreshold=function Rc(v,H){return void 0!==To[v]&&(void 0===H?To[v]:(To[v]=H,"s"===v&&(To.ss=H-1),!0))},i.calendarFormat=function _c(v,H){var O=v.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=Fe,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}()},9751:(j,Y,T)=>{"use strict";T.d(Y,{y:()=>F});var w=T(930),i=T(727),E=T(8822),x=T(9635),S=T(2416),P=T(576),k=T(2806);let F=(()=>{class ne{constructor(ae){ae&&(this._subscribe=ae)}lift(ae){const ie=new ne;return ie.source=this,ie.operator=ae,ie}subscribe(ae,ie,ge){const Ae=function Q(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(ae)?ae:new w.Hp(ae,ie,ge);return(0,k.x)(()=>{const{operator:ve,source:Qe}=this;Ae.add(ve?ve.call(Ae,Qe):Qe?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(ae){try{return this._subscribe(ae)}catch(ie){ae.error(ie)}}forEach(ae,ie){return new(ie=q(ie))((ge,Ae)=>{const ve=new w.Hp({next:Qe=>{try{ae(Qe)}catch(Xe){Ae(Xe),ve.unsubscribe()}},error:Ae,complete:ge});this.subscribe(ve)})}_subscribe(ae){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(ae)}[E.L](){return this}pipe(...ae){return(0,x.U)(ae)(this)}toPromise(ae){return new(ae=q(ae))((ie,ge)=>{let Ae;this.subscribe(ve=>Ae=ve,ve=>ge(ve),()=>ie(Ae))})}}return ne.create=le=>new ne(le),ne})();function q(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>k});var w=T(9751),i=T(727);const x=(0,T(3888).d)(q=>function(){q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=T(8737),P=T(2806);let k=(()=>{class q extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new F(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new x}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:ae}=this;return ne||le?i.Lc:(this.currentObservers=null,ae.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(ae,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:ae}=this;ne?Q.error(le):ae&&Q.complete()}asObservable(){const Q=new w.y;return Q.source=this,Q}}return q.create=(J,Q)=>new F(J,Q),q})();class F extends k{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(j,Y,T)=>{"use strict";T.d(Y,{Hp:()=>ge,Lv:()=>ne});var w=T(576),i=T(727),E=T(2416),x=T(7849),S=T(5032);const P=q("C",void 0,void 0);function q(He,Te,Se){return{kind:He,value:Te,error:Se}}var J=T(3410),Q=T(2806);class ne extends i.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,i.Nn)(Te)&&Te.add(this)):this.destination=Xe}static create(Te,Se,pt){return new ge(Te,Se,pt)}next(Te){this.isStopped?Qe(function F(He){return q("N",He,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?Qe(function k(He){return q("E",void 0,He)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?Qe(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function ae(He,Te){return le.call(He,Te)}class ie{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Se}=this;if(Se.next)try{Se.next(Te)}catch(pt){Ae(pt)}}error(Te){const{partialObserver:Se}=this;if(Se.error)try{Se.error(Te)}catch(pt){Ae(pt)}else Ae(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Se){Ae(Se)}}}class ge extends ne{constructor(Te,Se,pt){let Be;if(super(),(0,w.m)(Te)||!Te)Be={next:Te??void 0,error:Se??void 0,complete:pt??void 0};else{let Ve;this&&E.v.useDeprecatedNextContext?(Ve=Object.create(Te),Ve.unsubscribe=()=>this.unsubscribe(),Be={next:Te.next&&ae(Te.next,Ve),error:Te.error&&ae(Te.error,Ve),complete:Te.complete&&ae(Te.complete,Ve)}):Be=Te}this.destination=new ie(Be)}}function Ae(He){E.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(He):(0,x.h)(He)}function Qe(He,Te){const{onStoppedNotification:Se}=E.v;Se&&J.z.setTimeout(()=>Se(He,Te))}const Xe={closed:!0,next:S.Z,error:function ve(He){throw He},complete:S.Z}},727:(j,Y,T)=>{"use strict";T.d(Y,{Lc:()=>P,w0:()=>S,Nn:()=>k});var w=T(576);const E=(0,T(3888).d)(q=>function(Q){q(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var x=T(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const ae of Q)ae.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(ae){J=ae instanceof E?ae.errors:[ae]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const ae of le)try{F(ae)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,x.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,x.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const q=new S;return q.closed=!0,q})();const P=S.EMPTY;function k(q){return q instanceof S||q&&"closed"in q&&(0,w.m)(q.remove)&&(0,w.m)(q.add)&&(0,w.m)(q.unsubscribe)}function F(q){(0,w.m)(q)?q():q.unsubscribe()}},2416:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(j,Y,T)=>{"use strict";T.d(Y,{a:()=>J});var w=T(9751),i=T(4742),E=T(2076),x=T(4671),S=T(3268),P=T(3269),k=T(1810),F=T(5403),q=T(9672);function J(...le){const ae=(0,P.yG)(le),ie=(0,P.jO)(le),{args:ge,keys:Ae}=(0,i.D)(le);if(0===ge.length)return(0,E.D)([],ae);const ve=new w.y(function Q(le,ae,ie=x.y){return ge=>{ne(ae,()=>{const{length:Ae}=le,ve=new Array(Ae);let Qe=Ae,Xe=Ae;for(let He=0;He{const Te=(0,E.D)(le[He],ae);let Se=!1;Te.subscribe((0,F.x)(ge,pt=>{ve[He]=pt,Se||(Se=!0,Xe--),Xe||ge.next(ie(ve.slice()))},()=>{--Qe||ge.complete()}))},ge)},ge)}}(ge,ae,Ae?Qe=>(0,k.n)(Ae,Qe):x.y));return ie?ve.pipe((0,S.Z)(ie)):ve}function ne(le,ae,ie){le?(0,q.f)(ie,le,ae):ae()}},7272:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>S});var w=T(8189),E=T(3269),x=T(2076);function S(...P){return function i(){return(0,w.J)(1)}()((0,x.D)(P,(0,E.yG)(P)))}},515:(j,Y,T)=>{"use strict";T.d(Y,{E:()=>i});const i=new(T(9751).y)(S=>S.complete())},2076:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>pt});var w=T(8421),i=T(9672),E=T(4482),x=T(5403);function S(Be,Ve=0){return(0,E.e)((Ne,he)=>{Ne.subscribe((0,x.x)(he,me=>(0,i.f)(he,Be,()=>he.next(me),Ve),()=>(0,i.f)(he,Be,()=>he.complete(),Ve),me=>(0,i.f)(he,Be,()=>he.error(me),Ve)))})}function P(Be,Ve=0){return(0,E.e)((Ne,he)=>{he.add(Be.schedule(()=>Ne.subscribe(he),Ve))})}var q=T(9751),Q=T(2202),ne=T(576);function ae(Be,Ve){if(!Be)throw new Error("Iterable cannot be null");return new q.y(Ne=>{(0,i.f)(Ne,Ve,()=>{const he=Be[Symbol.asyncIterator]();(0,i.f)(Ne,Ve,()=>{he.next().then(me=>{me.done?Ne.complete():Ne.next(me.value)})},0,!0)})})}var ie=T(3670),ge=T(8239),Ae=T(1144),ve=T(6495),Qe=T(2206),Xe=T(4532),He=T(3260);function pt(Be,Ve){return Ve?function Se(Be,Ve){if(null!=Be){if((0,ie.c)(Be))return function k(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Ae.z)(Be))return function J(Be,Ve){return new q.y(Ne=>{let he=0;return Ve.schedule(function(){he===Be.length?Ne.complete():(Ne.next(Be[he++]),Ne.closed||this.schedule())})})}(Be,Ve);if((0,ge.t)(Be))return function F(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Qe.D)(Be))return ae(Be,Ve);if((0,ve.T)(Be))return function le(Be,Ve){return new q.y(Ne=>{let he;return(0,i.f)(Ne,Ve,()=>{he=Be[Q.h](),(0,i.f)(Ne,Ve,()=>{let me,Ce;try{({value:me,done:Ce}=he.next())}catch(ye){return void Ne.error(ye)}Ce?Ne.complete():Ne.next(me)},0,!0)}),()=>(0,ne.m)(he?.return)&&he.return()})}(Be,Ve);if((0,He.L)(Be))return function Te(Be,Ve){return ae((0,He.Q)(Be),Ve)}(Be,Ve)}throw(0,Xe.z)(Be)}(Be,Ve):(0,w.Xf)(Be)}},8421:(j,Y,T)=>{"use strict";T.d(Y,{Xf:()=>le});var w=T(655),i=T(1144),E=T(8239),x=T(9751),S=T(3670),P=T(2206),k=T(4532),F=T(6495),q=T(3260),J=T(576),Q=T(7849),ne=T(8822);function le(He){if(He instanceof x.y)return He;if(null!=He){if((0,S.c)(He))return function ae(He){return new x.y(Te=>{const Se=He[ne.L]();if((0,J.m)(Se.subscribe))return Se.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(He);if((0,i.z)(He))return function ie(He){return new x.y(Te=>{for(let Se=0;Se{He.then(Se=>{Te.closed||(Te.next(Se),Te.complete())},Se=>Te.error(Se)).then(null,Q.h)})}(He);if((0,P.D)(He))return ve(He);if((0,F.T)(He))return function Ae(He){return new x.y(Te=>{for(const Se of He)if(Te.next(Se),Te.closed)return;Te.complete()})}(He);if((0,q.L)(He))return function Qe(He){return ve((0,q.Q)(He))}(He)}throw(0,k.z)(He)}function ve(He){return new x.y(Te=>{(function Xe(He,Te){var Se,pt,Be,Ve;return(0,w.mG)(this,void 0,void 0,function*(){try{for(Se=(0,w.KL)(He);!(pt=yield Se.next()).done;)if(Te.next(pt.value),Te.closed)return}catch(Ne){Be={error:Ne}}finally{try{pt&&!pt.done&&(Ve=Se.return)&&(yield Ve.call(Se))}finally{if(Be)throw Be.error}}Te.complete()})})(He,Te).catch(Se=>Te.error(Se))})}},6451:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>P});var w=T(8189),i=T(8421),E=T(515),x=T(3269),S=T(2076);function P(...k){const F=(0,x.yG)(k),q=(0,x._6)(k,1/0),J=k;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(q)((0,S.D)(J,F)):E.E}},9646:(j,Y,T)=>{"use strict";T.d(Y,{of:()=>E});var w=T(3269),i=T(2076);function E(...x){const S=(0,w.yG)(x);return(0,i.D)(x,S)}},102:(j,Y,T)=>{"use strict";T.d(Y,{S:()=>P});var w=T(9751),i=T(8421);const{isArray:E}=Array;var S=T(5403);function P(...F){return 1===(F=function x(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function k(F){return q=>{let J=[];for(let Q=0;J&&!q.closed&&Q{if(J){for(let le=0;le{"use strict";T.d(Y,{_:()=>E});var w=T(9751),i=T(576);function E(x,S){const P=(0,i.m)(x)?x:()=>x,k=F=>F.error(P());return new w.y(S?F=>S.schedule(k,0,F):k)}},2805:(j,Y,T)=>{"use strict";T.d(Y,{H:()=>S});var w=T(9751),i=T(4986),E=T(3532),x=T(1165);function S(P=0,k,F=i.P){let q=-1;return null!=k&&((0,E.K)(k)?F=k:q=k),new w.y(J=>{let Q=(0,x.q)(P)?+P-F.now():P;Q<0&&(Q=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=q?this.schedule(void 0,q):J.complete())},Q)})}},5403:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>i});var w=T(930);function i(x,S,P,k,F){return new E(x,S,P,k,F)}class E extends w.Lv{constructor(S,P,k,F,q,J){super(S),this.onFinalize=q,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(Q){try{F(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=k?function(){try{k()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>x});var w=T(8421),i=T(5403),E=T(4482);function x(S){return(0,E.e)((P,k)=>{let J,F=null,q=!1;F=P.subscribe((0,i.x)(k,void 0,void 0,Q=>{J=(0,w.Xf)(S(Q,x(S)(P))),F?(F.unsubscribe(),F=null,J.subscribe(k)):q=!0})),q&&(F.unsubscribe(),F=null,J.subscribe(k))})}},4351:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>E});var w=T(5577),i=T(576);function E(x,S){return(0,i.m)(S)?(0,w.z)(x,S,1):(0,w.z)(x,1)}},8372:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>x});var w=T(4986),i=T(4482),E=T(5403);function x(S,P=w.z){return(0,i.e)((k,F)=>{let q=null,J=null,Q=null;const ne=()=>{if(q){q.unsubscribe(),q=null;const ae=J;J=null,F.next(ae)}};function le(){const ae=Q+S,ie=P.now();if(ie{J=ae,Q=P.now(),q||(q=P.schedule(le,S),F.add(q))},()=>{ne(),F.complete()},void 0,()=>{J=q=null}))})}},6590:(j,Y,T)=>{"use strict";T.d(Y,{d:()=>E});var w=T(4482),i=T(5403);function E(x){return(0,w.e)((S,P)=>{let k=!1;S.subscribe((0,i.x)(P,F=>{k=!0,P.next(F)},()=>{k||P.next(x),P.complete()}))})}},1005:(j,Y,T)=>{"use strict";T.d(Y,{g:()=>ne});var w=T(4986),i=T(7272),E=T(5698),x=T(4482),S=T(5403),P=T(5032),F=T(9718),q=T(5577);function J(le,ae){return ae?ie=>(0,i.z)(ae.pipe((0,E.q)(1),function k(){return(0,x.e)((le,ae)=>{le.subscribe((0,S.x)(ae,P.Z))})}()),ie.pipe(J(le))):(0,q.z)((ie,ge)=>le(ie,ge).pipe((0,E.q)(1),(0,F.h)(ie)))}var Q=T(2805);function ne(le,ae=w.z){const ie=(0,Q.H)(le,ae);return J(()=>ie)}},9300:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,k)=>{let F=0;P.subscribe((0,i.x)(k,q=>x.call(S,q,F++)&&k.next(q)))})}},590:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>k});var w=T(6805),i=T(9300),E=T(5698),x=T(6590),S=T(8068),P=T(4671);function k(F,q){const J=arguments.length>=2;return Q=>Q.pipe(F?(0,i.h)((ne,le)=>F(ne,le,Q)):P.y,(0,E.q)(1),J?(0,x.d)(q):(0,S.T)(()=>new w.K))}},4004:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,k)=>{let F=0;P.subscribe((0,i.x)(k,q=>{k.next(x.call(S,q,F++))}))})}},9718:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});var w=T(4004);function i(E){return(0,w.U)(()=>E)}},8189:(j,Y,T)=>{"use strict";T.d(Y,{J:()=>E});var w=T(5577),i=T(4671);function E(x=1/0){return(0,w.z)(i.y,x)}},5577:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>F});var w=T(4004),i=T(8421),E=T(4482),x=T(9672),S=T(5403),k=T(576);function F(q,J,Q=1/0){return(0,k.m)(J)?F((ne,le)=>(0,w.U)((ae,ie)=>J(ne,ae,le,ie))((0,i.Xf)(q(ne,le))),Q):("number"==typeof J&&(Q=J),(0,E.e)((ne,le)=>function P(q,J,Q,ne,le,ae,ie,ge){const Ae=[];let ve=0,Qe=0,Xe=!1;const He=()=>{Xe&&!Ae.length&&!ve&&J.complete()},Te=pt=>ve{ae&&J.next(pt),ve++;let Be=!1;(0,i.Xf)(Q(pt,Qe++)).subscribe((0,S.x)(J,Ve=>{le?.(Ve),ae?Te(Ve):J.next(Ve)},()=>{Be=!0},void 0,()=>{if(Be)try{for(ve--;Ae.length&&veSe(Ve)):Se(Ve)}He()}catch(Ve){J.error(Ve)}}))};return q.subscribe((0,S.x)(J,Te,()=>{Xe=!0,He()})),()=>{ge?.()}}(ne,le,q,Q)))}},3099:(j,Y,T)=>{"use strict";T.d(Y,{B:()=>S});var w=T(8421),i=T(7579),E=T(930),x=T(4482);function S(k={}){const{connector:F=(()=>new i.x),resetOnError:q=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=k;return ne=>{let le,ae,ie,ge=0,Ae=!1,ve=!1;const Qe=()=>{ae?.unsubscribe(),ae=void 0},Xe=()=>{Qe(),le=ie=void 0,Ae=ve=!1},He=()=>{const Te=le;Xe(),Te?.unsubscribe()};return(0,x.e)((Te,Se)=>{ge++,!ve&&!Ae&&Qe();const pt=ie=ie??F();Se.add(()=>{ge--,0===ge&&!ve&&!Ae&&(ae=P(He,Q))}),pt.subscribe(Se),!le&&ge>0&&(le=new E.Hp({next:Be=>pt.next(Be),error:Be=>{ve=!0,Qe(),ae=P(Xe,q,Be),pt.error(Be)},complete:()=>{Ae=!0,Qe(),ae=P(Xe,J),pt.complete()}}),(0,w.Xf)(Te).subscribe(le))})(ne)}}function P(k,F,...q){if(!0===F)return void k();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),k()}});return F(...q).subscribe(J)}},3900:(j,Y,T)=>{"use strict";T.d(Y,{w:()=>x});var w=T(8421),i=T(4482),E=T(5403);function x(S,P){return(0,i.e)((k,F)=>{let q=null,J=0,Q=!1;const ne=()=>Q&&!q&&F.complete();k.subscribe((0,E.x)(F,le=>{q?.unsubscribe();let ae=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(q=(0,E.x)(F,ge=>F.next(P?P(le,ge,ie,ae++):ge),()=>{q=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(j,Y,T)=>{"use strict";T.d(Y,{q:()=>x});var w=T(515),i=T(4482),E=T(5403);function x(S){return S<=0?()=>w.E:(0,i.e)((P,k)=>{let F=0;P.subscribe((0,E.x)(k,q=>{++F<=S&&(k.next(q),S<=F&&k.complete())}))})}},8505:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>S});var w=T(576),i=T(4482),E=T(5403),x=T(4671);function S(P,k,F){const q=(0,w.m)(P)||k||F?{next:P,error:k,complete:F}:P;return q?(0,i.e)((J,Q)=>{var ne;null===(ne=q.subscribe)||void 0===ne||ne.call(q);let le=!0;J.subscribe((0,E.x)(Q,ae=>{var ie;null===(ie=q.next)||void 0===ie||ie.call(q,ae),Q.next(ae)},()=>{var ae;le=!1,null===(ae=q.complete)||void 0===ae||ae.call(q),Q.complete()},ae=>{var ie;le=!1,null===(ie=q.error)||void 0===ie||ie.call(q,ae),Q.error(ae)},()=>{var ae,ie;le&&(null===(ae=q.unsubscribe)||void 0===ae||ae.call(q)),null===(ie=q.finalize)||void 0===ie||ie.call(q)}))}):x.y}},8068:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>x});var w=T(6805),i=T(4482),E=T(5403);function x(P=S){return(0,i.e)((k,F)=>{let q=!1;k.subscribe((0,E.x)(F,J=>{q=!0,F.next(J)},()=>q?F.complete():F.error(P())))})}function S(){return new w.K}},7414:(j,Y,T)=>{"use strict";T.d(Y,{V:()=>q});var w=T(4986),i=T(1165),E=T(4482),x=T(8421),S=T(3888),P=T(5403),k=T(9672);const F=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function q(Q,ne){const{first:le,each:ae,with:ie=J,scheduler:ge=ne??w.z,meta:Ae=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==ae)throw new TypeError("No timeout provided.");return(0,E.e)((ve,Qe)=>{let Xe,He,Te=null,Se=0;const pt=Be=>{He=(0,k.f)(Qe,ge,()=>{try{Xe.unsubscribe(),(0,x.Xf)(ie({meta:Ae,lastValue:Te,seen:Se})).subscribe(Qe)}catch(Ve){Qe.error(Ve)}},Be)};Xe=ve.subscribe((0,P.x)(Qe,Be=>{He?.unsubscribe(),Se++,Qe.next(Te=Be),ae>0&&pt(ae)},void 0,void 0,()=>{He?.closed||He?.unsubscribe(),Te=null})),!Se&&pt(null!=le?"number"==typeof le?le:+le-ge.now():ae)})}function J(Q){throw new F(Q)}},4408:(j,Y,T)=>{"use strict";T.d(Y,{o:()=>S});var w=T(727);class i extends w.w0{constructor(k,F){super()}schedule(k,F=0){return this}}const E={setInterval(P,k,...F){const{delegate:q}=E;return q?.setInterval?q.setInterval(P,k,...F):setInterval(P,k,...F)},clearInterval(P){const{delegate:k}=E;return(k?.clearInterval||clearInterval)(P)},delegate:void 0};var x=T(8737);class S extends i{constructor(k,F){super(k,F),this.scheduler=k,this.work=F,this.pending=!1}schedule(k,F=0){if(this.closed)return this;this.state=k;const q=this.id,J=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(J,q,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(k,F,q=0){return E.setInterval(k.flush.bind(k,this),q)}recycleAsyncId(k,F,q=0){if(null!=q&&this.delay===q&&!1===this.pending)return F;E.clearInterval(F)}execute(k,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const q=this._execute(k,F);if(q)return q;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(k,F){let J,q=!1;try{this.work(k)}catch(Q){q=!0,J=Q||new Error("Scheduled action threw falsy error")}if(q)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:k,scheduler:F}=this,{actions:q}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(q,this),null!=k&&(this.id=this.recycleAsyncId(F,k,null)),this.delay=null,super.unsubscribe()}}}},7565:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>E});var w=T(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,k){return new this.schedulerActionCtor(this,S).schedule(k,P)}}i.now=w.l.now;class E extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let k;this._active=!0;do{if(k=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,k){for(;S=P.shift();)S.unsubscribe();throw k}}}},4986:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>x,z:()=>E});var w=T(4408);const E=new(T(7565).v)(w.o),x=E},6063:(j,Y,T)=>{"use strict";T.d(Y,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w={setTimeout(i,E,...x){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...x):setTimeout(i,E,...x)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});const i=(0,T(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(j,Y,T)=>{"use strict";T.d(Y,{_6:()=>P,jO:()=>x,yG:()=>S});var w=T(576),i=T(3532);function E(k){return k[k.length-1]}function x(k){return(0,w.m)(E(k))?k.pop():void 0}function S(k){return(0,i.K)(E(k))?k.pop():void 0}function P(k,F){return"number"==typeof E(k)?k.pop():F}},4742:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:x}=Object;function S(k){if(1===k.length){const F=k[0];if(w(F))return{args:F,keys:null};if(function P(k){return k&&"object"==typeof k&&i(k)===E}(F)){const q=x(F);return{args:q.map(J=>F[J]),keys:q}}}return{args:k,keys:null}}},8737:(j,Y,T)=>{"use strict";function w(i,E){if(i){const x=i.indexOf(E);0<=x&&i.splice(x,1)}}T.d(Y,{P:()=>w})},3888:(j,Y,T)=>{"use strict";function w(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}T.d(Y,{d:()=>w})},1810:(j,Y,T)=>{"use strict";function w(i,E){return i.reduce((x,S,P)=>(x[S]=E[P],x),{})}T.d(Y,{n:()=>w})},2806:(j,Y,T)=>{"use strict";T.d(Y,{O:()=>x,x:()=>E});var w=T(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:k,error:F}=i;if(i=null,k)throw F}}else S()}function x(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(j,Y,T)=>{"use strict";function w(i,E,x,S=0,P=!1){const k=E.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(k),!P)return k}T.d(Y,{f:()=>w})},4671:(j,Y,T)=>{"use strict";function w(i){return i}T.d(Y,{y:()=>w})},1144:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>i});var w=T(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(j,Y,T)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}T.d(Y,{q:()=>w})},576:(j,Y,T)=>{"use strict";function w(i){return"function"==typeof i}T.d(Y,{m:()=>w})},3670:(j,Y,T)=>{"use strict";T.d(Y,{c:()=>E});var w=T(8822),i=T(576);function E(x){return(0,i.m)(x[w.L])}},6495:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>E});var w=T(2202),i=T(576);function E(x){return(0,i.m)(x?.[w.h])}},8239:(j,Y,T)=>{"use strict";T.d(Y,{t:()=>i});var w=T(576);function i(E){return(0,w.m)(E?.then)}},3260:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>x,Q:()=>E});var w=T(655),i=T(576);function E(S){return(0,w.FC)(this,arguments,function*(){const k=S.getReader();try{for(;;){const{value:F,done:q}=yield(0,w.qq)(k.read());if(q)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{k.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});var w=T(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(j,Y,T)=>{"use strict";T.d(Y,{A:()=>i,e:()=>E});var w=T(576);function i(x){return(0,w.m)(x?.lift)}function E(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(k){this.error(k)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(j,Y,T)=>{"use strict";T.d(Y,{Z:()=>x});var w=T(4004);const{isArray:i}=Array;function x(S){return(0,w.U)(P=>function E(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(j,Y,T)=>{"use strict";function w(){}T.d(Y,{Z:()=>w})},9635:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E,z:()=>i});var w=T(4671);function i(...x){return E(x)}function E(x){return 0===x.length?w.y:1===x.length?x[0]:function(P){return x.reduce((k,F)=>F(k),P)}}},7849:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(2416),i=T(3410);function E(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw x;S(x)})}},4532:(j,Y,T)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}T.d(Y,{z:()=>w})},6700:(j,Y,T)=>{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":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=E(x);return T(S)}function E(x){if(!T.o(w,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return w[x]}i.keys=function(){return Object.keys(w)},i.resolve=E,j.exports=i,i.id=6700},655:(j,Y,T)=>{"use strict";function F(he,me,Ce,ye){return new(Ce||(Ce=Promise))(function(Ye,mt){function Ft(en){try{Ke(ye.next(en))}catch(En){mt(En)}}function oi(en){try{Ke(ye.throw(en))}catch(En){mt(En)}}function Ke(en){en.done?Ye(en.value):function We(Ye){return Ye instanceof Ce?Ye:new Ce(function(mt){mt(Ye)})}(en.value).then(Ft,oi)}Ke((ye=ye.apply(he,me||[])).next())})}function Ae(he){return this instanceof Ae?(this.v=he,this):new Ae(he)}function ve(he,me,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var We,ye=Ce.apply(he,me||[]),Ye=[];return We={},mt("next"),mt("throw"),mt("return"),We[Symbol.asyncIterator]=function(){return this},We;function mt(Ge){ye[Ge]&&(We[Ge]=function(li){return new Promise(function(qn,Ci){Ye.push([Ge,li,qn,Ci])>1||Ft(Ge,li)})})}function Ft(Ge,li){try{!function oi(Ge){Ge.value instanceof Ae?Promise.resolve(Ge.value.v).then(Ke,en):En(Ye[0][2],Ge)}(ye[Ge](li))}catch(qn){En(Ye[0][3],qn)}}function Ke(Ge){Ft("next",Ge)}function en(Ge){Ft("throw",Ge)}function En(Ge,li){Ge(li),Ye.shift(),Ye.length&&Ft(Ye[0][0],Ye[0][1])}}function Xe(he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,me=he[Symbol.asyncIterator];return me?me.call(he):(he=function ne(he){var me="function"==typeof Symbol&&Symbol.iterator,Ce=me&&he[me],ye=0;if(Ce)return Ce.call(he);if(he&&"number"==typeof he.length)return{next:function(){return he&&ye>=he.length&&(he=void 0),{value:he&&he[ye++],done:!he}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(he),Ce={},ye("next"),ye("throw"),ye("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function ye(Ye){Ce[Ye]=he[Ye]&&function(mt){return new Promise(function(Ft,oi){!function We(Ye,mt,Ft,oi){Promise.resolve(oi).then(function(Ke){Ye({value:Ke,done:Ft})},mt)}(Ft,oi,(mt=he[Ye](mt)).done,mt.value)})}}}T.d(Y,{FC:()=>ve,KL:()=>Xe,mG:()=>F,qq:()=>Ae})},6895:(j,Y,T)=>{"use strict";T.d(Y,{Do:()=>Xe,ED:()=>vs,EM:()=>ti,HT:()=>S,JF:()=>ai,K0:()=>k,Mx:()=>ac,NF:()=>oc,Nd:()=>Zi,O5:()=>Nn,Ov:()=>Ju,PC:()=>Yr,PM:()=>At,RF:()=>Wa,S$:()=>Ae,V_:()=>J,Ye:()=>He,b0:()=>Qe,bD:()=>Nt,ez:()=>Ur,gd:()=>Xu,mk:()=>ja,n9:()=>nr,q:()=>E,sg:()=>tr,uU:()=>Bt,w_:()=>P});var w=T(4650);let i=null;function E(){return i}function S(I){i||(i=I)}class P{}const k=new w.OlP("DocumentToken");let F=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return function q(){return(0,w.LFG)(Q)}()},providedIn:"platform"}),I})();const J=new w.OlP("Location Initialized");let Q=(()=>{class I extends F{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("popstate",B,!1),()=>G.removeEventListener("popstate",B)}onHashChange(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("hashchange",B,!1),()=>G.removeEventListener("hashchange",B)}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(B){this.location.pathname=B}pushState(B,G,re){ne()?this._history.pushState(B,G,re):this.location.hash=re}replaceState(B,G,re){ne()?this._history.replaceState(B,G,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(k))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function le(){return new Q((0,w.LFG)(k))}()},providedIn:"platform"}),I})();function ne(){return!!window.history.pushState}function ae(I,U){if(0==I.length)return U;if(0==U.length)return I;let B=0;return I.endsWith("/")&&B++,U.startsWith("/")&&B++,2==B?I+U.substring(1):1==B?I+U:I+"/"+U}function ie(I){const U=I.match(/#|\?|$/),B=U&&U.index||I.length;return I.slice(0,B-("/"===I[B-1]?1:0))+I.slice(B)}function ge(I){return I&&"?"!==I[0]?"?"+I:I}let Ae=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return(0,w.f3M)(Qe)},providedIn:"root"}),I})();const ve=new w.OlP("appBaseHref");let Qe=(()=>{class I extends Ae{constructor(B,G){var re,Me,_e;super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=null!==(re=null!==(Me=G??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Me?Me:null===(_e=(0,w.f3M)(k).location)||void 0===_e?void 0:_e.origin)&&void 0!==re?re:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return ae(this._baseHref,B)}path(B=!1){const G=this._platformLocation.pathname+ge(this._platformLocation.search),re=this._platformLocation.hash;return re&&B?`${G}${re}`:G}pushState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),Xe=(()=>{class I extends Ae{constructor(B,G){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=G&&(this._baseHref=G)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let G=this._platformLocation.hash;return null==G&&(G="#"),G.length>0?G.substring(1):G}prepareExternalUrl(B){const G=ae(this._baseHref,B);return G.length>0?"#"+G:G}pushState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac}),I})(),He=(()=>{class I{constructor(B){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const G=this._locationStrategy.getBaseHref();this._baseHref=ie(pt(G)),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){var B;null===(B=this._urlChangeSubscription)||void 0===B||B.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,G=""){return this.path()==this.normalize(B+ge(G))}normalize(B){return I.stripTrailingSlash(function Se(I,U){return I&&U.startsWith(I)?U.substring(I.length):U}(this._baseHref,pt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,G="",re=null){this._locationStrategy.pushState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}replaceState(B,G="",re=null){this._locationStrategy.replaceState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){var G,re;null===(G=(re=this._locationStrategy).historyGo)||void 0===G||G.call(re,B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(G=>{this._notifyUrlChangeListeners(G.url,G.state)})),()=>{const G=this._urlChangeListeners.indexOf(B);var re;this._urlChangeListeners.splice(G,1),0===this._urlChangeListeners.length&&(null===(re=this._urlChangeSubscription)||void 0===re||re.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",G){this._urlChangeListeners.forEach(re=>re(B,G))}subscribe(B,G,re){return this._subject.subscribe({next:B,error:G,complete:re})}}return I.normalizeQueryParams=ge,I.joinWithSlash=ae,I.stripTrailingSlash=ie,I.\u0275fac=function(B){return new(B||I)(w.LFG(Ae))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function Te(){return new He((0,w.LFG)(Ae))}()},providedIn:"root"}),I})();function pt(I){return I.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),ye=(()=>((ye=ye||{})[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup",ye))();function Ge(I,U){return qe((0,w.cg1)(I)[w.wAp.DateFormat],U)}function li(I,U){return qe((0,w.cg1)(I)[w.wAp.TimeFormat],U)}function qn(I,U){return qe((0,w.cg1)(I)[w.wAp.DateTimeFormat],U)}function Ci(I,U){const B=(0,w.cg1)(I),G=B[w.wAp.NumberSymbols][U];if(typeof G>"u"){if(U===ye.CurrencyDecimal)return B[w.wAp.NumberSymbols][ye.Decimal];if(U===ye.CurrencyGroup)return B[w.wAp.NumberSymbols][ye.Group]}return G}function On(I){if(!I[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qe(I,U){for(let B=U;B>-1;B--)if(typeof I[B]<"u")return I[B];throw new Error("Locale data API: locale data undefined")}function ot(I){const[U,B]=I.split(":");return{hours:+U,minutes:+B}}const ci=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ei={},Le=/((?:[^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 se=(()=>((se=se||{})[se.Short=0]="Short",se[se.ShortGMT=1]="ShortGMT",se[se.Long=2]="Long",se[se.Extended=3]="Extended",se))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),ue=(()=>((ue=ue||{})[ue.DayPeriods=0]="DayPeriods",ue[ue.Days=1]="Days",ue[ue.Months=2]="Months",ue[ue.Eras=3]="Eras",ue))();function ke(I,U,B,G){let re=function on(I){if($i(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[re,Me=1,_e=1]=I.split("-").map(nt=>+nt);return bt(re,Me-1,_e)}const B=parseFloat(I);if(!isNaN(I-B))return new Date(B);let G;if(G=I.match(ci))return function Ue(I){const U=new Date(0);let B=0,G=0;const re=I[8]?U.setUTCFullYear:U.setFullYear,Me=I[8]?U.setUTCHours:U.setHours;I[9]&&(B=Number(I[9]+I[10]),G=Number(I[9]+I[11])),re.call(U,Number(I[1]),Number(I[2])-1,Number(I[3]));const _e=Number(I[4]||0)-B,nt=Number(I[5]||0)-G,xi=Number(I[6]||0),ii=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return Me.call(U,_e,nt,xi,ii),U}(G)}const U=new Date(I);if(!$i(U))throw new Error(`Unable to convert "${I}" into a date`);return U}(I);U=Ot(B,U)||U;let nt,_e=[];for(;U;){if(nt=Le.exec(U),!nt){_e.push(U);break}{_e=_e.concat(nt.slice(1));const di=_e.pop();if(!di)break;U=di}}let xi=re.getTimezoneOffset();G&&(xi=ws(G,xi),re=function tn(I,U,B){const G=B?-1:1,re=I.getTimezoneOffset();return function pi(I,U){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+U),I}(I,G*(ws(U,re)-re))}(re,G,!0));let ii="";return _e.forEach(di=>{const tt=function pd(I){if(ua[I])return ua[I];let U;switch(I){case"G":case"GG":case"GGG":U=Et(ue.Eras,me.Abbreviated);break;case"GGGG":U=Et(ue.Eras,me.Wide);break;case"GGGGG":U=Et(ue.Eras,me.Narrow);break;case"y":U=Lt(te.FullYear,1,0,!1,!0);break;case"yy":U=Lt(te.FullYear,2,0,!0,!0);break;case"yyy":U=Lt(te.FullYear,3,0,!1,!0);break;case"yyyy":U=Lt(te.FullYear,4,0,!1,!0);break;case"Y":U=_r(1);break;case"YY":U=_r(2,!0);break;case"YYY":U=_r(3);break;case"YYYY":U=_r(4);break;case"M":case"L":U=Lt(te.Month,1,1);break;case"MM":case"LL":U=Lt(te.Month,2,1);break;case"MMM":U=Et(ue.Months,me.Abbreviated);break;case"MMMM":U=Et(ue.Months,me.Wide);break;case"MMMMM":U=Et(ue.Months,me.Narrow);break;case"LLL":U=Et(ue.Months,me.Abbreviated,he.Standalone);break;case"LLLL":U=Et(ue.Months,me.Wide,he.Standalone);break;case"LLLLL":U=Et(ue.Months,me.Narrow,he.Standalone);break;case"w":U=xr(1);break;case"ww":U=xr(2);break;case"W":U=xr(1,!0);break;case"d":U=Lt(te.Date,1);break;case"dd":U=Lt(te.Date,2);break;case"c":case"cc":U=Lt(te.Day,1);break;case"ccc":U=Et(ue.Days,me.Abbreviated,he.Standalone);break;case"cccc":U=Et(ue.Days,me.Wide,he.Standalone);break;case"ccccc":U=Et(ue.Days,me.Narrow,he.Standalone);break;case"cccccc":U=Et(ue.Days,me.Short,he.Standalone);break;case"E":case"EE":case"EEE":U=Et(ue.Days,me.Abbreviated);break;case"EEEE":U=Et(ue.Days,me.Wide);break;case"EEEEE":U=Et(ue.Days,me.Narrow);break;case"EEEEEE":U=Et(ue.Days,me.Short);break;case"a":case"aa":case"aaa":U=Et(ue.DayPeriods,me.Abbreviated);break;case"aaaa":U=Et(ue.DayPeriods,me.Wide);break;case"aaaaa":U=Et(ue.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":U=Et(ue.DayPeriods,me.Abbreviated,he.Standalone,!0);break;case"bbbb":U=Et(ue.DayPeriods,me.Wide,he.Standalone,!0);break;case"bbbbb":U=Et(ue.DayPeriods,me.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":U=Et(ue.DayPeriods,me.Abbreviated,he.Format,!0);break;case"BBBB":U=Et(ue.DayPeriods,me.Wide,he.Format,!0);break;case"BBBBB":U=Et(ue.DayPeriods,me.Narrow,he.Format,!0);break;case"h":U=Lt(te.Hours,1,-12);break;case"hh":U=Lt(te.Hours,2,-12);break;case"H":U=Lt(te.Hours,1);break;case"HH":U=Lt(te.Hours,2);break;case"m":U=Lt(te.Minutes,1);break;case"mm":U=Lt(te.Minutes,2);break;case"s":U=Lt(te.Seconds,1);break;case"ss":U=Lt(te.Seconds,2);break;case"S":U=Lt(te.FractionalSeconds,1);break;case"SS":U=Lt(te.FractionalSeconds,2);break;case"SSS":U=Lt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":U=vt(se.Short);break;case"ZZZZZ":U=vt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":U=vt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":U=vt(se.Long);break;default:return null}return ua[I]=U,U}(di);ii+=tt?tt(re,B,xi):"''"===di?"'":di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ii}function bt(I,U,B){const G=new Date(0);return G.setFullYear(I,U,B),G.setHours(0,0,0),G}function Ot(I,U){const B=function Ye(I){return(0,w.cg1)(I)[w.wAp.LocaleId]}(I);if(ei[B]=ei[B]||{},ei[B][U])return ei[B][U];let G="";switch(U){case"shortDate":G=Ge(I,Ce.Short);break;case"mediumDate":G=Ge(I,Ce.Medium);break;case"longDate":G=Ge(I,Ce.Long);break;case"fullDate":G=Ge(I,Ce.Full);break;case"shortTime":G=li(I,Ce.Short);break;case"mediumTime":G=li(I,Ce.Medium);break;case"longTime":G=li(I,Ce.Long);break;case"fullTime":G=li(I,Ce.Full);break;case"short":const re=Ot(I,"shortTime"),Me=Ot(I,"shortDate");G=it(qn(I,Ce.Short),[re,Me]);break;case"medium":const _e=Ot(I,"mediumTime"),nt=Ot(I,"mediumDate");G=it(qn(I,Ce.Medium),[_e,nt]);break;case"long":const xi=Ot(I,"longTime"),ii=Ot(I,"longDate");G=it(qn(I,Ce.Long),[xi,ii]);break;case"full":const di=Ot(I,"fullTime"),tt=Ot(I,"fullDate");G=it(qn(I,Ce.Full),[di,tt])}return G&&(ei[B][U]=G),G}function it(I,U){return U&&(I=I.replace(/\{([^}]+)}/g,function(B,G){return null!=U&&G in U?U[G]:B})),I}function Tt(I,U,B="-",G,re){let Me="";(I<0||re&&I<=0)&&(re?I=1-I:(I=-I,Me=B));let _e=String(I);for(;_e.length0||nt>-B)&&(nt+=B),I===te.Hours)0===nt&&-12===B&&(nt=12);else if(I===te.FractionalSeconds)return function ji(I,U){return Tt(I,3).substring(0,U)}(nt,U);const xi=Ci(_e,ye.MinusSign);return Tt(nt,U,xi,G,re)}}function Et(I,U,B=he.Format,G=!1){return function(re,Me){return function Gt(I,U,B,G,re,Me){switch(B){case ue.Months:return function oi(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.MonthsFormat],G[w.wAp.MonthsStandalone]],U);return qe(Me,B)}(U,re,G)[I.getMonth()];case ue.Days:return function Ft(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DaysFormat],G[w.wAp.DaysStandalone]],U);return qe(Me,B)}(U,re,G)[I.getDay()];case ue.DayPeriods:const _e=I.getHours(),nt=I.getMinutes();if(Me){const ii=function de(I){const U=(0,w.cg1)(I);return On(U),(U[w.wAp.ExtraData][2]||[]).map(G=>"string"==typeof G?ot(G):[ot(G[0]),ot(G[1])])}(U),di=function Re(I,U,B){const G=(0,w.cg1)(I);On(G);const Me=qe([G[w.wAp.ExtraData][0],G[w.wAp.ExtraData][1]],U)||[];return qe(Me,B)||[]}(U,re,G),tt=ii.findIndex(ln=>{if(Array.isArray(ln)){const[_i,yn]=ln,Ee=_e>=_i.hours&&nt>=_i.minutes,yt=_e0?Math.floor(re/60):Math.ceil(re/60);switch(I){case se.Short:return(re>=0?"+":"")+Tt(_e,2,Me)+Tt(Math.abs(re%60),2,Me);case se.ShortGMT:return"GMT"+(re>=0?"+":"")+Tt(_e,1,Me);case se.Long:return"GMT"+(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);case se.Extended:return 0===G?"Z":(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);default:throw new Error(`Unknown zone width "${I}"`)}}}function qr(I){return bt(I.getFullYear(),I.getMonth(),I.getDate()+(4-I.getDay()))}function xr(I,U=!1){return function(B,G){let re;if(U){const Me=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,_e=B.getDate();re=1+Math.floor((_e+Me)/7)}else{const Me=qr(B),_e=function Gi(I){const U=bt(I,0,1).getDay();return bt(I,0,1+(U<=4?4:11)-U)}(Me.getFullYear()),nt=Me.getTime()-_e.getTime();re=1+Math.round(nt/6048e5)}return Tt(re,I,Ci(G,ye.MinusSign))}}function _r(I,U=!1){return function(B,G){return Tt(qr(B).getFullYear(),I,Ci(G,ye.MinusSign),U)}}const ua={};function ws(I,U){I=I.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(B)?U:B}function $i(I){return I instanceof Date&&!isNaN(I.valueOf())}function ac(I,U){U=encodeURIComponent(U);for(const B of I.split(";")){const G=B.indexOf("="),[re,Me]=-1==G?[B,""]:[B.slice(0,G),B.slice(G+1)];if(re.trim()===U)return decodeURIComponent(Me)}return null}let ja=(()=>{class I{constructor(B,G,re,Me){this._iterableDiffers=B,this._keyValueDiffers=G,this._ngEl=re,this._renderer=Me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,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 B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachChangedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachRemovedItem(G=>{G.previousValue&&this._toggleClass(G.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem(G=>{if("string"!=typeof G.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(G.item)}`);this._toggleClass(G.item,!0)}),B.forEachRemovedItem(G=>this._toggleClass(G.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!0)):Object.keys(B).forEach(G=>this._toggleClass(G,!!B[G])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!1)):Object.keys(B).forEach(G=>this._toggleClass(G,!1)))}_toggleClass(B,G){(B=B.trim())&&B.split(/\s+/g).forEach(re=>{G?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})();class ki{constructor(U,B,G,re){this.$implicit=U,this.ngForOf=B,this.index=G,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 tr=(()=>{class I{constructor(B,G,re){this._viewContainer=B,this._template=G,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const G=this._viewContainer;B.forEachOperation((re,Me,_e)=>{if(null==re.previousIndex)G.createEmbeddedView(this._template,new ki(re.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)G.remove(null===Me?void 0:Me);else if(null!==Me){const nt=G.get(Me);G.move(nt,_e),nn(nt,re)}});for(let re=0,Me=G.length;re{nn(G.get(re.currentIndex),re)})}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function nn(I,U){I.context.$implicit=U.item}let Nn=(()=>{class I{constructor(B,G){this._viewContainer=B,this._context=new ir,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=G}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){pa("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){pa("ngIfElse",B),this._elseTemplateRef=B,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(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class ir{constructor(){this.$implicit=null,this.ngIf=null}}function pa(I,U){if(U&&!U.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,w.AaK)(U)}'.`)}class Ya{constructor(U,B){this._viewContainerRef=U,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(U){U&&!this._created?this.create():!U&&this._created&&this.destroy()}}let Wa=(()=>{class I{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const G=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||G,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),G}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let G=0;G{class I{constructor(B,G,re){this.ngSwitch=re,re._addCase(),this._view=new Ya(B,G)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),I})(),vs=(()=>{class I{constructor(B,G,re){re._addDefault(new Ya(B,G))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchDefault",""]],standalone:!0}),I})(),Yr=(()=>{class I{constructor(B,G,re){this._ngEl=B,this._differs=G,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,G){const[re,Me]=B.split("."),_e=-1===re.indexOf("-")?void 0:w.JOm.DashCase;null!=G?this._renderer.setStyle(this._ngEl.nativeElement,re,Me?`${G}${Me}`:G,_e):this._renderer.removeStyle(this._ngEl.nativeElement,re,_e)}_applyChanges(B){B.forEachRemovedItem(G=>this._setStyle(G.key,null)),B.forEachAddedItem(G=>this._setStyle(G.key,G.currentValue)),B.forEachChangedItem(G=>this._setStyle(G.key,G.currentValue))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})();function Sr(I,U){return new w.vHH(2100,!1)}class rf{createSubscription(U,B){return U.subscribe({next:B,error:G=>{throw G}})}dispose(U){U.unsubscribe()}}class af{createSubscription(U,B){return U.then(B,G=>{throw G})}dispose(U){}}const sf=new af,lf=new rf;let Ju=(()=>{class I{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,G=>this._updateLatestValue(B,G))}_selectStrategy(B){if((0,w.QGY)(B))return sf;if((0,w.F4k)(B))return lf;throw Sr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,G){B===this._obj&&(this._latestValue=G,this._ref.markForCheck())}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.sBO,16))},I.\u0275pipe=w.Yjl({name:"async",type:I,pure:!1,standalone:!0}),I})(),Xu=(()=>{class I{transform(B){if(null==B)return null;if("string"!=typeof B)throw Sr();return B.toUpperCase()}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275pipe=w.Yjl({name:"uppercase",type:I,pure:!0,standalone:!0}),I})();const df=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Bt=(()=>{class I{constructor(B,G){this.locale=B,this.defaultTimezone=G}transform(B,G="mediumDate",re,Me){if(null==B||""===B||B!=B)return null;try{var _e;return ke(B,G,Me||this.locale,null!==(_e=re??this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(nt){throw Sr()}}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.soG,16),w.Y36(df,24))},I.\u0275pipe=w.Yjl({name:"date",type:I,pure:!0,standalone:!0}),I})(),Zi=(()=>{class I{constructor(B){this.differs=B,this.keyValues=[],this.compareFn=Ga}transform(B,G=Ga){if(!B||!(B instanceof Map)&&"object"!=typeof B)return null;this.differ||(this.differ=this.differs.find(B).create());const re=this.differ.diff(B),Me=G!==this.compareFn;return re&&(this.keyValues=[],re.forEachItem(_e=>{this.keyValues.push(function De(I,U){return{key:I,value:U}}(_e.key,_e.currentValue))})),(re||Me)&&(this.keyValues.sort(G),this.compareFn=G),this.keyValues}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.aQg,16))},I.\u0275pipe=w.Yjl({name:"keyvalue",type:I,pure:!1,standalone:!0}),I})();function Ga(I,U){const B=I.key,G=U.key;if(B===G)return 0;if(void 0===B)return 1;if(void 0===G)return-1;if(null===B)return 1;if(null===G)return-1;if("string"==typeof B&&"string"==typeof G)return B{class I{}return I.\u0275fac=function(B){return new(B||I)},I.\u0275mod=w.oAB({type:I}),I.\u0275inj=w.cJS({}),I})();const Nt="browser";function oc(I){return I===Nt}function At(I){return"server"===I}let ti=(()=>{class I{}return I.\u0275prov=(0,w.Yz7)({token:I,providedIn:"root",factory:()=>new Ti((0,w.LFG)(k),window)}),I})();class Ti{constructor(U,B){this.document=U,this.window=B,this.offset=()=>[0,0]}setOffset(U){this.offset=Array.isArray(U)?()=>U:U}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(U){this.supportsScrolling()&&this.window.scrollTo(U[0],U[1])}scrollToAnchor(U){if(!this.supportsScrolling())return;const B=function yr(I,U){const B=I.getElementById(U)||I.getElementsByName(U)[0];if(B)return B;if("function"==typeof I.createTreeWalker&&I.body&&(I.body.createShadowRoot||I.body.attachShadow)){const G=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let re=G.currentNode;for(;re;){const Me=re.shadowRoot;if(Me){const _e=Me.getElementById(U)||Me.querySelector(`[name="${U}"]`);if(_e)return _e}re=G.nextNode()}}return null}(this.document,U);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(U){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=U)}}scrollToElement(U){const B=U.getBoundingClientRect(),G=B.left+this.window.pageXOffset,re=B.top+this.window.pageYOffset,Me=this.offset();this.window.scrollTo(G-Me[0],re-Me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const U=Ar(this.window.history)||Ar(Object.getPrototypeOf(this.window.history));return!(!U||!U.writable&&!U.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ar(I){return Object.getOwnPropertyDescriptor(I,"scrollRestoration")}class ai{}},529:(j,Y,T)=>{"use strict";T.d(Y,{JF:()=>sn,LE:()=>ve,TP:()=>Ft,WM:()=>J,Zn:()=>Ce,eN:()=>Ye,qT:()=>Xe});var w=T(6895),i=T(4650),E=T(9646),x=T(9751),S=T(4351),P=T(9300),k=T(4004);class F{}class q{}class J{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(te=>{const ue=te.indexOf(":");if(ue>0){const ke=te.slice(0,ue),bt=ke.toLowerCase(),Ot=te.slice(ue+1).trim();this.maybeSetNormalizedName(ke,bt),this.headers.has(bt)?this.headers.get(bt).push(Ot):this.headers.set(bt,[Ot])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(te=>{let ue=se[te];const ke=te.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(ke,ue),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const te=this.headers.get(se.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,te){return this.clone({name:se,value:te,op:"a"})}set(se,te){return this.clone({name:se,value:te,op:"s"})}delete(se,te){return this.clone({name:se,value:te,op:"d"})}maybeSetNormalizedName(se,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,se)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(te=>{this.headers.set(te,se.headers.get(te)),this.normalizedNames.set(te,se.normalizedNames.get(te))})}clone(se){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([se]),te}applyUpdate(se){const te=se.name.toLowerCase();switch(se.op){case"a":case"s":let ue=se.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(se.name,te);const ke=("a"===se.op?this.headers.get(te):void 0)||[];ke.push(...ue),this.headers.set(te,ke);break;case"d":const bt=se.value;if(bt){let Ot=this.headers.get(te);if(!Ot)return;Ot=Ot.filter(it=>-1===bt.indexOf(it)),0===Ot.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ot)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>se(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(se){return ge(se)}encodeValue(se){return ge(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const ae=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ge(Le){return encodeURIComponent(Le).replace(ae,(se,te)=>{var ue;return null!==(ue=ie[te])&&void 0!==ue?ue:se})}function Ae(Le){return`${Le}`}class ve{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new ne,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Le,se){const te=new Map;return Le.length>0&&Le.replace(/^\?/,"").split("&").forEach(ke=>{const bt=ke.indexOf("="),[Ot,it]=-1==bt?[se.decodeKey(ke),""]:[se.decodeKey(ke.slice(0,bt)),se.decodeValue(ke.slice(bt+1))],Tt=te.get(Ot)||[];Tt.push(it),te.set(Ot,Tt)}),te}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(te=>{const ue=se.fromObject[te],ke=Array.isArray(ue)?ue.map(Ae):[Ae(ue)];this.map.set(te,ke)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const te=this.map.get(se);return te?te[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,te){return this.clone({param:se,value:te,op:"a"})}appendAll(se){const te=[];return Object.keys(se).forEach(ue=>{const ke=se[ue];Array.isArray(ke)?ke.forEach(bt=>{te.push({param:ue,value:bt,op:"a"})}):te.push({param:ue,value:ke,op:"a"})}),this.clone(te)}set(se,te){return this.clone({param:se,value:te,op:"s"})}delete(se,te){return this.clone({param:se,value:te,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const te=this.encoder.encodeKey(se);return this.map.get(se).map(ue=>te+"="+this.encoder.encodeValue(ue)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const te=new ve({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(se),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const te=("a"===se.op?this.map.get(se.param):void 0)||[];te.push(Ae(se.value)),this.map.set(se.param,te);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let ue=this.map.get(se.param)||[];const ke=ue.indexOf(Ae(se.value));-1!==ke&&ue.splice(ke,1),ue.length>0?this.map.set(se.param,ue):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Xe{constructor(){this.map=new Map}set(se,te){return this.map.set(se,te),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Te(Le){return typeof ArrayBuffer<"u"&&Le instanceof ArrayBuffer}function Se(Le){return typeof Blob<"u"&&Le instanceof Blob}function pt(Le){return typeof FormData<"u"&&Le instanceof FormData}class Ve{constructor(se,te,ue,ke){let bt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function He(Le){switch(Le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==ue?ue:null,bt=ke):bt=ue,bt&&(this.reportProgress=!!bt.reportProgress,this.withCredentials=!!bt.withCredentials,bt.responseType&&(this.responseType=bt.responseType),bt.headers&&(this.headers=bt.headers),bt.context&&(this.context=bt.context),bt.params&&(this.params=bt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Xe),this.params){const Ot=this.params.toString();if(0===Ot.length)this.urlWithParams=te;else{const it=te.indexOf("?");this.urlWithParams=te+(-1===it?"?":itEt.set(Gt,se.setHeaders[Gt]),ji)),se.setParams&&(Lt=Object.keys(se.setParams).reduce((Et,Gt)=>Et.set(Gt,se.setParams[Gt]),Lt)),new Ve(ue,ke,Ot,{params:Lt,headers:ji,context:gr,reportProgress:Tt,responseType:bt,withCredentials:it})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class he{constructor(se,te=200,ue="OK"){this.headers=se.headers||new J,this.status=void 0!==se.status?se.status:te,this.statusText=se.statusText||ue,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class me extends he{constructor(se={}){super(se),this.type=Ne.ResponseHeader}clone(se={}){return new me({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Ce extends he{constructor(se={}){super(se),this.type=Ne.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new Ce({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ye extends he{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function We(Le,se){return{body:se,headers:Le.headers,context:Le.context,observe:Le.observe,params:Le.params,reportProgress:Le.reportProgress,responseType:Le.responseType,withCredentials:Le.withCredentials}}let Ye=(()=>{class Le{constructor(te){this.handler=te}request(te,ue,ke={}){let bt;if(te instanceof Ve)bt=te;else{let Tt,ji;Tt=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(ji=ke.params instanceof ve?ke.params:new ve({fromObject:ke.params})),bt=new Ve(te,ue,void 0!==ke.body?ke.body:null,{headers:Tt,context:ke.context,params:ji,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const Ot=(0,E.of)(bt).pipe((0,S.b)(Tt=>this.handler.handle(Tt)));if(te instanceof Ve||"events"===ke.observe)return Ot;const it=Ot.pipe((0,P.h)(Tt=>Tt instanceof Ce));switch(ke.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return it.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tt.body}));case"blob":return it.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof Blob))throw new Error("Response is not a Blob.");return Tt.body}));case"text":return it.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&"string"!=typeof Tt.body)throw new Error("Response is not a string.");return Tt.body}));default:return it.pipe((0,k.U)(Tt=>Tt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,ue={}){return this.request("DELETE",te,ue)}get(te,ue={}){return this.request("GET",te,ue)}head(te,ue={}){return this.request("HEAD",te,ue)}jsonp(te,ue){return this.request("JSONP",te,{params:(new ve).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ue={}){return this.request("OPTIONS",te,ue)}patch(te,ue,ke={}){return this.request("PATCH",te,We(ke,ue))}post(te,ue,ke={}){return this.request("POST",te,We(ke,ue))}put(te,ue,ke={}){return this.request("PUT",te,We(ke,ue))}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(F))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class mt{constructor(se,te){this.next=se,this.interceptor=te}handle(se){return this.interceptor.intercept(se,this.next)}}const Ft=new i.OlP("HTTP_INTERCEPTORS");let oi=(()=>{class Le{intercept(te,ue){return ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const bn=/^\)\]\}',?\n/;let ca=(()=>{class Le{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ue=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach((Gt,vt)=>ke.setRequestHeader(Gt,vt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const Gt=te.detectContentTypeHeader();null!==Gt&&ke.setRequestHeader("Content-Type",Gt)}if(te.responseType){const Gt=te.responseType.toLowerCase();ke.responseType="json"!==Gt?Gt:"text"}const bt=te.serializeBody();let Ot=null;const it=()=>{if(null!==Ot)return Ot;const Gt=ke.statusText||"OK",vt=new J(ke.getAllResponseHeaders()),er=function co(Le){return"responseURL"in Le&&Le.responseURL?Le.responseURL:/^X-Request-URL:/m.test(Le.getAllResponseHeaders())?Le.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return Ot=new me({headers:vt,status:ke.status,statusText:Gt,url:er}),Ot},Tt=()=>{let{headers:Gt,status:vt,statusText:er,url:da}=it(),Gi=null;204!==vt&&(Gi=typeof ke.response>"u"?ke.responseText:ke.response),0===vt&&(vt=Gi?200:0);let qr=vt>=200&&vt<300;if("json"===te.responseType&&"string"==typeof Gi){const xr=Gi;Gi=Gi.replace(bn,"");try{Gi=""!==Gi?JSON.parse(Gi):null}catch(_r){Gi=xr,qr&&(qr=!1,Gi={error:_r,text:Gi})}}qr?(ue.next(new Ce({body:Gi,headers:Gt,status:vt,statusText:er,url:da||void 0})),ue.complete()):ue.error(new ye({error:Gi,headers:Gt,status:vt,statusText:er,url:da||void 0}))},ji=Gt=>{const{url:vt}=it(),er=new ye({error:Gt,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:vt||void 0});ue.error(er)};let Lt=!1;const gr=Gt=>{Lt||(ue.next(it()),Lt=!0);let vt={type:Ne.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),"text"===te.responseType&&!!ke.responseText&&(vt.partialText=ke.responseText),ue.next(vt)},Et=Gt=>{let vt={type:Ne.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),ue.next(vt)};return ke.addEventListener("load",Tt),ke.addEventListener("error",ji),ke.addEventListener("timeout",ji),ke.addEventListener("abort",ji),te.reportProgress&&(ke.addEventListener("progress",gr),null!==bt&&ke.upload&&ke.upload.addEventListener("progress",Et)),ke.send(bt),ue.next({type:Ne.Sent}),()=>{ke.removeEventListener("error",ji),ke.removeEventListener("abort",ji),ke.removeEventListener("load",Tt),ke.removeEventListener("timeout",ji),te.reportProgress&&(ke.removeEventListener("progress",gr),null!==bt&&ke.upload&&ke.upload.removeEventListener("progress",Et)),ke.readyState!==ke.DONE&&ke.abort()}})}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.JF))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const mr=new i.OlP("XSRF_COOKIE_NAME"),On=new i.OlP("XSRF_HEADER_NAME");class de{}let Re=(()=>{class Le{constructor(te,ue,ke){this.doc=te,this.platform=ue,this.cookieName=ke,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,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(mr))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),be=(()=>{class Le{constructor(te,ue){this.tokenService=te,this.headerName=ue}intercept(te,ue){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return ue.handle(te);const bt=this.tokenService.getToken();return null!==bt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,bt)})),ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(de),i.LFG(On))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),qe=(()=>{class Le{constructor(te,ue){this.backend=te,this.injector=ue,this.chain=null}handle(te){if(null===this.chain){const ue=this.injector.get(Ft,[]);this.chain=ue.reduceRight((ke,bt)=>new mt(ke,bt),this.backend)}return this.chain.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(q),i.LFG(i.zs3))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Jt=(()=>{class Le{static disable(){return{ngModule:Le,providers:[{provide:be,useClass:oi}]}}static withOptions(te={}){return{ngModule:Le,providers:[te.cookieName?{provide:mr,useValue:te.cookieName}:[],te.headerName?{provide:On,useValue:te.headerName}:[]]}}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[be,{provide:Ft,useExisting:be,multi:!0},{provide:de,useClass:Re},{provide:mr,useValue:"XSRF-TOKEN"},{provide:On,useValue:"X-XSRF-TOKEN"}]}),Le})(),sn=(()=>{class Le{}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[Ye,{provide:F,useClass:qe},ca,{provide:q,useExisting:ca}],imports:[Jt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Le})()},4650:(j,Y,T)=>{"use strict";T.d(Y,{$8M:()=>Sd,$Z:()=>Qf,AFp:()=>Nu,ALo:()=>gb,AaK:()=>F,AsE:()=>dp,BQk:()=>pu,CHM:()=>Za,CRH:()=>Eb,CZH:()=>Bu,CqO:()=>K1,D6c:()=>GS,DdM:()=>ub,Dn7:()=>Ab,EJc:()=>Vu,EiD:()=>Og,EpF:()=>P0,F$t:()=>r_,F4k:()=>X1,FYo:()=>jg,FiY:()=>Cl,G48:()=>PS,Gf:()=>Sb,GfV:()=>zy,GkF:()=>Ol,Gpc:()=>Q,Gre:()=>mu,Hsn:()=>a_,Ikx:()=>id,JOm:()=>Ns,JVY:()=>My,Jf7:()=>Xy,KtG:()=>Gr,L6k:()=>wy,LAX:()=>Sg,LFG:()=>Wi,LSH:()=>Ch,Lbi:()=>Fm,Lck:()=>Ww,MAs:()=>Ie,MGl:()=>cp,MMx:()=>_m,NdJ:()=>R0,O4$:()=>ll,OlP:()=>Si,Oqu:()=>q0,PXZ:()=>Xi,Q2q:()=>lp,Q6J:()=>kt,QGY:()=>fu,QP$:()=>Ul,QbO:()=>zm,Qsj:()=>Fy,R0b:()=>jr,RDi:()=>O,Rgc:()=>Du,SBq:()=>Lh,Sil:()=>SS,Suo:()=>mC,TTD:()=>Ga,TgZ:()=>H0,Tol:()=>vn,Udp:()=>Kc,VKq:()=>hb,WFA:()=>k0,WLB:()=>pb,XFs:()=>be,Xpm:()=>er,Xts:()=>Vf,Y36:()=>Vc,YKP:()=>ab,YNc:()=>hu,Yjl:()=>ws,Yz7:()=>li,ZZ4:()=>aA,_Bn:()=>rb,_UZ:()=>Q1,_Vd:()=>va,_c5:()=>WS,_uU:()=>$s,aQg:()=>sA,c2e:()=>bi,cJS:()=>Ci,cg1:()=>P_,d8E:()=>tm,dDg:()=>Qb,dqk:()=>ue,eBb:()=>Of,eFA:()=>FC,ekj:()=>h_,eoX:()=>BC,f3M:()=>mh,g9A:()=>Vm,h0i:()=>ql,hGG:()=>US,hYB:()=>I0,hij:()=>Qi,iGM:()=>xb,ifc:()=>te,ip1:()=>kp,kL8:()=>ww,kcU:()=>th,lG2:()=>pd,lcZ:()=>wm,lqb:()=>Bs,lri:()=>fn,mCW:()=>Fd,n5z:()=>vd,n_E:()=>Wo,oAB:()=>xr,oJD:()=>Ig,oxw:()=>n_,pB0:()=>If,q3G:()=>dn,qLn:()=>Ph,qOj:()=>w0,qZA:()=>kl,qzn:()=>kc,rWj:()=>Jb,s9C:()=>O0,sBO:()=>JC,sIi:()=>ap,s_b:()=>xp,soG:()=>rt,tb:()=>Ip,tp0:()=>Co,uIk:()=>op,vHH:()=>ie,vpe:()=>ds,wAp:()=>Mt,xDo:()=>up,xi3:()=>bb,xp6:()=>Zf,ynx:()=>L0,z2F:()=>Wm,z3N:()=>ns,zSh:()=>Yd,zs3:()=>as});var w=T(7579),i=T(727),E=T(9751),x=T(6451),S=T(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function k(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).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 q(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function ge(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function Ae(p){return"string"==typeof p?p:null==p?"":String(p)}function Te(p,m){throw new ie(-201,!1)}function oi(p,m){null==p&&function Ke(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function li(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Ci(p){return{providers:p.providers||[],imports:p.imports||[]}}function Dn(p){return hi(p,mr)||hi(p,de)}function hi(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(On)||p.hasOwnProperty(Re))?p[On]:null}const mr=P({\u0275prov:P}),On=P({\u0275inj:P}),de=P({ngInjectableDef:P}),Re=P({ngInjectorDef:P});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let qe;function lt(p){const m=qe;return qe=p,m}function Jt(p,m,g){const _=Dn(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&be.Optional?null:void 0!==m?m:void Te(F(p))}function ci(p){return{toString:p}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ot={},it=[],Tt=P({\u0275cmp:P}),ji=P({\u0275dir:P}),Lt=P({\u0275pipe:P}),gr=P({\u0275mod:P}),Et=P({\u0275fac:P}),Gt=P({__NG_ELEMENT_ID__:P});let vt=0;function er(p){return ci(()=>{const g=!0===p.standalone,_={},y={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||it,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+vt++,styles:p.styles||it,_:null,setInput:null,schemas:p.schemas||null,tView:null},C=p.dependencies,D=p.features;return y.inputs=ua(p.inputs,_),y.outputs=ua(p.outputs),D&&D.forEach(L=>L(y)),y.directiveDefs=C?()=>("function"==typeof C?C():C).map(Gi).filter(qr):null,y.pipeDefs=C?()=>("function"==typeof C?C():C).map(on).filter(qr):null,y})}function Gi(p){return pi(p)||tn(p)}function qr(p){return null!==p}function xr(p){return ci(()=>({type:p.type,bootstrap:p.bootstrap||it,declarations:p.declarations||it,imports:p.imports||it,exports:p.exports||it,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ua(p,m){if(null==p)return Ot;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],C=y;Array.isArray(y)&&(C=y[1],y=y[0]),g[y]=_,m&&(m[y]=C)}return g}const pd=er;function ws(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function pi(p){return p[Tt]||null}function tn(p){return p[ji]||null}function on(p){return p[Lt]||null}function Ue(p,m){const g=p[gr]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function Nn(p){return Array.isArray(p)&&"object"==typeof p[1]}function ir(p){return Array.isArray(p)&&!0===p[1]}function pa(p){return 0!=(8&p.flags)}function Ya(p){return 2==(2&p.flags)}function Wa(p){return 1==(1&p.flags)}function nr(p){return null!==p.template}function vs(p){return 0!=(256&p[2])}function De(p,m){return p.hasOwnProperty(Et)?p[Et]:null}class Zi{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Ga(){return fa}function fa(p){return p.type.prototype.ngOnChanges&&(p.setInput=Ln),$a}function $a(){const p=rr(this),m=p?.current;if(m){const g=p.previous;if(g===Ot)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Ln(p,m,g,_){const y=rr(p)||function nl(p,m){return p[Wr]=m}(p,{previous:Ot,current:null}),C=y.current||(y.current={}),D=y.previous,L=this.declaredInputs[g],R=D[L];C[L]=new Zi(R&&R.currentValue,m,D===Ot),p[_]=m}Ga.ngInherit=!0;const Wr="__ngSimpleChanges__";function rr(p){return p[Wr]||null}function It(p){for(;Array.isArray(p);)p=p[0];return p}function ti(p,m){return It(m[p])}function Ti(p,m){return It(m[p.index])}function yr(p,m){return p.data[m]}function gi(p,m){return p[m]}function ai(p,m){const g=m[p];return Nn(g)?g:g[0]}function I(p){return 4==(4&p[2])}function U(p){return 64==(64&p[2])}function G(p,m){return null==m?null:p[m]}function re(p){p[18]=0}function Me(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 _e={lFrame:Ja(null),bindingsEnabled:!0};function ln(){return _e.bindingsEnabled}function Ee(){return _e.lFrame.lView}function yt(){return _e.lFrame.tView}function Za(p){return _e.lFrame.contextLView=p,p[8]}function Gr(p){return _e.lFrame.contextLView=null,p}function Bi(){let p=mo();for(;null!==p&&64===p.type;)p=p.parent;return p}function mo(){return _e.lFrame.currentTNode}function Ni(p,m){const g=_e.lFrame;g.currentTNode=p,g.isParent=m}function rl(){return _e.lFrame.isParent}function al(){_e.lFrame.isParent=!1}function Vn(){const p=_e.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function ma(){return _e.lFrame.bindingIndex}function xs(){return _e.lFrame.bindingIndex++}function ar(p){const m=_e.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function sl(p,m){const g=_e.lFrame;g.bindingIndex=g.bindingRootIndex=p,ga(m)}function ga(p){_e.lFrame.currentDirectiveIndex=p}function gd(p){const m=_e.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function _d(){return _e.lFrame.currentQueryIndex}function _a(p){_e.lFrame.currentQueryIndex=p}function hf(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ol(p,m,g){if(g&be.SkipSelf){let y=m,C=p;for(;!(y=y.parent,null!==y||g&be.Host||(y=hf(C),null===y||(C=C[15],10&y.type))););if(null===y)return!1;m=y,p=C}const _=_e.lFrame=go();return _.currentTNode=m,_.lView=p,!0}function Ss(p){const m=go(),g=p[1];_e.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function go(){const p=_e.lFrame,m=null===p?null:p.child;return null===m?Ja(p):m}function Ja(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 uc(){const p=_e.lFrame;return _e.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const hc=uc;function Es(){const p=uc();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 Pn(){return _e.lFrame.selectedIndex}function $r(p){_e.lFrame.selectedIndex=p}function qi(){const p=_e.lFrame;return yr(p.tView,p.selectedIndex)}function ll(){_e.lFrame.currentNamespace="svg"}function th(){!function ff(){_e.lFrame.currentNamespace=null}()}function _o(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const C=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:L,ngAfterViewInit:R,ngAfterViewChecked:V,ngOnDestroy:W}=C;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),L&&((p.contentHooks||(p.contentHooks=[])).push(g,L),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,L)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),V&&((p.viewHooks||(p.viewHooks=[])).push(g,V),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,V)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Ds(p,m,g){mc(p,m,3,g)}function fc(p,m,g,_){(3&p[2])===g&&mc(p,m,g,_)}function Zr(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function mc(p,m,g,_){const C=_??-1,D=m.length-1;let L=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(L>11>16&&(3&p[2])===m){p[2]+=2048;try{C.call(L)}finally{}}}else try{C.call(L)}finally{}}class Er{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function gc(p,m,g){let _=0;for(;_m){D=C-1;break}}}for(;C>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Ac=!0;function ul(p){const m=Ac;return Ac=p,m}let Mc=0;const Dr={};function hl(p,m){const g=Md(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,yd(_.data,p),yd(m,null),yd(_.blueprint,null));const y=wc(p,m),C=p.injectorIndex;if(bo(y)){const D=Ao(y),L=yo(y,m),R=L[1].data;for(let V=0;V<8;V++)m[C+V]=L[D+V]|R[D+V]}return m[C+8]=y,C}function yd(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Md(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function wc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=xd(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function Cc(p,m,g){!function _f(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Gt)&&(_=g[Gt]),null==_&&(_=g[Gt]=Mc++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lh:m}(g);if("function"==typeof C){if(!ol(m,p,_))return _&be.Host?wd(y,0,_):Cd(m,g,_,y);try{const D=C(_);if(null!=D||_&be.Optional)return D;Te()}finally{hc()}}else if("number"==typeof C){let D=null,L=Md(p,m),R=-1,V=_&be.Host?m[16][6]:null;for((-1===L||_&be.SkipSelf)&&(R=-1===L?wc(p,m):m[L+8],-1!==R&&Qr(_,!1)?(D=m[1],L=Ao(R),m=yo(R,m)):L=-1);-1!==L;){const W=m[1];if(gl(C,L,W.data)){const ee=fl(L,m,g,D,_,V);if(ee!==Dr)return ee}R=m[L+8],-1!==R&&Qr(_,m[1].data[L+8]===V)&&gl(C,L,m)?(D=W,L=Ao(R),m=yo(R,m)):L=-1}}return y}function fl(p,m,g,_,y,C){const D=m[1],L=D.data[p+8],W=ml(L,D,g,null==_?Ya(L)&&Ac:_!=D&&0!=(3&L.type),y&be.Host&&C===L);return null!==W?Hr(m,D,W,L):Dr}function ml(p,m,g,_,y){const C=p.providerIndexes,D=m.data,L=1048575&C,R=p.directiveStart,W=C>>20,oe=y?L+W:p.directiveEnd;for(let fe=_?L:L+W;fe=R&&xe.type===g)return fe}if(y){const fe=D[R];if(fe&&nr(fe)&&fe.type===g)return R}return null}function Hr(p,m,g,_){let y=p[g];const C=m.data;if(function ih(p){return p instanceof Er}(y)){const D=y;D.resolving&&function Qe(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function ve(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():Ae(p)}(C[g]));const L=ul(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?lt(D.injectImpl):null;ol(p,_,be.Default);try{y=p[g]=D.factory(void 0,C,p,_),m.firstCreatePass&&g>=_.directiveStart&&function gf(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:C}=m.type.prototype;if(_){const D=fa(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),C&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,C),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,C))}(g,C[g],m)}finally{null!==R&<(R),ul(L),D.resolving=!1,hc()}}return y}function gl(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Et]||Td(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const C=y[Et]||Td(y);if(C&&C!==g)return C;y=Object.getPrototypeOf(y)}return C=>new C})}function Td(p){return le(p)?()=>{const m=Td(ne(p));return m&&m()}:De(p)}function xd(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function Sd(p){return function oh(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 C=g[y];if(sh(C))break;if(0===C)y+=2;else if("number"==typeof C)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(C===m)return g[y+1];y+=2}}}return null}(Bi(),p)}const Ls="__parameters__";function Ka(p,m,g){return ci(()=>{const _=function _l(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...C){if(this instanceof y)return _.apply(this,C),this;const D=new y(...C);return L.annotation=D,L;function L(R,V,W){const ee=R.hasOwnProperty(Ls)?R[Ls]:Object.defineProperty(R,Ls,{value:[]})[Ls];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class Si{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=li({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?ts(g,m):m(g))}function dh(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function wo(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Al(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Rd(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 kd(p,m){const g=Ps(p,m);if(g>=0)return p[1|g]}function Ps(p,m){return function uh(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const C=_+(y-_>>1),D=p[C<m?y=C:_=C+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $}())||void 0===m?void 0:m.createHTML(p))||p}function Ir(p){var m;return(null===(m=function Or(){if(void 0===cn&&(cn=null,ue.trustedTypes))try{cn=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return cn}())||void 0===m?void 0:m.createHTML(p))||p}class xl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class by extends xl{getTypeName(){return"HTML"}}class Ay extends xl{getTypeName(){return"Style"}}class Tg extends xl{getTypeName(){return"Script"}}class kf extends xl{getTypeName(){return"URL"}}class xg extends xl{getTypeName(){return"ResourceURL"}}function ns(p){return p instanceof xl?p.changingThisBreaksApplicationSecurity:p}function kc(p,m){const g=function yy(p){return p instanceof xl&&p.getTypeName()||null}(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 My(p){return new by(p)}function wy(p){return new Ay(p)}function Of(p){return new Tg(p)}function Sg(p){return new kf(p)}function If(p){return new xg(p)}class Cy{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class vy{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=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Fd(m.trim())).join(", ")),this.buf.push(" ",D,'="',kg(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Mh.hasOwnProperty(g)&&!Dg.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(kg(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 Pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rg=/([^\#-~ |!])/g;function kg(p){return p.replace(/&/g,"&").replace(Pg,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Rg,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function Og(p,m){let g=null;try{wh=wh||function bh(p){const m=new vy(p);return function Ah(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new Cy(m):m}(p);let _=m?String(m):"";g=wh.getInertBodyElement(_);let y=5,C=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=C,C=g.innerHTML,g=wh.getInertBodyElement(_)}while(_!==C);return we((new IT).sanitizeChildren(Oc(g)||g))}finally{if(g){const _=Oc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Oc(p){return"content"in p&&function Dy(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var dn=(()=>((dn=dn||{})[dn.NONE=0]="NONE",dn[dn.HTML=1]="HTML",dn[dn.STYLE=2]="STYLE",dn[dn.SCRIPT=3]="SCRIPT",dn[dn.URL=4]="URL",dn[dn.RESOURCE_URL=5]="RESOURCE_URL",dn))();function Ig(p){const m=zd();return m?Ir(m.sanitize(dn.HTML,p)||""):kc(p,"HTML")?Ir(ns(p)):Og(function z(){return void 0!==H?H:typeof document<"u"?document:void 0}(),Ae(p))}function Ch(p){const m=zd();return m?m.sanitize(dn.URL,p)||"":kc(p,"URL")?ns(p):Fd(Ae(p))}function zd(){const p=Ee();return p&&p[12]}const Vf=new Si("ENVIRONMENT_INITIALIZER"),ky=new Si("INJECTOR",-1),vh=new Si("INJECTOR_DEF_TYPES");class Vi{get(m,g=Ml){if(g===Ml){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function NT(...p){return{\u0275providers:Sl(0,p)}}function Sl(p,...m){const g=[],_=new Set;let y;return ts(m,C=>{const D=C;Th(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&Ff(y,g),g}function Ff(p,m){for(let g=0;g{m.push(C)})}}function Th(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,C=ca(p);const D=!C&&pi(p);if(C||D){if(D&&!D.standalone)return!1;y=p}else{const R=p.ngModule;if(C=ca(R),!C)return!1;y=R}const L=_.has(y);if(D){if(L)return!1;if(_.add(y),D.dependencies){const R="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const V of R)Th(V,m,g,_)}}else{if(!C)return!1;{if(null!=C.imports&&!L){let V;_.add(y);try{ts(C.imports,W=>{Th(W,m,g,_)&&(V||(V=[]),V.push(W))})}finally{}void 0!==V&&Ff(V,m)}if(!L){const V=De(y)||(()=>new y);m.push({provide:y,useFactory:V,deps:it},{provide:vh,useValue:y,multi:!0},{provide:Vf,useValue:()=>Wi(y),multi:!0})}const R=C.providers;null==R||L||ts(R,W=>{m.push(W)})}}return y!==p&&void 0!==p.providers}const Oy=P({provide:String,useValue:P});function Kr(p){return null!==p&&"object"==typeof p&&Oy in p}function Ho(p){return"function"==typeof p}const Yd=new Si("Set Injector scope."),Sh={},Eh={};let Wd;function lr(){return void 0===Wd&&(Wd=new Vi),Wd}class Bs{}class Iy extends Bs{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,rs(m,D=>this.processProvider(D)),this.records.set(ky,Ic(void 0,this)),y.has("environment")&&this.records.set(Bs,Ic(void 0,this));const C=this.records.get(Yd);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get(vh.multi,it,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=Rr(this),_=lt(void 0);try{return m()}finally{Rr(g),lt(_)}}get(m,g=Ml,_=be.Default){this.assertNotDestroyed();const y=Rr(this),C=lt(void 0);try{if(!(_&be.SkipSelf)){let L=this.records.get(m);if(void 0===L){const R=function FT(p){return"function"==typeof p||"object"==typeof p&&p instanceof Si}(m)&&Dn(m);L=R&&this.injectableDefInScope(R)?Ic(Ud(m),Sh):null,this.records.set(m,L)}if(null!=L)return this.hydrate(m,L)}return(_&be.Self?lr():this.parent).get(m,g=_&be.Optional&&g===Ml?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[wr]=D[wr]||[]).unshift(F(m)),y)throw D;return function Ef(p,m,g,_){const y=p[wr];throw m[Ec]&&y.unshift(m[Ec]),p.message=function Df(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let C=[];for(let D in m)if(m.hasOwnProperty(D)){let L=m[D];C.push(D+":"+("string"==typeof L?JSON.stringify(L):F(L)))}y=`{${C.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Tf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[wr]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{lt(C),Rr(y)}}resolveInjectorInitializers(){const m=Rr(this),g=lt(void 0);try{const _=this.get(Vf.multi,it,be.Self);for(const y of _)y()}finally{Rr(m),lt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=Ho(m=ne(m))?m:ne(m&&m.provide);const _=function VT(p){return Kr(p)?Ic(void 0,p.useValue):Ic(Ca(p),Sh)}(m);if(Ho(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Ic(void 0,Sh,!0),y.factory=()=>kr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===Sh&&(g.value=Eh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Ny(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Ud(p){const m=Dn(p),g=null!==m?m.factory:De(p);if(null!==g)return g;if(p instanceof Si)throw new ie(204,!1);if(p instanceof Function)return function zf(p){const m=p.length;if(m>0)throw Al(m,"?"),new ie(204,!1);const g=function bn(p){const m=p&&(p[mr]||p[de]);if(m){const g=function co(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 ie(204,!1)}function Ca(p,m,g){let _;if(Ho(p)){const y=ne(p);return De(y)||Ud(y)}if(Kr(p))_=()=>ne(p.useValue);else if(function Do(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...kr(p.deps||[]));else if(function jd(p){return!(!p||!p.useExisting)}(p))_=()=>Wi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function By(p){return!!p.deps}(p))return De(y)||Ud(y);_=()=>new y(...kr(p.deps))}return _}function Ic(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function zT(p){return!!p.\u0275providers}function rs(p,m){for(const g of p)Array.isArray(g)?rs(g,m):zT(g)?rs(g.\u0275providers,m):m(g)}class Vy{}class Dh{resolveComponentFactory(m){throw function jT(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let va=(()=>{class p{}return p.NULL=new Dh,p})();function Hh(){return ea(Bi(),Ee())}function ea(p,m){return new Lh(Ti(p,m))}let Lh=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Hh,p})();function YT(p){return p instanceof Lh?p.nativeElement:p}class jg{}let Fy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function WT(){const p=Ee(),g=ai(Bi().index,p);return(Nn(g)?g:p)[11]}(),p})(),UT=(()=>{class p{}return p.\u0275prov=li({token:p,providedIn:"root",factory:()=>null}),p})();class zy{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const GT=new zy("14.1.2"),qg={};function Zg(p){return p.ngOriginalError}class Ph{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zg(m);for(;g&&Zg(g);)g=Zg(g);return g||null}}const Jg=new Map;let sx=0;const Kg="__ngContext__";function cr(p,m){Nn(m)?(p[Kg]=m[20],function lx(p){Jg.set(p[20],p)}(m)):p[Kg]=m}function Rh(p){const m=p[Kg];return"number"==typeof m?function Qg(p){return Jg.get(p)||null}(m):m||null}function e1(p){const m=Rh(p);return m?Nn(m)?m:m.lView:null}const gx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function Xy(p){return p.ownerDocument.defaultView}function Po(p){return p instanceof Function?p():p}var Ns=(()=>((Ns=Ns||{})[Ns.Important=1]="Important",Ns[Ns.DashCase=2]="DashCase",Ns))();function n1(p,m){return undefined(p,m)}function kh(p){const m=p[3];return ir(m)?m[3]:m}function r1(p){return iM(p[13])}function a1(p){return iM(p[4])}function iM(p){for(;null!==p&&!ir(p);)p=p[4];return p}function $d(p,m,g,_,y){if(null!=_){let C,D=!1;ir(_)?C=_:Nn(_)&&(D=!0,_=_[0]);const L=It(_);0===p&&null!==g?null==y?Ji(m,g,L):je(m,g,L,y||null,!0):1===p&&null!==g?je(m,g,L,y||null,!0):2===p?function u1(p,m,g){const _=Fi(p,m);_&&function Jd(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,L,D):3===p&&m.destroyNode(L),null!=C&&function lM(p,m,g,_,y){const C=g[7];C!==It(g)&&$d(m,p,_,C,y);for(let L=10;L0&&(p[g-1][4]=_[4]);const C=wo(p,10+m);!function Tx(p,m){Bc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=C[19];null!==D&&D.detachView(C[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Zd(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Bc(p,m,g,3,null,null),function Ex(p){let m=p[13];if(!m)return Oh(p[1],p);for(;m;){let g=null;if(Nn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)Nn(m)&&Oh(m[1],m),m=m[3];null===m&&(m=p),Nn(m)&&Oh(m[1],m),g=m&&m[4]}m=g}}(m)}}function Oh(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function rM(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=V]():_[y=-V].unsubscribe(),C+=2}else{const D=_[y=g[C+1]];g[C].call(D)}if(null!==_){for(let C=y+1;C<_.length;C++)(0,_[C])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&ir(m[3])){g!==m[3]&&o1(g,m);const _=m[19];null!==_&&_.detachView(p)}!function Gy(p){Jg.delete(p[20])}(m)}}function l1(p,m,g){return function at(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===te.None||y===te.Emulated)return null}return Ti(_,g)}(p,m.parent,g)}function je(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Ji(p,m,g){p.appendChild(m,g)}function qf(p,m,g,_,y){null!==_?je(p,m,g,_,y):Ji(p,m,g)}function Fi(p,m){return p.parentNode(m)}function Yf(p,m,g){return Bh(p,m,g)}let Bh=function c1(p,m,g){return 40&p.type?Ti(p,g):null};function Qd(p,m,g,_){const y=l1(p,_,m),C=m[11],L=Yf(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;RC?"":y[ee+1].toLowerCase();const fe=8&_?oe:null;if(fe&&-1!==Gf(fe,V,0)||2&_&&V!==oe){if(ta(_))return!1;D=!0}}}}else{if(!D&&!ta(_)&&!ta(R))return!1;if(D&&ta(R))continue;D=!1,_=R|1&_}}return ta(_)||D}function ta(p){return 0==(1&p)}function zh(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let C=!1;for(;y-1)for(g++;g0?'="'+L+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!ta(D)&&(m+=g1(C,y),y=""),_=D,C=C||!ta(_);g++}return""!==y&&(m+=g1(C,y)),m}const Vt={};function Zf(p){_1(yt(),Ee(),Pn()+p,!1)}function _1(p,m,g,_){if(!_)if(3==(3&m[2])){const C=p.preOrderCheckHooks;null!==C&&Ds(m,C,g)}else{const C=p.preOrderHooks;null!==C&&fc(m,C,0,g)}$r(g)}function yM(p,m=null,g=null,_){const y=tu(p,m,g,_);return y.resolveInjectorInitializers(),y}function tu(p,m=null,g=null,_,y=new Set){const C=[g||it,NT(p)];return _=_||("object"==typeof p?void 0:F(p)),new Iy(C,m||lr(),_||null,y)}let as=(()=>{class p{static create(g,_){if(Array.isArray(g))return yM({name:""},_,g,"");{var y;const C=null!==(y=g.name)&&void 0!==y?y:"";return yM({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=Ml,p.NULL=new Vi,p.\u0275prov=li({token:p,providedIn:"any",factory:()=>Wi(ky)}),p.__NG_ELEMENT_ID__=-1,p})();function Vc(p,m=be.Default){const g=Ee();return null===g?Wi(p,m):pl(Bi(),g,ne(p),m)}function Qf(){throw new Error("invalid")}function Uh(p,m){return p<<17|m<<2}function Ta(p){return p>>17&32767}function x1(p){return 2|p}function ko(p){return(131068&p)>>2}function S1(p,m){return-131069&p|m<<2}function ss(p){return 1|p}function o0(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&_1(p,m,22,!1),g(_,y)}finally{$r(C)}}function P1(p,m,g){if(pa(m)){const y=m.directiveEnd;for(let C=m.directiveStart;C0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(L)!=R&&L.push(R),L.push(_,y,D)}}function GM(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function N1(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function ZM(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&F1(g)}}function F1(p){for(let _=r1(p);null!==_;_=a1(_))for(let y=10;y<_.length;y++){const C=_[y];if(U(C))if(512&C[2]){const D=C[1];St(D,C,D.template,C[8])}else C[5]>0&&F1(C)}const g=p[1].components;if(null!==g)for(let _=0;_0&&F1(y)}}function QM(p,m){const g=ai(m,p),_=g[1];(function Yc(p,m){for(let g=m.length;gPromise.resolve(null))();function ew(p){return p[7]||(p[7]=[])}function La(p){return p.cleanup||(p.cleanup=[])}function Dl(p,m,g){return(null===p||nr(p))&&(g=function dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function tw(p,m){const g=p[9],_=g?g.get(Ph,null):null;_&&_.handleError(m)}function q1(p,m,g,_,y){for(let C=0;C-1&&(wn(m,_),wo(g,_))}this._attachedToViewContainer=!1}Zd(this._lView[1],this._lView)}onDestroy(m){O1(this._lView[1],this._lView,null,m)}markForCheck(){g0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function z1(p,m,g){const _=m[10];_.begin&&_.begin();try{St(p,m,p.template,g)}catch(y){throw tw(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Sx(p,m){Bc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class A0 extends ip{constructor(m){super(m),this._view=m}detectChanges(){KM(this._view)}checkNoChanges(){}get context(){return null}}class Wc extends va{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=pi(m);return new np(g,this.ngModule)}}function Hl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class y0{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,qg,_);return y!==qg||g===qg?y:this.parentInjector.get(m,g,_)}}class np extends Vy{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function mM(p){return p.map(fM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Hl(this.componentDef.inputs)}get outputs(){return Hl(this.componentDef.outputs)}create(m,g,_,y){var C;let D=(y=y||this.ngModule)instanceof Bs?y:null===(C=y)||void 0===C?void 0:C.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const L=D?new y0(m,D):m,R=L.get(jg,null);if(null===R)throw new ie(407,!1);const V=L.get(UT,null),W=R.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",oe=_?function k1(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(W,_,this.componentDef.encapsulation):s1(R.createRenderer(null,this.componentDef),ee,function iw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(ee)),fe=this.componentDef.onPush?288:272,xe=function Fo(p,m){return{components:[],scheduler:p||gx,clean:$x,playerHandler:m||null,flags:0}}(),ze=c0(0,null,null,1,0,null,null,null,null,null),Ze=Zh(null,ze,xe,fe,null,null,R,W,V,L,null);let st,wt;Ss(Ze);try{const Oe=function rp(p,m,g,_,y,C){const D=g[1];g[22]=p;const R=ou(D,22,2,"#host",null),V=R.mergedAttrs=m.hostAttrs;null!==V&&(_0(R,V,!0),null!==p&&(gc(y,p,V),null!==R.classes&&h1(y,p,R.classes),null!==R.styles&&Xd(y,p,R.styles)));const W=_.createRenderer(p,m),ee=Zh(g,R1(m),null,m.onPush?32:16,g[22],R,_,W,C||null,null,null);return D.firstCreatePass&&(Cc(hl(R,g),D,m.type),N1(D,R),V1(R,g.length,1)),Bo(g,ee),g[22]=ee}(oe,this.componentDef,Ze,R,W);if(oe)if(_)gc(W,oe,["ng-version",GT.full]);else{const{attrs:xt,classes:qt}=function gM(p){const m=[],g=[];let _=1,y=2;for(;_0&&h1(W,oe,qt.join(" "))}if(wt=yr(ze,22),void 0!==g){const xt=wt.projection=[];for(let qt=0;qt=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=_c(y.hostAttrs,g=_c(g,y.hostAttrs))}}(_)}function C0(p){return p===Ot?{}:p===it?[]:p}function Y1(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function v0(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,C)=>{m(_,y,C),g(_,y,C)}:m}function W1(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let T0=null;function Uc(){if(!T0){const p=ue.Symbol;if(p&&p.iterator)T0=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gL(It(qt[_.index])):_.index;let xt=null;if(!L&&R&&(xt=function lw(p,m,g,_){const y=p.cleanup;if(null!=y)for(let C=0;CR?L[R]:null}"string"==typeof D&&(C+=2)}return null}(p,m,y,_.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=C,xt.__ngLastListenerFn__=C,fe=!1;else{C=i_(_,m,ee,C,!1);const qt=g.listen(st,y,C);oe.push(C,qt),W&&W.push(y,Oe,wt,wt+1)}}else C=i_(_,m,ee,C,!1);const xe=_.outputs;let ze;if(fe&&null!==xe&&(ze=xe[y])){const Ze=ze.length;if(Ze)for(let st=0;st0;)m=m[15],p--;return m}(p,_e.lFrame.contextLView))[8]}(p)}function cw(p,m){let g=null;const _=function Kd(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 Hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function c_(p){return p.substring(Hi.key,Hi.keyEnd)}function V0(p,m){const g=Hi.textEnd;return g===m?-1:(m=Hi.keyEnd=function fw(p,m,g){for(;m32;)m++;return m}(p,Hi.key=m,g),Il(p,m,g))}function Il(p,m,g){for(;m=0;g=V0(m,g))sr(p,c_(m),!0)}function zr(p,m,g,_){const y=Ee(),C=yt(),D=ar(2);C.firstUpdatePass&&m_(C,p,D,_),m!==Vt&&$n(y,D,m)&&hn(C,C.data[Pn()],y,y[11],p,y[D+1]=function A_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(ns(p)))),p}(m,g),_,D)}function dr(p,m,g,_){const y=yt(),C=ar(2);y.firstUpdatePass&&m_(y,null,C,_);const D=Ee();if(g!==Vt&&$n(D,C,g)){const L=y.data[Pn()];if(Tn(L,_)&&!f_(y,C)){let R=_?L.classesWithoutHost:L.stylesWithoutHost;null!==R&&(g=q(R,g||"")),Us(y,L,D,g,_)}else!function _w(p,m,g,_,y,C,D,L){y===Vt&&(y=it);let R=0,V=0,W=0=p.expandoStartIndex}function m_(p,m,g,_){const y=p.data;if(null===y[g+1]){const C=y[Pn()],D=f_(p,g);Tn(C,_)&&null===m&&!D&&(m=!1),m=function z0(p,m,g,_){const y=gd(p);let C=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=ed(g=j0(null,p,m,g,_),m.attrs,_),C=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=j0(y,p,m,g,_),null===C){let R=function g_(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==ko(_))return p[Ta(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=j0(null,p,m,R[1],_),R=ed(R,m.attrs,_),function Bl(p,m,g,_){p[Ta(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else C=function Xn(p,m,g){let _;const y=m.directiveEnd;for(let C=1+m.directiveStylingLast;C0)&&(V=!0)}else W=g;if(y)if(0!==R){const oe=Ta(p[L+1]);p[_+1]=Uh(oe,L),0!==oe&&(p[oe+1]=S1(p[oe+1],_)),p[L+1]=function gt(p,m){return 131071&p|m<<17}(p[L+1],_)}else p[_+1]=Uh(L,0),0!==L&&(p[L+1]=S1(p[L+1],_)),L=_;else p[_+1]=Uh(R,0),0===L?L=_:p[R+1]=S1(p[R+1],_),R=_;V&&(p[_+1]=x1(p[_+1])),N0(p,W,_,!0),N0(p,W,_,!1),function uw(p,m,g,_,y){const C=y?p.residualClasses:p.residualStyles;null!=C&&"string"==typeof m&&Ps(C,m)>=0&&(g[_+1]=ss(g[_+1]))}(m,W,p,_,C),D=Uh(L,R),C?m.classBindings=D:m.styleBindings=D}(y,C,m,g,D,_)}}function j0(p,m,g,_,y){let C=null;const D=g.directiveEnd;let L=g.directiveStylingLast;for(-1===L?L=g.directiveStart:L++;L0;){const R=p[y],V=Array.isArray(R),W=V?R[1]:R,ee=null===W;let oe=g[y+1];oe===Vt&&(oe=ee?it:void 0);let fe=ee?kd(oe,_):W===_?oe:void 0;if(V&&!Ra(fe)&&(fe=kd(R,_)),Ra(fe)&&(L=fe,D))return L;const xe=p[y+1];y=D?Ta(xe):ko(xe)}if(null!==m){let R=C?m.residualClasses:m.residualStyles;null!=R&&(L=kd(R,_))}return L}function Ra(p){return void 0!==p}function Tn(p,m){return 0!=(p.flags&(m?16:32))}function $s(p,m=""){const g=Ee(),_=yt(),y=p+22,C=_.firstCreatePass?ou(_,y,1,m,null):_.data[y],D=g[y]=function jf(p,m){return p.createText(m)}(g[11],m);Qd(_,g,D,C),Ni(C,!1)}function q0(p){return Qi("",p,""),q0}function Qi(p,m,g){const _=Ee(),y=du(_,p,m,g);return y!==Vt&&Vo(_,Pn(),y),Qi}function dp(p,m,g,_,y){const C=Ee(),D=uu(C,p,m,g,_,y);return D!==Vt&&Vo(C,Pn(),D),dp}function up(p,m,g,_,y,C,D,L,R,V,W){const ee=Ee(),oe=$c(ee,p,m,g,_,y,C,D,L,R,V,W);return oe!==Vt&&Vo(ee,Pn(),oe),up}function mu(p,m,g){dr(sr,Gs,du(Ee(),p,m,g),!0)}function id(p,m,g){const _=Ee();return $n(_,xs(),m)&&Nr(yt(),qi(),_,p,m,_[11],g,!0),id}function tm(p,m,g){const _=Ee();if($n(_,xs(),m)){const C=yt(),D=qi();Nr(C,D,_,p,m,Dl(gd(C.data),D,_),g,!0)}return tm}const Zs=void 0;var rS=["en",[["a","p"],["AM","PM"],Zs],[["AM","PM"],Zs,Zs],[["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"]],Zs,[["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"]],Zs,[["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}",Zs,"{1} 'at' {0}",Zs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mw(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let gu={};function P_(p){const m=function vw(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=Cw(m);if(g)return g;const _=m.split("-")[0];if(g=Cw(_),g)return g;if("en"===_)return rS;throw new ie(701,!1)}function ww(p){return P_(p)[Mt.PluralCase]}function Cw(p){return p in gu||(gu[p]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[p]),gu[p]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const qo="en-US";let im=qo;function eb(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let C=0;C>20;if(Ho(p)||!p.multi){const fe=new Er(R,y,Vc),xe=Mp(L,m,y?W:W+oe,ee);-1===xe?(Cc(hl(V,D),C,L),xu(C,p,m.length),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(fe),D.push(fe)):(g[xe]=fe,D[xe]=fe)}else{const fe=Mp(L,m,W+oe,ee),xe=Mp(L,m,W,W+oe),ze=fe>=0&&g[fe],Ze=xe>=0&&g[xe];if(y&&!Ze||!y&&!ze){Cc(hl(V,D),C,L);const st=function nb(p,m,g,_,y){const C=new Er(p,g,Vc);return C.multi=[],C.index=m,C.componentProviders=0,tb(C,y,_&&!g),C}(y?jl:ib,g.length,y,_,R);!y&&Ze&&(g[xe].providerFactory=st),xu(C,p,m.length,0),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(st),D.push(st)}else xu(C,p,fe>-1?fe:xe,tb(g[y?xe:fe],R,!y&&_));!y&&_&&Ze&&g[xe].componentProviders++}}}function xu(p,m,g,_){const y=Ho(m),C=function qd(p){return!!p.useClass}(m);if(y||C){const R=(C?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const V=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=V.indexOf(g);-1===W?V.push(g,[_,R]):V[W+1].push(_,R)}else V.push(g,R)}}}function tb(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Mp(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function ib(p,m,g,_){return mm(this.multi,[])}function jl(p,m,g,_){const y=this.multi;let C;if(this.providerFactory){const D=this.providerFactory.componentProviders,L=Hr(g,g[1],this.providerFactory.index,_);C=L.slice(0,D),mm(y,C);for(let R=D;R{g.providersResolver=(_,y)=>function Yw(p,m,g){const _=yt();if(_.firstCreatePass){const y=nr(p);eb(g,_.data,_.blueprint,y,!0),eb(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class ql{}class ab{}function Ww(p,m){return new Su(p,m??null)}class Su extends ql{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wc(this);const _=Ue(m);this._bootstrapComponents=Po(_.bootstrap),this._r3Injector=tu(m,g,[{provide:ql,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class gm extends ab{constructor(m){super(),this.moduleType=m}create(m){return new Su(this.moduleType,m)}}class sb extends ql{constructor(m,g,_){super(),this.componentFactoryResolver=new Wc(this),this.instance=null;const y=new Iy([...m,{provide:ql,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],g||lr(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function _m(p,m,g=null){return new sb(p,m,g).injector}function ub(p,m,g){const _=Vn()+p,y=Ee();return y[_]===Vt?Vr(y,_,g?m.call(g):m()):function Ys(p,m){return p[m]}(y,_)}function hb(p,m,g,_){return rC(Ee(),Vn(),p,m,g,_)}function pb(p,m,g,_,y){return ym(Ee(),Vn(),p,m,g,_,y)}function vp(p,m){const g=p[m];return g===Vt?void 0:g}function rC(p,m,g,_,y,C){const D=m+g;return $n(p,D,y)?Vr(p,D+1,C?_.call(C,y):_(y)):vp(p,D+1)}function ym(p,m,g,_,y,C,D){const L=m+g;return Ll(p,L,y,C)?Vr(p,L+2,D?_.call(D,y,C):_(y,C)):vp(p,L+2)}function nd(p,m,g,_,y,C,D,L){const R=m+g;return function sp(p,m,g,_,y){const C=Ll(p,m,g,_);return $n(p,m+2,y)||C}(p,R,y,C,D)?Vr(p,R+3,L?_.call(L,y,C,D):_(y,C,D)):vp(p,R+3)}function gb(p,m){const g=yt();let _;const y=p+22;g.firstCreatePass?(_=function _b(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 C=_.factory||(_.factory=De(_.type)),D=lt(Vc);try{const L=ul(!1),R=C();return ul(L),function J1(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Ee(),y,R),R}finally{lt(D)}}function wm(p,m,g){const _=p+22,y=Ee(),C=gi(y,_);return Eu(y,_)?rC(y,Vn(),m,C.transform,g,C):C.transform(g)}function bb(p,m,g,_){const y=p+22,C=Ee(),D=gi(C,y);return Eu(C,y)?ym(C,Vn(),m,D.transform,g,_,D):D.transform(g,_)}function Ab(p,m,g,_,y){const C=p+22,D=Ee(),L=gi(D,C);return Eu(D,C)?nd(D,Vn(),m,L.transform,g,_,y,L):L.transform(g,_,y)}function Eu(p,m){return p[1].data[m].pure}function yb(p){return m=>{setTimeout(p,void 0,m)}}const ds=class oC extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,C=g||(()=>null),D=_;if(m&&"object"==typeof m){var L,R,V;const ee=m;y=null===(L=ee.next)||void 0===L?void 0:L.bind(ee),C=null===(R=ee.error)||void 0===R?void 0:R.bind(ee),D=null===(V=ee.complete)||void 0===V?void 0:V.bind(ee)}this.__isAsync&&(C=yb(C),y&&(y=yb(y)),D&&(D=yb(D)));const W=super.subscribe({next:y,error:C,complete:D});return m instanceof i.w0&&m.add(W),W}};function Tp(){return this._results[Uc()]()}class Wo{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=Uc(),_=Wo.prototype;_[g]||(_[g]=Tp)}get changes(){return this._changes||(this._changes=new ds)}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=Mr(m);(this._changesDetected=!function Mg(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Mb,p})();const lC=Du,gS=class extends lC{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Zh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),Jh(_,y,m),new ip(y)}};function Mb(){return Hu(Bi(),Ee())}function Hu(p,m){return 4&p.type?new gS(m,p,ea(p,m)):null}let xp=(()=>{class p{}return p.__NG_ELEMENT_ID__=_S,p})();function _S(){return Tb(Bi(),Ee())}const wb=xp,Cb=class extends wb{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return ea(this._hostTNode,this._hostLView)}get injector(){return new Lr(this._hostTNode,this._hostLView)}get parentInjector(){const m=wc(this._hostTNode,this._hostLView);if(bo(m)){const g=yo(m,this._hostLView),_=Ao(m);return new Lr(g[1].data[_+8],g)}return new Lr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=vb(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,C;"number"==typeof _?y=_:null!=_&&(y=_.index,C=_.injector);const D=m.createEmbeddedView(g||{},C);return this.insert(D,y),D}createComponent(m,g,_,y,C){const D=m&&!function Mo(p){return"function"==typeof p}(m);let L;if(D)L=g;else{const ee=g||{};L=ee.index,_=ee.injector,y=ee.projectableNodes,C=ee.environmentInjector||ee.ngModuleRef}const R=D?m:new np(pi(m)),V=_||this.parentInjector;if(!C&&null==R.ngModule){const oe=(D?V:this.parentInjector).get(Bs,null);oe&&(C=oe)}const W=R.create(V,y,void 0,C);return this.insert(W.hostView,L),W}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return ir(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const ee=_[3],oe=new Cb(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const C=this._adjustIndex(g),D=this._lContainer;!function Dx(p,m,g,_){const y=10+_,C=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[L/2]);else{const V=C[L+1],W=m[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=$l,this.reject=$l,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{C.subscribe({complete:L,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)(Wi(kp,8))},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Nu=new Si("AppId",{providedIn:"root",factory:function Bm(){return`${Op()}${Op()}${Op()}`}});function Op(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new Si("Platform Initializer"),Fm=new Si("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ip=new Si("appBootstrapListener"),zm=new Si("AnimationModuleType");let bi=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const rt=new Si("LocaleId",{providedIn:"root",factory:()=>mh(rt,be.Optional|be.SkipSelf)||function vS(){return typeof $localize<"u"&&$localize.locale||qo}()}),Vu=new Si("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Bp{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let SS=(()=>{class p{compileModuleSync(g){return new gm(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),C=Po(Ue(g).declarations).reduce((D,L)=>{const R=pi(L);return R&&D.push(new np(R)),D},[]);return new Bp(_,C)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const RC=(()=>Promise.resolve(0))();function Np(p){typeof Zone>"u"?RC.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class jr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ds(!1),this.onMicrotaskEmpty=new ds(!1),this.onStable=new ds(!1),this.onError=new ds(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new C("Angular"))}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 jm(){let p=ue.requestAnimationFrame,m=ue.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Fu(p){const m=()=>{!function OC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ue,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,qm(p),p.isCheckStableRunning=!0,Go(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),qm(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,C,D,L)=>{try{return Zb(p),g.invokeTask(y,C,D,L)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||p.shouldCoalesceRunChangeDetection)&&m(),Li(p)}},onInvoke:(g,_,y,C,D,L,R)=>{try{return Zb(p),g.invoke(y,C,D,L,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),Li(p)}},onHasTask:(g,_,y,C)=>{g.hasTask(y,C),_===y&&("microTask"==C.change?(p._hasPendingMicrotasks=C.microTask,qm(p),Go(p)):"macroTask"==C.change&&(p.hasPendingMacrotasks=C.macroTask))},onHandleError:(g,_,y,C)=>(g.handleError(y,C),p.runOutsideAngular(()=>p.onError.emit(C)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jr.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(jr.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const C=this._inner,D=C.scheduleEventTask("NgZoneEvent: "+y,m,kC,$l,$l);try{return C.runTask(D,g,_)}finally{C.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const kC={};function Go(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 qm(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Zb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Li(p){p._nesting--,Go(p)}class IC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ds,this.onMicrotaskEmpty=new ds,this.onStable=new ds,this.onError=new ds}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,_)}}const fn=new Si(""),Jb=new Si("");let Ym,Qb=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ym||(function NC(p){Ym=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jr.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 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 C=-1;_&&_>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==C),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:C,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}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(BC),Wi(Jb))},p.\u0275prov=li({token:p,factory:p.\u0275fac}),p})(),BC=(()=>{class p{constructor(){this._applications=new Map}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){var y,C;return null!==(y=null===(C=Ym)||void 0===C?void 0:C.findTestabilityInTree(this,g,_))&&void 0!==y?y:null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),$o=null;const Xb=new Si("AllowMultipleToken"),Pi=new Si("PlatformDestroyListeners");class Xi{constructor(m,g){this.name=m,this.token=g}}function FC(p,m,g=[]){const _=`Platform: ${m}`,y=new Si(_);return(C=[])=>{let D=eA();if(!D||D.injector.get(Xb,!1)){const L=[...g,...C,{provide:y,useValue:!0}];p?p(L):function VC(p){if($o&&!$o.get(Xb,!1))throw new ie(400,!1);$o=p;const m=p.get(jC);(function Kb(p){const m=p.get(Vm,null);m&&m.forEach(g=>g())})(p)}(function zC(p=[],m){return as.create({name:m,providers:[{provide:Yd,useValue:"platform"},{provide:Pi,useValue:new Set([()=>$o=null])},...p]})}(L,_))}return function HS(p){const m=eA();if(!m)throw new ie(401,!1);return m}()}}function eA(){var p,m;return null!==(p=null===(m=$o)||void 0===m?void 0:m.get(jC))&&void 0!==p?p:null}let jC=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function LS(p,m){let g;return g="noop"===p?new IC:("zone.js"===p?void 0:p)||new jr(m),g}(_?.ngZone,function qC(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),C=[{provide:jr,useValue:y}];return y.run(()=>{const D=as.create({providers:C,parent:this.injector,name:g.moduleType.name}),L=g.create(D),R=L.injector.get(Ph,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const V=y.onError.subscribe({next:W=>{R.handleError(W)}});L.onDestroy(()=>{Fp(this._modules,L),V.unsubscribe()})}),function YC(p,m,g){try{const _=g();return fu(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const V=L.injector.get(Bu);return V.runInitializers(),V.donePromise.then(()=>(function fp(p){oi(p,"Expected localeId to be defined"),"string"==typeof p&&(im=p.toLowerCase().replace(/_/g,"-"))}(L.injector.get(rt,qo)||qo),this._moduleDoBootstrap(L),L))})})}bootstrapModule(g,_=[]){const y=WC({},_);return function DS(p,m,g){const _=new gm(g);return Promise.resolve(_)}(0,0,g).then(C=>this.bootstrapModuleFactory(C,y))}_moduleDoBootstrap(g){const _=g.injector.get(Wm);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Pi,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Wi(as))},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function WC(p,m){return Array.isArray(m)?m.reduce(WC,p):{...p,...m}}let Wm=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new E.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),D=new E.y(L=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{jr.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{jr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{R.unsubscribe(),V.unsubscribe()}});this.isStable=(0,x.T)(C,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Vy;if(!this._injector.get(Bu).done)throw!y&&Ul(g),new ie(405,false);let D;D=y?g:this._injector.get(va).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const L=function rn(p){return p.isBoundToModule}(D)?void 0:this._injector.get(ql),V=D.create(as.NULL,[],_||D.selector,L),W=V.location.nativeElement,ee=V.injector.get(fn,null);return ee?.registerApplication(W),V.onDestroy(()=>{this.detachView(V.hostView),Fp(this.components,V),ee?.unregisterApplication(W)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new ie(101,!1);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;Fp(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Ip,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Fp(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(Bs),Wi(Ph))},p.\u0275prov=li({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Fp(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let GC=!0;function PS(){GC=!1}let JC=(()=>{class p{}return p.__NG_ELEMENT_ID__=QC,p})();function QC(p){return function OS(p,m,g){if(Ya(p)&&!g){const _=ai(p.index,m);return new ip(_,_)}return 47&p.type?new ip(m[16],m):null}(Bi(),Ee(),16==(16&p))}class tv{constructor(){}supports(m){return ap(m)}create(m){return new zS(m)}}const nA=(p,m)=>m;class zS{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||nA}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,C=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,L),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,L,D,y)),Object.is(g.item,L)||this._addIdentityChange(g,L)):(g=this._mismatch(g,L,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 C;return null===m?C=this._itTail:(C=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,C,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,C,y)):m=this._addAfter(new iv(g,_),C,y),m}_verifyReinsertion(m,g,_,y){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==C?m=this._reinsertAfter(C,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,C=m._nextRemoved;return null===y?this._removalsHead=C:y._nextRemoved=C,null===C?this._removalsTail=y:C._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 nv),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 nv),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 iv{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 jS{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 nv{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new jS,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 rA(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 C=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,C)}}),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 C=y._prev,D=y._next;return C&&(C._next=D),D&&(D._prev=C),y._next=null,y._prev=null,y}const _=new av(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 av{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 sv(){return new aA([new tv])}let aA=(()=>{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,_||sv()),deps:[[p,new Co,new Cl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=li({token:p,providedIn:"root",factory:sv}),p})();function ov(){return new sA([new Gm])}let sA=(()=>{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,_||ov()),deps:[[p,new Co,new Cl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=li({token:p,providedIn:"root",factory:ov}),p})();const WS=FC(null,"core",[]);let US=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Wi(Wm))},p.\u0275mod=xr({type:p}),p.\u0275inj=Ci({}),p})();function GS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class j extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return j.\u0275fac=function(){let Y;return function(w){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(j)))(w||j)}}(),j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class j{constructor(){this.data=new Map}getItem(T){return this.data.get(T)}removeItem(T){this.data.delete(T)}setItem(T,w){this.data.set(T,w)}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class ReceivedTokens{}class OAuthEvent{constructor(Y){this.type=Y}}class OAuthSuccessEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthInfoEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthErrorEvent extends OAuthEvent{constructor(Y,T,w=null){super(Y),this.reason=T,this.params=w}}function b64DecodeUnicode(j){const Y=j.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(Y).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(j){return btoa(j).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(Y){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=T=>{location.href=T},Y&&Object.assign(this,Y)}}class WebHttpUrlEncodingCodec{encodeKey(Y){return encodeURIComponent(Y)}encodeValue(Y){return encodeURIComponent(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(Y){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=T.inferHashAlgorithm(Y.idTokenHeader),i=yield T.calcHash(Y.accessToken,w),x=base64UrlEncode(i.substr(0,i.length/2)),S=Y.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(Y){let T=Y.alg;if(!T.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+T);return"sha-"+T.substr(2)}}let UrlHelperService=(()=>{class j{getHashFragmentParams(T){let w=T||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(T){const w={};let i,E,x,S,P,k,F;if(null===T)return w;i=T.split("&");for(let q=0;q>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&j.charCodeAt(++w)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);j=E}else{if("object"!==i)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR)}j.length>64&&(j=new Sha256(Y,!0).update(j).array());var k=[],F=[];for(w=0;w<64;++w){var q=j[w]||0;k[w]=92^q,F[w]=54^q}Sha256.call(this,Y,T),this.update(F),this.oKeyPad=k,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(j){if(!this.finalized){var Y,T=typeof j;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR);Y=!0}for(var w,E,i=0,x=j.length,S=this.blocks;i>2]|=j[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 j=this.blocks,Y=this.lastByteIndex;j[16]=this.block,j[Y>>2]|=EXTRA[3&Y],this.block=j[16],Y>=56&&(this.hashed||this.hash(),j[0]=this.block,j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0),j[14]=this.hBytes<<3|this.bytes>>>29,j[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var k,Q,ae,ie,ge,Ae,j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(k=16;k<64;++k)P[k]=P[k-16]+(((Q=P[k-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[k-7]+(((Q=P[k-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(Ae=Y&T,k=0;k<64;k+=4)this.first?(this.is224?(ae=300032,S=(Q=P[0]-1413257819)-150054599<<0,w=Q+24177077<<0):(ae=704751109,S=(Q=P[0]-210244248)-1521486534<<0,w=Q+143694565<<0),this.first=!1):(S=w+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&x)+K[k]+P[k])<<0,w=Q+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((ae=j&Y)^j&T^Ae))<<0),x=T+(Q=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[k+1]+P[k+1])<<0,T=Q+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&j)^w&Y^ae))<<0,E=Y+(Q=E+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[k+2]+P[k+2])<<0,Y=Q+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ge=T&w)^T&j^ie))<<0,i=j+(Q=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&x^~E&S)+K[k+3]+P[k+3])<<0,j=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((Ae=Y&T)^Y&w^ge))<<0;this.h0=this.h0+j<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=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]+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[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[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[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];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 j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=[j>>24&255,j>>16&255,j>>8&255,255&j,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,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,x>>24&255,x>>16&255,x>>8&255,255&x];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 j=new ArrayBuffer(this.is224?28:32),Y=new DataView(j);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),j},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var j=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(j),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(j){if("string"!=typeof j)throw new TypeError("expected string");var Y,T=j,w=new Uint8Array(T.length);for(Y=0;Y{class j{calcHash(T,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(T)))})()}toHashString2(T){let w="";for(let i of T)w+=String.fromCharCode(i);return w}toHashString(T){const w=new Uint8Array(T);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})(),OAuthService=(()=>{class j extends AuthConfig{constructor(T,w,i,E,x,S,P,k,F,q){super(),this.ngZone=T,this.http=w,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=k,this.dateTimeService=q,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ne){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ne)}if(this.checkLocalStorageAccessable()){var J,Q;const ne=null===(J=window)||void 0===J||null===(Q=J.navigator)||void 0===Q?void 0:Q.userAgent;(ne?.includes("MSIE ")||ne?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const T="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(T,T),localStorage.removeItem(T),0))}catch{return!1}}configure(T){Object.assign(this,new AuthConfig,T),this.config=Object.assign({},new AuthConfig,T),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)(T=>"token_received"===T.type)).subscribe(T=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(T={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?E=!0:"logout"===x.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==w||"any"===w||x.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{E&&this.refreshInternal(T,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(T,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(T,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(T=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(T))}loadDiscoveryDocumentAndLogin(T=null){return this.loadDiscoveryDocumentAndTryLogin(T=T||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof T.state?T.state:""),!1))}debug(...T){this.showDebugInformation&&this.logger.debug.apply(this.logger,T)}validateUrlFromDiscoveryDocument(T){const w=[],i=this.validateUrlForHttps(T),E=this.validateUrlAgainstIssuer(T);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(T){if(!T)return!0;const w=T.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(T,w){if(!T)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(T))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(T){return!this.strictDiscoveryDocumentValidation||!T||T.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const T=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,T);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 T=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,T);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(T,w){const i=this.dateTimeService.now();return Math.max(0,(w-T)*this.timeoutFactor-(i-T))}setStorage(T){this._storage=T,this.configChanged()}loadDiscoveryDocument(T=null){return new Promise((w,i)=>{T||((T=this.issuer||"").endsWith("/")||(T+="/"),T+=".well-known/openid-configuration"),this.validateUrlForHttps(T)?this.http.get(T).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(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:x});this.eventsSubject.next(P),w(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},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((T,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),T(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):T(null)})}validateDiscoveryDocument(T){let w;return this.skipIssuerCheck||T.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(T.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!T.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: "+T.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(T,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((T,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 x=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.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");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T(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(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:T,password:w},i)}fetchTokenUsingGrant(T,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",T).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}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 x of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(x,this.customQueryParams[x]);for(const x of Object.keys(w))E=E.set(x,w[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,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(k=>{this.storeIdToken(k),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(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((T,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 x=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+x)}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 x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.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=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),w(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=T=>{const w=this.processMessageEventMessage(T);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(T={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(T.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,T).then(q=>{x.setAttribute("src",q),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>q instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),k=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>"token_received"===q.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,k,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(q=>{if(q instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===q.type||(q=new OAuthErrorEvent("silent_refresh_error",q)),this.eventsSubject.next(q),q;return"token_received"===q.type&&(q=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(q)),q})).toPromise()}initImplicitFlowInPopup(T){return this.initLoginFlowInPopup(T)}initLoginFlowInPopup(T){return T=T||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let P,S=null;T.windowRef?T.windowRef&&!T.windowRef.closed&&(S=T.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(T));const k=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{q(),i(!0)},le=>{q(),E(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(q(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const q=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),k(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),k(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(T){const w=T.height||470,i=T.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(T){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!T||!T.data||"string"!=typeof T.data)return;const i=T.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=T=>{const w=T.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(T.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",T)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",T)},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(T=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(T=>{this.debug("token refresh after session change worked")}).catch(T=>{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)(T=>"silently_refreshed"===T.type||"silent_refresh_timeout"===T.type||"silent_refresh_error"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(T=>{"silently_refreshed"!==T.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 T=this.document.getElementById(this.sessionCheckIFrameName);T&&this.document.body.removeChild(T);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 T=this.document.getElementById(this.sessionCheckIFrameName);T||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),T.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(T="",w="",i="",E=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let k;k=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(T=T?F+S.config.nonceStateSeparator+encodeURIComponent(T):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const q=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+q+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(T)+"&redirect_uri="+encodeURIComponent(k)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}w&&(Q+="&login_hint="+encodeURIComponent(w)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(F)),E&&(Q+="&prompt=none");for(const ne of Object.keys(x))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(T="",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(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(T="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(T,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(T,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(T){const w=this;if(T.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};T.onTokenReceived(i)}}storeAccessTokenResponse(T,w,i,E,x){if(this._storage.setItem("access_token",T),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,k=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+k)}w&&this._storage.setItem("refresh_token",w),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(T=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(T).then(w=>!0):this.tryLoginImplicitFlow(T)}parseQueryString(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):{}}tryLoginCodeFlow(T=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(T=T||{}).customHashFragment?T.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),x=E.code,S=E.state,P=E.session_state;if(!T.preventClearHashAfterLogin){const q=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,q)}let[k,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(T,E);const q=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(q),Promise.reject(q)}if(!T.disableNonceCheck){if(!k)return w.saveRequestedRoute(),Promise.resolve();if(!T.disableOAuth2StateCheck&&!w.validateNonce(k)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(P),x&&(yield w.getTokenFromCode(x,T),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const T=this._storage.getItem("requested_route");T&&history.replaceState(null,"",window.location.origin+T)}getCodePartsFromUrl(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(T,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",T).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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(T,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||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),new Promise((E,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,T,{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(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),x(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)),x(S)})})}tryLoginImplicitFlow(T=null){let w;w=(T=T||{}).customHashFragment?this.urlHelper.getHashFragmentParams(T.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,x]=this.parseState(i);if(this.state=x,w.error){this.debug("error trying to login"),this.handleLoginError(T,w);const q=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(q),Promise.reject(q)}const S=w.access_token,P=w.id_token,k=w.session_state,F=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&&!T.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!k&&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&&!T.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(P,S,T.disableNonceCheck).then(q=>T.validationHandler?T.validationHandler({accessToken:S,idClaims:q.idTokenClaims,idToken:q.idToken,state:i}).then(J=>q):q).then(q=>(this.storeIdToken(q),this.storeSessionState(k),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(T),this.inImplicitFlow=!1,!0)).catch(q=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),this.logger.error("Error validating tokens"),this.logger.error(q),Promise.reject(q))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(T),Promise.resolve(!0))}parseState(T){let w=T,i="";if(T){const E=T.indexOf(this.config.nonceStateSeparator);E>-1&&(w=T.substr(0,E),i=T.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(T){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===T||(console.error("Validating access_token failed, wrong state/nonce.",w,T),!1)}storeIdToken(T){this._storage.setItem("id_token",T.idToken),this._storage.setItem("id_token_claims_obj",T.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+T.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(T){this._storage.setItem("session_state",T)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(T,w){T.onLoginError&&T.onLoginError(w),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(T=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:T}processIdToken(T,w,i=!1){const E=T.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),q=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(q.aud)){if(q.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+q.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(q.aud!==this.clientId){const ge="Wrong audience: "+q.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!q.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==q.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${q.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!q.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&q.iss!==this.issuer){const ge="Wrong issuer: "+q.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!i&&q.nonce!==J){const ge="Wrong nonce: "+q.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&&!q.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const Q=this.dateTimeService.now(),ne=1e3*q.iat,le=1e3*q.exp,ae=this.getClockSkewInMsec();if(ne-ae>=Q||le+ae<=Q){const ge="Token has expired";return console.error(ge),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(ge)}const ie={accessToken:w,idToken:T,jwks:this.jwks,idTokenClaims:q,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return this.checkSignature(ie).then(Ae=>{const Qe={idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?Qe:this.checkAtHash(ie).then(Xe=>{if(this.requestAccessToken&&!Xe){const He="Wrong at_hash";return this.logger.warn(He),Promise.reject(He)}return Qe})})})}getIdentityClaims(){const T=this._storage.getItem("id_token_claims_obj");return T?JSON.parse(T):null}getGrantedScopes(){const T=this._storage.getItem("granted_scopes");return T?JSON.parse(T):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(T){for(;T.length%4!=0;)T+="=";return T}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 T=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(T&&parseInt(T,10)=0&&null!==this._storage.getItem(T)?JSON.parse(this._storage.getItem(T)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(T={},w=""){let i=!1;"boolean"==typeof T&&(i=T,T={});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 x;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)x=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),w&&(S=S.set("state",w)));for(let k in T)S=S.set(k,T[k]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const T=this;return this.createNonce().then(function(w){return T.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):T._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const T=this.document.getElementById(this.silentRefreshIFrameName);T&&T.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(T=>{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 x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>w.charCodeAt(P%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(T,w))}initCodeFlowInternal(T="",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(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!T.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield T.createNonce();return[base64UrlEncode(yield T.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(T){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{T[i]&&w.set(i,JSON.stringify(T[i]))}),w}revokeTokenAndLogout(T={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),x=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 k=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+k)}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 k of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(k,this.customQueryParams[k]);return new Promise((k,F)=>{let q,J;if(E){let Q=S.set("token",E).set("token_type_hint","access_token");q=this.http.post(i,Q,{headers:P})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let Q=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([q,J]).subscribe(Q=>{this.logOut(T),k(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),F(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return j.\u0275fac=function(T){return new(T||j)(_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))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(Y){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Y)}}let DefaultOAuthInterceptor=(()=>{class j{constructor(T,w,i){this.oAuthService=T,this.errorHandler=w,this.moduleConfig=i}checkUrl(T){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(T):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>T.toLowerCase().startsWith(w.toLowerCase()))}intercept(T,w){const i=T.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)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=T.headers.set("Authorization","Bearer "+x);T=T.clone({headers:P})}return w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):w.handle(T)}}return j.\u0275fac=function(T){return new(T||j)(_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))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class NullValidationHandler{validateSignature(Y){return Promise.resolve(null)}validateAtHash(Y){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class j{static forRoot(T=null,w=NullValidationHandler){return{ngModule:j,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:T},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:j}),j.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),j})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(j,Y,T)=>{"use strict";function w(E,x,S,P,k,F,q){try{var J=E[F](q),Q=J.value}catch(ne){return void S(ne)}J.done?x(Q):Promise.resolve(Q).then(P,k)}function i(E){return function(){var x=this,S=arguments;return new Promise(function(P,k){var F=E.apply(x,S);function q(Q){w(F,P,k,q,J,"next",Q)}function J(Q){w(F,P,k,q,J,"throw",Q)}q(void 0)})}}T.d(Y,{Z:()=>i})},1128:j=>{"use strict";j.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:j=>{"use strict";j.exports={i8:"9.4.0"}}},j=>{j(j.s=8609)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main.ab91b64621d4d8de.js b/dist/apps/user-profile/main.ab91b64621d4d8de.js deleted file mode 100644 index ba7738297..000000000 --- a/dist/apps/user-profile/main.ab91b64621d4d8de.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{1573:(j,Y,T)=>{"use strict";var w=T(6895),i=T(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends E{static makeCurrent(){(0,w.HT)(new x)}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 F(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 q=new i.OlP("TRANSITION_ID"),X=[{provide:i.ip1,useFactory:function J(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{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 ae=new i.OlP("EventManagerPlugins");let ie=(()=>{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})(),ve=(()=>{class n extends Ae{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,r.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Xe(n){(0,w.q)().remove(n)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},He=/%COMP%/g;function he(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ye=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new We(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 ai(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 Ke(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=he(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(ie),i.LFG(ve),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class We{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Qe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Qe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Qe[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,me(t)):this.eventManager.addEventListener(a,e,me(t))}}function Ft(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ai extends We{constructor(a,e,t,r){super(a),this.component=t;const l=he(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ve(n){return"_ngcontent-%COMP%".replace(He,n)}(r+"-"+t.id),this.hostAttr=function Ne(n){return"_nghost-%COMP%".replace(He,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 Ke extends We{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=he(r.id,r.styles,[]);for(let c=0;c{class n extends ge{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 Sn=["alt","control","meta","shift"],si={"\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"},jn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let En=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),c=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,c))}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 c="";if(Sn.forEach(o=>{const d=t.indexOf(o);d>-1&&(t.splice(d,1),c+=o+".")}),c+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=c,s}static getEventFullKey(e){let t="",r=function ui(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&&jn.hasOwnProperty(a)&&(a=jn[a]))}return si[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Sn.forEach(l=>{l!=r&&(0,Ci[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 be=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function fr(){x.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function de(){return(0,i.RDi)(document),document},deps:[]}]),qe=new i.OlP(""),st=[{provide:i.rWj,useClass:class ne{addToWindow(a){i.dqk.getAngularTestability=(t,r=!0)=>{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,c=!1;const s=function(o){c=c||o,l--,0==l&&t(c)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],ot=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kn(){return new i.qLn},deps:[]},{provide:ae,useClass:Ki,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ae,useClass:En,multi:!0,deps:[w.K0]},{provide:ye,useClass:ye,deps:[ie,ve,i.AFp]},{provide:i.FYo,useExisting:ye},{provide:Ae,useExisting:ve},{provide:ve,useClass:ve,deps:[w.K0]},{provide:ie,useClass:ie,deps:[ae,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let Jt=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:q,useExisting:i.AFp},X]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qe,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...ot,...st],imports:[w.ez,i.hGG]}),n})(),se=(()=>{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 Le(){return new se((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Gi=(()=>{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(ct),t},providedIn:"root"}),n})(),ct=(()=>{class n extends Gi{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.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 et(n){return new ct(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=T(529);class Kt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const zt=new i.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 Xt=(()=>{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 Je,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 Kt}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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,c,s,o,d,u,h,f,b="body",N=!1,Q){let pe=new M.LE({encoder:this.encoder});null!=e&&(pe=this.addToHttpParams(pe,e,"attributeName")),null!=t&&(pe=this.addToHttpParams(pe,t,"attributeId")),null!=r&&(pe=this.addToHttpParams(pe,r,"facility")),null!=l&&(pe=this.addToHttpParams(pe,l,"user")),null!=c&&(pe=this.addToHttpParams(pe,c,"vo")),null!=s&&(pe=this.addToHttpParams(pe,s,"resource")),null!=o&&(pe=this.addToHttpParams(pe,o,"member")),null!=d&&(pe=this.addToHttpParams(pe,d,"group")),null!=u&&(pe=this.addToHttpParams(pe,u,"host")),null!=h&&(pe=this.addToHttpParams(pe,h,"userExtSource")),null!=f&&(pe=this.addToHttpParams(pe,f,"key"));let _t,Pe=this.defaultHeaders;_t=this.configuration.lookupCredential("BasicAuth"),_t&&(Pe=Pe.set("Authorization","Basic "+_t)),_t=this.configuration.lookupCredential("BearerAuth"),_t&&(Pe=Pe.set("Authorization","Bearer "+_t));let kt=Q&&Q.httpHeaderAccept;void 0===kt&&(kt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==kt&&(Pe=Pe.set("Accept",kt));let Ut=Q&&Q.context;void 0===Ut&&(Ut=new M.qT);let oa="json";return kt&&(oa=kt.startsWith("text")?"text":this.configuration.isJsonMime(kt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ut,params:pe,responseType:oa,withCredentials:this.configuration.withCredentials,headers:Pe,observe:b,reportProgress:N})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,c,s,o,d,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!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=d&&(b=this.addToHttpParams(b,d,"userExtSource"));let Q,N=this.defaultHeaders;Q=this.configuration.lookupCredential("BasicAuth"),Q&&(N=N.set("Authorization","Basic "+Q)),Q=this.configuration.lookupCredential("BearerAuth"),Q&&(N=N.set("Authorization","Bearer "+Q));let pe=f&&f.httpHeaderAccept;void 0===pe&&(pe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==pe&&(N=N.set("Accept",pe));let Pe=f&&f.context;void 0===Pe&&(Pe=new M.qT);let _t="json";return pe&&(_t=pe.startsWith("text")?"text":this.configuration.isJsonMime(pe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Pe,params:b,responseType:_t,withCredentials:this.configuration.withCredentials,headers:N,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"user")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.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:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c,s,o="body",d=!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==c)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!=c&&(h=this.addToHttpParams(h,c,"member")),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}removeAttributesForFacilityResourceUserMember(e,t,r,l,c,s="body",o=!1,d){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==c)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")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.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:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeResourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attributes[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeVoAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{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 Je,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 Kt}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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,r,l,c,s,o="body",d=!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(Pe=>{h=this.addToHttpParams(h,Pe,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:d,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rn=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qn=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}deleteGroup(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"members[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getGroupUnions(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getGroupsWhereMemberIsActive(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),On=(()=>{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 Je,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 Kt}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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,l,c,s,o="body",d=!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(Pe=>{h=this.addToHttpParams(h,Pe,"attrsNames[]")}),c&&c.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedStatuses[]")}),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}findCompleteRichMembersForVo(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"allowedStatuses[]")}),null!=r&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getAllMembers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"allowedStatuses[]")}),l&&l.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")});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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}moveMembership(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}removeSponsor(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=r&&(d=this.addToHttpParams(d,r,"emailAttributeURN")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:N,params:u,responseType:Q,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}setStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}updateSponsorshipValidity(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:c,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(zt,8),i.LFG(Je,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 Je,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 Kt}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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"memberId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"voId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=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:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nc=(()=>{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 Je,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 Kt}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarRichIdentities(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/consolidate`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendInvitationForGroup(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:c,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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{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 Je,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 Kt}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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}addAdminToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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(N=>{o=this.addToHttpParams(o,N,"groups[]")}),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}assignGroupToResource(e,t,r,l,c,s="body",o=!1,d){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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,c,s="body",o=!1,d){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(pe=>{u=this.addToHttpParams(u,pe,"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!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:N,params:u,responseType:Q,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResource(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"facility")),null!=r&&(d=this.addToHttpParams(d,r,"name")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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})}getMailingServiceRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAssignments(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getRichAdmins(e,t,r,l,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"specificAttributes")}),null!=r&&(d=this.addToHttpParams(d,r,"allUserAttributes")),null!=l&&(d=this.addToHttpParams(d,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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let 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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pi=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changeNonAuthzPassword/token`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/changePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/checkPasswordStrength`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/createAlternativePassword`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c="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 d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"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 N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,r,l,c,s,o="body",d=!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!=c&&(h=this.addToHttpParams(h,c,"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 N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/reservePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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/reservePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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})}setLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"login")),null!=r&&(o=this.addToHttpParams(o,r,"namespace"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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/setLogin`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_r=(()=>{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 Je,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 Kt}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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:d,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(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tn=(()=>{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 Je,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 Kt}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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,c){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 d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}findCandidatesForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,l="body",c=!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(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:d,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,c,s="body",o=!1,d){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==c)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(pe=>{u=this.addToHttpParams(u,pe,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=c&&(u=this.addToHttpParams(u,c,"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=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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",c=!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,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 h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.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:d,observe:l,reportProgress:c})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));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 d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:c,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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,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 d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,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,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.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:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var It=(()=>{return(n=It||(It={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",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",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",It;var n})();let Ua=(()=>{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 c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}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(It.PERUNADMIN,It.PERUNOBSERVER,It.FACILITYADMIN,It.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(It.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(It.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(It.PERUNADMIN,It.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(It.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOOBSERVER,It.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(It.PERUNADMIN,It.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 c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let c=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const N of Object.keys(b.entitiesToManage))o="User"===N?[N].concat(o):o.concat(N);break}const d=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(c,d),h=this.resolveAuthorization(s,d);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 c of Object.keys(r)){const s=r[c];if(null===s)this.principalRoles.has(c)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(c,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 c=r.shift();if(t.has(c))continue;const s=this.getPerunPolicy(c);if(!s)return[];t.set(c,s),r=r.concat(s.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Wr.Xf)(n()).subscribe(a)})}var il=T(9635),Zn=T(2843),Ur=T(515),Bt=T(727),Wn=T(4482),br=T(5403);function Ts(){return(0,Wn.e)((n,a)=>{let e=null;n._refCount++;const t=(0,br.x)(a,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),a.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class ac extends Bn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Wn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Bt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,br.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Bt.w0.EMPTY)}return a}refCount(){return Ts()(this)}}var At=T(4004),Nt=T(3900),dt=T(5698),fo=T(3269);function ti(...n){const a=(0,fo.yG)(n);return(0,Wn.e)((e,t)=>{(a?(0,Ga.z)(n,e,a):(0,Ga.z)(n,e)).subscribe(t)})}var Ti=T(5577),Ar=T(590),yr=T(4351),mi=T(8505),li=T(262);function I(n,a,e,t,r){return(l,c)=>{let s=e,o=a,d=0;l.subscribe((0,br.x)(c,u=>{const h=d++;o=s?n(o,u,h):(s=!0,u),t&&c.next(o)},r&&(()=>{s&&c.next(o),c.complete()})))}}function U(n,a){return(0,Wn.e)(I(n,a,arguments.length>=2,!0))}function B(n){return n<=0?()=>Ur.E:(0,Wn.e)((a,e)=>{let t=[];a.subscribe((0,br.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var G=T(8068),re=T(6590),Me=T(4671);function _e(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,Yt.h)((r,l)=>n(r,l,t)):Me.y,B(1),e?(0,re.d)(a):(0,G.T)(()=>new vs.K))}function nt(n,a=!1){return(0,Wn.e)((e,t)=>{let r=0;e.subscribe((0,br.x)(t,l=>{const c=n(l,r++);(c||a)&&t.next(l),!c&&t.complete()}))})}var xi=T(9718);function ii(n){return(0,Wn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(n)}})}var ci=T(8189);const tt="primary";class sn{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 sn(n)}function _n(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 Gr(n){return Array.prototype.concat.apply([],n)}function Ii(n){return n.length>0?n[n.length-1]:null}function ki(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function Bi(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,Dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const gg={exact:function Nn(n,a,e){if(!ga(n.segments,a.segments)||!rr(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Nn(n.children[t],a.children[t],e))return!1;return!0},subset:lc},sc={exact:function oc(n,a){return yt(n,a)},subset:function ma(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>$a(n[e],a[e]))},ignored:()=>!0};function uf(n,a,e){return gg[e.paths](n.root,a.root,e.matrixParams)&&sc[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function lc(n,a,e){return xs(n,a,a.segments,e)}function xs(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ga(r,e)||a.hasChildren()||!rr(r,e,t))}if(n.segments.length===e.length){if(!ga(n.segments,e)||!rr(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!lc(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!!(ga(n.segments,r)&&rr(n.segments,r,t)&&n.children[tt])&&xs(n.children[tt],a,l,t)}}function rr(n,a,e){return a.every((t,r)=>sc[e](n[r].parameters,t.parameters))}class di{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 hf.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ki(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sl(this)}}class al{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return uc(this)}}function ga(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}let gd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new _a},providedIn:"root"}),n})();class _a{parse(a){const e=new gf(a);return new di(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ss(a.root,!0)}`,t=function $r(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Za(e)}=${Za(r)}`).join("&"):`${Za(e)}=${Za(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function cc(n){return encodeURI(n)}(a.fragment)}`:""}`}}const hf=new _a;function sl(n){return n.segments.map(a=>uc(a)).join("/")}function Ss(n,a){if(!n.hasChildren())return sl(n);if(a){const e=n.children[tt]?Ss(n.children[tt],!1):"",t=[];return ki(n.children,(r,l)=>{l!==tt&&t.push(`${l}:${Ss(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function md(n,a){let e=[];return ki(n.children,(t,r)=>{r===tt&&(e=e.concat(a(t,r)))}),ki(n.children,(t,r)=>{r!==tt&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===tt?[Ss(n.children[tt],!1)]:[`${r}:${Ss(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[tt]?`${sl(n)}/${e[0]}`:`${sl(n)}/(${e.join("//")})`}}function go(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Za(n){return go(n).replace(/%3B/gi,";")}function dc(n){return go(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Es(n){return decodeURIComponent(n)}function eh(n){return Es(n.replace(/\+/g,"%20"))}function uc(n){return`${dc(n.path)}${function Hn(n){return Object.keys(n).map(a=>`;${dc(a)}=${dc(n[a])}`).join("")}(n.parameters)}`}const qi=/^[^\/()?;=#]+/;function ol(n){const a=n.match(qi);return a?a[0]:""}const pf=/^[^=?&#]+/,ff=/^[^&#]+/;class gf{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[tt]=new Wt(a,e)),t}parseSegment(){const a=ol(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(a),new al(Es(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=ol(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=ol(this.remaining);r&&(t=r,this.capture(t))}a[Es(e)]=Es(t)}parseQueryParam(a){const e=function th(n){const a=n.match(pf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function mf(n){const a=n.match(ff);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const r=eh(e),l=eh(t);if(a.hasOwnProperty(r)){let c=a[r];Array.isArray(c)||(c=[c],a[r]=c),c.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ol(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=tt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[tt]:new Wt([],c),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 i.vHH(4011,!1)}}function _o(n){return n.segments.length>0?new Wt([],{[tt]:n}):n}function Ds(n){const a={};for(const t of Object.keys(n.children)){const l=Ds(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function hc(n){if(1===n.numberOfChildren&&n.children[tt]){const a=n.children[tt];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}function Zr(n){return n instanceof di}function ih(n,a,e,t,r){var l;if(0===e.length)return ba(a.root,a.root,a.root,t,r);const c=function ah(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new rh(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ki(l.outlets,(o,d)=>{s[d]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===c?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new rh(e,a,t)}(e);if(c.toRoot())return ba(a.root,a.root,new Wt([],{}),t,r);const o=function s(u){var h;const f=function sh(n,a,e,t){if(n.isAbsolute)return new cl(a.root,!0,0);if(-1===t)return new cl(e,e===a.root,0);return function _d(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new cl(t,!1,r-l)}(e,t+(ll(n.commands[0])?0:1),n.numberOfDoubleDots)}(c,a,null===(h=n.snapshot)||void 0===h?void 0:h._urlSegment,u),b=f.processChildren?bo(f.segmentGroup,f.index,c.commands):gc(f.segmentGroup,f.index,c.commands);return ba(a.root,f.segmentGroup,b,t,r)}(null===(l=n.snapshot)||void 0===l?void 0:l._lastPathIndex);return o}function ll(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Jr(n){return"object"==typeof n&&null!=n&&n.outlets}function ba(n,a,e,t,r){let c,l={};t&&ki(t,(o,d)=>{l[d]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),c=n===a?e:nh(n,a,e);const s=_o(Ds(c));return new di(s,l,r)}function nh(n,a,e){const t={};return ki(n.children,(r,l)=>{t[l]=r===a?e:nh(r,a,e)}),new Wt(n.segments,t)}class rh{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&ll(t[0]))throw new i.vHH(4003,!1);const r=t.find(Jr);if(r&&r!==Ii(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cl{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function gc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return bo(n,a,e);const t=function Ao(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const c=n.segments[r],s=e[t];if(Jr(s))break;const o=`${s}`,d=t0&&void 0===o)break;if(o&&d&&"object"==typeof d&&void 0===d.outlets){if(!dl(o,d,c))return l;t+=2}else{if(!dl(o,{},c))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[c]=gc(n.children[c],a,l))}),ki(n.children,(l,c)=>{void 0===t[c]&&(r[c]=l)}),new Wt(n.segments,r)}}function bd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=bd(new Wt([],{}),0,e))}),a}function _c(n){const a={};return ki(n,(e,t)=>a[t]=`${e}`),a}function dl(n,a,e){return n==e.path&&yt(a,e.parameters)}class Ja{constructor(a,e){this.id=a,this.url=e}}class bc extends Ja{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Jn extends Ja{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ac extends Ja{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Dr extends Ja{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _f extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ul extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ad extends Ja{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yd extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yc extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mc{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oh{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Md{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wd{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hs{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pl{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hr{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=wc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=wc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=ml(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return ml(a,this._root).map(e=>e.value)}}function wc(n,a){if(n===a.value)return a;for(const e of a.children){const t=wc(n,e);if(t)return t}return null}function ml(n,a){if(n===a.value)return[a];for(const e of a.children){const t=ml(n,e);if(t.length)return t.unshift(a),t}return[]}class Xr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lr(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class lh extends Hr{constructor(a,e){super(a),this.snapshot=e,Xa(this,a)}toString(){return this.snapshot.toString()}}function Cd(n,a){const e=function vd(n,a){const c=new Aa([],{},{},"",{},tt,a,null,n.root,-1,{});return new Ls("",new Xr(c,[]))}(n,a),t=new $i([new al("",{})]),r=new $i({}),l=new $i({}),c=new $i({}),s=new $i(""),o=new Xn(t,r,c,s,l,tt,a,e.root);return o.snapshot=e.root,new lh(new Xr(o,[]),e)}class Xn{constructor(a,e,t,r,l,c,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,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,At.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Td(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 xd(n){return n.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Aa{constructor(a,e,t,r,l,c,s,o,d,u,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this.routeConfig=o,this._urlSegment=d,this._lastPathIndex=u,this._correctedLastPathIndex=f??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 Ls extends Hr{constructor(a,e){super(e),this.url=a,Xa(this,e)}toString(){return Sd(this._root)}}function Xa(n,a){a.value._routerState=n,a.children.forEach(e=>Xa(n,e))}function Sd(n){const a=n.children.length>0?` { ${n.children.map(Sd).join(", ")} } `:"";return`${n.value}${a}`}function gl(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,yt(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),yt(a.params,e.params)||n.params.next(e.params),function Ee(n,a){if(n.length!==a.length)return!1;for(let e=0;eyt(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Qa(n.parent,a.parent))}function _l(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function Si(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return _l(n,t,r);return _l(n,t)})}(n,a,e);return new Xr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(s=>_l(n,s)),c}}const t=function Ag(n){return new Xn(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=>_l(n,l));return new Xr(t,r)}}const ch="ngNavigationCancelingError";function bf(n,a){const{redirectTo:e,navigationBehaviorOptions:t}=Zr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=Af(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function Af(n,a,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[ch]=!0,t.cancellationCode=a,e&&(t.url=e),t}function yf(n){return Ed(n)&&Zr(n.url)}function Ed(n){return n&&n[ch]}class yg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ya,this.attachRef=null}}let ya=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new yg,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Dd=!1;let Ka=(()=>{class n{constructor(e,t,r,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,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=r||tt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Dd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Dd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Dd);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 i.vHH(4013,Dd);this._activatedRoute=e;const r=this.location,c=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,o=new Yi(e,s,r.injector);if(t&&function Hd(n){return!!n.resolveComponentFactory}(t)){const d=t.resolveComponentFactory(c);this.activated=r.createComponent(d,r.length,o)}else this.activated=r.createComponent(c,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Yi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Xn?this.route:a===ya?this.childContexts:this.parent.get(a,e)}}let Mo=(()=>{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")},dependencies:[Ka],encapsulation:2}),n})();function Mf(n,a){var e;return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,a,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:a}function Pd(n){const a=n.children&&n.children.map(Pd),e=a?{...n,children:a}:{...n};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=Mo),e}function Pr(n){return n.outlet||tt}function ts(n,a){const e=n.filter(t=>Pr(t)===a);return e.push(...n.filter(t=>Pr(t)!==a)),e}function Cc(n){var a;if(!n)return null;if(null!==(a=n.routeConfig)&&void 0!==a&&a._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class kd{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),gl(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Lr(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,r[c],t),delete r[c]}),ki(r,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const c=t.getContext(r.outlet);c&&this.deactivateChildRoutes(a,e,c.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=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);if(t&&t.outlet){const c=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],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=Lr(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hs(l.value.snapshot))}),a.children.length&&this.forwardEvent(new wd(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(gl(r),r===l)if(r.component){const s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,s.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),gl(o.route.value),this.activateChildRoutes(a,null,s.children)}else{var c;const o=Cc(r.snapshot),d=null!==(c=o?.get(i._Vd))&&void 0!==c?c:null;s.attachRef=null,s.route=r,s.resolver=d,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(a,null,s.children)}}else this.activateChildRoutes(a,null,t)}}class Ps{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Fe{constructor(a,e){this.component=a,this.route=e}}function uh(n,a,e){const t=n._root;return $t(t,a?a._root:null,e,[t.value])}function Al(n,a,e){return(Cc(a)??e).get(n)}function $t(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Lr(a);return n.children.forEach(c=>{(function vc(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,c=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const o=function hh(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!ga(n.url,a.url);case"pathParamsOrQueryParamsChange":return!ga(n.url,a.url)||!yt(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qa(n,a)||!yt(n.queryParams,a.queryParams);default:return!Qa(n,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Ps(t)):(l.data=c.data,l._resolvedData=c._resolvedData),$t(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fe(s.outlet.component,c))}else c&&ks(a,s,r),r.canActivateChecks.push(new Ps(t)),$t(n,null,l.component?s?s.children:null:e,t,r)})(c,l[c.value.outlet],e,t.concat([c.value]),r),delete l[c.value.outlet]}),ki(l,(c,s)=>ks(c,e.getContext(s),r)),r}function ks(n,a,e){const t=Lr(n),r=n.value;ki(t,(l,c)=>{ks(l,r.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Fe(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function Rs(n){return"function"==typeof n}function xc(n){return n instanceof vs.K||"EmptyError"===n?.name}const Ma=Symbol("INITIAL_VALUE");function kr(){return(0,Nt.w)(n=>(0,fa.a)(n.map(a=>a.pipe((0,dt.q)(1),ti(Ma)))).pipe((0,At.U)(a=>{for(const e of a)if(!0!==e){if(e===Ma)return Ma;if(!1===e||e instanceof di)return e}return!0}),(0,Yt.h)(a=>a!==Ma),(0,dt.q)(1)))}function Sc(n){return(0,il.z)((0,mi.b)(a=>{if(Zr(a))throw bf(0,a)}),(0,At.U)(a=>!0===a))}const Ec={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(n,a,e,t,r){const l=Od(n,a,e);return l.matched?function wl(n,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function vf(n){return n&&Rs(n.canMatch)}(s)?s.canMatch(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(kr(),Sc())}(t=Mf(a,t),a,e).pipe((0,At.U)(c=>!0===c?l:{...Ec})):(0,$e.of)(l)}function Od(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?{...Ec}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const l=(a.matcher||_n)(e,n,a);if(!l)return{...Ec};const c={};ki(l.posParams,(o,d)=>{c[d]=o.path});const s=l.consumed.length>0?{...c,...l.consumed[l.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:l.consumed,remainingSegments:e.slice(l.consumed.length),parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Cl(n,a,e,t,r="corrected"){if(e.length>0&&function gh(n,a,e){return e.some(t=>Dc(n,a,t)&&Pr(t)!==tt)}(n,e,t)){const c=new Wt(a,function Qr(n,a,e,t){const r={};r[tt]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Pr(l)!==tt){const c=new Wt([],{});c._sourceSegment=n,c._segmentIndexShift=a.length,r[Pr(l)]=c}return r}(n,a,t,new Wt(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Hf(n,a,e){return e.some(t=>Dc(n,a,t))}(n,e,t)){const c=new Wt(n.segments,function vl(n,a,e,t,r,l){const c={};for(const s of t)if(Dc(n,e,s)&&!r[Pr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,c[Pr(s)]=o}return{...r,...c}}(n,a,e,t,n.children,r));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Dc(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Os(n,a,e,t){return!!(Pr(n)===t||t!==tt&&Dc(a,e,n))&&("**"===n.path||Od(a,n,e).matched)}function vo(n,a,e){return 0===a.length&&!n.children[e]}const Hc=!1;class Id{constructor(a){this.segmentGroup=a||null}}class Bd{constructor(a){this.urlTree=a}}function sr(n){return(0,Zn._)(new Id(n))}function To(n){return(0,Zn._)(new Bd(n))}class Lc{constructor(a,e,t,r,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const a=Cl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,tt).pipe((0,At.U)(l=>this.createUrlTree(Ds(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,li.K)(l=>{if(l instanceof Bd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Id?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,tt).pipe((0,At.U)(r=>this.createUrlTree(Ds(r),a.queryParams,a.fragment))).pipe((0,li.K)(r=>{throw r instanceof Id?this.noMatchError(r):r}))}noMatchError(a){return new i.vHH(4002,Hc)}createUrlTree(a,e,t){const r=_o(a);return new di(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,At.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,yr.b)(l=>{const c=t.children[l],s=ts(e,l);return this.expandSegmentGroup(a,s,c,l).pipe((0,At.U)(o=>({segment:o,outlet:l})))}),U((l,c)=>(l[c.outlet]=c.segment,l),{}),_e())}expandSegment(a,e,t,r,l,c){return(0,Dn.D)(t).pipe((0,yr.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,c).pipe((0,li.K)(d=>{if(d instanceof Id)return(0,$e.of)(null);throw d}))),(0,Ar.P)(s=>!!s),(0,li.K)((s,o)=>{if(xc(s))return vo(e,r,l)?(0,$e.of)(new Wt([],{})):sr(e);throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,c,s){return Os(r,e,l,c)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,c):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c):sr(e):sr(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?To(l):this.lineralizeSegments(t,l).pipe((0,Ti.z)(c=>{const s=new Wt(c,{});return this.expandSegment(a,s,e,c,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){const{matched:s,consumedSegments:o,remainingSegments:d,positionalParamSegments:u}=Od(e,r,l);if(!s)return sr(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?To(h):this.lineralizeSegments(r,h).pipe((0,Ti.z)(f=>this.expandSegment(a,e,t,f.concat(d),c,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){return"**"===t.path?(a=Mf(t,a),t.loadChildren?(t._loadedRoutes?(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,At.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}))):Co(e,t,r,a).pipe((0,Nt.w)(({matched:c,consumedSegments:s,remainingSegments:o})=>{var d;return c?(a=null!==(d=t._injector)&&void 0!==d?d:a,this.getChildConfig(a,t,r).pipe((0,Ti.z)(h=>{var f;const b=null!==(f=h.injector)&&void 0!==f?f:a,N=h.routes,{segmentGroup:Q,slicedSegments:pe}=Cl(e,s,o,N),Pe=new Wt(Q.segments,Q.children);if(0===pe.length&&Pe.hasChildren())return this.expandChildren(b,N,Pe).pipe((0,At.U)(oa=>new Wt(s,oa)));if(0===N.length&&0===pe.length)return(0,$e.of)(new Wt(s,{}));const _t=Pr(t)===l;return this.expandSegment(b,Pe,N,pe,_t?tt:l,!0).pipe((0,At.U)(Ut=>new Wt(s.concat(Ut.segments),Ut.children)))}))):sr(e)}))}getChildConfig(a,e,t){return e.children?(0,$e.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,$e.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Df(n,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function wg(n){return n&&Rs(n.canLoad)}(s)?s.canLoad(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(kr(),Sc())}(a,e,t).pipe((0,Ti.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,mi.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Pf(n){return(0,Zn._)(Af(Hc,3))}())):(0,$e.of)({routes:[],injector:a})}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[tt])return(0,Zn._)(new i.vHH(4e3,Hc));r=r.children[tt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new di(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ki(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 c={};return ki(e.children,(s,o)=>{c[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,c)}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 i.vHH(4001,Hc);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class Is{}class v{constructor(a,e,t,r,l,c,s,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=s,this.urlSerializer=o}recognize(){const a=Cl(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,tt).pipe((0,At.U)(e=>{if(null===e)return null;const t=new Aa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Xr(t,e),l=new Ls(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=Td(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Dn.D)(Object.keys(t.children)).pipe((0,yr.b)(r=>{const l=t.children[r],c=ts(e,r);return this.processSegmentGroup(a,c,l,r)}),U((r,l)=>r&&l?(r.push(...l),r):null),nt(r=>null!==r),(0,re.d)(null),_e(),(0,At.U)(r=>{if(null===r)return null;const l=$(r);return function H(n){n.sort((a,e)=>a.value.outlet===tt?-1:e.value.outlet===tt?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,r,l){return(0,Dn.D)(e).pipe((0,yr.b)(c=>{var s;return this.processSegmentAgainstRoute(null!==(s=c._injector)&&void 0!==s?s:a,c,t,r,l)}),(0,Ar.P)(c=>!!c),(0,li.K)(c=>{if(xc(c))return vo(t,r,l)?(0,$e.of)([]):(0,$e.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,r,l){if(e.redirectTo||!Os(e,t,r,l))return(0,$e.of)(null);let c;if("**"===e.path){var s,o;const d=r.length>0?Ii(r).parameters:{},u=ft(t)+r.length,h=new Aa(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(s=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==s?s:null,e,we(t),u,on(e),u);c=(0,$e.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else c=Co(t,e,r,a).pipe((0,At.U)(({matched:d,consumedSegments:u,remainingSegments:h,parameters:f})=>{var b,N;if(!d)return null;const Q=ft(t)+u.length;return{snapshot:new Aa(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(b=null!==(N=e.component)&&void 0!==N?N:e._loadedComponent)&&void 0!==b?b:null,e,we(t),Q,on(e),Q),consumedSegments:u,remainingSegments:h}}));return c.pipe((0,Nt.w)(d=>{var u,h;if(null===d)return(0,$e.of)(null);const{snapshot:f,consumedSegments:b,remainingSegments:N}=d;a=null!==(u=e._injector)&&void 0!==u?u:a;const Q=null!==(h=e._loadedInjector)&&void 0!==h?h:a,pe=function O(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:_t}=Cl(t,b,N,pe.filter(Ut=>void 0===Ut.redirectTo),this.relativeLinkResolution);if(0===_t.length&&Pe.hasChildren())return this.processChildren(Q,pe,Pe).pipe((0,At.U)(Ut=>null===Ut?null:[new Xr(f,Ut)]));if(0===pe.length&&0===_t.length)return(0,$e.of)([new Xr(f,[])]);const kt=Pr(e)===l;return this.processSegment(Q,pe,Pe,_t,kt?tt:l).pipe((0,At.U)(Ut=>null===Ut?null:[new Xr(f,Ut)]))}))}}function z(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function $(n){const a=[],e=new Set;for(const t of n){if(!z(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=$(t.children);a.push(new Xr(t.value,r))}return a.filter(t=>!e.has(t))}function we(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ft(n){var a;let e=n,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function Mi(n){return n.data||{}}function on(n){return n.resolve||{}}const Ir=Symbol("RouteTitle");function Tg(n){return"string"==typeof n.title||null===n.title}function Rf(n){return(0,Nt.w)(a=>{const e=n(a);return e?(0,Dn.D)(e).pipe((0,At.U)(()=>a)):(0,$e.of)(a)})}let xg=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var l;t=null!==(l=this.getResolvedTitleForRoute(r))&&void 0!==l?l:t,r=r.children.find(c=>c.outlet===tt)}return t}getResolvedTitleForRoute(e){return e.data[Ir]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(is)},providedIn:"root"}),n})(),is=(()=>{class n extends xg{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(se))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Pc{}class yy extends class Ay{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Of=new i.OlP("",{providedIn:"root",factory:()=>({})}),If=new i.OlP("ROUTES");let bh=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,$e.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Bi(e.loadComponent()).pipe((0,mi.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),ii(()=>{this.componentLoaders.delete(e)})),r=new ac(t,()=>new De.x).pipe(Ts());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,At.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,d,u=!1;Array.isArray(s)?d=s:(o=s.create(e).injector,d=Gr(o.get(If,[],i.XFs.Self|i.XFs.Optional)));return{routes:d.map(Pd),injector:o}}),ii(()=>{this.childrenLoaders.delete(t)})),c=new ac(l,()=>new De.x).pipe(Ts());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Bi(e()).pipe((0,Ti.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,$e.of)(t):(0,Dn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wy{}class Cy{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function vy(n){throw n}function LT(n,a,e){return a.parse("/")}const Ty={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wa(){var n,a;const e=(0,i.f3M)(gd),t=(0,i.f3M)(ya),r=(0,i.f3M)(w.Ye),l=(0,i.f3M)(i.zs3),c=(0,i.f3M)(i.Sil),s=null!==(n=(0,i.f3M)(If,{optional:!0}))&&void 0!==n?n:[],o=null!==(a=(0,i.f3M)(Of,{optional:!0}))&&void 0!==a?a:{},d=(0,i.f3M)(is),u=(0,i.f3M)(xg,{optional:!0}),h=(0,i.f3M)(wy,{optional:!0}),f=(0,i.f3M)(Pc,{optional:!0}),b=new Ai(null,e,t,r,l,c,Gr(s));return h&&(b.urlHandlingStrategy=h),f&&(b.routeReuseStrategy=f),b.titleStrategy=u??d,function Eg(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)}(o,b),b}let Ai=(()=>{class n{constructor(e,t,r,l,c,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 De.x,this.errorHandler=vy,this.malformedUriErrorHandler=LT,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,$e.of)(void 0),this.urlHandlingStrategy=new Cy,this.routeReuseStrategy=new yy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(bh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new oh(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Mc(f)),this.ngModule=c.get(i.h0i),this.console=c.get(i.c2e);const h=c.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function rl(){return new di(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cd(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,Yt.h)(r=>0!==r.id),(0,At.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Nt.w)(r=>{let l=!1,c=!1;return(0,$e.of)(r).pipe((0,mi.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Nt.w)(s=>{const o=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Bf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,Nt.w)(h=>{const f=this.transitions.getValue();return t.next(new bc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Ur.E:Promise.resolve(h)}),function _h(n,a,e,t){return(0,Nt.w)(r=>function kf(n,a,e,t,r){return new Lc(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,At.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mi.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Or(n,a,e,t,r,l){return(0,Ti.z)(c=>function Qt(n,a,e,t,r,l,c="emptyOnly",s="legacy"){return new v(n,a,e,t,r,c,s,l).recognize().pipe((0,Nt.w)(o=>null===o?function Nd(n){return new Bn.y(a=>a.error(n))}(new Is):(0,$e.of)(o)))}(n,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,r,l).pipe((0,At.U)(s=>({...c,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mi.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"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 _f(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:N,restoredState:Q,extras:pe}=s,Pe=new bc(f,this.serializeUrl(b),N,Q);t.next(Pe);const _t=Cd(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:_t,urlAfterRedirects:b,extras:{...pe,skipLocationChange:!1,replaceUrl:!1}},(0,$e.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),Ur.E}),(0,mi.b)(s=>{const o=new ul(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,At.U)(s=>r={...s,guards:uh(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function ph(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,$e.of)({...e,guardsResult:!0}):function Wi(n,a,e,t){return(0,Dn.D)(n).pipe((0,Ti.z)(r=>function Ef(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 c=l.map(s=>{const o=Al(s,a,r);return Bi(function wr(n){return n&&Rs(n.canDeactivate)}(o)?o.canDeactivate(n,a,e,t):o(n,a,e,t)).pipe((0,Ar.P)())});return(0,$e.of)(c).pipe(kr())}(r.component,r.route,e,a,t)),(0,Ar.P)(r=>!0!==r,!0))}(c,t,r,n).pipe((0,Ti.z)(s=>s&&function Tc(n){return"boolean"==typeof n}(s)?function fh(n,a,e,t){return(0,Dn.D)(a).pipe((0,yr.b)(r=>(0,Ga.z)(function Rr(n,a){return null!==n&&a&&a(new Md(n)),(0,$e.of)(!0)}(r.route.parent,t),function mh(n,a){return null!==n&&a&&a(new hl(n)),(0,$e.of)(!0)}(r.route,t),function Sf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function Cf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(c)).filter(c=>null!==c).map(c=>nr(()=>{const s=c.guards.map(o=>{const d=Al(o,c.node,e);return Bi(function Rd(n){return n&&Rs(n.canActivateChild)}(d)?d.canActivateChild(t,n):d(t,n)).pipe((0,Ar.P)())});return(0,$e.of)(s).pipe(kr())}));return(0,$e.of)(l).pipe(kr())}(n,r.path,e),function Ml(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=>nr(()=>{const c=Al(l,a,e);return Bi(function yl(n){return n&&Rs(n.canActivate)}(c)?c.canActivate(a,n):c(a,n)).pipe((0,Ar.P)())}));return(0,$e.of)(r).pipe(kr())}(n,r.route,e))),(0,Ar.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,At.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,mi.b)(s=>{if(r.guardsResult=s.guardsResult,Zr(s.guardsResult))throw bf(0,s.guardsResult);const o=new Ad(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,Yt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Rf(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,mi.b)(o=>{const d=new yd(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}),(0,Nt.w)(o=>{let d=!1;return(0,$e.of)(o).pipe(function Cg(n,a){return(0,Ti.z)(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,yr.b)(c=>function vg(n,a,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!Tg(r)&&(l[Ir]=r.title),function Tl(n,a,e,t){const r=function _y(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,Dn.D)(r).pipe((0,Ti.z)(c=>function by(n,a,e,t){const r=Al(n,a,t);return Bi(r.resolve?r.resolve(a,e):r(a,e))}(n[c],a,e,t).pipe((0,Ar.P)(),(0,mi.b)(s=>{l[c]=s}))),B(1),(0,xi.h)(l),(0,li.K)(c=>xc(c)?Ur.E:(0,Zn._)(c)))}(l,n,a,t).pipe((0,At.U)(c=>(n._resolvedData=c,n.data=Td(n,e).resolve,r&&Tg(r)&&(n.data[Ir]=r.title),null)))}(c.route,t,n,a)),(0,mi.b)(()=>l++),B(1),(0,Ti.z)(c=>l===r.length?(0,$e.of)(e):Ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mi.b)({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,mi.b)(o=>{const d=new yc(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}))}),Rf(s=>{const o=d=>{var u;const h=[];null!==(u=d.routeConfig)&&void 0!==u&&u.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe((0,mi.b)(f=>{d.component=f}),(0,At.U)(()=>{})));for(const f of d.children)h.push(...o(f));return h};return(0,fa.a)(o(s.targetSnapshot.root)).pipe((0,re.d)(),(0,dt.q)(1))}),Rf(()=>this.afterPreactivation()),(0,At.U)(s=>{const o=function bg(n,a,e){const t=_l(n,a._root,e?e._root:void 0);return new lh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:o}}),(0,mi.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,At.U)(t=>(new kd(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,mi.b)({next(){l=!0},complete(){l=!0}}),ii(()=>{var s;l||c||this.cancelNavigationTransition(r,"",1),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,li.K)(s=>{if(c=!0,Ed(s)){yf(s)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new Ac(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(d),yf(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Bf(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const d=new Dr(r.id,this.serializeUrl(r.extractedUrl),s,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(d);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return Ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},c=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(c){const o={...c};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Pd),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:c,queryParamsHandling:s,preserveFragment:o}=t,d=r||this.routerState.root,u=o?this.currentUrlTree.fragment:c;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),ih(d,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Zr(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 Dg(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Jn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,c){if(this.disposed)return Promise.resolve(!1);let s,o,d;c?(s=c.resolve,o=c.reject,d=c.promise):d=new Promise((N,Q)=>{s=N,o=Q});const u=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(l.replaceUrl||l.skipLocationChange){var f;h=null!==(f=this.browserPageId)&&void 0!==f?f:0}else{var b;h=(null!==(b=this.browserPageId)&&void 0!==b?b:0)+1}else h=0;return this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:o,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(N=>Promise.reject(N))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...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){if("computed"===this.canceledNavigationResolution){var r,l;const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Ac(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),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:function(){return wa()},providedIn:"root"}),n})();function Bf(n){return"imperative"!==n}let So=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),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})(),yh=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof Jn&&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,c){if(0!==e||t||r||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(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:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),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})();class Mh{}let Nf=(()=>{class n{preload(e,t){return t().pipe((0,li.K)(()=>(0,$e.of)(null)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xy=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn),(0,yr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var l,c;o.providers&&!o._injector&&(o._injector=(0,i.MMx)(o.providers,e,`Route: ${o.path}`));const d=null!==(l=o._injector)&&void 0!==l?l:e,u=null!==(c=o._loadedInjector)&&void 0!==c?c:d;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(d,o));else if(o.children||o._loadedRoutes){var s;r.push(this.processRoutes(u,null!==(s=o.children)&&void 0!==s?s:o._loadedRoutes))}}return(0,Dn.D)(r).pipe((0,ci.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,$e.of)(null);const l=r.pipe((0,Ti.z)(c=>{var s;return null===c?(0,$e.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(null!==(s=c.injector)&&void 0!==s?s:e,c.routes))}));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Dn.D)([l,c]).pipe((0,ci.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Mh),i.LFG(bh))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Sy=new i.OlP("");let Lg=(()=>{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 bc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof pl&&(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 pl(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 Pg=new i.OlP("ROUTER_FORROOT_GUARD"),kg=new i.OlP(""),Rg=[w.Ye,{provide:gd,useClass:_a},{provide:Ai,useFactory:wa},ya,{provide:Xn,useFactory:function wh(n){return n.routerState.root},deps:[Ai]},bh];function Og(){return new i.PXZ("Router",Ai)}let kc=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[Rg,[],Ch(e),{provide:Pg,useFactory:Dy,deps:[[Ai,new i.FiY,new i.tp0]]},{provide:Of,useValue:t||{}},null!=t&&t.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Sy,useFactory:()=>{const n=(0,i.f3M)(Ai),a=(0,i.f3M)(w.EM),e=(0,i.f3M)(Of);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Lg(n,a,e)}},null!=t&&t.preloadingStrategy?Vf(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Og},null!=t&&t.initialNavigation?Hy(t):[],[{provide:Ng,useFactory:Bg},{provide:i.tb,multi:!0,useExisting:Ng}]]}}static forChild(e){return{ngModule:n,providers:[Ch(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pg,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Dy(n){return"guarded"}function Ch(n){return[{provide:If,multi:!0,useValue:n}]}function Bg(){const n=(0,i.f3M)(i.zs3);return a=>{var e,t;const r=n.get(i.z2F);if(a!==r.components[0])return;const l=n.get(Ai),c=n.get(Vg);1===n.get(Fg)&&l.initialNavigation(),null===(e=n.get(kg,null,i.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=n.get(Sy,null,i.XFs.Optional))||void 0===t||t.init(),l.resetRootComponentType(r.componentTypes[0]),c.next(),c.complete()}}const Ng=new i.OlP("");function Hy(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ai);return()=>{n.setUpLocationChangeListener()}}},{provide:Fg,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:Fg,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const a=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const l=n.get(Ai),c=n.get(Vg);(function t(r){n.get(Ai).events.pipe((0,Yt.h)(c=>c instanceof Jn||c instanceof Ac||c instanceof Dr),(0,At.U)(c=>c instanceof Jn||c instanceof Ac&&(0===c.code||1===c.code)&&null),(0,Yt.h)(c=>null!==c),(0,dt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||c.closed?(0,$e.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Vg=new i.OlP("",{factory:()=>new De.x}),Fg=new i.OlP("",{providedIn:"root",factory:()=>1});function Vf(n){return[xy,{provide:kg,useExisting:xy},{provide:Mh,useExisting:n}]}let vh;try{vh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vh=!1}let xl,Ni=(()=>{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&&!vh)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ff=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Th(){if(xl)return xl;if("object"!=typeof document||!document)return xl=new Set(Ff),xl;let n=document.createElement("input");return xl=new Set(Ff.filter(a=>(n.setAttribute("type",a),n.type===a))),xl}let xh,zd,Do,qd;function Kr(n){return function Ry(){if(null==xh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xh=!0}))}finally{xh=xh||!1}return xh}()?n:!!n.capture}function Ho(){if(null==Do){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Do=!1,Do;if("scrollBehavior"in document.documentElement.style)Do=!0;else{const n=Element.prototype.scrollTo;Do=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Do}function jd(){if("object"!=typeof document||!document)return 0;if(null==zd){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),zd=0,0===n.scrollLeft&&(n.scrollLeft=1,zd=0===n.scrollLeft?1:2),n.remove()}return zd}function Eh(n){if(function Sh(){if(null==qd){const n=typeof document<"u"?document.head:null;qd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return qd}()){const a=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Yd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function or(n){return n.composedPath?n.composedPath()[0]:n.target}function Bs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function An(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var $d=T(8372);function Oh(n){return(0,Yt.h)((a,e)=>n<=e)}function Ih(n,a=Me.y){return n=n??nM,(0,Wn.e)((e,t)=>{let r,l=!0;e.subscribe((0,br.x)(t,c=>{const s=a(c);(l||!n(r,s))&&(l=!1,r=s,t.next(c))}))})}function nM(n,a){return n===a}var l1=T(5032);function rt(n){return(0,Wn.e)((a,e)=>{(0,Wr.Xf)(n).subscribe((0,br.x)(e,()=>e.complete(),l1.Z)),!e.closed&&a.subscribe(e)})}function je(n){return null!=n&&"false"!=`${n}`}function Zi(n,a=0){return qf(n)?Number(n):a}function qf(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Zd(n){return Array.isArray(n)?n:[n]}function Ln(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Vi(n){return n instanceof i.SBq?n.nativeElement:n}let Yf=(()=>{class n{create(e){return typeof MutationObserver>"u"?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})(),c1=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Vi(e);return new Bn.y(r=>{const c=this._observeElement(t).subscribe(r);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,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(Yf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bh=(()=>{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=Zi(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,$d.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(c1),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})(),Sl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yf]}),n})();const Jd=new Set;let Vs,d1=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u1}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Wf(n){if(!Jd.has(n))try{Vs||(Vs=document.createElement("style"),Vs.setAttribute("type","text/css"),document.head.appendChild(Vs)),Vs.sheet&&(Vs.sheet.insertRule(`@media ${n} {body{ }}`,0),Jd.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function u1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Nh=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Oc(Zd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Oc(Zd(e)).map(c=>this._registerQuery(c).observable);let l=(0,fa.a)(r);return l=(0,Ga.z)(l.pipe((0,dt.q)(1)),l.pipe(Oh(1),(0,$d.b)(0))),l.pipe((0,At.U)(c=>{const s={matches:!1,breakpoints:{}};return c.forEach(({matches:o,query:d})=>{s.matches=s.matches||o,s.breakpoints[d]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Bn.y(c=>{const s=o=>this._zone.run(()=>c.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(ti(t),(0,At.U)(({matches:c})=>({query:e,matches:c})),rt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(d1),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Oc(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function Xd(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Gf="cdk-describedby-message",$f="cdk-describedby-host";let Vh=0,p1=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Vh++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Vh++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Fh(t,r);"string"!=typeof t?(f1(t,this._id),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 c=Fh(t,r);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const s=this._messageRegistry.get(c);s&&0===s.referenceCount&&this._deleteMessageElement(c)}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(`[${$f}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Gf));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function oM(n,a,e){const t=Xd(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($f,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function lM(n,a,e){const r=Xd(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($f)}_isElementDescribedByMessage(e,t){const r=Xd(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=r.indexOf(c)}_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(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function f1(n,a){n.id||(n.id=`${Gf}-${a}-${Vh++}`)}class m1{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Bt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,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,mi.b)(e=>this._pressedLetters.push(e)),(0,$d.b)(a),(0,Yt.h)(()=>this._pressedLetters.length>0),(0,At.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||An(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ta extends m1{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class zh extends m1{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 Qd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function uM(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 dM(n){try{return n.frameElement}catch{return null}}(function gM(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Zf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Zf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _1(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 b1(n){return!function g1(n){return function fM(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function hM(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function pM(n){return function mM(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vt(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vt(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Zf(n){if(!Vt(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class _M{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 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,dt.q)(1)).subscribe(a)}}let Kd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new _M(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qd),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eu(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function rs(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 yM=new i.OlP("cdk-input-modality-detector-options"),Jf={ignoreKeys:[18,17,224,91,16]},Ic=Kr({passive:!0,capture:!0});let Px=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=c=>{var s,o;null!==(s=this._options)&&void 0!==s&&null!==(o=s.ignoreKeys)&&void 0!==o&&o.some(d=>d===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=or(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(eu(c)?"keyboard":"mouse"),this._mostRecentTarget=or(c))},this._onTouchstart=c=>{rs(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=or(c))},this._options={...Jf,...l},this.modalityDetected=this._modality.pipe(Oh(1)),this.modalityChanged=this.modalityDetected.pipe(Ih()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ic),r.addEventListener("mousedown",this._onMousedown,Ic),r.addEventListener("touchstart",this._onTouchstart,Ic)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ic),document.removeEventListener("mousedown",this._onMousedown,Ic),document.removeEventListener("touchstart",this._onTouchstart,Ic))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(yM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kx=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Rx(){return null}}),MM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let A1=(()=>{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,c;return 1===t.length&&"number"==typeof t[0]?c=t[0]:[l,c]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==c&&r&&(c=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,c){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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let d=or(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const r=Vi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=Eh(r)||this._getDocument(),c=this._elementInfo.get(r);if(c)return t&&(c.checkChildren=!0),c.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Vi(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=Vi(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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=or(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,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fs),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fs)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(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,Fs),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fs),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(Nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,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}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(qh,tu,y1),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qh,tu):2===t&&e.add(qh,y1)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sl]}),n})();const vM=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function TM(){return(0,i.f3M)(w.K0)}}),xM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Vn=(()=>{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 w1(n){var a;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?xM.test(navigator.language)?"rtl":"ltr":"rtl"===e?"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(vM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function EM(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 Ox(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 Bc=["*"];let v1=(()=>{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})(),Uh=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const T1=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ta(){return!0}});let gt=(()=>{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!Bs()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1),i.LFG(T1,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ko,ko]}),n})();function xa(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 as(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 Sa(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 Oo(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?Zi(e):this.defaultTabIndex}}}function E1(n){return class extends n{constructor(...a){super(...a),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 iu(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Bn.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 Gh=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qf(){return(0,i.f3M)(i.soG)}});class Br{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Nc=new i.OlP("mat-date-formats"),Ix=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Kf(n,a){const e=Array(n);for(let t=0;t{class n extends Br{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 Kf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Kf(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 Kf(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,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ix.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(Gh,8),i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const DM={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 HM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Br,useClass:D1}]}),n})(),e0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Nc,useValue:DM}],imports:[HM]}),n})(),Vc=(()=>{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})(),LM=(()=>{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 Fc(n,a,e){n.nativeElement.classList.toggle(a,e)}let $h=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();class n0{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const PM={enterDuration:225,exitDuration:150},H1=Kr({passive:!0}),kM=["mousedown","touchstart"],RM=["mouseup","mouseleave","touchend","touchcancel"];class OM{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Vi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...PM,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const c=t.radius||function Nx(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,d=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-c+"px",u.style.top=o-c+"px",u.style.height=2*c+"px",u.style.width=2*c+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,N="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,Q=new n0(this,u,t,N);u.style.transform="scale3d(1, 1, 1)",Q.state=0,t.persistent||(this._mostRecentTransientRipple=Q);let pe=null;return!N&&(d||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(Q),_t=()=>this._destroyRipple(Q);u.addEventListener("transitionend",Pe),u.addEventListener("transitioncancel",_t),pe={onTransitionEnd:Pe,onTransitionCancel:_t}}),this._activeRipples.set(Q,pe),(N||!d)&&this._finishRippleTransition(Q),Q}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...PM,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Vi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(kM))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RM),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=eu(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,H1)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(kM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}),this._pointerUpEventsRegistered&&RM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}))}}const IM=new i.OlP("mat-ripple-global-options");let ia=(()=>{class n{constructor(e,t,r,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new OM(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Ni),i.Y36(IM,8),i.Y36(i.QbO,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})(),na=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),zs=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),nu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt]}),n})();const r0=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),ru=new i.OlP("MatOptgroup");let Io=0;class a0{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let VM=(()=>{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-"+Io++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=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)&&!An(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 a0(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})(),js=(()=>{class n extends VM{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(r0,8),i.Y36(ru,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:Bc,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,EM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Ox,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))},dependencies:[ia,w.O5,zs],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function s0(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let c=0;ce+t?Math.max(0,n-t+a):e}let au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,w.ez,gt,nu]}),n})();const FM=["mat-button",""],Zh=["*"],zc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Jh=as(xa(Sa(class{constructor(n){this._elementRef=n}})));let Lt=(()=>{class n extends Jh{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 zc)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(vr),i.Y36(i.QbO,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(ia,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:FM,ngContentSelectors:Zh,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)(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()))},dependencies:[ia],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),Ea=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();var P1=T(1144),Da=T(576),Xh=T(3268);const k1=["addListener","removeListener"],c0=["addEventListener","removeEventListener"],zM=["on","off"];function qs(n,a,e,t){if((0,Da.m)(e)&&(t=e,e=void 0),t)return qs(n,a,e).pipe((0,Xh.Z)(t));const[r,l]=function I1(n){return(0,Da.m)(n.addEventListener)&&(0,Da.m)(n.removeEventListener)}(n)?c0.map(c=>s=>n[c](a,s,e)):function O1(n){return(0,Da.m)(n.addListener)&&(0,Da.m)(n.removeListener)}(n)?k1.map(R1(n,a)):function jM(n){return(0,Da.m)(n.on)&&(0,Da.m)(n.off)}(n)?zM.map(R1(n,a)):[];if(!r&&(0,P1.z)(n))return(0,Ti.z)(c=>qs(c,a,e))((0,Wr.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new Bn.y(c=>{const s=(...o)=>c.next(1l(s)})}function R1(n,a){return e=>t=>n[e](a,t)}var d0=T(4408);const ou={schedule(n){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=ou;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(l=>{e=void 0,n(l)});return new Bt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:a}=ou;return(a?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:a}=ou;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var u0=T(7565);const YM=new class qM extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Nr extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ou.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ou.cancelAnimationFrame(e),a._scheduled=void 0)}});let Qh,h0=1;const Kh={};function B1(n){return n in Kh&&(delete Kh[n],!0)}const WM={setImmediate(n){const a=h0++;return Kh[a]=!0,Qh||(Qh=Promise.resolve()),Qh.then(()=>B1(a)&&n()),a},clearImmediate(n){B1(n)}},{setImmediate:GM,clearImmediate:N1}=WM,ep={setImmediate(...n){const{delegate:a}=ep;return(a?.setImmediate||GM)(...n)},clearImmediate(n){const{delegate:a}=ep;return(a?.clearImmediate||N1)(n)},delegate:void 0},tp=new class V1 extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class $M extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ep.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ep.clearImmediate(e),a._scheduled=void 0)}});var Ha=T(4986),f0=T(2805);function m0(n,a=Ha.z){return function p0(n){return(0,Wn.e)((a,e)=>{let t=!1,r=null,l=null,c=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const d=r;r=null,e.next(d)}c&&e.complete()},o=()=>{l=null,c&&e.complete()};a.subscribe((0,br.x)(e,d=>{t=!0,r=d,l||(0,Wr.Xf)(n(d)).subscribe(l=(0,br.x)(e,s,o))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,f0.H)(n,a))}let jc=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Bn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(m0(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,Yt.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=Vi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>qs(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(Ni),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bo=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new Bn.y(c=>this.ngZone.runOutsideAngular(()=>qs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(c)))}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!=jd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==jd()?e.left=e.right:1==jd()&&(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;Ho()?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 c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?r:t:"end"==e&&(e=c?t:r),c&&2==jd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==jd()?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(jc),i.Y36(i.R0b),i.Y36(Vn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),No=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,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(m0(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(Ni),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),La=(()=>{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:[ko,La,ko,La]}),n})();class A0{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 qc extends A0{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Dl extends A0{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class tw extends A0{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class y0{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof qc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Dl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof tw?(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 iw extends y0{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=c=>{const s=c.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=c,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||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let rp=(()=>{class n extends y0{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const c=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(s,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(c,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),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return 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})(),Fo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Fi=T(6451);const M0=Ho();class w0{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=Ln(-this._previousScrollPosition.left),a.style.top=Ln(-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||"",c=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),M0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),M0&&(t.scrollBehavior=l,r.scrollBehavior=c)}}_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 C0{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 Y1{enable(){}disable(){}attach(){}}function v0(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function W1(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class nw{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();v0(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 rw=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Y1,this.close=c=>new C0(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new w0(this._viewportRuler,this._document),this.reposition=c=>new nw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jc),i.LFG(No),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class lu{constructor(a){if(this.scrollStrategy=new Y1,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 Xx{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let U1=(()=>{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})(),x0=(()=>{class n extends U1{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const s=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aw=(()=>{class n extends U1{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=or(l)},this._clickListener=l=>{const c=or(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let d=o.length-1;d>-1;d--){const u=o[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(c)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Ni),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vr=(()=>{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||Bs()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Ln(this._config.width),a.height=Ln(this._config.height),a.minWidth=Ln(this._config.minWidth),a.minHeight=Ln(this._config.minHeight),a.maxWidth=Ln(this._config.maxWidth),a.maxHeight=Ln(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=Zd(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(rt((0,Fi.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Un="cdk-overlay-connected-position-bounding-box",Hl=/([A-Za-z%]+)$/;class sp{constructor(a,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new De.x,this._resizeSubscription=Bt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Un),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let c;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),d=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(d,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,d,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!c||c.overlayFit.visibleAreao&&(o=u,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Fn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Un),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 c=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?c: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=Ll(e);let{x:c,y:s}=a,o=this._getOffset(r,"x"),d=this._getOffset(r,"y");o&&(c+=o),d&&(s+=d);let f=0-s,b=s+l.height-t.height,N=this._subtractOverflows(l.width,0-c,c+l.width-t.width),Q=this._subtractOverflows(l.height,f,b),pe=N*Q;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:Q===l.height,fitsInViewportHorizontally:N==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,c=op(this._overlayRef.getConfig().minHeight),s=op(this._overlayRef.getConfig().minWidth),d=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=c&&c<=r)&&d}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=Ll(e),l=this._viewportRect,c=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),d=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?d||-c:a.xN&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-N/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),N=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>N&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-N/2)}return{top:c,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,c=this._overlayRef.getConfig().maxWidth;r.height=Ln(t.height),r.top=Ln(t.top),r.bottom=Ln(t.bottom),r.width=Ln(t.width),r.left=Ln(t.left),r.right=Ln(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=Ln(l)),c&&(r.maxWidth=Ln(c))}this._lastBoundingBoxSize=t,Fn(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Fn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Fn(t,this._getExactOverlayY(e,a,u)),Fn(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),d=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),d&&(s+=`translateY(${d}px)`),t.transform=s.trim(),c.maxHeight&&(r?t.maxHeight=Ln(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(r?t.maxWidth=Ln(c.maxWidth):l&&(t.maxWidth="")),Fn(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=Ln(l.y),r}_getExactOverlayX(a,e,t){let c,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=Ln(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:W1(a,t),isOriginOutsideView:v0(a,t),isOverlayClipped:W1(e,t),isOverlayOutsideView:v0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Zd(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 Fn(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function op(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Hl);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Ll(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 Pl="cdk-global-overlay-wrapper";class Wc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Pl),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:c,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||c&&"100%"!==c&&"100vw"!==c),d=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",N="",Q="";o?Q="flex-start":"center"===u?(Q="center",f?N=h:b=h):f?"left"===u||"end"===u?(Q="flex-end",b=h):("right"===u||"start"===u)&&(Q="flex-start",N=h):"left"===u||"start"===u?(Q="flex-start",b=h):("right"===u||"end"===u)&&(Q="flex-end",N=h),a.position=this._cssPosition,a.marginLeft=o?"0":b,a.marginTop=d?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":N,e.justifyContent=Q,e.alignItems=d?"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(Pl),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Uc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Wc}flexibleConnectedTo(e){return new sp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(No),i.LFG(w.K0),i.LFG(Ni),i.LFG(Vr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gc=0,yn=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=s,this._ngZone=o,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),c=new lu(e);return c.direction=c.direction||this._directionality.value,new Ys(l,t,r,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Gc++,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 iw(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rw),i.LFG(Vr),i.LFG(i._Vd),i.LFG(Uc),i.LFG(x0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Vn),i.LFG(w.Ye),i.LFG(aw),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const $c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lp=new i.OlP("cdk-connected-overlay-scroll-strategy");let S0=(()=>{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})(),E0=(()=>{class n{constructor(e,t,r,l,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Bt.w0.EMPTY,this._attachSubscription=Bt.w0.EMPTY,this._detachSubscription=Bt.w0.EMPTY,this._positionSubscription=Bt.w0.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 Dl(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=$c);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&&!An(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 lu({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 S0?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(nt(()=>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(yn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(lp),i.Y36(Vn,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 $1={provide:lp,deps:[yn],useFactory:function G1(n){return()=>n.scrollStrategies.reposition()}};let zo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yn,$1],imports:[ko,Fo,El,El]}),n})();class D0{}const Ws="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Et(n,a=null){return{type:4,styles:a,timings:n}}function uu(n,a=null){return{type:3,steps:n,options:a}}function J1(n,a=null){return{type:2,steps:n,options:a}}function Ie(n){return{type:6,styles:n,offset:null}}function Rt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Us(n){return{type:5,steps:n}}function Pt(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function kl(n=null){return{type:9,options:n}}function Fr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function hu(n){Promise.resolve(null).then(n)}class Rl{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class P0{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?hu(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,s)=>Math.max(c,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}}const Q1=["connectionContainer"],K1=["inputContainer"],k0=["label"];function R0(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function ow(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function e_(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 t_(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function i_(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function n_(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,e_,4,1,"ng-container",12),i.YNc(3,t_,1,0,"ng-content",12),i.YNc(4,i_,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 lw(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function r_(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 a_(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 O0(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 cp(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,O0,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 I0=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],s_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const B0=new i.OlP("MatError");let jo=(()=>{class n{constructor(e,t){this.id="mat-error-"+o_++,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:B0,useExisting:n}])]}),n})();const l_={transitionMessages:wi("transitionMessages",[Rt("enter",Ie({opacity:1,transform:"translateY(0%)"})),Pt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),dw=0;const N0=new i.OlP("MatHint");let uw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+dw++}}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:N0,useExisting:n}])]}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),c_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const hw=new i.OlP("MatPrefix"),V0=new i.OlP("MatSuffix");let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:V0,useExisting:n}])]}),n})(),F0=0;const pw=as(class{constructor(n){this._elementRef=n}},"primary"),fw=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Jc=new i.OlP("MatFormField");let cn=(()=>{class n extends pw{constructor(e,t,r,l,c,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=c,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F0++,this._labelId="mat-form-field-label-"+F0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=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(ti(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Fi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ti(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ti(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,qs(this._label.nativeElement,"transitionend").pipe((0,dt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(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*N+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,gt,Sl,gt]}),n})();function Xc(n){return n&&"function"==typeof n.connect}class Pa{applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;if(null==c.previousIndex){const f=t(c,s,o);d=e.createEmbeddedView(f.templateRef,f.context,f.index),u=1}else null==o?(e.remove(s),u=3):(d=e.get(s),e.move(d,o),u=2);var h;l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){}}class Mn{constructor(a=!1,e,t=!0,r){this._multiple=a,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(a?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let zr=(()=>{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 cr=new i.OlP("_ViewRepeater");var f_=T(4742),m_=T(1810);function z0(...n){const a=(0,fo.jO)(n),{args:e,keys:t}=(0,f_.D)(n),r=new Bn.y(l=>{const{length:c}=e;if(!c)return void l.complete();const s=new Array(c);let o=c,d=c;for(let u=0;u{h||(h=!0,d--),s[u]=f},()=>o--,void 0,()=>{(!o||!h)&&(d||l.next(t?(0,m_.n)(t,s):s),l.complete())}))}});return a?r.pipe((0,Xh.Z)(a)):r}let g_=(()=>{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})(),Il=(()=>{class n extends g_{}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 Qn=new i.OlP("NgValueAccessor"),mw={provide:Qn,useExisting:(0,i.Gpc)(()=>dn),multi:!0},gw=new i.OlP("CompositionEventMode");let dn=(()=>{class n extends g_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function __(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gw,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([mw]),i.qOj]}),n})();function ka(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function A_(n){return null!=n&&"number"==typeof n.length}const wn=new i.OlP("NgValidators"),$s=new i.OlP("NgAsyncValidators"),q0=/^(?=.{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 Ji{static min(a){return function dp(n){return a=>{if(ka(a.value)||ka(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ka(a.value)||ka(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 W0(a)}static requiredTrue(a){return function up(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function U0(n){return ka(n.value)||q0.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function G0(n){return a=>ka(a.value)||!A_(a.value)?null:a.value.lengthA_(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Z0(n){if(!n)return fu;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(ka(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 T_(a)}static composeAsync(a){return x_(a)}}function W0(n){return ka(n.value)?{required:!0}:null}function fu(n){return null}function y_(n){return null!=n}function M_(n){return(0,i.QGY)(n)?(0,Dn.D)(n):n}function w_(n){let a={};return n.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function C_(n,a){return a.map(e=>e(n))}function v_(n){return n.map(a=>function _w(n){return!n.validate}(a)?a:e=>a.validate(e))}function T_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return w_(C_(e,a))}}function J0(n){return null!=n?T_(v_(n)):null}function x_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return z0(C_(e,a).map(M_)).pipe((0,At.U)(w_))}}function X0(n){return null!=n?x_(v_(n)):null}function S_(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function E_(n){return n._rawValidators}function D_(n){return n._rawAsyncValidators}function Q0(n){return n?Array.isArray(n)?n:[n]:[]}function hp(n,a){return Array.isArray(n)?n.includes(a):n===a}function H_(n,a){const e=Q0(a);return Q0(n).forEach(r=>{hp(e,r)||e.push(r)}),e}function L_(n,a){return Q0(a).filter(e=>!hp(n,e))}class K0{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=J0(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=X0(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 Kn extends K0{get formDirective(){return null}get path(){return null}}class ra extends K0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class em{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let un=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Kc=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,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.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const gu="VALID",Bl="INVALID",Js="PENDING",Ri="DISABLED";function k_(n){return(_u(n)?n.validators:n)||null}function im(n){return Array.isArray(n)?J0(n):n||null}function fp(n,a){return(_u(a)?a.asyncValidators:n)||null}function R_(n){return Array.isArray(n)?X0(n):n||null}function _u(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function nm(n,a,e){const t=n.controls;if(!(a?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function rm(n,a,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class bu{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=im(this._rawValidators),this._composedAsyncValidatorFn=R_(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===gu}get invalid(){return this.status===Bl}get pending(){return this.status==Js}get disabled(){return this.status===Ri}get enabled(){return this.status!==Ri}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=im(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=R_(a)}addValidators(a){this.setValidators(H_(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(H_(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(L_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(L_(a,this._rawAsyncValidators))}hasValidator(a){return hp(this._rawValidators,a)}hasAsyncValidator(a){return hp(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=Js,!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=Ri,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=gu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gu||this.status===Js)&&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()?Ri:gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Js,this._hasOwnPendingAsyncValidator=!0;const e=M_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Ri:this.errors?Bl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Js)?Js:this._anyControlsHaveStatus(Bl)?Bl:gu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){_u(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mp extends bu{constructor(a,e,t){super(k_(e),fp(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={}){rm(this,0,a),Object.keys(a).forEach(t=>{nm(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,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}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function gp(n,a){return[...a.path,n]}function yu(n,a){var e,t;_p(n,a),a.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function wu(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&I_(n,a)})}(n,a),function xw(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 Cu(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&I_(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function O_(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Nl(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),bp(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Mu(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _p(n,a){const e=E_(n);null!==a.validator?n.setValidators(S_(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=D_(n);null!==a.asyncValidator?n.setAsyncValidators(S_(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Mu(a._rawValidators,r),Mu(a._rawAsyncValidators,r)}function bp(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=E_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=D_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Mu(a._rawValidators,t),Mu(a._rawAsyncValidators,t),e}function I_(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function B_(n,a){_p(n,a)}function am(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Hw(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function z_(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===dn?e=l:function Dw(n){return Object.getPrototypeOf(n.constructor)===Il}(l)?t=l:r=l}),r||t||e||null}const j_={provide:Kn,useExisting:(0,i.Gpc)(()=>Vl)},Yo=(()=>Promise.resolve(null))();let Vl=(()=>{class n extends Kn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new mp({},J0(e),X0(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Yo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),yu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path),r=new mp({});B_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Yo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hw(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(wn,10),i.Y36($s,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([j_]),i.qOj]}),n})();function q_(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}function sm(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const os=class extends bu{constructor(a=null,e,t){super(k_(e),fp(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}),_u(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sm(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){sm(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}},Ra=os,Rw={provide:ra,useExisting:(0,i.Gpc)(()=>ls)},om=(()=>Promise.resolve(null))();let ls=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._changeDetectorRef=c,this.control=new os,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(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),am(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(){yu(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){om.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);om.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?gp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,9),i.Y36(wn,10),i.Y36($s,10),i.Y36(Qn,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([Rw]),i.qOj,i.TTD]}),n})(),Ap=(()=>{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 Ow={provide:Qn,useExisting:(0,i.Gpc)(()=>vu),multi:!0};let vu=(()=>{class n extends Il{writeValue(e){this.setProperty("value",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([Ow]),i.qOj]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const cm=new i.OlP("NgModelWithFormControlWarning"),dm={provide:ra,useExisting:(0,i.Gpc)(()=>Oa)};let Oa=(()=>{class n extends ra{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=z_(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Nl(t,this,!1),yu(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}am(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nl(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(wn,10),i.Y36($s,10),i.Y36(Qn,10),i.Y36(cm,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([dm]),i.qOj,i.TTD]}),n})();const Z_={provide:Kn,useExisting:(0,i.Gpc)(()=>Xs)};let Xs=(()=>{class n extends Kn{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&&(bp(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 yu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Nl(e.control||null,e,!1),function oS(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Hw(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&&(Nl(t||null,e),(n=>n instanceof os)(r)&&(yu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);B_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function N_(n,a){return bp(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_p(this.form,this),this._oldForm&&bp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36($s,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([Z_]),i.qOj,i.TTD]}),n})();const Fw={provide:ra,useExisting:(0,i.Gpc)(()=>yp)};let yp=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),am(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 gp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,13),i.Y36(wn,10),i.Y36($s,10),i.Y36(Qn,10),i.Y36(cm,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([Fw]),i.qOj,i.TTD]}),n})(),zl=(()=>{class n{constructor(){this._validator=fu}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):fu,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 ab={provide:wn,useExisting:(0,i.Gpc)(()=>aa),multi:!0};let aa=(()=>{class n extends zl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>W0}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([ab]),i.qOj]}),n})(),cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[U_]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})(),Qs=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})();class Am extends bu{constructor(a,e,t){super(k_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){rm(this,0,a),a.forEach((t,r)=>{nm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function db(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Zw=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return db(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new mp(r,l)}control(e,t,r){let l={};return this.useNonNullable?(db(t)?l=t:(l.validators=t,l.asyncValidators=r),new os(e,{...l,nonNullable:!0})):new os(e,t,r)}array(e,t,r){const l=e.map(c=>this._createControl(c));return new Am(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof os||e instanceof bu?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:Qs}),n})(),Jw=(()=>{class n extends Zw{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return 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:Qs}),n})();const Xw=["trigger"],ub=["panel"];function hb(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 pb(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 Qw(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Kw(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,pb,2,1,"span",10),i.YNc(2,Qw,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 eC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),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 tC=[[["mat-select-trigger"]],"*"],iC=["mat-select-trigger","*"],fb={transformPanelWrap:wi("transformPanelWrap",[Pt("* => void",Fr("@transformPanel",[kl()],{optional:!0}))]),transformPanel:wi("transformPanel",[Rt("void",Ie({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Rt("showing",Ie({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Rt("showing-multiple",Ie({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Pt("void => *",Et("120ms cubic-bezier(0, 0, 0.2, 1)")),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))])};let ym=0;const wm=new i.OlP("mat-select-scroll-strategy"),Ab=new i.OlP("MAT_SELECT_CONFIG"),rC={provide:wm,deps:[yn],useFactory:function bb(n){return()=>n.scrollStrategies.reposition()}};class aC{constructor(a,e){this.source=a,this.value=e}}const Su=Sa(Oo(xa(E1(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),sC=new i.OlP("MatSelectTrigger");let cs=(()=>{class n extends Su{constructor(e,t,r,l,c,s,o,d,u,h,f,b,N,Q){var pe,Pe,_t;super(c,l,o,d,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=N,this._defaultOptions=Q,this._panelOpen=!1,this._compareWith=(kt,Ut)=>kt===Ut,this._uid="mat-select-"+ym++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ym++,this._panelDoneAnimatingStream=new De.x,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!==(Pe=null===(_t=this._defaultOptions)||void 0===_t?void 0:_t.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=nr(()=>{const kt=this.options;return kt?kt.changes.pipe(ti(kt),(0,Nt.w)(()=>(0,Fi.T)(...kt.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Yt.h)(kt=>kt),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Yt.h)(kt=>!kt),(0,At.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Q?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Q.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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}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){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Zi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Mn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ih(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ti(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,c=this._keyManager;if(!c.isTyping()&&l&&!An(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;c.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,c=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(c||13!==r&&32!==r||!t.activeItem||An(e))if(!c&&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,dt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ta(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Fi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Fi.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(No),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Vc),i.Y36(i.SBq),i.Y36(Vn,8),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Jc,8),i.Y36(ra,10),i.$8M("tabindex"),i.Y36(wm),i.Y36(A1),i.Y36(Ab,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(Xw,5),i.Gf(ub,5),i.Gf(E0,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:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Tp=(()=>{class n extends cs{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(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,dt.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=s0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:o0((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 aC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let d=this._selectionModel.selected[0]||this.options.first;c=d&&d.group?32:16}r||(c*=-1);const s=0-(e.left+c-(r?l:0)),o=e.right+c-t.width+(r?0:l);s>0?c+=s+8:o>0&&(c-=o+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),c=(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-c))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,c=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;d>c?this._adjustPanelUp(d,c):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),c=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=s0(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,c),this._offsetY=this._calculateOverlayOffsetY(s,o,c),this._checkOverlayWithinViewport(c)}_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,sC,5),i.Suo(r,js,5),i.Suo(r,ru,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:19,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-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:Zc,useExisting:n},{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:iC,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(tC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,hb,2,1,"span",3),i.YNc(5,Kw,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,eC,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)}},dependencies:[w.mk,w.RF,w.n9,w.ED,E0,S0],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fb.transformPanelWrap,fb.transformPanel]},changeDetection:0}),n})(),Wo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[rC],imports:[w.ez,zo,au,gt,La,ss,au,gt]}),n})();const Eu=["tooltip"],Mb="tooltip-panel",Du=Kr({passive:!0}),wb=new i.OlP("mat-tooltip-scroll-strategy"),vb={provide:wb,deps:[yn],useFactory:function Cb(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cm=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Tb(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let lC=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=c,this._platform=s,this._ariaDescriber=o,this._focusMonitor=d,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Zi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Zi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Du)}),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 qc(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Mb}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&27===l.keyCode&&!An(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...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:c}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:c}}}_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:c}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${Mb}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const l=t.relatedTarget;(!l||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(l))&&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,Du)})}_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})(),dr=(()=>{class n extends lC{constructor(e,t,r,l,c,s,o,d,u,h,f,b){super(e,t,r,l,c,s,o,d,u,h,f,b),this._tooltipComponent=vm}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(jc),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Ni),i.Y36(p1),i.Y36(vr),i.Y36(wb),i.Y36(Vn,8),i.Y36(Cm,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),gS=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),vm=(()=>{class n extends gS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(Nh),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(Eu,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),Ks=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vb],imports:[Yh,w.ez,zo,gt,gt,La]}),n})();function Tm(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 xm(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,Tm,2,2,"mat-option",18),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)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dC(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 uC(n,a){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,xm,3,8,"mat-form-field",14),i.YNc(4,dC,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 hC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),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 pC(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),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 Hu=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const 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 xb={provide:Hu,deps:[[new i.FiY,new i.tp0,Hu]],useFactory:function Sm(n){return n||new Hu}},Eb=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),mC=xa(iu(class{}));let Db=(()=>{class n extends mC{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:c,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=c&&(this._pageSizeOptions=c),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Zi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Zi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Zi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Zi(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",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Em=(()=>{class n extends Db{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(Hu),i.Y36(i.sBO),i.Y36(Eb,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","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,uC,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,hC,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.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.YNc(13,pC,3,5,"button",11),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))},dependencies:[w.sg,w.O5,Lt,cn,Tp,js,dr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Lu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xb],imports:[w.ez,Ea,Wo,Ks,gt]}),n})();var Sp=T(1005);const gC=["mat-menu-item",""];function ur(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Yl=["*"];function _C(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),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 Ep={transformMenu:wi("transformMenu",[Rt("void",Ie({opacity:0,transform:"scale(0.8)"})),Pt("void => enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:wi("fadeInItems",[Rt("showing",Ie({opacity:1})),Pt("void => *",[Ie({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Hb=new i.OlP("MatMenuContent"),Hp=new i.OlP("MAT_MENU_PANEL"),AC=Sa(xa(class{}));let Pu=(()=>{class n extends AC{constructor(e,t,r,l,c){var s;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,null==l||null===(s=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,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Bt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,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-"+Dm++}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 zh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const l=e.toArray(),c=Math.max(0,Math.min(l.length-1,r.activeItemIndex||0));l[c]&&!l[c].disabled?r.setActiveItem(c):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(t=>(0,Fi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:An(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.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){var r;const l=this._classList;l["mat-menu-before"]="before"===e,l["mat-menu-after"]="after"===e,l["mat-menu-above"]="above"===t,l["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ti(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(Wl),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Hb,5),i.Suo(r,Pu,5),i.Suo(r,Pu,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})(),Hm=(()=>{class n extends id{constructor(e,t,r,l){super(e,t,r,l),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(Wl),i.Y36(i.sBO))},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:Hp,useExisting:n}]),i.qOj],ngContentSelectors:Yl,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,_C,3,6,"ng-template"))},dependencies:[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;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ep.transformMenu,Ep.fadeInItems]},changeDetection:0}),n})();const ku=new i.OlP("mat-menu-scroll-strategy"),AS={provide:ku,deps:[yn],useFactory:function Lm(n){return()=>n.scrollStrategies.reposition()}},Pb=Kr({passive:!0});let kb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Bt.w0.EMPTY,this._hoverSubscription=Bt.w0.EMPTY,this._menuCloseSubscription=Bt.w0.EMPTY,this._handleTouchStart=h=>{rs(h)||(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=c instanceof id?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pb),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._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pb),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof id&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof id?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Yt.h)(l=>"void"===l.toState),(0,dt.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new lu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",c="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,d]=[c,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===c?"bottom":"top",d="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:u,overlayY:c,offsetY:f},{originX:l,originY:o,overlayX:h,overlayY:c,offsetY:f},{originX:r,originY:d,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:d,overlayX:h,overlayY:s,offsetY:-f}])}_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,Yt.h)(c=>c!==this._menuItemInstance),(0,Yt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Fi.T)(e,r,l,t)}_handleMousedown(e){eu(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,Yt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Sp.g)(0,tp)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof id&&this.menu._isAnimating?this.menu._animationDone.pipe((0,dt.q)(1),(0,Sp.g)(0,tp),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Dl(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(ku),i.Y36(Hp,8),i.Y36(Pu,10),i.Y36(Vn,8),i.Y36(vr),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,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-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Ul=(()=>{class n extends kb{}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})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[AS],imports:[w.ez,gt,na,zo,La,gt]}),n})();var Pm=T(3099);const km=["*"];let Rm;function Lp(n){var a;return(null===(a=function wC(){if(void 0===Rm&&(Rm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Rm=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Rm}())||void 0===a?void 0:a.createHTML(n))||n}function Rb(n){return Error(`Unable to find icon with the name "${n}"`)}function Ob(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Om(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Uo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ou=(()=>{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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Uo(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const c=this._sanitizer.sanitize(i.q3G.HTML,r);if(!c)throw Om(r);const s=Lp(c);return this._addSvgIconConfig(e,t,new Uo("",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 Uo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Om(t);const c=Lp(l);return this._addSvgIconSetConfig(e,new Uo("",c,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 Ob(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(Pp(r)):this._loadSvgIconFromConfig(new Uo(e,null)).pipe((0,mi.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,At.U)(l=>Pp(l)))}getNamedSvgIcon(e,t=""){const r=Bb(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 c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,Zn._)(Rb(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(Pp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,At.U)(t=>Pp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):z0(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,li.K)(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,c.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),(0,$e.of)(null)})))).pipe((0,At.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Rb(e);return c}))}_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 c=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(c,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t),(0,At.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,r);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),r);const s=this._svgElementFromString(Lp(""));return s.appendChild(c),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(Lp("")),r=e.attributes;for(let l=0;lLp(u)),ii(()=>this._inProgressUrlFetches.delete(s)),(0,Pm.B)());return this._inProgressUrlFetches.set(s,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Bb(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:""}}}),Im=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xC=Im.map(n=>`[${n}]`).join(", "),SC=/^url\(['"]?#(.*?)['"]?\)$/;let Xi=(()=>{class n extends TC{constructor(e,t,r,l,c,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Bt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),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=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(xC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(c),d=o?o.match(SC):null;if(d){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:c,value:d[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,dt.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(Ou),i.$8M("aria-hidden"),i.Y36(Fb),i.Y36(i.qLn),i.Y36(Vb,8))},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:km,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),Ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();function eo(n){return!!n&&(n instanceof Bn.y||(0,Da.m)(n.lift)&&(0,Da.m)(n.subscribe))}var yS=T(6063);class MS extends De.x{constructor(a=1/0,e=1/0,t=yS.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!r&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let c=0;cnew MS(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class kp{}let DC=(()=>{class n extends kp{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 jb{}let HC=(()=>{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 Gl(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,c,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),n){if(!Gl(n[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Rp(a[t])?t in n?e[t]=Iu(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Bu{}let Bm=(()=>{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(),!$l(e)||!$l(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 c=this.getValue(t,l);return $l(c)?c: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 Nm{}let Op=(()=>{class n extends Nm{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 Vm{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 Fm=new i.OlP("USE_STORE"),Ip=new i.OlP("USE_DEFAULT_LANG"),qb=new i.OlP("DEFAULT_LANGUAGE"),zm=new i.OlP("USE_EXTEND");let _i=(()=>{class n{constructor(e,t,r,l,c,s=!0,o=!1,d=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=s,this.isolate=o,this.extend=d,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);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,dt.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 typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(EC(1),(0,dt.q)(1));return this.loadingTranslations=t.pipe((0,At.U)(r=>this.compiler.compileTranslations(r,e)),EC(1),(0,dt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Iu(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 c={},s=!1;for(let o of t)c[o]=this.getParsedResult(e,o,r),eo(c[o])&&(s=!0);return s?z0(t.map(d=>eo(c[d])?c[d]:(0,$e.of)(c[d]))).pipe((0,At.U)(d=>{let u={};return d.forEach((h,f)=>{u[t[f]]=h}),u})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let c={key:t,translateService:this};typeof r<"u"&&(c.interpolateParams=r),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,yr.b)(r=>eo(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return eo(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ga.z)(nr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ga.z)(nr(()=>this.get(e,t)),this.onLangChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return eo(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(eo(r)){if(e instanceof Array){let l={};return e.forEach((c,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(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vm),i.LFG(kp),i.LFG(Nm),i.LFG(Bu),i.LFG(jb),i.LFG(Ip),i.LFG(Fm),i.LFG(zm),i.LFG(qb))},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=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(r){let c=this.translate.getParsedResult(r,e,t);eo(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Gl(e,this.lastKey)&&Gl(t,this.lastParams))return this.value;let r;if($l(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{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(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,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})(),Nu=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Bu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},Vm,{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Bu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Lu,Ru,Ia,Ea,Nu,w.ez]}),n})();var CS=T(5861);function vS(n,a){}class Bp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Yb=(()=>{class n extends y0{constructor(e,t,r,l,c,s,o,d){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=s,this._overlayRef=o,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Yd(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Yd();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Yd())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Bp),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(rp,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,vS,0,0,"ng-template",0)},dependencies:[rp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Wb{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!An(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Ub=new i.OlP("DialogScrollStrategy"),Gb=new i.OlP("DialogData"),$b=new i.OlP("DefaultDialogConfig"),Ba={provide:Ub,deps:[yn],useFactory:function xS(n){return()=>n.scrollStrategies.block()}};let PC=0,Np=(()=>{class n{constructor(e,t,r,l,c,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(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}open(e,t){(t={...this._defaultOptions||new Bp,...t}).id=t.id||"cdk-dialog-"+PC++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),s=new Wb(c,t),o=this._attachContainer(c,s,t);return s.containerInstance=o,this._attachDialogContent(e,s,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){jm(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jm(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jm(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new lu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var l,c;const s=null!==(l=r.injector)&&void 0!==l?l:null===(c=r.viewContainerRef)||void 0===c?void 0:c.injector,o=[{provide:Bp,useValue:r},{provide:Wb,useValue:t},{provide:Ys,useValue:e}];let d;r.container?"function"==typeof r.container?d=r.container:(d=r.container.type,o.push(...r.container.providers(r))):d=Yb;const u=new qc(d,r.viewContainerRef,i.zs3.create({parent:s||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,t,r,l){const c=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Dl(e,null,s,c))}else{const s=r.attachComponentPortal(new qc(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:Gb,useValue:e.data},{provide:Wb,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,r)):c.push(...e.providers)),e.direction&&(!l||!l.get(Vn,null,i.XFs.Optional))&&c.push({provide:Vn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const 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"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG($b,8),i.LFG(n,12),i.LFG(Vr),i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function jm(n,a){let e=n.length;for(;e--;)a(n[e])}let jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Np,Ba],imports:[zo,Fo,Yh,Fo]}),n})();function kC(n,a){}const Go={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},RC={dialogContainer:wi("dialogContainer",[Rt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),Rt("enter",Ie({transform:"none"})),Pt("* => enter",uu([Et("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),Fr("@*",kl(),{optional:!0})]),Go),Pt("* => void, * => exit",uu([Et("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),Fr("@*",kl(),{optional:!0})]),Go)])};class Vu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Go.params.enterAnimationDuration,this.exitAnimationDuration=Go.params.exitAnimationDuration}}let qm=(()=>{class n extends Yb{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Vu),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Zb=(()=>{class n extends qm{constructor(e,t,r,l,c,s,o,d,u){super(e,t,r,l,c,s,o,u),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Go.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Go.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Vu),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(i.sBO),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,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._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,kC,0,0,"ng-template",0)},dependencies:[rp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[RC.dialogContainer]}}),n})();class zi{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,Yt.h)(r=>"opened"===r.state),(0,dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Yt.h)(r=>"closed"===r.state),(0,dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Fi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Yt.h)(r=>27===r.keyCode&&!this.disableClose&&!An(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function OC(n,a,e){n._closeInteractionType=a,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,Yt.h)(e=>"closing"===e.state),(0,dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Cn=new i.OlP("MatDialogData"),Jb=new i.OlP("mat-dialog-default-options"),Xb=new i.OlP("mat-dialog-scroll-strategy"),Ym={provide:Xb,deps:[yn],useFactory:function BC(n){return()=>n.scrollStrategies.block()}};let $o=0,Qb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=o,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s,this._dialog=t.get(Np)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Vu,...t}).id=t.id||`${this._idPrefix}${$o++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Vu,useValue:t},{provide:Bp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(c,s,o)=>{var d;return r=new this._dialogRefConstructor(c,t,o),r.updatePosition(null===(d=t)||void 0===d?void 0:d.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(r);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Oi=(()=>{class n extends Qb{constructor(e,t,r,l,c,s,o,d){super(e,t,l,s,o,c,zi,Zb,Cn,d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(Jb,8),i.LFG(Xb),i.LFG(n,12),i.LFG(Vr),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),to=0,Pn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+to++}ngOnInit(){this._dialogRef||(this._dialogRef=function NC(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(zi,8),i.Y36(i.SBq),i.Y36(Oi))},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})(),vn=(()=>{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})(),hn=(()=>{class n{constructor(){this.align="start"}}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"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Vp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oi,Ym],imports:[jr,zo,Fo,gt,gt]}),n})();var Kb=T(4327);const Fu=[5,10,25,100];function zp(){return(zp=(0,CS.Z)(function*(n,a){yield WC(n),a()})).apply(this,arguments)}function WC(n){return new Promise(a=>setTimeout(a,n))}function bi(){const n=new Vu;return n.disableClose=!0,n.autoFocus=!1,n}function Zl(n){return"virt"===n.namespace.split(":")[4]}const Um=new Intl.Collator("cs",{numeric:!0});function zu(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,c)=>{const s=e(l,t),o=e(c,t);return Um.compare(s,o)*("asc"===r?1:-1)}):n}function Jl(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(c=>{l+=";"+t(n,c)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function hr(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 c={};a.forEach(s=>{c[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(c)}),t}function Na(n,a="csv",e="export"){if("csv"===a){const t=(o,d)=>null===d?"":d,r=Object.keys(n[0]),l=n.map(o=>r.map(d=>JSON.stringify(o[d],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const c=l.join("\r\n"),s=new Blob([c],{type:"text/csv"});(0,Kb.saveAs)(s,`${e}.${a}`)}}function KC(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const Gm="GUI_CONFIG.PREF_PAGE_SIZE.";let nv=(()=>{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})(),rv=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Gm+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(Gm+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let tL=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,eL,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),c=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",c),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Hm,Pu,Ul,Xi,Lt,w.O5,lt]}),n})();function iL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function nL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const rL=["*"];let ds=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Fu,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=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(rv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(Em,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:rL,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,iL,1,1,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,nL,1,1,"perun-web-apps-table-options",3),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))},dependencies:[Em,w.O5,tL]}),n})();class GS{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 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.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{class n{constructor(e,t,r,l,c){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ai),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const s=function tv(n,a){const e=a.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(c.idphint=s)}return{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,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}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 c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],r=t[c[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(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Yt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).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 c={};return l.forEach(s=>{const o=s.split("=");c[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).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")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(Zt),i.LFG(Oi),i.LFG(Xn),i.LFG(ju.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aL=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},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"))},dependencies:[vn,lt]}),n})(),ov=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=c,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)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=bi();this.dialog.open(aL,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(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 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(ad),i.LFG(Zt),i.LFG(Ua),i.LFG(ht),i.LFG(Oi),i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$S=(()=>{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/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}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(Ou),i.LFG(Gi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),sL=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},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)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})(),$m=(()=>{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})(),pr=(()=>{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,c){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:c,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(_i))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZS=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=c,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=bi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(sL,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ii(()=>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(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,mi.b)(s=>{s instanceof M.Zn&&c&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,Zn._)(s):l?void this.notificator.showRPCError(o):(0,Zn._)(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}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ad),i.LFG($m),i.LFG(pr),i.LFG(Zt),i.LFG(Oi),i.LFG(ov))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),JS=(()=>{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})(),oL=(()=>{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,li.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,li.K)(s=>this.formatErrors(s,l,c,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:s}).pipe((0,li.K)(o=>this.formatErrors(o,l,c,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,li.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const c=e.error;return c.call=t,c.payload=r,l&&this.notificator.showRPCError(e.error),(0,Zn._)(c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(pr),i.LFG(ad),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lv=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,c,s,o,d){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=c*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{d?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 c=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(c=o[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xn),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gA=(()=>{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||r.newApps.consolidator===t||r.newApps.linker===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);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})(),lL=(()=>{class n{setEntity(e){this.entity=e}getEntity(){return this.entity}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cL=(()=>{class n{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt),i.LFG(ju.Ct),i.LFG(M.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _A=["*"],dL=["content"];function uL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function hL(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const pL=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],fL=["mat-drawer","mat-drawer-content","*"];function mL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function gL(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const _L=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],bL=["mat-sidenav","mat-sidenav-content","*"],XS={transformDrawer:wi("transform",[Rt("open, open-instant",Ie({transform:"none",visibility:"visible"})),Rt("void",Ie({"box-shadow":"none",visibility:"hidden"})),Pt("void => open-instant",Et("0ms")),Pt("void <=> open, open-instant => void",Et("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},yL=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ML(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let bA=(()=>{class n extends Bo{constructor(e,t,r,l,c){super(r,l,c),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)(()=>KS)),i.Y36(i.SBq),i.Y36(jc),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:Bo,useExisting:n}]),i.qOj],ngContentSelectors:_A,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,c,s,o,d){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=c,this._interactivityChecker=s,this._doc=o,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Yt.h)(u=>u),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,xi.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Yt.h)(u=>!u),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,xi.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{qs(this._elementRef.nativeElement,"keydown").pipe((0,Yt.h)(u=>27===u.keyCode&&!this.disableClose&&!An(u)),rt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Ih((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(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}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(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,dt.q)(1)).subscribe(c=>l(c?"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(Kd),i.Y36(vr),i.Y36(Ni),i.Y36(i.R0b),i.Y36(Qd),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(dL,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:_A,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())},dependencies:[Bo],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),KS=(()=>{class n{constructor(e,t,r,l,c,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 De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(rt(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 this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(ti(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ti(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,$d.b)(10),rt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Yt.h)(t=>t.fromState!==t.toState),rt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,Fi.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(Vn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(No),i.Y36(yL),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bA,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(bA,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:fL,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(pL),i.YNc(0,uL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,hL,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,bA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends bA{constructor(e,t,r,l,c){super(e,t,r,l,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>tE)),i.Y36(i.SBq),i.Y36(jc),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:Bo,useExisting:n}]),i.qOj],ngContentSelectors:_A,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),eE=(()=>{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=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Zi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Zi(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:_A,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())},dependencies:[Bo],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),tE=(()=>{class n extends KS{}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,eE,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:bL,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(_L),i.YNc(0,mL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,gL,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,uv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),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,gt,La,La,gt]}),n})();function iE(n){for(let e in n){var a;let t=null!==(a=n[e])&&void 0!==a?a:"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const pv="inline",AA=["row","column","row-reverse","column-reverse"];function nE(n){let[a,e,t]=function rE(n){var a,e;n=null!==(a=null===(e=n)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,l]=n.split(" ");return AA.find(c=>c===t)||(t=AA[0]),r===pv&&(r=l!==pv?l:"",l=pv),[t,wL(r),!!l]}(n);return function CL(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 wL(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 TL={provide:i.tb,useFactory:function vL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${aE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${aE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},aE="flex-layout-";let fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[TL]}),n})();class qu{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 qu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let xL=(()=>{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 c=r.get(t);("number"==typeof c||"string"==typeof c)&&(l=c+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const mv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},io=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>mv}),jp=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),gv=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function sE(n,a){var e,t;return n=null!==(e=null===(t=n)||void 0===t?void 0:t.clone())&&void 0!==e?e:new qu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class Tn{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:iE(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:iE(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 SL(n,a){var e;return null!==(e=oE(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],c=Array.isArray(l)?l:[l];c.sort();for(let s of c)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):EL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xL),i.LFG(jp),i.LFG(i.Lbi),i.LFG(io))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=oE(n);t[a]=e??"",function DL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function oE(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const c=l.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,c).trim()]=l.substr(c+1).trim()}}}return a}function Jm(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function HL(n,a){return(n.priority||0)-(a.priority||0)}let _v=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new $i(new qu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,Yt.h)(c=>!t||e.indexOf(c.mediaQuery)>-1)),l=new Bn.y(c=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(d=>{c.next(d)}),this.source.next(o)}c.complete()});return(0,Fi.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function LL(n,a){const e=n.filter(t=>!lE[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=>lE[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const c=o=>{this._zone.run(()=>this.source.next(new qu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(c),this.pendingRemoveListenerFns.push(()=>s.removeListener(c)),this.registry.set(l,s)),s.matches&&r.push(new qu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function PL(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 lE={},kL=[{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}],cE="(orientation: portrait) and (max-width: 599.98px)",dE="(orientation: landscape) and (max-width: 959.98px)",uE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",hE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",pE="(orientation: portrait) and (min-width: 840px)",fE="(orientation: landscape) and (min-width: 1280px)",Ql={HANDSET:`${cE}, ${dE}`,TABLET:`${uE} , ${hE}`,WEB:`${pE}, ${fE} `,HANDSET_PORTRAIT:`${cE}`,TABLET_PORTRAIT:`${uE} `,WEB_PORTRAIT:`${pE}`,HANDSET_LANDSCAPE:`${dE}`,TABLET_LANDSCAPE:`${hE}`,WEB_LANDSCAPE:`${fE}`},RL=[{alias:"handset",priority:2e3,mediaQuery:Ql.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ql.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ql.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ql.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ql.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ql.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ql.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ql.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ql.WEB_PORTRAIT,overlapping:!0}],OL=/(\.|-|_)/g;function IL(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const FL=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(gv),a=(0,i.f3M)(io),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function VL(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(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 NL(n){return n.forEach(a=>{a.suffix||(a.suffix=function BL(n){return n.replace(OL,"|").split("|").map(IL).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:kL).concat(a.addOrientationBps?RL:[]),e)}});let bv=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(HL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);var c;return l||(l=null!==(c=this.items.find(t))&&void 0!==c?c:null,this.findByMap.set(e,l)),null!==(r=l)&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(FL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qp="print",zL={alias:qp,mediaQuery:qp,priority:1e3};let jL=(()=>{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 qL,this.deactivations=[]}withPrintQuery(e){return[...e,qp]}isPrintEvent(e){return e.mediaQuery.startsWith(qp)}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(Jm)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,l;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(l=t)||void 0===l?void 0:l.mediaQuery)&&void 0!==r?r:""),sE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new qu(!0,qp))),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),c=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||c)&&(this.deactivations.push(r),this.deactivations.sort(Jm))}}}}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(bv),i.LFG(io),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qL{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(zL),a.sort(Jm),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function YL(n){var a;return null!==(a=n?.mediaQuery.startsWith(qp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let nn=(()=>{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 De.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=sE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(Jm),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Jm),this.updateStyles())}}init(e,t,r,l,c=[]){mE(this.updateMap,e,t,r),mE(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,c)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const c=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(c)return c.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){let c=this.elementMap.get(e);if(c){var s;const d=(null!==(s=c.get(l))&&void 0!==s?s:new Map).set(t,r);c.set(l,d),this.elementMap.set(e,c)}else c=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,c);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,Yt.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((c,s)=>{this.updateElement(t,s,c),r.delete(s)}),r.forEach(c=>{if(l=this.getActivatedValues(e,c),l){const s=l.get(c);this.updateElement(t,c,s)}else this.clearElement(t,c)})})}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 c=l.get(t);c&&(c(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,c)=>r.delete(c)),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((c,s)=>this.updateElement(e,s,c)))}}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,Fi.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,mi.b)(this.hook.interceptEvents(this)),(0,Yt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_v),i.LFG(bv),i.LFG(jL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mE(n,a,e,t){if(void 0!==t){var r;const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let pn=(()=>{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 De.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let c=this.styleCache.get(e);(!c||!l)&&(c=r.buildStyles(e,t),l&&this.styleCache.set(e,c)),this.mru={...c},this.applyStyleToElement(c),r.sideEffect(e,c,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 c=nE(r);this.styler.applyStyleToElements(c,[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(Tn),i.Y36(Qi),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class aP{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 AE(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function ME(n){const[a,...e]=n.split(":");return new aP(a,e.join(":"))}function wE(n,a){return a.key&&(n[a.key]=a.value),n}let lP=(()=>{class n extends pn{constructor(e,t,r,l,c,s,o,d,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,c,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=d&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(AE(e)){case"string":return CE(function sP(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return CE(e,t);default:return function yE(n,a){let e=[];return"set"===AE(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function oP(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}(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(nn),i.Y36(Gi),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(jp),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const cP=["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 MA=(()=>{class n extends lP{constructor(){super(...arguments),this.inputs=cP}}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 CE(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}let vE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})();const TE=Kr({passive:!0});let dP=(()=>{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=Vi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,c="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,TE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,TE)}}),l}stopMonitoring(e){const t=Vi(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(Ni),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new De.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Zi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Zi(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(()=>{qs(this._getWindow(),"resize").pipe(m0(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,c=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const s=e.scrollHeight-4;return e.classList.remove(c),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(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),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})(),xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const SE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),uP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hP=0;const pP=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let zn=(()=>{class n extends pP{constructor(e,t,r,l,c,s,o,d,u,h){super(s,l,c,r),this._elementRef=e,this._platform=t,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+hP++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(N=>Th().has(N)),this._iOSKeyupListener=N=>{const Q=N.target;!Q.value&&0===Q.selectionStart&&0===Q.selectionEnd&&(Q.setSelectionRange(1,1),Q.setSelectionRange(0,0))};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",this._iOSKeyupListener)}),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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Th().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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const 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(){uP.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(Ni),i.Y36(ra,10),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Vc),i.Y36(SE,10),i.Y36(dP),i.Y36(i.R0b),i.Y36(Jc,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:Zc,useExisting:n}]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Vc],imports:[xE,ss,gt,xE,ss]}),n})();function fP(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,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=c,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: ",T(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(_i),i.Y36(pr),i.Y36(fi),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)(4,"mat-form-field")(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,fP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(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.TgZ(21,"div",6)(22,"div",7)(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()()()),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")," ")}},dependencies:[w.O5,dn,un,aa,ls,Lt,jo,cn,uw,Hi,zn,Pn,vn,hn,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),EE=(()=>{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})(),gP=(()=>{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})(),_P=(()=>{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 bP(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 AP(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 yP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,bP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,AP,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 MP=function(n){return{"min-height":n}};function wP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,yP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,MP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const sd=function(n){return{color:n}};function CP(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,sd,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function vP(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,l=i.oxw(3);return i.KtG(l.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,sd,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function TP(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,sd,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function xP(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,sd,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function SP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,CP,2,4,"i",17),i.YNc(2,vP,3,8,"span",18),i.YNc(3,TP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,xP,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 EP=function(n){return{height:n}};function DP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,SP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,EP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function HP(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,wP,2,4,"div",9),i.YNc(5,DP,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,sd,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 LP(n,a){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),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,sd,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const PP=function(n){return{background:n}};let DE=(()=>{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=T(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=bi();"reportIssue"===e&&(t.width="550px",this.dialog.open(mP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(_i),i.Y36(Oi))},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)(1,"div",1),i.YNc(2,HP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,LP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,PP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,sd,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,sd,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[w.sg,w.O5,w.PC,EE,gP,_P],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})();wi("openClose",[Rt("open",Ie({overflow:"hidden"})),Rt("closed",Ie({height:"0px",overflow:"hidden"})),Pt("open <=> closed",[Et(".3s ease-in")])]);const kP=wi("flyInOut",[Pt(":enter",[Ie({transform:"translateX(100%)"}),Et(".25s")]),Pt(":leave",[Et(".5s",Ie({transform:"translateX(100%)"}))])]);wi("rollInOut",[Pt(":enter",[Ie({height:"0px"}),Et(".25s")]),Pt(":leave",[Et(".25s",Ie({height:"0px"}))])]),wi("routeAnimations",[Pt("* => *",[Ie({position:"relative"}),Fr(":enter",[Ie({width:"100%",opacity:0})],{optional:!0}),Fr(":leave",[Ie({position:"absolute",width:"100%",opacity:1}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Fr(":enter",[Ie({position:"absolute",width:"100%",opacity:0}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Rt("open",Ie({})),Rt("closed",Ie({width:"0px",height:"0px"})),Pt("open <=> closed",[Et(".3s ease-in")])]),wi("switchAnimations",[Pt("true => false",[Fr(":enter, :leave",Ie({})),uu([Fr(":enter",[Ie({transform:"translateX(-100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(100%)"}))],{optional:!0})])]),Pt("false => true",[Fr(":enter, :leave",Ie({})),uu([Fr(":enter",[Ie({transform:"translateX(100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Pt(":enter",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Et("0.5s ease-in",Ie({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Pt(":enter",[Ie({transform:"translateX(100%)",position:"fixed"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(100%)"}))])]);let HE=(()=>{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})(),CA=(()=>{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})(),ri=(()=>{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(_i,16),i.Y36(Zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function RP(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 OP(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 BP=as(class{constructor(n){this._elementRef=n}},"primary"),NP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function VP(){return{diameter:100}}});class Ei extends BP{constructor(a,e,t,r,l,c,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Bt.w0.EMPTY,this.mode="determinate";const d=Ei._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(t.head)||d.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&c&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Zi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Zi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Zi(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=Ei._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(".","_")}}Ei._diameters=new WeakMap,Ei.\u0275fac=function(a){return new(a||Ei)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(NP),i.Y36(i.sBO),i.Y36(No),i.Y36(i.R0b))},Ei.\u0275cmp=i.Xpm({type:Ei,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(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,RP,1,11,"circle",2),i.YNc(3,OP,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))},dependencies:[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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Wp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,w.ez,gt]}),n})(),vA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ia,w.ez]}),n})(),zP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ss,Ks,Qs,Yp,Nu,Wp,Ia,vA]}),n})();class jP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const LE=(n,a,e,t=500)=>r=>(0,f0.H)(t).pipe((0,Nt.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength({password:r.value,namespace:n}):(0,$e.of)(null))),(0,At.U)(()=>null),(0,li.K)(l=>{const c=l.error,s={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,$e.of)(s)}));function qP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function YP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function WP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function UP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const GP=["*"];let Gn=(()=>{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:GP,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,qP,2,0,"mat-icon",1),i.YNc(2,YP,2,0,"mat-icon",1),i.YNc(3,WP,2,0,"mat-icon",1),i.YNc(4,UP,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))},dependencies:[Xi,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function $P(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function ZP(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 JP(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 XP(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 QP(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 KP(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 PE=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new jP,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.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(_i),i.Y36(Pi),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",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)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,$P,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,ZP,2,2,"mat-icon",5),i.YNc(8,JP,3,3,"mat-error",6),i.YNc(9,XP,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8)(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,QP,3,3,"mat-error",6),i.YNc(18,KP,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA()()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),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))},dependencies:[w.O5,jo,cn,Hi,d_,dr,dn,un,Kc,aa,Xs,yp,zn,Ei,Xi,Gn,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 sk(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function ok(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 lk(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 ck(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,ok,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,lk,3,3,"mat-error",11),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 dk=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=c,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.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: ",T(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(zi),i.Y36(_i),i.Y36(pr),i.Y36(fi),i.Y36(Cn),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,sk,1,0,"mat-spinner",1),i.YNc(4,ck,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(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()()()),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")," "))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,Hi,dn,un,aa,ls,zn,Ei,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),uk=(()=>{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=bi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(dk,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Oi),i.Y36(Cn))},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)(5,"div",3)(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()()()),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")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();const hk=[[["caption"]],[["colgroup"],["col"]]],pk=["caption","colgroup, col"];function Mv(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 Up=new i.OlP("CDK_TABLE");let Gp=(()=>{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})(),$p=(()=>{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})(),TA=(()=>{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 _k{}const bk=Mv(_k);let Kl=(()=>{class n extends bk{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Gp,5),i.Suo(r,$p,5),i.Suo(r,TA,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 wv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Cv=(()=>{class n extends wv{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})(),vv=(()=>{class n extends wv{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 RE{constructor(){this.tasks=[],this.endTasks=[]}}const Tv=new i.OlP("_COALESCED_STYLE_SCHEDULER");let OE=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RE,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RE;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,dt.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})(),xv=(()=>{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 Xm?e.headerCell.template:this instanceof Qm?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 Ak extends xv{}const yk=Mv(Ak);let Xm=(()=>{class n extends yk{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class Mk extends xv{}const wk=Mv(Mk);let Qm=(()=>{class n extends wk{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),xA=(()=>{class n extends xv{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(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),ec=(()=>{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})(),Sv=(()=>{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)},dependencies:[ec],encapsulation:2}),n})(),Dv=(()=>{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)},dependencies:[ec],encapsulation:2}),n})(),SA=(()=>{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 IE=["top","bottom","left","right"];class Ck{constructor(a,e,t,r,l=!0,c=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=c,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],c=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),d=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",N=f?"left":"right";for(const Q of a)for(let pe=0;pee[pe]?Q:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((Q,pe)=>t[pe+h]?Q: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,c=[],s=[],o=[];for(let u=0,h=0;u{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]);IE.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 IE)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 Hv=new i.OlP("CDK_SPL");let EA=(()=>{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})(),DA=(()=>{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})(),HA=(()=>{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})(),LA=(()=>{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})(),PA=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=c,this._platform=o,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new $i({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(rt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Xc(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,c)=>this._getEmbeddedViewArgs(r.item,c),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,dt.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.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(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.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,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),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(c)?r.get(c):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,s)=>c||!!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=[],Xc(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;Xc(this.dataSource)?e=this.dataSource.connect(this):eo(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),c=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!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(c=>c.when&&c.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 c=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))ec.mostRecentCellOutlet&&ec.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 c of r.outlets)l.appendChild(c.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 Ck(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(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.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(Vn,8),i.Y36(w.K0),i.Y36(Ni),i.Y36(cr),i.Y36(Tv),i.Y36(No),i.Y36(Hv,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,SA,5),i.Suo(r,Kl,5),i.Suo(r,xA,5),i.Suo(r,Xm,5),i.Suo(r,Qm,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(EA,7),i.Gf(DA,7),i.Gf(HA,7),i.Gf(LA,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:Up,useExisting:n},{provide:cr,useClass:Pa},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}])],ngContentSelectors:pk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(hk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function kA(n,a){return n.concat(Array.from(a))}let Tk=(()=>{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 xk=[[["caption"]],[["colgroup"],["col"]]],Sk=["caption","colgroup, col"];let no=(()=>{class n extends PA{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:cr,useClass:Pa},{provide:PA,useExisting:n},{provide:Up,useExisting:n},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}]),i.qOj],ngContentSelectors:Sk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(xk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),us=(()=>{class n extends Gp{}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:Gp,useExisting:n}]),i.qOj]}),n})(),hs=(()=>{class n extends $p{}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:$p,useExisting:n}]),i.qOj]}),n})(),ps=(()=>{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})(),fs=(()=>{class n extends Cv{}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})(),ms=(()=>{class n extends vv{}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})(),ro=(()=>{class n extends Xm{}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:Xm,useExisting:n}]),i.qOj]}),n})(),ao=(()=>{class n extends xA{}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:xA,useExisting:n}]),i.qOj]}),n})(),so=(()=>{class n extends Sv{}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:Sv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),oo=(()=>{class n extends Dv{}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:Dv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),Km=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Tk,gt,gt]}),n})();class Zo extends class Nk extends class tS{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(qf(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((c,s)=>{let o=this.sortingDataAccessor(c,r),d=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof d;u!==h&&("number"===u&&(o+=""),"number"===h&&(d+=""));let f=0;return null!=o&&null!=d?o>d?f=1:o{const r=Object.keys(e).reduce((c,s)=>c+e[s]+"\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,Fi.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Fi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,fa.a)([this._data,this._filter]).pipe((0,At.U)(([o])=>this._filterData(o))),c=(0,fa.a)([l,e]).pipe((0,At.U)(([o])=>this._orderData(o))),s=(0,fa.a)([c,t]).pipe((0,At.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 Vk(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function Fk(n,a){1&n&&i._UZ(0,"th",15)}function zk(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 jk(n,a){1&n&&i._UZ(0,"tr",17)}function qk(n,a){1&n&&i._UZ(0,"tr",18)}function Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4)(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,Fk,1,0,"th",8),i.YNc(13,zk,2,1,"td",9),i.BQk(),i.YNc(14,jk,1,0,"tr",10),i.YNc(15,qk,1,0,"tr",11),i.qZA()(),i.TgZ(16,"div",12)(17,"button",13),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),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 Wk=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=c,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 Zo(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(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(_i),i.Y36(pr))},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,Vk,1,0,"mat-spinner",1),i.YNc(6,Yk,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))},dependencies:[w.O5,no,hs,ro,ps,us,ao,fs,ms,so,oo,Pn,vn,hn,Lt,Ei,lt,ri]}),n})();class Uk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let Gk=(()=>{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 Uk(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 $k=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Lv=(()=>{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 c=r.copy();c||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(c)):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(Gk),i.Y36(i.R0b),i.Y36($k,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})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),RA=(()=>{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(zi),i.Y36(Cn))},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)(3,"textarea",2),i._uU(4),i.qZA()(),i.TgZ(5,"div",3)(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()()),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")," "))},dependencies:[Pn,vn,hn,Lt,wA,zn,Lv,lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),Zk=(()=>{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(zi),i.Y36(Cn))},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)(4,"mat-form-field")(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA()()(),i.TgZ(6,"div",3)(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()()),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")," "))},dependencies:[Pn,vn,hn,Lt,cn,dn,un,ls,wA,zn,lt]}),n})(),Jk=(()=>{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(zi),i.Y36(Cn))},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)(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA()(),i.TgZ(9,"div",3)(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()()),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")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();function Xk(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 Qk(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 Kk=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=c,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 Ra(null,[Ji.required,Ji.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,c)=>l===c.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(zi),i.Y36(Cn),i.Y36(_i),i.Y36(pr),i.Y36(Pi),i.Y36(ad))},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,Xk,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3)(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,Qk,4,5,"mat-error",5),i.qZA()(),i.TgZ(12,"div",6)(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()()),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"))," "))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,dn,un,aa,zn,Oa,Gn,lt,ri]}),n})(),lR=(()=>{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(zi),i.Y36(Ai))},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)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),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")," "))},dependencies:[Pn,vn,hn,Lt,Gn,lt]}),n})();function cR(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 dR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(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 i.KtG(r.showOldPassword=!r.showOldPassword)}),i._uU(8),i.qZA(),i.YNc(9,cR,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),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 uR(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function hR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"div",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.close())}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changePassword())}),i._uU(6),i.ALo(7,"translate"),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 pR=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=c,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Ji.required],passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:GS.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Jw),i.Y36(Pi),i.Y36($m),i.Y36(pr),i.Y36(_i))},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,dR,11,9,"form",2),i.YNc(5,uR,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,hR,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))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,Hi,d_,Ap,dn,un,Kc,aa,zn,Ei,Xs,yp,Xi,PE,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 fR=["input"],mR=function(n){return{enterDuration:n}},gR=["*"],_R=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function bR(){return{color:"accent"}}});let FE=0;const AR={provide:Qn,useExisting:(0,i.Gpc)(()=>qE),multi:!0};class zE{constructor(a,e){this.source=a,this.value=e}}const jE=new i.OlP("MatRadioGroup");let yR=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+FE++,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 zE(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})(),qE=(()=>{class n extends yR{}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,YE,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([AR,{provide:jE,useExisting:n}]),i.qOj]}),n})();class MR{constructor(a){this._elementRef=a}}const wR=Sa(Oo(MR));let CR=(()=>{class n extends wR{constructor(e,t,r,l,c,s,o,d){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=c,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++FE,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,d&&(this.tabIndex=Zi(d,0)),this._removeUniqueSelectionListener=c.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)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new zE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const l=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;l&&(l.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(fR,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})(),YE=(()=>{class n extends CR{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jE,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(zr),i.Y36(i.QbO,8),i.Y36(_R,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:gR,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2),i._UZ(3,"span",3)(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.TgZ(9,"span",9)(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),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)("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(17,mR,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[ia],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),WE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();function vR(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TR(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 xR(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 SR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.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()()}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 ER(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 DR(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 HR(n,a){if(1&n&&(i.TgZ(0,"div",5)(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.TgZ(8,"p")(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p")(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,TR,3,3,"span",9),i.YNc(19,xR,3,3,"span",9),i.YNc(20,SR,10,12,"mat-radio-group",10),i.YNc(21,ER,3,3,"span",9),i.YNc(22,DR,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 LR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15)(1,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),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 PR=(()=>{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(zi),i.Y36(Cn),i.Y36(ja),i.Y36(qn))},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"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vR,1,0,"mat-spinner",1),i.YNc(5,HR,23,17,"div",2),i.YNc(6,LR,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))},dependencies:[w.O5,Pn,vn,hn,Lt,un,ls,Ei,qE,YE,lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function kR(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function RR(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 OR=(()=>{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=bi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(uk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fp(n,a){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(JS))},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")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,kR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,RR,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),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," "))},dependencies:[w.O5,Xi,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 IR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.removeNotification(l))}),i.qZA()()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const BR=function(n){return{top:n}};let NR=(()=>{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(pr),i.Y36(JS))},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,IR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,BR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,OR],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:[kP]}}),n})();function VR(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 FR(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const zR=function(n){return{color:n}};function jR(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,zR,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const qR=function(n,a){return{background:n,color:a}},YR=function(n,a){return{"min-height":n,"background-color":a}};let WR=(()=>{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(Gi),i.Y36(cv),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,VR,2,1,"div",1),i.YNc(2,FR,3,1,"div",2),i.YNc(3,jR,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,qR,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,YR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,Xi,Ka,DE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})(),UR=(()=>{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 c={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{c[`label_${o}`]=String(l[`label_${o}`])??l.label_en}),t.push(c)}),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:[gt,gt]}),n})();const kv=["*"],GR=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],$R=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],GE=xa(Sa(class{})),KR=Sa(class{}),$E=new i.OlP("MatList"),ZE=new i.OlP("MatNavList");let eO=(()=>{class n extends GE{constructor(){super(...arguments),this._stateChanges=new De.x}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:ZE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Rv=(()=>{class n extends GE{constructor(e){super(),this._elementRef=e,this._stateChanges=new De.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return 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:$E,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,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}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),JE=(()=>{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})(),XE=(()=>{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})(),OA=(()=>{class n extends KR{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const c=this._getHostElement();"button"===c.nodeName.toLowerCase()&&!c.hasAttribute("type")&&c.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function t0(n,a,e="mat"){n.changes.pipe(ti(n)).subscribe(({length:t})=>{Fc(a,`${e}-2-line`,!1),Fc(a,`${e}-3-line`,!1),Fc(a,`${e}-multi-line`,!1),2===t||3===t?Fc(a,`${e}-${t}-line`,!0):t>3&&Fc(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(ZE,8),i.Y36($E,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,JE,5),i.Suo(r,XE,5),i.Suo(r,LM,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:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:$R,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(GR),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()))},dependencies:[ia],encapsulation:2,changeDetection:0}),n})(),Ov=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,na,gt,nu,w.ez,$h,gt,nu,Pv]}),n})();const sO=function(n){return{color:n}};function oO(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,c=i.oxw();return i.KtG(l.external?c.goToURL(l.link):c.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()()}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,sO,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 lO=(()=>{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(c=>{c instanceof Jn&&(this.currentUrl=c.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(UR),i.Y36(Zt),i.Y36(Ai),i.Y36(_i))},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,oO,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.PC,Xi,eO,OA,So,MA,ia,lt,ri,EE],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})();const cO=["*",[["mat-toolbar-row"]]],dO=["*","mat-toolbar-row"],uO=as(class{constructor(n){this._elementRef=n}});let hO=(()=>{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})(),pO=(()=>{class n extends uO{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(Ni),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hO,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:dO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(cO),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%}"],encapsulation:2,changeDetection:0}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const Bv=function(n){return{color:n}};function fO(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()()),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,Bv,e.iconColor))}}function mO(n,a){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,Bv,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let _O=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ad))},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:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,fO,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,mO,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,gO,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);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(6,Bv,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,Xi,Hm,Pu,Ul,Lt,dr,lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const KE=function(n){return{color:n}};function bO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,KE,e.iconColor))}}function AO(n,a){1&n&&(i.TgZ(0,"div",8)(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()())}const yO=function(n){return{background:n}},MO=function(){return[]},wO=function(){return["/"]};let CO=(()=>{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(Gi),i.Y36(_i),i.Y36(gA))},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)(1,"div",1),i.YNc(2,bO,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.YNc(6,AO,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,yO,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,MO):i.DdM(16,wO)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,KE,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))},dependencies:[w.O5,w.PC,Xi,yh,Lt,MA,pO,_O],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 vO(n,a){if(1&n&&(i.TgZ(0,"span",1)(1,"a",2),i._uU(2),i.qZA()()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let TO=(()=>{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,Yt.h)(e=>e instanceof Jn)).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 c=l.snapshot.url.map(o=>o.path).join("/");""!==c&&(t+=`/${c}`);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(Ai),i.Y36(Xn),i.Y36(_i))},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,vO,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},dependencies:[w.sg,yh],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})();const xO=["footer"],eD=function(n){return{background:n}},SO=function(n){return{"min-height":n}};function EO(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2)(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(5);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(3,"mat-sidenav-container")(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7)(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),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,eD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,eD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,SO,t.contentHeight))}}function DO(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 HO=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=c,this.preferredLangService=s,this.titleService=o,this.document=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 - 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=>{const r=e.find(c=>"preferredLanguage"===c.friendlyName)?.value??null,l=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(l)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(_i),i.Y36(ov),i.Y36(i.sBO),i.Y36(cv),i.Y36(se),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(xO,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,EO,14,12,"ng-template",0),i.YNc(1,DO,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()))},dependencies:[w.O5,w.PC,eE,tE,uv,Ka,MA,DE,NR,WR,lO,CO,TO],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 tD=T(1158);function LO(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,l=i.oxw();return i.KtG(l.removeValue(r))}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA()()}}function PO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9)(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,c=i.oxw();return i.KtG(c.readonly&&c.attribute.displayName&&c.showValue(c.keys[l],c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.keys[c]=r)}),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,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.values[c]=r)}),i.qZA()(),i.YNc(7,LO,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 kO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function RO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function OO(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();return i.KtG(r.onShowChange())}),i.YNc(1,kO,2,0,"mat-icon",17),i.YNc(2,RO,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 IO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addValue())}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA()()}}let BO=(()=>{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=Zl(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))},dependencies:[w.sg,w.O5,Ap,dn,un,Kc,aa,ls,Vl,Xi,Lt,dr,cn,zn],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 NO=["input"],VO=["label"],FO=function(n){return{enterDuration:n}},zO=["*"],jO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:iD});function iD(){return{color:"accent",clickAction:"check-indeterminate"}}let qO=0;const nD=iD(),YO={provide:Qn,useExisting:(0,i.Gpc)(()=>tc),multi:!0};class WO{}const UO=Oo(as(Sa(xa(class{constructor(n){this._elementRef=n}}))));let GO=(()=>{class n extends UO{constructor(e,t,r,l,c,s,o){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,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||nD,this.color=this.defaultColor=this._options.color||nD.color,this.tabIndex=parseInt(c)||0,this.id=this._uniqueId=`${e}${++qO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=je(e);t!=this.checked&&(this._checked=t,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._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(NO,5),i.Gf(VO,5),i.Gf(ia,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),tc=(()=>{class n extends GO{constructor(e,t,r,l,c,s,o){super("mat-checkbox-",e,t,l,c,s,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new WO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(jO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",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"},exportAs:["matCheckbox"],features:[i._Bn([YO]),i.qOj],ngContentSelectors:zO,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(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.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()()),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,FO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[ia,Bh],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),rD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,Sl,rD,gt,rD]}),n})(),Nv=(()=>{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 JO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())})("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.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 XO(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 QO=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zl(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,JO,2,4,"mat-checkbox",0),i.YNc(2,XO,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))},dependencies:[w.O5,tc,un,ls,Hi,Nv]}),n})();function Vv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,null!=e&&e.has(t)?"important":""):n.removeProperty(t)}return n}function Zp(n,a){const e=a?"":"none";Vv(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 aD(n,a,e){Vv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function IA(n,a){return a&&"none"!=a?n+" "+a:n}function sD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Fv(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function zv(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 jv(n,a,e){const{top:t,bottom:r,left:l,right:c}=n;return e>=t&&e<=r&&a>=l&&a<=c}function tg(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function oD(n,a,e,t){const{top:r,right:l,bottom:c,left:s,width:o,height:d}=n,u=o*a,h=d*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zv(e)})})}handleScroll(a){const e=or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,c;if(e===this._document){const d=this.getViewportScrollPosition();l=d.top,c=d.left}else l=e.scrollTop,c=e.scrollLeft;const s=r.top-l,o=r.left-c;return this.positions.forEach((d,u)=>{d.clientRect&&e!==u&&e.contains(u)&&tg(d.clientRect,s,o)}),r.top=l,r.left=c,{top:s,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function cD(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._getTargetHandle(s);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),N=this._dropContainer;if(!b)return void this._endDragSequence(s);(!N||!N.isDragging()&&!N.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,o);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=d.x-u.x+this._passiveTransform.x,h.y=d.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new lD(t),c.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=>Zp(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=>Vi(t)),this._handles.forEach(t=>Zp(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=Vi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,BA),e.addEventListener("touchstart",this._pointerDown,pD),e.addEventListener("dragstart",this._nativeDragStart,BA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Vi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Zp(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Zp(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ig(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(),c=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),aD(t,!1,qv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=ig(e),l=!r&&0!==e.button,c=this._rootElement,s=or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?rs(e):eu(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||d)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=zv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){aD(this._rootElement,!0,qv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),c=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,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.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),r=mD(c,this._document),this._previewRef=c,a.matchSize?gD(r,l):r.style.transform=NA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=cD(this._rootElement),gD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Vv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},qv),Zp(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 eI(n){const a=getComputedStyle(n),e=Fv(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Fv(a,"transition-duration"),c=Fv(a,"transition-delay");return sD(l[r])+sD(c[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=c=>{var s;(!c||or(c)===this._preview&&"transform"===c.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=mD(this._placeholderRef,this._document)):t=cD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():a,c=ig(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-s.left),y:l.top-a.top+(c.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ig(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 c=this._ownerSVGElement.getScreenCTM();if(c){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(c.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,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,s=this._boundaryRect,{width:o,height:d}=this._getPreviewRect(),u=s.top+c,h=s.bottom-(d-c);t=fD(t,s.left+l,s.right-(o-l)),r=fD(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),s=Math.abs(t-l.y);return c>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,Zp(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,BA),a.removeEventListener("touchstart",this._pointerDown,pD),a.removeEventListener("dragstart",this._nativeDragStart,BA)}_applyRootElementTransform(a,e){const t=NA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=IA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,l=NA(a,e);this._preview.style.transform=IA(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._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,c=t.right-r.right,s=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,r.height>t.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:ig(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&tg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=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 Vi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function NA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function fD(n,a,e){return Math.max(a,Math.min(e,n))}function ig(n){return"t"===n.type[0]}function mD(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 gD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=NA(a.left,a.top)}function _D(n,a,e){const t=ng(a,n.length-1),r=ng(e,n.length-1);if(t===r)return;const l=n[t],c=r0)return null;const s="horizontal"===this.orientation,o=l.findIndex(pe=>pe.drag===a),d=l[c],h=d.clientRect,f=o>c?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),N=this._getSiblingOffsetPx(o,l,f),Q=l.slice();return _D(l,o,c),l.forEach((pe,Pe)=>{if(Q[Pe]===pe)return;const _t=pe.drag===a,kt=_t?b:N,Ut=_t?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=kt,s?(Ut.style.transform=IA(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),tg(pe.clientRect,0,kt)):(Ut.style.transform=IA(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),tg(pe.clientRect,kt,0))}),this._previousSwap.overlaps=jv(h,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:o,currentIndex:c}}enter(a,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,c=this._activeDraggables,s=c.indexOf(a),o=a.getPlaceholderElement();let d=c[l];if(d===a&&(d=c[l+1]),!d&&(null==l||-1===l||l-1&&c.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const u=d.getRootElement();u.parentElement.insertBefore(o,u),c.splice(l,0,a)}else Vi(this._element).appendChild(o),c.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(l=>l.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{tg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:zv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let s=l[r?"width":"height"]*t;if(c){const o=r?"left":"top",d=r?"right":"bottom";-1===t?s-=c.clientRect[o]-l[d]:s+=l[o]-c.clientRect[d]}return s}_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 c=t[t.length-1].clientRect;return r?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return r?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const d=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Bt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function KO(n=0,a=Ha.z){return n<0&&(n=0),(0,f0.H)(n,n,a)}(0,YM).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-s):2===this._verticalScrollDirection&&c.scrollBy(0,s),1===this._horizontalScrollDirection?c.scrollBy(-s,0):2===this._horizontalScrollDirection&&c.scrollBy(s,0)})},this.element=Vi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new lD(t),this._sortStrategy=new rI(this.element,e),this._sortStrategy.withSortPredicate((c,s)=>this.sortPredicate(c,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,c,s,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:c,dropPoint:s,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Vi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!oD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((c,s)=>{s===this._document||!c.clientRect||t||oD(c.clientRect,.05,a,e)&&([r,l]=function sI(n,a,e,t){const r=yD(a,t),l=MD(a,e);let c=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(c=1):n.scrollHeight-o>n.clientHeight&&(c=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[c,s]}(s,c.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:c,height:s}=this._viewportRuler.getViewportSize(),o={width:c,height:s,top:0,right:c,bottom:s,left:0};r=yD(o,e),l=MD(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=Vi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Vi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Vi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&jv(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!jv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Vi(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._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Vi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function yD(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 MD(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 VA=Kr({passive:!1,capture:!0});let oI=(()=>{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 De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,VA)})}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,VA)}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:VA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:VA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,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 Bn.y(r=>this._ngZone.runOutsideAngular(()=>{const c=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Fi.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 lI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Yv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=lI){return new nI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new aI(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(No),i.LFG(oI))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wD=new i.OlP("CDK_DRAG_PARENT"),CD=new i.OlP("CdkDropListGroup"),vD=new i.OlP("CDK_DRAG_CONFIG");let cI=0;const TD=new i.OlP("CdkDropList");let dI=(()=>{class n{constructor(e,t,r,l,c,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=c,this._group=s,this._destroyed=new De.x,this.connectedTo=[],this.id="cdk-drop-list-"+cI++,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=(d,u)=>this.enterPredicate(d.data,u.data),this._dropListRef.sortPredicate=(d,u,h)=>this.sortPredicate(d,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(ti(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Zd(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(c=>c.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=Zi(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:c,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=l??!1,this.autoScrollDisabled=c??!1,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(Yv),i.Y36(i.sBO),i.Y36(jc),i.Y36(Vn,8),i.Y36(CD,12),i.Y36(vD,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:CD,useValue:void 0},{provide:TD,useExisting:n}])]}),n})();const xD=new i.OlP("CdkDragHandle"),uI=new i.OlP("CdkDragPlaceholder"),hI=new i.OlP("CdkDragPreview");let fI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=c,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new De.x,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 Bn.y(b=>{const N=this._dragRef.moved.pipe((0,At.U)(Q=>({source:this,pointerPosition:Q.pointerPosition,event:Q.event,delta:Q.delta,distance:Q.distance}))).subscribe(b);return()=>{N.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex: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()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Vi(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,c=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:Zi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(c).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=n._dragInstances.find(l=>l.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:c,boundaryElement:s,draggingDisabled:o,rootElementSelector:d,previewContainer:u}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),c&&(this.previewClass=c),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(ti(this._handles),(0,mi.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,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._stateChanges.pipe(ti(t))))),rt(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(TD,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(vD,8),i.Y36(Vn,8),i.Y36(Yv),i.Y36(i.sBO),i.Y36(xD,10),i.Y36(wD,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hI,5),i.Suo(r,uI,5),i.Suo(r,xD,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:wD,useExisting:n}]),i.TTD]}),n})(),mI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yv],imports:[La]}),n})();const gI=["*"],SD=new i.OlP("MatChipRemove"),ED=new i.OlP("MatChipAvatar"),DD=new i.OlP("MatChipTrailingIcon");class _I{constructor(a){this._elementRef=a}}const bI=Oo(as(Sa(_I),"primary"),-1);let FA=(()=>{class n extends bI{constructor(e,t,r,l,c,s,o,d){super(e),this._ngZone=t,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new De.x,this._onBlur=new De.x,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 OM(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=d&&parseInt(d)||-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,dt.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(Ni),i.Y36(IM,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(i.QbO,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,ED,5),i.Suo(r,DD,5),i.Suo(r,SD,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:[1,"mat-chip","mat-focus-indicator"],hostVars:15,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)("role",t.role)("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",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const HD=new i.OlP("mat-chips-default-options"),wI=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let CI=0;class vI{constructor(a,e){this.source=a,this.value=e}}let LD=(()=>{class n extends wI{constructor(e,t,r,l,c,s,o){super(s,l,c,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new De.x,this._uid="mat-chip-list-"+CI++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===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._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}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!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}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,Fi.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Fi.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new zh(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ti(null),rt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Mn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(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 vI(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(Vn,8),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Vc),i.Y36(ra,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,FA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,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-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:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:Zc,useExisting:n}]),i.qOj],ngContentSelectors:gI,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:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),TI=0,PD=(()=>{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-"+TI++,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&&!An(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!An(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(HD))},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})(),Wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Vc,{provide:HD,useValue:{separatorKeyCodes:[13]}}],imports:[gt]}),n})();function xI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.dragDisabled=!1)}),i._uU(1,"drag_indicator"),i.qZA()}}function SI(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,l=i.oxw();return i.KtG(l.edit(r))}),i._uU(1,"edit"),i.qZA()}}function EI(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,l=i.oxw();return i.KtG(l.remove(r))}),i._uU(1,"cancel"),i.qZA()}}function DI(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,c=i.oxw();return c.remove(l),i.KtG(c._sendEventToParent())}),i.YNc(1,xI,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))}),i._uU(3),i.qZA(),i.YNc(4,SI,2,0,"mat-icon",7),i.YNc(5,EI,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 HI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function LI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"span",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(3,HI,2,0,"mat-icon",15),i.YNc(4,LI,2,0,"mat-icon",15),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 kI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12)(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.add(r))})("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())}),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 RI=(()=>{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=!Zl(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=Zl(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=bi();t.width="400px",t.data={name:e},this.dialog.open(Jk,t).afterClosed().subscribe(l=>{if(l){const c=this.attribute.value.indexOf(e);this.attribute.value.splice(c,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,_D(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=bi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(Zk,r).afterClosed().subscribe(c=>{c&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,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(Oi),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")(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,DI,6,9,"mat-chip",2),i.YNc(4,PI,5,4,"div",3),i.YNc(5,kI,2,3,"mat-form-field",3),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))},dependencies:[w.sg,w.O5,LD,FA,PD,dI,fI,Xi,Lt,dr,cn,zn],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})(),OI=(()=>{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=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},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)(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()()),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))},dependencies:[dn,un,ls,cn,zn,Nv],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),II=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=bi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(RA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},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)(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()()),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))},dependencies:[dn,vu,un,ls,cn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const BI=["map"];function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function VI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function FI(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 zI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function jI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let Uv=(()=>{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(BI,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,NI,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,VI,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,FI,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,zI,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,jI,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))},dependencies:[w.O5,QO,RI,BO,OI,II]}),n})();function qI(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function YI(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,c=i.oxw(4);return i.KtG(c.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 WI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",14),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentLang=r)}),i.YNc(2,YI,4,6,"mat-option",15),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 UI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeEmail())}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),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 GI(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,c=i.oxw(4);return i.KtG(c.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 $I(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",19),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentTimezone=r)}),i.YNc(2,GI,2,2,"mat-option",15),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 ZI(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function JI(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 XI(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZI,2,0,"p",20),i.YNc(2,JI,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 QI(n,a){if(1&n&&(i.TgZ(0,"tr")(1,"td",7)(2,"div",8),i._uU(3),i.qZA()(),i.TgZ(4,"td",9),i.YNc(5,WI,3,2,"mat-form-field",10),i.YNc(6,UI,6,2,"div",11),i.YNc(7,$I,3,2,"mat-form-field",10),i.YNc(8,XI,3,2,"div",12),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 KI(n,a){if(1&n&&(i.TgZ(0,"table",4)(1,"tbody")(2,"tr")(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.YNc(9,QI,9,6,"tr",6),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 eB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=c,this.route=s,this.router=o,this.notificator=d,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=tD.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=bi();l.width="600px",this.dialog.open(lR,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new CA).transform(t);const r=t.userAttributes.find(u=>"preferredMail"===u.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(u=>"preferredLanguage"===u.friendlyName);const c=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(c),this.currentLang=c,this.timezoneAttribute=t.userAttributes.find(u=>"timezone"===u.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const s=this.storeService.get("profile_page_attributes");let o=0;const d=this.storeService.get("supported_languages");s.forEach(u=>{const h=t.userAttributes.find(f=>f.friendlyName===u.friendly_name);h?(o++,this.addAttribute(h,u,d)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${u.is_virtual?"virt":"def"}:${u.friendly_name}`).subscribe(f=>{this.addAttribute(f,u,d),o++,this.loading=o!==s.length}),this.loading=o!==s.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=bi();e.width="350px",e.data={userId:this.userId},this.dialog.open(Kk,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const l={attribute:e};for(const c of r)l[`displayName_${c}`]=t?.[`display_name_${c}`]?.length?t[`display_name_${c}`]:e.displayName,l[`tooltip_${c}`]=t[`tooltip_${c}`]??"";this.additionalAttributes.push(l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Oi),i.Y36(ht),i.Y36(Xt),i.Y36(Pi),i.Y36(Xn),i.Y36(Ai),i.Y36(pr),i.Y36(Zt),i.Y36($m),i.Y36(cv))},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,qI,1,0,"mat-spinner",1),i.YNc(2,KI,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,w.RF,w.n9,w.ED,Xi,Lt,Uv,cn,Tp,js,Ei,dr,w.gd,lt,ri],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})(),tB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Xi,lt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),iB=(()=>{class n{constructor(e,t,r,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=l}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let l=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const o=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let f;if(h){const N=bi();N.width="450px",N.panelClass="noBorderDialog",f=this.dialog.open(tB,N)}window.addEventListener("message",N=>{sessionStorage.setItem("linkedResult",N.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const N=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(N)}},1e3)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(gA),i.LFG(Zt),i.LFG(ju.Ct),i.LFG(Oi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gv=(()=>{class n{}return n.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",n.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",n.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",n.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",n.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",n.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",n.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",n.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",n.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",n.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",n.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",n.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",n.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",n.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",n.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",n.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",n.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",n.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",n.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",n.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",n.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",n.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",n.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",n.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",n.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",n.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",n.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",n})();const nB=["mat-sort-header",""];function rB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),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 aB=["*"],kD=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),sB=iu(xa(class{}));let gs=(()=>{class n extends sB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,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 c=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear);let s=function oB(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,c),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(kD,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 od=Uh.ENTERING+" "+v1.STANDARD_CURVE,Jp={indicator:wi("indicator",[Rt("active-asc, asc",Ie({transform:"translateY(0px)"})),Rt("active-desc, desc",Ie({transform:"translateY(10px)"})),Pt("active-asc <=> active-desc",Et(od))]),leftPointer:wi("leftPointer",[Rt("active-asc, asc",Ie({transform:"rotate(-45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(45deg)"})),Pt("active-asc <=> active-desc",Et(od))]),rightPointer:wi("rightPointer",[Rt("active-asc, asc",Ie({transform:"rotate(45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(-45deg)"})),Pt("active-asc <=> active-desc",Et(od))]),arrowOpacity:wi("arrowOpacity",[Rt("desc-to-active, asc-to-active, active",Ie({opacity:1})),Rt("desc-to-hint, asc-to-hint, hint",Ie({opacity:.54})),Rt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ie({opacity:0})),Pt("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),Pt("* <=> *",Et(od))]),arrowPosition:wi("arrowPosition",[Pt("* => desc-to-hint, * => desc-to-active",Et(od,Us([Ie({transform:"translateY(-25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-desc, * => active-to-desc",Et(od,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(25%)"})]))),Pt("* => asc-to-hint, * => asc-to-active",Et(od,Us([Ie({transform:"translateY(25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-asc, * => active-to-asc",Et(od,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(-25%)"})]))),Rt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ie({transform:"translateY(0)"})),Rt("hint-to-desc, active-to-desc, desc",Ie({transform:"translateY(-25%)"})),Rt("hint-to-asc, active-to-asc, asc",Ie({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Pt("* <=> *",[Fr("@*",kl(),{optional:!0})])])};let zA=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cB={provide:zA,deps:[[new i.FiY,new i.tp0,zA]],useFactory:function lB(n){return n||new zA}},dB=xa(class{});let rg=(()=>{class n extends dB{constructor(e,t,r,l,c,s,o,d){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=c,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=d?.arrowPosition),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(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Fi.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(zA),i.Y36(i.sBO),i.Y36(gs,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(vr),i.Y36(i.SBq),i.Y36(p1,8),i.Y36(kD,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:nB,ngContentSelectors:aB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,rB,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)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jp.indicator,Jp.leftPointer,Jp.rightPointer,Jp.arrowOpacity,Jp.arrowPosition,Jp.allowChildren]},changeDetection:0}),n})(),jA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[cB],imports:[w.ez,gt]}),n})(),uB=(()=>{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})(),RD=(()=>{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})(),hB=(()=>{class n{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function pB(n,a){1&n&&i._UZ(0,"th",18)}function fB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),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 mB(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 gB(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 _B(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 bB(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 AB(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 yB(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 MB(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 wB(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 CB(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 vB(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 TB(n,a){1&n&&i._UZ(0,"tr",26)}const OD=function(n,a){return["/admin","users",n,"identities",a]};function xB(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,OD,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,OD,t.userId,e.userExtSource.id))}}function SB(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 EB(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 DB=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Mn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=Fu}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 Zo(this.userExtSources),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(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(Xn),i.Y36(Ua))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,pB,1,0,"th",4),i.YNc(5,fB,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,mB,4,5,"th",7),i.YNc(8,gB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,_B,4,5,"th",10),i.YNc(11,bB,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,AB,4,5,"th",7),i.YNc(14,yB,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,MB,4,5,"th",7),i.YNc(17,wB,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,CB,4,5,"th",7),i.YNc(20,vB,3,4,"td",14),i.BQk(),i.YNc(21,TB,1,0,"tr",15),i.YNc(22,xB,1,12,"tr",16),i.qZA()()(),i.YNc(23,SB,3,3,"perun-web-apps-alert",17),i.YNc(24,EB,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))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,So,gs,rg,Gn,dr,ds,RD,w.uU,lt,hB,ri],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 HB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function LB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.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 i.KtG(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 PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addIdentity())}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeIdentity(r.idpSelection))}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i._UZ(9,"perun-web-apps-user-ext-sources-list",7),i.YNc(10,LB,14,22,"div",3),i.TgZ(11,"h1",8),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.TgZ(15,"mat-icon",9),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i._uU(18," info_outline "),i.qZA()(),i._UZ(19,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,16,i.lcZ(4,18,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(7,20,i.lcZ(8,22,"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(13,24,i.lcZ(14,26,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(16,28,i.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let kB=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=l,this.translate=c,this.notificator=s,this.registrarManagerService=o,this.openLinkerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Mn(!0,[]),this.certSelection=new Mn(!0,[]),this.otherSelection=new Mn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.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.getUserExtSourceAttributesByNames(r.userExtSource.id,[Gv.UES_SOURCE_IDP_NAME,Gv.UES_DEF_MAIL]).subscribe(l=>{let c;l.filter(s=>"mail"===s.baseFriendlyName&&null===s.value).map(s=>r.attributes.push(s)),l.filter(s=>"sourceIdPName"===s.baseFriendlyName&&s?.value).map(s=>c=s.value),c?(r.userExtSource.extSource.name=c,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,Gv.UES_IDP_ORGANIZATION_NAME).subscribe(s=>{t--,s?.value&&(r.userExtSource.extSource.name=s.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=bi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(Wk,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(Oi),i.Y36(Xt),i.Y36(_i),i.Y36(pr),i.Y36(nc),i.Y36(iB))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,HB,1,0,"mat-spinner",2),i.YNc(6,PB,20,32,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"IDENTITIES.IDP"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Xi,Lt,DB,Ei,dr,lt,ri],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const RB=["panel"];function OB(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 IB=["*"];let BB=0;class NB{constructor(a,e){this.source=a,this.option=e}}const VB=Sa(class{}),ID=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function FB(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let zB=(()=>{class n extends VB{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Bt.w0.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-"+BB++,this.inertGroups=l?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function rM(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 ta(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 NB(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(ID),i.Y36(Ni))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(RB,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",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),jB=(()=>{class n extends zB{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,ru,5),i.Suo(r,js,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:r0,useExisting:n}]),i.qOj],ngContentSelectors:IB,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,OB,3,4,"ng-template"))},dependencies:[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}"],encapsulation:2,changeDetection:0}),n})();const BD=new i.OlP("mat-autocomplete-scroll-strategy"),YB={provide:BD,deps:[yn],useFactory:function qB(n){return()=>n.scrollStrategies.reposition()}},WB={provide:Qn,useExisting:(0,i.Gpc)(()=>ND),multi:!0};let UB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=c,this._dir=o,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Bt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new De.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nr(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(ti(b),(0,Nt.w)(()=>(0,Fi.T)(...b.map(N=>N.onSelectionChange)))):this._zone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Fi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Yt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,At.U)(e=>e instanceof a0?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Fi.T)(qs(this._document,"click"),qs(this._document,"auxclick"),qs(this._document,"touchend")).pipe((0,Yt.h)(e=>{const t=or(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=An(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const l=this.autocomplete._keyManager.activeItem,c=38===t||40===t;9===t||c&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):c&&this._canOpen()&&this.openPanel(),(c||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,dt.q)(1)),t=this.autocomplete.options.changes.pipe((0,mi.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Sp.g)(0));return(0,Fi.T)(e,t).pipe((0,Nt.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,dt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Dl(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new lu({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 c;c="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(c)}_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=s0(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 c=l._getHostElement(),s=o0(c.offsetTop,c.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!An(t)||38===t.keyCode&&An(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(yn),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(BD),i.Y36(Vn,8),i.Y36(Jc,9),i.Y36(w.K0,8),i.Y36(No),i.Y36(ID,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})(),ND=(()=>{class n extends UB{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)})("click",function(){return t._handleClick()}),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?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([WB]),i.qOj]}),n})(),GB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[YB],imports:[zo,au,gt,w.ez,La,au,gt]}),n})(),$B=(()=>{class n{transform(e){return e?.value??"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function ZB(n,a){1&n&&i._UZ(0,"th",17)}function JB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),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 XB(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 QB(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 KB(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 eN(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 tN(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 iN(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 nN(n,a){1&n&&i._UZ(0,"th",20)}function rN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.extend(l))}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),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 aN(n,a){1&n&&i._UZ(0,"tr",25)}function sN(n,a){1&n&&i._UZ(0,"tr",26)}function oN(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 VD=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new Mn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=Fu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Zo(this.members),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(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(ds,7),i.Gf(gs,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZB,1,0,"th",4),i.YNc(5,JB,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,XB,4,5,"th",7),i.YNc(8,QB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KB,4,5,"th",7),i.YNc(11,eN,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,tN,4,5,"th",12),i.YNc(14,iN,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,nN,1,0,"th",7),i.YNc(17,rN,6,8,"td",10),i.BQk(),i.YNc(18,aN,1,0,"tr",14),i.YNc(19,sN,1,0,"tr",15),i.qZA()()(),i.YNc(20,oN,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))},dependencies:[w.O5,Lt,Gn,no,hs,ro,ps,us,ao,fs,ms,so,oo,tc,gs,rg,ds,lt,ri,$B]}),n})();function lN(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 cN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7)(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){i.CHM(e);const l=i.oxw();return i.KtG(l.filterByVo(r))}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,lN,2,2,"mat-option",12),i.ALo(14,"async"),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 dN(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function uN(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 hN=function(){return["name","description","expirationAttribute","extend"]};function pN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.extendMembership(r))}),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,hN))}}const fN=function(){return["name","description"]};function mN(n,a){if(1&n&&(i.TgZ(0,"div",18)(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,fN))}}let gN=(()=>{class n{constructor(e,t,r,l,c,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=c,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new Ra,this.selection=new Mn(!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(ti(""),(0,At.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(c=>{e+=c.length,this.loading=0===e&&0!==t,c.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(c=>{this.adminMemberships.push({entity:c,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 c=l.length;this.loading=0!==c,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{c--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==c})})})}),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(c=>c.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(Pi),i.Y36(On),i.Y36(qn),i.Y36(Zt),i.Y36(tn),i.Y36(Xt))},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,cN,15,19,"mat-form-field",2),i.YNc(6,dN,1,0,"mat-spinner",3),i.YNc(7,uN,4,5,"perun-web-apps-alert",4),i.YNc(8,pN,6,9,"div",5),i.YNc(9,mN,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))},dependencies:[w.sg,w.O5,Gn,cn,Hi,js,zn,dn,un,Oa,Ei,jB,ND,VD,w.Ov,lt,ri]}),n})();function _N(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 bN(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 Xp=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ra}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","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,_N,2,4,"input",1),i.YNc(2,bN,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,dn,un,cn,Oa,zn,uB,lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})();function AN(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 yN=(()=>{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,AN,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[w.O5,Xi,dr,lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function MN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),i.Q2q("data-cy","",e.groupName,"-active")}}function wN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),i.Q2q("data-cy","",e.groupName,"-inactive")}}function CN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),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 vN(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()()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let TN=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new i.vpe}changeStatus(){const e=bi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(PR,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,MN,4,4,"span",1),i.YNc(2,wN,4,4,"span",1),i.YNc(3,CN,4,4,"span",1),i.YNc(4,vN,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))},dependencies:[w.O5,Xi,dr,lt]}),n})(),xN=(()=>{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})(),SN=(()=>{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 EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24)(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 DN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26)(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(c):null)})("click",function(r){return r.stopPropagation()}),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 HN(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 LN(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 PN(n,a){1&n&&i._UZ(0,"th",31)}function kN(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 RN(n,a){1&n&&i._UZ(0,"th",31)}function ON(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 IN(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,ON,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function BN(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 NN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function VN(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 FN(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 zN(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 jN(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 qN(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 YN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable.emit())}),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 WN(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 UN(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 GN(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 $N(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 ZN(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 JN(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 XN(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 QN(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 KN(n,a){1&n&&i._UZ(0,"tr",37)}const e3=function(n){return[n]};function t3(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,e3,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function n3(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 r3(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 a3=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Mn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=Fu,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 c="";return e.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new Zo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>zu(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(Ua),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,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","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,EN,2,3,"th",4),i.YNc(5,DN,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,HN,3,3,"th",7),i.YNc(8,LN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,PN,1,0,"th",10),i.YNc(11,kN,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,RN,1,0,"th",10),i.YNc(14,IN,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,BN,3,3,"th",7),i.YNc(17,NN,2,2,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,VN,3,3,"th",7),i.YNc(20,FN,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,zN,3,3,"th",7),i.YNc(23,jN,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,qN,3,3,"th",7),i.YNc(26,YN,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,WN,3,3,"th",7),i.YNc(29,UN,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,GN,3,3,"th",7),i.YNc(32,$N,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,ZN,3,3,"th",7),i.YNc(35,JN,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,XN,3,3,"th",7),i.YNc(38,QN,2,1,"td",11),i.BQk(),i.YNc(39,KN,1,0,"tr",21),i.YNc(40,t3,3,14,"tr",22),i.qZA()()(),i.YNc(41,n3,3,3,"perun-web-apps-alert",23),i.YNc(42,r3,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))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,So,gs,rg,Gn,Xi,dr,ds,RD,yN,TN,lt,xN,SN],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})(),s3=0;const $v=new i.OlP("CdkAccordion");let o3=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+s3++,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:$v,useExisting:n}]),i.TTD]}),n})(),l3=0,c3=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Bt.w0.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-"+l3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&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($v,12),i.Y36(i.sBO),i.Y36(zr))},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:$v,useValue:void 0}])]}),n})(),d3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const u3=["body"];function h3(n,a){}const p3=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],f3=["mat-expansion-panel-header","*","mat-action-row"];function m3(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const g3=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_3=["mat-panel-title","mat-panel-description","*"],Zv=new i.OlP("MAT_ACCORDION"),FD="225ms cubic-bezier(0.4,0.0,0.2,1)",zD={indicatorRotate:wi("indicatorRotate",[Rt("collapsed, void",Ie({transform:"rotate(0deg)"})),Rt("expanded",Ie({transform:"rotate(180deg)"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))]),bodyExpansion:wi("bodyExpansion",[Rt("collapsed, void",Ie({height:"0px",visibility:"hidden"})),Rt("expanded",Ie({height:"*",visibility:"visible"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))])},jD=new i.OlP("MAT_EXPANSION_PANEL");let ag=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(jD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),b3=0;const qD=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let sg=(()=>{class n extends c3{constructor(e,t,r,l,c,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 De.x,this._headerId="mat-expansion-panel-header-"+b3++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(Ih((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.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._lazyContent._expansionPanel===this&&this.opened.pipe(ti(null),(0,Yt.h)(()=>this.expanded&&!this._portal),(0,dt.q)(1)).subscribe(()=>{this._portal=new Dl(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(Zv,12),i.Y36(i.sBO),i.Y36(zr),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(qD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,ag,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(u3,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:Zv,useValue:void 0},{provide:jD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:f3,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(p3),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,h3,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))},dependencies:[rp],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[zD.bodyExpansion]},changeDetection:0}),n})();class A3{}const y3=Oo(A3);let og=(()=>{class n extends y3{constructor(e,t,r,l,c,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=Bt.w0.EMPTY;const d=e.accordion?e.accordion._stateChanges.pipe((0,Yt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Ur.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Fi.T)(e.opened,e.closed,d,e._inputChanges.pipe((0,Yt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Yt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.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:An(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(sg,1),i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.Y36(qD,8),i.Y36(i.QbO,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:_3,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(g3),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,m3,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[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-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[zD.indicatorRotate]},changeDetection:0}),n})(),qA=(()=>{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})(),YA=(()=>{class n extends o3{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(ti(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zh(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,og,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:Zv,useExisting:n}]),i.qOj]}),n})(),Jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,d3,Fo]}),n})();function M3(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const w3=function(){return["name","description"]};function C3(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,w3))("disableRouting",!0)}}function v3(n,a){if(1&n&&(i.YNc(0,M3,1,0,"mat-spinner",6),i.YNc(1,C3,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 T3(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,c=i.oxw();return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,v3,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let x3=(()=>{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(Pi),i.Y36(On),i.Y36(ja),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)(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,T3,5,1,"mat-expansion-panel",3),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))},dependencies:[w.sg,w.O5,Xp,a3,YA,sg,og,qA,ag,Ei,lt,ri]}),n})();function S3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilter(r))}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function E3(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const D3=function(){return["name","expirationAttribute","extend"]};function H3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.extendMembership(r))}),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,D3))}}function L3(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 P3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,H3,2,5,"div",9),i.YNc(6,L3,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 k3(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 R3=function(){return["name"]};function O3(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,R3))}}function I3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,k3,4,5,"perun-web-apps-alert",10),i.YNc(6,O3,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 B3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Mn(!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 c=r.find(s=>s.voId===l.id);c?this.membersService.getRichMemberWithAttributes(c.id).subscribe(s=>{const o=s.memberAttributes.find(d=>"membershipExpiration"===d.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(Pi),i.Y36(Zt),i.Y36(On))},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,S3,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,E3,1,0,"mat-spinner",3),i.YNc(7,P3,7,7,"div",4),i.YNc(8,I3,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))},dependencies:[w.O5,Xp,Gn,Ei,VD,lt,ri]}),n})(),N3=(()=>{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())},dependencies:[Ka]}),n})(),V3=(()=>{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(zi),i.Y36(Cn))},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)(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.TgZ(11,"div",3)(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()()),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"))," "))},dependencies:[Lt,Pn,vn,hn,Lv,lt,ri],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function F3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function z3(n,a){1&n&&i._UZ(0,"th",16)}function j3(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 q3(n,a){1&n&&i._UZ(0,"tr",18)}function Y3(n,a){1&n&&i._UZ(0,"tr",19)}function W3(n,a){if(1&n&&(i.TgZ(0,"div",8)(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,z3,1,0,"th",12),i.YNc(12,j3,2,1,"td",13),i.BQk(),i.YNc(13,q3,1,0,"tr",14),i.YNc(14,Y3,1,0,"tr",15),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 U3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Zo(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(zi),i.Y36(Cn),i.Y36(Pi))},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,F3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,W3,15,13,"div",3),i.TgZ(7,"div",4)(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()()),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"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,no,hs,ro,ps,us,ao,fs,ms,so,oo,Ei,lt,ri]}),n})();function G3(n,a){1&n&&i._UZ(0,"th",12)}function $3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13)(1,"mat-checkbox",14),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),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 Z3(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 J3(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 X3(n,a){1&n&&i._UZ(0,"tr",17)}function Q3(n,a){1&n&&i._UZ(0,"tr",18)}function K3(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 YD=(()=>{class n{constructor(){this.values=[],this.selection=new Mn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Zo(this.values),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),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(ds,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","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,G3,1,0,"th",4),i.YNc(5,$3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Z3,2,1,"th",7),i.YNc(8,J3,2,1,"td",8),i.BQk(),i.YNc(9,X3,1,0,"tr",9),i.YNc(10,Q3,1,0,"tr",10),i.qZA()()(),i.YNc(11,K3,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))},dependencies:[w.O5,Gn,no,hs,ro,ps,us,ao,fs,ms,so,oo,tc,ds],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function eV(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 tV(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let iV=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=c,this.altPasswordCtrl=new Ra(null,[Ji.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Mn(!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({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=bi();t.width="600px",t.data={password:e},this.dialog.open(V3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const c=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*c);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=bi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(U3,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(Xt),i.Y36(Oi),i.Y36(_i),i.Y36(Pi))},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)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),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,eV,1,4,"perun-web-apps-string-list",8),i.YNc(27,tV,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))},dependencies:[w.O5,Lt,Gn,cn,zn,dn,un,Oa,Ei,YD,lt,ri]}),n})();function nV(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1)(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()()),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 rV=(()=>{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,nV,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,Xi,Rv,OA,So,ia,lt,ri],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),aV=(()=>{class n extends Tn{buildStyles(e,{display:t}){const r=nE(e);return{...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 sV=["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 oV=(()=>{class n extends pn{constructor(e,t,r,l,c){super(e,r,t,l),this._config=c,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=UD.get(l))&&void 0!==t?t:new Map,UD.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(aV),i.Y36(nn),i.Y36(io))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),WD=(()=>{class n extends oV{constructor(){super(...arguments),this.inputs=sV}}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 UD=new Map;let FV=(()=>{class n extends Tn{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 zV=["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 jV=(()=>{class n extends pn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=qV,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(FV),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const qV=new Map;let ZD=(()=>{class n extends jV{constructor(){super(...arguments),this.inputs=zV}}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})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv,ko]}),n})();function sF(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 oF=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=c,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",c.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 Ra(null,[Ji.required]),this.newValueControl=new Ra(null,[Ji.required,Ji.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new CA).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(zi),i.Y36(Cn),i.Y36(fi),i.Y36(pr),i.Y36(_i))},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)(5,"div")(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.TgZ(12,"div")(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.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,sF,2,2,"mat-option",7),i.qZA()(),i.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA()()(),i.TgZ(33,"div",10)(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()()()),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"))," "))},dependencies:[w.sg,Lt,WD,ZD,cn,Tp,js,Pn,hn,zn,dn,vu,un,aa,Oa,lt,ri],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 lF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function cF(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 dF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"p")(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,c=i.oxw();return i.KtG(c.requestChangeQuota(l,r))}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),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 uF(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 hF(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,c=i.oxw(4);return i.KtG(c.getResAttributes(l.id))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,dF,15,16,"div",7),i.YNc(5,uF,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 pF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,hF,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function fF(n,a){if(1&n&&(i.YNc(0,lF,1,0,"mat-spinner",5),i.YNc(1,cF,4,5,"perun-web-apps-alert",6),i.YNc(2,pF,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 mF(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,c=i.oxw();return i.KtG(c.getMembersResources(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,fF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let gF=(()=>{class n{constructor(e,t,r,l,c,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,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(c=>{this.attributesManagerService.getResourceAttributes(c.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(c),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=bi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(oF,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(Pi),i.Y36(On),i.Y36(ja),i.Y36(Xt),i.Y36(Oi))},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"],[1,"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,mF,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))},dependencies:[w.sg,w.O5,Lt,Xp,Gn,YA,sg,og,qA,ag,Ei,lt,ri],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),n})();function _F(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function bF(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 AF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.deselectResource())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeSelectedResource(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"div",10)(5,"mat-checkbox",11),i.NdJ("change",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.setOptOut())}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),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 yF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,AF,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function MF(n,a){if(1&n&&(i.YNc(0,_F,1,0,"mat-spinner",5),i.YNc(1,bF,4,5,"perun-web-apps-alert",6),i.YNc(2,yF,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 wF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.deselectVo())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changeSelectedVo(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,MF,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 CF=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.route=s,this.router=o,this.notificator=d,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.sort(KC),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.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,c.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(c.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const d=s.find(u=>"optOutMailingList"===u.friendlyName);d&&"true"!==o?.value&&(this.optOuts.push({resource:c.id,member:t.id,attribute:d}),this.resources.push(c),this.selectedResource===c.name&&(this.getOptOutAttribute(c),this.changeSelectedResource(c))),this.loading=0!==l})})})}),this.resources.sort(KC)})}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(Pi),i.Y36(On),i.Y36(ja),i.Y36(Xt),i.Y36(Xn),i.Y36(Ai),i.Y36(pr),i.Y36(_i))},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,wF,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))},dependencies:[w.sg,w.O5,Xp,Gn,YA,sg,og,qA,ag,tc,Ei,lt,ri]}),n})();function vF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TF(n,a){1&n&&i._UZ(0,"th",17)}function xF(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 SF(n,a){1&n&&i._UZ(0,"tr",19)}function EF(n,a){1&n&&i._UZ(0,"tr",20)}function DF(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,TF,1,0,"th",13),i.YNc(3,xF,2,1,"td",14),i.BQk(),i.YNc(4,SF,1,0,"tr",15),i.YNc(5,EF,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 HF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1)(1,"div",5)(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,DF,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8)(10,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),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 UA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Zo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},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,vF,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,HF,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))},dependencies:[w.O5,Lt,Pn,vn,hn,no,hs,ro,ps,us,ao,fs,ms,so,oo,Ei,lt,ri]}),n})();function LF(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 PF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeValue())}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function kF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),i.NdJ("valueChange",function(r){const c=i.CHM(e).index,s=i.oxw(2);return i.KtG(s.shells[c]=r)}),i.YNc(3,PF,2,2,"mat-option",9),i.qZA()(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw(2);return i.KtG(c.removeShell(l))}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),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 RF(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,kF,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let OF=(()=>{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(c=>this.removeDialogDescription=c),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c)}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=bi();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(UA,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=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},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,LF,4,5,"perun-web-apps-alert",3),i.YNc(13,RF,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))},dependencies:[w.sg,w.O5,Rv,OA,Lt,Gn,cn,Tp,js,lt,ri]}),n})();function IF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function BF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),i._UZ(4,"input",7),i.qZA()()(),i.TgZ(5,"div",8)(6,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),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 NF=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Ra(null,Ji.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},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,IF,1,0,"mat-spinner",2),i.YNc(6,BF,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))},dependencies:[w.O5,Lt,cn,Pn,vn,hn,zn,dn,un,aa,Oa,Ei,lt,ri]}),n})();function VF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2)(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.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,c=r.index,s=i.oxw();return i.KtG(s.removeGroupName(l,c))}),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 FF=(()=>{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(c=>this.removeDialogDescription=c),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(c=>this.alertText=c),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}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 Mn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=bi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(NF,r).afterClosed().subscribe(c=>{c&&this.getAttribute(e)})}removeGroupName(e,t){const r=bi();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(UA,r).afterClosed().subscribe(c=>{c&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},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,VF,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))},dependencies:[w.sg,Lt,YD,lt,ri]}),n})();function zF(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 jF(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 qF(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 YF=(()=>{class n{constructor(e,t,r,l,c){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=c,c.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),c.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),c.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Ra("",[Ji.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Pi),i.Y36(pr),i.Y36(_i))},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,zF,4,5,"perun-web-apps-alert",1),i.YNc(5,jF,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2)(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),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.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,qF,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))},dependencies:[w.O5,Xi,Lt,Gn,cn,zn,dn,un,Oa,dr,lt,ri]}),n})();function WF(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 Jo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Ra(null,[Ji.required,Ji.pattern(Jo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}Jo.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"],Jo.sshKeyPattern="^("+Jo.allowedSshKeys.join("|")+").+$",Jo.\u0275fac=function(a){return new(a||Jo)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},Jo.\u0275cmp=i.Xpm({type:Jo,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)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,WF,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(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()()),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"))," "))},dependencies:[w.O5,Lt,jo,cn,Pn,vn,hn,wA,zn,dn,un,aa,Oa,lt,ri],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 UF=(()=>{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(zi),i.Y36(Cn))},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)(1,"textarea",1),i._uU(2),i.qZA()(),i.TgZ(3,"mat-dialog-actions")(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),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"))," "))},dependencies:[Lt,hn,wA,zn,lt,ri],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function GF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.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.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!1))}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),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 $F(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",9)(4,"mat-icon"),i._uU(5," file_copy "),i.qZA()(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!0))}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let ZF=(()=>{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 Mn(!1,[]),this.selectionAdmin=new Mn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}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=bi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Jo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=bi();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(UA,r).afterClosed().subscribe(c=>{c&&(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=bi();t.width="600px",t.data={value:e},this.dialog.open(UF,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},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 w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(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,GF,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,$F,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))},dependencies:[w.sg,Xi,Rv,OA,Lt,Lv,ia,dr,lt,ri],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})(),JF=(()=>{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 XF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 QF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),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 KF(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 ez(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 tz(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 iz(n,a){if(1&n&&(i.TgZ(0,"td",23)(1,"div",24),i._uU(2),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 nz(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 rz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.onValueChange(l))}),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 az(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 sz(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 oz(n,a){1&n&&i._UZ(0,"tr",27)}function lz(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 cz(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 dz(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 uz=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Mn(!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=Fu}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Zl(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 Zo(function ZC(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(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(Ua),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7),i.Gf(Uv,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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,XF,2,3,"th",4),i.YNc(5,QF,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,KF,3,3,"th",7),i.YNc(8,ez,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,tz,3,3,"th",7),i.YNc(11,iz,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,nz,3,3,"th",12),i.YNc(14,rz,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,az,3,3,"th",7),i.YNc(17,sz,2,1,"td",10),i.BQk(),i.YNc(18,oz,1,0,"tr",14),i.YNc(19,lz,2,5,"tr",15),i.qZA()()(),i.YNc(20,cz,3,3,"perun-web-apps-alert",16),i.YNc(21,dz,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))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,rg,Gn,dr,ds,Uv,lt,JF,Nv],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 hz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function pz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function fz(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 mz(n,a){if(1&n&&(i.YNc(0,pz,1,0,"mat-spinner",3),i.YNc(1,fz,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 gz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function _z(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 bz(n,a){if(1&n&&(i.YNc(0,gz,1,0,"mat-spinner",3),i.YNc(1,_z,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 Az(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,c=i.oxw(2);return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()(),i.YNc(6,bz,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 yz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),i.NdJ("opened",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.getUserData())}),i.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()(),i.YNc(7,mz,2,2,"ng-template",7),i.qZA(),i.YNc(8,Az,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 Mz=(()=>{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 CA).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(Pi),i.Y36(On),i.Y36(Xt),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)(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,hz,1,0,"mat-spinner",3),i.YNc(9,yz,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))},dependencies:[w.sg,w.O5,Xp,uz,YA,sg,og,qA,ag,Ei,lt,ri]}),n})(),wz=(()=>{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")},dependencies:[Ka]}),n})(),Sz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Oz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sz,gt,gt]}),n})(),Nz=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $z={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[yn],useFactory:function Gz(n){return()=>n.scrollStrategies.reposition()}};let tT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Nz,$z],imports:[w.ez,Ea,zo,Yh,Fo,gt,La]}),n})();new i.OlP("mat-selectsearch-default-options");let nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Qs,Ea,eg,Ia,Wp,Ks]]}),n})(),iT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),t2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,gt,$h,gt]}),n})(),sj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ko]}),n})(),nT=(()=>{class n{constructor(){this.changes=new De.x,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 _j={provide:nT,deps:[[new i.FiY,new i.tp0,nT]],useFactory:function gj(n){return n||new nT}};let s2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_j,Vc],imports:[gt,w.ez,Fo,Ea,sj,Ia,na,gt]}),n})(),wj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Fo,na,Sl,Yh,gt]}),n})();const Cj=["input"],vj=function(n){return{enterDuration:n}},Tj=["*"],xj=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Sj=0;const Ej={provide:Qn,useExisting:(0,i.Gpc)(()=>o2),multi:!0};class Dj{constructor(a,e){this.source=a,this.checked=e}}const Hj=Oo(as(Sa(xa(class{constructor(n){this._elementRef=n}}))));let Lj=(()=>{class n extends Hj{constructor(e,t,r,l,c,s,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=c,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,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=c.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${o}${++Sj}`}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=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),n})(),o2=(()=>{class n extends Lj{constructor(e,t,r,l,c,s){super(e,t,r,l,c,s,"mat-slide-toggle-")}_createChangeEvent(e){return new Dj(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(xj),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&i.Gf(Cj,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",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"},exportAs:["matSlideToggle"],features:[i._Bn([Ej]),i.qOj],ngContentSelectors:Tj,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(10);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),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(4),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,vj,t._noopAnimations?0:150))}},dependencies:[ia,Bh],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),n})(),l2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),rT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[l2,na,gt,Sl,l2,gt]}),n})(),Rj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,iT,Pv,Jv,Ea,t2,eg,Ia,Km,Vp,Wp,ss,Yp,El,Cp,Qs,s2,tT,e0,hv,Ov,Ru,Iv,jA,Lu,Ks,Wo,na,Km,rT,Wv,iT,Pv,Jv,Ea,t2,eg,Ia,Km,Vp,Wp,ss,Yp,El,Cp,Qs,s2,tT,e0,hv,Ov,Ru,Iv,jA,Lu,Ks,Wo,na,wj,rT,Wv]}),n})(),Oj=(()=>{class n extends D1{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 Ij={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 c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Br,useClass:Oj},{provide:Nc,useValue:Ij}],imports:[w.ez,eg,Km,Cp,Wv,mI,Nu,kc,jA,Lu,Wp,vA,Ia,Ru,Ea,Ks,ss,Qs,Yp,na,HE,NE,Oz,tT,WE,au,Wo,nj,El,Vp,LC,Rj]}),n})();function Bj(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 Nj(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 Vj(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 Fj(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 zj(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 jj(n,a){1&n&&i._UZ(0,"th",16)}function qj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.resetPassword(l.friendlyNameParameter))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),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 Yj(n,a){1&n&&i._UZ(0,"th",16)}function Wj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changePassword(l))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),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 Uj(n,a){1&n&&i._UZ(0,"tr",22)}function Gj(n,a){1&n&&i._UZ(0,"tr",23)}let $j=(()=>{class n{constructor(e,t,r,l,c,s,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=c,this.otherApplicationService=s,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new i.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new Zo(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const l=this.logins.find(c=>c.friendlyNameParameter===r);l&&this.changePassword(l)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=bi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(pR,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Oi),i.Y36(Xn),i.Y36(Ai),i.Y36(gA),i.Y36(lL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Bj,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),i.ynx(9,6),i.YNc(10,Nj,4,5,"th",7),i.YNc(11,Vj,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,Fj,4,5,"th",7),i.YNc(14,zj,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,jj,1,0,"th",7),i.YNc(17,qj,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Yj,1,0,"th",7),i.YNc(20,Wj,5,6,"td",12),i.BQk(),i.YNc(21,Uj,1,0,"tr",14),i.YNc(22,Gj,1,0,"tr",15),i.qZA()()()()),2&e&&(i.xp6(1),i.hij(" ",t.authenticationPage?"":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&&!t.authenticationPage),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[w.O5,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,Gn,Lt,lt,ri],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function h4(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 p4(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 f4(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 m4(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 _4=(()=>{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){const t=e.dataTransfer?.files[0]??e.target?.files[0],l=new FileReader;t.type.match(/image-*/)?(l.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,l.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{c(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))},c=s=>new Promise((o,d)=>{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 N=h.getContext("2d");N.drawImage(u,0,0,f,b);const Q=N.canvas.toDataURL();o(Q)},u.onerror=h=>d(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 d(f,b,N,Q){Q.beginPath(),Q.rect(20*f,20*b,20,20),Q.fillStyle="rgb("+N.join(",")+")",Q.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"),N=function u(){const f=[];for(let b=0;b<3;b++){const N=Math.floor(256*Math.random()),Q=Math.max(120,N),pe=Math.min(200,Q);f.push(pe)}return f}();for(let Q=0;Q{class n{constructor(e,t,r,l,c,s,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=l,this.authService=c,this.httpClient=s,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,tD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const l in this.categories)if(this.categories[l].value){t=!0,this.includeCategories.push(l);for(const c in this.categories[l].rps)this.categories[l].rps_value[c]?t=!0:(e=!1,this.excludeRps.push(c))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Xt),i.Y36(Zt),i.Y36(ju.Ct),i.Y36(ad),i.Y36(M.eN),i.Y36(cL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&i.Gf(b4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(i.YNc(0,A4,1,0,"mat-spinner",0),i.TgZ(1,"div",1)(2,"span",2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.TgZ(5,"mat-slide-toggle",3,4),i.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.showDetailSettings()}),i.TgZ(11,"mat-icon"),i._uU(12),i.qZA()()()(),i.TgZ(13,"button",6),i.NdJ("click",function(){return t.saveSettings()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.YNc(16,C4,3,3,"div",7),i.YNc(17,v4,1,0,"mat-spinner",0),i.qZA()),2&e&&(i.Q6J("ngIf",t.loadingMfa),i.xp6(1),i.Q6J("hidden",t.loadingMfa),i.xp6(1),i.Q6J("matTooltip",i.lcZ(3,13,i.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.hij("",i.lcZ(8,17,i.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),i.xp6(3),i.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),i.xp6(1),i.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),i.xp6(1),i.hij(" ",i.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),i.xp6(2),i.Q6J("ngIf",t.showDetail),i.xp6(1),i.Q6J("ngIf",t.loadingCategories))},dependencies:[w.sg,w.O5,Xi,Lt,Ei,dr,o2,w.Nd,lt,ri],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),n})();const x4=["toggle"];function S4(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",9),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function E4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(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,S4,2,1,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddImg())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteImg())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),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 D4(n,a){1&n&&i._UZ(0,"mat-spinner",10)}let H4=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=c,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(d=>this.removeDialogDescription=d),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(d=>this.saveImgSuccess=d),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(d=>this.removeImgSuccess=d)}ngOnInit(){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.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}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})}onAddImg(){const e=bi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(_4,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}onDeleteImg(){const e=bi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(Xt),i.Y36(Zt),i.Y36(_i),i.Y36(ju.Ct),i.Y36(ad),i.Y36(pr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(x4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:12,vars:11,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,E4,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,"button",3),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._UZ(9,"br")(10,"perun-web-apps-mfa-settings"),i.qZA(),i.YNc(11,D4,1,0,"mat-spinner",4)),2&e&&(i.Q6J("hidden",t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,5,i.lcZ(5,7,"AUTHENTICATION.MFA"))),i.xp6(4),i.hij(" ",i.lcZ(8,9,"AUTHENTICATION.MFA_INFO")," "),i.xp6(4),i.Q6J("ngIf",t.loadingImg))},dependencies:[w.O5,Lt,Ei,T4,lt,ri]}),n})(),L4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Ea,Ia,kc,c2,Nu,ss,Qs,Yp,vA]}),n})(),P4=(()=>{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(ad),i.Y36(Ai))},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)(1,"div",1)(2,"div",2)(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()()()()()),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")," "))},dependencies:[Lt,Xi,lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function k4(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 R4=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ra(null,[Ji.required]),this.passwordCtrl=new Ra(null,[Ji.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(ht))},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)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,k4,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(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.TgZ(15,"mat-form-field",4)(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.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()()()()()),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")," "))},dependencies:[w.O5,Lt,Xi,jo,cn,Hi,dn,un,aa,Oa,zn,Gn,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})(),O4=(()=>{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")},dependencies:[Ka]}),n})();function I4(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function B4(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 N4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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,B4,2,1,"li",7),i.qZA()(),i.TgZ(13,"div",0)(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.rejectConsent())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.grantConsent())}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),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 V4=(()=>{class n{constructor(e,t,r,l,c,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=c,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(pr),i.Y36(_i),i.Y36(Rn),i.Y36(Xn),i.Y36($m),i.Y36(Ai))},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)(1,"div",1),i.YNc(2,I4,1,0,"mat-spinner",2),i.YNc(3,N4,22,22,"div",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Lt,Ei,lt,ri],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function F4(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function z4(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function j4(n,a){1&n&&(i.TgZ(0,"span")(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()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let q4=(()=>{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,F4,7,5,"span",0),i.YNc(1,z4,7,5,"span",0),i.YNc(2,j4,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))},dependencies:[w.O5,Xi,lt,ri],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function Y4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),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 W4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function U4(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 G4(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 $4(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 Z4(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 J4(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 X4(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 Q4(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 K4(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 eq(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,l=i.oxw();return i.KtG(l.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 tq(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,l=i.oxw();return i.KtG(l.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 iq(n,a){if(1&n&&(i.TgZ(0,"td",20)(1,"div",22)(2,"div",23),i.YNc(3,J4,4,5,"div",24),i.YNc(4,X4,4,5,"div",24),i.YNc(5,Q4,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,K4,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,eq,4,5,"button",27),i.YNc(10,tq,4,5,"button",28),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 nq(n,a){1&n&&i._UZ(0,"tr",31)}function rq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.expandedConsent=c.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 aq(n,a){1&n&&i._UZ(0,"tr",33)}function sq(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 oq(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 lq=function(){return["expandedDetail"]};let cq=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Mn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=Fu}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 Zo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(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(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,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","exportDisplayedData","exportAllData"],["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)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Y4,2,2,"th",4),i.YNc(5,W4,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,U4,4,5,"th",7),i.YNc(8,G4,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,$4,4,5,"th",7),i.YNc(11,Z4,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,iq,11,8,"td",8),i.BQk(),i.YNc(14,nq,1,0,"tr",11),i.YNc(15,rq,1,2,"tr",12),i.YNc(16,aq,1,0,"tr",13),i.qZA()()(),i.YNc(17,sq,4,5,"perun-web-apps-alert",14),i.YNc(18,oq,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,lq)),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))},dependencies:[w.sg,w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,rg,Gn,Lt,ds,q4,lt,ri],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",[Rt("collapsed",Ie({height:"0px",minHeight:"0"})),Rt("expanded",Ie({height:"*"})),Pt("expanded <=> collapsed",Et("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const h2=function(){return["status","name"]};function dq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.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){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),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,h2))}}function uq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(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){i.CHM(e);const l=i.oxw();return i.KtG(l.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){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),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,h2))}}function hq(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let pq=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=c,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(l=>l.id===e)??this.signedConsents.find(l=>l.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(pr),i.Y36(_i),i.Y36(Zt),i.Y36(Rn))},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,dq,9,15,"div",2),i.YNc(6,uq,9,15,"div",2),i.YNc(7,hq,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))},dependencies:[w.O5,Xp,cq,Ei,lt,ri]}),n})();function fq(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function mq(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let gq=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=c,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",Ji.required]},{validators:GS.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,Nt.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(pr),i.Y36(_i),i.Y36(Jw),i.Y36($m))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,fq,1,0,"mat-spinner",1),i.YNc(5,mq,2,3,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,Kc,Xs,Ei,PE,lt,ri]}),n})();function _q(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.openPwdReset())}),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,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function bq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.activateAccount())}),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,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Aq(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_q,4,5,"button",3),i.YNc(2,bq,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const yq=function(n){return{exists:n}},Mq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:P4},{path:"service-access",component:R4},{path:"profile",component:wz,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:eB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:kB,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:gN,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:x3,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:B3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:Mz,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:O4,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:pq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:V4,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:N3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:rV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:iV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:H4,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:gF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,c){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=c,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=bi();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(gq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(gA),i.Y36(Oi),i.Y36(Ai))},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",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,Aq,3,2,"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,yq,i.lcZ(9,11,t.loginExists$))))},dependencies:[w.O5,Lt,w.Ov,lt,ri]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:CF,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:OF,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:FF,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:YF,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:ZF,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:$j,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let wq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[kc.forRoot(Mq,{preloadingStrategy:Nf,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),n})();class Cq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function p2(n){return new i.vHH(3e3,!1)}function a6(){return typeof window<"u"&&typeof window.document<"u"}function aT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ld(n){switch(n.length){case 0:return new Rl;case 1:return n[0];default:return new P0(n)}}function f2(n,a,e,t,r=new Map,l=new Map){const c=[],s=[];let o=-1,d=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==o,b=f&&d||new Map;u.forEach((N,Q)=>{let pe=Q,Pe=N;if("offset"!==Q)switch(pe=a.normalizePropertyName(pe,c),Pe){case"!":Pe=r.get(Q);break;case Ws:Pe=l.get(Q);break;default:Pe=a.normalizeStyleValue(Q,pe,Pe,c)}b.set(pe,Pe)}),f||s.push(b),d=b,o=h}),c.length)throw function Uq(n){return new i.vHH(3502,!1)}();return s}function sT(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&oT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&oT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&oT(e,"destroy",n)))}}function oT(n,a,e){const l=lT(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),c=n._data;return null!=c&&(l._data=c),l}function lT(n,a,e,t,r="",l=0,c){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!c}}function Va(n,a,e){let t=n.get(a);return t||n.set(a,t=e),t}function m2(n){const a=n.indexOf(":");return[n.substring(1,a),n.slice(a+1)]}let cT=(n,a)=>!1,g2=(n,a,e)=>[],_2=null;function dT(n){const a=n.parentNode||n.host;return a===_2?null:a}(aT()||typeof Element<"u")&&(a6()?(_2=(()=>document.documentElement)(),cT=(n,a)=>{for(;a;){if(a===n)return!0;a=dT(a)}return!1}):cT=(n,a)=>n.contains(a),g2=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Wu=null,b2=!1;const A2=cT,y2=g2;let M2=(()=>{class n{validateStyleProperty(e){return function o6(n){Wu||(Wu=function l6(){return typeof document<"u"?document.body:null}()||{},b2=!!Wu.style&&"WebkitAppearance"in Wu.style);let a=!0;return Wu.style&&!function s6(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Wu.style,!a&&b2&&(a="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Wu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return A2(e,t)}getParentElement(e){return dT(e)}query(e,t,r){return y2(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,c,s=[],o){return new Rl(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),uT=(()=>{class n{}return n.NOOP=new M2,n})();const hT="ng-enter",QA="ng-leave",KA="ng-trigger",ey=".ng-trigger",C2="ng-animating",pT=".ng-animating";function cd(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:fT(parseFloat(a[1]),a[2])}function fT(n,a){return"s"===a?1e3*n:n}function ty(n,a,e){return n.hasOwnProperty("duration")?n:function u6(n,a,e){let r,l=0,c="";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(p2()),{duration:0,delay:0,easing:""};r=fT(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=fT(parseFloat(o),s[4]));const d=s[5];d&&(c=d)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push(function vq(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(a.push(function Tq(){return new i.vHH(3101,!1)}()),s=!0),s&&a.splice(o,0,p2())}return{duration:r,delay:l,easing:c}}(n,a,e)}function cg(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function v2(n){const a=new Map;return Object.keys(n).forEach(e=>{a.set(e,n[e])}),a}function dd(n,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of n)a.set(t,r);return a}function x2(n,a,e){return e?a+":"+e+";":""}function S2(n){let a="";for(let e=0;e{const l=gT(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),aT()&&S2(n))}function Uu(n,a){n.style&&(a.forEach((e,t)=>{const r=gT(t);n.style[r]=""}),aT()&&S2(n))}function dg(n){return Array.isArray(n)?1==n.length?n[0]:J1(n):n}const mT=new RegExp("{{\\s*(.+?)\\s*}}","g");function E2(n){let a=[];if("string"==typeof n){let e;for(;e=mT.exec(n);)a.push(e[1]);mT.lastIndex=0}return a}function iy(n,a,e){const t=n.toString(),r=t.replace(mT,(l,c)=>{let s=a[c];return null==s&&(e.push(function Sq(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function ny(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const f6=/-+([a-z0-9])/g;function gT(n){return n.replace(f6,(...a)=>a[1].toUpperCase())}function m6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fa(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 function Eq(n){return new i.vHH(3004,!1)}()}}function D2(n,a){return window.getComputedStyle(n)[a]}function M6(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function w6(n,a,e){if(":"==n[0]){const o=function C6(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(function zq(n){return new i.vHH(3015,!1)}()),a;const r=t[1],l=t[2],c=t[3];a.push(H2(r,c));"<"==l[0]&&!("*"==r&&"*"==c)&&a.push(H2(c,r))}(t,e,a)):e.push(n),e}const oy=new Set(["true","1"]),ly=new Set(["false","0"]);function H2(n,a){const e=oy.has(n)||ly.has(n),t=oy.has(a)||ly.has(a);return(r,l)=>{let c="*"==n||n==r,s="*"==a||a==l;return!c&&e&&"boolean"==typeof r&&(c=r?oy.has(n):ly.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?oy.has(a):ly.has(a)),c&&s}}const v6=new RegExp("s*:selfs*,?","g");function _T(n,a,e,t){return new T6(n).build(a,e,t)}class T6{constructor(a){this._driver=a}build(a,e,t){const r=new E6(e);return this._resetContextStyleTimingState(r),Fa(this,dg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function Hq(){return new i.vHH(3006,!1)}()),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,d=o.name;d.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=d}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,c.push(o)}else e.errors.push(function Lq(){return new i.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,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,c=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(o=>{E2(o).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}),l.size&&(ny(l.values()),e.errors.push(function Pq(n,a){return new i.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Fa(this,dg(a.animation),e);return{type:1,matchers:M6(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Gu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Fa(this,t,e)),options:Gu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(c=>{e.currentTime=t;const s=Fa(this,c,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Gu(a.options)}}visitAnimate(a,e){const t=function H6(n,a){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return bT(ty(n,a).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=bT(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=ty(e,a);return bT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Ie({});if(5==l.type)r=this.visitKeyframes(l,e);else{let c=a.styles,s=!1;if(!c){s=!0;const d={};t.easing&&(d.easing=t.easing),c=Ie(d)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(c,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=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let s of r)"string"==typeof s?s===Ws?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(v2(s));let l=!1,c=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(c=s.get("easing"),s.delete("easing")),!l))for(let o of s.values())if(o.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,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(c=>{"string"!=typeof c&&c.forEach((s,o)=>{const d=e.collectedStyles.get(e.currentQuerySelector),u=d.get(o);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function Rq(n,a,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&d.set(o,{startTime:l,endTime:r}),e.options&&function p6(n,a,e){const t=a.params||{},r=E2(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function xq(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Oq(){return new i.vHH(3011,!1)}()),t;let l=0;const c=[];let s=!1,o=!1,d=0;const u=a.steps.map(Pe=>{const _t=this._makeStyleAst(Pe,e);let kt=null!=_t.offset?_t.offset:function D6(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(_t.styles),Ut=0;return null!=kt&&(l++,Ut=_t.offset=kt),o=o||Ut<0||Ut>1,s=s||Ut0&&l{const kt=f>0?_t==b?1:f*_t:c[_t],Ut=kt*pe;e.currentTime=N+Q.delay+Ut,Q.duration=Ut,this._validateStyleAst(Pe,e),Pe.offset=kt,t.styles.push(Pe)}),t}visitReference(a,e){return{type:8,animation:Fa(this,dg(a.animation),e),options:Gu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Gu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Gu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function x6(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(v6,"")),n=n.replace(/@\*/g,ey).replace(/@\w+/g,e=>ey+"-"+e.slice(1)).replace(/:animating/g,pT),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Va(e.collectedStyles,e.currentQuerySelector,new Map);const s=Fa(this,dg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:c,animation:s,originalSelector:a.selector,options:Gu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function Vq(){return new i.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:ty(a.timings,e.errors,!0);return{type:12,animation:Fa(this,dg(a.animation),e),timings:t,options:null}}}class E6{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gu(n){return n?(n=cg(n)).params&&(n.params=function S6(n){return n?cg(n):null}(n.params)):n={},n}function bT(n,a,e){return{duration:n,delay:a,easing:e}}function AT(n,a,e,t,r,l,c=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:c,subTimeline:s}}class cy{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 k6=new RegExp(":enter","g"),O6=new RegExp(":leave","g");function yT(n,a,e,t,r,l=new Map,c=new Map,s,o,d=[]){return(new I6).buildKeyframes(n,a,e,t,r,l,c,s,o,d)}class I6{buildKeyframes(a,e,t,r,l,c,s,o,d,u=[]){d=d||new cy;const h=new MT(a,e,d,r,l,u,[]);h.options=o;const f=o.delay?cd(o.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,o),Fa(this,t,h);const b=h.timelines.filter(N=>N.containsAnimation());if(b.length&&s.size){let N;for(let Q=b.length-1;Q>=0;Q--){const pe=b[Q];if(pe.element===e){N=pe;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([s],null,h.errors,o)}return b.length?b.map(N=>N.buildKeyframes()):[AT(e,[],[],[],0,f,"",!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,c=this._visitSubInstructions(t,r,r.options);l!=c&&e.transformIntoNewTimeline(c)}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 c=null!=t.duration?cd(t.duration):null,s=null!=t.delay?cd(t.delay):null;return 0!==c&&a.forEach(o=>{const d=e.appendInstructionToTimeline(o,c,s);l=Math.max(l,d.duration+d.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Fa(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=dy);const c=cd(l.delay);r.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>Fa(this,c,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?cd(a.options.delay):0;a.steps.forEach(c=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Fa(this,c,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return ty(e.params?iy(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.hasCurrentStyleProperties()&&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?cd(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dy);let c=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((d,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,d);l&&h.delayNextStep(l),d===e.element&&(o=h.currentTimeline),Fa(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),s=c*(e.currentQueryTotal-1);let o=c*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;Fa(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const dy={};class MT{constructor(a,e,t,r,l,c,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=c,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new uy(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=cd(t.duration)),null!=t.delay&&(r.delay=cd(t.delay));const l=t.params;if(l){let c=r.params;c||(c=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!c.hasOwnProperty(s))&&(c[s]=iy(l[s],c,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 MT(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=dy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new B6(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,c){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(k6,"."+this._enterClassName)).replace(O6,"."+this._leaveClassName);let d=this._driver.query(this.element,a,1!=t);0!==t&&(d=t<0?d.slice(d.length+t,d.length):d.slice(0,t)),s.push(...d)}return!l&&0==s.length&&c.push(function Fq(n){return new i.vHH(3014,!1)}()),s}}class uy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new uy(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Ws),this._currentKeyframe.set(e,Ws);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},c=function N6(n,a){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||a.keys();for(let l of t)e.set(l,Ws)}else dd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,d]of c){const u=iy(d,l,t);var s;this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(s=this._globalTimelineStyles.get(o))&&void 0!==s?s:Ws),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const d=dd(s,new Map,this._backFill);d.forEach((u,h)=>{"!"===u?a.add(h):u===Ws&&e.add(h)}),t||d.set("offset",o/this.duration),r.push(d)});const l=a.size?ny(a.values()):[],c=e.size?ny(e.values()):[];if(t){const s=r[0],o=new Map(s);s.set("offset",0),o.set("offset",1),r=[s,o]}return AT(this.element,r,l,c,this.duration,this.startTime,this.easing,!1)}}class B6 extends uy{constructor(a,e,t,r,l,c,s=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:c.duration,delay:c.delay,easing:c.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=[],c=t+e,s=e/c,o=dd(a[0]);o.set("offset",0),l.push(o);const d=dd(a[0]);d.set("offset",k2(s)),l.push(d);const u=a.length-1;for(let h=1;h<=u;h++){let f=dd(a[h]);const b=f.get("offset");f.set("offset",k2((e+b*t)/c)),l.push(f)}t=c,e=0,r="",a=l}return AT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function k2(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class wT{}const V6=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class F6 extends wT{normalizePropertyName(a,e){return gT(a)}normalizeStyleValue(a,e,t,r){let l="";const c=t.toString().trim();if(V6.has(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(function Dq(n,a){return new i.vHH(3005,!1)}())}return c+l}}function R2(n,a,e,t,r,l,c,s,o,d,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:s,queriedElements:o,preStyleProps:d,postStyleProps:u,totalTime:h,errors:f}}const CT={};class O2{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function z6(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){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,l,c,s,o,d,u){var h;const f=[],b=this.ast.options&&this.ast.options.params||CT,Q=this.buildStyles(t,s&&s.params||CT,f),pe=o&&o.params||CT,Pe=this.buildStyles(r,pe,f),_t=new Set,kt=new Map,Ut=new Map,oa="void"===r,Ko={params:j6(pe,b),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},la=u?[]:yT(a,e,this.ast.animation,l,c,Q,Pe,Ko,d,f);let As=0;if(la.forEach(lo=>{As=Math.max(lo.duration+lo.delay,As)}),f.length)return R2(e,this._triggerName,t,r,oa,Q,Pe,[],[],kt,Ut,As,f);la.forEach(lo=>{const hg=lo.element,pg=Va(kt,hg,new Set);lo.preStyleProps.forEach(tf=>pg.add(tf));const fg=Va(Ut,hg,new Set);lo.postStyleProps.forEach(tf=>fg.add(tf)),hg!==e&&_t.add(hg)});const my=ny(_t.values());return R2(e,this._triggerName,t,r,oa,Q,Pe,la,my,kt,Ut,As)}}function j6(n,a){const e=cg(a);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class q6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=cg(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(r[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,s)=>{c&&(c=iy(c,r,e));const o=this.normalizer.normalizePropertyName(s,e);c=this.normalizer.normalizeStyleValue(s,o,c,e),t.set(o,c)})}),t}}class W6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new q6(r.style,r.options&&r.options.params||{},t))}),I2(this.states,"true","1"),I2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new O2(a,r,this.states))}),this.fallbackTransition=function U6(n,a,e){return new O2(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,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(c=>c.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function I2(n,a,e){n.has(a)?n.has(e)||n.set(e,n.get(a)):n.has(e)&&n.set(a,n.get(e))}const G6=new cy;class $6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=_T(this._driver,e,t,[]);if(t.length)throw function Gq(n){return new i.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const r=a.element,l=f2(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.get(a);let c;const s=new Map;if(l?(c=yT(this._driver,e,l,hT,QA,new Map,new Map,t,G6,r),c.forEach(u=>{const h=Va(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function $q(){return new i.vHH(3300,!1)}()),c=[]),r.length)throw function Zq(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Ws))})});const d=ld(c.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(a,d),d.onDestroy(()=>this.destroy(a)),this.players.push(d),d}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function Jq(n){return new i.vHH(3301,!1)}();return e}listen(a,e,t,r){const l=lT(e,"","","");return sT(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 B2="ng-animate-queued",vT="ng-animate-disabled",K6=[],N2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_s="__ng_removed";class TT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function rY(n){return n??null}(t?a.value:a),t){const l=cg(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 ug="void",xT=new TT(ug);class tY{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,bs(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function Xq(n,a){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function Qq(n){return new i.vHH(3303,!1)}();if(!function aY(n){return"start"==n||"done"==n}(t))throw function Kq(n,a){return new i.vHH(3400,!1)}();const l=Va(this._elementListeners,a,[]),c={name:e,phase:t,callback:r};l.push(c);const s=Va(this._engine.statesByElement,a,new Map);return s.has(e)||(bs(a,KA),bs(a,KA+"-"+e),s.set(e,xT)),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(c);o>=0&&l.splice(o,1),this._triggers.has(e)||s.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function e6(n){return new i.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),c=new ST(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(bs(a,KA),bs(a,KA+"-"+e),this._engine.statesByElement.set(a,s=new Map));let o=s.get(e);const d=new TT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&d.absorbOptions(o.options),s.set(e,d),o||(o=xT),d.value!==ug&&o.value===d.value){if(!function lY(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Uu(a,pe),Qo(a,Pe)})}return}const f=Va(this._engine.playersByElement,a,[]);f.forEach(Q=>{Q.namespaceId==this.id&&Q.triggerName==e&&Q.queued&&Q.destroy()});let b=l.matchTransition(o.value,d.value,a,d.params),N=!1;if(!b){if(!r)return;b=l.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:d,player:c,isFallbackTransition:N}),N||(bs(a,B2),c.onStart(()=>{ef(a,B2)})),c.onDone(()=>{let Q=this.players.indexOf(c);Q>=0&&this.players.splice(Q,1);const pe=this._engine.playersByElement.get(a);if(pe){let Pe=pe.indexOf(c);Pe>=0&&pe.splice(Pe,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,ey,!0);t.forEach(r=>{if(r[_s])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(c=>c.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),c=new Map;if(l){const s=[];if(l.forEach((o,d)=>{if(c.set(d,o.value),this._triggers.has(d)){const u=this.trigger(a,d,ug,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&ld(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 c=l.name;if(r.has(c))return;r.add(c);const o=this._triggers.get(c).fallbackTransition,d=t.get(c)||xT,u=new TT(ug),h=new ST(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:o,fromState:d,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 c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[_s];(!l||l===N2)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){bs(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(s=>{if(s.name==t.triggerName){const o=lT(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,sT(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,c=r.transition.ast.depCount;return 0==l||0==c?l-c: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 iY{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 tY(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,s=this.driver.getParentElement(e);for(;s;){const o=r.get(s);if(o){const d=t.indexOf(o);t.splice(d+1,0,a),c=!0;break}s=this.driver.getParentElement(s)}c||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,r){if(hy(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!hy(e))return;const l=e[_s];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.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),bs(a,vT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ef(a,vT))}removeNode(a,e,t,r){if(hy(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[_s]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return hy(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,ey,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,pT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return ld(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[_s];if(t&&t.setForRemoval){if(a[_s]=N2,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(vT)&&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?ld(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function t6(n){return new i.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new cy,r=[],l=new Map,c=[],s=new Map,o=new Map,d=new Map,u=new Set;this.disabledNodes.forEach(ut=>{u.add(ut);const Ct=this.driver.query(ut,".ng-animate-queued",!0);for(let Dt=0;Dt{const Dt=hT+Q++;N.set(Ct,Dt),ut.forEach(ni=>bs(ni,Dt))});const pe=[],Pe=new Set,_t=new Set;for(let ut=0;utPe.add(ni)):_t.add(Ct))}const kt=new Map,Ut=z2(f,Array.from(Pe));Ut.forEach((ut,Ct)=>{const Dt=QA+Q++;kt.set(Ct,Dt),ut.forEach(ni=>bs(ni,Dt))}),a.push(()=>{b.forEach((ut,Ct)=>{const Dt=N.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),Ut.forEach((ut,Ct)=>{const Dt=kt.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),pe.forEach(ut=>{this.processLeaveNode(ut)})});const oa=[],Ko=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(Dt=>{const ni=Dt.player,xn=Dt.element;if(oa.push(ni),this.collectedEnterElements.length){const Tr=xn[_s];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(Dt.triggerName)){const $u=Tr.previousTriggersValues.get(Dt.triggerName),ys=this.statesByElement.get(Dt.element);if(ys&&ys.has(Dt.triggerName)){const gy=ys.get(Dt.triggerName);gy.value=$u,ys.set(Dt.triggerName,gy)}}return void ni.destroy()}}const el=!h||!this.driver.containsElement(h,xn),za=kt.get(xn),ud=N.get(xn),fn=this._buildInstruction(Dt,t,ud,za,el);if(fn.errors&&fn.errors.length)return void Ko.push(fn);if(el)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Qo(xn,fn.toStyles)),void r.push(ni);if(Dt.isFallbackTransition)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Qo(xn,fn.toStyles)),void r.push(ni);const aH=[];fn.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||aH.push(Tr)}),fn.timelines=aH,t.append(xn,fn.timelines),c.push({instruction:fn,player:ni,element:xn}),fn.queriedElements.forEach(Tr=>Va(s,Tr,[]).push(ni)),fn.preStyleProps.forEach((Tr,$u)=>{if(Tr.size){let ys=o.get($u);ys||o.set($u,ys=new Set),Tr.forEach((gy,HT)=>ys.add(HT))}}),fn.postStyleProps.forEach((Tr,$u)=>{let ys=d.get($u);ys||d.set($u,ys=new Set),Tr.forEach((gy,HT)=>ys.add(HT))})});if(Ko.length){const ut=[];Ko.forEach(Ct=>{ut.push(function n6(n,a){return new i.vHH(3505,!1)}())}),oa.forEach(Ct=>Ct.destroy()),this.reportError(ut)}const la=new Map,As=new Map;c.forEach(ut=>{const Ct=ut.element;t.has(Ct)&&(As.set(Ct,Ct),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,la))}),r.forEach(ut=>{const Ct=ut.element;this._getPreviousPlayers(Ct,!1,ut.namespaceId,ut.triggerName,null).forEach(ni=>{Va(la,Ct,[]).push(ni),ni.destroy()})});const my=pe.filter(ut=>q2(ut,o,d)),lo=new Map;F2(lo,this.driver,_t,d,Ws).forEach(ut=>{q2(ut,o,d)&&my.push(ut)});const pg=new Map;b.forEach((ut,Ct)=>{F2(pg,this.driver,new Set(ut),o,"!")}),my.forEach(ut=>{var Ct,Dt;const ni=lo.get(ut),xn=pg.get(ut);lo.set(ut,new Map([...Array.from(null!==(Ct=ni?.entries())&&void 0!==Ct?Ct:[]),...Array.from(null!==(Dt=xn?.entries())&&void 0!==Dt?Dt:[])]))});const fg=[],tf=[],rH={};c.forEach(ut=>{const{element:Ct,player:Dt,instruction:ni}=ut;if(t.has(Ct)){if(u.has(Ct))return Dt.onDestroy(()=>Qo(Ct,ni.toStyles)),Dt.disabled=!0,Dt.overrideTotalTime(ni.totalTime),void r.push(Dt);let xn=rH;if(As.size>1){let za=Ct;const ud=[];for(;za=za.parentNode;){const fn=As.get(za);if(fn){xn=fn;break}ud.push(za)}ud.forEach(fn=>As.set(fn,xn))}const el=this._buildAnimation(Dt.namespaceId,ni,la,l,pg,lo);if(Dt.setRealPlayer(el),xn===rH)fg.push(Dt);else{const za=this.playersByElement.get(xn);za&&za.length&&(Dt.parentPlayer=ld(za)),r.push(Dt)}}else Uu(Ct,ni.fromStyles),Dt.onDestroy(()=>Qo(Ct,ni.toStyles)),tf.push(Dt),u.has(Ct)&&r.push(Dt)}),tf.forEach(ut=>{const Ct=l.get(ut.element);if(Ct&&Ct.length){const Dt=ld(Ct);ut.setRealPlayer(Dt)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!el.destroyed);xn.length?sY(this,Ct,xn):this.processLeaveNode(Ct)}return pe.length=0,fg.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Ct=this.players.indexOf(ut);this.players.splice(Ct,1)}),ut.play()}),fg}elementContainsData(a,e){let t=!1;const r=e[_s];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 c=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(c=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==ug;s.forEach(d=>{d.queued||!o&&d.triggerName!=r||c.push(d)})}}return(t||r)&&(c=c.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const d=o.element,u=d!==l,h=Va(t,d,[]);this._getPreviousPlayers(d,u,c,s,e.toState).forEach(b=>{const N=b.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),b.destroy(),h.push(b)})}Uu(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,c){const s=e.triggerName,o=e.element,d=[],u=new Set,h=new Set,f=e.timelines.map(N=>{const Q=N.element;u.add(Q);const pe=Q[_s];if(pe&&pe.removedBeforeQueried)return new Rl(N.duration,N.delay);const Pe=Q!==o,_t=function oY(n){const a=[];return j2(n,a),a}((t.get(Q)||K6).map(la=>la.getRealPlayer())).filter(la=>!!la.element&&la.element===Q),kt=l.get(Q),Ut=c.get(Q),oa=f2(0,this._normalizer,0,N.keyframes,kt,Ut),Ko=this._buildPlayer(N,oa,_t);if(N.subTimeline&&r&&h.add(Q),Pe){const la=new ST(a,s,Q);la.setRealPlayer(Ko),d.push(la)}return Ko});d.forEach(N=>{Va(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function nY(n,a,e){let t=n.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}return t}(this.playersByQueriedElement,N.element,N))}),u.forEach(N=>bs(N,C2));const b=ld(f);return b.onDestroy(()=>{u.forEach(N=>ef(N,C2)),Qo(o,e.toStyles)}),h.forEach(N=>{Va(r,N,[]).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 Rl(a.duration,a.delay)}}class ST{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Rl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>sT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Va(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 hy(n){return n&&1===n.nodeType}function V2(n,a){const e=n.style.display;return n.style.display=a??"none",e}function F2(n,a,e,t,r){const l=[];e.forEach(o=>l.push(V2(o)));const c=[];t.forEach((o,d)=>{const u=new Map;o.forEach(h=>{const f=a.computeStyle(d,h,r);u.set(h,f),(!f||0==f.length)&&(d[_s]=eY,c.push(d))}),n.set(d,u)});let s=0;return e.forEach(o=>V2(o,l[s++])),c}function z2(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 c(s){if(!s)return 1;let o=l.get(s);if(o)return o;const d=s.parentNode;return o=e.has(d)?d:r.has(d)?1:c(d),l.set(s,o),o}return a.forEach(s=>{const o=c(s);1!==o&&e.get(o).push(s)}),e}function bs(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function ef(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function sY(n,a,e){ld(e).onDone(()=>n.processLeaveNode(a))}function j2(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class py{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new iY(a,e,t),this._timelineEngine=new $6(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const c=a+"-"+r;let s=this._triggerCache[c];if(!s){const o=[],u=_T(this._driver,l,o,[]);if(o.length)throw function Wq(n,a){return new i.vHH(3404,!1)}();s=function Y6(n,a,e){return new W6(n,a,e)}(r,u,this._normalizer),this._triggerCache[c]=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,c]=m2(t);this._timelineEngine.command(l,e,c,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[c,s]=m2(t);return this._timelineEngine.listen(c,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 dY=(()=>{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=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Uu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uu(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ET(n){let a=null;return n.forEach((e,t)=>{(function uY(n){return"display"===n||"position"===n})(t)&&(a=a||new Map,a.set(t,e))}),a}class Y2{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:D2(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class hY{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return A2(a,e)}getParentElement(a){return dT(a)}query(a,e,t){return y2(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,c=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const d=new Map,u=c.filter(b=>b instanceof Y2);(function g6(n,a){return 0===n||0===a})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((N,Q)=>d.set(Q,N))});let h=function h6(n){return n.length?n[0]instanceof Map?n:n.map(a=>v2(a)):[]}(e).map(b=>dd(b));h=function _6(n,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((l,c)=>{t.has(c)||r.push(c),t.set(c,l)}),r.length)for(let l=1;lc.set(s,D2(n,s)))}}return a}(a,h,d);const f=function cY(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ET(a[0]),a.length>1&&(t=ET(a[a.length-1]))):a instanceof Map&&(e=ET(a)),e||t?new dY(n,e,t):null}(a,h);return new Y2(a,h,o,f)}}let pY=(()=>{class n extends D0{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)?J1(e):e;return W2(this._renderer,null,t,"register",[r]),new fY(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 fY extends class Z1{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new mY(this._id,a,e||{},this._renderer)}}class mY{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 W2(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function W2(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const U2="@.disabled";let gY=(()=>{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,c)=>{const s=c?.parentNode(l);s&&c.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 G2("",l,this.engine),this._rendererCache.set(l,u)),u}const c=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(c,s,e,u.name,u)};return t.data.animation.forEach(o),new _Y(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[c,s]=l;c(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(py),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class G2{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==U2?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 _Y extends G2{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==U2?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function bY(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function AY(n){const a=n.indexOf(".");return[n.substring(0,a),n.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,c,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}const $2=[{provide:D0,useClass:pY},{provide:wT,useFactory:function MY(){return new F6}},{provide:py,useClass:(()=>{class n extends py{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(uT),i.LFG(wT),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function wY(n,a,e){return new gY(n,a,e)},deps:[ye,py,i.R0b]}],DT=[{provide:uT,useFactory:()=>new hY},{provide:i.QbO,useValue:"BrowserAnimations"},...$2],Z2=[{provide:uT,useClass:M2},{provide:i.QbO,useValue:"NoopAnimations"},...$2];let CY=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Z2:DT}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:DT,imports:[Jt]}),n})(),vY=(()=>{class n{constructor(e,t,r,l,c){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),r()})}setEntityTheme(e,t){const r=function TY(n){return[sa(tinycolor(n).lighten(52),"50"),sa(tinycolor(n).lighten(37),"100"),sa(tinycolor(n).lighten(26),"200"),sa(tinycolor(n).lighten(12),"300"),sa(tinycolor(n).lighten(6),"400"),sa(tinycolor(n),"500"),sa(tinycolor(n).darken(6),"600"),sa(tinycolor(n).darken(12),"700"),sa(tinycolor(n).darken(18),"800"),sa(tinycolor(n).darken(24),"900"),sa(tinycolor(n).lighten(50).saturate(30),"A100"),sa(tinycolor(n).lighten(30).saturate(30),"A200"),sa(tinycolor(n).lighten(10).saturate(15),"A400"),sa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,d=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,d)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new 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(ht),i.LFG(se),i.LFG(_r))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sa(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 xY=(()=>{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(ov),i.LFG(vY),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})(),Z5=(()=>{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:io,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0},{provide:jp,useValue:!0}]:[{provide:io,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jp),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[JD,vE,nH,JD,vE,nH]}),n})();const J5=new i.OlP("perun-api-service"),X5={provide:M.TP,useExisting:(0,i.Gpc)(()=>ZS),multi:!0};function Q5(n){return new Cq(n,"./assets/i18n/",".json")}function K5(n){const a={basePath:n.get("api_url")};return new Je(a)}const eW=n=>()=>n.initialize();let tW=(()=>{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($S),i.LFG(_i))},n.\u0275mod=i.oAB({type:n,bootstrap:[HO]}),n.\u0275inj=i.cJS({providers:[$S,{provide:i.ip1,useFactory:eW,multi:!0,deps:[xY]},{provide:Je,useFactory:K5,deps:[Zt]},CA,ZS,X5,{provide:J5,useClass:oL},se,{provide:ju.Hy,useFactory:()=>localStorage}],imports:[Jt,CY,M.JF,Nu.forRoot({loader:{provide:kp,useFactory:Q5,deps:[M.eN]}}),wq,Ia,hv,Ov,kc,Ea,Z5,Iv,c2,vA,Jv,ss,Wo,Vp,Km,Yp,Qs,eg,Lu,Wp,jA,iT,NE,HE,GB,na,Ks,rT,WE,Cp,L4,LC,Ru,ju.zr.forRoot(),zP]}),n})();(0,i.G48)(),be().bootstrapModule(tW).catch(n=>console.error(n))},1302:function(j,Y,T){var w;!function(i,E){var x={};!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 x(le,ae,ie,ge,Ae){for(var ve,Xe,Qe,He,Te,Se,pt,Be,Ve,Ne,he,me,Ce;Ae>=64;){for(ve=ae[0],Xe=ae[1],Qe=ae[2],He=ae[3],Te=ae[4],Se=ae[5],pt=ae[6],Be=ae[7],Ne=0;Ne<16;Ne++)le[Ne]=(255&ie[he=ge+4*Ne])<<24|(255&ie[he+1])<<16|(255&ie[he+2])<<8|255&ie[he+3];for(Ne=16;Ne<64;Ne++)le[Ne]=((me=((Ve=le[Ne-2])>>>17|Ve<<15)^(Ve>>>19|Ve<<13)^Ve>>>10)+le[Ne-7]|0)+((Ce=((Ve=le[Ne-15])>>>7|Ve<<25)^(Ve>>>18|Ve<<14)^Ve>>>3)+le[Ne-16]|0);for(Ne=0;Ne<64;Ne++)me=(((Te>>>6|Te<<26)^(Te>>>11|Te<<21)^(Te>>>25|Te<<7))+(Te&Se^~Te&pt)|0)+(Be+(E[Ne]+le[Ne]|0)|0)|0,Ce=((ve>>>2|ve<<30)^(ve>>>13|ve<<19)^(ve>>>22|ve<<10))+(ve&Xe^ve&Qe^Xe&Qe)|0,Be=pt,pt=Se,Se=Te,Te=He+me|0,He=Qe,Qe=Xe,Xe=ve,ve=me+Ce|0;ae[0]+=ve,ae[1]+=Xe,ae[2]+=Qe,ae[3]+=He,ae[4]+=Te,ae[5]+=Se,ae[6]+=pt,ae[7]+=Be,ge+=64,Ae-=64}return ge}var S=function(){function le(){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 le.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},le.prototype.clean=function(){for(var ae=0;ae0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=x(this.temp,this.state,ae,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;return this},le.prototype.finish=function(ae){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,Ae=ie/536870912|0,ve=ie<<3,Xe=ie%64<56?64:128;this.buffer[ge]=128;for(var Qe=ge+1;Qe>>24&255,this.buffer[Xe-7]=Ae>>>16&255,this.buffer[Xe-6]=Ae>>>8&255,this.buffer[Xe-5]=Ae>>>0&255,this.buffer[Xe-4]=ve>>>24&255,this.buffer[Xe-3]=ve>>>16&255,this.buffer[Xe-2]=ve>>>8&255,this.buffer[Xe-1]=ve>>>0&255,x(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(Qe=0;Qe<8;Qe++)ae[4*Qe+0]=this.state[Qe]>>>24&255,ae[4*Qe+1]=this.state[Qe]>>>16&255,ae[4*Qe+2]=this.state[Qe]>>>8&255,ae[4*Qe+3]=this.state[Qe]>>>0&255;return this},le.prototype.digest=function(){var ae=new Uint8Array(this.digestLength);return this.finish(ae),ae},le.prototype._saveState=function(ae){for(var ie=0;iethis.blockSize)(new S).update(ae).finish(ie).clean();else for(var ge=0;ge1&&ae.update(le),ie&&ae.update(ie),ae.update(ge),ae.finish(le),ge[0]++}i.HMAC=P,i.hash=R,i.default=R,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function X(le,ae,ie,ge){void 0===ae&&(ae=J),void 0===ge&&(ge=32);for(var Ae=new Uint8Array([1]),ve=F(ae,le),Xe=new P(ve),Qe=new Uint8Array(Xe.digestLength),He=Qe.length,Te=new Uint8Array(ge),Se=0;Se>>24&255,Xe[1]=pt>>>16&255,Xe[2]=pt>>>8&255,Xe[3]=pt>>>0&255,Ae.reset(),Ae.update(ae),Ae.update(Xe),Ae.finish(He);for(var Be=0;Be=X.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var X=document.createEvent("MouseEvents");X.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(X)}}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,F=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),q=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,X,ne){var le=R.URL||R.webkitURL,ae=document.createElement("a");ae.download=X=X||J.name||"download",ae.rel="noopener","string"==typeof J?(ae.href=J,ae.origin===location.origin?P(ae):S(ae.href)?x(J,X,ne):P(ae,ae.target="_blank")):(ae.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(ae.href)},4e4),setTimeout(function(){P(ae)},0))}:"msSaveOrOpenBlob"in navigator?function(J,X,ne){if(X=X||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,X){return typeof X>"u"?X={autoBom:!1}:"object"!=typeof X&&(console.warn("Deprecated: Expected third argument to be a object"),X={autoBom:!X}),X.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),X);else if(S(J))x(J,X,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,X,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,X,ne);var ae="application/octet-stream"===J.type,ie=/constructor/i.test(R.HTMLElement)||R.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ae&&ie||F)&&typeof FileReader<"u"){var Ae=new FileReader;Ae.onloadend=function(){var Qe=Ae.result;Qe=ge?Qe:Qe.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Qe:location=Qe,le=null},Ae.readAsDataURL(J)}else{var ve=R.URL||R.webkitURL,Xe=ve.createObjectURL(J);le?le.location=Xe:location.href=Xe,le=null,setTimeout(function(){ve.revokeObjectURL(Xe)},4e4)}});R.saveAs=q.saveAs=q,j.exports=q}.apply(Y,[]))&&(j.exports=i)},1158:(j,Y,T)=>{(j.exports=T(7867)).tz.load(T(1128))},7867:function(j,Y,T){var w,i,E;!function(x,S){"use strict";j.exports?j.exports=S(T(5439)):(i=[T(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(Y,i):w)&&(j.exports=E))}(0,function(x){"use strict";void 0===x.version&&x.default&&(x=x.default);var X,P={},R={},F={},q={},J={};(!x||"string"!=typeof x.version)&&En("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ne=x.version.split("."),le=+ne[0],ae=+ne[1];function ie(de){return de>96?de-87:de>64?de-29:de-48}function ge(de){var ke=0,be=de.split("."),qe=be[0],st=be[1]||"",ot=1,rn=0,oi=1;for(45===de.charCodeAt(0)&&(ke=1,oi=-1);ke= 2.6.0. You are using Moment.js "+x.version+". See momentjs.com"),He.prototype={_set:function(de){this.name=de.name,this.abbrs=de.abbrs,this.untils=de.untils,this.offsets=de.offsets,this.population=de.population},_index:function(de){var qe,ke=+de,be=this.untils;for(qe=0;qern&&ui.moveInvalidForward&&(ot=rn),ke3){var ke=q[We(de)];if(ke)return ke;En("Moment Timezone found "+de+" from the Intl api, but did not have that data loaded.")}}catch{}var Jt,rn,oi,be=function Ve(){var qe,st,ot,de=(new Date).getFullYear()-2,ke=new Se(new Date(de,0,1)),be=[ke];for(ot=1;ot<48;ot++)(st=new Se(new Date(de,ot,1))).offset!==ke.offset&&(qe=Be(ke,st),be.push(qe),be.push(new Se(new Date(qe.at+6e4)))),ke=st;for(ot=0;ot<4;ot++)be.push(new Se(new Date(de+ot,0,1))),be.push(new Se(new Date(de+ot,6,1)));return be}(),qe=be.length,st=function me(de){var st,ot,Jt,ke=de.length,be={},qe=[];for(st=0;st0?ot[0].zone.name:void 0}()),X},ui.names=function Ft(){var de,ke=[];for(de in q)q.hasOwnProperty(de)&&(P[de]||P[R[de]])&&q[de]&&ke.push(q[de]);return ke.sort()},ui.Zone=He,ui.unpack=Qe,ui.unpackBase60=ge,ui.needsOffset=Ci,ui.moveInvalidForward=!0,ui.moveAmbiguousForward=!1,ui.countries=function ai(){return Object.keys(F)},ui.zonesForCountry=function Ge(de,ke){if(!(de=function Sn(de){return de=de.toUpperCase(),F[de]||null}(de)))return null;var be=de.zones.sort();return ke?be.map(function(qe){return{name:qe,offset:mt(qe).utcOffset(new Date)}}):be};var mn=x.fn;function co(de){return function(){return this._z?this._z.abbr(this):de.call(this)}}function ca(de){return function(){return this._z=null,de.apply(this,arguments)}}x.tz=ui,x.defaultZone=null,x.updateOffset=function(de,ke){var qe,be=x.defaultZone;if(void 0===de._z&&(be&&Ci(de)&&!de._isUTC&&(de._d=x.utc(de._a)._d,de.utc().add(be.parse(de),"minutes")),de._z=be),de._z)if(qe=de._z.utcOffset(de),Math.abs(qe)<16&&(qe/=60),void 0!==de.utcOffset){var st=de._z;de.utcOffset(-qe,ke),de._z=st}else de.zone(qe,ke)},mn.tz=function(de,ke){if(de){if("string"!=typeof de)throw new Error("Time zone name must be a string, got "+de+" ["+typeof de+"]");return this._z=mt(de),this._z?x.updateOffset(this,ke):En("Moment Timezone has no data for "+de+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},mn.zoneName=co(mn.zoneName),mn.zoneAbbr=co(mn.zoneAbbr),mn.utc=ca(mn.utc),mn.local=ca(mn.local),mn.utcOffset=function fr(de){return function(){return arguments.length>0&&(this._z=null),de.apply(this,arguments)}}(mn.utcOffset),x.tz.setDefault=function(de){return(le<2||2===le&&ae<9)&&En("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+x.version+"."),x.defaultZone=de?mt(de):null,x};var kn=x.momentProperties;return"[object Array]"===Object.prototype.toString.call(kn)?(kn.push("_z"),kn.push("_a")):kn&&(kn._z=null),x})},7088:function(j,Y,T){!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,x,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}})}(T(5439))},2502:function(j,Y,T){!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"]},x=function(R){return function(F,q,J,X){var ne=i(F),le=E[R][i(F)];return 2===ne&&(le=le[q?0:1]),le.replace(/%d/i,F)}},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,F,q){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:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(T(5439))},128:function(j,Y,T){!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}})}(T(5439))},4519:function(j,Y,T){!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(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},x={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(F){return function(q,J,X,ne){var le=E(q),ae=x[F][E(q)];return 2===le&&(ae=ae[J?0:1]),ae.replace(/%d/i,q)}},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"];w.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(F){return"\u0645"===F},meridiem:function(F,q,J){return F<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(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},5443:function(j,Y,T){!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}})}(T(5439))},7642:function(j,Y,T){!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,P,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(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}})}(T(5439))},8592:function(j,Y,T){!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}})}(T(5439))},7038:function(j,Y,T){!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"},x=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%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(q){return function(J,X,ne,le){var ae=x(J),ie=S[q][x(J)];return 2===ae&&(ie=ie[X?0:1]),ie.replace(/%d/i,J)}},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(q){return"\u0645"===q},meridiem:function(q,J,X){return q<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(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},1213:function(j,Y,T){!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(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9191:function(j,Y,T){!function(w){"use strict";function E(S,P,R){return"m"===R?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var R=S.split("_");return P%10==1&&P%100!=11?R[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?R[1]:R[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"}[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,P,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,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}})}(T(5439))},322:function(j,Y,T){!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 x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},8042:function(j,Y,T){!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}})}(T(5439))},5903:function(j,Y,T){!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(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,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}})}(T(5439))},9620:function(j,Y,T){!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(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,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}})}(T(5439))},9645:function(j,Y,T){!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(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,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}})}(T(5439))},5020:function(j,Y,T){!function(w){"use strict";function i(ie,ge,Ae){return ie+" "+function S(ie,ge){return 2===ge?function P(ie){var ge={m:"v",b:"v",d:"z"};return void 0===ge[ie.charAt(0)]?ie:ge[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[Ae],ie)}function x(ie){return ie>9?x(ie%10):ie}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],F=/^(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,le=[/^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:le,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:le,monthsRegex:F,monthsShortRegex:F,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(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,ge,Ae){return ie<12?"a.m.":"g.m."}})}(T(5439))},4792:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"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}})}(T(5439))},7980:function(j,Y,T){!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,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7322:function(j,Y,T){!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("_"),x=[/^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(q){return q>1&&q<5&&1!=~~(q/10)}function R(q,J,X,ne){var le=q+" ";switch(X){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(q)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(q)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(q)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(q)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(q)?"roky":"let"):le+"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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},365:function(j,Y,T){!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}})}(T(5439))},2092:function(j,Y,T){!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}})}(T(5439))},7387:function(j,Y,T){!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}})}(T(5439))},9459:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},3694:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},4307:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][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}})}(T(5439))},9659:function(j,Y,T){!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,P,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}})}(T(5439))},3460:function(j,Y,T){!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(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.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(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").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(x,S){var P=this._calendarEl[x],R=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.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}})}(T(5439))},4369:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(T(5439))},530:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9998:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3391:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},5414:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9615:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(T(5439))},1248:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3767:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},4530:function(j,Y,T){!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,x,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}})}(T(5439))},8944:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},9116:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(T(5439))},3609:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},6866:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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"})}(T(5439))},6725:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?F[P][2]?F[P][2]:F[P][1]:R?F[P][0]:F[P][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}})}(T(5439))},7931:function(j,Y,T){!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}})}(T(5439))},6417:function(j,Y,T){!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,P,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(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}})}(T(5439))},944:function(j,Y,T){!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 x(R,F,q,J){var X="";switch(q){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":X=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":X=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":X=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":X=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":X=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":X=J?"vuoden":"vuotta"}return function S(R,F){return R<10?F?E[R]:i[R]:R}(R,J)+" "+X}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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1766:function(j,Y,T){!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}})}(T(5439))},5867:function(j,Y,T){!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}})}(T(5439))},6848:function(j,Y,T){!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,x){switch(x){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")}}})}(T(5439))},7773:function(j,Y,T){!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,x){switch(x){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}})}(T(5439))},1636:function(j,Y,T){!function(w){"use strict";var x=/(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:x,monthsShortRegex:x,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,F){switch(F){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}})}(T(5439))},4940:function(j,Y,T){!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,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}})}(T(5439))},1402:function(j,Y,T){!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(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6924:function(j,Y,T){!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(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6398:function(j,Y,T){!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}})}(T(5439))},2457:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={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:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \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:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?F[P][0]:F[P][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(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},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(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(T(5439))},2545:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return R?F[P][0]:F[P][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(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(T(5439))},2641:function(j,Y,T){!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(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,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}})}(T(5439))},7536:function(j,Y,T){!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,x,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"}})}(T(5439))},6335:function(j,Y,T){!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"},x=[/^\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:x,longMonthsParse:x,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(F){return E[F]})},postformat:function(R){return R.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,F){return 12===R&&(R=0),"\u0930\u093e\u0924"===F?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===F?R:"\u0926\u094b\u092a\u0939\u0930"===F?R>=10?R:R+12:"\u0936\u093e\u092e"===F?R+12:void 0},meridiem:function(R,F,q){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}})}(T(5439))},7458:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"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}})}(T(5439))},6540:function(j,Y,T){!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(P,R,F,q){var J=P;switch(F){case"s":return q||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(q||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(q||R?" perc":" perce");case"mm":return J+(q||R?" perc":" perce");case"h":return"egy"+(q||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(q||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(q||R?" nap":" napja");case"dd":return J+(q||R?" nap":" napja");case"M":return"egy"+(q||R?" h\xf3nap":" h\xf3napja");case"MM":return J+(q||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(q||R?" \xe9v":" \xe9ve");case"yy":return J+(q||R?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[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(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,R,F){return P<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.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}})}(T(5439))},5283:function(j,Y,T){!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,x){switch(x){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}})}(T(5439))},8780:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"siang"===x?E>=11?E:E+12:"sore"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},4205:function(j,Y,T){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,R,F){var q=S+" ";switch(R){case"s":return P||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?q+(P||F?"sek\xfandur":"sek\xfandum"):q+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?q+(P||F?"m\xedn\xfatur":"m\xedn\xfatum"):P?q+"m\xedn\xfata":q+"m\xedn\xfatu";case"hh":return i(S)?q+(P||F?"klukkustundir":"klukkustundum"):q+"klukkustund";case"d":return P?"dagur":F?"dag":"degi";case"dd":return i(S)?P?q+"dagar":q+(F?"daga":"d\xf6gum"):P?q+"dagur":q+(F?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?q+"m\xe1nu\xf0ir":q+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?q+"m\xe1nu\xf0ur":q+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||F?"\xe1r":"\xe1ri";case"yy":return i(S)?q+(P||F?"\xe1r":"\xe1rum"):q+(P||F?"\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}})}(T(5439))},9985:function(j,Y,T){!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}})}(T(5439))},4211:function(j,Y,T){!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}})}(T(5439))},1003:function(j,Y,T){!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,x){return"\u5143"===x[1]?1:parseInt(x[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,x,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,x){switch(x){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"}})}(T(5439))},420:function(j,Y,T){!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,x){return 12===E&&(E=0),"enjing"===x?E:"siyang"===x?E>=11?E:E+12:"sonten"===x||"ndalu"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},851:function(j,Y,T){!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(x,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}})}(T(5439))},6074:function(j,Y,T){!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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},3343:function(j,Y,T){!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,P,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(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},4799:function(j,Y,T){!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(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,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}})}(T(5439))},3549:function(j,Y,T){!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,x){switch(x){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,x,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(T(5439))},1037:function(j,Y,T){!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"},x=["\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:x,monthsShort:x,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,R,F){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(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},3125:function(j,Y,T){!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(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9586:function(j,Y,T){!function(w){"use strict";function i(R,F,q,J){var X={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 F?X[q][0]:X[q][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 F=R%10;return S(0===F?R/10:F)}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 x(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}})}(T(5439))},2349:function(j,Y,T){!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,x,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}})}(T(5439))},2400:function(j,Y,T){!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 x(q,J,X,ne){return J?P(X)[0]:ne?P(X)[1]:P(X)[2]}function S(q){return q%10==0||q>10&&q<20}function P(q){return i[q].split("_")}function R(q,J,X,ne){var le=q+" ";return 1===q?le+x(0,J,X[0],ne):J?le+(S(q)?P(X)[1]:P(X)[0]):ne?le+P(X)[1]:le+(S(q)?P(X)[1]:P(X)[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(q,J,X,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:x,mm:R,h:x,hh:R,d:x,dd:R,M:x,MM:R,y:x,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(q){return q+"-oji"},week:{dow:1,doy:4}})}(T(5439))},9991:function(j,Y,T){!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(F,q,J){return J?q%10==1&&q%100!=11?F[2]:F[3]:q%10==1&&q%100!=11?F[0]:F[1]}function x(F,q,J){return F+" "+E(i[J],F,q)}function S(F,q,J){return E(i[J],F,q)}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 P(F,q){return q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8477:function(j,Y,T){!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(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var R=i.words[P];return 1===P.length?S?R[0]:R[1]:x+" "+i.correctGrammaticalCase(x,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}})}(T(5439))},5118:function(j,Y,T){!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}})}(T(5439))},5943:function(j,Y,T){!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 x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},3849:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?E+12:E},meridiem:function(E,x,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"}})}(T(5439))},1977:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){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 x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}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(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<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(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(T(5439))},6184:function(j,Y,T){!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 x(P,R,F,q){var J="";if(R)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}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:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(P){return P.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(P,R){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?P>=12?P:P+12:void 0},meridiem:function(P,R,F){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}})}(T(5439))},4524:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},485:function(j,Y,T){!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,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},6681:function(j,Y,T){!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}})}(T(5439))},2024:function(j,Y,T){!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(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},2688:function(j,Y,T){!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}})}(T(5439))},8914:function(j,Y,T){!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(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,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}})}(T(5439))},2272:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},1758:function(j,Y,T){!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("_"),x=[/^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,F){return R?/-MMM-/.test(F)?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:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},1510:function(j,Y,T){!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}})}(T(5439))},2797:function(j,Y,T){!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,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7944:function(j,Y,T){!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(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,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}})}(T(5439))},1605:function(j,Y,T){!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("_"),x=[/^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(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function P(F,q,J){var X=F+" ";switch(J){case"ss":return X+(S(F)?"sekundy":"sekund");case"m":return q?"minuta":"minut\u0119";case"mm":return X+(S(F)?"minuty":"minut");case"h":return q?"godzina":"godzin\u0119";case"hh":return X+(S(F)?"godziny":"godzin");case"ww":return X+(S(F)?"tygodnie":"tygodni");case"MM":return X+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return X+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,q){return F?/D MMMM/.test(q)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,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}})}(T(5439))},3840:function(j,Y,T){!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"})}(T(5439))},4225:function(j,Y,T){!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}})}(T(5439))},5128:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var F=" ";return(x%100>=20||x>=100&&x%100==0)&&(F=" de "),x+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}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}})}(T(5439))},5127:function(j,Y,T){!function(w){"use strict";function E(P,R,F){return"m"===F?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,R){var F=P.split("_");return R%10==1&&R%100!=11?F[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?F[1]:F[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"}[F],+P)}var x=[/^\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:x,longMonthsParse:x,shortMonthsParse:x,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,R,F){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,R){switch(R){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}})}(T(5439))},2525:function(j,Y,T){!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,P,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}})}(T(5439))},9893:function(j,Y,T){!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}})}(T(5439))},3123:function(j,Y,T){!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,x,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(T(5439))},3027:function(j,Y,T){!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 x(R){return R>1&&R<5}function S(R,F,q,J){var X=R+" ";switch(q){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?X+(x(R)?"sekundy":"sek\xfand"):X+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?X+(x(R)?"min\xfaty":"min\xfat"):X+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?X+(x(R)?"hodiny":"hod\xedn"):X+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?X+(x(R)?"dni":"dn\xed"):X+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?X+(x(R)?"mesiace":"mesiacov"):X+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?X+(x(R)?"roky":"rokov"):X+"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}})}(T(5439))},8106:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F=x+" ";switch(P){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===x?S?"sekundo":"sekundi":2===x?S||R?"sekundi":"sekundah":x<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===x?S?"minuta":"minuto":2===x?S||R?"minuti":"minutama":x<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===x?S?"ura":"uro":2===x?S||R?"uri":"urama":x<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return F+(1===x?S||R?"dan":"dnem":2===x?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return F+(1===x?S||R?"mesec":"mesecem":2===x?S||R?"meseca":"mesecema":x<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return F+(1===x?S||R?"leto":"letom":2===x?S||R?"leti":"letoma":x<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}})}(T(5439))},8799:function(j,Y,T){!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,x,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}})}(T(5439))},2872:function(j,Y,T){!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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===q?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+q)}};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}})}(T(5439))},7949:function(j,Y,T){!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(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"godinu"===q?x+" godina":x+" "+q)}};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}})}(T(5439))},6167:function(j,Y,T){!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,x,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,x){return 12===E&&(E=0),"ekuseni"===x?E:"emini"===x?E>=11?E:E+12:"entsambama"===x||"ebusuku"===x?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(T(5439))},9713:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(T(5439))},1982:function(j,Y,T){!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}})}(T(5439))},2732:function(j,Y,T){!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(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,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,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}})}(T(5439))},3636:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===x?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?E+12:void 0},meridiem:function(E,x,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}})}(T(5439))},2115:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9801:function(j,Y,T){!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(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},2868:function(j,Y,T){!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,x,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"}})}(T(5439))},1310:function(j,Y,T){!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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},2360:function(j,Y,T){!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}})}(T(5439))},6645:function(j,Y,T){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,q,J,X){var ne=function P(F){var q=Math.floor(F%1e3/100),J=Math.floor(F%100/10),X=F%10,ne="";return q>0&&(ne+=i[q]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),X>0&&(ne+=(""!==ne?" ":"")+i[X]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" 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(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"leS":-1!==F.indexOf("jar")?q.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?q.slice(0,-3)+"nem":q+" pIq"},past:function x(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?q.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?q.slice(0,-3)+"ben":q+" 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}})}(T(5439))},8374:function(j,Y,T){!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(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},256:function(j,Y,T){!function(w){"use strict";function E(x,S,P,R){var F={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return R||S?F[P][0]:F[P][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(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>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}})}(T(5439))},1631:function(j,Y,T){!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}})}(T(5439))},1595:function(j,Y,T){!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}})}(T(5439))},6050:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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}})}(T(5439))},5610:function(j,Y,T){!function(w){"use strict";function E(R,F,q){return"m"===q?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===q?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,F){var q=R.split("_");return F%10==1&&F%100!=11?q[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?q[1]:q[2]}({ss:F?"\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:F?"\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:F?"\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"}[q],+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 x(R,F){var q={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?q.nominative.slice(1,7).concat(q.nominative.slice(0,1)):R?q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][R.day()]:q.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,F,q){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,F){switch(F){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}})}(T(5439))},6077:function(j,Y,T){!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,P,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}})}(T(5439))},2207:function(j,Y,T){!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}})}(T(5439))},2862:function(j,Y,T){!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}})}(T(5439))},8093:function(j,Y,T){!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,x,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}})}(T(5439))},5590:function(j,Y,T){!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 x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9058:function(j,Y,T){!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}})}(T(5439))},7908:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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}})}(T(5439))},8867:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},1133:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},3291:function(j,Y,T){!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,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;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,x){switch(x){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"}})}(T(5439))},5439:function(j,Y,T){(j=T.nmd(j)).exports=function(){"use strict";var w,ge;function i(){return w.apply(null,arguments)}function x(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function S(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function P(v,H){return Object.prototype.hasOwnProperty.call(v,H)}function R(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var H;for(H in v)if(P(v,H))return!1;return!0}function F(v){return void 0===v}function q(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function J(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function X(v,H){var z,O=[],$=v.length;for(z=0;z<$;++z)O.push(H(v[z],z));return O}function ne(v,H){for(var O in H)P(H,O)&&(v[O]=H[O]);return P(H,"toString")&&(v.toString=H.toString),P(H,"valueOf")&&(v.valueOf=H.valueOf),v}function le(v,H,O,z){return rr(v,H,O,z,!0).utc()}function ie(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function Ae(v){if(null==v._isValid){var H=ie(v),O=ge.call(H.parsedDateParts,function($){return null!=$}),z=!isNaN(v._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&O);if(v._strict&&(z=z&&0===H.charsLeftOver&&0===H.unusedTokens.length&&void 0===H.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return z;v._isValid=z}return v._isValid}function ve(v){var H=le(NaN);return null!=v?ne(ie(H),v):ie(H).userInvalidated=!0,H}ge=Array.prototype.some?Array.prototype.some:function(v){var z,H=Object(this),O=H.length>>>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 ai=/(\[[^\[]*\])|(\\)?([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,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},Sn={};function Ge(v,H,O,z){var $=z;"string"==typeof z&&($=function(){return this[z]()}),v&&(Sn[v]=$),H&&(Sn[H[0]]=function(){return Ft($.apply(this,arguments),H[1],H[2])}),O&&(Sn[O]=function(){return this.localeData().ordinal($.apply(this,arguments),v)})}function si(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Ci(v,H){return v.isValid()?(H=En(H,v.localeData()),Ki[H]=Ki[H]||function jn(v){var O,z,H=v.match(ai);for(O=0,z=H.length;O=0&&Ke.test(v);)v=v.replace(Ke,z),Ke.lastIndex=0,O-=1;return v}var st={};function ot(v,H){var O=v.toLowerCase();st[O]=st[O+"s"]=st[H]=v}function Jt(v){return"string"==typeof v?st[v]||st[v.toLowerCase()]:void 0}function rn(v){var O,z,H={};for(z in v)P(v,z)&&(O=Jt(z))&&(H[O]=v[z]);return H}var oi={};function ei(v,H){oi[v]=H}function se(v){return v%4==0&&v%100!=0||v%400==0}function te(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function ue(v){var H=+v,O=0;return 0!==H&&isFinite(H)&&(O=te(H)),O}function Re(v,H){return function(O){return null!=O?(Ot(this,v,O),i.updateOffset(this,H),this):bt(this,v)}}function bt(v,H){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+H]():NaN}function Ot(v,H,O){v.isValid()&&!isNaN(O)&&("FullYear"===H&&se(v.year())&&1===v.month()&&29===v.date()?(O=ue(O),v._d["set"+(v._isUTC?"UTC":"")+H](O,v.month(),qn(O,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+H](O))}var an,ji=/\d/,Ht=/\d\d/,mr=/\d{3}/,St=/\d{4}/,Gt=/[+-]?\d{6}/,vt=/\d\d?/,er=/\d\d\d\d?/,da=/\d\d\d\d\d\d?/,Ui=/\d{1,3}/,qr=/\d{1,4}/,xr=/[+-]?\d{1,6}/,gr=/\d+/,ua=/[+-]?\d+/,hd=/Z|[+-]\d\d:?\d\d/gi,Ms=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[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 Ue(v,H,O){an[v]=he(H)?H:function(z,$){return z&&O?O:H}}function Gi(v,H){return P(an,v)?an[v](H._strict,H._locale):new RegExp(function et(v){return ct(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,$,ce){return O||z||$||ce}))}(v))}function ct(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}an={};var pi={};function M(v,H){var O,$,z=H;for("string"==typeof v&&(v=[v]),q(H)&&(z=function(ce,we){we[H]=ue(ce)}),$=v.length,O=0;O<$;O++)pi[v[O]]=z}function Kt(v,H){M(v,function(O,z,$,ce){$._w=$._w||{},H(O,$._w,$,ce)})}function zt(v,H,O){null!=H&&P(pi,v)&&pi[v](H,O._a,O,v)}var vi;function qn(v,H){if(isNaN(v)||isNaN(H))return NaN;var O=function gn(v,H){return(v%H+H)%H}(H,12);return v+=(H-O)/12,1===O?se(v)?29:28:31-O%7%2}vi=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var H;for(H=0;H68?1900:2e3)};var Ya=Re("FullYear",!0);function ir(v,H,O,z,$,ce,we){var ft;return v<100&&v>=0?(ft=new Date(v+400,H,O,z,$,ce,we),isFinite(ft.getFullYear())&&ft.setFullYear(v)):ft=new Date(v,H,O,z,$,ce,we),ft}function Cs(v){var H,O;return v<100&&v>=0?((O=Array.prototype.slice.call(arguments))[0]=v+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(v)):H=new Date(Date.UTC.apply(null,arguments)),H}function pd(v,H,O){var z=7+H-O;return-(7+Cs(v,0,z).getUTCDay()-H)%7+z-1}function rc(v,H,O,z,$){var jt,Mi,ft=1+7*(H-1)+(7+O-z)%7+pd(v,z,$);return ft<=0?Mi=pa(jt=v-1)+ft:ft>pa(v)?(jt=v+1,Mi=ft-pa(v)):(jt=v,Mi=ft),{year:jt,dayOfYear:Mi}}function po(v,H,O){var ce,we,z=pd(v.year(),H,O),$=Math.floor((v.dayOfYear()-z-1)/7)+1;return $<1?ce=$+Yr(we=v.year()-1,H,O):$>Yr(v.year(),H,O)?(ce=$-Yr(v.year(),H,O),we=v.year()+1):(we=v.year(),ce=$),{week:ce,year:we}}function Yr(v,H,O){var z=pd(v,H,O),$=pd(v+1,H,O);return(pa(v)-z+$)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),ei("week",5),ei("isoWeek",5),Ue("w",vt),Ue("ww",vt,Ht),Ue("W",vt),Ue("WW",vt,Ht),Kt(["w","ww","W","WW"],function(v,H,O,z){H[z.substr(0,1)]=ue(v)});function fd(v,H){return v.slice(H,7).concat(v.slice(0,H))}Ge("d",0,"do","day"),Ge("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),Ge("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),Ge("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),ei("day",11),ei("weekday",11),ei("isoWeekday",11),Ue("d",vt),Ue("e",vt),Ue("E",vt),Ue("dd",function(v,H){return H.weekdaysMinRegex(v)}),Ue("ddd",function(v,H){return H.weekdaysShortRegex(v)}),Ue("dddd",function(v,H){return H.weekdaysRegex(v)}),Kt(["dd","ddd","dddd"],function(v,H,O,z){var $=O._locale.weekdaysParse(v,z,O._strict);null!=$?H.d=$:ie(O).invalidWeekday=v}),Kt(["d","e","E"],function(v,H,O,z){H[z]=ue(v)});var cf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),df=en,It=en,Ua=en;function De(v,H,O){var z,$,ce,we=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)ce=le([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(ce,"").toLocaleLowerCase();return O?"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null}function il(){function v(on,Or){return Or.length-on.length}var ce,we,ft,jt,Mi,H=[],O=[],z=[],$=[];for(ce=0;ce<7;ce++)we=le([2e3,1]).day(ce),ft=ct(this.weekdaysMin(we,"")),jt=ct(this.weekdaysShort(we,"")),Mi=ct(this.weekdays(we,"")),H.push(ft),O.push(jt),z.push(Mi),$.push(ft),$.push(jt),$.push(Mi);H.sort(v),O.sort(v),z.sort(v),$.sort(v),this._weekdaysRegex=new RegExp("^("+$.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 Zn(){return this.hours()%12||12}function Bt(v,H){Ge(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Wn(v,H){return H._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zn),Ge("k",["kk",2],0,function Ur(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Bt("a",!0),Bt("A",!1),ot("hour","h"),ei("hour",13),Ue("a",Wn),Ue("A",Wn),Ue("H",vt),Ue("h",vt),Ue("k",vt),Ue("HH",vt,Ht),Ue("hh",vt,Ht),Ue("kk",vt,Ht),Ue("hmm",er),Ue("hmmss",da),Ue("Hmm",er),Ue("Hmmss",da),M(["H","HH"],3),M(["k","kk"],function(v,H,O){var z=ue(v);H[3]=24===z?0:z}),M(["a","A"],function(v,H,O){O._isPm=O._locale.isPM(v),O._meridiem=v}),M(["h","hh"],function(v,H,O){H[3]=ue(v),ie(O).bigHour=!0}),M("hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z)),ie(O).bigHour=!0}),M("hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($)),ie(O).bigHour=!0}),M("Hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z))}),M("Hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($))});var ac=Re("Hours",!0);var ti,Nt={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:Yn,monthsShort:On,week:{dow:0,doy:6},weekdays:cf,weekdaysMin:Qu,weekdaysShort:Xu,meridiemParse:/[ap]\.?m?\.?/i},dt={},fo={};function Ti(v,H){var O,z=Math.min(v.length,H.length);for(O=0;O0;){if($=li(ce.slice(0,O).join("-")))return $;if(z&&z.length>=O&&Ti(ce,z)>=O-1)break;O--}H++}return ti}(v)}function Me(v){var H,O=v._a;return O&&-2===ie(v).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>qn(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,ie(v)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(v)._overflowWeeks&&-1===H&&(H=7),ie(v)._overflowWeekday&&-1===H&&(H=8),ie(v).overflow=H),v}var _e=/^\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)?)?$/,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)?)?$/,xi=/Z|[+-]\d\d(?::?\d\d)?/,ii=[["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]],ci=[["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/]],tt=/^\/?Date\((-?\d+)/i,sn=/^(?:(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}))$/,gi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(v){var H,O,ce,we,ft,jt,z=v._i,$=_e.exec(z)||nt.exec(z),Mi=ii.length,on=ci.length;if($){for(ie(v).iso=!0,H=0,O=Mi;H7)&&(jt=!0)):(ce=v._locale._week.dow,we=v._locale._week.doy,Mi=po(di(),ce,we),O=Bi(H.gg,v._a[0],Mi.year),z=Bi(H.w,Mi.week),null!=H.d?(($=H.d)<0||$>6)&&(jt=!0):null!=H.e?($=H.e+ce,(H.e<0||H.e>6)&&(jt=!0)):$=ce),z<1||z>Yr(O,ce,we)?ie(v)._overflowWeeks=!0:null!=jt?ie(v)._overflowWeekday=!0:(ft=rc(O,z,$,ce,we),v._a[0]=ft.year,v._dayOfYear=ft.dayOfYear)}(v),null!=v._dayOfYear&&(we=Bi(v._a[0],$[0]),(v._dayOfYear>pa(we)||0===v._dayOfYear)&&(ie(v)._overflowDayOfYear=!0),O=Cs(we,0,v._dayOfYear),v._a[1]=O.getUTCMonth(),v._a[2]=O.getUTCDate()),H=0;H<3&&null==v._a[H];++H)v._a[H]=z[H]=$[H];for(;H<7;H++)v._a[H]=z[H]=v._a[H]??(2===H?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?Cs:ir).apply(null,z),ce=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==ce&&(ie(v).weekdayMismatch=!0)}}function sc(v){if(v._f!==i.ISO_8601)if(v._f!==i.RFC_2822){v._a=[],ie(v).empty=!0;var O,z,$,ce,we,Mi,on,H=""+v._i,ft=H.length,jt=0;for(on=($=En(v._f,v._locale).match(ai)||[]).length,O=0;O0&&ie(v).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),jt+=z.length),Sn[ce]?(z?ie(v).empty=!1:ie(v).unusedTokens.push(ce),zt(ce,z,v)):v._strict&&!z&&ie(v).unusedTokens.push(ce);ie(v).charsLeftOver=ft-jt,H.length>0&&ie(v).unusedInput.push(H),v._a[3]<=12&&!0===ie(v).bigHour&&v._a[3]>0&&(ie(v).bigHour=void 0),ie(v).parsedDateParts=v._a.slice(0),ie(v).meridiem=v._meridiem,v._a[3]=function uf(v,H,O){var z;return null==O?H:null!=v.meridiemHour?v.meridiemHour(H,O):(null!=v.isPM&&((z=v.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(v._locale,v._a[3],v._meridiem),null!==(Mi=ie(v).era)&&(v._a[0]=v._locale.erasConvertYear(Mi,v._a[0])),rl(v),Me(v)}else mo(v);else _n(v)}function lc(v){var H=v._i,O=v._f;return v._locale=v._locale||G(v._l),null===H||void 0===O&&""===H?ve({nullInput:!0}):("string"==typeof H&&(v._i=H=v._locale.preparse(H)),Se(H)?new Te(Me(H)):(J(H)?v._d=H:x(O)?function oc(v){var H,O,z,$,ce,we,ft=!1,jt=v._f.length;if(0===jt)return ie(v).invalidFormat=!0,void(v._d=new Date(NaN));for($=0;$this?this:v:ve()});function Ku(v,H){var O,z;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return di();for(O=H[0],z=1;z=0?new Date(v+400,H,O)-fl:new Date(v,H,O).valueOf()}function ml(v,H,O){return v<100&&v>=0?Date.UTC(v+400,H,O)-fl:Date.UTC(v,H,O)}function Ed(v,H){return H.erasAbbrRegex(v)}function Ka(){var $,ce,v=[],H=[],O=[],z=[],we=this.eras();for($=0,ce=we.length;$(ce=Yr(v,z,$))&&(H=ce),wo.call(this,v,H,O,z,$))}function wo(v,H,O,z,$){var ce=rc(v,H,O,z,$),we=Cs(ce.year,0,ce.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),Ue("N",Ed),Ue("NN",Ed),Ue("NNN",Ed),Ue("NNNN",function yg(v,H){return H.erasNameRegex(v)}),Ue("NNNNN",function ya(v,H){return H.erasNarrowRegex(v)}),M(["N","NN","NNN","NNNN","NNNNN"],function(v,H,O,z){var $=O._locale.erasParse(v,z,O._strict);$?ie(O).era=$:ie(O).invalidEra=v}),Ue("y",gr),Ue("yy",gr),Ue("yyy",gr),Ue("yyyy",gr),Ue("yo",function Dd(v,H){return H._eraYearOrdinalRegex||gr}),M(["y","yy","yyy","yyyy"],0),M(["yo"],function(v,H,O,z){var $;O._locale._eraYearOrdinalRegex&&($=v.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(v,$):parseInt(v,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),ei("weekYear",1),ei("isoWeekYear",1),Ue("G",ua),Ue("g",ua),Ue("GG",vt,Ht),Ue("gg",vt,Ht),Ue("GGGG",qr,St),Ue("gggg",qr,St),Ue("GGGGG",xr,Gt),Ue("ggggg",xr,Gt),Kt(["gggg","ggggg","GGGG","GGGGG"],function(v,H,O,z){H[z.substr(0,2)]=ue(v)}),Kt(["gg","GG"],function(v,H,O,z){H[z]=i.parseTwoDigitYear(v)}),Ge("Q",0,"Qo","quarter"),ot("quarter","Q"),ei("quarter",7),Ue("Q",ji),M("Q",function(v,H){H[1]=3*(ue(v)-1)}),Ge("D",["DD",2],"Do","date"),ot("date","D"),ei("date",9),Ue("D",vt),Ue("DD",vt,Ht),Ue("Do",function(v,H){return v?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),M(["D","DD"],2),M("Do",function(v,H){H[2]=ue(v.match(vt)[0])});var Ld=Re("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),ei("dayOfYear",4),Ue("DDD",Ui),Ue("DDDD",mr),M(["DDD","DDDD"],function(v,H,O){O._dayOfYear=ue(v)}),Ge("m",["mm",2],0,"minute"),ot("minute","m"),ei("minute",14),Ue("m",vt),Ue("mm",vt,Ht),M(["m","mm"],4);var Pd=Re("Minutes",!1);Ge("s",["ss",2],0,"second"),ot("second","s"),ei("second",15),Ue("s",vt),Ue("ss",vt,Ht),M(["s","ss"],5);var ts,Cc,Pr=Re("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ot("millisecond","ms"),ei("millisecond",16),Ue("S",Ui,ji),Ue("SS",Ui,Ht),Ue("SSS",Ui,mr),ts="SSSS";ts.length<=9;ts+="S")Ue(ts,gr);function ar(v,H){H[6]=ue(1e3*("0."+v))}for(ts="S";ts.length<=9;ts+="S")M(ts,ar);Cc=Re("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Te.prototype;function Al(v){return v}Fe.add=nh,Fe.calendar=function gc(v,H){1===arguments.length&&(arguments[0]?cl(arguments[0])?(v=arguments[0],H=void 0):_d(arguments[0])&&(H=arguments[0],v=void 0):(v=void 0,H=void 0));var O=v||di(),z=Hn(O,this).startOf("day"),$=i.calendarFormat(this,z)||"sameElse",ce=H&&(he(H[$])?H[$].call(this,O):H[$]);return this.format(ce||this.localeData().calendar($,this,di(O)))},Fe.clone=function bo(){return new Te(this)},Fe.diff=function bc(v,H,O){var z,$,ce;if(!this.isValid())return NaN;if(!(z=Hn(v,this)).isValid())return NaN;switch($=6e4*(z.utcOffset()-this.utcOffset()),H=Jt(H)){case"year":ce=Jn(this,z)/12;break;case"month":ce=Jn(this,z);break;case"quarter":ce=Jn(this,z)/3;break;case"second":ce=(this-z)/1e3;break;case"minute":ce=(this-z)/6e4;break;case"hour":ce=(this-z)/36e5;break;case"day":ce=(this-z-$)/864e5;break;case"week":ce=(this-z-$)/6048e5;break;default:ce=this-z}return O?ce:te(ce)},Fe.endOf=function Lr(v){var H,O;if(void 0===(v=Jt(v))||"millisecond"===v||!this.isValid())return this;switch(O=this._isUTC?ml:wc,v){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+=pl-Hr(H+(this._isUTC?0:this.utcOffset()*Hs),pl)-1;break;case"minute":H=this._d.valueOf(),H+=Hs-Hr(H,Hs)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Hr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Fe.format=function ul(v){v||(v=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Ci(this,v);return this.localeData().postformat(H)},Fe.from=function Ad(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({to:this,from:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.fromNow=function yd(v){return this.from(di(),v)},Fe.to=function yc(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({from:this,to:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.toNow=function Mc(v){return this.to(di(),v)},Fe.get=function it(v){return he(this[v=Jt(v)])?this[v]():this},Fe.invalidAt=function Xa(){return ie(this).overflow},Fe.isAfter=function Ao(v,H){var O=Se(v)?v:di(v);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Jt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?Ci(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ci(O,"Z")):Ci(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function _f(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,v="moment",H="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+v+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function xd(){return this.isValid()?this.toISOString():null},Fe.toString=function Ac(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function Cd(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Sd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function _l(){var v,H,O,z=this.localeData().eras();for(v=0,H=z.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function Ds(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function hc(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Zr,Fe.isUTC=Zr,Fe.zoneAbbr=function kd(){return this._isUTC?"UTC":""},Fe.zoneName=function Ps(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Be("dates accessor is deprecated. Use date instead.",Ld),Fe.months=Be("months accessor is deprecated. Use month instead",_r),Fe.years=Be("years accessor is deprecated. Use year instead",Ya),Fe.zone=Be("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ol(v,H){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,H),this):-this.utcOffset()}),Fe.isDSTShifted=Be("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function _o(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,v={};return He(v,this),(v=lc(v))._a?(H=v._isUTC?le(v._a):di(v._a),this._isDSTShifted=this.isValid()&&function dc(v,H,O){var we,z=Math.min(v.length,H.length),$=Math.abs(v.length-H.length),ce=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var $t=ye.prototype;function vc(v,H,O,z){var $=G(),ce=le().set(z,H);return $[O](ce,v)}function hh(v,H,O){if(q(v)&&(H=v,v=void 0),v=v||"",null!=H)return vc(v,H,O,"month");var z,$=[];for(z=0;z<12;z++)$[z]=vc(v,z,O,"month");return $}function ks(v,H,O,z){"boolean"==typeof v?(q(H)&&(O=H,H=void 0),H=H||""):(O=H=v,v=!1,q(H)&&(O=H,H=void 0),H=H||"");var we,$=G(),ce=v?$._week.dow:0,ft=[];if(null!=O)return vc(H,(O+ce)%7,z,"day");for(we=0;we<7;we++)ft[we]=vc(H,(we+ce)%7,z,"day");return ft}$t.calendar=function mt(v,H,O){var z=this._calendar[v]||this._calendar.sameElse;return he(z)?z.call(H,O):z},$t.longDateFormat=function mn(v){var H=this._longDateFormat[v],O=this._longDateFormat[v.toUpperCase()];return H||!O?H:(this._longDateFormat[v]=O.match(ai).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[v])},$t.invalidDate=function ca(){return this._invalidDate},$t.ordinal=function de(v){return this._ordinal.replace("%d",v)},$t.preparse=Al,$t.postformat=Al,$t.relativeTime=function be(v,H,O,z){var $=this._relativeTime[O];return he($)?$(v,H,O,z):$.replace(/%d/i,v)},$t.pastFuture=function qe(v,H){var O=this._relativeTime[v>0?"future":"past"];return he(O)?O(H):O.replace(/%s/i,H)},$t.set=function me(v){var H,O;for(O in v)P(v,O)&&(he(H=v[O])?this[O]=H:this["_"+O]=H);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$t.eras=function gl(v,H){var O,z,$,ce=this._eras||G("en")._eras;for(O=0,z=ce.length;O=0)return ce[z]},$t.erasConvertYear=function bg(v,H){var O=v.since<=v.until?1:-1;return void 0===H?i(v.since).year():i(v.since).year()+(H-v.offset)*O},$t.erasAbbrRegex=function Af(v){return P(this,"_erasAbbrRegex")||Ka.call(this),v?this._erasAbbrRegex:this._erasRegex},$t.erasNameRegex=function bf(v){return P(this,"_erasNameRegex")||Ka.call(this),v?this._erasNameRegex:this._erasRegex},$t.erasNarrowRegex=function yf(v){return P(this,"_erasNarrowRegex")||Ka.call(this),v?this._erasNarrowRegex:this._erasRegex},$t.months=function ja(v,H){return v?x(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||tl).test(H)?"format":"standalone"][v.month()]:x(this._months)?this._months:this._months.standalone},$t.monthsShort=function uo(v,H){return v?x(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[tl.test(H)?"format":"standalone"][v.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$t.monthsParse=function qa(v,H,O){var z,$,ce;if(this._monthsParseExact)return ho.call(this,v,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if($=le([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months($,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort($,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(ce="^"+this.months($,"")+"|^"+this.monthsShort($,""),this._monthsParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(v))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(v))return z;if(!O&&this._monthsParse[z].test(v))return z}},$t.monthsRegex=function In(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=nc),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},$t.monthsShortRegex=function Zu(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},$t.week=function nf(v){return po(v,this._week.dow,this._week.doy).week},$t.firstDayOfYear=function rf(){return this._week.doy},$t.firstDayOfWeek=function Sr(){return this._week.dow},$t.weekdays=function Yt(v,H){var O=x(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===v?fd(O,this._week.dow):v?O[v.day()]:O},$t.weekdaysMin=function $e(v){return!0===v?fd(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},$t.weekdaysShort=function Dn(v){return!0===v?fd(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},$t.weekdaysParse=function $i(v,H,O){var z,$,ce;if(this._weekdaysParseExact)return De.call(this,v,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if($=le([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays($,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort($,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin($,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(ce="^"+this.weekdays($,"")+"|^"+this.weekdaysShort($,"")+"|^"+this.weekdaysMin($,""),this._weekdaysParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(v))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(v))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(v))return z;if(!O&&this._weekdaysParse[z].test(v))return z}},$t.weekdaysRegex=function Bn(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=df),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},$t.weekdaysShortRegex=function Wr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$t.weekdaysMinRegex=function nr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ua),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$t.isPM=function br(v){return"p"===(v+"").toLowerCase().charAt(0)},$t.meridiem=function At(v,H,O){return v>11?O?"pm":"PM":O?"am":"AM"},I("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(v){var H=v%10;return v+(1===ue(v%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Be("moment.lang is deprecated. Use moment.locale instead.",I),i.langData=Be("moment.langData is deprecated. Use moment.localeData instead.",G);var wr=Math.abs;function Tf(v,H,O,z){var $=bn(H,O);return v._milliseconds+=z*$._milliseconds,v._days+=z*$._days,v._months+=z*$._months,v._bubble()}function Ma(v){return v<0?Math.floor(v):Math.ceil(v)}function ph(v){return 4800*v/146097}function Wi(v){return 146097*v/4800}function Rr(v){return function(){return this.as(v)}}var Ml=Rr("ms"),Sf=Rr("s"),Ef=Rr("m"),Df=Rr("h"),Sc=Rr("d"),wl=Rr("w"),Ec=Rr("M"),Co=Rr("Q"),Od=Rr("y");function Qr(v){return function(){return this.isValid()?this._data[v]:NaN}}var gh=Qr("milliseconds"),Hf=Qr("seconds"),Dc=Qr("minutes"),Os=Qr("hours"),vo=Qr("days"),Hc=Qr("months"),Id=Qr("years");var sr=Math.round,To={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lf(v,H,O,z,$){return $.relativeTime(H||1,!!O,v,z)}var xo=Math.abs;function Is(v){return(v>0)-(v<0)||+v}function Nd(){if(!this.isValid())return this.localeData().invalidDate();var z,$,ce,we,jt,Mi,on,Or,v=xo(this._milliseconds)/1e3,H=xo(this._days),O=xo(this._months),ft=this.asSeconds();return ft?(z=te(v/60),$=te(z/60),v%=60,z%=60,ce=te(O/12),O%=12,we=v?v.toFixed(3).replace(/\.?0+$/,""):"",jt=ft<0?"-":"",Mi=Is(this._months)!==Is(ft)?"-":"",on=Is(this._days)!==Is(ft)?"-":"",Or=Is(this._milliseconds)!==Is(ft)?"-":"",jt+"P"+(ce?Mi+ce+"Y":"")+(O?Mi+O+"M":"")+(H?on+H+"D":"")+($||z||v?"T":"")+($?Or+$+"H":"")+(z?Or+z+"M":"")+(v?Or+we+"S":"")):"P0D"}var Qt=go.prototype;return Qt.isValid=function sl(){return this._isValid},Qt.abs=function vf(){var v=this._data;return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),v.milliseconds=wr(v.milliseconds),v.seconds=wr(v.seconds),v.minutes=wr(v.minutes),v.hours=wr(v.hours),v.months=wr(v.months),v.years=wr(v.years),this},Qt.add=function xf(v,H){return Tf(this,v,H,1)},Qt.subtract=function xc(v,H){return Tf(this,v,H,-1)},Qt.as=function fh(v){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(v=Jt(v))||"quarter"===v||"year"===v)switch(H=this._days+z/864e5,O=this._months+ph(H),v){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Wi(this._months)),v){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 "+v)}},Qt.asMilliseconds=Ml,Qt.asSeconds=Sf,Qt.asMinutes=Ef,Qt.asHours=Df,Qt.asDays=Sc,Qt.asWeeks=wl,Qt.asMonths=Ec,Qt.asQuarters=Co,Qt.asYears=Od,Qt.valueOf=function mh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},Qt._bubble=function kr(){var $,ce,we,ft,jt,v=this._milliseconds,H=this._days,O=this._months,z=this._data;return v>=0&&H>=0&&O>=0||v<=0&&H<=0&&O<=0||(v+=864e5*Ma(Wi(O)+H),H=0,O=0),z.milliseconds=v%1e3,$=te(v/1e3),z.seconds=$%60,ce=te($/60),z.minutes=ce%60,we=te(ce/60),z.hours=we%24,H+=te(we/24),O+=jt=te(ph(H)),H-=Ma(Wi(jt)),ft=te(O/12),O%=12,z.days=H,z.months=O,z.years=ft,this},Qt.clone=function Cl(){return bn(this)},Qt.get=function vl(v){return v=Jt(v),this.isValid()?this[v+"s"]():NaN},Qt.milliseconds=gh,Qt.seconds=Hf,Qt.minutes=Dc,Qt.hours=Os,Qt.days=vo,Qt.weeks=function Bd(){return te(this.days()/7)},Qt.months=Hc,Qt.years=Id,Qt.humanize=function _h(v,H){if(!this.isValid())return this.localeData().invalidDate();var $,ce,O=!1,z=To;return"object"==typeof v&&(H=v,v=!1),"boolean"==typeof v&&(O=v),"object"==typeof H&&(z=Object.assign({},To,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),ce=function Pf(v,H,O,z){var $=bn(v).abs(),ce=sr($.as("s")),we=sr($.as("m")),ft=sr($.as("h")),jt=sr($.as("d")),Mi=sr($.as("M")),on=sr($.as("w")),Or=sr($.as("y")),Ir=ce<=O.ss&&["s",ce]||ce0,Ir[4]=z,Lf.apply(null,Ir)}(this,!O,z,$=this.localeData()),O&&(ce=$.pastFuture(+this,ce)),$.postformat(ce)},Qt.toISOString=Nd,Qt.toString=Nd,Qt.toJSON=Nd,Qt.locale=oh,Qt.localeData=wd,Qt.toIsoString=Be("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nd),Qt.lang=Md,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),Ue("x",ua),Ue("X",/[+-]?\d+(\.\d{1,3})?/),M("X",function(v,H,O){O._d=new Date(1e3*parseFloat(v))}),M("x",function(v,H,O){O._d=new Date(ue(v))}),i.version="2.29.4",function E(v){w=v}(di),i.fn=Fe,i.min=function ga(){return Ku("isBefore",[].slice.call(arguments,0))},i.max=function md(){return Ku("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function uh(v){return di(1e3*v)},i.months=function Rs(v,H){return hh(v,H,"months")},i.isDate=J,i.locale=I,i.invalid=ve,i.duration=bn,i.isMoment=Se,i.weekdays=function wg(v,H,O){return ks(v,H,O,"weekdays")},i.parseZone=function Cf(){return di.apply(null,arguments).parseZone()},i.localeData=G,i.isDuration=Za,i.monthsShort=function Tc(v,H){return hh(v,H,"monthsShort")},i.weekdaysMin=function Rd(v,H,O){return ks(v,H,O,"weekdaysMin")},i.defineLocale=U,i.updateLocale=function B(v,H){if(null!=H){var O,z,$=Nt;null!=dt[v]&&null!=dt[v].parentLocale?dt[v].set(Ce(dt[v]._config,H)):(null!=(z=li(v))&&($=z._config),H=Ce($,H),null==z&&(H.abbr=v),(O=new ye(H)).parentLocale=dt[v],dt[v]=O),I(v)}else null!=dt[v]&&(null!=dt[v].parentLocale?(dt[v]=dt[v].parentLocale,v===I()&&I(v)):null!=dt[v]&&delete dt[v]);return dt[v]},i.locales=function re(){return We(dt)},i.weekdaysShort=function yl(v,H,O){return ks(v,H,O,"weekdaysShort")},i.normalizeUnits=Jt,i.relativeTimeRounding=function kf(v){return void 0===v?sr:"function"==typeof v&&(sr=v,!0)},i.relativeTimeThreshold=function Lc(v,H){return void 0!==To[v]&&(void 0===H?To[v]:(To[v]=H,"s"===v&&(To.ss=H-1),!0))},i.calendarFormat=function mc(v,H){var O=v.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=Fe,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}()},9751:(j,Y,T)=>{"use strict";T.d(Y,{y:()=>F});var w=T(930),i=T(727),E=T(8822),x=T(9635),S=T(2416),P=T(576),R=T(2806);let F=(()=>{class ne{constructor(ae){ae&&(this._subscribe=ae)}lift(ae){const ie=new ne;return ie.source=this,ie.operator=ae,ie}subscribe(ae,ie,ge){const Ae=function X(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(ae)?ae:new w.Hp(ae,ie,ge);return(0,R.x)(()=>{const{operator:ve,source:Xe}=this;Ae.add(ve?ve.call(Ae,Xe):Xe?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(ae){try{return this._subscribe(ae)}catch(ie){ae.error(ie)}}forEach(ae,ie){return new(ie=q(ie))((ge,Ae)=>{const ve=new w.Hp({next:Xe=>{try{ae(Xe)}catch(Qe){Ae(Qe),ve.unsubscribe()}},error:Ae,complete:ge});this.subscribe(ve)})}_subscribe(ae){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(ae)}[E.L](){return this}pipe(...ae){return(0,x.U)(ae)(this)}toPromise(ae){return new(ae=q(ae))((ie,ge)=>{let Ae;this.subscribe(ve=>Ae=ve,ve=>ge(ve),()=>ie(Ae))})}}return ne.create=le=>new ne(le),ne})();function q(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>R});var w=T(9751),i=T(727);const x=(0,T(3888).d)(q=>function(){q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=T(8737),P=T(2806);let R=(()=>{class q extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(X){const ne=new F(this,this);return ne.operator=X,ne}_throwIfClosed(){if(this.closed)throw new x}next(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(X)}})}error(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=X;const{observers:ne}=this;for(;ne.length;)ne.shift().error(X)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:X}=this;for(;X.length;)X.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var X;return(null===(X=this.observers)||void 0===X?void 0:X.length)>0}_trySubscribe(X){return this._throwIfClosed(),super._trySubscribe(X)}_subscribe(X){return this._throwIfClosed(),this._checkFinalizedStatuses(X),this._innerSubscribe(X)}_innerSubscribe(X){const{hasError:ne,isStopped:le,observers:ae}=this;return ne||le?i.Lc:(this.currentObservers=null,ae.push(X),new i.w0(()=>{this.currentObservers=null,(0,S.P)(ae,X)}))}_checkFinalizedStatuses(X){const{hasError:ne,thrownError:le,isStopped:ae}=this;ne?X.error(le):ae&&X.complete()}asObservable(){const X=new w.y;return X.source=this,X}}return q.create=(J,X)=>new F(J,X),q})();class F extends R{constructor(J,X){super(),this.destination=J,this.source=X}next(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.next)||void 0===ne||ne.call(X,J)}error(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.error)||void 0===ne||ne.call(X,J)}complete(){var J,X;null===(X=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===X||X.call(J)}_subscribe(J){var X,ne;return null!==(ne=null===(X=this.source)||void 0===X?void 0:X.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(j,Y,T)=>{"use strict";T.d(Y,{Hp:()=>ge,Lv:()=>ne});var w=T(576),i=T(727),E=T(2416),x=T(7849),S=T(5032);const P=q("C",void 0,void 0);function q(He,Te,Se){return{kind:He,value:Te,error:Se}}var J=T(3410),X=T(2806);class ne extends i.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,i.Nn)(Te)&&Te.add(this)):this.destination=Qe}static create(Te,Se,pt){return new ge(Te,Se,pt)}next(Te){this.isStopped?Xe(function F(He){return q("N",He,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?Xe(function R(He){return q("E",void 0,He)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?Xe(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function ae(He,Te){return le.call(He,Te)}class ie{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Se}=this;if(Se.next)try{Se.next(Te)}catch(pt){Ae(pt)}}error(Te){const{partialObserver:Se}=this;if(Se.error)try{Se.error(Te)}catch(pt){Ae(pt)}else Ae(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Se){Ae(Se)}}}class ge extends ne{constructor(Te,Se,pt){let Be;if(super(),(0,w.m)(Te)||!Te)Be={next:Te??void 0,error:Se??void 0,complete:pt??void 0};else{let Ve;this&&E.v.useDeprecatedNextContext?(Ve=Object.create(Te),Ve.unsubscribe=()=>this.unsubscribe(),Be={next:Te.next&&ae(Te.next,Ve),error:Te.error&&ae(Te.error,Ve),complete:Te.complete&&ae(Te.complete,Ve)}):Be=Te}this.destination=new ie(Be)}}function Ae(He){E.v.useDeprecatedSynchronousErrorHandling?(0,X.O)(He):(0,x.h)(He)}function Xe(He,Te){const{onStoppedNotification:Se}=E.v;Se&&J.z.setTimeout(()=>Se(He,Te))}const Qe={closed:!0,next:S.Z,error:function ve(He){throw He},complete:S.Z}},727:(j,Y,T)=>{"use strict";T.d(Y,{Lc:()=>P,w0:()=>S,Nn:()=>R});var w=T(576);const E=(0,T(3888).d)(q=>function(X){q(this),this.message=X?`${X.length} errors occurred during unsubscription:\n${X.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=X});var x=T(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:X}=this;if(X)if(this._parentage=null,Array.isArray(X))for(const ae of X)ae.remove(this);else X.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(ae){J=ae instanceof E?ae.errors:[ae]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const ae of le)try{F(ae)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var X;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(X=this._finalizers)&&void 0!==X?X:[]).push(J)}}_hasParent(J){const{_parentage:X}=this;return X===J||Array.isArray(X)&&X.includes(J)}_addParent(J){const{_parentage:X}=this;this._parentage=Array.isArray(X)?(X.push(J),X):X?[X,J]:J}_removeParent(J){const{_parentage:X}=this;X===J?this._parentage=null:Array.isArray(X)&&(0,x.P)(X,J)}remove(J){const{_finalizers:X}=this;X&&(0,x.P)(X,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const q=new S;return q.closed=!0,q})();const P=S.EMPTY;function R(q){return q instanceof S||q&&"closed"in q&&(0,w.m)(q.remove)&&(0,w.m)(q.add)&&(0,w.m)(q.unsubscribe)}function F(q){(0,w.m)(q)?q():q.unsubscribe()}},2416:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(j,Y,T)=>{"use strict";T.d(Y,{a:()=>J});var w=T(9751),i=T(4742),E=T(2076),x=T(4671),S=T(3268),P=T(3269),R=T(1810),F=T(5403),q=T(9672);function J(...le){const ae=(0,P.yG)(le),ie=(0,P.jO)(le),{args:ge,keys:Ae}=(0,i.D)(le);if(0===ge.length)return(0,E.D)([],ae);const ve=new w.y(function X(le,ae,ie=x.y){return ge=>{ne(ae,()=>{const{length:Ae}=le,ve=new Array(Ae);let Xe=Ae,Qe=Ae;for(let He=0;He{const Te=(0,E.D)(le[He],ae);let Se=!1;Te.subscribe((0,F.x)(ge,pt=>{ve[He]=pt,Se||(Se=!0,Qe--),Qe||ge.next(ie(ve.slice()))},()=>{--Xe||ge.complete()}))},ge)},ge)}}(ge,ae,Ae?Xe=>(0,R.n)(Ae,Xe):x.y));return ie?ve.pipe((0,S.Z)(ie)):ve}function ne(le,ae,ie){le?(0,q.f)(ie,le,ae):ae()}},7272:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>S});var w=T(8189),E=T(3269),x=T(2076);function S(...P){return function i(){return(0,w.J)(1)}()((0,x.D)(P,(0,E.yG)(P)))}},515:(j,Y,T)=>{"use strict";T.d(Y,{E:()=>i});const i=new(T(9751).y)(S=>S.complete())},2076:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>pt});var w=T(8421),i=T(9672),E=T(4482),x=T(5403);function S(Be,Ve=0){return(0,E.e)((Ne,he)=>{Ne.subscribe((0,x.x)(he,me=>(0,i.f)(he,Be,()=>he.next(me),Ve),()=>(0,i.f)(he,Be,()=>he.complete(),Ve),me=>(0,i.f)(he,Be,()=>he.error(me),Ve)))})}function P(Be,Ve=0){return(0,E.e)((Ne,he)=>{he.add(Be.schedule(()=>Ne.subscribe(he),Ve))})}var q=T(9751),X=T(2202),ne=T(576);function ae(Be,Ve){if(!Be)throw new Error("Iterable cannot be null");return new q.y(Ne=>{(0,i.f)(Ne,Ve,()=>{const he=Be[Symbol.asyncIterator]();(0,i.f)(Ne,Ve,()=>{he.next().then(me=>{me.done?Ne.complete():Ne.next(me.value)})},0,!0)})})}var ie=T(3670),ge=T(8239),Ae=T(1144),ve=T(6495),Xe=T(2206),Qe=T(4532),He=T(3260);function pt(Be,Ve){return Ve?function Se(Be,Ve){if(null!=Be){if((0,ie.c)(Be))return function R(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Ae.z)(Be))return function J(Be,Ve){return new q.y(Ne=>{let he=0;return Ve.schedule(function(){he===Be.length?Ne.complete():(Ne.next(Be[he++]),Ne.closed||this.schedule())})})}(Be,Ve);if((0,ge.t)(Be))return function F(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Xe.D)(Be))return ae(Be,Ve);if((0,ve.T)(Be))return function le(Be,Ve){return new q.y(Ne=>{let he;return(0,i.f)(Ne,Ve,()=>{he=Be[X.h](),(0,i.f)(Ne,Ve,()=>{let me,Ce;try{({value:me,done:Ce}=he.next())}catch(ye){return void Ne.error(ye)}Ce?Ne.complete():Ne.next(me)},0,!0)}),()=>(0,ne.m)(he?.return)&&he.return()})}(Be,Ve);if((0,He.L)(Be))return function Te(Be,Ve){return ae((0,He.Q)(Be),Ve)}(Be,Ve)}throw(0,Qe.z)(Be)}(Be,Ve):(0,w.Xf)(Be)}},8421:(j,Y,T)=>{"use strict";T.d(Y,{Xf:()=>le});var w=T(655),i=T(1144),E=T(8239),x=T(9751),S=T(3670),P=T(2206),R=T(4532),F=T(6495),q=T(3260),J=T(576),X=T(7849),ne=T(8822);function le(He){if(He instanceof x.y)return He;if(null!=He){if((0,S.c)(He))return function ae(He){return new x.y(Te=>{const Se=He[ne.L]();if((0,J.m)(Se.subscribe))return Se.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(He);if((0,i.z)(He))return function ie(He){return new x.y(Te=>{for(let Se=0;Se{He.then(Se=>{Te.closed||(Te.next(Se),Te.complete())},Se=>Te.error(Se)).then(null,X.h)})}(He);if((0,P.D)(He))return ve(He);if((0,F.T)(He))return function Ae(He){return new x.y(Te=>{for(const Se of He)if(Te.next(Se),Te.closed)return;Te.complete()})}(He);if((0,q.L)(He))return function Xe(He){return ve((0,q.Q)(He))}(He)}throw(0,R.z)(He)}function ve(He){return new x.y(Te=>{(function Qe(He,Te){var Se,pt,Be,Ve;return(0,w.mG)(this,void 0,void 0,function*(){try{for(Se=(0,w.KL)(He);!(pt=yield Se.next()).done;)if(Te.next(pt.value),Te.closed)return}catch(Ne){Be={error:Ne}}finally{try{pt&&!pt.done&&(Ve=Se.return)&&(yield Ve.call(Se))}finally{if(Be)throw Be.error}}Te.complete()})})(He,Te).catch(Se=>Te.error(Se))})}},6451:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>P});var w=T(8189),i=T(8421),E=T(515),x=T(3269),S=T(2076);function P(...R){const F=(0,x.yG)(R),q=(0,x._6)(R,1/0),J=R;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(q)((0,S.D)(J,F)):E.E}},9646:(j,Y,T)=>{"use strict";T.d(Y,{of:()=>E});var w=T(3269),i=T(2076);function E(...x){const S=(0,w.yG)(x);return(0,i.D)(x,S)}},102:(j,Y,T)=>{"use strict";T.d(Y,{S:()=>P});var w=T(9751),i=T(8421);const{isArray:E}=Array;var S=T(5403);function P(...F){return 1===(F=function x(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function R(F){return q=>{let J=[];for(let X=0;J&&!q.closed&&X{if(J){for(let le=0;le{"use strict";T.d(Y,{_:()=>E});var w=T(9751),i=T(576);function E(x,S){const P=(0,i.m)(x)?x:()=>x,R=F=>F.error(P());return new w.y(S?F=>S.schedule(R,0,F):R)}},2805:(j,Y,T)=>{"use strict";T.d(Y,{H:()=>S});var w=T(9751),i=T(4986),E=T(3532),x=T(1165);function S(P=0,R,F=i.P){let q=-1;return null!=R&&((0,E.K)(R)?F=R:q=R),new w.y(J=>{let X=(0,x.q)(P)?+P-F.now():P;X<0&&(X=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=q?this.schedule(void 0,q):J.complete())},X)})}},5403:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>i});var w=T(930);function i(x,S,P,R,F){return new E(x,S,P,R,F)}class E extends w.Lv{constructor(S,P,R,F,q,J){super(S),this.onFinalize=q,this.shouldUnsubscribe=J,this._next=P?function(X){try{P(X)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(X){try{F(X)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(X){S.error(X)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>x});var w=T(8421),i=T(5403),E=T(4482);function x(S){return(0,E.e)((P,R)=>{let J,F=null,q=!1;F=P.subscribe((0,i.x)(R,void 0,void 0,X=>{J=(0,w.Xf)(S(X,x(S)(P))),F?(F.unsubscribe(),F=null,J.subscribe(R)):q=!0})),q&&(F.unsubscribe(),F=null,J.subscribe(R))})}},4351:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>E});var w=T(5577),i=T(576);function E(x,S){return(0,i.m)(S)?(0,w.z)(x,S,1):(0,w.z)(x,1)}},8372:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>x});var w=T(4986),i=T(4482),E=T(5403);function x(S,P=w.z){return(0,i.e)((R,F)=>{let q=null,J=null,X=null;const ne=()=>{if(q){q.unsubscribe(),q=null;const ae=J;J=null,F.next(ae)}};function le(){const ae=X+S,ie=P.now();if(ie{J=ae,X=P.now(),q||(q=P.schedule(le,S),F.add(q))},()=>{ne(),F.complete()},void 0,()=>{J=q=null}))})}},6590:(j,Y,T)=>{"use strict";T.d(Y,{d:()=>E});var w=T(4482),i=T(5403);function E(x){return(0,w.e)((S,P)=>{let R=!1;S.subscribe((0,i.x)(P,F=>{R=!0,P.next(F)},()=>{R||P.next(x),P.complete()}))})}},1005:(j,Y,T)=>{"use strict";T.d(Y,{g:()=>ne});var w=T(4986),i=T(7272),E=T(5698),x=T(4482),S=T(5403),P=T(5032),F=T(9718),q=T(5577);function J(le,ae){return ae?ie=>(0,i.z)(ae.pipe((0,E.q)(1),function R(){return(0,x.e)((le,ae)=>{le.subscribe((0,S.x)(ae,P.Z))})}()),ie.pipe(J(le))):(0,q.z)((ie,ge)=>le(ie,ge).pipe((0,E.q)(1),(0,F.h)(ie)))}var X=T(2805);function ne(le,ae=w.z){const ie=(0,X.H)(le,ae);return J(()=>ie)}},9300:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>x.call(S,q,F++)&&R.next(q)))})}},590:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>R});var w=T(6805),i=T(9300),E=T(5698),x=T(6590),S=T(8068),P=T(4671);function R(F,q){const J=arguments.length>=2;return X=>X.pipe(F?(0,i.h)((ne,le)=>F(ne,le,X)):P.y,(0,E.q)(1),J?(0,x.d)(q):(0,S.T)(()=>new w.K))}},4004:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>{R.next(x.call(S,q,F++))}))})}},9718:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});var w=T(4004);function i(E){return(0,w.U)(()=>E)}},8189:(j,Y,T)=>{"use strict";T.d(Y,{J:()=>E});var w=T(5577),i=T(4671);function E(x=1/0){return(0,w.z)(i.y,x)}},5577:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>F});var w=T(4004),i=T(8421),E=T(4482),x=T(9672),S=T(5403),R=T(576);function F(q,J,X=1/0){return(0,R.m)(J)?F((ne,le)=>(0,w.U)((ae,ie)=>J(ne,ae,le,ie))((0,i.Xf)(q(ne,le))),X):("number"==typeof J&&(X=J),(0,E.e)((ne,le)=>function P(q,J,X,ne,le,ae,ie,ge){const Ae=[];let ve=0,Xe=0,Qe=!1;const He=()=>{Qe&&!Ae.length&&!ve&&J.complete()},Te=pt=>ve{ae&&J.next(pt),ve++;let Be=!1;(0,i.Xf)(X(pt,Xe++)).subscribe((0,S.x)(J,Ve=>{le?.(Ve),ae?Te(Ve):J.next(Ve)},()=>{Be=!0},void 0,()=>{if(Be)try{for(ve--;Ae.length&&veSe(Ve)):Se(Ve)}He()}catch(Ve){J.error(Ve)}}))};return q.subscribe((0,S.x)(J,Te,()=>{Qe=!0,He()})),()=>{ge?.()}}(ne,le,q,X)))}},3099:(j,Y,T)=>{"use strict";T.d(Y,{B:()=>S});var w=T(8421),i=T(7579),E=T(930),x=T(4482);function S(R={}){const{connector:F=(()=>new i.x),resetOnError:q=!0,resetOnComplete:J=!0,resetOnRefCountZero:X=!0}=R;return ne=>{let le,ae,ie,ge=0,Ae=!1,ve=!1;const Xe=()=>{ae?.unsubscribe(),ae=void 0},Qe=()=>{Xe(),le=ie=void 0,Ae=ve=!1},He=()=>{const Te=le;Qe(),Te?.unsubscribe()};return(0,x.e)((Te,Se)=>{ge++,!ve&&!Ae&&Xe();const pt=ie=ie??F();Se.add(()=>{ge--,0===ge&&!ve&&!Ae&&(ae=P(He,X))}),pt.subscribe(Se),!le&&ge>0&&(le=new E.Hp({next:Be=>pt.next(Be),error:Be=>{ve=!0,Xe(),ae=P(Qe,q,Be),pt.error(Be)},complete:()=>{Ae=!0,Xe(),ae=P(Qe,J),pt.complete()}}),(0,w.Xf)(Te).subscribe(le))})(ne)}}function P(R,F,...q){if(!0===F)return void R();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),R()}});return F(...q).subscribe(J)}},3900:(j,Y,T)=>{"use strict";T.d(Y,{w:()=>x});var w=T(8421),i=T(4482),E=T(5403);function x(S,P){return(0,i.e)((R,F)=>{let q=null,J=0,X=!1;const ne=()=>X&&!q&&F.complete();R.subscribe((0,E.x)(F,le=>{q?.unsubscribe();let ae=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(q=(0,E.x)(F,ge=>F.next(P?P(le,ge,ie,ae++):ge),()=>{q=null,ne()}))},()=>{X=!0,ne()}))})}},5698:(j,Y,T)=>{"use strict";T.d(Y,{q:()=>x});var w=T(515),i=T(4482),E=T(5403);function x(S){return S<=0?()=>w.E:(0,i.e)((P,R)=>{let F=0;P.subscribe((0,E.x)(R,q=>{++F<=S&&(R.next(q),S<=F&&R.complete())}))})}},8505:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>S});var w=T(576),i=T(4482),E=T(5403),x=T(4671);function S(P,R,F){const q=(0,w.m)(P)||R||F?{next:P,error:R,complete:F}:P;return q?(0,i.e)((J,X)=>{var ne;null===(ne=q.subscribe)||void 0===ne||ne.call(q);let le=!0;J.subscribe((0,E.x)(X,ae=>{var ie;null===(ie=q.next)||void 0===ie||ie.call(q,ae),X.next(ae)},()=>{var ae;le=!1,null===(ae=q.complete)||void 0===ae||ae.call(q),X.complete()},ae=>{var ie;le=!1,null===(ie=q.error)||void 0===ie||ie.call(q,ae),X.error(ae)},()=>{var ae,ie;le&&(null===(ae=q.unsubscribe)||void 0===ae||ae.call(q)),null===(ie=q.finalize)||void 0===ie||ie.call(q)}))}):x.y}},8068:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>x});var w=T(6805),i=T(4482),E=T(5403);function x(P=S){return(0,i.e)((R,F)=>{let q=!1;R.subscribe((0,E.x)(F,J=>{q=!0,F.next(J)},()=>q?F.complete():F.error(P())))})}function S(){return new w.K}},7414:(j,Y,T)=>{"use strict";T.d(Y,{V:()=>q});var w=T(4986),i=T(1165),E=T(4482),x=T(8421),S=T(3888),P=T(5403),R=T(9672);const F=(0,S.d)(X=>function(le=null){X(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function q(X,ne){const{first:le,each:ae,with:ie=J,scheduler:ge=ne??w.z,meta:Ae=null}=(0,i.q)(X)?{first:X}:"number"==typeof X?{each:X}:X;if(null==le&&null==ae)throw new TypeError("No timeout provided.");return(0,E.e)((ve,Xe)=>{let Qe,He,Te=null,Se=0;const pt=Be=>{He=(0,R.f)(Xe,ge,()=>{try{Qe.unsubscribe(),(0,x.Xf)(ie({meta:Ae,lastValue:Te,seen:Se})).subscribe(Xe)}catch(Ve){Xe.error(Ve)}},Be)};Qe=ve.subscribe((0,P.x)(Xe,Be=>{He?.unsubscribe(),Se++,Xe.next(Te=Be),ae>0&&pt(ae)},void 0,void 0,()=>{He?.closed||He?.unsubscribe(),Te=null})),!Se&&pt(null!=le?"number"==typeof le?le:+le-ge.now():ae)})}function J(X){throw new F(X)}},4408:(j,Y,T)=>{"use strict";T.d(Y,{o:()=>S});var w=T(727);class i extends w.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const E={setInterval(P,R,...F){const{delegate:q}=E;return q?.setInterval?q.setInterval(P,R,...F):setInterval(P,R,...F)},clearInterval(P){const{delegate:R}=E;return(R?.clearInterval||clearInterval)(P)},delegate:void 0};var x=T(8737);class S extends i{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){if(this.closed)return this;this.state=R;const q=this.id,J=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(J,q,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(R,F,q=0){return E.setInterval(R.flush.bind(R,this),q)}recycleAsyncId(R,F,q=0){if(null!=q&&this.delay===q&&!1===this.pending)return F;E.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const q=this._execute(R,F);if(q)return q;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let J,q=!1;try{this.work(R)}catch(X){q=!0,J=X||new Error("Scheduled action threw falsy error")}if(q)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:q}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(q,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},7565:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>E});var w=T(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,R){return new this.schedulerActionCtor(this,S).schedule(R,P)}}i.now=w.l.now;class E extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let R;this._active=!0;do{if(R=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,R){for(;S=P.shift();)S.unsubscribe();throw R}}}},4986:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>x,z:()=>E});var w=T(4408);const E=new(T(7565).v)(w.o),x=E},6063:(j,Y,T)=>{"use strict";T.d(Y,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w={setTimeout(i,E,...x){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...x):setTimeout(i,E,...x)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});const i=(0,T(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(j,Y,T)=>{"use strict";T.d(Y,{_6:()=>P,jO:()=>x,yG:()=>S});var w=T(576),i=T(3532);function E(R){return R[R.length-1]}function x(R){return(0,w.m)(E(R))?R.pop():void 0}function S(R){return(0,i.K)(E(R))?R.pop():void 0}function P(R,F){return"number"==typeof E(R)?R.pop():F}},4742:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:x}=Object;function S(R){if(1===R.length){const F=R[0];if(w(F))return{args:F,keys:null};if(function P(R){return R&&"object"==typeof R&&i(R)===E}(F)){const q=x(F);return{args:q.map(J=>F[J]),keys:q}}}return{args:R,keys:null}}},8737:(j,Y,T)=>{"use strict";function w(i,E){if(i){const x=i.indexOf(E);0<=x&&i.splice(x,1)}}T.d(Y,{P:()=>w})},3888:(j,Y,T)=>{"use strict";function w(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}T.d(Y,{d:()=>w})},1810:(j,Y,T)=>{"use strict";function w(i,E){return i.reduce((x,S,P)=>(x[S]=E[P],x),{})}T.d(Y,{n:()=>w})},2806:(j,Y,T)=>{"use strict";T.d(Y,{O:()=>x,x:()=>E});var w=T(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:R,error:F}=i;if(i=null,R)throw F}}else S()}function x(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(j,Y,T)=>{"use strict";function w(i,E,x,S=0,P=!1){const R=E.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(R),!P)return R}T.d(Y,{f:()=>w})},4671:(j,Y,T)=>{"use strict";function w(i){return i}T.d(Y,{y:()=>w})},1144:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>i});var w=T(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(j,Y,T)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}T.d(Y,{q:()=>w})},576:(j,Y,T)=>{"use strict";function w(i){return"function"==typeof i}T.d(Y,{m:()=>w})},3670:(j,Y,T)=>{"use strict";T.d(Y,{c:()=>E});var w=T(8822),i=T(576);function E(x){return(0,i.m)(x[w.L])}},6495:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>E});var w=T(2202),i=T(576);function E(x){return(0,i.m)(x?.[w.h])}},8239:(j,Y,T)=>{"use strict";T.d(Y,{t:()=>i});var w=T(576);function i(E){return(0,w.m)(E?.then)}},3260:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>x,Q:()=>E});var w=T(655),i=T(576);function E(S){return(0,w.FC)(this,arguments,function*(){const R=S.getReader();try{for(;;){const{value:F,done:q}=yield(0,w.qq)(R.read());if(q)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{R.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});var w=T(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(j,Y,T)=>{"use strict";T.d(Y,{A:()=>i,e:()=>E});var w=T(576);function i(x){return(0,w.m)(x?.lift)}function E(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(j,Y,T)=>{"use strict";T.d(Y,{Z:()=>x});var w=T(4004);const{isArray:i}=Array;function x(S){return(0,w.U)(P=>function E(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(j,Y,T)=>{"use strict";function w(){}T.d(Y,{Z:()=>w})},9635:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E,z:()=>i});var w=T(4671);function i(...x){return E(x)}function E(x){return 0===x.length?w.y:1===x.length?x[0]:function(P){return x.reduce((R,F)=>F(R),P)}}},7849:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(2416),i=T(3410);function E(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw x;S(x)})}},4532:(j,Y,T)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}T.d(Y,{z:()=>w})},6700:(j,Y,T)=>{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":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=E(x);return T(S)}function E(x){if(!T.o(w,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return w[x]}i.keys=function(){return Object.keys(w)},i.resolve=E,j.exports=i,i.id=6700},655:(j,Y,T)=>{"use strict";function F(he,me,Ce,ye){return new(Ce||(Ce=Promise))(function(Ye,mt){function Ft(Ki){try{Ke(ye.next(Ki))}catch(Sn){mt(Sn)}}function ai(Ki){try{Ke(ye.throw(Ki))}catch(Sn){mt(Sn)}}function Ke(Ki){Ki.done?Ye(Ki.value):function We(Ye){return Ye instanceof Ce?Ye:new Ce(function(mt){mt(Ye)})}(Ki.value).then(Ft,ai)}Ke((ye=ye.apply(he,me||[])).next())})}function Ae(he){return this instanceof Ae?(this.v=he,this):new Ae(he)}function ve(he,me,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var We,ye=Ce.apply(he,me||[]),Ye=[];return We={},mt("next"),mt("throw"),mt("return"),We[Symbol.asyncIterator]=function(){return this},We;function mt(Ge){ye[Ge]&&(We[Ge]=function(si){return new Promise(function(jn,Ci){Ye.push([Ge,si,jn,Ci])>1||Ft(Ge,si)})})}function Ft(Ge,si){try{!function ai(Ge){Ge.value instanceof Ae?Promise.resolve(Ge.value.v).then(Ke,Ki):Sn(Ye[0][2],Ge)}(ye[Ge](si))}catch(jn){Sn(Ye[0][3],jn)}}function Ke(Ge){Ft("next",Ge)}function Ki(Ge){Ft("throw",Ge)}function Sn(Ge,si){Ge(si),Ye.shift(),Ye.length&&Ft(Ye[0][0],Ye[0][1])}}function Qe(he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,me=he[Symbol.asyncIterator];return me?me.call(he):(he=function ne(he){var me="function"==typeof Symbol&&Symbol.iterator,Ce=me&&he[me],ye=0;if(Ce)return Ce.call(he);if(he&&"number"==typeof he.length)return{next:function(){return he&&ye>=he.length&&(he=void 0),{value:he&&he[ye++],done:!he}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(he),Ce={},ye("next"),ye("throw"),ye("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function ye(Ye){Ce[Ye]=he[Ye]&&function(mt){return new Promise(function(Ft,ai){!function We(Ye,mt,Ft,ai){Promise.resolve(ai).then(function(Ke){Ye({value:Ke,done:Ft})},mt)}(Ft,ai,(mt=he[Ye](mt)).done,mt.value)})}}}T.d(Y,{FC:()=>ve,KL:()=>Qe,mG:()=>F,qq:()=>Ae})},6895:(j,Y,T)=>{"use strict";T.d(Y,{Do:()=>Qe,ED:()=>Cs,EM:()=>ti,HT:()=>S,JF:()=>li,K0:()=>R,Mx:()=>nc,NF:()=>ac,Nd:()=>$i,O5:()=>In,Ov:()=>Ju,PC:()=>Yr,PM:()=>At,RF:()=>Wa,S$:()=>Ae,V_:()=>J,Ye:()=>He,b0:()=>Xe,bD:()=>Bt,ez:()=>Ur,gd:()=>Qu,mk:()=>ja,n9:()=>ir,q:()=>E,sg:()=>_r,uU:()=>It,w_:()=>P});var w=T(4650);let i=null;function E(){return i}function S(I){i||(i=I)}class P{}const R=new w.OlP("DocumentToken");let F=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return function q(){return(0,w.LFG)(X)}()},providedIn:"platform"}),I})();const J=new w.OlP("Location Initialized");let X=(()=>{class I extends F{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("popstate",B,!1),()=>G.removeEventListener("popstate",B)}onHashChange(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("hashchange",B,!1),()=>G.removeEventListener("hashchange",B)}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(B){this.location.pathname=B}pushState(B,G,re){ne()?this._history.pushState(B,G,re):this.location.hash=re}replaceState(B,G,re){ne()?this._history.replaceState(B,G,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(R))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function le(){return new X((0,w.LFG)(R))}()},providedIn:"platform"}),I})();function ne(){return!!window.history.pushState}function ae(I,U){if(0==I.length)return U;if(0==U.length)return I;let B=0;return I.endsWith("/")&&B++,U.startsWith("/")&&B++,2==B?I+U.substring(1):1==B?I+U:I+"/"+U}function ie(I){const U=I.match(/#|\?|$/),B=U&&U.index||I.length;return I.slice(0,B-("/"===I[B-1]?1:0))+I.slice(B)}function ge(I){return I&&"?"!==I[0]?"?"+I:I}let Ae=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return(0,w.f3M)(Xe)},providedIn:"root"}),I})();const ve=new w.OlP("appBaseHref");let Xe=(()=>{class I extends Ae{constructor(B,G){var re,Me,_e;super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=null!==(re=null!==(Me=G??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Me?Me:null===(_e=(0,w.f3M)(R).location)||void 0===_e?void 0:_e.origin)&&void 0!==re?re:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return ae(this._baseHref,B)}path(B=!1){const G=this._platformLocation.pathname+ge(this._platformLocation.search),re=this._platformLocation.hash;return re&&B?`${G}${re}`:G}pushState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),Qe=(()=>{class I extends Ae{constructor(B,G){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=G&&(this._baseHref=G)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let G=this._platformLocation.hash;return null==G&&(G="#"),G.length>0?G.substring(1):G}prepareExternalUrl(B){const G=ae(this._baseHref,B);return G.length>0?"#"+G:G}pushState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac}),I})(),He=(()=>{class I{constructor(B){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const G=this._locationStrategy.getBaseHref();this._baseHref=ie(pt(G)),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){var B;null===(B=this._urlChangeSubscription)||void 0===B||B.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,G=""){return this.path()==this.normalize(B+ge(G))}normalize(B){return I.stripTrailingSlash(function Se(I,U){return I&&U.startsWith(I)?U.substring(I.length):U}(this._baseHref,pt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,G="",re=null){this._locationStrategy.pushState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}replaceState(B,G="",re=null){this._locationStrategy.replaceState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){var G,re;null===(G=(re=this._locationStrategy).historyGo)||void 0===G||G.call(re,B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(G=>{this._notifyUrlChangeListeners(G.url,G.state)})),()=>{const G=this._urlChangeListeners.indexOf(B);var re;this._urlChangeListeners.splice(G,1),0===this._urlChangeListeners.length&&(null===(re=this._urlChangeSubscription)||void 0===re||re.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",G){this._urlChangeListeners.forEach(re=>re(B,G))}subscribe(B,G,re){return this._subject.subscribe({next:B,error:G,complete:re})}}return I.normalizeQueryParams=ge,I.joinWithSlash=ae,I.stripTrailingSlash=ie,I.\u0275fac=function(B){return new(B||I)(w.LFG(Ae))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function Te(){return new He((0,w.LFG)(Ae))}()},providedIn:"root"}),I})();function pt(I){return I.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),ye=(()=>((ye=ye||{})[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup",ye))();function Ge(I,U){return qe((0,w.cg1)(I)[w.wAp.DateFormat],U)}function si(I,U){return qe((0,w.cg1)(I)[w.wAp.TimeFormat],U)}function jn(I,U){return qe((0,w.cg1)(I)[w.wAp.DateTimeFormat],U)}function Ci(I,U){const B=(0,w.cg1)(I),G=B[w.wAp.NumberSymbols][U];if(typeof G>"u"){if(U===ye.CurrencyDecimal)return B[w.wAp.NumberSymbols][ye.Decimal];if(U===ye.CurrencyGroup)return B[w.wAp.NumberSymbols][ye.Group]}return G}function kn(I){if(!I[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qe(I,U){for(let B=U;B>-1;B--)if(typeof I[B]<"u")return I[B];throw new Error("Locale data API: locale data undefined")}function st(I){const[U,B]=I.split(":");return{hours:+U,minutes:+B}}const oi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ei={},Le=/((?:[^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 se=(()=>((se=se||{})[se.Short=0]="Short",se[se.ShortGMT=1]="ShortGMT",se[se.Long=2]="Long",se[se.Extended=3]="Extended",se))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),ue=(()=>((ue=ue||{})[ue.DayPeriods=0]="DayPeriods",ue[ue.Days=1]="Days",ue[ue.Months=2]="Months",ue[ue.Eras=3]="Eras",ue))();function Re(I,U,B,G){let re=function an(I){if(Gi(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[re,Me=1,_e=1]=I.split("-").map(nt=>+nt);return bt(re,Me-1,_e)}const B=parseFloat(I);if(!isNaN(I-B))return new Date(B);let G;if(G=I.match(oi))return function Ue(I){const U=new Date(0);let B=0,G=0;const re=I[8]?U.setUTCFullYear:U.setFullYear,Me=I[8]?U.setUTCHours:U.setHours;I[9]&&(B=Number(I[9]+I[10]),G=Number(I[9]+I[11])),re.call(U,Number(I[1]),Number(I[2])-1,Number(I[3]));const _e=Number(I[4]||0)-B,nt=Number(I[5]||0)-G,xi=Number(I[6]||0),ii=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return Me.call(U,_e,nt,xi,ii),U}(G)}const U=new Date(I);if(!Gi(U))throw new Error(`Unable to convert "${I}" into a date`);return U}(I);U=Ot(B,U)||U;let nt,_e=[];for(;U;){if(nt=Le.exec(U),!nt){_e.push(U);break}{_e=_e.concat(nt.slice(1));const ci=_e.pop();if(!ci)break;U=ci}}let xi=re.getTimezoneOffset();G&&(xi=Ms(G,xi),re=function en(I,U,B){const G=B?-1:1,re=I.getTimezoneOffset();return function hi(I,U){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+U),I}(I,G*(Ms(U,re)-re))}(re,G,!0));let ii="";return _e.forEach(ci=>{const tt=function hd(I){if(ua[I])return ua[I];let U;switch(I){case"G":case"GG":case"GGG":U=St(ue.Eras,me.Abbreviated);break;case"GGGG":U=St(ue.Eras,me.Wide);break;case"GGGGG":U=St(ue.Eras,me.Narrow);break;case"y":U=Ht(te.FullYear,1,0,!1,!0);break;case"yy":U=Ht(te.FullYear,2,0,!0,!0);break;case"yyy":U=Ht(te.FullYear,3,0,!1,!0);break;case"yyyy":U=Ht(te.FullYear,4,0,!1,!0);break;case"Y":U=gr(1);break;case"YY":U=gr(2,!0);break;case"YYY":U=gr(3);break;case"YYYY":U=gr(4);break;case"M":case"L":U=Ht(te.Month,1,1);break;case"MM":case"LL":U=Ht(te.Month,2,1);break;case"MMM":U=St(ue.Months,me.Abbreviated);break;case"MMMM":U=St(ue.Months,me.Wide);break;case"MMMMM":U=St(ue.Months,me.Narrow);break;case"LLL":U=St(ue.Months,me.Abbreviated,he.Standalone);break;case"LLLL":U=St(ue.Months,me.Wide,he.Standalone);break;case"LLLLL":U=St(ue.Months,me.Narrow,he.Standalone);break;case"w":U=xr(1);break;case"ww":U=xr(2);break;case"W":U=xr(1,!0);break;case"d":U=Ht(te.Date,1);break;case"dd":U=Ht(te.Date,2);break;case"c":case"cc":U=Ht(te.Day,1);break;case"ccc":U=St(ue.Days,me.Abbreviated,he.Standalone);break;case"cccc":U=St(ue.Days,me.Wide,he.Standalone);break;case"ccccc":U=St(ue.Days,me.Narrow,he.Standalone);break;case"cccccc":U=St(ue.Days,me.Short,he.Standalone);break;case"E":case"EE":case"EEE":U=St(ue.Days,me.Abbreviated);break;case"EEEE":U=St(ue.Days,me.Wide);break;case"EEEEE":U=St(ue.Days,me.Narrow);break;case"EEEEEE":U=St(ue.Days,me.Short);break;case"a":case"aa":case"aaa":U=St(ue.DayPeriods,me.Abbreviated);break;case"aaaa":U=St(ue.DayPeriods,me.Wide);break;case"aaaaa":U=St(ue.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":U=St(ue.DayPeriods,me.Abbreviated,he.Standalone,!0);break;case"bbbb":U=St(ue.DayPeriods,me.Wide,he.Standalone,!0);break;case"bbbbb":U=St(ue.DayPeriods,me.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":U=St(ue.DayPeriods,me.Abbreviated,he.Format,!0);break;case"BBBB":U=St(ue.DayPeriods,me.Wide,he.Format,!0);break;case"BBBBB":U=St(ue.DayPeriods,me.Narrow,he.Format,!0);break;case"h":U=Ht(te.Hours,1,-12);break;case"hh":U=Ht(te.Hours,2,-12);break;case"H":U=Ht(te.Hours,1);break;case"HH":U=Ht(te.Hours,2);break;case"m":U=Ht(te.Minutes,1);break;case"mm":U=Ht(te.Minutes,2);break;case"s":U=Ht(te.Seconds,1);break;case"ss":U=Ht(te.Seconds,2);break;case"S":U=Ht(te.FractionalSeconds,1);break;case"SS":U=Ht(te.FractionalSeconds,2);break;case"SSS":U=Ht(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":U=vt(se.Short);break;case"ZZZZZ":U=vt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":U=vt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":U=vt(se.Long);break;default:return null}return ua[I]=U,U}(ci);ii+=tt?tt(re,B,xi):"''"===ci?"'":ci.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ii}function bt(I,U,B){const G=new Date(0);return G.setFullYear(I,U,B),G.setHours(0,0,0),G}function Ot(I,U){const B=function Ye(I){return(0,w.cg1)(I)[w.wAp.LocaleId]}(I);if(ei[B]=ei[B]||{},ei[B][U])return ei[B][U];let G="";switch(U){case"shortDate":G=Ge(I,Ce.Short);break;case"mediumDate":G=Ge(I,Ce.Medium);break;case"longDate":G=Ge(I,Ce.Long);break;case"fullDate":G=Ge(I,Ce.Full);break;case"shortTime":G=si(I,Ce.Short);break;case"mediumTime":G=si(I,Ce.Medium);break;case"longTime":G=si(I,Ce.Long);break;case"fullTime":G=si(I,Ce.Full);break;case"short":const re=Ot(I,"shortTime"),Me=Ot(I,"shortDate");G=it(jn(I,Ce.Short),[re,Me]);break;case"medium":const _e=Ot(I,"mediumTime"),nt=Ot(I,"mediumDate");G=it(jn(I,Ce.Medium),[_e,nt]);break;case"long":const xi=Ot(I,"longTime"),ii=Ot(I,"longDate");G=it(jn(I,Ce.Long),[xi,ii]);break;case"full":const ci=Ot(I,"fullTime"),tt=Ot(I,"fullDate");G=it(jn(I,Ce.Full),[ci,tt])}return G&&(ei[B][U]=G),G}function it(I,U){return U&&(I=I.replace(/\{([^}]+)}/g,function(B,G){return null!=U&&G in U?U[G]:B})),I}function Tt(I,U,B="-",G,re){let Me="";(I<0||re&&I<=0)&&(re?I=1-I:(I=-I,Me=B));let _e=String(I);for(;_e.length0||nt>-B)&&(nt+=B),I===te.Hours)0===nt&&-12===B&&(nt=12);else if(I===te.FractionalSeconds)return function ji(I,U){return Tt(I,3).substring(0,U)}(nt,U);const xi=Ci(_e,ye.MinusSign);return Tt(nt,U,xi,G,re)}}function St(I,U,B=he.Format,G=!1){return function(re,Me){return function Gt(I,U,B,G,re,Me){switch(B){case ue.Months:return function ai(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.MonthsFormat],G[w.wAp.MonthsStandalone]],U);return qe(Me,B)}(U,re,G)[I.getMonth()];case ue.Days:return function Ft(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DaysFormat],G[w.wAp.DaysStandalone]],U);return qe(Me,B)}(U,re,G)[I.getDay()];case ue.DayPeriods:const _e=I.getHours(),nt=I.getMinutes();if(Me){const ii=function de(I){const U=(0,w.cg1)(I);return kn(U),(U[w.wAp.ExtraData][2]||[]).map(G=>"string"==typeof G?st(G):[st(G[0]),st(G[1])])}(U),ci=function ke(I,U,B){const G=(0,w.cg1)(I);kn(G);const Me=qe([G[w.wAp.ExtraData][0],G[w.wAp.ExtraData][1]],U)||[];return qe(Me,B)||[]}(U,re,G),tt=ii.findIndex(sn=>{if(Array.isArray(sn)){const[gi,_n]=sn,Ee=_e>=gi.hours&&nt>=gi.minutes,yt=_e<_n.hours||_e===_n.hours&&nt<_n.minutes;if(gi.hours<_n.hours){if(Ee&&yt)return!0}else if(Ee||yt)return!0}else if(sn.hours===_e&&sn.minutes===nt)return!0;return!1});if(-1!==tt)return ci[tt]}return function mt(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DayPeriodsFormat],G[w.wAp.DayPeriodsStandalone]],U);return qe(Me,B)}(U,re,G)[_e<12?0:1];case ue.Eras:return function Ke(I,U){return qe((0,w.cg1)(I)[w.wAp.Eras],U)}(U,G)[I.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${B}`)}}(re,Me,I,U,B,G)}}function vt(I){return function(U,B,G){const re=-1*G,Me=Ci(B,ye.MinusSign),_e=re>0?Math.floor(re/60):Math.ceil(re/60);switch(I){case se.Short:return(re>=0?"+":"")+Tt(_e,2,Me)+Tt(Math.abs(re%60),2,Me);case se.ShortGMT:return"GMT"+(re>=0?"+":"")+Tt(_e,1,Me);case se.Long:return"GMT"+(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);case se.Extended:return 0===G?"Z":(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);default:throw new Error(`Unknown zone width "${I}"`)}}}function qr(I){return bt(I.getFullYear(),I.getMonth(),I.getDate()+(4-I.getDay()))}function xr(I,U=!1){return function(B,G){let re;if(U){const Me=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,_e=B.getDate();re=1+Math.floor((_e+Me)/7)}else{const Me=qr(B),_e=function Ui(I){const U=bt(I,0,1).getDay();return bt(I,0,1+(U<=4?4:11)-U)}(Me.getFullYear()),nt=Me.getTime()-_e.getTime();re=1+Math.round(nt/6048e5)}return Tt(re,I,Ci(G,ye.MinusSign))}}function gr(I,U=!1){return function(B,G){return Tt(qr(B).getFullYear(),I,Ci(G,ye.MinusSign),U)}}const ua={};function Ms(I,U){I=I.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(B)?U:B}function Gi(I){return I instanceof Date&&!isNaN(I.valueOf())}function nc(I,U){U=encodeURIComponent(U);for(const B of I.split(";")){const G=B.indexOf("="),[re,Me]=-1==G?[B,""]:[B.slice(0,G),B.slice(G+1)];if(re.trim()===U)return decodeURIComponent(Me)}return null}let ja=(()=>{class I{constructor(B,G,re,Me){this._iterableDiffers=B,this._keyValueDiffers=G,this._ngEl=re,this._renderer=Me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,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 B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachChangedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachRemovedItem(G=>{G.previousValue&&this._toggleClass(G.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem(G=>{if("string"!=typeof G.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(G.item)}`);this._toggleClass(G.item,!0)}),B.forEachRemovedItem(G=>this._toggleClass(G.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!0)):Object.keys(B).forEach(G=>this._toggleClass(G,!!B[G])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!1)):Object.keys(B).forEach(G=>this._toggleClass(G,!1)))}_toggleClass(B,G){(B=B.trim())&&B.split(/\s+/g).forEach(re=>{G?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})();class Pi{constructor(U,B,G,re){this.$implicit=U,this.ngForOf=B,this.index=G,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 _r=(()=>{class I{constructor(B,G,re){this._viewContainer=B,this._template=G,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const G=this._viewContainer;B.forEachOperation((re,Me,_e)=>{if(null==re.previousIndex)G.createEmbeddedView(this._template,new Pi(re.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)G.remove(null===Me?void 0:Me);else if(null!==Me){const nt=G.get(Me);G.move(nt,_e),tn(nt,re)}});for(let re=0,Me=G.length;re{tn(G.get(re.currentIndex),re)})}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function tn(I,U){I.context.$implicit=U.item}let In=(()=>{class I{constructor(B,G){this._viewContainer=B,this._context=new tr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=G}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){pa("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){pa("ngIfElse",B),this._elseTemplateRef=B,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(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class tr{constructor(){this.$implicit=null,this.ngIf=null}}function pa(I,U){if(U&&!U.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,w.AaK)(U)}'.`)}class Ya{constructor(U,B){this._viewContainerRef=U,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(U){U&&!this._created?this.create():!U&&this._created&&this.destroy()}}let Wa=(()=>{class I{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const G=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||G,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),G}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let G=0;G{class I{constructor(B,G,re){this.ngSwitch=re,re._addCase(),this._view=new Ya(B,G)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),I})(),Cs=(()=>{class I{constructor(B,G,re){re._addDefault(new Ya(B,G))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchDefault",""]],standalone:!0}),I})(),Yr=(()=>{class I{constructor(B,G,re){this._ngEl=B,this._differs=G,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,G){const[re,Me]=B.split("."),_e=-1===re.indexOf("-")?void 0:w.JOm.DashCase;null!=G?this._renderer.setStyle(this._ngEl.nativeElement,re,Me?`${G}${Me}`:G,_e):this._renderer.removeStyle(this._ngEl.nativeElement,re,_e)}_applyChanges(B){B.forEachRemovedItem(G=>this._setStyle(G.key,null)),B.forEachAddedItem(G=>this._setStyle(G.key,G.currentValue)),B.forEachChangedItem(G=>this._setStyle(G.key,G.currentValue))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})();function Sr(I,U){return new w.vHH(2100,!1)}class rf{createSubscription(U,B){return U.subscribe({next:B,error:G=>{throw G}})}dispose(U){U.unsubscribe()}}class af{createSubscription(U,B){return U.then(B,G=>{throw G})}dispose(U){}}const sf=new af,lf=new rf;let Ju=(()=>{class I{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,G=>this._updateLatestValue(B,G))}_selectStrategy(B){if((0,w.QGY)(B))return sf;if((0,w.F4k)(B))return lf;throw Sr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,G){B===this._obj&&(this._latestValue=G,this._ref.markForCheck())}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.sBO,16))},I.\u0275pipe=w.Yjl({name:"async",type:I,pure:!1,standalone:!0}),I})(),Qu=(()=>{class I{transform(B){if(null==B)return null;if("string"!=typeof B)throw Sr();return B.toUpperCase()}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275pipe=w.Yjl({name:"uppercase",type:I,pure:!0,standalone:!0}),I})();const df=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let It=(()=>{class I{constructor(B,G){this.locale=B,this.defaultTimezone=G}transform(B,G="mediumDate",re,Me){if(null==B||""===B||B!=B)return null;try{var _e;return Re(B,G,Me||this.locale,null!==(_e=re??this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(nt){throw Sr()}}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.soG,16),w.Y36(df,24))},I.\u0275pipe=w.Yjl({name:"date",type:I,pure:!0,standalone:!0}),I})(),$i=(()=>{class I{constructor(B){this.differs=B,this.keyValues=[],this.compareFn=vs}transform(B,G=vs){if(!B||!(B instanceof Map)&&"object"!=typeof B)return null;this.differ||(this.differ=this.differs.find(B).create());const re=this.differ.diff(B),Me=G!==this.compareFn;return re&&(this.keyValues=[],re.forEachItem(_e=>{this.keyValues.push(function De(I,U){return{key:I,value:U}}(_e.key,_e.currentValue))})),(re||Me)&&(this.keyValues.sort(G),this.compareFn=G),this.keyValues}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.aQg,16))},I.\u0275pipe=w.Yjl({name:"keyvalue",type:I,pure:!1,standalone:!0}),I})();function vs(I,U){const B=I.key,G=U.key;if(B===G)return 0;if(void 0===B)return 1;if(void 0===G)return-1;if(null===B)return 1;if(null===G)return-1;if("string"==typeof B&&"string"==typeof G)return B{class I{}return I.\u0275fac=function(B){return new(B||I)},I.\u0275mod=w.oAB({type:I}),I.\u0275inj=w.cJS({}),I})();const Bt="browser";function ac(I){return I===Bt}function At(I){return"server"===I}let ti=(()=>{class I{}return I.\u0275prov=(0,w.Yz7)({token:I,providedIn:"root",factory:()=>new Ti((0,w.LFG)(R),window)}),I})();class Ti{constructor(U,B){this.document=U,this.window=B,this.offset=()=>[0,0]}setOffset(U){this.offset=Array.isArray(U)?()=>U:U}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(U){this.supportsScrolling()&&this.window.scrollTo(U[0],U[1])}scrollToAnchor(U){if(!this.supportsScrolling())return;const B=function yr(I,U){const B=I.getElementById(U)||I.getElementsByName(U)[0];if(B)return B;if("function"==typeof I.createTreeWalker&&I.body&&(I.body.createShadowRoot||I.body.attachShadow)){const G=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let re=G.currentNode;for(;re;){const Me=re.shadowRoot;if(Me){const _e=Me.getElementById(U)||Me.querySelector(`[name="${U}"]`);if(_e)return _e}re=G.nextNode()}}return null}(this.document,U);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(U){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=U)}}scrollToElement(U){const B=U.getBoundingClientRect(),G=B.left+this.window.pageXOffset,re=B.top+this.window.pageYOffset,Me=this.offset();this.window.scrollTo(G-Me[0],re-Me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const U=Ar(this.window.history)||Ar(Object.getPrototypeOf(this.window.history));return!(!U||!U.writable&&!U.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ar(I){return Object.getOwnPropertyDescriptor(I,"scrollRestoration")}class li{}},529:(j,Y,T)=>{"use strict";T.d(Y,{JF:()=>rn,LE:()=>ve,TP:()=>Ft,WM:()=>J,Zn:()=>Ce,eN:()=>Ye,qT:()=>Qe});var w=T(6895),i=T(4650),E=T(9646),x=T(9751),S=T(4351),P=T(9300),R=T(4004);class F{}class q{}class J{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(te=>{const ue=te.indexOf(":");if(ue>0){const Re=te.slice(0,ue),bt=Re.toLowerCase(),Ot=te.slice(ue+1).trim();this.maybeSetNormalizedName(Re,bt),this.headers.has(bt)?this.headers.get(bt).push(Ot):this.headers.set(bt,[Ot])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(te=>{let ue=se[te];const Re=te.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Re,ue),this.maybeSetNormalizedName(te,Re))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const te=this.headers.get(se.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,te){return this.clone({name:se,value:te,op:"a"})}set(se,te){return this.clone({name:se,value:te,op:"s"})}delete(se,te){return this.clone({name:se,value:te,op:"d"})}maybeSetNormalizedName(se,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,se)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(te=>{this.headers.set(te,se.headers.get(te)),this.normalizedNames.set(te,se.normalizedNames.get(te))})}clone(se){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([se]),te}applyUpdate(se){const te=se.name.toLowerCase();switch(se.op){case"a":case"s":let ue=se.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(se.name,te);const Re=("a"===se.op?this.headers.get(te):void 0)||[];Re.push(...ue),this.headers.set(te,Re);break;case"d":const bt=se.value;if(bt){let Ot=this.headers.get(te);if(!Ot)return;Ot=Ot.filter(it=>-1===bt.indexOf(it)),0===Ot.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ot)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>se(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(se){return ge(se)}encodeValue(se){return ge(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const ae=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ge(Le){return encodeURIComponent(Le).replace(ae,(se,te)=>{var ue;return null!==(ue=ie[te])&&void 0!==ue?ue:se})}function Ae(Le){return`${Le}`}class ve{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new ne,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Le,se){const te=new Map;return Le.length>0&&Le.replace(/^\?/,"").split("&").forEach(Re=>{const bt=Re.indexOf("="),[Ot,it]=-1==bt?[se.decodeKey(Re),""]:[se.decodeKey(Re.slice(0,bt)),se.decodeValue(Re.slice(bt+1))],Tt=te.get(Ot)||[];Tt.push(it),te.set(Ot,Tt)}),te}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(te=>{const ue=se.fromObject[te],Re=Array.isArray(ue)?ue.map(Ae):[Ae(ue)];this.map.set(te,Re)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const te=this.map.get(se);return te?te[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,te){return this.clone({param:se,value:te,op:"a"})}appendAll(se){const te=[];return Object.keys(se).forEach(ue=>{const Re=se[ue];Array.isArray(Re)?Re.forEach(bt=>{te.push({param:ue,value:bt,op:"a"})}):te.push({param:ue,value:Re,op:"a"})}),this.clone(te)}set(se,te){return this.clone({param:se,value:te,op:"s"})}delete(se,te){return this.clone({param:se,value:te,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const te=this.encoder.encodeKey(se);return this.map.get(se).map(ue=>te+"="+this.encoder.encodeValue(ue)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const te=new ve({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(se),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const te=("a"===se.op?this.map.get(se.param):void 0)||[];te.push(Ae(se.value)),this.map.set(se.param,te);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let ue=this.map.get(se.param)||[];const Re=ue.indexOf(Ae(se.value));-1!==Re&&ue.splice(Re,1),ue.length>0?this.map.set(se.param,ue):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Qe{constructor(){this.map=new Map}set(se,te){return this.map.set(se,te),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Te(Le){return typeof ArrayBuffer<"u"&&Le instanceof ArrayBuffer}function Se(Le){return typeof Blob<"u"&&Le instanceof Blob}function pt(Le){return typeof FormData<"u"&&Le instanceof FormData}class Ve{constructor(se,te,ue,Re){let bt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function He(Le){switch(Le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Re?(this.body=void 0!==ue?ue:null,bt=Re):bt=ue,bt&&(this.reportProgress=!!bt.reportProgress,this.withCredentials=!!bt.withCredentials,bt.responseType&&(this.responseType=bt.responseType),bt.headers&&(this.headers=bt.headers),bt.context&&(this.context=bt.context),bt.params&&(this.params=bt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Qe),this.params){const Ot=this.params.toString();if(0===Ot.length)this.urlWithParams=te;else{const it=te.indexOf("?");this.urlWithParams=te+(-1===it?"?":itSt.set(Gt,se.setHeaders[Gt]),ji)),se.setParams&&(Ht=Object.keys(se.setParams).reduce((St,Gt)=>St.set(Gt,se.setParams[Gt]),Ht)),new Ve(ue,Re,Ot,{params:Ht,headers:ji,context:mr,reportProgress:Tt,responseType:bt,withCredentials:it})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class he{constructor(se,te=200,ue="OK"){this.headers=se.headers||new J,this.status=void 0!==se.status?se.status:te,this.statusText=se.statusText||ue,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class me extends he{constructor(se={}){super(se),this.type=Ne.ResponseHeader}clone(se={}){return new me({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Ce extends he{constructor(se={}){super(se),this.type=Ne.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new Ce({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ye extends he{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function We(Le,se){return{body:se,headers:Le.headers,context:Le.context,observe:Le.observe,params:Le.params,reportProgress:Le.reportProgress,responseType:Le.responseType,withCredentials:Le.withCredentials}}let Ye=(()=>{class Le{constructor(te){this.handler=te}request(te,ue,Re={}){let bt;if(te instanceof Ve)bt=te;else{let Tt,ji;Tt=Re.headers instanceof J?Re.headers:new J(Re.headers),Re.params&&(ji=Re.params instanceof ve?Re.params:new ve({fromObject:Re.params})),bt=new Ve(te,ue,void 0!==Re.body?Re.body:null,{headers:Tt,context:Re.context,params:ji,reportProgress:Re.reportProgress,responseType:Re.responseType||"json",withCredentials:Re.withCredentials})}const Ot=(0,E.of)(bt).pipe((0,S.b)(Tt=>this.handler.handle(Tt)));if(te instanceof Ve||"events"===Re.observe)return Ot;const it=Ot.pipe((0,P.h)(Tt=>Tt instanceof Ce));switch(Re.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tt.body}));case"blob":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof Blob))throw new Error("Response is not a Blob.");return Tt.body}));case"text":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&"string"!=typeof Tt.body)throw new Error("Response is not a string.");return Tt.body}));default:return it.pipe((0,R.U)(Tt=>Tt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Re.observe}}`)}}delete(te,ue={}){return this.request("DELETE",te,ue)}get(te,ue={}){return this.request("GET",te,ue)}head(te,ue={}){return this.request("HEAD",te,ue)}jsonp(te,ue){return this.request("JSONP",te,{params:(new ve).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ue={}){return this.request("OPTIONS",te,ue)}patch(te,ue,Re={}){return this.request("PATCH",te,We(Re,ue))}post(te,ue,Re={}){return this.request("POST",te,We(Re,ue))}put(te,ue,Re={}){return this.request("PUT",te,We(Re,ue))}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(F))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class mt{constructor(se,te){this.next=se,this.interceptor=te}handle(se){return this.interceptor.intercept(se,this.next)}}const Ft=new i.OlP("HTTP_INTERCEPTORS");let ai=(()=>{class Le{intercept(te,ue){return ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const mn=/^\)\]\}',?\n/;let ca=(()=>{class Le{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ue=>{const Re=this.xhrFactory.build();if(Re.open(te.method,te.urlWithParams),te.withCredentials&&(Re.withCredentials=!0),te.headers.forEach((Gt,vt)=>Re.setRequestHeader(Gt,vt.join(","))),te.headers.has("Accept")||Re.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const Gt=te.detectContentTypeHeader();null!==Gt&&Re.setRequestHeader("Content-Type",Gt)}if(te.responseType){const Gt=te.responseType.toLowerCase();Re.responseType="json"!==Gt?Gt:"text"}const bt=te.serializeBody();let Ot=null;const it=()=>{if(null!==Ot)return Ot;const Gt=Re.statusText||"OK",vt=new J(Re.getAllResponseHeaders()),er=function co(Le){return"responseURL"in Le&&Le.responseURL?Le.responseURL:/^X-Request-URL:/m.test(Le.getAllResponseHeaders())?Le.getResponseHeader("X-Request-URL"):null}(Re)||te.url;return Ot=new me({headers:vt,status:Re.status,statusText:Gt,url:er}),Ot},Tt=()=>{let{headers:Gt,status:vt,statusText:er,url:da}=it(),Ui=null;204!==vt&&(Ui=typeof Re.response>"u"?Re.responseText:Re.response),0===vt&&(vt=Ui?200:0);let qr=vt>=200&&vt<300;if("json"===te.responseType&&"string"==typeof Ui){const xr=Ui;Ui=Ui.replace(mn,"");try{Ui=""!==Ui?JSON.parse(Ui):null}catch(gr){Ui=xr,qr&&(qr=!1,Ui={error:gr,text:Ui})}}qr?(ue.next(new Ce({body:Ui,headers:Gt,status:vt,statusText:er,url:da||void 0})),ue.complete()):ue.error(new ye({error:Ui,headers:Gt,status:vt,statusText:er,url:da||void 0}))},ji=Gt=>{const{url:vt}=it(),er=new ye({error:Gt,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:vt||void 0});ue.error(er)};let Ht=!1;const mr=Gt=>{Ht||(ue.next(it()),Ht=!0);let vt={type:Ne.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),"text"===te.responseType&&!!Re.responseText&&(vt.partialText=Re.responseText),ue.next(vt)},St=Gt=>{let vt={type:Ne.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),ue.next(vt)};return Re.addEventListener("load",Tt),Re.addEventListener("error",ji),Re.addEventListener("timeout",ji),Re.addEventListener("abort",ji),te.reportProgress&&(Re.addEventListener("progress",mr),null!==bt&&Re.upload&&Re.upload.addEventListener("progress",St)),Re.send(bt),ue.next({type:Ne.Sent}),()=>{Re.removeEventListener("error",ji),Re.removeEventListener("abort",ji),Re.removeEventListener("load",Tt),Re.removeEventListener("timeout",ji),te.reportProgress&&(Re.removeEventListener("progress",mr),null!==bt&&Re.upload&&Re.upload.removeEventListener("progress",St)),Re.readyState!==Re.DONE&&Re.abort()}})}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.JF))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const fr=new i.OlP("XSRF_COOKIE_NAME"),kn=new i.OlP("XSRF_HEADER_NAME");class de{}let ke=(()=>{class Le{constructor(te,ue,Re){this.doc=te,this.platform=ue,this.cookieName=Re,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,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(fr))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),be=(()=>{class Le{constructor(te,ue){this.tokenService=te,this.headerName=ue}intercept(te,ue){const Re=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Re.startsWith("http://")||Re.startsWith("https://"))return ue.handle(te);const bt=this.tokenService.getToken();return null!==bt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,bt)})),ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(de),i.LFG(kn))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),qe=(()=>{class Le{constructor(te,ue){this.backend=te,this.injector=ue,this.chain=null}handle(te){if(null===this.chain){const ue=this.injector.get(Ft,[]);this.chain=ue.reduceRight((Re,bt)=>new mt(Re,bt),this.backend)}return this.chain.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(q),i.LFG(i.zs3))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Jt=(()=>{class Le{static disable(){return{ngModule:Le,providers:[{provide:be,useClass:ai}]}}static withOptions(te={}){return{ngModule:Le,providers:[te.cookieName?{provide:fr,useValue:te.cookieName}:[],te.headerName?{provide:kn,useValue:te.headerName}:[]]}}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[be,{provide:Ft,useExisting:be,multi:!0},{provide:de,useClass:ke},{provide:fr,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Le})(),rn=(()=>{class Le{}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[Ye,{provide:F,useClass:qe},ca,{provide:q,useExisting:ca}],imports:[Jt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Le})()},4650:(j,Y,T)=>{"use strict";T.d(Y,{$8M:()=>xd,$Z:()=>Xf,AFp:()=>Bu,ALo:()=>gb,AaK:()=>F,AsE:()=>dp,BQk:()=>hu,CHM:()=>$a,CRH:()=>Eb,CZH:()=>Iu,CqO:()=>K1,D6c:()=>WS,DdM:()=>ub,Dn7:()=>Ab,EJc:()=>Nu,EiD:()=>Og,EpF:()=>P0,F$t:()=>r_,F4k:()=>Q1,FYo:()=>jg,FiY:()=>wl,G48:()=>HS,Gf:()=>Sb,GfV:()=>Fy,GkF:()=>Rl,Gpc:()=>X,Gre:()=>fu,Hsn:()=>a_,Ikx:()=>ed,JOm:()=>Ns,JVY:()=>yy,Jf7:()=>Xy,KtG:()=>Gr,L6k:()=>My,LAX:()=>Sg,LFG:()=>Wi,LSH:()=>Ch,Lbi:()=>Fm,Lck:()=>Yw,MAs:()=>Ie,MGl:()=>cp,MMx:()=>_m,NdJ:()=>k0,O4$:()=>ol,OlP:()=>Si,Oqu:()=>q0,PXZ:()=>hn,Q2q:()=>lp,Q6J:()=>Rt,QGY:()=>pu,QP$:()=>Wl,QbO:()=>zm,Qsj:()=>Vy,R0b:()=>jr,RDi:()=>O,Rgc:()=>Eu,SBq:()=>Lh,Sil:()=>TS,Suo:()=>fC,TTD:()=>vs,TgZ:()=>H0,Tol:()=>Mn,Udp:()=>Xc,VKq:()=>hb,WFA:()=>R0,WLB:()=>pb,XFs:()=>be,Xpm:()=>er,Xts:()=>Vf,Y36:()=>Bc,YKP:()=>ab,YNc:()=>uu,Yjl:()=>Ms,Yz7:()=>si,ZZ4:()=>aA,_Bn:()=>rb,_UZ:()=>X1,_Vd:()=>va,_c5:()=>qS,_uU:()=>$s,aQg:()=>sA,c2e:()=>_i,cJS:()=>Ci,cg1:()=>P_,d8E:()=>tm,dDg:()=>Xb,dqk:()=>ue,eBb:()=>Of,eFA:()=>VC,ekj:()=>h_,eoX:()=>IC,f3M:()=>mh,g9A:()=>Vm,h0i:()=>jl,hGG:()=>YS,hYB:()=>I0,hij:()=>Ji,iGM:()=>xb,ifc:()=>te,ip1:()=>Rp,kL8:()=>Mw,kcU:()=>th,lG2:()=>hd,lcZ:()=>wm,lqb:()=>Bs,lri:()=>Cn,mCW:()=>Vd,n5z:()=>Cd,n_E:()=>Wo,oAB:()=>xr,oJD:()=>Ig,oxw:()=>n_,pB0:()=>If,q3G:()=>ln,qLn:()=>Ph,qOj:()=>w0,qZA:()=>kl,qzn:()=>Pc,rWj:()=>Jb,s9C:()=>O0,sBO:()=>ZC,sIi:()=>ap,s_b:()=>xp,soG:()=>lt,tb:()=>Ip,tp0:()=>Co,uIk:()=>op,vHH:()=>ie,vpe:()=>cs,wAp:()=>Mt,xDo:()=>up,xi3:()=>bb,xp6:()=>Zf,ynx:()=>L0,z2F:()=>Wm,z3N:()=>is,zSh:()=>qd,zs3:()=>rs});var w=T(7579),i=T(727),E=T(9751),x=T(6451),S=T(3099);function P(p){for(let m in p)if(p[m]===P)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 F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).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 q(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function X(p){return p.__forward_ref__=X,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===X}class ie extends Error{constructor(m,g){super(function ge(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function Ae(p){return"string"==typeof p?p:null==p?"":String(p)}function Te(p,m){throw new ie(-201,!1)}function ai(p,m){null==p&&function Ke(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function si(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Ci(p){return{providers:p.providers||[],imports:p.imports||[]}}function En(p){return ui(p,fr)||ui(p,de)}function ui(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(ke))?p[kn]:null}const fr=P({\u0275prov:P}),kn=P({\u0275inj:P}),de=P({ngInjectableDef:P}),ke=P({ngInjectorDef:P});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let qe;function ot(p){const m=qe;return qe=p,m}function Jt(p,m,g){const _=En(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&be.Optional?null:void 0!==m?m:void Te(F(p))}function oi(p){return{toString:p}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ot={},it=[],Tt=P({\u0275cmp:P}),ji=P({\u0275dir:P}),Ht=P({\u0275pipe:P}),mr=P({\u0275mod:P}),St=P({\u0275fac:P}),Gt=P({__NG_ELEMENT_ID__:P});let vt=0;function er(p){return oi(()=>{const g=!0===p.standalone,_={},y={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:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||it,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+vt++,styles:p.styles||it,_:null,setInput:null,schemas:p.schemas||null,tView:null},C=p.dependencies,D=p.features;return y.inputs=ua(p.inputs,_),y.outputs=ua(p.outputs),D&&D.forEach(L=>L(y)),y.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ui).filter(qr):null,y.pipeDefs=C?()=>("function"==typeof C?C():C).map(an).filter(qr):null,y})}function Ui(p){return hi(p)||en(p)}function qr(p){return null!==p}function xr(p){return oi(()=>({type:p.type,bootstrap:p.bootstrap||it,declarations:p.declarations||it,imports:p.imports||it,exports:p.exports||it,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ua(p,m){if(null==p)return Ot;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],C=y;Array.isArray(y)&&(C=y[1],y=y[0]),g[y]=_,m&&(m[y]=C)}return g}const hd=er;function Ms(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function hi(p){return p[Tt]||null}function en(p){return p[ji]||null}function an(p){return p[Ht]||null}function Ue(p,m){const g=p[mr]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function In(p){return Array.isArray(p)&&"object"==typeof p[1]}function tr(p){return Array.isArray(p)&&!0===p[1]}function pa(p){return 0!=(8&p.flags)}function Ya(p){return 2==(2&p.flags)}function Wa(p){return 1==(1&p.flags)}function ir(p){return null!==p.template}function Cs(p){return 0!=(256&p[2])}function De(p,m){return p.hasOwnProperty(St)?p[St]:null}class $i{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function vs(){return fa}function fa(p){return p.type.prototype.ngOnChanges&&(p.setInput=Bn),Ga}function Ga(){const p=nr(this),m=p?.current;if(m){const g=p.previous;if(g===Ot)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Bn(p,m,g,_){const y=nr(p)||function il(p,m){return p[Wr]=m}(p,{previous:Ot,current:null}),C=y.current||(y.current={}),D=y.previous,L=this.declaredInputs[g],k=D[L];C[L]=new $i(k&&k.currentValue,m,D===Ot),p[_]=m}vs.ngInherit=!0;const Wr="__ngSimpleChanges__";function nr(p){return p[Wr]||null}function Nt(p){for(;Array.isArray(p);)p=p[0];return p}function ti(p,m){return Nt(m[p])}function Ti(p,m){return Nt(m[p.index])}function yr(p,m){return p.data[m]}function mi(p,m){return p[m]}function li(p,m){const g=m[p];return In(g)?g:g[0]}function I(p){return 4==(4&p[2])}function U(p){return 64==(64&p[2])}function G(p,m){return null==m?null:p[m]}function re(p){p[18]=0}function Me(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 _e={lFrame:Za(null),bindingsEnabled:!0};function sn(){return _e.bindingsEnabled}function Ee(){return _e.lFrame.lView}function yt(){return _e.lFrame.tView}function $a(p){return _e.lFrame.contextLView=p,p[8]}function Gr(p){return _e.lFrame.contextLView=null,p}function Ii(){let p=mo();for(;null!==p&&64===p.type;)p=p.parent;return p}function mo(){return _e.lFrame.currentTNode}function Bi(p,m){const g=_e.lFrame;g.currentTNode=p,g.isParent=m}function nl(){return _e.lFrame.isParent}function rl(){_e.lFrame.isParent=!1}function Nn(){const p=_e.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function ma(){return _e.lFrame.bindingIndex}function xs(){return _e.lFrame.bindingIndex++}function rr(p){const m=_e.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function al(p,m){const g=_e.lFrame;g.bindingIndex=g.bindingRootIndex=p,ga(m)}function ga(p){_e.lFrame.currentDirectiveIndex=p}function md(p){const m=_e.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function gd(){return _e.lFrame.currentQueryIndex}function _a(p){_e.lFrame.currentQueryIndex=p}function hf(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function sl(p,m,g){if(g&be.SkipSelf){let y=m,C=p;for(;!(y=y.parent,null!==y||g&be.Host||(y=hf(C),null===y||(C=C[15],10&y.type))););if(null===y)return!1;m=y,p=C}const _=_e.lFrame=go();return _.currentTNode=m,_.lView=p,!0}function Ss(p){const m=go(),g=p[1];_e.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function go(){const p=_e.lFrame,m=null===p?null:p.child;return null===m?Za(p):m}function Za(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 cc(){const p=_e.lFrame;return _e.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const dc=cc;function Es(){const p=cc();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 Hn(){return _e.lFrame.selectedIndex}function $r(p){_e.lFrame.selectedIndex=p}function qi(){const p=_e.lFrame;return yr(p.tView,p.selectedIndex)}function ol(){_e.lFrame.currentNamespace="svg"}function th(){!function ff(){_e.lFrame.currentNamespace=null}()}function _o(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const C=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:L,ngAfterViewInit:k,ngAfterViewChecked:V,ngOnDestroy:W}=C;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),L&&((p.contentHooks||(p.contentHooks=[])).push(g,L),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,L)),k&&(p.viewHooks||(p.viewHooks=[])).push(-g,k),V&&((p.viewHooks||(p.viewHooks=[])).push(g,V),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,V)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Ds(p,m,g){pc(p,m,3,g)}function hc(p,m,g,_){(3&p[2])===g&&pc(p,m,g,_)}function Zr(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function pc(p,m,g,_){const C=_??-1,D=m.length-1;let L=0;for(let k=void 0!==_?65535&p[18]:0;k=_)break}else m[k]<0&&(p[18]+=65536),(L>11>16&&(3&p[2])===m){p[2]+=2048;try{C.call(L)}finally{}}}else try{C.call(L)}finally{}}class Er{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function fc(p,m,g){let _=0;for(;_m){D=C-1;break}}}for(;C>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let _c=!0;function dl(p){const m=_c;return _c=p,m}let Ac=0;const Dr={};function ul(p,m){const g=yd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ad(_.data,p),Ad(m,null),Ad(_.blueprint,null));const y=yc(p,m),C=p.injectorIndex;if(bo(y)){const D=Ao(y),L=yo(y,m),k=L[1].data;for(let V=0;V<8;V++)m[C+V]=L[D+V]|k[D+V]}return m[C+8]=y,C}function Ad(p,m){p.push(0,0,0,0,0,0,0,0,m)}function yd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function yc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=Td(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function Mc(p,m,g){!function _f(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Gt)&&(_=g[Gt]),null==_&&(_=g[Gt]=Ac++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lh:m}(g);if("function"==typeof C){if(!sl(m,p,_))return _&be.Host?Md(y,0,_):wd(m,g,_,y);try{const D=C(_);if(null!=D||_&be.Optional)return D;Te()}finally{dc()}}else if("number"==typeof C){let D=null,L=yd(p,m),k=-1,V=_&be.Host?m[16][6]:null;for((-1===L||_&be.SkipSelf)&&(k=-1===L?yc(p,m):m[L+8],-1!==k&&Xr(_,!1)?(D=m[1],L=Ao(k),m=yo(k,m)):L=-1);-1!==L;){const W=m[1];if(ml(C,L,W.data)){const ee=pl(L,m,g,D,_,V);if(ee!==Dr)return ee}k=m[L+8],-1!==k&&Xr(_,m[1].data[L+8]===V)&&ml(C,L,m)?(D=W,L=Ao(k),m=yo(k,m)):L=-1}}return y}function pl(p,m,g,_,y,C){const D=m[1],L=D.data[p+8],W=fl(L,D,g,null==_?Ya(L)&&_c:_!=D&&0!=(3&L.type),y&be.Host&&C===L);return null!==W?Hr(m,D,W,L):Dr}function fl(p,m,g,_,y){const C=p.providerIndexes,D=m.data,L=1048575&C,k=p.directiveStart,W=C>>20,oe=y?L+W:p.directiveEnd;for(let fe=_?L:L+W;fe=k&&xe.type===g)return fe}if(y){const fe=D[k];if(fe&&ir(fe)&&fe.type===g)return k}return null}function Hr(p,m,g,_){let y=p[g];const C=m.data;if(function ih(p){return p instanceof Er}(y)){const D=y;D.resolving&&function Xe(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function ve(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():Ae(p)}(C[g]));const L=dl(D.canSeeViewProviders);D.resolving=!0;const k=D.injectImpl?ot(D.injectImpl):null;sl(p,_,be.Default);try{y=p[g]=D.factory(void 0,C,p,_),m.firstCreatePass&&g>=_.directiveStart&&function gf(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:C}=m.type.prototype;if(_){const D=fa(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),C&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,C),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,C))}(g,C[g],m)}finally{null!==k&&ot(k),dl(L),D.resolving=!1,dc()}}return y}function ml(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[St]||vd(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const C=y[St]||vd(y);if(C&&C!==g)return C;y=Object.getPrototypeOf(y)}return C=>new C})}function vd(p){return le(p)?()=>{const m=vd(ne(p));return m&&m()}:De(p)}function Td(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function xd(p){return function oh(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 C=g[y];if(sh(C))break;if(0===C)y+=2;else if("number"==typeof C)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(C===m)return g[y+1];y+=2}}}return null}(Ii(),p)}const Ls="__parameters__";function Qa(p,m,g){return oi(()=>{const _=function gl(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...C){if(this instanceof y)return _.apply(this,C),this;const D=new y(...C);return L.annotation=D,L;function L(k,V,W){const ee=k.hasOwnProperty(Ls)?k[Ls]:Object.defineProperty(k,Ls,{value:[]})[Ls];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(D),k}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class Si{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=si({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?es(g,m):m(g))}function dh(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function wo(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function bl(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Pd(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 kd(p,m){const g=Ps(p,m);if(g>=0)return p[1|g]}function Ps(p,m){return function uh(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const C=_+(y-_>>1),D=p[C<m?y=C:_=C+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $}())||void 0===m?void 0:m.createHTML(p))||p}function Ir(p){var m;return(null===(m=function Or(){if(void 0===on&&(on=null,ue.trustedTypes))try{on=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return on}())||void 0===m?void 0:m.createHTML(p))||p}class Tl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _y extends Tl{getTypeName(){return"HTML"}}class by extends Tl{getTypeName(){return"Style"}}class Tg extends Tl{getTypeName(){return"Script"}}class Rf extends Tl{getTypeName(){return"URL"}}class xg extends Tl{getTypeName(){return"ResourceURL"}}function is(p){return p instanceof Tl?p.changingThisBreaksApplicationSecurity:p}function Pc(p,m){const g=function Ay(p){return p instanceof Tl&&p.getTypeName()||null}(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 yy(p){return new _y(p)}function My(p){return new by(p)}function Of(p){return new Tg(p)}function Sg(p){return new Rf(p)}function If(p){return new xg(p)}class wy{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class Cy{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=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Vd(m.trim())).join(", ")),this.buf.push(" ",D,'="',Rg(k),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Mh.hasOwnProperty(g)&&!Dg.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Rg(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 Pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kg=/([^\#-~ |!])/g;function Rg(p){return p.replace(/&/g,"&").replace(Pg,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(kg,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function Og(p,m){let g=null;try{wh=wh||function bh(p){const m=new Cy(p);return function Ah(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new wy(m):m}(p);let _=m?String(m):"";g=wh.getInertBodyElement(_);let y=5,C=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=C,C=g.innerHTML,g=wh.getInertBodyElement(_)}while(_!==C);return we((new RT).sanitizeChildren(kc(g)||g))}finally{if(g){const _=kc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function kc(p){return"content"in p&&function Ey(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ln=(()=>((ln=ln||{})[ln.NONE=0]="NONE",ln[ln.HTML=1]="HTML",ln[ln.STYLE=2]="STYLE",ln[ln.SCRIPT=3]="SCRIPT",ln[ln.URL=4]="URL",ln[ln.RESOURCE_URL=5]="RESOURCE_URL",ln))();function Ig(p){const m=Fd();return m?Ir(m.sanitize(ln.HTML,p)||""):Pc(p,"HTML")?Ir(is(p)):Og(function z(){return void 0!==H?H:typeof document<"u"?document:void 0}(),Ae(p))}function Ch(p){const m=Fd();return m?m.sanitize(ln.URL,p)||"":Pc(p,"URL")?is(p):Vd(Ae(p))}function Fd(){const p=Ee();return p&&p[12]}const Vf=new Si("ENVIRONMENT_INITIALIZER"),ky=new Si("INJECTOR",-1),vh=new Si("INJECTOR_DEF_TYPES");class Ni{get(m,g=yl){if(g===yl){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function IT(...p){return{\u0275providers:xl(0,p)}}function xl(p,...m){const g=[],_=new Set;let y;return es(m,C=>{const D=C;Th(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&Ff(y,g),g}function Ff(p,m){for(let g=0;g{m.push(C)})}}function Th(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,C=ca(p);const D=!C&&hi(p);if(C||D){if(D&&!D.standalone)return!1;y=p}else{const k=p.ngModule;if(C=ca(k),!C)return!1;y=k}const L=_.has(y);if(D){if(L)return!1;if(_.add(y),D.dependencies){const k="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const V of k)Th(V,m,g,_)}}else{if(!C)return!1;{if(null!=C.imports&&!L){let V;_.add(y);try{es(C.imports,W=>{Th(W,m,g,_)&&(V||(V=[]),V.push(W))})}finally{}void 0!==V&&Ff(V,m)}if(!L){const V=De(y)||(()=>new y);m.push({provide:y,useFactory:V,deps:it},{provide:vh,useValue:y,multi:!0},{provide:Vf,useValue:()=>Wi(y),multi:!0})}const k=C.providers;null==k||L||es(k,W=>{m.push(W)})}}return y!==p&&void 0!==p.providers}const Ry=P({provide:String,useValue:P});function Kr(p){return null!==p&&"object"==typeof p&&Ry in p}function Ho(p){return"function"==typeof p}const qd=new Si("Set Injector scope."),Sh={},Eh={};let Yd;function or(){return void 0===Yd&&(Yd=new Ni),Yd}class Bs{}class Oy extends Bs{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ns(m,D=>this.processProvider(D)),this.records.set(ky,Rc(void 0,this)),y.has("environment")&&this.records.set(Bs,Rc(void 0,this));const C=this.records.get(qd);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get(vh.multi,it,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=kr(this),_=ot(void 0);try{return m()}finally{kr(g),ot(_)}}get(m,g=yl,_=be.Default){this.assertNotDestroyed();const y=kr(this),C=ot(void 0);try{if(!(_&be.SkipSelf)){let L=this.records.get(m);if(void 0===L){const k=function NT(p){return"function"==typeof p||"object"==typeof p&&p instanceof Si}(m)&&En(m);L=k&&this.injectableDefInScope(k)?Rc(Wd(m),Sh):null,this.records.set(m,L)}if(null!=L)return this.hydrate(m,L)}return(_&be.Self?or():this.parent).get(m,g=_&be.Optional&&g===yl?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[wr]=D[wr]||[]).unshift(F(m)),y)throw D;return function Ef(p,m,g,_){const y=p[wr];throw m[xc]&&y.unshift(m[xc]),p.message=function Df(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let C=[];for(let D in m)if(m.hasOwnProperty(D)){let L=m[D];C.push(D+":"+("string"==typeof L?JSON.stringify(L):F(L)))}y=`{${C.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Tf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[wr]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{ot(C),kr(y)}}resolveInjectorInitializers(){const m=kr(this),g=ot(void 0);try{const _=this.get(Vf.multi,it,be.Self);for(const y of _)y()}finally{kr(m),ot(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=Ho(m=ne(m))?m:ne(m&&m.provide);const _=function BT(p){return Kr(p)?Rc(void 0,p.useValue):Rc(Ca(p),Sh)}(m);if(Ho(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Rc(void 0,Sh,!0),y.factory=()=>Rr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===Sh&&(g.value=Eh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function By(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Wd(p){const m=En(p),g=null!==m?m.factory:De(p);if(null!==g)return g;if(p instanceof Si)throw new ie(204,!1);if(p instanceof Function)return function zf(p){const m=p.length;if(m>0)throw bl(m,"?"),new ie(204,!1);const g=function mn(p){const m=p&&(p[fr]||p[de]);if(m){const g=function co(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 ie(204,!1)}function Ca(p,m,g){let _;if(Ho(p)){const y=ne(p);return De(y)||Wd(y)}if(Kr(p))_=()=>ne(p.useValue);else if(function Do(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Rr(p.deps||[]));else if(function zd(p){return!(!p||!p.useExisting)}(p))_=()=>Wi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function Iy(p){return!!p.deps}(p))return De(y)||Wd(y);_=()=>new y(...Rr(p.deps))}return _}function Rc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function VT(p){return!!p.\u0275providers}function ns(p,m){for(const g of p)Array.isArray(g)?ns(g,m):VT(g)?ns(g.\u0275providers,m):m(g)}class Ny{}class Dh{resolveComponentFactory(m){throw function FT(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let va=(()=>{class p{}return p.NULL=new Dh,p})();function Hh(){return ea(Ii(),Ee())}function ea(p,m){return new Lh(Ti(p,m))}let Lh=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Hh,p})();function jT(p){return p instanceof Lh?p.nativeElement:p}class jg{}let Vy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function qT(){const p=Ee(),g=li(Ii().index,p);return(In(g)?g:p)[11]}(),p})(),YT=(()=>{class p{}return p.\u0275prov=si({token:p,providedIn:"root",factory:()=>null}),p})();class Fy{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const WT=new Fy("14.1.2"),qg={};function Zg(p){return p.ngOriginalError}class Ph{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zg(m);for(;g&&Zg(g);)g=Zg(g);return g||null}}const Jg=new Map;let rx=0;const Kg="__ngContext__";function lr(p,m){In(m)?(p[Kg]=m[20],function sx(p){Jg.set(p[20],p)}(m)):p[Kg]=m}function kh(p){const m=p[Kg];return"number"==typeof m?function Xg(p){return Jg.get(p)||null}(m):m||null}function e1(p){const m=kh(p);return m?In(m)?m:m.lView:null}const fx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function Xy(p){return p.ownerDocument.defaultView}function Po(p){return p instanceof Function?p():p}var Ns=(()=>((Ns=Ns||{})[Ns.Important=1]="Important",Ns[Ns.DashCase=2]="DashCase",Ns))();function n1(p,m){return undefined(p,m)}function Rh(p){const m=p[3];return tr(m)?m[3]:m}function r1(p){return tM(p[13])}function a1(p){return tM(p[4])}function tM(p){for(;null!==p&&!tr(p);)p=p[4];return p}function Gd(p,m,g,_,y){if(null!=_){let C,D=!1;tr(_)?C=_:In(_)&&(D=!0,_=_[0]);const L=Nt(_);0===p&&null!==g?null==y?Zi(m,g,L):je(m,g,L,y||null,!0):1===p&&null!==g?je(m,g,L,y||null,!0):2===p?function u1(p,m,g){const _=Vi(p,m);_&&function Zd(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,L,D):3===p&&m.destroyNode(L),null!=C&&function oM(p,m,g,_,y){const C=g[7];C!==Nt(g)&&Gd(m,p,_,C,y);for(let L=10;L0&&(p[g-1][4]=_[4]);const C=wo(p,10+m);!function Cx(p,m){Oc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=C[19];null!==D&&D.detachView(C[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $d(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Oc(p,m,g,3,null,null),function xx(p){let m=p[13];if(!m)return Oh(p[1],p);for(;m;){let g=null;if(In(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)In(m)&&Oh(m[1],m),m=m[3];null===m&&(m=p),In(m)&&Oh(m[1],m),g=m&&m[4]}m=g}}(m)}}function Oh(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function nM(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=V]():_[y=-V].unsubscribe(),C+=2}else{const D=_[y=g[C+1]];g[C].call(D)}if(null!==_){for(let C=y+1;C<_.length;C++)(0,_[C])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&tr(m[3])){g!==m[3]&&o1(g,m);const _=m[19];null!==_&&_.detachView(p)}!function Uy(p){Jg.delete(p[20])}(m)}}function l1(p,m,g){return function rt(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===te.None||y===te.Emulated)return null}return Ti(_,g)}(p,m.parent,g)}function je(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Zi(p,m,g){p.appendChild(m,g)}function qf(p,m,g,_,y){null!==_?je(p,m,g,_,y):Zi(p,m,g)}function Vi(p,m){return p.parentNode(m)}function Yf(p,m,g){return Bh(p,m,g)}let Bh=function c1(p,m,g){return 40&p.type?Ti(p,g):null};function Jd(p,m,g,_){const y=l1(p,_,m),C=m[11],L=Yf(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let k=0;kC?"":y[ee+1].toLowerCase();const fe=8&_?oe:null;if(fe&&-1!==Gf(fe,V,0)||2&_&&V!==oe){if(ta(_))return!1;D=!0}}}}else{if(!D&&!ta(_)&&!ta(k))return!1;if(D&&ta(k))continue;D=!1,_=k|1&_}}return ta(_)||D}function ta(p){return 0==(1&p)}function zh(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let C=!1;for(;y-1)for(g++;g0?'="'+L+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!ta(D)&&(m+=g1(C,y),y=""),_=D,C=C||!ta(_);g++}return""!==y&&(m+=g1(C,y)),m}const Vt={};function Zf(p){_1(yt(),Ee(),Hn()+p,!1)}function _1(p,m,g,_){if(!_)if(3==(3&m[2])){const C=p.preOrderCheckHooks;null!==C&&Ds(m,C,g)}else{const C=p.preOrderHooks;null!==C&&hc(m,C,0,g)}$r(g)}function AM(p,m=null,g=null,_){const y=eu(p,m,g,_);return y.resolveInjectorInitializers(),y}function eu(p,m=null,g=null,_,y=new Set){const C=[g||it,IT(p)];return _=_||("object"==typeof p?void 0:F(p)),new Oy(C,m||or(),_||null,y)}let rs=(()=>{class p{static create(g,_){if(Array.isArray(g))return AM({name:""},_,g,"");{var y;const C=null!==(y=g.name)&&void 0!==y?y:"";return AM({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=yl,p.NULL=new Ni,p.\u0275prov=si({token:p,providedIn:"any",factory:()=>Wi(ky)}),p.__NG_ELEMENT_ID__=-1,p})();function Bc(p,m=be.Default){const g=Ee();return null===g?Wi(p,m):hl(Ii(),g,ne(p),m)}function Xf(){throw new Error("invalid")}function Uh(p,m){return p<<17|m<<2}function Ta(p){return p>>17&32767}function x1(p){return 2|p}function Ro(p){return(131068&p)>>2}function S1(p,m){return-131069&p|m<<2}function as(p){return 1|p}function o0(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&_1(p,m,22,!1),g(_,y)}finally{$r(C)}}function P1(p,m,g){if(pa(m)){const y=m.directiveEnd;for(let C=m.directiveStart;C0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(L)!=k&&L.push(k),L.push(_,y,D)}}function UM(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function N1(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function $M(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&F1(g)}}function F1(p){for(let _=r1(p);null!==_;_=a1(_))for(let y=10;y<_.length;y++){const C=_[y];if(U(C))if(512&C[2]){const D=C[1];Lt(D,C,D.template,C[8])}else C[5]>0&&F1(C)}const g=p[1].components;if(null!==g)for(let _=0;_0&&F1(y)}}function JM(p,m){const g=li(m,p),_=g[1];(function jc(p,m){for(let g=m.length;gPromise.resolve(null))();function KM(p){return p[7]||(p[7]=[])}function La(p){return p.cleanup||(p.cleanup=[])}function El(p,m,g){return(null===p||ir(p))&&(g=function dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function ew(p,m){const g=p[9],_=g?g.get(Ph,null):null;_&&_.handleError(m)}function q1(p,m,g,_,y){for(let C=0;C-1&&(An(m,_),wo(g,_))}this._attachedToViewContainer=!1}$d(this._lView[1],this._lView)}onDestroy(m){O1(this._lView[1],this._lView,null,m)}markForCheck(){g0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function z1(p,m,g){const _=m[10];_.begin&&_.begin();try{Lt(p,m,p.template,g)}catch(y){throw ew(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tx(p,m){Oc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class A0 extends ip{constructor(m){super(m),this._view=m}detectChanges(){QM(this._view)}checkNoChanges(){}get context(){return null}}class qc extends va{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=hi(m);return new np(g,this.ngModule)}}function Dl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class y0{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,qg,_);return y!==qg||g===qg?y:this.parentInjector.get(m,g,_)}}class np extends Ny{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function fM(p){return p.map(pM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Dl(this.componentDef.inputs)}get outputs(){return Dl(this.componentDef.outputs)}create(m,g,_,y){var C;let D=(y=y||this.ngModule)instanceof Bs?y:null===(C=y)||void 0===C?void 0:C.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const L=D?new y0(m,D):m,k=L.get(jg,null);if(null===k)throw new ie(407,!1);const V=L.get(YT,null),W=k.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",oe=_?function R1(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(W,_,this.componentDef.encapsulation):s1(k.createRenderer(null,this.componentDef),ee,function tw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(ee)),fe=this.componentDef.onPush?288:272,xe=function Fo(p,m){return{components:[],scheduler:p||fx,clean:Ux,playerHandler:m||null,flags:0}}(),ze=c0(0,null,null,1,0,null,null,null,null,null),Ze=Zh(null,ze,xe,fe,null,null,k,W,V,L,null);let at,wt;Ss(Ze);try{const Oe=function rp(p,m,g,_,y,C){const D=g[1];g[22]=p;const k=su(D,22,2,"#host",null),V=k.mergedAttrs=m.hostAttrs;null!==V&&(_0(k,V,!0),null!==p&&(fc(y,p,V),null!==k.classes&&h1(y,p,k.classes),null!==k.styles&&Xd(y,p,k.styles)));const W=_.createRenderer(p,m),ee=Zh(g,k1(m),null,m.onPush?32:16,g[22],k,_,W,C||null,null,null);return D.firstCreatePass&&(Mc(ul(k,g),D,m.type),N1(D,k),V1(k,g.length,1)),Bo(g,ee),g[22]=ee}(oe,this.componentDef,Ze,k,W);if(oe)if(_)fc(W,oe,["ng-version",WT.full]);else{const{attrs:xt,classes:qt}=function mM(p){const m=[],g=[];let _=1,y=2;for(;_0&&h1(W,oe,qt.join(" "))}if(wt=yr(ze,22),void 0!==g){const xt=wt.projection=[];for(let qt=0;qt=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=mc(y.hostAttrs,g=mc(g,y.hostAttrs))}}(_)}function C0(p){return p===Ot?{}:p===it?[]:p}function Y1(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function v0(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,C)=>{m(_,y,C),g(_,y,C)}:m}function W1(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let T0=null;function Yc(){if(!T0){const p=ue.Symbol;if(p&&p.iterator)T0=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gL(Nt(qt[_.index])):_.index;let xt=null;if(!L&&k&&(xt=function ow(p,m,g,_){const y=p.cleanup;if(null!=y)for(let C=0;Ck?L[k]:null}"string"==typeof D&&(C+=2)}return null}(p,m,y,_.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=C,xt.__ngLastListenerFn__=C,fe=!1;else{C=i_(_,m,ee,C,!1);const qt=g.listen(at,y,C);oe.push(C,qt),W&&W.push(y,Oe,wt,wt+1)}}else C=i_(_,m,ee,C,!1);const xe=_.outputs;let ze;if(fe&&null!==xe&&(ze=xe[y])){const Ze=ze.length;if(Ze)for(let at=0;at0;)m=m[15],p--;return m}(p,_e.lFrame.contextLView))[8]}(p)}function lw(p,m){let g=null;const _=function Qd(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 Hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function c_(p){return p.substring(Hi.key,Hi.keyEnd)}function V0(p,m){const g=Hi.textEnd;return g===m?-1:(m=Hi.keyEnd=function pw(p,m,g){for(;m32;)m++;return m}(p,Hi.key=m,g),Ol(p,m,g))}function Ol(p,m,g){for(;m=0;g=V0(m,g))ar(p,c_(m),!0)}function zr(p,m,g,_){const y=Ee(),C=yt(),D=rr(2);C.firstUpdatePass&&m_(C,p,D,_),m!==Vt&&Un(y,D,m)&&dn(C,C.data[Hn()],y,y[11],p,y[D+1]=function A_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(is(p)))),p}(m,g),_,D)}function cr(p,m,g,_){const y=yt(),C=rr(2);y.firstUpdatePass&&m_(y,null,C,_);const D=Ee();if(g!==Vt&&Un(D,C,g)){const L=y.data[Hn()];if(wn(L,_)&&!f_(y,C)){let k=_?L.classesWithoutHost:L.stylesWithoutHost;null!==k&&(g=q(k,g||"")),Us(y,L,D,g,_)}else!function gw(p,m,g,_,y,C,D,L){y===Vt&&(y=it);let k=0,V=0,W=0=p.expandoStartIndex}function m_(p,m,g,_){const y=p.data;if(null===y[g+1]){const C=y[Hn()],D=f_(p,g);wn(C,_)&&null===m&&!D&&(m=!1),m=function z0(p,m,g,_){const y=md(p);let C=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=Qc(g=j0(null,p,m,g,_),m.attrs,_),C=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=j0(y,p,m,g,_),null===C){let k=function g_(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Ro(_))return p[Ta(_)]}(p,m,_);void 0!==k&&Array.isArray(k)&&(k=j0(null,p,m,k[1],_),k=Qc(k,m.attrs,_),function Il(p,m,g,_){p[Ta(g?m.classBindings:m.styleBindings)]=_}(p,m,_,k))}else C=function Qn(p,m,g){let _;const y=m.directiveEnd;for(let C=1+m.directiveStylingLast;C0)&&(V=!0)}else W=g;if(y)if(0!==k){const oe=Ta(p[L+1]);p[_+1]=Uh(oe,L),0!==oe&&(p[oe+1]=S1(p[oe+1],_)),p[L+1]=function gt(p,m){return 131071&p|m<<17}(p[L+1],_)}else p[_+1]=Uh(L,0),0!==L&&(p[L+1]=S1(p[L+1],_)),L=_;else p[_+1]=Uh(k,0),0===L?L=_:p[k+1]=S1(p[k+1],_),k=_;V&&(p[_+1]=x1(p[_+1])),N0(p,W,_,!0),N0(p,W,_,!1),function dw(p,m,g,_,y){const C=y?p.residualClasses:p.residualStyles;null!=C&&"string"==typeof m&&Ps(C,m)>=0&&(g[_+1]=as(g[_+1]))}(m,W,p,_,C),D=Uh(L,k),C?m.classBindings=D:m.styleBindings=D}(y,C,m,g,D,_)}}function j0(p,m,g,_,y){let C=null;const D=g.directiveEnd;let L=g.directiveStylingLast;for(-1===L?L=g.directiveStart:L++;L0;){const k=p[y],V=Array.isArray(k),W=V?k[1]:k,ee=null===W;let oe=g[y+1];oe===Vt&&(oe=ee?it:void 0);let fe=ee?kd(oe,_):W===_?oe:void 0;if(V&&!ka(fe)&&(fe=kd(k,_)),ka(fe)&&(L=fe,D))return L;const xe=p[y+1];y=D?Ta(xe):Ro(xe)}if(null!==m){let k=C?m.residualClasses:m.residualStyles;null!=k&&(L=kd(k,_))}return L}function ka(p){return void 0!==p}function wn(p,m){return 0!=(p.flags&(m?16:32))}function $s(p,m=""){const g=Ee(),_=yt(),y=p+22,C=_.firstCreatePass?su(_,y,1,m,null):_.data[y],D=g[y]=function jf(p,m){return p.createText(m)}(g[11],m);Jd(_,g,D,C),Bi(C,!1)}function q0(p){return Ji("",p,""),q0}function Ji(p,m,g){const _=Ee(),y=cu(_,p,m,g);return y!==Vt&&Vo(_,Hn(),y),Ji}function dp(p,m,g,_,y){const C=Ee(),D=du(C,p,m,g,_,y);return D!==Vt&&Vo(C,Hn(),D),dp}function up(p,m,g,_,y,C,D,L,k,V,W){const ee=Ee(),oe=Uc(ee,p,m,g,_,y,C,D,L,k,V,W);return oe!==Vt&&Vo(ee,Hn(),oe),up}function fu(p,m,g){cr(ar,Gs,cu(Ee(),p,m,g),!0)}function ed(p,m,g){const _=Ee();return Un(_,xs(),m)&&Nr(yt(),qi(),_,p,m,_[11],g,!0),ed}function tm(p,m,g){const _=Ee();if(Un(_,xs(),m)){const C=yt(),D=qi();Nr(C,D,_,p,m,El(md(C.data),D,_),g,!0)}return tm}const Zs=void 0;var iS=["en",[["a","p"],["AM","PM"],Zs],[["AM","PM"],Zs,Zs],[["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"]],Zs,[["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"]],Zs,[["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}",Zs,"{1} 'at' {0}",Zs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function yw(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let mu={};function P_(p){const m=function Cw(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=ww(m);if(g)return g;const _=m.split("-")[0];if(g=ww(_),g)return g;if("en"===_)return iS;throw new ie(701,!1)}function Mw(p){return P_(p)[Mt.PluralCase]}function ww(p){return p in mu||(mu[p]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[p]),mu[p]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const qo="en-US";let im=qo;function eb(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let C=0;C>20;if(Ho(p)||!p.multi){const fe=new Er(k,y,Bc),xe=Mp(L,m,y?W:W+oe,ee);-1===xe?(Mc(ul(V,D),C,L),Tu(C,p,m.length),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(fe),D.push(fe)):(g[xe]=fe,D[xe]=fe)}else{const fe=Mp(L,m,W+oe,ee),xe=Mp(L,m,W,W+oe),ze=fe>=0&&g[fe],Ze=xe>=0&&g[xe];if(y&&!Ze||!y&&!ze){Mc(ul(V,D),C,L);const at=function nb(p,m,g,_,y){const C=new Er(p,g,Bc);return C.multi=[],C.index=m,C.componentProviders=0,tb(C,y,_&&!g),C}(y?zl:ib,g.length,y,_,k);!y&&Ze&&(g[xe].providerFactory=at),Tu(C,p,m.length,0),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(at),D.push(at)}else Tu(C,p,fe>-1?fe:xe,tb(g[y?xe:fe],k,!y&&_));!y&&_&&Ze&&g[xe].componentProviders++}}}function Tu(p,m,g,_){const y=Ho(m),C=function jd(p){return!!p.useClass}(m);if(y||C){const k=(C?ne(m.useClass):m).prototype.ngOnDestroy;if(k){const V=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=V.indexOf(g);-1===W?V.push(g,[_,k]):V[W+1].push(_,k)}else V.push(g,k)}}}function tb(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Mp(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function ib(p,m,g,_){return mm(this.multi,[])}function zl(p,m,g,_){const y=this.multi;let C;if(this.providerFactory){const D=this.providerFactory.componentProviders,L=Hr(g,g[1],this.providerFactory.index,_);C=L.slice(0,D),mm(y,C);for(let k=D;k{g.providersResolver=(_,y)=>function qw(p,m,g){const _=yt();if(_.firstCreatePass){const y=ir(p);eb(g,_.data,_.blueprint,y,!0),eb(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class jl{}class ab{}function Yw(p,m){return new xu(p,m??null)}class xu extends jl{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qc(this);const _=Ue(m);this._bootstrapComponents=Po(_.bootstrap),this._r3Injector=eu(m,g,[{provide:jl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class gm extends ab{constructor(m){super(),this.moduleType=m}create(m){return new xu(this.moduleType,m)}}class sb extends jl{constructor(m,g,_){super(),this.componentFactoryResolver=new qc(this),this.instance=null;const y=new Oy([...m,{provide:jl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],g||or(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function _m(p,m,g=null){return new sb(p,m,g).injector}function ub(p,m,g){const _=Nn()+p,y=Ee();return y[_]===Vt?Vr(y,_,g?m.call(g):m()):function Ys(p,m){return p[m]}(y,_)}function hb(p,m,g,_){return nC(Ee(),Nn(),p,m,g,_)}function pb(p,m,g,_,y){return ym(Ee(),Nn(),p,m,g,_,y)}function vp(p,m){const g=p[m];return g===Vt?void 0:g}function nC(p,m,g,_,y,C){const D=m+g;return Un(p,D,y)?Vr(p,D+1,C?_.call(C,y):_(y)):vp(p,D+1)}function ym(p,m,g,_,y,C,D){const L=m+g;return Hl(p,L,y,C)?Vr(p,L+2,D?_.call(D,y,C):_(y,C)):vp(p,L+2)}function td(p,m,g,_,y,C,D,L){const k=m+g;return function sp(p,m,g,_,y){const C=Hl(p,m,g,_);return Un(p,m+2,y)||C}(p,k,y,C,D)?Vr(p,k+3,L?_.call(L,y,C,D):_(y,C,D)):vp(p,k+3)}function gb(p,m){const g=yt();let _;const y=p+22;g.firstCreatePass?(_=function _b(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 C=_.factory||(_.factory=De(_.type)),D=ot(Bc);try{const L=dl(!1),k=C();return dl(L),function J1(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Ee(),y,k),k}finally{ot(D)}}function wm(p,m,g){const _=p+22,y=Ee(),C=mi(y,_);return Su(y,_)?nC(y,Nn(),m,C.transform,g,C):C.transform(g)}function bb(p,m,g,_){const y=p+22,C=Ee(),D=mi(C,y);return Su(C,y)?ym(C,Nn(),m,D.transform,g,_,D):D.transform(g,_)}function Ab(p,m,g,_,y){const C=p+22,D=Ee(),L=mi(D,C);return Su(D,C)?td(D,Nn(),m,L.transform,g,_,y,L):L.transform(g,_,y)}function Su(p,m){return p[1].data[m].pure}function yb(p){return m=>{setTimeout(p,void 0,m)}}const cs=class sC extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,C=g||(()=>null),D=_;if(m&&"object"==typeof m){var L,k,V;const ee=m;y=null===(L=ee.next)||void 0===L?void 0:L.bind(ee),C=null===(k=ee.error)||void 0===k?void 0:k.bind(ee),D=null===(V=ee.complete)||void 0===V?void 0:V.bind(ee)}this.__isAsync&&(C=yb(C),y&&(y=yb(y)),D&&(D=yb(D)));const W=super.subscribe({next:y,error:C,complete:D});return m instanceof i.w0&&m.add(W),W}};function Tp(){return this._results[Yc()]()}class Wo{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=Yc(),_=Wo.prototype;_[g]||(_[g]=Tp)}get changes(){return this._changes||(this._changes=new cs)}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=Mr(m);(this._changesDetected=!function Mg(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Mb,p})();const oC=Eu,fS=class extends oC{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Zh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),Jh(_,y,m),new ip(y)}};function Mb(){return Du(Ii(),Ee())}function Du(p,m){return 4&p.type?new fS(m,p,ea(p,m)):null}let xp=(()=>{class p{}return p.__NG_ELEMENT_ID__=mS,p})();function mS(){return Tb(Ii(),Ee())}const wb=xp,Cb=class extends wb{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return ea(this._hostTNode,this._hostLView)}get injector(){return new Lr(this._hostTNode,this._hostLView)}get parentInjector(){const m=yc(this._hostTNode,this._hostLView);if(bo(m)){const g=yo(m,this._hostLView),_=Ao(m);return new Lr(g[1].data[_+8],g)}return new Lr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=vb(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,C;"number"==typeof _?y=_:null!=_&&(y=_.index,C=_.injector);const D=m.createEmbeddedView(g||{},C);return this.insert(D,y),D}createComponent(m,g,_,y,C){const D=m&&!function Mo(p){return"function"==typeof p}(m);let L;if(D)L=g;else{const ee=g||{};L=ee.index,_=ee.injector,y=ee.projectableNodes,C=ee.environmentInjector||ee.ngModuleRef}const k=D?m:new np(hi(m)),V=_||this.parentInjector;if(!C&&null==k.ngModule){const oe=(D?V:this.parentInjector).get(Bs,null);oe&&(C=oe)}const W=k.create(V,y,void 0,C);return this.insert(W.hostView,L),W}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return tr(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const ee=_[3],oe=new Cb(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const C=this._adjustIndex(g),D=this._lContainer;!function Sx(p,m,g,_){const y=10+_,C=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[L/2]);else{const V=C[L+1],W=m[-k];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Gl,this.reject=Gl,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{C.subscribe({complete:L,error:k})});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)(Wi(Rp,8))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Bu=new Si("AppId",{providedIn:"root",factory:function Bm(){return`${Op()}${Op()}${Op()}`}});function Op(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new Si("Platform Initializer"),Fm=new Si("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ip=new Si("appBootstrapListener"),zm=new Si("AnimationModuleType");let _i=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lt=new Si("LocaleId",{providedIn:"root",factory:()=>mh(lt,be.Optional|be.SkipSelf)||function wS(){return typeof $localize<"u"&&$localize.locale||qo}()}),Nu=new Si("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Bp{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let TS=(()=>{class p{compileModuleSync(g){return new gm(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),C=Po(Ue(g).declarations).reduce((D,L)=>{const k=hi(L);return k&&D.push(new np(k)),D},[]);return new Bp(_,C)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const PC=(()=>Promise.resolve(0))();function Np(p){typeof Zone>"u"?PC.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class jr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cs(!1),this.onMicrotaskEmpty=new cs(!1),this.onStable=new cs(!1),this.onError=new cs(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new C("Angular"))}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 jm(){let p=ue.requestAnimationFrame,m=ue.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Vu(p){const m=()=>{!function RC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ue,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,qm(p),p.isCheckStableRunning=!0,Go(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),qm(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,C,D,L)=>{try{return Zb(p),g.invokeTask(y,C,D,L)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||p.shouldCoalesceRunChangeDetection)&&m(),zi(p)}},onInvoke:(g,_,y,C,D,L,k)=>{try{return Zb(p),g.invoke(y,C,D,L,k)}finally{p.shouldCoalesceRunChangeDetection&&m(),zi(p)}},onHasTask:(g,_,y,C)=>{g.hasTask(y,C),_===y&&("microTask"==C.change?(p._hasPendingMicrotasks=C.microTask,qm(p),Go(p)):"macroTask"==C.change&&(p.hasPendingMacrotasks=C.macroTask))},onHandleError:(g,_,y,C)=>(g.handleError(y,C),p.runOutsideAngular(()=>p.onError.emit(C)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jr.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(jr.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const C=this._inner,D=C.scheduleEventTask("NgZoneEvent: "+y,m,kC,Gl,Gl);try{return C.runTask(D,g,_)}finally{C.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const kC={};function Go(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 qm(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Zb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function zi(p){p._nesting--,Go(p)}class OC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cs,this.onMicrotaskEmpty=new cs,this.onStable=new cs,this.onError=new cs}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,_)}}const Cn=new Si(""),Jb=new Si("");let Ym,Xb=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ym||(function BC(p){Ym=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jr.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 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 C=-1;_&&_>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==C),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:C,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}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(IC),Wi(Jb))},p.\u0275prov=si({token:p,factory:p.\u0275fac}),p})(),IC=(()=>{class p{constructor(){this._applications=new Map}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){var y,C;return null!==(y=null===(C=Ym)||void 0===C?void 0:C.findTestabilityInTree(this,g,_))&&void 0!==y?y:null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),$o=null;const Qb=new Si("AllowMultipleToken"),Oi=new Si("PlatformDestroyListeners");class hn{constructor(m,g){this.name=m,this.token=g}}function VC(p,m,g=[]){const _=`Platform: ${m}`,y=new Si(_);return(C=[])=>{let D=eA();if(!D||D.injector.get(Qb,!1)){const L=[...g,...C,{provide:y,useValue:!0}];p?p(L):function NC(p){if($o&&!$o.get(Qb,!1))throw new ie(400,!1);$o=p;const m=p.get(zC);(function Kb(p){const m=p.get(Vm,null);m&&m.forEach(g=>g())})(p)}(function FC(p=[],m){return rs.create({name:m,providers:[{provide:qd,useValue:"platform"},{provide:Oi,useValue:new Set([()=>$o=null])},...p]})}(L,_))}return function ES(p){const m=eA();if(!m)throw new ie(401,!1);return m}()}}function eA(){var p,m;return null!==(p=null===(m=$o)||void 0===m?void 0:m.get(zC))&&void 0!==p?p:null}let zC=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function DS(p,m){let g;return g="noop"===p?new OC:("zone.js"===p?void 0:p)||new jr(m),g}(_?.ngZone,function jC(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),C=[{provide:jr,useValue:y}];return y.run(()=>{const D=rs.create({providers:C,parent:this.injector,name:g.moduleType.name}),L=g.create(D),k=L.injector.get(Ph,null);if(!k)throw new ie(402,!1);return y.runOutsideAngular(()=>{const V=y.onError.subscribe({next:W=>{k.handleError(W)}});L.onDestroy(()=>{Fp(this._modules,L),V.unsubscribe()})}),function qC(p,m,g){try{const _=g();return pu(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(k,y,()=>{const V=L.injector.get(Iu);return V.runInitializers(),V.donePromise.then(()=>(function fp(p){ai(p,"Expected localeId to be defined"),"string"==typeof p&&(im=p.toLowerCase().replace(/_/g,"-"))}(L.injector.get(lt,qo)||qo),this._moduleDoBootstrap(L),L))})})}bootstrapModule(g,_=[]){const y=YC({},_);return function SS(p,m,g){const _=new gm(g);return Promise.resolve(_)}(0,0,g).then(C=>this.bootstrapModuleFactory(C,y))}_moduleDoBootstrap(g){const _=g.injector.get(Wm);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Oi,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Wi(rs))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function YC(p,m){return Array.isArray(m)?m.reduce(YC,p):{...p,...m}}let Wm=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new E.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),D=new E.y(L=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{jr.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{jr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{k.unsubscribe(),V.unsubscribe()}});this.isStable=(0,x.T)(C,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Ny;if(!this._injector.get(Iu).done)throw!y&&Wl(g),new ie(405,false);let D;D=y?g:this._injector.get(va).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const L=function vn(p){return p.isBoundToModule}(D)?void 0:this._injector.get(jl),V=D.create(rs.NULL,[],_||D.selector,L),W=V.location.nativeElement,ee=V.injector.get(Cn,null);return ee?.registerApplication(W),V.onDestroy(()=>{this.detachView(V.hostView),Fp(this.components,V),ee?.unregisterApplication(W)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new ie(101,!1);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;Fp(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Ip,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Fp(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(Bs),Wi(Ph))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Fp(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let UC=!0;function HS(){UC=!1}let ZC=(()=>{class p{}return p.__NG_ELEMENT_ID__=JC,p})();function JC(p){return function kS(p,m,g){if(Ya(p)&&!g){const _=li(p.index,m);return new ip(_,_)}return 47&p.type?new ip(m[16],m):null}(Ii(),Ee(),16==(16&p))}class ev{constructor(){}supports(m){return ap(m)}create(m){return new VS(m)}}const nA=(p,m)=>m;class VS{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||nA}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,C=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,L),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,L,D,y)),Object.is(g.item,L)||this._addIdentityChange(g,L)):(g=this._mismatch(g,L,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 C;return null===m?C=this._itTail:(C=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,C,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,C,y)):m=this._addAfter(new tv(g,_),C,y),m}_verifyReinsertion(m,g,_,y){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==C?m=this._reinsertAfter(C,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,C=m._nextRemoved;return null===y?this._removalsHead=C:y._nextRemoved=C,null===C?this._removalsTail=y:C._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 iv),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 iv),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 tv{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 FS{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 iv{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new FS,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 rA(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 C=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,C)}}),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 C=y._prev,D=y._next;return C&&(C._next=D),D&&(D._prev=C),y._next=null,y._prev=null,y}const _=new rv(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 rv{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 av(){return new aA([new ev])}let aA=(()=>{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,_||av()),deps:[[p,new Co,new wl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:av}),p})();function sv(){return new sA([new Gm])}let sA=(()=>{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,_||sv()),deps:[[p,new Co,new wl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:sv}),p})();const qS=VC(null,"core",[]);let YS=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Wi(Wm))},p.\u0275mod=xr({type:p}),p.\u0275inj=Ci({}),p})();function WS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class j extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return j.\u0275fac=function(){let Y;return function(w){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(j)))(w||j)}}(),j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class j{constructor(){this.data=new Map}getItem(T){return this.data.get(T)}removeItem(T){this.data.delete(T)}setItem(T,w){this.data.set(T,w)}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class ReceivedTokens{}class OAuthEvent{constructor(Y){this.type=Y}}class OAuthSuccessEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthInfoEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthErrorEvent extends OAuthEvent{constructor(Y,T,w=null){super(Y),this.reason=T,this.params=w}}function b64DecodeUnicode(j){const Y=j.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(Y).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(j){return btoa(j).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(Y){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=T=>{location.href=T},Y&&Object.assign(this,Y)}}class WebHttpUrlEncodingCodec{encodeKey(Y){return encodeURIComponent(Y)}encodeValue(Y){return encodeURIComponent(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(Y){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=T.inferHashAlgorithm(Y.idTokenHeader),i=yield T.calcHash(Y.accessToken,w),x=base64UrlEncode(i.substr(0,i.length/2)),S=Y.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(Y){let T=Y.alg;if(!T.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+T);return"sha-"+T.substr(2)}}let UrlHelperService=(()=>{class j{getHashFragmentParams(T){let w=T||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(T){const w={};let i,E,x,S,P,R,F;if(null===T)return w;i=T.split("&");for(let q=0;q>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&j.charCodeAt(++w)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);j=E}else{if("object"!==i)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR)}j.length>64&&(j=new Sha256(Y,!0).update(j).array());var R=[],F=[];for(w=0;w<64;++w){var q=j[w]||0;R[w]=92^q,F[w]=54^q}Sha256.call(this,Y,T),this.update(F),this.oKeyPad=R,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(j){if(!this.finalized){var Y,T=typeof j;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR);Y=!0}for(var w,E,i=0,x=j.length,S=this.blocks;i>2]|=j[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 j=this.blocks,Y=this.lastByteIndex;j[16]=this.block,j[Y>>2]|=EXTRA[3&Y],this.block=j[16],Y>=56&&(this.hashed||this.hash(),j[0]=this.block,j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0),j[14]=this.hBytes<<3|this.bytes>>>29,j[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var R,X,ae,ie,ge,Ae,j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(R=16;R<64;++R)P[R]=P[R-16]+(((X=P[R-15])>>>7|X<<25)^(X>>>18|X<<14)^X>>>3)+P[R-7]+(((X=P[R-2])>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)<<0;for(Ae=Y&T,R=0;R<64;R+=4)this.first?(this.is224?(ae=300032,S=(X=P[0]-1413257819)-150054599<<0,w=X+24177077<<0):(ae=704751109,S=(X=P[0]-210244248)-1521486534<<0,w=X+143694565<<0),this.first=!1):(S=w+(X=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&x)+K[R]+P[R])<<0,w=X+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((ae=j&Y)^j&T^Ae))<<0),x=T+(X=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+P[R+1])<<0,T=X+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&j)^w&Y^ae))<<0,E=Y+(X=E+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[R+2]+P[R+2])<<0,Y=X+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ge=T&w)^T&j^ie))<<0,i=j+(X=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&x^~E&S)+K[R+3]+P[R+3])<<0,j=X+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((Ae=Y&T)^Y&w^ge))<<0;this.h0=this.h0+j<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=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]+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[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[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[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];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 j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=[j>>24&255,j>>16&255,j>>8&255,255&j,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,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,x>>24&255,x>>16&255,x>>8&255,255&x];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 j=new ArrayBuffer(this.is224?28:32),Y=new DataView(j);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),j},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var j=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(j),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(j){if("string"!=typeof j)throw new TypeError("expected string");var Y,T=j,w=new Uint8Array(T.length);for(Y=0;Y{class j{calcHash(T,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(T)))})()}toHashString2(T){let w="";for(let i of T)w+=String.fromCharCode(i);return w}toHashString(T){const w=new Uint8Array(T);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})(),OAuthService=(()=>{class j extends AuthConfig{constructor(T,w,i,E,x,S,P,R,F,q){super(),this.ngZone=T,this.http=w,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=R,this.dateTimeService=q,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ne){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ne)}if(this.checkLocalStorageAccessable()){var J,X;const ne=null===(J=window)||void 0===J||null===(X=J.navigator)||void 0===X?void 0:X.userAgent;(ne?.includes("MSIE ")||ne?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const T="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(T,T),localStorage.removeItem(T),0))}catch{return!1}}configure(T){Object.assign(this,new AuthConfig,T),this.config=Object.assign({},new AuthConfig,T),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)(T=>"token_received"===T.type)).subscribe(T=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(T={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?E=!0:"logout"===x.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==w||"any"===w||x.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{E&&this.refreshInternal(T,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(T,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(T,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(T=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(T))}loadDiscoveryDocumentAndLogin(T=null){return this.loadDiscoveryDocumentAndTryLogin(T=T||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof T.state?T.state:""),!1))}debug(...T){this.showDebugInformation&&this.logger.debug.apply(this.logger,T)}validateUrlFromDiscoveryDocument(T){const w=[],i=this.validateUrlForHttps(T),E=this.validateUrlAgainstIssuer(T);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(T){if(!T)return!0;const w=T.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(T,w){if(!T)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(T))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(T){return!this.strictDiscoveryDocumentValidation||!T||T.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const T=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,T);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 T=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,T);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(T,w){const i=this.dateTimeService.now();return Math.max(0,(w-T)*this.timeoutFactor-(i-T))}setStorage(T){this._storage=T,this.configChanged()}loadDiscoveryDocument(T=null){return new Promise((w,i)=>{T||((T=this.issuer||"").endsWith("/")||(T+="/"),T+=".well-known/openid-configuration"),this.validateUrlForHttps(T)?this.http.get(T).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(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:x});this.eventsSubject.next(P),w(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},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((T,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),T(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):T(null)})}validateDiscoveryDocument(T){let w;return this.skipIssuerCheck||T.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(T.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!T.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: "+T.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(T,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((T,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 x=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.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");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T(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(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:T,password:w},i)}fetchTokenUsingGrant(T,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",T).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}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 x of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(x,this.customQueryParams[x]);for(const x of Object.keys(w))E=E.set(x,w[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,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(R=>{this.storeIdToken(R),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(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((T,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 x=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+x)}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 x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.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=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),w(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=T=>{const w=this.processMessageEventMessage(T);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(T={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(T.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,T).then(q=>{x.setAttribute("src",q),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>q instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>"token_received"===q.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,R,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(q=>{if(q instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===q.type||(q=new OAuthErrorEvent("silent_refresh_error",q)),this.eventsSubject.next(q),q;return"token_received"===q.type&&(q=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(q)),q})).toPromise()}initImplicitFlowInPopup(T){return this.initLoginFlowInPopup(T)}initLoginFlowInPopup(T){return T=T||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let P,S=null;T.windowRef?T.windowRef&&!T.windowRef.closed&&(S=T.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(T));const R=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{q(),i(!0)},le=>{q(),E(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(q(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const q=()=>{window.clearInterval(P),window.removeEventListener("storage",X),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",X),R(le)):console.log("false event firing")},X=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),R(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",X)}))}calculatePopupFeatures(T){const w=T.height||470,i=T.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(T){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!T||!T.data||"string"!=typeof T.data)return;const i=T.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=T=>{const w=T.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(T.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",T)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",T)},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(T=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(T=>{this.debug("token refresh after session change worked")}).catch(T=>{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)(T=>"silently_refreshed"===T.type||"silent_refresh_timeout"===T.type||"silent_refresh_error"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(T=>{"silently_refreshed"!==T.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 T=this.document.getElementById(this.sessionCheckIFrameName);T&&this.document.body.removeChild(T);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 T=this.document.getElementById(this.sessionCheckIFrameName);T||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),T.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(T="",w="",i="",E=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let R;R=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(T=T?F+S.config.nonceStateSeparator+encodeURIComponent(T):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const q=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let X=P.loginUrl+q+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(T)+"&redirect_uri="+encodeURIComponent(R)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),X+="&code_challenge="+ne,X+="&code_challenge_method=S256"}w&&(X+="&login_hint="+encodeURIComponent(w)),P.resource&&(X+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(X+="&nonce="+encodeURIComponent(F)),E&&(X+="&prompt=none");for(const ne of Object.keys(x))X+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))X+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return X})()}initImplicitFlowInternal(T="",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(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(T="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(T,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(T,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(T){const w=this;if(T.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};T.onTokenReceived(i)}}storeAccessTokenResponse(T,w,i,E,x){if(this._storage.setItem("access_token",T),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),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(T=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(T).then(w=>!0):this.tryLoginImplicitFlow(T)}parseQueryString(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):{}}tryLoginCodeFlow(T=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(T=T||{}).customHashFragment?T.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),x=E.code,S=E.state,P=E.session_state;if(!T.preventClearHashAfterLogin){const q=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,q)}let[R,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(T,E);const q=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(q),Promise.reject(q)}if(!T.disableNonceCheck){if(!R)return w.saveRequestedRoute(),Promise.resolve();if(!T.disableOAuth2StateCheck&&!w.validateNonce(R)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(P),x&&(yield w.getTokenFromCode(x,T),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const T=this._storage.getItem("requested_route");T&&history.replaceState(null,"",window.location.origin+T)}getCodePartsFromUrl(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(T,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",T).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?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(T,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||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),new Promise((E,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,T,{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(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),x(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)),x(S)})})}tryLoginImplicitFlow(T=null){let w;w=(T=T||{}).customHashFragment?this.urlHelper.getHashFragmentParams(T.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,x]=this.parseState(i);if(this.state=x,w.error){this.debug("error trying to login"),this.handleLoginError(T,w);const q=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(q),Promise.reject(q)}const S=w.access_token,P=w.id_token,R=w.session_state,F=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&&!T.disableOAuth2StateCheck&&!i||this.oidc&&!P)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&&!T.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(P,S,T.disableNonceCheck).then(q=>T.validationHandler?T.validationHandler({accessToken:S,idClaims:q.idTokenClaims,idToken:q.idToken,state:i}).then(J=>q):q).then(q=>(this.storeIdToken(q),this.storeSessionState(R),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(T),this.inImplicitFlow=!1,!0)).catch(q=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),this.logger.error("Error validating tokens"),this.logger.error(q),Promise.reject(q))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(T),Promise.resolve(!0))}parseState(T){let w=T,i="";if(T){const E=T.indexOf(this.config.nonceStateSeparator);E>-1&&(w=T.substr(0,E),i=T.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(T){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===T||(console.error("Validating access_token failed, wrong state/nonce.",w,T),!1)}storeIdToken(T){this._storage.setItem("id_token",T.idToken),this._storage.setItem("id_token_claims_obj",T.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+T.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(T){this._storage.setItem("session_state",T)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(T,w){T.onLoginError&&T.onLoginError(w),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(T=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:T}processIdToken(T,w,i=!1){const E=T.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),q=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(q.aud)){if(q.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+q.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(q.aud!==this.clientId){const ge="Wrong audience: "+q.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!q.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==q.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${q.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!q.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&q.iss!==this.issuer){const ge="Wrong issuer: "+q.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!i&&q.nonce!==J){const ge="Wrong nonce: "+q.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&&!q.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const X=this.dateTimeService.now(),ne=1e3*q.iat,le=1e3*q.exp,ae=this.getClockSkewInMsec();if(ne-ae>=X||le+ae<=X){const ge="Token has expired";return console.error(ge),console.error({now:X,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(ge)}const ie={accessToken:w,idToken:T,jwks:this.jwks,idTokenClaims:q,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return this.checkSignature(ie).then(Ae=>{const Xe={idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?Xe:this.checkAtHash(ie).then(Qe=>{if(this.requestAccessToken&&!Qe){const He="Wrong at_hash";return this.logger.warn(He),Promise.reject(He)}return Xe})})})}getIdentityClaims(){const T=this._storage.getItem("id_token_claims_obj");return T?JSON.parse(T):null}getGrantedScopes(){const T=this._storage.getItem("granted_scopes");return T?JSON.parse(T):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(T){for(;T.length%4!=0;)T+="=";return T}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 T=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(T&&parseInt(T,10)=0&&null!==this._storage.getItem(T)?JSON.parse(this._storage.getItem(T)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(T={},w=""){let i=!1;"boolean"==typeof T&&(i=T,T={});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 x;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)x=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),w&&(S=S.set("state",w)));for(let R in T)S=S.set(R,T[R]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const T=this;return this.createNonce().then(function(w){return T.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):T._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const T=this.document.getElementById(this.silentRefreshIFrameName);T&&T.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(T=>{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 x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>w.charCodeAt(P%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(T,w))}initCodeFlowInternal(T="",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(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!T.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield T.createNonce();return[base64UrlEncode(yield T.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(T){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{T[i]&&w.set(i,JSON.stringify(T[i]))}),w}revokeTokenAndLogout(T={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),x=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 R=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.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,F)=>{let q,J;if(E){let X=S.set("token",E).set("token_type_hint","access_token");q=this.http.post(i,X,{headers:P})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let X=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,X,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([q,J]).subscribe(X=>{this.logOut(T),R(X),this.logger.info("Token successfully revoked")},X=>{this.logger.error("Error revoking token",X),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",X)),F(X)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return j.\u0275fac=function(T){return new(T||j)(_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))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(Y){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Y)}}let DefaultOAuthInterceptor=(()=>{class j{constructor(T,w,i){this.oAuthService=T,this.errorHandler=w,this.moduleConfig=i}checkUrl(T){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(T):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>T.toLowerCase().startsWith(w.toLowerCase()))}intercept(T,w){const i=T.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)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=T.headers.set("Authorization","Bearer "+x);T=T.clone({headers:P})}return w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):w.handle(T)}}return j.\u0275fac=function(T){return new(T||j)(_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))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class NullValidationHandler{validateSignature(Y){return Promise.resolve(null)}validateAtHash(Y){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class j{static forRoot(T=null,w=NullValidationHandler){return{ngModule:j,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:T},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:j}),j.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),j})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(j,Y,T)=>{"use strict";function w(E,x,S,P,R,F,q){try{var J=E[F](q),X=J.value}catch(ne){return void S(ne)}J.done?x(X):Promise.resolve(X).then(P,R)}function i(E){return function(){var x=this,S=arguments;return new Promise(function(P,R){var F=E.apply(x,S);function q(X){w(F,P,R,q,J,"next",X)}function J(X){w(F,P,R,q,J,"throw",X)}q(void 0)})}}T.d(Y,{Z:()=>i})},1128:j=>{"use strict";j.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:j=>{"use strict";j.exports={i8:"9.3.0"}}},j=>{j(j.s=1573)}]); \ No newline at end of file